/* [project]/src/app/globals.css [app-client] (css) */
:root {
  --accent: #dd6b4d;
  --accent-strong: #c9573b;
  --accent-soft: #f7e2d8;
  --accent-ink: #8a3a24;
  --honey: #e8a93c;
  --sage: #6e9c6e;
  --sage-soft: #e2eedf;
  --berry: #c2557a;
  --sky: #5b8bb0;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --rail-w: 236px;
  --font: "Anuphan", system-ui, sans-serif;
  --mono: "Spline Sans Mono", ui-monospace, monospace;
}

:root, [data-theme="light"] {
  --bg: #faf4ea;
  --bg-grad-1: #f4e7d6;
  --bg-grad-2: #fbf6ee;
  --surface: #fffdf9;
  --surface-2: #f4eadb;
  --surface-3: #ecddc8;
  --border: #e7d9c4;
  --border-soft: #efe5d6;
  --ink: #2c2620;
  --ink-2: #5e5448;
  --ink-3: #8c8173;
  --ink-faint: #b6ab9a;
  --shadow-sm: 0 1px 2px #3c28140f, 0 1px 3px #3c28140d;
  --shadow-md: 0 4px 12px #462d1914, 0 2px 4px #462d190d;
  --shadow-lg: 0 18px 50px #462d1924, 0 6px 16px #462d1914;
  --on-accent: #fff;
  --grid-line: #785a3c12;
}

[data-theme="dark"] {
  --bg: #1a1613;
  --bg-grad-1: #241b14;
  --bg-grad-2: #161210;
  --surface: #241e19;
  --surface-2: #2c251f;
  --surface-3: #372e26;
  --border: #3b322a;
  --border-soft: #322a23;
  --ink: #f3e9db;
  --ink-2: #c3b6a4;
  --ink-3: #94897a;
  --ink-faint: #6a6155;
  --accent-soft: #3a2a22;
  --accent-ink: #f0b59e;
  --sage-soft: #25302a;
  --shadow-sm: 0 1px 2px #0000004d;
  --shadow-md: 0 6px 18px #0006;
  --shadow-lg: 0 20px 55px #0000008c, 0 6px 18px #0006;
  --on-accent: #1a1613;
  --grid-line: #ffebc80d;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

button {
  cursor: pointer;
  color: inherit;
  background: none;
  border: none;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
}

::selection {
  background: var(--accent-soft);
  color: var(--accent-ink);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  background-clip: padding-box;
  border: 3px solid #0000;
  border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--ink-faint);
  background-clip: padding-box;
}

.app {
  background: radial-gradient(1200px 600px at 88% -8%, var(--bg-grad-1), transparent 60%),
    radial-gradient(900px 500px at -6% 108%, var(--bg-grad-2), transparent 55%),
    var(--bg);
  height: 100dvh;
  display: flex;
}

.main {
  flex-direction: column;
  flex: 1;
  min-width: 0;
  height: 100dvh;
  display: flex;
}

.screen-scroll {
  flex: 1;
  min-width: 0;
  overflow: auto;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px 34px 60px;
}

@media (max-width: 640px) {
  .wrap {
    padding: 20px 16px 40px;
  }
}

.rail {
  width: var(--rail-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  z-index: 5;
  flex-direction: column;
  flex: none;
  gap: 2px;
  height: 100dvh;
  padding: 18px 14px;
  transition: width .22s cubic-bezier(.2, .7, .2, 1);
  display: flex;
  position: relative;
}

.brand {
  align-items: center;
  gap: 11px;
  padding: 6px 8px 16px;
  display: flex;
}

.rail-collapse {
  width: 28px;
  height: 28px;
  color: var(--ink-3);
  border-radius: 8px;
  flex: none;
  place-items: center;
  margin-left: auto;
  transition: all .15s;
  display: grid;
}

.rail-collapse:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.rail.collapsed {
  width: 72px;
  padding-left: 12px;
  padding-right: 12px;
}

.rail.collapsed .brand {
  justify-content: center;
  padding: 6px 0 16px;
}

.rail.collapsed .brand-tx {
  display: none;
}

.rail.collapsed .rail-collapse {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  z-index: 6;
  position: absolute;
  top: 14px;
  right: -13px;
}

.rail.collapsed .rail-label {
  opacity: 0;
  height: 8px;
  padding: 0;
  overflow: hidden;
}

.rail.collapsed .nav-item {
  justify-content: center;
  padding: 9px 0;
}

.rail.collapsed .nav-tx, .rail.collapsed .nav-item .badge {
  display: none;
}

.rail.collapsed .nav-item {
  position: relative;
}

.rail.collapsed .rail-foot {
  border-top: none;
}

.rail.collapsed .support-card {
  justify-content: center;
  padding: 10px 0;
}

.brand-mark {
  flex: none;
  place-items: center;
  width: 38px;
  height: 38px;
  display: grid;
}

.brand-name {
  letter-spacing: -.02em;
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
}

.brand-sub {
  color: var(--ink-3);
  margin-top: 3px;
  font-size: 11px;
  font-weight: 500;
}

.rail-label {
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: .09em;
  padding: 15px 10px 6px;
  font-size: 10.5px;
  font-weight: 700;
}

.nav-item {
  width: 100%;
  color: var(--ink-2);
  text-align: left;
  white-space: nowrap;
  border: 1px solid #0000;
  border-radius: 11px;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  font-size: 14px;
  font-weight: 500;
  transition: all .15s;
  display: flex;
}

.nav-item > span:not(.badge) {
  min-width: 0;
}

.nav-item:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.nav-item.active {
  background: var(--accent-soft);
  color: var(--accent-ink);
  border-color: color-mix(in srgb, var(--accent) 22%, transparent);
  font-weight: 600;
}

.nav-item svg {
  flex: none;
}

.nav-item .badge {
  background: var(--surface-3);
  color: var(--ink-3);
  border-radius: 20px;
  margin-left: auto;
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 600;
}

.nav-item.active .badge {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent-ink);
}

.rail-spacer {
  flex: 1;
}

.rail-scroll {
  flex: 1;
  min-height: 0;
  margin: 0 -6px;
  padding: 0 6px;
  overflow: hidden auto;
}

.rail-scroll::-webkit-scrollbar {
  width: 7px;
}

.rail-grp {
  width: 100%;
  color: var(--ink-3);
  border-radius: 9px;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  font-size: 12.5px;
  font-weight: 700;
  transition: background .14s;
  display: flex;
}

.rail-grp:hover {
  background: var(--surface-2);
  color: var(--ink-2);
}

.rail-grp-n {
  background: var(--surface-3);
  color: var(--ink-3);
  border-radius: 20px;
  padding: 0 7px;
  font-size: 11px;
}

.nav-sub {
  font-size: 13.5px;
  font-weight: 500;
  padding-left: 20px !important;
}

.nav-sub .app-dot {
  border-radius: 50%;
  flex: none;
  width: 7px;
  height: 7px;
  margin-left: auto;
}

.rail.collapsed .rail-grp {
  justify-content: center;
  padding: 8px 0;
}

.rail.collapsed .nav-sub {
  justify-content: center;
  padding-left: 0 !important;
}

.rail-foot {
  border-top: 1px solid var(--border-soft);
  margin-top: 8px;
  padding-top: 10px;
}

.usage-bar {
  background: var(--surface-3);
  border-radius: 20px;
  height: 6px;
  margin: 6px 4px 0;
  overflow: hidden;
}

.srv-row {
  color: var(--ink-3);
  justify-content: space-between;
  padding: 0 6px;
  font-size: 11.5px;
  font-weight: 600;
  display: flex;
}

.srv-collapsed {
  display: none;
}

.rail.collapsed .srv-collapsed {
  color: var(--ink-3);
  place-items: center;
  padding: 6px 0;
  display: grid;
}

.rail.collapsed .srv-meter {
  display: none;
}

.usage-fill {
  background: linear-gradient(90deg, var(--honey), var(--accent));
  border-radius: 20px;
  height: 100%;
}

.topbar {
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: 4;
  flex: none;
  align-items: center;
  gap: 14px;
  height: 62px;
  padding: 0 22px;
  display: flex;
  position: relative;
}

.crumb {
  color: var(--ink-3);
  align-items: center;
  gap: 9px;
  font-size: 14px;
  display: flex;
}

.crumb b {
  color: var(--ink);
  white-space: nowrap;
  font-weight: 600;
}

.crumb > span {
  white-space: nowrap;
}

.crumb .sep {
  color: var(--ink-faint);
}

.topbar-spacer {
  flex: 1;
}

.icon-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  width: 38px;
  height: 38px;
  color: var(--ink-2);
  border-radius: 11px;
  place-items: center;
  transition: all .15s;
  display: grid;
}

.icon-btn:hover {
  color: var(--ink);
  border-color: var(--ink-faint);
  transform: translateY(-1px);
}

.avatar {
  background: linear-gradient(140deg, var(--sky), var(--sage));
  color: #fff;
  border-radius: 50%;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  font-size: 13px;
  font-weight: 600;
  display: grid;
}

.btn {
  white-space: nowrap;
  border: 1px solid #0000;
  border-radius: 11px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  transition: all .15s;
  display: inline-flex;
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--accent-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--ink-faint);
  background: var(--surface-2);
}

.btn-soft {
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.btn-soft:hover {
  background: color-mix(in srgb, var(--accent) 18%, var(--accent-soft));
}

.btn-sm {
  border-radius: 9px;
  padding: 7px 12px;
  font-size: 13px;
}

.btn-lg {
  border-radius: 13px;
  padding: 13px 22px;
  font-size: 15px;
}

.chip {
  background: var(--surface-2);
  color: var(--ink-2);
  border: 1px solid var(--border-soft);
  white-space: nowrap;
  border-radius: 20px;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
}

.dot {
  border-radius: 50%;
  flex: none;
  width: 7px;
  height: 7px;
  display: inline-block;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.muted {
  color: var(--ink-3);
}

.fade-in {
  animation: .4s fadeIn;
}

@keyframes fadeIn {
  from {
    transform: translateY(8px);
  }

  to {
    transform: none;
  }
}

.rise {
  animation: .5s cubic-bezier(.2, .7, .2, 1) rise;
}

@keyframes rise {
  from {
    transform: translateY(16px);
  }

  to {
    transform: none;
  }
}

.pop {
  animation: .35s cubic-bezier(.2, .8, .2, 1) pop;
}

@keyframes pop {
  from {
    transform: scale(.97);
  }

  to {
    transform: none;
  }
}

.rail-scrim, .rail-hamburger {
  display: none;
}

@media (max-width: 1024px) {
  .rail, .rail.collapsed {
    width: var(--rail-w);
    z-index: 95;
    box-shadow: var(--shadow-lg);
    flex: none;
    padding: 18px 14px;
    transition: transform .22s cubic-bezier(.2, .7, .2, 1);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
  }

  .rail.open {
    transform: translateX(0);
  }

  .rail-collapse {
    display: none;
  }

  .rail.collapsed .brand {
    justify-content: flex-start;
    padding: 6px 8px 16px;
  }

  .rail.collapsed .brand-tx {
    display: block;
  }

  .rail.collapsed .rail-label {
    opacity: 1;
    height: auto;
    padding: 15px 10px 6px;
    overflow: visible;
  }

  .rail.collapsed .nav-item {
    justify-content: flex-start;
    padding: 9px 11px;
  }

  .rail.collapsed .nav-tx {
    display: inline;
  }

  .rail.collapsed .nav-item .badge {
    display: inline-block;
  }

  .rail.collapsed .nav-sub {
    justify-content: flex-start;
    padding-left: 20px !important;
  }

  .rail.collapsed .rail-grp {
    justify-content: flex-start;
    padding: 8px 11px;
  }

  .rail.collapsed .srv-collapsed {
    display: none;
  }

  .rail.collapsed .srv-meter {
    display: block;
  }

  .rail.collapsed .support-card {
    justify-content: flex-start;
    padding: 10px;
  }

  .rail-scrim {
    z-index: 90;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    background: #140c0673;
    transition: opacity .22s;
    display: block;
    position: fixed;
    inset: 0;
  }

  .rail-scrim.open {
    opacity: 1;
    pointer-events: auto;
  }

  .rail-hamburger {
    border: 1px solid var(--border);
    background: var(--surface);
    width: 40px;
    height: 40px;
    color: var(--ink-2);
    border-radius: 11px;
    flex: none;
    place-items: center;
    transition: all .15s;
    display: grid;
  }

  .rail-hamburger:hover {
    color: var(--ink);
    border-color: var(--ink-faint);
  }
}

@media (max-width: 640px) {
  .topbar {
    gap: 8px;
    padding: 0 12px;
  }

  .topbar > .chip {
    display: none;
  }

  .crumb {
    white-space: nowrap;
    min-width: 0;
    overflow: hidden;
  }

  .crumb b {
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    overflow: hidden;
  }

  .topbar .icon-btn, .topbar .avatar, .topbar .rail-hamburger {
    flex: none;
  }
}

@media (pointer: coarse) {
  .icon-btn, .avatar, .rail-hamburger {
    width: 44px;
    height: 44px;
  }

  .nav-item, .btn-sm {
    min-height: 44px;
  }

  .rail-collapse {
    position: relative;
  }

  .rail-collapse:after {
    content: "";
    position: absolute;
    inset: -8px;
  }
}

/* [project]/src/app/screens.css [app-client] (css) */
.page-head {
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 22px;
  display: flex;
}

.page-title {
  letter-spacing: -.02em;
  margin: 0;
  font-size: 30px;
  font-weight: 700;
}

.page-sub {
  color: var(--ink-3);
  margin: 6px 0 0;
  font-size: 15px;
}

.hero-prompt {
  border-radius: var(--radius-lg);
  background: radial-gradient(600px 200px at 90% 0%, color-mix(in srgb, var(--honey) 18%, transparent), transparent 70%),
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, var(--surface)), var(--surface));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  margin-bottom: 30px;
  padding: 26px;
  position: relative;
  overflow: hidden;
}

.hero-eyebrow {
  color: var(--accent-ink);
  background: var(--surface);
  border: 1px solid var(--border);
  white-space: nowrap;
  border-radius: 20px;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
}

.suggest-pill {
  white-space: nowrap;
}

.hero-h {
  letter-spacing: -.02em;
  max-width: 540px;
  margin: 14px 0 4px;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.25;
}

.hero-d {
  color: var(--ink-2);
  max-width: 520px;
  margin: 0 0 18px;
  font-size: 15px;
}

.prompt-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  align-items: center;
  gap: 12px;
  max-width: 660px;
  padding: 6px 6px 6px 18px;
  display: flex;
}

.prompt-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.prompt-box input {
  color: var(--ink);
  background: none;
  border: none;
  outline: none;
  flex: 1;
  padding: 11px 0;
  font-size: 15px;
}

.prompt-box input::placeholder {
  color: var(--ink-faint);
}

.prompt-suggest {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  display: flex;
}

.suggest-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-2);
  border-radius: 20px;
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 500;
  transition: all .15s;
}

.suggest-pill:hover {
  border-color: var(--accent);
  color: var(--accent-ink);
  transform: translateY(-1px);
}

.stat-row {
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 30px;
  display: grid;
}

.stat {
  padding: 16px 18px;
}

.stat-k {
  color: var(--ink-3);
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
}

.stat-v {
  letter-spacing: -.02em;
  margin-top: 8px;
  font-size: 28px;
  font-weight: 700;
}

.stat-d {
  margin-top: 2px;
  font-size: 12.5px;
  font-weight: 600;
}

.sec-head {
  justify-content: space-between;
  align-items: center;
  margin: 4px 0 14px;
  display: flex;
}

.sec-title {
  font-size: 17px;
  font-weight: 700;
}

.app-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  display: grid;
}

.app-card {
  cursor: pointer;
  padding: 18px;
  transition: all .18s;
  position: relative;
}

.app-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--ink-faint);
  transform: translateY(-3px);
}

.app-ico {
  border-radius: 13px;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  font-size: 22px;
  display: grid;
}

.app-name {
  letter-spacing: -.01em;
  font-size: 16px;
  font-weight: 700;
}

.app-meta {
  color: var(--ink-3);
  margin-top: 3px;
  font-size: 13px;
}

.app-foot {
  border-top: 1px solid var(--border-soft);
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  display: flex;
}

.mini-ava {
  border: 2px solid var(--surface);
  color: #fff;
  border-radius: 50%;
  place-items: center;
  width: 24px;
  height: 24px;
  font-size: 10px;
  font-weight: 700;
  display: grid;
}

.app-card.new {
  text-align: center;
  color: var(--ink-3);
  border-style: dashed;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 180px;
  display: flex;
}

.app-card.new:hover {
  color: var(--accent-ink);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.builder {
  height: calc(100dvh - 62px);
  display: flex;
}

.pane-switch {
  display: none;
}

.builder.rev {
  flex-direction: row-reverse;
}

.builder.stacked {
  flex-direction: column;
}

.chat-pane {
  border-right: 1px solid var(--border);
  background: var(--surface);
  flex-direction: column;
  flex: none;
  width: 420px;
  display: flex;
}

.builder.rev .chat-pane {
  border-right: none;
  border-left: 1px solid var(--border);
}

.builder.stacked .chat-pane {
  border-right: none;
  border-bottom: 1px solid var(--border);
  width: auto;
  height: 300px;
}

.chat-head {
  border-bottom: 1px solid var(--border-soft);
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  display: flex;
}

.chat-head div {
  white-space: nowrap;
}

.chat-scroll {
  flex-direction: column;
  flex: 1;
  gap: 16px;
  padding: 20px;
  display: flex;
  overflow: auto;
}

.msg {
  gap: 11px;
  max-width: 100%;
  display: flex;
}

.msg-ava {
  border-radius: 9px;
  flex: none;
  place-items: center;
  width: 30px;
  height: 30px;
  font-size: 13px;
  font-weight: 700;
  display: grid;
}

.msg.ai .msg-ava {
  background: linear-gradient(150deg, var(--accent), var(--honey));
  color: #fff;
}

.msg.user {
  flex-direction: row-reverse;
}

.msg.user .msg-ava {
  background: var(--surface-3);
  color: var(--ink-2);
}

.msg-body {
  font-size: 14px;
  line-height: 1.55;
}

.msg.ai .msg-body {
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  color: var(--ink);
  border-radius: 4px 14px 14px;
  padding: 12px 14px;
}

.msg.user .msg-body {
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 14px 4px 14px 14px;
  padding: 11px 14px;
  font-weight: 500;
}

.msg-build {
  flex-direction: column;
  gap: 7px;
  margin-top: 10px;
  display: flex;
}

.build-step {
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 9px;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  font-size: 13px;
  display: flex;
}

.build-step .tick {
  background: var(--sage);
  color: #fff;
  border-radius: 50%;
  flex: none;
  place-items: center;
  width: 18px;
  height: 18px;
  display: grid;
}

.build-step.pending {
  opacity: .5;
}

.build-step.pending .tick {
  background: var(--surface-3);
  color: var(--ink-3);
}

.chat-input-wrap {
  border-top: 1px solid var(--border-soft);
  padding: 14px 16px;
}

.chat-input {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 13px;
  flex-direction: column;
  gap: 6px;
  padding: 6px;
  display: flex;
}

.chat-input:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.chat-input-row {
  align-items: flex-end;
  gap: 8px;
  display: flex;
}

.chat-input textarea {
  resize: none;
  color: var(--ink);
  background: none;
  border: none;
  outline: none;
  flex: 1;
  max-height: 90px;
  padding: 9px 4px;
  font-size: 14px;
  line-height: 1.4;
}

.attach-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  width: 36px;
  height: 36px;
  color: var(--ink-3);
  cursor: pointer;
  border-radius: 10px;
  flex: none;
  place-items: center;
  transition: all .15s;
  display: grid;
}

.attach-btn:hover {
  color: var(--accent-ink);
  border-color: var(--accent);
}

.chat-files {
  flex-wrap: wrap;
  gap: 6px;
  padding: 2px 2px 0;
  display: flex;
}

.cfile {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-2);
  border-radius: 8px;
  align-items: center;
  gap: 5px;
  padding: 4px 6px 4px 9px;
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
}

.cfile button {
  width: 16px;
  height: 16px;
  color: var(--ink-faint);
  border-radius: 4px;
  place-items: center;
  display: grid;
}

.cfile button:hover {
  background: var(--surface-3);
  color: var(--berry);
}

.msg-files {
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
  display: flex;
}

.msg.user .msg-files .cfile {
  color: #fff;
  background: #ffffff2e;
  border-color: #ffffff4d;
}

.send-btn {
  background: var(--accent);
  width: 36px;
  height: 36px;
  color: var(--on-accent);
  border-radius: 10px;
  flex: none;
  place-items: center;
  transition: all .15s;
  display: grid;
}

.send-btn:hover {
  background: var(--accent-strong);
}

.preview-pane {
  flex-direction: column;
  flex: 1;
  min-width: 0;
  display: flex;
}

.preview-bar {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  flex: none;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 16px;
  display: flex;
}

.seg {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  gap: 2px;
  padding: 3px;
  display: flex;
}

.seg button {
  color: var(--ink-3);
  white-space: nowrap;
  border-radius: 7px;
  padding: 5px 13px;
  font-size: 13px;
  font-weight: 600;
}

.seg button.on {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.preview-stage {
  background: linear-gradient(var(--grid-line) 1px, transparent 1px),
   linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 22px 22px;
  flex: 1;
  padding: 30px;
  overflow: auto;
}

.preview-stage.flush {
  padding: 0;
  display: flex;
  overflow: hidden;
}

.device {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 560px;
  box-shadow: var(--shadow-lg);
  margin: 0 auto;
  overflow: hidden;
}

.gen-form-head {
  background: linear-gradient(130deg, var(--accent), var(--honey));
  color: #fff;
  padding: 22px 26px;
}

.gen-form-body {
  flex-direction: column;
  gap: 18px;
  padding: 24px 26px;
  display: flex;
}

.ff {
  flex-direction: column;
  gap: 7px;
  display: flex;
}

.ff label {
  color: var(--ink-2);
  gap: 5px;
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
}

.ff label .req {
  color: var(--accent);
}

.ff .control {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  border-radius: 10px;
  width: 100%;
  padding: 11px 13px;
  font-size: 14px;
}

.ff .control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  outline: none;
}

.ff .control.area {
  resize: vertical;
  min-height: 80px;
}

.ff-hint {
  color: var(--ink-faint);
  font-size: 12px;
}

.fb-wrap {
  flex-direction: column;
  height: calc(100dvh - 62px);
  display: flex;
}

.fb-wrap.fb-full {
  z-index: 60;
  background: var(--bg);
  height: 100dvh;
  position: fixed;
  inset: 0;
}

.fb-bar {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  flex: none;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  height: 50px;
  padding: 0 16px;
  display: flex;
}

.fb-pages {
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  flex: none;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 8px 16px;
  display: flex;
}

.fb-ptabs {
  align-items: center;
  gap: 8px;
  display: flex;
  overflow-x: auto;
}

.fb-ptab {
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  white-space: nowrap;
  border-radius: 10px;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  transition: all .14s;
  display: flex;
}

.fb-ptab:hover {
  border-color: var(--ink-faint);
}

.fb-ptab.on {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.fb-pnum {
  background: var(--surface-3);
  width: 20px;
  height: 20px;
  color: var(--ink-3);
  border-radius: 6px;
  flex: none;
  place-items: center;
  font-size: 11.5px;
  font-weight: 700;
  display: grid;
}

.fb-ptab.on .fb-pnum {
  background: var(--accent);
  color: var(--on-accent);
}

.fb-pname {
  color: var(--ink-2);
  outline: none;
  font-size: 13.5px;
  font-weight: 600;
}

.fb-ptab.on .fb-pname {
  color: var(--accent-ink);
}

.fb-pname:focus {
  box-shadow: 0 1px 0 var(--accent);
}

.fb-pdel {
  width: 18px;
  height: 18px;
  color: var(--ink-faint);
  border-radius: 5px;
  flex: none;
  place-items: center;
  display: grid;
}

.fb-pdel:hover {
  background: color-mix(in srgb, var(--berry) 15%, transparent);
  color: var(--berry);
}

.fb-padd {
  border: 1.5px dashed var(--border);
  color: var(--ink-3);
  white-space: nowrap;
  border-radius: 10px;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
  transition: all .14s;
  display: flex;
}

.fb-padd:hover {
  border-color: var(--accent);
  color: var(--accent-ink);
  background: var(--accent-soft);
}

.fb-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
  width: 34px;
  height: 34px;
  color: var(--ink-3);
  border-radius: 9px;
  place-items: center;
  transition: all .15s;
  display: grid;
}

.fb-toggle:hover {
  color: var(--ink);
  border-color: var(--ink-faint);
}

.fb-toggle.on {
  background: var(--accent-soft);
  color: var(--accent-ink);
  border-color: color-mix(in srgb, var(--accent) 24%, transparent);
}

.fb-body {
  flex: 1;
  min-height: 0;
  display: flex;
}

.fb-palette {
  border-right: 1px solid var(--border);
  background: var(--surface);
  flex: none;
  width: 218px;
  padding: 16px 14px;
  overflow: auto;
}

.pal-group-label {
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--ink-faint);
  padding: 14px 6px 8px;
  font-size: 11px;
  font-weight: 700;
}

.pal-item {
  border: 1px solid var(--border-soft);
  background: var(--surface-2);
  cursor: grab;
  border-radius: 11px;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
  padding: 10px 12px;
  font-size: 13.5px;
  font-weight: 500;
  transition: all .14s;
  display: flex;
}

.pal-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
  transform: translateX(2px);
}

.pal-item:active {
  cursor: grabbing;
}

.pal-ico {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  width: 28px;
  height: 28px;
  color: var(--accent);
  border-radius: 8px;
  flex: none;
  place-items: center;
  display: grid;
}

.fb-canvas {
  background: linear-gradient(var(--grid-line) 1px, transparent 1px),
   linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 22px 22px;
  flex: 1;
  min-width: 0;
  padding: 30px;
  overflow: auto;
}

.fb-sheet {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  min-width: 0;
  max-width: 640px;
  box-shadow: var(--shadow-lg);
  min-height: 80%;
  margin: 0 auto;
  overflow: hidden;
}

.fb-sheet.wide {
  max-width: 980px;
}

.fb-sheet-head {
  border-bottom: 1px solid var(--border-soft);
  padding: 20px 26px;
}

.fb-fields {
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 12px;
  min-height: 200px;
  padding: 20px 26px;
  display: flex;
}

.fbw {
  position: relative;
}

.fbw-full {
  width: 100%;
}

.fbw-half {
  width: calc(50% - 6px);
}

.fbw-third {
  width: calc(33.333% - 8px);
}

.fbw-quarter {
  width: calc(25% - 9px);
}

.fb-wrap.resizing {
  cursor: col-resize;
  -webkit-user-select: none;
  user-select: none;
}

.fb-resize {
  cursor: col-resize;
  opacity: 0;
  justify-content: center;
  align-items: center;
  width: 12px;
  transition: opacity .14s;
  display: flex;
  position: absolute;
  top: 0;
  bottom: 0;
  right: -1px;
}

.fb-field:hover .fb-resize, .fb-field.sel .fb-resize {
  opacity: 1;
}

.fb-resize span {
  background: var(--accent);
  width: 4px;
  height: 30px;
  box-shadow: 0 0 0 3px var(--accent-soft);
  border-radius: 4px;
}

.fb-section {
  border: 1.5px solid #0000;
  border-bottom: 2px solid var(--border);
  cursor: pointer;
  border-radius: 10px;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 8px;
  transition: background .14s, border-color .14s;
  display: flex;
  position: relative;
}

.fb-section:hover {
  background: var(--surface-2);
}

.fb-section.sel {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.fb-section .grip {
  color: var(--ink-faint);
  opacity: 0;
  cursor: grab;
  transition: all .14s;
  position: absolute;
  top: 50%;
  left: -2px;
  transform: translateY(-50%);
}

.fb-section:hover .grip {
  opacity: 1;
}

.fb-sec-t {
  color: var(--ink);
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  display: flex;
}

.fb-sec-t svg {
  color: var(--accent);
}

.fb-sec-d {
  color: var(--ink-3);
  margin-top: 2px;
  padding-left: 23px;
  font-size: 12.5px;
}

.fbw.ins-before:before, .fbw.ins-after:after {
  content: "";
  background: var(--accent);
  width: 3px;
  box-shadow: 0 0 0 3px var(--accent-soft);
  border-radius: 3px;
  position: absolute;
  top: 4px;
  bottom: 4px;
}

.fbw.ins-before:before {
  left: -7px;
}

.fbw.ins-after:after {
  right: -7px;
}

.fb-field {
  cursor: pointer;
  border: 1.5px solid #0000;
  border-radius: 12px;
  height: 100%;
  padding: 12px 14px;
  transition: background .14s, border-color .14s;
  position: relative;
}

.fb-field:hover {
  background: var(--surface-2);
}

.fb-field.sel {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.fb-field .grip {
  color: var(--ink-faint);
  opacity: 0;
  cursor: grab;
  transition: all .14s;
  position: absolute;
  top: 50%;
  left: -2px;
  transform: translateY(-50%);
}

.fb-field:hover .grip {
  opacity: 1;
}

.fb-field .fl {
  color: var(--ink-2);
  align-items: center;
  gap: 5px;
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
}

.fb-field .fc {
  border: 1px solid var(--border);
  color: var(--ink-faint);
  background: var(--surface);
  border-radius: 9px;
  margin-top: 7px;
  padding: 10px 12px;
  font-size: 13.5px;
}

.drop-hint {
  border: 2px dashed var(--border);
  text-align: center;
  color: var(--ink-faint);
  border-radius: 14px;
  padding: 24px;
  font-size: 14px;
  font-weight: 500;
  transition: all .15s;
}

.drop-hint.over {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.fb-props {
  border-left: 1px solid var(--border);
  background: var(--surface);
  flex: none;
  width: 268px;
  padding: 18px;
  overflow: auto;
}

.wseg {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  gap: 2px;
  padding: 3px;
  display: flex;
}

.wseg button {
  color: var(--ink-3);
  border-radius: 7px;
  flex: 1;
  padding: 7px 4px;
  font-size: 12.5px;
  font-weight: 600;
  transition: all .14s;
}

.wseg button.on {
  background: var(--surface);
  color: var(--accent-ink);
  box-shadow: var(--shadow-sm);
}

.prop-label {
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-faint);
  margin: 18px 0 8px;
  font-size: 12px;
  font-weight: 700;
}

.prop-field {
  margin-bottom: 13px;
}

.prop-field label {
  color: var(--ink-2);
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  display: block;
}

.prop-field input, .prop-field select {
  border: 1px solid var(--border);
  background: var(--surface-2);
  width: 100%;
  color: var(--ink);
  border-radius: 9px;
  padding: 9px 11px;
  font-size: 13.5px;
}

.prop-field input:focus, .prop-field select:focus {
  border-color: var(--accent);
  outline: none;
}

.toggle {
  background: var(--surface-3);
  border-radius: 20px;
  flex: none;
  width: 42px;
  height: 24px;
  transition: all .18s;
  position: relative;
}

.toggle.on {
  background: var(--accent);
}

.toggle:after {
  content: "";
  width: 18px;
  height: 18px;
  box-shadow: var(--shadow-sm);
  background: #fff;
  border-radius: 50%;
  transition: all .18s;
  position: absolute;
  top: 3px;
  left: 3px;
}

.toggle.on:after {
  left: 21px;
}

.wf-canvas {
  background: radial-gradient(circle at center, var(--grid-line) 1.3px, transparent 1.3px);
  background-size: 26px 26px;
  height: calc(100dvh - 62px);
  position: relative;
  overflow: hidden;
}

.wf-inner {
  position: absolute;
  inset: 0;
}

.wf-node {
  background: var(--surface);
  border: 1px solid var(--border);
  width: 210px;
  box-shadow: var(--shadow-md);
  cursor: grab;
  border-radius: 14px;
  transition: box-shadow .15s, border-color .15s;
  position: absolute;
  overflow: hidden;
}

.wf-node:hover {
  box-shadow: var(--shadow-lg);
}

.wf-node.sel {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow-md);
}

.wf-node-head {
  border-bottom: 1px solid var(--border-soft);
  align-items: center;
  gap: 9px;
  padding: 11px 13px;
  display: flex;
}

.wf-node-ico {
  color: #fff;
  border-radius: 9px;
  flex: none;
  place-items: center;
  width: 30px;
  height: 30px;
  display: grid;
}

.wf-node-t {
  font-size: 13.5px;
  font-weight: 700;
}

.wf-node-s {
  color: var(--ink-3);
  font-size: 11.5px;
}

.wf-node-body {
  color: var(--ink-2);
  padding: 11px 13px;
  font-size: 12.5px;
}

.wf-port {
  background: var(--surface);
  border: 2.5px solid var(--accent);
  z-index: 2;
  border-radius: 50%;
  width: 13px;
  height: 13px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.wf-port.in {
  top: -7px;
}

.wf-port.out {
  bottom: -7px;
}

.wf-toolbar {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  z-index: 10;
  border-radius: 13px;
  gap: 6px;
  padding: 6px;
  display: flex;
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
}

.wf-tool {
  color: var(--ink-2);
  border-radius: 9px;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
}

.wf-tool:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.wf-mini {
  background: var(--surface);
  border: 1px solid var(--border);
  width: 170px;
  height: 110px;
  box-shadow: var(--shadow-md);
  z-index: 10;
  border-radius: 11px;
  position: absolute;
  bottom: 16px;
  right: 16px;
  overflow: hidden;
}

.data-wrap {
  padding: 22px 26px;
}

.tbl-toolbar {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  display: flex;
}

.tbl-search {
  background: var(--surface);
  border: 1px solid var(--border);
  min-width: 240px;
  color: var(--ink-3);
  border-radius: 11px;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  display: flex;
}

.tbl-search input {
  color: var(--ink);
  background: none;
  border: none;
  outline: none;
  flex: 1;
  font-size: 14px;
}

.table-card {
  overflow: hidden;
}

.tbl {
  border-collapse: collapse;
  width: 100%;
  font-size: 13.5px;
}

.tbl th {
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink-3);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 700;
}

.tbl th .colt {
  align-items: center;
  gap: 6px;
  display: flex;
}

.tbl td {
  border-bottom: 1px solid var(--border-soft);
  color: var(--ink);
  white-space: nowrap;
  padding: 13px 16px;
}

.tbl tr:last-child td {
  border-bottom: none;
}

.tbl tbody tr {
  transition: background .12s;
}

.tbl tbody tr:hover {
  background: var(--surface-2);
}

.cell-id {
  font-family: var(--mono);
  color: var(--ink-faint);
  font-size: 12px;
}

.status-pill {
  border-radius: 20px;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
}

.type-pill {
  font-family: var(--mono);
  color: var(--ink-3);
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 11px;
}

.rt-bg {
  justify-content: center;
  align-items: flex-start;
  min-height: calc(100dvh - 62px);
  padding: 40px 24px;
  display: flex;
}

.rt-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.rt-head {
  background: linear-gradient(130deg, var(--accent), var(--honey));
  color: #fff;
  padding: 28px 30px;
  position: relative;
}

.rt-steps {
  gap: 6px;
  margin-top: 18px;
  display: flex;
}

.rt-pagerail {
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
  display: flex;
}

.rt-pchip {
  color: #fff;
  background: #ffffff29;
  border: 1px solid #ffffff40;
  border-radius: 20px;
  align-items: center;
  gap: 7px;
  padding: 6px 11px 6px 7px;
  font-size: 12.5px;
  font-weight: 600;
  transition: all .15s;
  display: flex;
}

.rt-pchip .rt-pn {
  opacity: .92;
}

.rt-pchip.on {
  color: var(--accent-ink);
  background: #fff;
}

.rt-pchip.done {
  cursor: pointer;
}

.rt-pchip:not(.on):not(.done) {
  opacity: .7;
}

.rt-pnum {
  background: #ffffff40;
  border-radius: 50%;
  flex: none;
  place-items: center;
  width: 20px;
  height: 20px;
  font-size: 11px;
  font-weight: 700;
  display: grid;
}

.rt-pchip.on .rt-pnum {
  background: var(--accent);
  color: #fff;
}

.rt-pchip.done .rt-pnum {
  color: var(--accent-ink);
  background: #ffffffe6;
}

.rt-check {
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
}

.rt-box {
  border: 2px solid var(--border);
  color: #fff;
  border-radius: 7px;
  flex: none;
  place-items: center;
  width: 22px;
  height: 22px;
  transition: all .15s;
  display: grid;
}

.rt-box.rt-radio {
  border-radius: 50%;
}

.rt-box.on {
  background: var(--accent);
  border-color: var(--accent);
}

.rt-box.rt-radio.on {
  border-color: var(--accent);
  background: #fff;
  position: relative;
}

.rt-box.rt-radio.on:after {
  content: "";
  background: var(--accent);
  border-radius: 50%;
  position: absolute;
  inset: 3px;
}

.rt-step {
  background: #ffffff4d;
  border-radius: 20px;
  flex: 1;
  height: 5px;
}

.rt-step.done {
  background: #fff;
}

.rt-body {
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 18px;
  padding: 26px 30px;
  display: flex;
}

.rt-section {
  border-bottom: 2px solid var(--border);
  margin-top: 4px;
  padding-bottom: 8px;
}

.rt-section:first-child {
  margin-top: 0;
}

.rt-sec-t {
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
}

.rt-sec-d {
  color: var(--ink-3);
  margin-top: 3px;
  font-size: 13px;
}

.rt-foot {
  border-top: 1px solid var(--border-soft);
  justify-content: space-between;
  align-items: center;
  padding: 18px 30px;
  display: flex;
}

.rt-success {
  text-align: center;
  padding: 50px 30px;
}

.rt-check {
  background: var(--sage-soft);
  width: 74px;
  height: 74px;
  color: var(--sage);
  border-radius: 50%;
  place-items: center;
  margin: 0 auto 20px;
  display: grid;
}

.spin {
  animation: 1s linear infinite spin;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.typing-dot {
  background: var(--ink-faint);
  border-radius: 50%;
  width: 7px;
  height: 7px;
  animation: 1.4s infinite both blink;
  display: inline-block;
}

@keyframes blink {
  0%, 80%, 100% {
    opacity: .2;
  }

  40% {
    opacity: 1;
  }
}

.role-switch {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 11px;
  gap: 2px;
  padding: 3px;
  display: flex;
}

.role-switch button {
  color: var(--ink-3);
  white-space: nowrap;
  border-radius: 8px;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  transition: all .15s;
  display: flex;
}

.role-switch button.on {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.role-switch button:not(.on):hover {
  color: var(--ink-2);
}

.support-card {
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 11px 12px;
  transition: all .15s;
  display: flex;
}

.support-card:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.portal-hero {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 30px;
  display: flex;
}

.portal-hero-cards {
  gap: 12px;
  display: flex;
}

.phc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: left;
  min-width: 130px;
  box-shadow: var(--shadow-sm);
  padding: 14px 20px;
  transition: all .16s;
}

.phc:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--ink-faint);
  transform: translateY(-2px);
}

.phc-v {
  letter-spacing: -.02em;
  color: var(--ink);
  font-size: 28px;
  font-weight: 700;
}

.phc-k {
  color: var(--ink-3);
  margin-top: 2px;
  font-size: 12.5px;
  font-weight: 600;
}

.launch-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 13px;
  display: grid;
}

.launch-grid.wide {
  grid-template-columns: repeat(3, 1fr);
}

.launch-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: left;
  align-items: center;
  gap: 14px;
  padding: 16px;
  transition: all .16s;
  display: flex;
}

.launch-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.launch-ico {
  border-radius: 13px;
  flex: none;
  place-items: center;
  width: 48px;
  height: 48px;
  font-size: 23px;
  display: grid;
}

.launch-name {
  letter-spacing: -.01em;
  font-size: 15px;
  font-weight: 700;
}

.launch-meta {
  color: var(--ink-3);
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
  font-size: 12.5px;
  overflow: hidden;
}

.req-list {
  flex-direction: column;
  gap: 10px;
  display: flex;
}

.req-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  display: flex;
}

.req-ico {
  border-radius: 12px;
  flex: none;
  place-items: center;
  width: 42px;
  height: 42px;
  font-size: 20px;
  display: grid;
}

.req-cards {
  flex-direction: column;
  gap: 13px;
  display: flex;
}

.req-card {
  cursor: pointer;
  padding: 16px;
  transition: box-shadow .15s, border-color .15s;
}

.req-card:hover {
  border-color: var(--ink-faint);
}

.req-card-head {
  align-items: center;
  gap: 14px;
  display: flex;
}

.req-card-body {
  opacity: 0;
  max-height: 0;
  transition: max-height .28s, opacity .2s, margin .28s;
  overflow: hidden;
}

.req-card.open .req-card-body {
  opacity: 1;
  border-top: 1px solid var(--border-soft);
  max-height: 160px;
  margin-top: 16px;
  padding-top: 16px;
}

.stepper {
  align-items: center;
  display: flex;
}

.st-node {
  background: var(--surface-3);
  width: 26px;
  height: 26px;
  color: var(--ink-3);
  border: 2px solid var(--border);
  border-radius: 50%;
  flex: none;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  display: grid;
}

.st-node.done {
  background: var(--sage);
  color: #fff;
  border-color: var(--sage);
}

.st-node.now {
  background: var(--accent-soft);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.st-line {
  background: var(--border);
  border-radius: 2px;
  flex: 1;
  height: 2.5px;
  margin: 0 4px;
}

.st-line.done {
  background: var(--sage);
}

.appr-list {
  flex-direction: column;
  gap: 13px;
  display: flex;
}

.appr-card {
  align-items: center;
  gap: 14px;
  padding: 16px;
  display: flex;
}

.appr-ico {
  border-radius: 12px;
  flex: none;
  align-self: flex-start;
  place-items: center;
  width: 44px;
  height: 44px;
  font-size: 21px;
  display: grid;
}

.appr-actions {
  flex: none;
  align-self: center;
  gap: 8px;
  display: flex;
}

.toast {
  background: var(--ink);
  color: var(--bg);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  border-radius: 12px;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
}

@media (max-width: 1024px) {
  .launch-grid.wide {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .launch-grid, .launch-grid.wide {
    grid-template-columns: 1fr;
  }

  .appr-card {
    flex-wrap: wrap;
  }

  .appr-actions {
    width: 100%;
  }
}

@media (max-width: 1024px) {
  .stat-row, .app-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .stat-row, .app-grid {
    grid-template-columns: 1fr;
  }

  .prompt-box {
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 12px;
  }

  .prompt-box input {
    min-width: 0;
    padding: 6px 0;
  }

  .prompt-box .btn {
    flex: 1 0 100%;
    min-height: 44px;
  }

  .hero-h {
    font-size: 22px;
  }

  .prop-field input, .prop-field select, .tbl-search input {
    font-size: 16px;
  }
}

@media (max-width: 1024px) {
  .builder, .builder.rev {
    flex-direction: column;
  }

  .pane-switch {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex: none;
    gap: 2px;
    padding: 6px;
    display: flex;
  }

  .pane-switch button {
    min-height: 44px;
    color: var(--ink-3);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 9px;
    flex: 1;
    justify-content: center;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 600;
    transition: color .15s, background .15s, border-color .15s;
    display: flex;
  }

  .pane-switch button.on {
    background: var(--accent-soft);
    color: var(--accent-ink);
    border-color: color-mix(in srgb, var(--accent) 26%, transparent);
  }

  .chat-pane, .builder.rev .chat-pane {
    border-bottom: none;
    border-left: none;
    border-right: none;
    flex: 1;
    width: 100%;
    height: auto;
    min-height: 0;
  }

  .preview-pane {
    flex: 1;
    min-height: 0;
  }

  .builder[data-pane="chat"] .preview-pane, .builder[data-pane="preview"] .chat-pane {
    display: none;
  }

  .preview-bar {
    scrollbar-width: none;
    overflow-x: auto;
  }

  .preview-bar::-webkit-scrollbar {
    display: none;
  }

  .seg {
    scrollbar-width: none;
    min-width: 0;
    overflow-x: auto;
  }

  .seg::-webkit-scrollbar {
    display: none;
  }
}

@media (pointer: coarse) {
  .seg button {
    min-height: 44px;
  }
}

@media (max-width: 640px) {
  .chat-input textarea, .prompt-box input {
    font-size: 16px;
  }
}

/* [project]/src/app/studio.css [app-client] (css) */
.std {
  height: 100vh;
  display: flex;
}

.std-rail {
  background: var(--surface);
  border-right: 1px solid var(--border);
  flex-direction: column;
  flex: none;
  align-items: center;
  gap: 8px;
  width: 60px;
  padding: 16px 0;
  display: flex;
}

.std-rail .brand-mark {
  border-radius: 12px;
  width: 38px;
  height: 38px;
}

.std-rb {
  width: 42px;
  height: 42px;
  color: var(--ink-3);
  border-radius: 12px;
  place-items: center;
  transition: all .15s;
  display: grid;
}

.std-rb:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.std-rb.on {
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.std-main {
  flex-direction: column;
  flex: 1;
  min-width: 0;
  display: flex;
}

.spec-card {
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  border-radius: 14px;
  margin-top: 10px;
  overflow: hidden;
}

.spec-head {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border-soft);
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
}

.spec-grid {
  flex-direction: column;
  gap: 11px;
  padding: 12px 14px;
  display: flex;
}

.spec-row {
  align-items: flex-start;
  gap: 11px;
  display: flex;
}

.spec-ic {
  color: #fff;
  border-radius: 9px;
  flex: none;
  place-items: center;
  width: 30px;
  height: 30px;
  display: grid;
}

.spec-k {
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 600;
}

.spec-v {
  color: var(--ink);
  margin-top: 1px;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
}

.spec-foot {
  border-top: 1px solid var(--border-soft);
  gap: 8px;
  padding: 11px 14px;
  display: flex;
}

.spec-ask {
  border-top: 1px solid var(--border-soft);
  flex-direction: column;
  gap: 6px;
  padding: 11px 14px;
  display: flex;
}

.naf {
  border-top: 1px solid var(--border-soft);
  background: var(--surface-2);
  flex-direction: column;
  gap: 11px;
  padding: 13px 14px;
  display: flex;
}

.naf-h {
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 12px;
  font-weight: 700;
}

.naf-row {
  flex-direction: column;
  gap: 6px;
  display: flex;
}

.naf-row label {
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 600;
}

.naf-icons {
  gap: 6px;
  display: flex;
}

.naf-ic {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 9px;
  place-items: center;
  width: 34px;
  height: 34px;
  font-size: 17px;
  transition: all .14s;
  display: grid;
}

.naf-ic:hover {
  border-color: var(--ink-faint);
}

.naf-ic.on {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.naf-ic.gico {
  color: var(--ink-2);
}

.naf-ic.gico.on {
  color: var(--accent-ink);
}

.na-tones {
  flex-wrap: wrap;
  gap: 8px;
  display: flex;
}

.na-tone {
  border: 2px solid var(--surface);
  width: 24px;
  height: 24px;
  box-shadow: 0 0 0 1px var(--border);
  border-radius: 50%;
  transition: all .14s;
}

.na-tone:hover {
  transform: scale(1.1);
}

.na-tone.on {
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink);
}

.naf-input {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  border-radius: 9px;
  outline: none;
  padding: 9px 11px;
  font-size: 13.5px;
}

.naf-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.naf-path {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 9px;
  align-items: center;
  display: flex;
  overflow: hidden;
}

.naf-path:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.naf-path span {
  font-family: var(--mono);
  color: var(--ink-faint);
  padding: 9px 4px 9px 11px;
  font-size: 13px;
}

.naf-path input {
  font-family: var(--mono);
  color: var(--ink);
  background: none;
  border: none;
  outline: none;
  flex: 1;
  padding: 9px 11px 9px 2px;
  font-size: 13px;
}

.na-scrim {
  background: color-mix(in srgb,var(--ink) 40%,transparent);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 120;
  place-items: center;
  padding: 24px;
  display: grid;
  position: fixed;
  inset: 0;
}

.na-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  width: min(540px, 100%);
  max-height: 92dvh;
  box-shadow: var(--shadow-lg);
  border-radius: 18px;
  flex-direction: column;
  display: flex;
  overflow: auto;
}

.na-head {
  border-bottom: 1px solid var(--border-soft);
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  display: flex;
}

.na-badge {
  background: linear-gradient(150deg,var(--accent),var(--honey));
  color: #fff;
  border-radius: 11px;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  display: grid;
}

.na-body {
  flex-direction: column;
  gap: 16px;
  padding: 18px 20px;
  display: flex;
}

.na-field {
  flex-direction: column;
  gap: 7px;
  display: flex;
}

.na-field label {
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
}

.na-textarea {
  border: 1px solid var(--border);
  resize: vertical;
  background: var(--surface-2);
  min-height: 74px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  font-family: var(--font);
  border-radius: 11px;
  outline: none;
  padding: 12px 13px;
}

.na-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: var(--surface);
}

.na-icons {
  grid-template-columns: repeat(6, 1fr);
  gap: 7px;
  display: grid;
}

.na-iconpick {
  align-items: stretch;
  gap: 14px;
  display: flex;
}

.na-preview {
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 12px;
  flex-direction: column;
  flex: none;
  justify-content: center;
  align-items: center;
  gap: 7px;
  width: 84px;
  display: flex;
}

.na-preview-cap {
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 600;
}

.na-pick-col {
  flex-direction: column;
  flex: 1;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  display: flex;
}

.na-iconpick .naf-ic {
  width: 100%;
}

.na-grid2 {
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  display: grid;
}

.na-foot {
  border-top: 1px solid var(--border-soft);
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  display: flex;
}

@media (max-width: 640px) {
  .na-grid2 {
    grid-template-columns: 1fr;
  }
}

.rail-create {
  background: var(--accent);
  width: 100%;
  color: var(--on-accent);
  box-shadow: var(--shadow-sm);
  border-radius: 11px;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 700;
  transition: all .15s;
  display: flex;
}

.rail-create:hover {
  background: var(--accent-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.rail.collapsed .rail-create {
  justify-content: center;
  padding: 10px 0;
}

.pipe-strip {
  padding: 16px 18px;
}

.pipe-flow {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  display: flex;
}

.pipe-ag {
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 11px;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 8px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
}

.pipe-ag-ic {
  color: #fff;
  border-radius: 8px;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  display: grid;
}

.pipe-dispatch {
  color: var(--ink-3);
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
}

.ag-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  display: grid;
}

.ag-card {
  flex-direction: column;
  gap: 13px;
  padding: 16px;
  display: flex;
}

.ag-ic {
  border-radius: 12px;
  flex: none;
  place-items: center;
  width: 42px;
  height: 42px;
  display: grid;
}

.ag-meta {
  flex-wrap: wrap;
  gap: 7px;
  display: flex;
}

.ag-foot {
  border-top: 1px solid var(--border-soft);
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  display: flex;
}

.ag-foot .btn {
  flex: 1;
}

.ag-add {
  border: 1.5px dashed var(--border);
  color: var(--ink-3);
  background: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 160px;
  font-size: 14px;
  font-weight: 600;
  transition: all .15s;
  display: flex;
}

.ag-add:hover {
  border-color: var(--accent);
  color: var(--accent-ink);
  background: var(--accent-soft);
}

.conn-row {
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  display: flex;
}

.conn-ic {
  background: var(--surface-2);
  width: 36px;
  height: 36px;
  color: var(--accent);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  flex: none;
  place-items: center;
  display: grid;
}

.conn-sub {
  font-family: var(--mono);
  color: var(--ink-3);
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 280px;
  margin-top: 2px;
  font-size: 11.5px;
  overflow: hidden;
}

.conn-usage {
  border-left: 1px solid var(--border-soft);
  flex: none;
  min-width: 120px;
  padding: 0 12px;
}

.cu-row {
  color: var(--ink-3);
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  display: flex;
}

.cu-row b {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.cu-row span:first-child {
  width: 48px;
}

.cu-cost {
  color: var(--sage);
  margin-left: auto;
  font-weight: 700;
}

.conn-tbl {
  border-collapse: collapse;
  width: 100%;
}

.conn-tbl td {
  border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
  padding: 12px;
}

.conn-tbl th {
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink-3);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  padding: 11px 12px;
  font-size: 11px;
  font-weight: 700;
}

.conn-tbl tr:last-child td {
  border-bottom: none;
}

.conn-tbl tbody tr:hover {
  background: var(--surface-2);
}

.conn-tbl .status-pill {
  white-space: nowrap;
}

.ct-name {
  align-items: center;
  gap: 11px;
  min-width: 0;
  display: flex;
}

.ct-num {
  text-align: right;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-size: 12.5px;
}

.ct-act {
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  display: flex;
}

.conn-tbl .conn-sub {
  max-width: 170px;
}

.kind-tag {
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink-3);
  background: var(--surface-3);
  border-radius: 6px;
  padding: 1px 7px;
  font-size: 10px;
  font-weight: 700;
}

.pick-row {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  transition: all .14s;
  display: flex;
}

.pick-row:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.pick-ic {
  border-radius: 11px;
  flex: none;
  place-items: center;
  width: 38px;
  height: 38px;
  display: grid;
}

.code-edit {
  line-height: 1.6;
}

.set-tabs {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  gap: 4px;
  width: fit-content;
  margin-bottom: 22px;
  padding: 4px;
  display: flex;
}

.set-tab {
  color: var(--ink-3);
  border-radius: 9px;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 600;
  transition: all .14s;
  display: flex;
}

.set-tab:hover {
  color: var(--ink);
}

.set-tab.on {
  background: var(--surface);
  color: var(--accent-ink);
  box-shadow: var(--shadow-sm);
}

.ava-wrap {
  position: relative;
}

.ava-menu {
  background: var(--surface);
  border: 1px solid var(--border);
  width: 230px;
  box-shadow: var(--shadow-lg);
  z-index: 120;
  border-radius: 13px;
  padding: 6px;
  position: absolute;
  top: 46px;
  right: 0;
}

.ava-head {
  border-bottom: 1px solid var(--border-soft);
  align-items: center;
  gap: 10px;
  margin-bottom: 5px;
  padding: 8px 9px 10px;
  display: flex;
}

.ava-item {
  width: 100%;
  color: var(--ink-2);
  border-radius: 9px;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  font-size: 13.5px;
  font-weight: 500;
  transition: background .12s;
  display: flex;
}

.notif-btn {
  position: relative;
}

.notif-dot {
  background: var(--accent);
  border: 2px solid var(--surface);
  border-radius: 50%;
  width: 8px;
  height: 8px;
  position: absolute;
  top: 7px;
  right: 7px;
}

.notif-menu {
  width: 320px;
  padding: 0;
  overflow: hidden;
}

.notif-head {
  border-bottom: 1px solid var(--border-soft);
  align-items: center;
  padding: 13px 15px;
  display: flex;
}

.notif-list {
  max-height: 340px;
  overflow: auto;
}

.notif-item {
  border-bottom: 1px solid var(--border-soft);
  gap: 11px;
  padding: 11px 14px;
  display: flex;
}

.notif-item.unread {
  background: color-mix(in srgb,var(--accent) 5%,transparent);
}

.notif-item:hover {
  background: var(--surface-2);
}

.notif-ic {
  border-radius: 9px;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  display: grid;
}

.notif-foot {
  width: 100%;
  color: var(--accent-ink);
  background: var(--surface-2);
  border-top: 1px solid var(--border-soft);
  padding: 11px;
  font-size: 12.5px;
  font-weight: 600;
}

.notif-item {
  cursor: pointer;
}

.notif-d {
  color: var(--ink-3);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-top: 1px;
  font-size: 12px;
  display: -webkit-box;
  overflow: hidden;
}

.notif-d.full {
  -webkit-line-clamp: unset;
  overflow: visible;
}

.notif-foot:hover {
  background: var(--accent-soft);
}

.ava-item:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.ava-item.danger {
  color: var(--berry);
}

.ava-item.danger:hover {
  background: color-mix(in srgb,var(--berry) 12%,transparent);
}

.ava-sep {
  background: var(--border-soft);
  height: 1px;
  margin: 5px 0;
}

@media (max-width: 1024px) {
  .ag-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .conn-sub {
    max-width: 160px;
  }
}

.spec-ask-row {
  color: var(--ink-2);
  font-size: 13px;
}

.spec-ask-row b {
  color: var(--accent-ink);
}

.kbd {
  font-family: var(--mono);
  background: var(--accent-soft);
  color: var(--accent-ink);
  border: 1px solid color-mix(in srgb,var(--accent) 25%,transparent);
  border-radius: 6px;
  padding: 1px 7px;
  font-size: 12px;
}

.diff-chip {
  color: var(--sage);
  background: var(--sage-soft);
  border: 1px solid color-mix(in srgb,var(--sage) 22%,transparent);
  border-radius: 9px;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  padding: 5px 11px;
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
}

.live {
  flex-direction: column;
  flex: 1;
  width: 100%;
  min-width: 0;
  height: 100%;
  display: flex;
}

.live-stage {
  background: linear-gradient(var(--grid-line) 1px,transparent 1px),
   linear-gradient(90deg,var(--grid-line) 1px,transparent 1px);
  background-size: 22px 22px;
  flex: 1;
  justify-content: stretch;
  align-items: stretch;
  min-height: 0;
  padding: 0;
  display: flex;
  position: relative;
  overflow: auto;
}

.live-stage.mode-mark {
  cursor: crosshair;
}

.draw-layer {
  z-index: 5;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.draw-tools {
  flex: none;
  gap: 4px;
  display: flex;
}

.flow-panel {
  padding: 30px 24px;
}

.flow-toolbar {
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto 18px;
  display: flex;
}

.flow-zoom {
  flex: none;
  align-items: center;
  gap: 6px;
  display: flex;
}

.flow-zoom-val {
  color: var(--ink-3);
  text-align: center;
  min-width: 38px;
  font-size: 12.5px;
  font-weight: 600;
  font-family: var(--mono);
}

.mermaid-scroll {
  max-width: 760px;
  max-height: calc(100vh - 240px);
  margin: 0 auto;
  overflow: auto;
}

.flow-diagram {
  flex-direction: column;
  align-items: stretch;
  max-width: 420px;
  margin: 0 auto;
  display: flex;
}

.flow-node {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  border-radius: 14px;
  align-items: center;
  gap: 13px;
  padding: 14px 16px;
  display: flex;
}

.flow-node-ic {
  color: #fff;
  border-radius: 11px;
  flex: none;
  place-items: center;
  width: 38px;
  height: 38px;
  display: grid;
}

.flow-node-t {
  font-size: 14.5px;
  font-weight: 700;
}

.flow-node-s {
  color: var(--ink-3);
  margin-top: 1px;
  font-size: 12.5px;
}

.flow-link {
  color: var(--ink-faint);
  place-items: center;
  height: 26px;
  display: grid;
}

.mermaid-box {
  justify-content: center;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
}

.mermaid-box svg {
  max-width: 100%;
  height: auto;
  font-family: var(--font) !important;
}

.live-device {
  border: none;
  border-left: 1px solid var(--border);
  width: 100%;
  max-width: none;
  box-shadow: none;
  -webkit-user-select: none;
  user-select: none;
  background: var(--surface);
  border-radius: 0;
  flex-direction: column;
  display: flex;
  position: relative;
  overflow: hidden;
}

.live-device .sc {
  flex: 1;
}

.live-device .sc-body {
  width: 100%;
  max-width: none;
  padding: 24px 36px;
}

.live-device .sc-head {
  padding-left: 36px;
  padding-right: 36px;
}

.live-device .sc[data-fill] .sc-body {
  grid-template-columns: 1fr 1fr;
  align-content: start;
  gap: 16px 22px;
  display: grid;
}

.live-device .sc[data-fill] .sc-f.span, .live-device .sc[data-fill] .sc-row, .live-device .sc[data-fill] .sc-btn {
  grid-column: 1 / -1;
}

.live-chrome {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border-soft);
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 13px;
  display: flex;
}

.lc-dot {
  background: var(--border);
  border-radius: 50%;
  width: 9px;
  height: 9px;
}

.live-chrome .lc-dot:first-child {
  background: #ff5f57;
}

.live-chrome .lc-dot:nth-child(2) {
  background: #febc2e;
}

.live-chrome .lc-dot:nth-child(3) {
  background: #28c840;
}

.lc-url {
  color: var(--ink-faint);
  font-size: 11.5px;
  font-family: var(--mono);
  white-space: nowrap;
  text-overflow: ellipsis;
  margin-left: 8px;
  overflow: hidden;
}

.live-content {
  animation: .24s scFade;
}

.live-content.navving {
  opacity: .35;
  transition: all .16s;
  transform: scale(.99);
}

@keyframes scFade {
  from {
    opacity: .4;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.live-stage.mode-mark [data-el] {
  cursor: crosshair;
  transition: box-shadow .12s;
}

.live-stage.mode-mark [data-el]:hover {
  box-shadow: none;
}

.live-action {
  z-index: 6;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  border-radius: 13px;
  align-items: center;
  gap: 9px;
  width: min(540px, 100% - 32px);
  max-width: calc(100% - 32px);
  padding: 9px 11px;
  display: flex;
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
}

.sc {
  background: var(--surface);
  flex-direction: column;
  display: flex;
}

.sc-head {
  background: linear-gradient(130deg,var(--accent),var(--honey));
  color: #fff;
  padding: 16px 18px;
}

.sc-h {
  font-size: 17px;
  font-weight: 700;
}

.sc-sub {
  opacity: .92;
  margin-top: 2px;
  font-size: 12px;
}

.sc-body {
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px;
  display: flex;
}

.sc-f {
  flex-direction: column;
  gap: 5px;
  display: flex;
}

.sc-f label {
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
}

.sc-ctrl {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  border-radius: 9px;
  justify-content: space-between;
  align-items: center;
  padding: 9px 11px;
  font-size: 13px;
  display: flex;
}

.sc-ctrl.muted2 {
  color: var(--ink-3);
}

.sc-ctrl.area {
  min-height: 42px;
  color: var(--ink-3);
  align-items: flex-start;
}

.sc-ctrl.dash {
  color: var(--ink-3);
  border-style: dashed;
  justify-content: flex-start;
  gap: 7px;
}

.sc-row {
  gap: 10px;
  display: flex;
}

.sc-btn {
  background: var(--accent);
  height: 40px;
  color: var(--on-accent);
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
}

.sc-btn.ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
}

.sc-item {
  border: 1px solid var(--border-soft);
  background: var(--surface);
  border-radius: 11px;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  display: flex;
}

.sc-it-t {
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 13.5px;
  font-weight: 600;
  overflow: hidden;
}

.sc-it-a {
  color: var(--ink-3);
  margin-top: 2px;
  font-size: 12px;
}

.sc-pill {
  white-space: nowrap;
  border-radius: 20px;
  flex: none;
  padding: 3px 10px;
  font-size: 11.5px;
  font-weight: 700;
}

.sc-kv {
  border-bottom: 1px solid var(--border-soft);
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  font-size: 13.5px;
  display: flex;
}

.sc-kv span {
  color: var(--ink-3);
}

.sc-note {
  background: color-mix(in srgb,var(--honey) 16%,transparent);
  color: #a9761b;
  border-radius: 9px;
  padding: 9px 12px;
  font-size: 12.5px;
  font-weight: 600;
}

.sm-hl {
  border: 2px solid var(--accent);
  pointer-events: none;
  box-shadow: 0 0 0 4px var(--accent-soft);
  border-radius: 9px;
  position: absolute;
}

.sm-rect {
  border: 2px dashed var(--accent);
  background: var(--accent-soft);
  opacity: .55;
  pointer-events: none;
  border-radius: 8px;
  position: absolute;
}

.rmx {
  border-collapse: collapse;
  width: 100%;
  max-width: 560px;
  font-size: 13px;
}

.rmx th, .rmx td {
  text-align: center;
  border-bottom: 1px solid var(--border-soft);
  padding: 11px 14px;
}

.rmx th:first-child, .rmx td:first-child {
  text-align: left;
  font-weight: 600;
}

.rmx thead th {
  background: var(--surface-2);
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 700;
}

.rmx .yes {
  color: var(--sage);
}

.rmx .no {
  color: var(--ink-faint);
}

.pub-scrim {
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  z-index: 80;
  background: #140c066b;
  justify-content: center;
  align-items: center;
  padding: 24px;
  display: flex;
  position: fixed;
  inset: 0;
}

.pub-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 560px;
  max-width: 100%;
  max-height: 90dvh;
  box-shadow: var(--shadow-lg);
  overflow: auto;
}

.pub-head {
  border-bottom: 1px solid var(--border-soft);
  padding: 20px 24px;
}

.pub-body {
  flex-direction: column;
  gap: 20px;
  padding: 22px 24px;
  display: flex;
}

.pipe {
  align-items: center;
  display: flex;
}

.pipe-step {
  text-align: center;
  flex: 1;
}

.pipe-dot {
  border: 2px solid var(--border);
  background: var(--surface-2);
  width: 34px;
  height: 34px;
  color: var(--ink-3);
  border-radius: 50%;
  place-items: center;
  margin: 0 auto 7px;
  font-weight: 700;
  display: grid;
}

.pipe-step.done .pipe-dot {
  background: var(--sage);
  border-color: var(--sage);
  color: #fff;
}

.pipe-step.now .pipe-dot {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.pipe-line {
  background: var(--border);
  flex: none;
  width: 40px;
  height: 2.5px;
}

.pipe-line.done {
  background: var(--sage);
}

.pipe-cap {
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
}

.gov-item {
  border-bottom: 1px solid var(--border-soft);
  align-items: center;
  gap: 11px;
  padding: 11px 0;
  display: flex;
}

.gov-item:last-child {
  border-bottom: none;
}

.gov-ic {
  background: var(--surface-2);
  width: 32px;
  height: 32px;
  color: var(--accent);
  border-radius: 9px;
  flex: none;
  place-items: center;
  display: grid;
}

.pub-foot {
  border-top: 1px solid var(--border-soft);
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  display: flex;
}

.ver-hist {
  margin-top: 18px;
}

.ver-hist-h {
  color: var(--ink-2);
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
}

.ver-hist-h svg {
  color: var(--accent);
}

.ver-row {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  padding: 13px 16px;
  display: flex;
}

.ver-row.active {
  border-color: color-mix(in srgb,var(--sage) 40%,transparent);
  background: color-mix(in srgb,var(--sage) 6%,var(--surface));
}

.ver-tag {
  font-family: var(--mono);
  color: var(--accent-ink);
  background: var(--accent-soft);
  border-radius: 7px;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 600;
}

.callout {
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  color: var(--ink-2);
  border-radius: 12px;
  gap: 11px;
  padding: 13px 15px;
  font-size: 13px;
  line-height: 1.5;
  display: flex;
}

.callout svg {
  color: var(--accent);
  flex: none;
  margin-top: 1px;
}

.selectable {
  cursor: pointer;
  transition: box-shadow .14s, background .14s;
}

.selectable:hover {
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.flow-row.selectable:hover, .data-row.selectable:hover {
  background: var(--surface-2);
}

.sel-on {
  background: var(--accent-soft);
  box-shadow: 0 0 0 2px var(--accent) !important;
}

.ctx-chip {
  background: var(--accent-soft);
  color: var(--accent-ink);
  border: 1px solid color-mix(in srgb,var(--accent) 25%,transparent);
  border-radius: 9px;
  align-self: flex-start;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  margin-bottom: 8px;
  padding: 6px 8px 6px 11px;
  font-size: 12.5px;
  display: inline-flex;
}

.ctx-chip b {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
  overflow: hidden;
}

.ctx-chip button {
  width: 18px;
  height: 18px;
  color: var(--accent-ink);
  border-radius: 5px;
  flex: none;
  place-items: center;
  display: grid;
}

.ctx-chip button:hover {
  background: color-mix(in srgb,var(--accent) 16%,transparent);
}

.lc-stack {
  font-family: var(--mono);
  color: #fff;
  background: #0f172a;
  border-radius: 20px;
  margin-left: auto;
  padding: 2px 8px;
  font-size: 10.5px;
  font-weight: 600;
}

.mode-toggle {
  border-bottom: 1px solid var(--border-soft);
  background: var(--surface-2);
  gap: 4px;
  padding: 8px 14px;
  display: flex;
}

.mode-toggle button {
  color: var(--ink-3);
  border-radius: 8px;
  flex: 1;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 7px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
}

.mode-toggle button.on {
  background: var(--surface);
  color: var(--accent-ink);
  box-shadow: var(--shadow-sm);
}

.mode-toggle button.on.op {
  color: #0891b2;
}

.op-wrap {
  flex-direction: column;
  height: 100%;
  display: flex;
  position: relative;
}

.op-bar {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  flex: none;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 16px;
  display: flex;
}

.op-stage {
  flex-direction: column;
  flex: 1;
  gap: 16px;
  padding: 22px;
  display: flex;
  overflow: auto;
}

.op-metrics {
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  display: grid;
}

.op-metric {
  padding: 14px 16px;
}

.op-m-k {
  color: var(--ink-3);
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  display: flex;
}

.op-m-v {
  letter-spacing: -.02em;
  margin-top: 6px;
  font-size: 24px;
  font-weight: 700;
}

.op-m-d {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 600;
}

.op-grid {
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  display: grid;
}

.op-card {
  padding: 16px 18px;
}

.op-h {
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
}

.op-h svg {
  color: var(--accent);
}

.op-cont {
  border: 1px solid var(--border-soft);
  border-radius: 11px;
  margin-bottom: 11px;
  padding: 12px 13px;
}

.op-cont-h {
  align-items: center;
  gap: 8px;
  margin-bottom: 11px;
  display: flex;
}

.op-cont-ic {
  color: #fff;
  border-radius: 7px;
  flex: none;
  place-items: center;
  width: 24px;
  height: 24px;
  display: grid;
}

.op-pending {
  z-index: 8;
  background: var(--surface);
  border: 1px solid var(--border);
  width: min(520px, 100% - 32px);
  box-shadow: var(--shadow-lg);
  border-radius: 13px;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  display: flex;
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
}

.op-res {
  margin-bottom: 14px;
}

.op-res-top {
  justify-content: space-between;
  margin-bottom: 5px;
  font-size: 12.5px;
  font-weight: 600;
  display: flex;
}

.op-res-top .muted {
  font-weight: 500;
  font-family: var(--mono);
  font-size: 11.5px;
}

.op-res-bar {
  background: var(--surface-3);
  border-radius: 20px;
  height: 7px;
  overflow: hidden;
}

.op-res-bar div {
  border-radius: 20px;
  height: 100%;
  transition: width .25s;
}

.op-res-act {
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  display: flex;
}

.op-res-act button {
  border: 1px solid var(--border);
  background: var(--surface);
  width: 26px;
  height: 26px;
  color: var(--ink-2);
  border-radius: 7px;
  place-items: center;
  display: grid;
}

.op-res-act button:hover {
  border-color: var(--accent);
  color: var(--accent-ink);
}

.op-res-act span {
  text-align: center;
  min-width: 34px;
  font-size: 12.5px;
  font-weight: 700;
}

.op-log {
  font-family: var(--mono);
  flex-direction: column;
  gap: 5px;
  max-height: 240px;
  font-size: 11.5px;
  display: flex;
  overflow: auto;
}

.op-log-row {
  align-items: baseline;
  gap: 9px;
  display: flex;
}

.op-log-t {
  color: var(--ink-faint);
  flex: none;
}

.op-log-lvl {
  flex: none;
  width: 42px;
  font-weight: 700;
}

.op-log-m {
  color: var(--ink-2);
}

@media (max-width: 1024px) {
  .op-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .op-grid {
    grid-template-columns: 1fr;
  }
}

.shot-card {
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: 9px;
  flex: none;
  align-items: center;
  gap: 8px;
  max-width: 150px;
  padding: 5px 9px 5px 6px;
  display: flex;
}

.shot-thumb {
  background: linear-gradient(130deg,var(--accent),var(--honey));
  color: #fff;
  border-radius: 6px;
  flex: none;
  place-items: center;
  width: 26px;
  height: 26px;
  display: grid;
}

.shot-t {
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 11.5px;
  font-weight: 700;
  overflow: hidden;
}

.shot-s {
  color: var(--ink-3);
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 120px;
  font-size: 10.5px;
  overflow: hidden;
}

.shot-input {
  border: 1px solid var(--border);
  background: var(--surface);
  min-width: 0;
  color: var(--ink);
  border-radius: 9px;
  outline: none;
  flex: 1;
  padding: 8px 11px;
  font-size: 13px;
}

.shot-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.live-action {
  z-index: 6;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  border-radius: 13px;
  align-items: center;
  gap: 9px;
  width: min(540px, 100% - 32px);
  padding: 9px 11px;
  display: flex;
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
}

.live-stage.mode-mark [data-el] {
  cursor: pointer;
}

.sm-hl {
  border: 2px solid var(--accent);
  pointer-events: none;
  box-shadow: 0 0 0 4px var(--accent-soft);
  z-index: 4;
  border-radius: 8px;
  position: absolute;
}

.shot-attach {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  border-radius: 11px;
  align-items: center;
  gap: 9px;
  margin-top: 8px;
  padding: 7px 11px 7px 7px;
  display: flex;
}

.shot-attach-thumb {
  background: linear-gradient(130deg,var(--accent),var(--honey));
  color: #fff;
  border-radius: 8px;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  display: grid;
}

.msg.user .shot-attach {
  background: #ffffff2e;
  border-color: #ffffff4d;
}

.msg.user .shot-attach .shot-t {
  color: #fff;
}

.msg.user .shot-attach .shot-s {
  color: #ffffffd9;
}

.toast {
  z-index: 200;
  background: var(--ink);
  color: var(--bg);
  box-shadow: var(--shadow-lg);
  border-radius: 12px;
  align-items: center;
  gap: 9px;
  padding: 12px 18px;
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
}

.toast svg {
  color: var(--sage);
}

.code-wrap {
  height: 100%;
  display: flex;
}

.code-tree {
  border-right: 1px solid var(--border);
  background: var(--surface);
  flex: none;
  width: 210px;
  padding: 10px 8px;
  overflow: auto;
}

.code-tree-h {
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-faint);
  padding: 6px 8px 8px;
  font-size: 11px;
  font-weight: 700;
}

.code-node {
  cursor: pointer;
  border-radius: 7px;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  transition: background .12s;
  display: flex;
}

.code-node:hover {
  background: var(--surface-2);
}

.code-node.on {
  background: var(--accent-soft);
}

.code-main {
  background: var(--surface);
  flex-direction: column;
  flex: 1;
  min-width: 0;
  display: flex;
}

.code-tabbar {
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  flex: none;
  align-items: stretch;
  height: 38px;
  display: flex;
}

.code-tab {
  font-family: var(--mono);
  color: var(--ink-3);
  cursor: pointer;
  border-right: 1px solid var(--border);
  align-items: center;
  padding: 0 16px;
  font-size: 12.5px;
  display: flex;
}

.code-tab.on {
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
}

.code-body {
  font-family: var(--mono);
  background: var(--surface);
  flex: 1;
  margin: 0;
  padding: 14px 0;
  font-size: 12.5px;
  line-height: 1.7;
  overflow: auto;
}

.code-line {
  white-space: pre;
  padding: 0 16px;
  display: flex;
}

.code-line:hover {
  background: var(--surface-2);
}

.code-ln {
  width: 34px;
  color: var(--ink-faint);
  -webkit-user-select: none;
  user-select: none;
  text-align: right;
  flex: none;
  padding-right: 16px;
}

.c-kw {
  color: #8250df;
  font-weight: 600;
}

.c-str {
  color: #0a7b53;
}

.c-com {
  color: var(--ink-faint);
  font-style: italic;
}

[data-theme="dark"] .c-kw {
  color: #c4a8ff;
}

[data-theme="dark"] .c-str {
  color: #6fd7a8;
}

.db-wrap {
  height: 100%;
  display: flex;
}

.db-side {
  border-right: 1px solid var(--border);
  background: var(--surface);
  flex: none;
  width: 230px;
  padding: 14px 12px;
  overflow: auto;
}

.db-side-h {
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
}

.db-coll {
  width: 100%;
  color: var(--ink-2);
  border: 1px solid #0000;
  border-radius: 9px;
  align-items: center;
  gap: 9px;
  margin-top: 2px;
  padding: 9px 11px;
  transition: all .14s;
  display: flex;
}

.db-coll:hover {
  background: var(--surface-2);
}

.db-coll.on {
  background: var(--accent-soft);
  color: var(--accent-ink);
  border-color: color-mix(in srgb,var(--accent) 22%,transparent);
}

.db-coll .badge {
  background: var(--surface-3);
  color: var(--ink-3);
  border-radius: 20px;
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 600;
}

.db-shared {
  color: var(--accent-ink);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb,var(--accent) 30%,transparent);
  border-radius: 5px;
  padding: 1px 5px;
  font-size: 9.5px;
  font-weight: 700;
}

.db-main {
  flex: 1;
  min-width: 0;
  padding: 20px 24px;
  overflow: auto;
}

.db-schema {
  border: 1px solid var(--border);
  border-radius: 12px;
  flex-direction: column;
  display: flex;
  overflow: hidden;
}

.db-field {
  border-bottom: 1px solid var(--border-soft);
  background: var(--surface);
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  display: flex;
}

.db-field:last-child {
  border-bottom: none;
}

.dep-wrap {
  flex-direction: column;
  gap: 18px;
  max-width: 680px;
  margin: 0 auto;
  padding: 26px 30px;
  display: flex;
}

.dep-head {
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  display: flex;
}

.dep-url {
  font-family: var(--mono);
  color: var(--sage);
  background: var(--sage-soft);
  border: 1px solid color-mix(in srgb,var(--sage) 25%,transparent);
  border-radius: 10px;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
}

.dep-stages {
  flex-direction: column;
  gap: 8px;
  display: flex;
}

.dep-stage {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  transition: all .2s;
  display: flex;
}

.dep-stage.wait {
  opacity: .5;
}

.dep-stage.now {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.dep-ic {
  background: var(--surface-2);
  width: 32px;
  height: 32px;
  color: var(--ink-3);
  border-radius: 9px;
  flex: none;
  place-items: center;
  display: grid;
}

.dep-stage.done .dep-ic {
  background: var(--sage);
  color: #fff;
}

.dep-stage.now .dep-ic {
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.dep-s-t {
  font-size: 14px;
  font-weight: 600;
}

.dep-s-s {
  color: var(--ink-3);
  font-size: 12px;
  font-family: var(--mono);
  margin-top: 1px;
}

.dep-term {
  border: 1px solid var(--border);
  background: #0f172a;
  border-radius: 12px;
  overflow: hidden;
}

.dep-term-h {
  color: #94a3b8;
  font-size: 11.5px;
  font-family: var(--mono);
  border-bottom: 1px solid #1e293b;
  align-items: center;
  gap: 6px;
  padding: 9px 13px;
  display: flex;
}

.dep-term pre {
  font-family: var(--mono);
  color: #cbd5e1;
  white-space: pre-wrap;
  word-break: break-all;
  margin: 0;
  padding: 13px 15px;
  font-size: 12px;
  line-height: 1.7;
}

.dep-term .log-ok {
  color: #6ee7b7;
}

.log-cursor {
  color: #6ee7b7;
  animation: 1.1s step-end infinite blink;
}

.thumb {
  border-radius: 12px;
  flex-direction: column;
  height: 118px;
  padding: 10px;
  display: flex;
  overflow: hidden;
}

.thumb-bar {
  align-items: center;
  gap: 6px;
  display: flex;
}

.thumb-body {
  flex-direction: column;
  flex: 1;
  justify-content: center;
  gap: 7px;
  padding: 4px 2px;
  display: flex;
}

.thumb-line {
  height: 9px;
}

.thumb-card {
  flex: 1;
  height: 30px;
}

.thumb-btn {
  width: 46%;
  height: 14px;
}

.arch {
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 22px;
  display: flex;
}

.arch-domain {
  font-family: var(--mono);
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
}

.arch-mid {
  flex-direction: column;
  align-items: center;
  padding: 14px 0;
  display: flex;
  position: relative;
}

.arch-mid:before {
  content: "";
  background: var(--border);
  width: 2px;
  height: 14px;
  position: absolute;
  top: 0;
}

.arch-mid:after {
  content: "";
  background: var(--border);
  width: 2px;
  height: 14px;
  position: absolute;
  bottom: 0;
}

.arch-core {
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  display: flex;
}

.arch-core-box {
  color: var(--accent-ink);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb,var(--accent) 25%,transparent);
  border-radius: 11px;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  font-size: 13.5px;
  font-weight: 700;
  display: inline-flex;
}

.arch-note {
  color: var(--ink-3);
  margin-top: 9px;
  font-size: 12px;
}

.arch-apps {
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 11px;
  width: 100%;
  margin-top: 6px;
  display: grid;
}

.arch-app {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  border-radius: 11px;
  overflow: hidden;
}

.aa-top {
  align-items: center;
  gap: 9px;
  padding: 11px 13px 10px;
  display: flex;
}

.aa-ico {
  width: 30px;
  height: 30px;
  box-shadow: var(--shadow-sm);
  border-radius: 9px;
  flex: none;
  place-items: center;
  display: grid;
}

.aa-name {
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 13.5px;
  font-weight: 700;
  overflow: hidden;
}

.app-glyph {
  width: 38px;
  height: 38px;
  box-shadow: var(--shadow-sm);
  border-radius: 11px;
  flex: none;
  place-items: center;
  display: grid;
}

.nav-glyph {
  border-radius: 8px;
  place-items: center;
  width: 26px;
  height: 26px;
  display: grid;
}

.aa-foot {
  border-top: 1px solid var(--border-soft);
  background: var(--surface-2);
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  display: flex;
}

.aa-slug {
  color: var(--ink-2);
  white-space: nowrap;
  text-overflow: ellipsis;
  flex: 1;
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
}

.aa-db {
  color: var(--ink-3);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  flex: none;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  font-size: 10.5px;
  font-weight: 600;
  display: inline-flex;
}

.aa-db-dot {
  border-radius: 50%;
  width: 7px;
  height: 7px;
}

.arch-cap {
  color: var(--ink-3);
  text-align: center;
  margin-top: 14px;
  font-size: 12.5px;
}

.plat-grid {
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  display: grid;
}

.plat-card {
  padding: 18px;
}

.plat-ic {
  border-radius: 12px;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  display: grid;
}

.cont-row {
  border-bottom: 1px solid var(--border-soft);
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  display: flex;
}

.cont-row:last-child {
  border-bottom: none;
}

.cont-meta {
  color: var(--ink-3);
  font-size: 12px;
  font-family: var(--mono);
}

.auth-tabs {
  border-bottom: 1px solid var(--border-soft);
  gap: 4px;
  padding: 10px 16px 0;
  display: flex;
}

.auth-tabs button {
  color: var(--ink-3);
  border-bottom: 2px solid #0000;
  border-radius: 9px 9px 0 0;
  margin-bottom: -1px;
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 600;
}

.auth-tabs button.on {
  color: var(--accent-ink);
  border-bottom-color: var(--accent);
}

.na-body .auth-prov {
  border: 1px solid var(--border);
  border-radius: 11px;
  align-items: center;
  gap: 11px;
  padding: 12px;
  display: flex;
}

.na-body .auth-user {
  border: 1px solid var(--border-soft);
  border-radius: 11px;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  display: flex;
}

.src-tag {
  white-space: nowrap;
  border-radius: 20px;
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 700;
}

.auth-add {
  border: 1.5px dashed var(--border);
  border-radius: 11px;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  display: flex;
}

.capp {
  border-bottom: 1px solid var(--border-soft);
}

.capp:last-child {
  border-bottom: none;
}

.capp-head {
  background: none;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 12px 18px;
  transition: background .12s;
  display: flex;
}

.capp-head:hover {
  background: var(--surface-2);
}

.capp-tree {
  flex-direction: column;
  gap: 2px;
  padding: 2px 18px 12px 30px;
  display: flex;
}

.csub-row {
  background: var(--surface-2);
  border-radius: 9px;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  display: flex;
}

.csub-line {
  border-left: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
  border-radius: 0 0 0 3px;
  flex: none;
  width: 10px;
  height: 10px;
  margin-right: 2px;
}

.csub-acts {
  gap: 4px;
  margin-left: 10px;
  display: flex;
}

.cact {
  border: 1px solid var(--border);
  background: var(--surface);
  width: 26px;
  height: 26px;
  color: var(--ink-2);
  border-radius: 7px;
  place-items: center;
  transition: all .13s;
  display: grid;
}

.cact:hover {
  border-color: var(--accent);
  color: var(--accent-ink);
  background: var(--accent-soft);
}

.cact:disabled {
  opacity: .5;
}

.cact.play:hover {
  border-color: var(--sage);
  color: var(--sage);
  background: var(--sage-soft);
}

@media (max-width: 1100px) {
  .plat-grid {
    grid-template-columns: 1fr;
  }
}

.grp-head {
  color: var(--ink-2);
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
}

.grp-head svg {
  color: var(--accent);
}

.grp-count {
  background: var(--surface-3);
  color: var(--ink-3);
  border-radius: 20px;
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 600;
}

.app-card {
  position: relative;
}

.card-actions {
  opacity: 0;
  z-index: 3;
  gap: 6px;
  transition: all .16s;
  display: flex;
  position: absolute;
  top: 12px;
  right: 12px;
  transform: translateY(-4px);
}

.app-card:hover .card-actions {
  opacity: 1;
  transform: none;
}

.ca-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  width: 30px;
  height: 30px;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
  border-radius: 8px;
  place-items: center;
  transition: all .14s;
  display: grid;
}

.ca-btn:hover {
  color: var(--accent-ink);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.ca-btn.danger:hover {
  color: var(--berry);
  border-color: var(--berry);
  background: color-mix(in srgb,var(--berry) 12%,transparent);
}

.del-warn {
  background: color-mix(in srgb,var(--berry) 10%,transparent);
  border: 1px solid color-mix(in srgb,var(--berry) 25%,transparent);
  color: var(--ink-2);
  border-radius: 11px;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
  display: flex;
}

.del-warn svg {
  color: var(--berry);
  flex: none;
  margin-top: 1px;
}

@media (max-width: 640px) {
  .set-tabs {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: auto;
    max-width: 100%;
    overflow-x: auto;
  }

  .set-tabs::-webkit-scrollbar {
    display: none;
  }

  .set-tab {
    white-space: nowrap;
    flex: none;
  }

  .ag-grid, .op-metrics {
    grid-template-columns: 1fr;
  }

  .conn-row, .csub-row {
    flex-wrap: wrap;
  }

  .csub-acts {
    margin-left: auto;
  }

  .na-icons {
    grid-template-columns: repeat(5, 1fr);
  }

  .naf-input, .na-textarea, .shot-input, .naf-path input {
    font-size: 16px;
  }
}

@media (pointer: coarse) {
  .card-actions {
    opacity: 1;
    transform: none;
  }

  .ca-btn, .cact, .op-res-act button {
    width: 44px;
    height: 44px;
  }

  .set-tab, .btn-sm {
    min-height: 44px;
  }
}

/* [project]/src/app/login.css [app-client] (css) */
.login {
  height: 100dvh;
  display: flex;
  overflow: hidden;
}

.login-aside {
  background: radial-gradient(900px 500px at 20% 10%, color-mix(in srgb, var(--honey) 32%, transparent), transparent 60%),
    radial-gradient(800px 600px at 90% 90%, color-mix(in srgb, var(--accent) 38%, transparent), transparent 55%),
    linear-gradient(150deg, var(--accent-strong), var(--accent) 55%, var(--honey));
  color: #fff;
  flex-direction: column;
  flex: none;
  width: 48%;
  padding: 48px 52px;
  display: flex;
  position: relative;
  overflow: hidden;
}

.login-aside:after {
  content: "";
  opacity: .5;
  pointer-events: none;
  background-image: linear-gradient(#ffffff0f 1px, #0000 1px), linear-gradient(90deg, #ffffff0f 1px, #0000 1px);
  background-size: 26px 26px;
  position: absolute;
  inset: 0;
  -webkit-mask-image: radial-gradient(120% 120% at 30% 20%, #000, #0000 75%);
  mask-image: radial-gradient(120% 120% at 30% 20%, #000, #0000 75%);
}

.login-brand {
  z-index: 2;
  align-items: center;
  gap: 12px;
  display: flex;
  position: relative;
}

.login-brand .lm {
  background: #fff;
  border-radius: 14px;
  place-items: center;
  width: 46px;
  height: 46px;
  display: grid;
  box-shadow: 0 8px 22px #783c0a38, inset 0 0 0 1px #fff9;
}

.login-aside h1 {
  letter-spacing: -.02em;
  z-index: 2;
  text-wrap: balance;
  max-width: 440px;
  margin: 0;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.22;
  position: relative;
}

.login-aside .lead {
  opacity: .92;
  z-index: 2;
  max-width: 400px;
  margin: 22px 0 0;
  font-size: 15.5px;
  line-height: 1.6;
  position: relative;
}

.login-aside .credit {
  z-index: 2;
  opacity: .8;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  display: flex;
  position: relative;
}

.demo {
  z-index: 2;
  align-self: stretch;
  margin: 30px 0;
  position: relative;
}

.demo-prompt {
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  background: #ffffff29;
  border: 1px solid #ffffff47;
  border-radius: 14px;
  align-items: center;
  gap: 11px;
  max-width: 380px;
  padding: 13px 15px;
  font-size: 14.5px;
  display: flex;
  box-shadow: 0 8px 30px #0000001f;
}

.demo-prompt .cur {
  vertical-align: -3px;
  background: #fff;
  width: 2px;
  height: 17px;
  margin-left: 1px;
  animation: 1s step-end infinite caret;
  display: inline-block;
}

@keyframes caret {
  50% {
    opacity: 0;
  }
}

.demo-arrow {
  opacity: .85;
  place-items: center;
  margin: 10px 0;
  display: grid;
}

.demo-arrow svg {
  animation: 2.4s ease-in-out infinite floaty;
}

@keyframes floaty {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(5px);
  }
}

.demo-flow {
  gap: 10px;
  max-width: 400px;
  display: flex;
}

.demo-node {
  color: var(--ink);
  background: #ffffffeb;
  border-radius: 13px;
  flex: 1;
  padding: 12px;
  animation: .5s cubic-bezier(.2, .8, .2, 1) backwards nodeIn;
  box-shadow: 0 10px 30px #00000029;
}

.demo-node:first-child {
  animation-delay: .1s;
}

.demo-node:nth-child(2) {
  animation-delay: .25s;
}

.demo-node:nth-child(3) {
  animation-delay: .4s;
}

@keyframes nodeIn {
  from {
    transform: translateY(14px)scale(.96);
  }

  to {
    transform: none;
  }
}

.demo-node .dn-ico {
  color: #fff;
  border-radius: 8px;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 8px;
  display: grid;
}

.demo-node .dn-t {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.2;
}

.demo-node .dn-s {
  color: var(--ink-3);
  margin-top: 2px;
  font-size: 11px;
}

.login-main {
  background: radial-gradient(900px 500px at 80% -10%, var(--bg-grad-1), transparent 60%), var(--bg);
  flex-direction: column;
  flex: 1;
  align-items: center;
  min-width: 0;
  padding: 40px;
  display: flex;
  position: relative;
  overflow-y: auto;
}

.login-card {
  width: 100%;
  max-width: 380px;
  margin-block: auto;
}

.login-top {
  align-items: center;
  gap: 10px;
  display: flex;
  position: absolute;
  top: 22px;
  right: 26px;
}

.login-h {
  letter-spacing: -.02em;
  margin: 0;
  font-size: 27px;
  font-weight: 700;
}

.login-sub {
  color: var(--ink-3);
  margin: 7px 0 28px;
  font-size: 15px;
}

.sso {
  flex-direction: column;
  gap: 10px;
  display: flex;
}

.sso-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  width: 100%;
  color: var(--ink);
  white-space: nowrap;
  border-radius: 12px;
  justify-content: center;
  align-items: center;
  gap: 11px;
  padding: 12px 16px;
  font-size: 14.5px;
  font-weight: 600;
  transition: all .15s;
  display: flex;
}

.sso-btn:hover {
  border-color: var(--ink-faint);
  background: var(--surface-2);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.sso-btn .g {
  flex: none;
  width: 20px;
  height: 20px;
}

.divider {
  color: var(--ink-faint);
  white-space: nowrap;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
  font-size: 12.5px;
  font-weight: 600;
  display: flex;
}

.divider:before, .divider:after {
  content: "";
  background: var(--border);
  flex: 1;
  height: 1px;
}

.field {
  margin-bottom: 15px;
}

.field label {
  color: var(--ink-2);
  margin-bottom: 7px;
  font-size: 13.5px;
  font-weight: 600;
  display: block;
}

.field .inp {
  border: 1px solid var(--border);
  background: var(--surface);
  width: 100%;
  color: var(--ink);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14.5px;
  transition: all .15s;
}

.field .inp:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  outline: none;
}

.field .inp-wrap {
  align-items: center;
  display: flex;
  position: relative;
}

.field .inp-wrap .inp {
  padding-right: 44px;
}

.field .eye {
  width: 32px;
  height: 32px;
  color: var(--ink-3);
  border-radius: 8px;
  place-items: center;
  display: grid;
  position: absolute;
  right: 8px;
}

.field .eye:hover {
  color: var(--ink);
  background: var(--surface-2);
}

.row-between {
  justify-content: space-between;
  align-items: center;
  margin: 4px 0 22px;
  display: flex;
}

.check {
  color: var(--ink-2);
  cursor: pointer;
  white-space: nowrap;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  display: flex;
}

.check .box {
  border: 1.5px solid var(--border);
  border-radius: 5px;
  flex: none;
  place-items: center;
  width: 18px;
  height: 18px;
  transition: all .15s;
  display: grid;
}

.check .box.on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.link {
  color: var(--accent-ink);
  white-space: nowrap;
  font-size: 13.5px;
  font-weight: 600;
}

.link:hover {
  text-decoration: underline;
}

.login-foot {
  text-align: center;
  color: var(--ink-3);
  margin-top: 26px;
  font-size: 14px;
}

.trust {
  opacity: .75;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 30px;
  display: flex;
}

.trust span {
  color: var(--ink-3);
  white-space: nowrap;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  display: flex;
}

@media (max-width: 1024px) {
  .login-aside {
    display: none;
  }
}

@media (max-width: 640px) {
  .login-main {
    padding: 20px;
  }

  .login-top {
    align-self: flex-end;
    margin: 0 0 6px;
    position: static;
  }

  .field .inp {
    font-size: 16px;
  }
}

@media (pointer: coarse) {
  .field .eye {
    position: absolute;
  }

  .field .eye:after {
    content: "";
    position: absolute;
    inset: -6px;
  }
}

.role-pick {
  flex-direction: column;
  gap: 9px;
  margin-bottom: 22px;
  display: flex;
}

.role-opt {
  border: 1.5px solid var(--border);
  background: var(--surface);
  width: 100%;
  color: var(--ink);
  text-align: left;
  border-radius: 13px;
  align-items: center;
  gap: 13px;
  padding: 13px 15px;
  transition: all .15s;
  display: flex;
}

.role-opt:hover {
  border-color: var(--ink-faint);
}

.role-opt.on {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.role-opt > svg {
  color: var(--ink-3);
  flex: none;
}

.role-opt.on > svg {
  color: var(--accent-ink);
}

.role-opt .ro-t {
  font-size: 14px;
  font-weight: 700;
}

.role-opt .ro-s {
  color: var(--ink-3);
  margin-top: 1px;
  font-size: 12px;
}

.role-opt > div {
  flex: 1;
  min-width: 0;
}

.ro-radio {
  border: 2px solid var(--border);
  border-radius: 50%;
  flex: none;
  width: 20px;
  height: 20px;
  transition: all .15s;
  position: relative;
}

.role-opt.on .ro-radio {
  border-color: var(--accent);
}

.role-opt.on .ro-radio:after {
  content: "";
  background: var(--accent);
  border-radius: 50%;
  position: absolute;
  inset: 3px;
}

/*# sourceMappingURL=src_app_1kz7ywr._.css.map*/