/* [project]/app/globals.css [app-client] (css) */
:root {
  --bg: #f3f6f9;
  --surface: #fff;
  --surface-2: #f8fafc;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --faint: #94a3b8;
  --line: #e2e8f0;
  --line-soft: #eef2f7;
  --accent: #0d9488;
  --accent-2: #14b8a6;
  --accent-ink: #0f766e;
  --accent-soft: #e6f7f5;
  --accent-glow: #0d94882e;
  --ok: #059669;
  --ok-soft: #e8f8f1;
  --warn: #d97706;
  --warn-soft: #fff7eb;
  --danger: #e11d48;
  --danger-soft: #ffecef;
  --info: #2563eb;
  --info-soft: #eef4ff;
  --side: #0b1220;
  --side-2: #111a2e;
  --side-text: #cbd5e1;
  --side-muted: #7c8ba1;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-xs: 8px;
  --shadow-xs: 0 1px 2px #0f172a0a;
  --shadow-sm: 0 1px 2px #0f172a0a, 0 4px 14px #0f172a0a;
  --shadow-md: 0 2px 4px #0f172a0a, 0 12px 28px #0f172a12;
  --shadow-lg: 0 20px 50px #0f172a29;
  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: radial-gradient(1200px 600px at 10% -10%, #14b8a614, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #2563eb0d, transparent 50%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
}

code {
  font-family: var(--mono);
  color: var(--ink-2);
  background: #eef2f7;
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 11.5px;
}

a {
  color: var(--accent-ink);
  text-decoration: none;
}

::selection {
  background: var(--accent-glow);
}

.shell {
  flex-direction: column;
  min-height: 100vh;
  display: flex;
}

.topnav {
  background: linear-gradient(180deg, var(--side) 0%, var(--side-2) 100%);
  color: var(--side-text);
  z-index: 30;
  border-bottom: 1px solid #ffffff0d;
  align-items: center;
  gap: 20px;
  padding: 12px 26px;
  display: flex;
  position: sticky;
  top: 0;
}

.topnav-brand {
  align-items: center;
  gap: 12px;
  min-width: 240px;
  display: flex;
}

.brand-mark {
  color: #fff;
  background: linear-gradient(145deg, #2dd4bf 0%, #0d9488 55%, #0f766e 100%);
  border-radius: 12px;
  place-items: center;
  width: 40px;
  height: 40px;
  font-weight: 800;
  display: grid;
  box-shadow: 0 8px 20px #0d948859, inset 0 1px #ffffff40;
}

.brand-title {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.brand-sub {
  color: var(--side-muted);
  margin-top: 1px;
  font-size: 11.5px;
}

.terminal-switch {
  background: #00000040;
  border: 1px solid #ffffff0f;
  border-radius: 12px;
  gap: 4px;
  margin: 0 auto;
  padding: 4px;
  display: flex;
}

.term-btn {
  color: var(--side-text);
  border-radius: 9px;
  flex-direction: column;
  align-items: flex-start;
  padding: 7px 16px;
  line-height: 1.25;
  transition: all .15s;
  display: flex;
}

.term-btn b {
  font-size: 13px;
  font-weight: 650;
}

.term-btn span {
  color: var(--side-muted);
  font-size: 10.5px;
}

.term-btn:hover {
  color: #fff;
  background: #ffffff0f;
}

.term-btn.active {
  color: #5eead4;
  background: linear-gradient(#2dd4bf40, #0d948833);
  box-shadow: inset 0 0 0 1px #5eead440;
}

.term-btn.active span {
  color: #99f6e4;
}

.topnav-side {
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  min-width: 240px;
  display: flex;
}

.ghost-link {
  color: var(--side-text);
  opacity: .85;
  font-size: 12px;
}

.ghost-link:hover {
  opacity: 1;
  color: #5eead4;
}

.env-chip {
  color: #5eead4;
  background: #2dd4bf1a;
  border: 1px solid #2dd4bf26;
  border-radius: 999px;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  font-size: 11px;
  display: inline-flex;
}

.env-chip:before {
  content: "";
  background: #2dd4bf;
  border-radius: 50%;
  width: 6px;
  height: 6px;
}

.stage {
  flex: 1;
  padding: 26px;
}

.phone-stage {
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 28px;
  display: flex;
}

.phone {
  background: #0b1220;
  border-radius: 44px;
  flex-shrink: 0;
  width: 390px;
  height: 800px;
  padding: 12px;
  position: relative;
  box-shadow: 0 30px 70px #0f172a47, inset 0 0 0 2px #ffffff0f;
}

.phone-notch {
  z-index: 5;
  background: #0b1220;
  border-radius: 0 0 16px 16px;
  width: 118px;
  height: 24px;
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
}

.phone-screen {
  background: #f3f6f9;
  border-radius: 34px;
  flex-direction: column;
  height: 100%;
  display: flex;
  position: relative;
  overflow: hidden;
}

.mp-statusbar {
  color: #0f172a;
  background: #fff;
  justify-content: space-between;
  align-items: center;
  padding: 12px 22px 4px;
  font-size: 12px;
  font-weight: 650;
  display: flex;
}

.mp-statusbar .dots {
  align-items: center;
  gap: 3px;
  display: flex;
}

.mp-statusbar .dots i {
  background: #0f172a;
  border-radius: 50%;
  width: 4px;
  height: 4px;
}

.mp-navbar {
  border-bottom: 1px solid var(--line-soft);
  background: #fff;
  justify-content: center;
  align-items: center;
  padding: 6px 16px 10px;
  display: flex;
  position: relative;
}

.mp-navbar h2 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 700;
}

.mp-navbar .mp-back {
  color: var(--ink-2);
  border-radius: 8px;
  place-items: center;
  width: 30px;
  height: 30px;
  font-size: 18px;
  display: grid;
  position: absolute;
  left: 12px;
}

.mp-navbar .mp-back:hover {
  background: var(--surface-2);
}

.mp-navbar .mp-nav-add {
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  border: 0;
  border-radius: 50%;
  place-items: center;
  width: 30px;
  height: 30px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  display: grid;
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  box-shadow: 0 2px 6px #0d948859;
}

.mp-navbar .mp-nav-add:hover {
  filter: brightness(1.05);
}

.mp-body {
  flex: 1;
  padding: 12px 14px 18px;
  overflow-y: auto;
}

.mp-body::-webkit-scrollbar {
  width: 5px;
}

.mp-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.mp-tabbar {
  border-top: 1px solid var(--line-soft);
  background: #fff;
  grid-auto-columns: 1fr;
  grid-auto-flow: column;
  padding: 6px 6px 16px;
  display: grid;
}

.mp-tab {
  color: var(--faint);
  border-radius: 10px;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 5px 2px;
  font-size: 10.5px;
  font-weight: 600;
  display: flex;
  position: relative;
}

.mp-tab .ic {
  font-size: 18px;
  line-height: 1;
}

.mp-tab.active {
  color: var(--accent);
}

.mp-tab:hover {
  background: var(--surface-2);
}

.mp-tab .mp-n {
  color: #fff;
  text-align: center;
  background: linear-gradient(#fb7185, #e11d48);
  border-radius: 999px;
  min-width: 15px;
  height: 15px;
  margin-left: 5px;
  padding: 0 4px;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  line-height: 15px;
  position: absolute;
  top: 0;
  left: 50%;
  box-shadow: 0 0 0 1.5px #fff;
}

.phone-side {
  flex-direction: column;
  gap: 14px;
  width: min(340px, 90vw);
  display: flex;
}

.phone-side .side-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 16px 18px;
}

.phone-side h3 {
  color: var(--ink-2);
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
}

.phone-side p {
  color: var(--muted);
  margin: 0 0 8px;
  font-size: 12.5px;
  line-height: 1.55;
}

.phone-side ul {
  color: var(--muted);
  margin: 0;
  padding-left: 18px;
  font-size: 12.5px;
}

.phone-side li {
  margin-bottom: 5px;
}

.side-toggle {
  background: var(--surface);
  border: 1px dashed var(--accent);
  width: min(390px, 100vw - 24px);
  color: var(--accent-ink);
  box-shadow: var(--shadow-xs);
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  font-size: 12.5px;
  font-weight: 650;
  display: none;
}

.side-toggle:hover {
  background: var(--accent-soft);
}

.admin {
  grid-template-columns: 250px 1fr;
  gap: 0;
  min-height: calc(100vh - 65px);
  display: grid;
}

.admin-side {
  background: linear-gradient(180deg, var(--side) 0%, var(--side-2) 100%);
  color: var(--side-text);
  height: calc(100vh - 65px);
  padding: 18px 14px;
  position: sticky;
  top: 65px;
  overflow-y: auto;
}

.admin-side .who {
  border-bottom: 1px solid #ffffff0f;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px 10px 16px;
  display: flex;
}

.admin-side .who .avatar {
  color: #fff;
  background: linear-gradient(145deg, #6366f1, #4f46e5);
  border-radius: 11px;
  place-items: center;
  width: 38px;
  height: 38px;
  font-weight: 700;
  display: grid;
}

.admin-side .who b {
  color: #fff;
  font-size: 13.5px;
  display: block;
}

.admin-side .who span {
  color: var(--side-muted);
  font-size: 11px;
}

.admin-nav {
  flex-direction: column;
  gap: 3px;
  display: flex;
}

.admin-nav-toggle {
  background: var(--surface);
  color: var(--ink-2);
  box-shadow: var(--shadow-xs);
  border: 1px dashed #c7d2fe;
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 650;
  display: none;
}

.admin-nav-item {
  color: var(--side-text);
  text-align: left;
  border-radius: 9px;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  font-size: 13px;
  transition: all .15s;
  display: flex;
}

.admin-nav-item .ic {
  text-align: center;
  width: 20px;
}

.admin-nav-item:hover {
  color: #fff;
  background: #ffffff0f;
}

.admin-nav-item.active {
  color: #c7d2fe;
  background: linear-gradient(90deg, #6366f147, #6366f114);
  font-weight: 600;
}

.admin-nav-item .badge-n {
  color: #fff;
  background: linear-gradient(#fb7185, #e11d48);
  border-radius: 999px;
  place-items: center;
  min-width: 18px;
  height: 18px;
  margin-left: auto;
  padding: 0 5px;
  font-size: 11px;
  font-weight: 700;
  display: inline-grid;
}

.admin-main {
  min-width: 0;
  padding: 24px 30px 50px;
}

.admin-head {
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
  display: flex;
}

.admin-head h1 {
  letter-spacing: -.03em;
  margin: 0;
  font-size: 23px;
  font-weight: 750;
}

.admin-head p {
  color: var(--muted);
  margin: 5px 0 0;
  font-size: 13px;
}

.admin-head .acts {
  flex-wrap: wrap;
  gap: 9px;
  display: flex;
}

.card, .panel {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.panel {
  margin-bottom: 16px;
  padding: 18px 20px;
}

.panel-hd {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  display: flex;
}

.panel-hd h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.panel-hd .sub {
  color: var(--muted);
  font-size: 12px;
}

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

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

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

.muted {
  color: var(--muted);
  font-size: 12.5px;
}

.stack {
  flex-direction: column;
  gap: 12px;
  display: flex;
}

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

.spacer {
  flex: 1;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 16px 18px;
  position: relative;
  overflow: hidden;
}

button.stat.clickable {
  text-align: left;
  width: 100%;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: all .16s;
}

button.stat.clickable:hover {
  box-shadow: var(--shadow-md);
  border-color: #99f6e4;
  transform: translateY(-2px);
}

button.stat.clickable:active {
  transform: translateY(0);
}

.stat:after {
  content: "";
  background: linear-gradient(90deg, transparent, var(--accent-2), transparent);
  opacity: .55;
  height: 2px;
  position: absolute;
  inset: 0 0 auto;
}

.stat.warn:after {
  background: linear-gradient(90deg, #0000, #f59e0b, #0000);
}

.stat.info:after {
  background: linear-gradient(90deg, #0000, #3b82f6, #0000);
}

.stat.ok:after {
  background: linear-gradient(90deg, #0000, #10b981, #0000);
}

.stat.danger:after {
  background: linear-gradient(90deg, #0000, #e11d48, #0000);
}

.stat .num {
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
  margin-top: 6px;
  font-size: 27px;
  font-weight: 750;
  line-height: 1.1;
}

.stat .lbl {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
}

.stat.accent .num {
  color: var(--accent-ink);
}

.stat.ok .num {
  color: var(--ok);
}

.stat.warn .num {
  color: var(--warn);
}

.stat.info .num {
  color: var(--info);
}

.stat.danger .num {
  color: var(--danger);
}

.stat.compact {
  padding: 10px 12px;
}

.stat.compact .num {
  margin-top: 2px;
  font-size: 17px;
}

.stat.compact .lbl {
  font-size: 11px;
}

.btn {
  border-radius: var(--radius-sm);
  white-space: nowrap;
  border: 1px solid #0000;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 9px 15px;
  font-size: 13.5px;
  font-weight: 560;
  transition: all .16s;
  display: inline-flex;
}

.btn:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none !important;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(#14b8a6, #0d9488);
  box-shadow: 0 1px 2px #0d948840, 0 6px 16px #0d948833;
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(#0d9488, #0f766e);
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink-2);
  box-shadow: var(--shadow-xs);
}

.btn-ghost:hover:not(:disabled) {
  background: var(--surface-2);
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.demo-fill {
  border-style: dashed;
  border-color: var(--accent);
  color: var(--accent-ink);
  background: var(--accent-soft);
}

.demo-fill:hover:not(:disabled) {
  background: var(--accent-soft);
  border-style: solid;
  transform: translateY(-1px);
}

.btn-danger {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: #fecdd3;
}

.btn-danger:hover:not(:disabled) {
  background: #ffdde3;
}

.btn-warn {
  background: var(--warn-soft);
  color: #b45309;
  border-color: #fde68a;
}

.btn-warn:hover:not(:disabled) {
  background: #fef3c7;
}

.btn-sm {
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 550;
}

.btn-block {
  width: 100%;
}

.link-btn {
  color: var(--accent-ink);
  background: none;
  border: 0;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
}

.link-btn:hover {
  color: var(--accent);
  text-underline-offset: 3px;
  text-decoration: underline;
}

.badge {
  white-space: nowrap;
  color: #475569;
  background: #f1f5f9;
  border-radius: 999px;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  font-size: 11.5px;
  font-weight: 650;
  display: inline-flex;
}

.badge:before {
  content: "";
  opacity: .8;
  background: currentColor;
  border-radius: 50%;
  width: 6px;
  height: 6px;
}

.badge.tone-todo {
  color: #475569;
  background: #eef2f7;
}

.badge.tone-warn {
  background: var(--warn-soft);
  color: #b45309;
}

.badge.tone-info {
  background: var(--info-soft);
  color: var(--info);
}

.badge.tone-ok {
  background: var(--ok-soft);
  color: var(--ok);
}

.badge.tone-danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.badge.tone-muted {
  color: var(--faint);
  background: #f1f5f9;
}

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

.badge.no-dot:before {
  display: none;
}

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

.field > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.field.span-2 {
  grid-column: span 2;
}

.field input, .field select, .field textarea {
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  color: var(--ink);
  background: #fff;
  outline: none;
  padding: 9px 11px;
  transition: all .15s;
}

.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.field input:disabled, .field select:disabled {
  background: var(--surface-2);
  color: var(--faint);
}

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

.inline {
  gap: 8px;
  display: flex;
}

.inline input {
  flex: 1;
}

.hint-box {
  background: var(--info-soft);
  color: #1e40af;
  border-radius: var(--radius-xs);
  border: 1px solid #dbe7ff;
  margin-top: 12px;
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.5;
}

.hint-box.warn {
  background: var(--warn-soft);
  color: #92400e;
  border-color: #fde68a;
}

.hint-box.ok {
  background: var(--ok-soft);
  color: #065f46;
  border-color: #a7f3d0;
}

.hint-box.danger {
  background: var(--danger-soft);
  color: #9f1239;
  border-color: #fecdd3;
}

.check-line {
  color: var(--muted);
  align-items: flex-start;
  gap: 9px;
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.5;
  display: flex;
}

.check-line input {
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
  margin-top: 3px;
}

.sub-h {
  color: var(--ink-2);
  align-items: center;
  gap: 8px;
  margin: 20px 0 10px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
}

.sub-h:before {
  content: "";
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  border-radius: 2px;
  width: 3px;
  height: 14px;
}

.entry-grid {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  display: grid;
}

.entry-card {
  text-align: left;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  padding: 15px;
  transition: all .18s;
  position: relative;
}

.entry-card .ic {
  background: var(--accent-soft);
  border-radius: 11px;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 9px;
  font-size: 19px;
  display: grid;
}

.entry-card h3 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
}

.entry-card p {
  color: var(--muted);
  margin: 0;
  font-size: 11.5px;
  line-height: 1.4;
}

.entry-card:not(:disabled):hover {
  box-shadow: var(--shadow-md);
  border-color: #99f6e4;
  transform: translateY(-2px);
}

.entry-card:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.entry-card:disabled .ic {
  background: #f1f5f9;
}

.entry-card .lock {
  color: var(--faint);
  font-size: 10px;
  position: absolute;
  top: 12px;
  right: 12px;
}

.task-card {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  padding: 14px 15px;
  transition: all .16s;
}

.task-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.task-card .tc-hd {
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  display: flex;
}

.task-card .tc-hd b {
  font-size: 14px;
}

.task-card .tc-meta {
  color: var(--muted);
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-bottom: 8px;
  font-size: 12px;
  display: flex;
}

.task-card .tc-foot {
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  display: flex;
}

.task-card .tc-note {
  color: var(--warn);
  font-size: 12px;
}

.section-title {
  color: var(--ink-2);
  align-items: center;
  gap: 8px;
  margin: 4px 0 10px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
}

.section-title .count {
  color: var(--faint);
  font-size: 12px;
  font-weight: 500;
}

.fsm {
  align-items: center;
  gap: 0;
  margin: 8px 0 4px;
  display: flex;
}

.fsm-node {
  color: var(--faint);
  flex-direction: column;
  flex: 1;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  display: flex;
  position: relative;
}

.fsm-node .dot {
  border: 2px solid var(--surface);
  width: 18px;
  height: 18px;
  box-shadow: 0 0 0 1px var(--line);
  color: #fff;
  z-index: 1;
  background: #e2e8f0;
  border-radius: 50%;
  place-items: center;
  font-size: 10px;
  display: grid;
}

.fsm-node:before {
  content: "";
  background: var(--line);
  width: 100%;
  height: 2px;
  position: absolute;
  top: 9px;
  left: -50%;
}

.fsm-node:first-child:before {
  display: none;
}

.fsm-node.done {
  color: var(--accent-ink);
  font-weight: 600;
}

.fsm-node.done .dot {
  background: var(--ok);
  box-shadow: 0 0 0 1px var(--ok);
}

.fsm-node.done:before {
  background: var(--ok);
}

.fsm-node.cur {
  color: var(--accent-ink);
  font-weight: 700;
}

.fsm-node.cur .dot {
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.fsm-node.cur:before {
  background: var(--ok);
}

.fsm-node.cancel .dot {
  background: var(--danger);
  box-shadow: 0 0 0 1px var(--danger);
}

.timeline {
  margin: 0;
  padding: 4px 0 0;
  list-style: none;
}

.timeline li {
  gap: 12px;
  padding-bottom: 14px;
  display: flex;
  position: relative;
}

.timeline li:not(:last-child):after {
  content: "";
  background: var(--line);
  width: 2px;
  position: absolute;
  top: 16px;
  bottom: 2px;
  left: 5px;
}

.timeline li i {
  background: var(--accent);
  border: 2px solid var(--surface);
  width: 12px;
  height: 12px;
  box-shadow: 0 0 0 1px var(--accent);
  z-index: 1;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 3px;
}

.timeline li .tt {
  color: var(--faint);
  margin-bottom: 1px;
  font-size: 12px;
}

.timeline li .td {
  color: var(--ink-2);
  font-size: 12.5px;
}

.list-row {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  transition: all .15s;
  display: flex;
}

.list-row:hover {
  box-shadow: var(--shadow-sm);
  border-color: #cbd5e1;
}

.list-row .lr-main {
  flex: 1;
  min-width: 0;
}

.list-row .lr-main b {
  font-size: 13.5px;
  display: block;
}

.list-row .lr-main span {
  color: var(--muted);
  font-size: 12px;
}

.list-row .lr-acts {
  flex-shrink: 0;
  gap: 7px;
  display: flex;
}

.kv {
  grid-template-columns: 108px 1fr;
  gap: 8px 12px;
  font-size: 13px;
  display: grid;
}

.kv .k {
  color: var(--muted);
}

.kv .v {
  word-break: break-all;
  font-weight: 550;
}

.table-wrap {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  overflow: auto;
}

.data-table {
  border-collapse: collapse;
  white-space: nowrap;
  width: 100%;
}

.data-table th, .data-table td {
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: middle;
  padding: 10px 12px;
}

.data-table th {
  background: var(--surface-2);
  color: var(--muted);
  letter-spacing: .02em;
  font-size: 11.5px;
  font-weight: 700;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover {
  background: #fafcfd;
}

.toast-wrap {
  z-index: 80;
  flex-direction: column;
  gap: 8px;
  display: flex;
  position: fixed;
  bottom: 22px;
  right: 22px;
}

.toast {
  color: #e2e8f0;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(#0f172a, #111827);
  border: 1px solid #ffffff0f;
  border-radius: 12px;
  min-width: 220px;
  max-width: 360px;
  padding: 11px 15px;
  font-size: 13px;
  animation: .22s toastIn;
}

.toast.ok {
  background: linear-gradient(#065f46, #047857);
}

.toast.err {
  background: linear-gradient(#9f1239, #be123c);
}

.toast.warn {
  background: linear-gradient(#92400e, #b45309);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

.modal-mask {
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  z-index: 90;
  background: #0f172a73;
  justify-content: center;
  align-items: center;
  padding: 20px;
  display: flex;
  position: fixed;
  inset: 0;
}

.modal-mask[hidden] {
  display: none !important;
}

.modal {
  background: var(--surface);
  width: min(460px, 100%);
  max-height: 88vh;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: 22px 22px 16px;
  animation: .2s fadeUp;
  overflow: auto;
}

.modal h3 {
  letter-spacing: -.02em;
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 750;
}

.modal p {
  color: var(--muted);
  margin: 0 0 12px;
  font-size: 13.5px;
  line-height: 1.55;
}

.modal-actions {
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
  display: flex;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

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

.empty {
  text-align: center;
  color: var(--faint);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), #fff);
  padding: 30px 16px;
  font-size: 13px;
}

.alert-strip {
  border-radius: var(--radius);
  background: var(--danger-soft);
  color: #9f1239;
  border: 1px solid #fecdd3;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px 15px;
  font-size: 13px;
  display: flex;
}

.alert-strip.warn {
  background: var(--warn-soft);
  color: #92400e;
  border-color: #fde68a;
}

.alert-strip.info {
  background: var(--info-soft);
  color: #1e40af;
  border-color: #dbe7ff;
}

.alert-strip .ic {
  font-size: 18px;
}

@media (max-width: 1080px) {
  .topnav {
    flex-wrap: wrap;
  }

  .terminal-switch {
    order: 3;
    justify-content: center;
    width: 100%;
    margin: 6px 0 0;
  }
}

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

  .admin {
    grid-template-columns: 210px 1fr;
  }
}

@media (max-width: 900px) {
  .topnav {
    flex-wrap: wrap;
  }

  .terminal-switch {
    order: 3;
    width: 100%;
    margin: 8px 0 0;
  }

  .topnav-side {
    display: none;
  }

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

  .admin-side {
    height: auto;
    position: relative;
    top: 0;
  }

  .grid-2, .grid-3, .grid-4, .form-grid {
    grid-template-columns: 1fr;
  }

  .field.span-2 {
    grid-column: span 1;
  }

  .stage {
    padding: 16px;
  }
}

@media (max-width: 767px) {
  .topnav {
    gap: 10px;
    padding: 8px 12px;
  }

  .topnav-brand {
    min-width: 0;
  }

  .brand-mark {
    border-radius: 10px;
    width: 34px;
    height: 34px;
  }

  .brand-title {
    font-size: 14px;
  }

  .brand-sub {
    display: none;
  }

  .terminal-switch {
    scrollbar-width: none;
    justify-content: flex-start;
    margin: 0;
    overflow-x: auto;
  }

  .terminal-switch::-webkit-scrollbar {
    display: none;
  }

  .term-btn {
    flex: none;
    padding: 7px 11px;
  }

  .term-btn span {
    display: none;
  }

  .stage {
    padding: 12px 8px 20px;
  }

  .phone-stage {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .phone {
    border-radius: 30px;
    width: min(390px, 100vw - 16px);
    height: min(800px, 100vh - 150px);
    padding: 6px;
  }

  .phone-notch {
    display: none;
  }

  .phone-screen {
    border-radius: 26px;
  }

  .side-toggle {
    display: inline-flex;
  }

  .phone-side {
    width: min(390px, 100vw - 16px);
    display: none;
  }

  .phone-stage.side-open .phone-side, .admin-nav-toggle {
    display: flex;
  }

  .admin-side {
    display: none;
  }

  .admin.nav-open .admin-side {
    display: block;
  }
}

.auth-hero {
  text-align: center;
  padding: 20px 0 4px;
}

.auth-logo {
  color: #fff;
  background: linear-gradient(145deg, #0d9488, #0f766e);
  border-radius: 16px;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 10px;
  font-size: 24px;
  font-weight: 800;
  display: grid;
  box-shadow: 0 10px 24px #0d948859;
}

.auth-brand {
  color: var(--ink);
  letter-spacing: .02em;
  font-size: 17px;
  font-weight: 800;
}

.auth-sub {
  color: var(--muted);
  margin-top: 4px;
  font-size: 12px;
}

.auth-tabs {
  background: var(--surface-2, #f1f5f9);
  border: 1px solid var(--line-soft, #e2e8f0);
  border-radius: 12px;
  gap: 6px;
  margin-top: 16px;
  padding: 5px;
  display: flex;
}

.auth-tab {
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 9px;
  flex: 1;
  padding: 9px 0;
  font-size: 13.5px;
  font-weight: 700;
  transition: all .15s;
}

.auth-tab.active {
  background: var(--surface, #fff);
  color: var(--accent-ink, #0f766e);
  box-shadow: var(--shadow-xs, 0 1px 2px #0f172a0f);
}

.auth-foot {
  text-align: center;
  color: var(--faint, #94a3b8);
  margin-top: 14px;
  font-size: 11.5px;
  line-height: 1.6;
}

.admin-login {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 140px);
  display: flex;
}

.login-card {
  background: var(--surface, #fff);
  border: 1px solid var(--line, #e2e8f0);
  width: 100%;
  max-width: 430px;
  box-shadow: var(--shadow-md, 0 10px 30px #0f172a1a);
  border-radius: 18px;
  padding: 22px 28px 24px;
}

.login-card .auth-hero {
  padding-top: 8px;
}

.login-card-title {
  color: var(--ink-2, #334155);
  text-align: center;
  margin: 8px 0 0;
  font-size: 15px;
  font-weight: 750;
}

@media (max-width: 767px) {
  .admin-login {
    min-height: auto;
    padding: 8px 0 20px;
  }

  .login-card {
    padding: 18px 16px 20px;
  }

  .auth-hero {
    padding-top: 14px;
  }
}

.code-row {
  align-items: stretch;
  gap: 8px;
  display: flex;
}

.code-row input {
  flex: 1;
  min-width: 0;
}

.code-row .send-code-btn {
  white-space: nowrap;
  border: 1px solid var(--line);
  background: var(--surface-2, #f8fafc);
  min-height: 40px;
  color: var(--accent-ink, #0f766e);
  cursor: pointer;
  border-radius: 10px;
  flex: none;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 600;
}

.code-row .send-code-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
  color: var(--muted);
}

.legal-doc {
  max-height: 50vh;
  color: var(--ink-2, #334155);
  font-size: 13px;
  line-height: 1.7;
  overflow: auto;
}

.legal-doc h4 {
  color: var(--ink);
  margin: 12px 0 6px;
  font-size: 14px;
}

.legal-doc p {
  margin: 0 0 8px;
}

.legal-link {
  color: var(--accent-ink, #0f766e);
  cursor: pointer;
  font: inherit;
  background: none;
  border: 0;
  padding: 0;
  text-decoration: underline;
}

.legal-link.read {
  color: var(--ok, #059669);
  text-decoration: none;
}

/*# sourceMappingURL=app_globals_0yg4wg8plh8sv.css.map*/