:root {
  --bg: #0f1114;
  --bg-2: #111418;
  --surface: #16181c;
  --surface-alt: #1b2028;
  --elevated: #24282e;
  --border: #2d3138;
  --border-strong: #3a3f46;
  --text: #e6e8eb;
  --text-secondary: #a3a9b1;
  --text-tertiary: #6b727c;
  --disabled: #4b515a;
  --focus: #14b8a6;
  --success: #22c55e;
  --warning: #f59e0b;
  --error: #ef4444;
  --approval: #6366f1;
  --info: #06b6d4;
  --active: #14b8a6;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: radial-gradient(circle at 18% 0%, rgba(20,184,166,.08), transparent 28%), var(--bg); color: var(--text); font-family: Inter, system-ui, sans-serif; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
#phoneBlock { display: none; min-height: 100vh; padding: 48px 28px; }
#phoneBlock h1, .brandName, h1, h2 { font-family: Georgia, serif; font-weight: 700; letter-spacing: 0; }
.shell { min-height: 100vh; display: grid; grid-template-columns: 252px 1fr; grid-template-rows: 58px 1fr; }
.header { grid-column: 1 / -1; position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: 252px 1fr auto; align-items: center; gap: 18px; height: 58px; padding: 0 18px; background: rgba(15,17,20,.94); border-bottom: 1px solid var(--border); backdrop-filter: blur(18px); box-shadow: 0 1px 0 rgba(255,255,255,.02) inset; }
.brand { display: flex; align-items: center; gap: 10px; }
.mark { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 5px; color: #111418; background: #d6dadf; font-family: "IBM Plex Mono", monospace; font-weight: 700; font-size: 14px; }
.brandName { font-size: 17px; line-height: 1; }
.brand span:not(.mark) { color: var(--info); background: rgba(6,182,212,.12); border: 1px solid rgba(6,182,212,.28); border-radius: 4px; padding: 3px 6px; font-family: "IBM Plex Mono", monospace; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.headerCenter { display: flex; align-items: center; justify-content: center; gap: 14px; }
.headerCenter strong { color: var(--text-secondary); font-family: "IBM Plex Mono", monospace; font-size: 11px; font-weight: 500; text-transform: uppercase; }
.progress { width: min(320px, 32vw); height: 6px; background: #101317; border-radius: 999px; overflow: hidden; border: 1px solid var(--border); }
.progress > div { height: 100%; background: linear-gradient(90deg, var(--active), var(--success)); transition: width .25s ease; box-shadow: 0 0 18px rgba(20,184,166,.34); }
.headerActions { display: flex; align-items: center; gap: 10px; }
.nav { padding: 16px 10px; border-right: 1px solid var(--border); background: linear-gradient(180deg, #111418, #0f1114); }
.nav button { width: 100%; display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 10px; margin-bottom: 6px; padding: 10px 9px; color: var(--text-secondary); background: transparent; border: 1px solid transparent; border-radius: 5px; text-align: left; font-size: 13px; }
.nav button.active { color: var(--text); background: rgba(20,184,166,.1); border-color: rgba(20,184,166,.34); box-shadow: inset 2px 0 0 var(--active); }
.nav small { color: var(--text-tertiary); font-family: "IBM Plex Mono", monospace; font-size: 9px; text-transform: uppercase; }
.dot { width: 8px; height: 8px; border-radius: 2px; background: var(--border-strong); }
.dot.progressing { background: var(--warning); box-shadow: 0 0 12px rgba(245,158,11,.28); }
.dot.complete { background: var(--success); box-shadow: 0 0 12px rgba(34,197,94,.28); }
.main { padding: 34px 34px 80px; overflow: auto; background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.014) 1px, transparent 1px); background-size: 42px 42px; }
.content { max-width: 930px; margin: 0 auto; }
h1 { margin: 0 0 9px; font-size: 34px; line-height: 1.05; color: var(--text); }
h2 { margin: 0 0 12px; font-size: 22px; }
.lede { margin: 0 0 22px; color: var(--text-secondary); font-size: 14px; line-height: 1.55; max-width: 760px; }
.panel { background: rgba(22,24,28,.92); border: 1px solid var(--border); border-radius: 5px; padding: 18px; margin-bottom: 16px; box-shadow: 0 1px 0 rgba(255,255,255,.035) inset, 0 18px 40px rgba(0,0,0,.18); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
label { color: var(--text-secondary); font-size: 11px; font-weight: 600; font-family: "IBM Plex Mono", monospace; letter-spacing: .02em; text-transform: uppercase; }
.hint { color: var(--text-tertiary); font-size: 12px; line-height: 1.5; }
input, select, textarea { width: 100%; color: var(--text); background: #111418; border: 1px solid var(--border); border-radius: 3px; padding: 10px 11px; outline: none; min-height: 40px; }
textarea { min-height: 92px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--text-tertiary); }
input:focus, select:focus, textarea:focus, button:focus-visible { border-color: var(--focus); box-shadow: 0 0 0 2px rgba(20,184,166,.26); outline: none; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check { display: flex; gap: 8px; align-items: center; padding: 7px 9px; background: #111418; border: 1px solid var(--border); border-radius: 4px; color: var(--text-secondary); font-size: 12px; }
.check:has(input:checked) { color: var(--text); border-color: rgba(20,184,166,.36); background: rgba(20,184,166,.08); }
.check input { width: auto; min-height: auto; accent-color: var(--active); }
.choiceChip { color: var(--text-secondary); background: #111418; border: 1px solid var(--border); border-radius: 4px; padding: 8px 10px; font-size: 12px; }
.choiceChip.selected { color: var(--text); background: rgba(20,184,166,.11); border-color: rgba(20,184,166,.45); box-shadow: 0 0 0 1px rgba(20,184,166,.12) inset; }
.logoGrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 9px; }
.logoCard { display: flex; align-items: center; gap: 9px; min-height: 48px; padding: 9px; color: var(--text-secondary); background: #111418; border: 1px solid var(--border); border-radius: 5px; text-align: left; }
.logoCard span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 4px; color: var(--active); background: rgba(20,184,166,.1); border: 1px solid rgba(20,184,166,.2); font-family: "IBM Plex Mono", monospace; font-size: 10px; }
.logoCard strong { font-size: 12px; font-weight: 600; }
.logoCard.selected { color: var(--text); border-color: rgba(20,184,166,.45); background: rgba(20,184,166,.08); }
.btn { border: 1px solid rgba(20,184,166,.62); border-radius: 4px; padding: 9px 12px; min-height: 36px; color: #061311; background: linear-gradient(180deg, #2dd4bf, var(--active)); font-weight: 700; font-size: 12px; box-shadow: 0 8px 18px rgba(20,184,166,.13); }
.btn.secondary { color: var(--text-secondary); background: linear-gradient(180deg, #20242b, #171a20); border-color: var(--border-strong); box-shadow: none; }
.btn.demo { color: #eef2ff; background: linear-gradient(180deg, #6366f1, #4f46e5); border-color: rgba(99,102,241,.74); box-shadow: 0 8px 18px rgba(99,102,241,.14); }
.btn.ghost { color: var(--text-secondary); background: transparent; border-color: var(--border-strong); box-shadow: none; }
.btn.ghost:hover, .btn.secondary:hover { color: var(--text); border-color: var(--focus); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(99,102,241,.45); color: #c7d2fe; background: rgba(99,102,241,.12); border-radius: 4px; padding: 6px 8px; font-size: 10px; font-family: "IBM Plex Mono", monospace; text-transform: uppercase; }
.tableWrap { overflow: auto; border: 1px solid var(--border); border-radius: 5px; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { padding: 10px; border-bottom: 1px solid var(--border); text-align: left; font-size: 12px; }
th { color: var(--text-tertiary); font-family: "IBM Plex Mono", monospace; background: #111418; text-transform: uppercase; }
.cardList { display: grid; gap: 10px; }
.itemCard { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 13px 14px; background: rgba(17,20,24,.92); border: 1px solid var(--border); border-radius: 5px; }
.itemCard.clickable { cursor: pointer; }
.itemCard:hover { border-color: rgba(20,184,166,.28); }
.itemCard strong { display: block; }
.itemCard span { color: var(--text-tertiary); font-size: 12px; }
.toast { position: fixed; right: 20px; bottom: 20px; padding: 10px 12px; background: var(--elevated); border: 1px solid var(--border-strong); border-radius: 5px; color: var(--text); opacity: 0; transform: translateY(10px); transition: .2s ease; z-index: 10; font-size: 12px; }
.toast.show { opacity: 1; transform: translateY(0); }
.modalBackdrop { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.72); z-index: 20; }
.modal { width: min(520px, calc(100vw - 40px)); background: var(--surface); border: 1px solid rgba(99,102,241,.4); border-radius: 5px; padding: 24px; box-shadow: 0 24px 80px rgba(0,0,0,.44); }
.modal.inspector { width: min(760px, calc(100vw - 48px)); }
.modal h2 { margin-top: 0; font-size: 26px; }
.between { justify-content: space-between; align-items: flex-start; }
.metaGrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.metaGrid > div { min-height: 64px; padding: 11px; background: #111418; border: 1px solid var(--border); border-radius: 5px; }
.metaGrid p { margin: 7px 0 0; color: var(--text); font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.editGrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.editGrid .field.full { grid-column: 1 / -1; }
.vizPanel { margin: 0 0 14px; padding: 16px; background: rgba(22,24,28,.72); border: 1px solid var(--border); border-radius: 5px; }
.vizHeader { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.vizHeader span { color: var(--text-tertiary); font-family: "IBM Plex Mono", monospace; font-size: 11px; }
.vizGrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.vizNode { min-height: 70px; padding: 11px; color: var(--text); background: radial-gradient(circle at top left, rgba(20,184,166,.14), transparent 45%), #111418; border: 1px solid var(--border); border-radius: 5px; text-align: left; }
.vizNode strong { display: block; margin-bottom: 8px; }
.vizNode span { color: var(--text-tertiary); font-size: 12px; }
.downloadPanel { border-color: rgba(20,184,166,.44); background: linear-gradient(180deg, rgba(20,184,166,.08), rgba(22,24,28,.94)); }
.saveState { color: var(--text-tertiary); font-family: "IBM Plex Mono", monospace; font-size: 11px; }
@media (max-width: 1023px) {
  .shell { grid-template-columns: 1fr; }
  .header { grid-template-columns: auto 1fr; height: auto; min-height: 64px; }
  .headerCenter { order: 3; grid-column: 1 / -1; justify-content: flex-start; padding-bottom: 12px; }
  .nav { display: flex; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px; }
  .nav button { min-width: 220px; margin: 0 8px 0 0; }
  .main { padding: 28px 18px 70px; }
}
@media (max-width: 767px) {
  #app { display: none; }
  #phoneBlock { display: block; }
}
