:root {
  --hover: #f3f4f6; --thead: #fbfbfc; --on-accent: #fff; --side: #fff; --side-ink: #3b4556; --side-mute: #6b7585; --side-line: #eef0f3; --side-hover: #f3f4f6; --side-on: #eef3ff; --side-on-ink: #163a9e; --side-brand: #0b1220;
  --shadow: none; --hw: 650; --pad: 16px; --row: 8px; --kpi: 26px; --track: #eef0f3; --kbcol: #eceff3; --hfont: var(--font);
  --ink: #0b1220; --ink2: #3b4556; --mute: #6b7585; --line: #e4e7ec; --line2: #eef0f3; --bg: #f7f8fa; --card: #fff;
  --blue: #1f4fd8; --blue-ink: #163a9e; --blue-bg: #eef3ff; --red: #c4321c; --red-bg: #fdf0ed; --green: #157347; --green-bg: #eaf6ef; --amber: #9a6100; --amber-bg: #fdf5e6;
  --r: 8px; --font: "Inter", ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.01em; font-family: var(--hfont); }
h1 { font-size: 22px; font-weight: var(--hw); }
h2 { font-size: 16px; font-weight: 620; }
h3 { font-size: 13px; font-weight: 600; color: var(--ink2); }
.muted { color: var(--mute); }
.small { font-size: 12.5px; }
.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
svg.i { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 7px; border: 1px solid var(--line); background: var(--card); cursor: pointer; font-weight: 550; white-space: nowrap; }
.btn:hover { background: var(--hover); text-decoration: none; }
.btn.primary { background: var(--blue); border-color: var(--blue); color: var(--on-accent); }
.btn.primary:hover { background: var(--blue-ink); }
.btn.danger { color: var(--red); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--hover); }
.btn.sm { height: 28px; padding: 0 10px; font-size: 13px; }
.btn[disabled] { opacity: .55; cursor: default; }
.input, select.input, textarea.input { width: 100%; height: 36px; padding: 0 11px; border: 1px solid var(--line); border-radius: 7px; background: var(--card); outline: none; }
textarea.input { height: auto; min-height: 86px; padding: 9px 11px; resize: vertical; }
.input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 14%, transparent); }
label.f { display: block; margin-bottom: 14px; }
label.f > span { display: block; font-size: 12.5px; font-weight: 560; color: var(--ink2); margin-bottom: 5px; }
.err { color: var(--red); font-size: 13px; min-height: 18px; }
.pill { display: inline-flex; align-items: center; height: 21px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 560; background: var(--line2); color: var(--ink2); white-space: nowrap; }
.pill.red { background: var(--red-bg); color: var(--red); }
.pill.green { background: var(--green-bg); color: var(--green); }
.pill.blue { background: var(--blue-bg); color: var(--blue-ink); }
.pill.amber { background: var(--amber-bg); color: var(--amber); }

/* ---------- entry ---------- */
.entry { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.entry-left { padding: 56px 64px; display: flex; flex-direction: column; background: #0b1220; color: #e8ecf3; }
.entry-left .brand { color: #fff; }
.entry-left h1 { font-size: 40px; line-height: 1.08; font-weight: 680; color: #fff; margin: auto 0 18px; max-width: 520px; letter-spacing: -0.025em; }
.entry-left h1 em { font-style: normal; color: #8fb0ff; }
.entry-left p { font-size: 16px; color: #b7c0cf; max-width: 470px; margin: 0 0 30px; }
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 560px; margin-bottom: auto; }
.steps3 div { border-top: 1px solid #2a3447; padding-top: 12px; font-size: 13px; color: #b7c0cf; }
.steps3 b { display: block; color: #fff; font-weight: 600; margin-bottom: 3px; }
.entry-right { display: flex; align-items: center; justify-content: center; padding: 40px; }
.auth { width: 100%; max-width: 380px; }
.auth h2 { font-size: 20px; margin-bottom: 4px; }
.auth .switch { margin-top: 16px; font-size: 13px; color: var(--mute); }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; letter-spacing: 0.06em; font-size: 13px; }
.brand .mark { width: 22px; height: 22px; border-radius: 5px; background: var(--blue); display: grid; place-items: center; color: #fff; font-size: 12px; letter-spacing: 0; }
.brand span.sub { font-weight: 500; letter-spacing: 0.02em; opacity: .7; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.side { background: var(--side); color: var(--side-ink); border-right: 1px solid var(--side-line); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.side .top { padding: 16px 16px 12px; border-bottom: 1px solid var(--side-line); }
.side .brand, .side .co, .topnav .brand, .topnav .co { color: var(--side-brand); }
.side .muted, .topnav .muted { color: var(--side-mute); }
.side .co { margin-top: 12px; font-weight: 620; font-size: 14px; line-height: 1.25; }
.side nav { padding: 10px 8px; display: flex; flex-direction: column; gap: 1px; overflow-y: auto; }
.side nav .lbl { font-size: 11.5px; font-weight: 600; color: var(--side-mute); padding: 12px 10px 5px; letter-spacing: .02em; }
.side nav a { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 6px; color: var(--side-ink); font-weight: 520; }
.side nav a:hover { background: var(--side-hover); text-decoration: none; }
.side nav a.on { background: var(--side-on); color: var(--side-on-ink); }
.side nav a .n { margin-left: auto; font-size: 12px; color: var(--side-mute); font-variant-numeric: tabular-nums; }
.side .bottom { margin-top: auto; padding: 12px 16px; border-top: 1px solid var(--side-line); font-size: 12.5px; }
.side .bottom .who { font-weight: 560; overflow: hidden; text-overflow: ellipsis; }
.main { min-width: 0; }
.bar { display: flex; align-items: center; gap: 12px; padding: 18px 28px 14px; }
.bar .grow { flex: 1; }
.page { padding: 0 28px 40px; }

/* ---------- table ---------- */
.tools { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.search { position: relative; width: 280px; }
.search svg { position: absolute; left: 10px; top: 10px; color: var(--mute); }
.search .input { padding-left: 32px; }
.tools select.input { width: auto; min-width: 150px; }
.tbl-wrap { box-shadow: var(--shadow); background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: auto; }
table.t { width: 100%; border-collapse: collapse; }
table.t th { position: sticky; top: 0; background: var(--thead); text-align: left; font-size: 12px; font-weight: 600; color: var(--ink2); padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; cursor: pointer; user-select: none; }
table.t th.num { text-align: right; }
table.t th .dir { color: var(--blue); margin-left: 3px; }
table.t td { padding: var(--row) 12px; border-bottom: 1px solid var(--line2); white-space: nowrap; max-width: 320px; overflow: hidden; text-overflow: ellipsis; }
table.t tbody tr { cursor: pointer; }
table.t tbody tr:hover td { background: var(--hover); }
table.t tbody tr:last-child td { border-bottom: 0; }
.ref { color: var(--mute); font-size: 12.5px; margin-left: 6px; }
td.low { color: var(--red); font-weight: 600; }
.pager { display: flex; align-items: center; justify-content: space-between; padding: 10px 2px; color: var(--mute); font-size: 13px; }
.empty { padding: 40px; text-align: center; color: var(--mute); }

/* ---------- dashboard ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 12px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: var(--pad) calc(var(--pad) + 2px); box-shadow: var(--shadow); }
.kpi .l { font-size: 12.5px; color: var(--mute); font-weight: 540; }
.kpi .v { font-size: var(--kpi); font-weight: var(--hw); font-family: var(--hfont); letter-spacing: -0.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi.alert .v { color: var(--red); }
.grid2 { display: grid; grid-template-columns: 1.15fr 1fr; gap: 12px; }
.card h2 { margin-bottom: 12px; font-size: 14px; }
.bars .row { display: grid; grid-template-columns: 130px 1fr 92px; gap: 10px; align-items: center; padding: 5px 0; font-size: 13px; }
.bars .track { height: 10px; background: var(--track); border-radius: 3px; overflow: hidden; }
.bars .fill { height: 100%; background: var(--blue); border-radius: 3px; }
.bars .row .k { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink2); }
.mini { width: 100%; border-collapse: collapse; font-size: 13px; }
.mini td { padding: 7px 4px; border-bottom: 1px solid var(--line2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.mini tr:last-child td { border-bottom: 0; }
.mini tr { cursor: pointer; }
.mini tr:hover td { background: var(--hover); }

/* ---------- drawer ---------- */
.scrim { position: fixed; inset: 0; background: #0b122033; z-index: 20; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 440px; max-width: 100vw; background: var(--card); z-index: 21; display: flex; flex-direction: column; box-shadow: -8px 0 30px #0b12201a; }
.drawer .hd { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer .bd { padding: 18px 20px; overflow-y: auto; flex: 1; }
.drawer .ft { padding: 12px 20px; border-top: 1px solid var(--line); display: flex; gap: 8px; align-items: center; }
.drawer .ft .grow { flex: 1; }
.note { background: var(--amber-bg); color: var(--amber); padding: 9px 12px; border-radius: 7px; font-size: 13px; margin-bottom: 14px; }
.note.blue { background: var(--blue-bg); color: var(--blue-ink); }

/* ---------- onboarding ---------- */
.onb { max-width: 920px; margin: 0 auto; padding: 36px 28px 60px; }
.onb .head { margin-bottom: 24px; }
.onb .head p { color: var(--mute); margin: 6px 0 0; }
.drop { border: 1.5px dashed #c5ccd8; border-radius: 10px; background: var(--card); padding: 34px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--blue); background: var(--blue-bg); }
.drop b { display: block; font-size: 15px; margin-bottom: 4px; }
.drop .file { margin-top: 10px; font-weight: 600; color: var(--blue-ink); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ent { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 12px; }
.ent .eh { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line2); }
.ent .eh .input { max-width: 240px; height: 32px; font-weight: 600; }
.ent .fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 18px; padding: 8px 16px 12px; }
.ent .fr { display: grid; grid-template-columns: 1fr 150px; gap: 8px; align-items: center; padding: 4px 0; }
.ent .fr .input { height: 30px; font-size: 13px; }
.ent .fr .fixed { font-size: 12.5px; color: var(--blue-ink); padding-left: 4px; }
.ent.off { opacity: .5; }
.found { list-style: none; padding: 0; margin: 0 0 18px; }
.found li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line2); align-items: flex-start; }
.found li svg { color: var(--green); margin-top: 2px; }

/* ---------- settings ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tabs a { padding: 9px 14px; color: var(--ink2); font-weight: 540; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--blue-ink); border-color: var(--blue); }
.tabs a:hover { text-decoration: none; color: var(--ink); }
.chat { max-width: 720px; }
.msgs { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.msg { padding: 10px 14px; border-radius: 10px; max-width: 86%; }
.msg.me { align-self: flex-end; background: var(--blue); color: var(--on-accent); }
.msg.bot { align-self: flex-start; background: var(--card); border: 1px solid var(--line); }
.msg.bot ul { margin: 6px 0 8px; padding-left: 18px; }
.msg .acts { display: flex; gap: 8px; margin-top: 8px; }
.chat form { display: flex; gap: 8px; }
.sugg { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.sugg button { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 5px 11px; font-size: 12.5px; cursor: pointer; color: var(--ink2); }
.sugg button:hover { border-color: var(--blue); color: var(--blue-ink); }
.list { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.list .it { display: flex; gap: 12px; align-items: center; padding: 11px 16px; border-bottom: 1px solid var(--line2); }
.list .it:last-child { border-bottom: 0; }
.list .it .grow { flex: 1; min-width: 0; }
.list .it .t2 { font-size: 12.5px; color: var(--mute); }
.inv { display: flex; gap: 8px; margin-bottom: 14px; max-width: 640px; }
.inv .input:first-child { flex: 1; }
code.link { font-size: 12px; background: var(--line2); padding: 2px 6px; border-radius: 4px; word-break: break-all; }

#toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; font-size: 13.5px; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 50; max-width: 90vw; }
#toast.on { opacity: 1; }
.spin { width: 16px; height: 16px; border: 2px solid #ffffff66; border-top-color: #fff; border-radius: 50%; animation: sp .7s linear infinite; }
.btn:not(.primary) .spin { border-color: #0b122033; border-top-color: var(--ink); }
@keyframes sp { to { transform: rotate(360deg); } }

/* ---------- phone ---------- */
.mobtop { display: none; }
@media (max-width: 860px) {
  .entry { grid-template-columns: 1fr; }
  .entry-left { padding: 28px 22px 32px; }
  .entry-left h1 { font-size: 30px; margin-top: 36px; }
  .steps3 { grid-template-columns: 1fr; gap: 8px; }
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 30; left: 0; width: 260px; transform: translateX(-100%); transition: transform .2s; }
  .side.open { transform: none; box-shadow: 0 0 40px #0b122040; }
  .mobtop { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: var(--side); color: var(--side-brand); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
  .bar { padding: 14px 16px 10px; flex-wrap: wrap; }
  .page { padding: 0 16px 32px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .grid2, .two, .ent .fields { grid-template-columns: 1fr; }
  .search { width: 100%; }
  .bars .row { grid-template-columns: 96px 1fr 78px; }
  .onb { padding: 22px 16px 40px; }
}
.grid2 > *, .kpis > *, .main, .page { min-width: 0; }
.card { overflow: hidden; }
.mini { table-layout: fixed; }
.mini td:first-child { width: 48%; }
@media (max-width: 860px) {
  .kpi .v { font-size: 20px; }
  .mini td { max-width: none; }
  .mini td .ref { display: none; }
  .bars .row { grid-template-columns: 90px 1fr 84px; font-size: 12.5px; }
  html, body { overflow-x: hidden; }
}
/* view toggle + kanban */
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; background: var(--card); }
.seg button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 0; background: transparent; cursor: pointer; font-weight: 540; color: var(--ink2); }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: var(--blue-bg); color: var(--blue-ink); }
.kb { display: flex; gap: 12px; overflow-x: auto; align-items: flex-start; padding-bottom: 12px; min-height: 60vh; }
.kb .col { flex: 0 0 280px; background: var(--kbcol); border-radius: 10px; padding: 10px; min-height: 120px; transition: outline-color .1s; outline: 2px dashed transparent; }
.kb .col.over { outline-color: var(--blue); background: var(--blue-bg); }
.kb .ch { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 8px; font-size: 13px; }
.kb .ch span { color: var(--mute); font-variant-numeric: tabular-nums; }
.kb .ct { font-size: 12px; color: var(--mute); padding: 0 4px 8px; margin-top: -4px; }
.kb .kc { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; cursor: pointer; box-shadow: 0 1px 2px #0b12200d; }
.kb .kc[draggable="true"] { cursor: grab; }
.kb .kc.drag { opacity: .45; }
.kb .kc:hover { border-color: color-mix(in srgb, var(--blue) 35%, var(--line)); }
.kb .kt { font-weight: 600; font-size: 13.5px; margin-bottom: 4px; }
.kb .km { font-size: 12.5px; color: var(--ink2); margin-top: 2px; }
.kb .km .pill { height: 19px; font-size: 11.5px; }
.kb .kv { font-size: 13px; font-weight: 600; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kb .kc .pill.red { margin-top: 6px; }
@media (max-width: 860px) { .kb .col { flex-basis: 250px; } }

/* ---------- layout: menu across the top ---------- */
.shell.top-l { display: block; }
.topnav { position: sticky; top: 0; z-index: 15; background: var(--side); color: var(--side-ink); border-bottom: 1px solid var(--side-line); }
.topnav .row1 { display: flex; align-items: center; gap: 14px; padding: 12px 28px 0; }
.topnav .co { font-weight: 650; font-size: 15px; font-family: var(--hfont); }
.topnav .row1 .grow { flex: 1; }
.topnav .row1 .who { font-size: 12.5px; color: var(--side-mute); }
.topnav nav { display: flex; gap: 2px; padding: 6px 22px 0; overflow-x: auto; scrollbar-width: none; }
.topnav nav a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px 10px; color: var(--side-ink); font-weight: 540; white-space: nowrap; border-bottom: 2px solid transparent; }
.topnav nav a:hover { text-decoration: none; color: var(--side-brand); }
.topnav nav a.on { color: var(--side-brand); border-bottom-color: var(--blue); }
.topnav nav a .n { font-size: 11.5px; color: var(--side-mute); font-variant-numeric: tabular-nums; }
.topnav .sep { width: 1px; background: var(--side-line); margin: 8px 6px 12px; flex: none; }
.topnav .btn { background: transparent; border-color: var(--side-line); color: var(--side-ink); }
.topnav .btn:hover { background: var(--side-hover); }
.shell.top-l .main { max-width: 1320px; margin: 0 auto; }
@media (max-width: 860px) { .topnav .row1 { padding: 10px 16px 0; } .topnav nav { padding: 4px 10px 0; } .topnav .row1 .who { display: none; } }

/* ---------- home: one card per area ---------- */
.mods { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 16px; }
.mods a.card { display: flex; flex-direction: column; gap: 10px; color: var(--ink); transition: border-color .15s, transform .15s; }
.mods a.card:hover { text-decoration: none; border-color: var(--blue); transform: translateY(-1px); }
.mods .ic { width: 36px; height: 36px; border-radius: calc(var(--r) * .8 + 2px); background: var(--blue-bg); color: var(--blue-ink); display: grid; place-items: center; }
.mods .ic svg.i { width: 18px; height: 18px; }
.mods .t { font-weight: 620; font-size: 15px; font-family: var(--hfont); }
.mods .c { color: var(--mute); font-size: 12.5px; }

/* ---------- design picker ---------- */
.stys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stys.all { grid-template-columns: repeat(4, 1fr); }
.sty { text-align: left; border: 1.5px solid var(--line); background: var(--card); border-radius: 10px; padding: 8px 8px 11px; cursor: pointer; color: var(--ink); }
.sty:hover { border-color: color-mix(in srgb, var(--blue) 45%, var(--line)); }
.sty.on { border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 14%, transparent); }
.sty .nm { font-weight: 620; margin: 9px 4px 2px; display: flex; align-items: center; gap: 6px; }
.sty .md { font-size: 12px; color: var(--mute); margin: 0 4px; line-height: 1.35; }
.sty .rec { font-size: 11px; font-weight: 600; color: var(--blue-ink); background: var(--blue-bg); padding: 1px 7px; border-radius: 99px; }
.mock { height: 96px; border-radius: 6px; overflow: hidden; display: grid; grid-template-columns: 26% 1fr; border: 1px solid #0000000f; }
.mock .ms { padding: 8px 6px; display: flex; flex-direction: column; gap: 5px; }
.mock .ms i { display: block; height: 5px; border-radius: 3px; opacity: .5; }
.mock .ms i.on { opacity: 1; }
.mock .mm { padding: 8px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mock .mk { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.mock .mk b { height: 24px; display: block; }
.mock .mc { flex: 1; display: block; }
.dsg { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 16px 0 14px; align-items: center; }
.dsg .lb { font-size: 12.5px; font-weight: 560; color: var(--ink2); margin-right: 8px; }
.dsg .seg button { height: 32px; }

/* ---------- live preview of a system ---------- */
.lp { --lpw: 1; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; height: 380px; display: grid; grid-template-columns: 190px 1fr; font-size: 12.5px; background: var(--bg); color: var(--ink); font-family: var(--font); pointer-events: none; user-select: none; text-align: left; }
.lp.top { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
.lp .lps { background: var(--side); color: var(--side-ink); border-right: 1px solid var(--side-line); padding: 14px 8px; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.lp.top .lps { border-right: 0; border-bottom: 1px solid var(--side-line); flex-direction: row; flex-wrap: nowrap; overflow: hidden; align-items: center; padding: 10px 14px 0; gap: 2px; }
.lp .lps .co { color: var(--side-brand); font-weight: 650; font-size: 13.5px; padding: 0 8px 12px; font-family: var(--hfont); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp.top .lps .co { padding: 0 14px 10px 0; }
.lp .lps span { padding: 6px 9px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp.top .lps span { padding: 4px 9px 10px; }
.lp .lps span.on { background: var(--side-on); color: var(--side-on-ink); }
.lp.top .lps span.on { background: transparent; color: var(--side-brand); box-shadow: inset 0 -2px 0 var(--blue); border-radius: 0; }
.lp .lpm { padding: 16px 18px; overflow: hidden; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.lp h1 { font-size: 17px; }
.lp .kpis { grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0; }
.lp .card { padding: 10px 12px; }
.lp .kpi .l { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp .kpi .v { font-size: 17px; }
.lp .mods { grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0; }
.lp .mods .card { gap: 6px; }
.lp .mods .t { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp .mods .ic { width: 26px; height: 26px; }
.lp .tbl-wrap { overflow: hidden; }
.lp table.t td, .lp table.t th { padding: 7px 10px; font-size: 11.5px; max-width: 160px; }
@media (max-width: 860px) {
  .stys, .stys.all { grid-template-columns: 1fr 1fr; }
  .lp { grid-template-columns: 1fr; grid-template-rows: auto 1fr; height: 340px; }
  .lp .lps { flex-direction: row; flex-wrap: nowrap; overflow: hidden; border-right: 0; border-bottom: 1px solid var(--side-line); padding: 10px 12px 0; }
  .lp .lps .co { padding: 0 12px 10px 0; }
  .lp .lps span { padding: 4px 8px 10px; }
  .lp .kpis, .lp .mods { grid-template-columns: 1fr 1fr; }
}
.side .btn { background: transparent; border-color: var(--side-line); color: var(--side-ink); }
.side .btn:hover { background: var(--side-hover); }
#toast { background: var(--ink); color: var(--bg); }
details.dd { position: relative; }
details.dd > summary { list-style: none; }
details.dd > summary::-webkit-details-marker { display: none; }
details.dd .ddm { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 220px; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 6px; box-shadow: 0 12px 32px #0b122024; display: flex; flex-direction: column; }
details.dd .ddm a { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 6px; color: var(--ink2); font-weight: 520; }
details.dd .ddm a:hover { background: var(--hover); text-decoration: none; }
details.dd .ddm a.on { background: var(--blue-bg); color: var(--blue-ink); }

/* ---------- template gallery ---------- */
.gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gc { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s; }
.gc:hover { border-color: color-mix(in srgb, var(--blue) 40%, var(--line)); box-shadow: 0 6px 20px #0b122012; }
.gc .gimg { display: block; width: 100%; aspect-ratio: 16 / 10; padding: 0; border: 0; border-bottom: 1px solid var(--line); background: var(--bg); cursor: zoom-in; overflow: hidden; }
.gc .gimg img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }
.gc .gimg .mock { height: 100%; border: 0; border-radius: 0 !important; }
.gc .gb { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.gc .gt { font-weight: 650; font-size: 15px; }
.gc .ga { color: var(--mute); font-size: 13px; }
.gc .gs { font-size: 12px; color: var(--ink2); display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.gc .dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.gc .gx { display: flex; gap: 8px; margin-top: 12px; }
.drawer.wide { width: 760px; }
.gbig { width: 100%; border: 1px solid var(--line); border-radius: 10px; display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 1000px) { .gal { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .gal { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .topnav .row1 { gap: 8px; }
  .topnav .row1 > .muted, .topnav .row1 .grow, .topnav .row1 a.btn[href="#/nuevo"] { display: none; }
  .topnav .co { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mods { grid-template-columns: 1fr 1fr; gap: 8px; }
  .mods a.card { gap: 6px; padding: 12px; }
  .mods .t { font-size: 14px; }
  .tabs { overflow-x: auto; }
  .tabs a { white-space: nowrap; }
}

/* ================= dashboard v2: type, indicators, charts ================= */
:root { --mfont: ui-monospace, Menlo, monospace; --nfont: var(--hfont); --c1: var(--blue); --c2: #9aa8c7; --c3: #e0a43a; --c4: #3aa37a; --c5: #c2557a; }
.bar h1 { font-size: 26px; letter-spacing: -0.015em; }
[data-num="display"] .bar h1 { font-size: 30px; }
.kpi .v, .ks .v, .hero .v, .hk b { font-family: var(--nfont); font-variant-numeric: tabular-nums; }
[data-lab="caps"] .kpi .l, [data-lab="caps"] .ks .l, [data-lab="caps"] .hero .l, [data-lab="caps"] .mini th, [data-lab="caps"] table.t th, [data-lab="caps"] .hk span, [data-lab="caps"] .trendc .small, [data-lab="caps"] .lg span, [data-lab="caps"] .ch2 .small {
  font-family: var(--mfont); text-transform: uppercase; letter-spacing: .08em; font-size: 10.5px; font-weight: 500; }
.grid2 { margin-top: 12px; }
.grid2:empty { display: none; }
.card h2, .ch2 h2, .trendc h2 { font-family: var(--hfont); }
[data-num="display"] .card h2, [data-num="display"] .trendc h2 { font-size: 19px; font-weight: 400; letter-spacing: -0.01em; }
.ch2 { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.ch2 h2 { margin: 0 !important; }

/* indicator cards: icon + label, big number, change, small chart to the edges */
.kpis { gap: 14px; margin-bottom: 14px; }
.kpi { display: flex; flex-direction: column; padding-bottom: 0 !important; min-height: 150px; }
.kpi .l { display: flex; align-items: center; gap: 7px; color: var(--ink2); font-weight: 520; font-size: 13px; }
.kpi .l svg.i { width: 15px; height: 15px; color: var(--mute); }
.kpi .v { font-size: var(--kpi); line-height: 1.05; margin-top: 10px; letter-spacing: -0.02em; }
[data-num="display"] .kpi .v { font-weight: 400; }
.dl { font-size: 12.5px; color: var(--mute); margin-top: 6px; }
.dl b { font-weight: 600; }
.dl.up, .dl .up { color: var(--green); }
.dl.down, .dl .down { color: var(--red); }
.kpi .spark { display: block; width: calc(100% + 2 * (var(--pad) + 2px)); margin: auto calc(-1 * (var(--pad) + 2px)) 0; height: 46px; padding-top: 10px; }
.kpi:not(:has(.spark)) { padding-bottom: var(--pad) !important; }

/* ruled strip of indicators */
.kstrip { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--line); margin: 4px 0 18px; }
.ks { padding: 18px 14px 16px; text-align: center; min-width: 0; }
.ks + .ks { border-left: 1px solid var(--line); }
.ks .l { color: var(--mute); font-size: 12px; }
.ks .v { font-size: var(--kpi); line-height: 1.1; margin: 10px 0 2px; letter-spacing: -0.01em; }
[data-num="display"] .ks .v { font-weight: 400; }
.ks.alert .v { color: var(--red); }

/* one big number with the chart beside it */
.hero { display: grid; grid-template-columns: minmax(240px, 1fr) 2.2fr; gap: 24px; padding: 22px 24px !important; margin-bottom: 14px; }
.hero .l { color: var(--mute); font-size: 12.5px; }
.hero .v { font-size: 56px; line-height: 1; margin: 12px 0 8px; letter-spacing: -0.03em; font-weight: 600; }
.hero .hr { display: grid; gap: 0; margin-top: 22px; border-top: 1px solid var(--line2); }
.hk { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line2); font-size: 13px; }
.hk span { color: var(--ink2); }
.hk b { font-weight: 600; }
.hk.alert b { color: var(--red); }
.hero .hc { min-width: 0; }

/* time chart */
.trendc { margin-bottom: 0; }
.trendc .th { display: flex; align-items: flex-start; gap: 22px; margin-bottom: 8px; flex-wrap: wrap; }
.trendc .th .grow { flex: 1; }
.lg { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--mute); }
.lg i { display: inline-block; width: 10px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.lg b { font-family: var(--nfont); font-size: 18px; color: var(--ink); font-weight: 600; }
[data-num="display"] .lg b { font-weight: 400; font-size: 22px; }
.chart { position: relative; width: 100%; }
svg.trend { display: block; overflow: visible; }
svg.trend .gl { stroke: var(--line2); stroke-dasharray: 3 4; }
svg.trend .ax { fill: var(--mute); font: 10.5px var(--mfont); }
svg.trend .hl { stroke: var(--mute); stroke-width: 1; }
.chart .tip { position: absolute; pointer-events: none; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; font-size: 12.5px; box-shadow: 0 8px 24px #0b122020; min-width: 190px; transition: opacity .1s; z-index: 2; }
.chart .tip b { display: block; margin-bottom: 5px; font-weight: 600; }
.chart .tip div { display: flex; align-items: center; gap: 7px; color: var(--ink2); }
.chart .tip div span { margin-left: auto; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.chart .tip i { width: 8px; height: 8px; border-radius: 50%; }

/* bars with share */
.bars .row { grid-template-columns: minmax(90px, 150px) 1fr auto; }
.bars .track { height: 8px; border-radius: 99px; }
.bars .fill { border-radius: 99px; }
.bars .num em { font-style: normal; color: var(--mute); font-size: 11.5px; margin-left: 8px; display: inline-block; min-width: 32px; text-align: right; }

/* lists */
.mini th { text-align: left; font-size: 11.5px; color: var(--mute); font-weight: 560; padding: 0 4px 8px; border-bottom: 1px solid var(--line); }
.mini th.num { text-align: right; }
.mini td.dt { color: var(--mute); font-size: 12.5px; }

/* colored values */
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 520; color: var(--ink2); white-space: nowrap; }
.tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--mute); flex: none; }
.tag.t-green i { background: var(--green); } .tag.t-red i { background: var(--red); } .tag.t-amber i { background: var(--amber); }
.tag.t-c1 i { background: var(--c1); } .tag.t-c2 i { background: var(--c2); } .tag.t-c3 i { background: var(--c3); } .tag.t-c4 i { background: var(--c4); } .tag.t-c5 i { background: var(--c5); }
.kb .tag { font-size: 12px; }
.rng button { height: 30px !important; font-size: 12.5px; }
@media (max-width: 860px) {
  .kstrip { grid-template-columns: 1fr 1fr; } .ks:nth-child(3) { border-left: 0; } .ks:nth-child(n+3) { border-top: 1px solid var(--line); }
  .hero { grid-template-columns: 1fr; } .hero .v { font-size: 44px; }
  .bar .rng { order: 3; width: 100%; } .rng { display: flex; } .rng button { flex: 1; padding: 0 6px; }
}
.hero .v { white-space: nowrap; }
.hero .v small { font-size: 22px; font-weight: 500; letter-spacing: 0; color: var(--ink2); }
.kpi .v small, .ks .v small { font-size: .5em; letter-spacing: 0; font-weight: inherit; color: var(--ink2); }
.ks .v small { display: block; font-size: .36em; margin-top: 2px; font-family: var(--mfont); text-transform: uppercase; letter-spacing: .12em; color: var(--mute); }
@media (max-width: 860px) { .kpi .v { font-size: calc(var(--kpi) * .78); } .ks .v { font-size: calc(var(--kpi) * .7); } .kpi { min-height: 0; } }

/* ================= studio ================= */
.st { --sb: #f7f6f3; --sl: #e7e5e0; display: grid; grid-template-columns: 400px 1fr; grid-template-rows: 52px 1fr; height: 100vh; background: var(--sb); overflow: hidden; }
.st.nochat { grid-template-columns: 0 1fr; }
.st.nochat .st-chat { display: none; }
.st-top { grid-column: 1 / -1; display: grid; grid-template-columns: 400px 1fr; align-items: center; }
.st.nochat .st-top { grid-template-columns: 200px 1fr; }
.st-tl, .st-tr { display: flex; align-items: center; gap: 6px; padding: 0 12px; min-width: 0; }
.st-tl .grow, .st-tr .grow { flex: 1; }
.st-logo { border: 0; background: none; padding: 0; cursor: pointer; display: grid; place-items: center; }
.st-logo .mark, .rl-logo .mark { width: 26px; height: 26px; border-radius: 7px; background: linear-gradient(135deg, #1f4fd8, #0ea5a3); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.st-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-left: 6px; }
.st-ib { border: 0; background: none; width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; cursor: pointer; color: #5b5f66; flex: none; }
.st-ib:hover { background: #ebe9e4; color: #111; }
.st-views { display: flex; background: #eeece7; border-radius: 10px; padding: 3px; gap: 2px; }
.st-views button { border: 0; background: none; height: 28px; border-radius: 7px; padding: 0 10px; display: flex; align-items: center; gap: 6px; cursor: pointer; color: #5b5f66; font-weight: 550; font-size: 13px; }
.st-views button span { display: none; }
.st-views button.on { background: #fff; color: #1f4fd8; box-shadow: 0 1px 2px #0000000f; }
.st-views button.on span { display: inline; }
.st-dev { display: flex; gap: 2px; margin-left: 10px; }
.st-dev button { border: 0; background: none; width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; cursor: pointer; color: #8a8d93; }
.st-dev button.on { color: #111; background: #ebe9e4; }
.st-page { height: 32px; border: 1px solid var(--sl); border-radius: 8px; background: #fff; padding: 0 10px; min-width: 200px; font-size: 13px; }
.st-tr .btn { height: 32px; }
.st-tr .btn.primary { background: #1f4fd8; border-color: #1f4fd8; }
.st-chat { display: flex; flex-direction: column; min-height: 0; padding: 0 14px 14px; }
.st-msgs { flex: 1; overflow-y: auto; padding: 14px 2px 8px; display: flex; flex-direction: column; gap: 14px; }
.sm-u { align-self: flex-end; background: #fff; border: 1px solid var(--sl); border-radius: 18px; padding: 10px 15px; max-width: 86%; white-space: pre-wrap; font-size: 14px; }
.sm-a p { margin: 0; font-size: 14px; line-height: 1.6; color: #24262b; }
.sm-a p + .sm-card { margin-top: 10px; }
.sm-card { background: #fff; border: 1px solid var(--sl); border-radius: 14px; padding: 12px 14px; }
.sm-card.chg { border-color: #cdd8f6; box-shadow: 0 0 0 3px #1f4fd80d; }
.sm-ch { font-size: 12.5px; color: #7a7d83; margin-bottom: 4px; }
.sm-qa { display: flex; flex-direction: column; gap: 1px; font-size: 13.5px; padding: 3px 0; }
.sm-qa span { color: #7a7d83; font-size: 12.5px; }
.sm-ct { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.sm-ct svg { color: #1f4fd8; }
.sm-ct .pill { margin-left: auto; }
.sm-cx { display: flex; gap: 8px; margin-top: 10px; }
.sm-cx .btn { flex: 1; justify-content: center; border-radius: 9px; }
.sm-cx .btn.on { background: #eef3ff; border-color: #cdd8f6; color: #163a9e; }
.sm-det { margin: 10px 0 0; padding-left: 18px; font-size: 13px; color: #4a4d53; line-height: 1.6; }
.sm-think { font-size: 14px; color: #7a7d83; }
.sm-think .shine { background: linear-gradient(90deg, #8a8d93 0%, #111 45%, #8a8d93 90%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 1.8s linear infinite; font-weight: 500; }
@keyframes shine { from { background-position: 120% 0; } to { background-position: -80% 0; } }
.sm-hint { display: flex; gap: 8px; margin-top: 10px; font-size: 12.5px; color: #8a8d93; line-height: 1.5; }
.sm-hint svg { flex: none; margin-top: 2px; }
.sm-steps div { display: flex; align-items: center; gap: 9px; padding: 4px 0; color: #a3a6ab; font-size: 13.5px; }
.sm-steps div.done { color: #4a4d53; }
.sm-steps div.done svg { color: #157347; }
.sm-steps div.now { color: #111; font-weight: 550; }
.sm-steps div i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid currentColor; display: inline-block; }
.sm-steps div.now i { border-color: #1f4fd8; border-top-color: transparent; animation: sp .8s linear infinite; }
.sm-q { background: #fff; border: 1px solid var(--sl); border-radius: 16px; padding: 14px; box-shadow: 0 6px 24px #0000000a; }
.sm-intro { margin: 0 0 10px; font-size: 14px; }
.sm-qh { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.sm-qh b { font-size: 14.5px; }
.sm-qh span { margin-left: auto; font-size: 12px; color: #8a8d93; white-space: nowrap; }
.sm-opt { display: flex; gap: 10px; align-items: flex-start; padding: 9px 10px; border-radius: 10px; cursor: pointer; }
.sm-opt:hover { background: #f5f4f1; }
.sm-opt input[type=radio], .sm-opt input[type=checkbox] { margin-top: 3px; accent-color: #1f4fd8; }
.sm-opt span { display: flex; flex-direction: column; gap: 1px; font-size: 13.5px; }
.sm-opt em { font-style: normal; color: #7a7d83; font-size: 12.5px; }
.sm-opt.own { align-items: center; }
.sm-opt.own .input { height: 34px; }
.sm-qf { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.st-sugg { display: flex; gap: 6px; overflow-x: auto; padding: 6px 0 8px; scrollbar-width: none; }
.st-sugg button { border: 1px solid var(--sl); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 12.5px; cursor: pointer; white-space: nowrap; color: #33363b; }
.st-sugg button:hover { border-color: #9fb3ec; color: #163a9e; }
.st-cr { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--sl); border-bottom: 0; border-radius: 14px 14px 0 0; padding: 8px 8px 8px 14px; margin: 0 6px -6px; font-size: 13px; font-weight: 550; }
.st-cr span { flex: 1; }
.st-comp { background: #fff; border: 1px solid var(--sl); border-radius: 18px; padding: 10px 10px 8px 14px; box-shadow: 0 4px 18px #00000008; position: relative; }
.st-comp textarea { width: 100%; border: 0; outline: none; resize: none; font: inherit; font-size: 14.5px; min-height: 24px; max-height: 180px; background: transparent; }
.st-cb { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.st-cb .grow { flex: 1; }
.st-plus { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--sl); background: #fff; display: grid; place-items: center; cursor: pointer; color: #5b5f66; }
.st-mode { height: 30px; border: 1px solid var(--sl); border-radius: 999px; background: #fff; padding: 0 10px; font-size: 13px; font-weight: 550; }
.st-send { width: 32px; height: 32px; border-radius: 50%; border: 0; background: #111; color: #fff; display: grid; place-items: center; cursor: pointer; }
.st-send:disabled { background: #c9c7c2; cursor: default; }
.st-menu { position: absolute; left: 6px; bottom: 50px; background: #fff; border: 1px solid var(--sl); border-radius: 12px; box-shadow: 0 12px 32px #0000001f; padding: 6px; min-width: 250px; z-index: 30; display: flex; flex-direction: column; }
.st-menu button, .st-menu a { display: grid; grid-template-columns: 22px 1fr; align-items: center; column-gap: 8px; border: 0; background: none; text-align: left; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 13.5px; color: #24262b; }
.st-menu button span, .st-menu a span { grid-column: 2; font-size: 12px; color: #8a8d93; }
.st-menu button:hover, .st-menu a:hover { background: #f3f2ef; text-decoration: none; }
.st-menu .sep { height: 1px; background: var(--sl); margin: 4px 6px; }
.st-view { min-width: 0; min-height: 0; padding: 0 12px 12px 0; }
.st-prev { height: 100%; background: #fff; border: 1px solid var(--sl); border-radius: 16px; overflow: hidden; display: flex; justify-content: center; }
.st-prev iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.st-prev.phone { background: #eeece7; align-items: center; }
.st-prev.phone iframe { width: 390px; height: min(844px, calc(100% - 32px)); border-radius: 28px; box-shadow: 0 0 0 10px #1b1b1d, 0 20px 50px #00000030; }
.st-skel { height: 100%; background: #fff; border: 1px solid var(--sl); border-radius: 16px; display: grid; grid-template-columns: 200px 1fr; overflow: hidden; position: relative; }
.st-skel .sk-side { background: #f6f5f2; border-right: 1px solid var(--sl); }
.st-skel .sk-main { padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.st-skel .sk-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.st-skel .sk-row.two { grid-template-columns: 1fr 1fr; flex: 1; }
.st-skel i, .st-skel .sk-chart { display: block; background: #f1f0ec; border-radius: 12px; min-height: 90px; }
.st-skel .sk-chart { min-height: 220px; }
.st-skel.busy i, .st-skel.busy .sk-chart, .st-skel.busy .sk-side { background: linear-gradient(90deg, #f1f0ec 0%, #f8f7f4 40%, #f1f0ec 80%); background-size: 200% 100%; animation: shine 1.6s linear infinite; }
.st-skel .sk-note { position: absolute; inset: auto 0 40% 0; text-align: center; color: #8a8d93; font-weight: 550; }
.st-pane { height: 100%; background: #fff; border: 1px solid var(--sl); border-radius: 16px; display: grid; grid-template-columns: 240px 1fr; overflow: hidden; }
.st-tree { border-right: 1px solid var(--sl); padding: 12px 8px; overflow-y: auto; display: flex; flex-direction: column; gap: 1px; }
.st-th { font-size: 11.5px; font-weight: 600; color: #8a8d93; padding: 4px 10px 8px; text-transform: uppercase; letter-spacing: .06em; }
.st-tree button { display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 7px 10px; border-radius: 8px; cursor: pointer; text-align: left; font-size: 13.5px; color: #33363b; }
.st-tree button span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-tree button em { font-style: normal; color: #8a8d93; font-size: 12px; }
.st-tree button:hover { background: #f5f4f1; }
.st-tree button.on { background: #eef3ff; color: #163a9e; }
.st-body { overflow: auto; min-width: 0; display: flex; flex-direction: column; }
.st-body.pad { padding: 22px 26px; display: block; }
.st-bh { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--sl); }
.st-bh .grow { flex: 1; }
.st-fields { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 18px; border-bottom: 1px solid var(--sl); }
.sf { display: inline-flex; flex-direction: column; border: 1px solid var(--sl); border-radius: 8px; padding: 4px 9px; font-size: 12.5px; }
.sf em { font-style: normal; color: #8a8d93; font-size: 11.5px; }
.st-body .tbl-wrap { border: 0; border-radius: 0; }
.st-body.code { background: #fbfbfa; }
.st-code { margin: 0; padding: 14px 0; font: 12.5px/1.65 "JetBrains Mono", ui-monospace, Menlo, monospace; color: #24262b; overflow: auto; flex: 1; }
.st-code .ln { display: inline-block; width: 46px; padding-right: 14px; text-align: right; color: #b5b3ad; user-select: none; }
.st-code .jk { color: #8b3fb5; } .st-code .js { color: #0f7b54; } .st-code .jn { color: #c2410c; }
.st-railwrap .rail { position: fixed; left: 0; top: 0; bottom: 0; z-index: 40; box-shadow: 8px 0 30px #0000001a; }
.st-pop { position: fixed; z-index: 60; background: #fff; border: 1px solid #e7e5e0; border-radius: 14px; box-shadow: 0 16px 44px #0000002a; padding: 16px; width: 380px; }
.st-pop h3 { margin: 0 0 12px; font-size: 15px; }
.sp-inv { display: grid; grid-template-columns: 1fr 130px auto; gap: 6px; margin-bottom: 10px; }
.sp-inv .input { height: 34px; }
.sp-list { display: flex; flex-direction: column; gap: 2px; margin: 8px 0; max-height: 260px; overflow-y: auto; }
.sp-m { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 13.5px; }
.sp-m .grow { flex: 1; min-width: 0; }
.av { width: 30px; height: 30px; border-radius: 50%; background: #c2410c; color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 13px; flex: none; }
.av.off { background: #eeece7; color: #5b5f66; }
.sp-foot { border-top: 1px solid #eeece7; padding-top: 12px; display: flex; justify-content: flex-end; }
.pp-url { background: #f5f4f1; border-radius: 8px; padding: 8px 10px; font-size: 13px; word-break: break-all; margin: 6px 0 12px; }
.pp-slug { display: flex; align-items: center; gap: 4px; }
.pp-slug span { font-size: 12px; color: #8a8d93; white-space: nowrap; }
.pp-live { text-align: center; }
.pp-ic { width: 46px; height: 46px; border-radius: 14px; margin: 4px auto 10px; background: linear-gradient(135deg, #1f4fd8, #0ea5a3); color: #fff; display: grid; place-items: center; }
.pp-ic svg.i { width: 22px; height: 22px; }
.pp-ic.spin2 svg { animation: sp 1.4s linear infinite; }
.pp-b { display: flex; gap: 8px; justify-content: center; }
.pp-bar { height: 4px; background: #eeece7; border-radius: 4px; overflow: hidden; margin: 10px 30px; }
.pp-bar i { display: block; height: 100%; width: 40%; background: #1f4fd8; border-radius: 4px; animation: bar 1s ease-in-out infinite; }
@keyframes bar { from { margin-left: -40%; } to { margin-left: 100%; } }
.pp-next { margin-top: 16px; background: #f7f6f3; border-radius: 12px; padding: 12px; text-align: left; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.pp-next span { color: #6b6e74; }
.pp-next .btn { align-self: flex-start; margin-top: 6px; }
.cm { position: fixed; z-index: 61; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 400px; max-width: 94vw; background: #fff; border-radius: 20px; padding: 18px; box-shadow: 0 30px 80px #00000040; }
.cm-art { height: 150px; border-radius: 14px; background: radial-gradient(120% 120% at 0% 100%, #0ea5a3 0%, transparent 55%), radial-gradient(110% 110% at 100% 0%, #f59e0b 0%, transparent 50%), linear-gradient(135deg, #0b1220 0%, #1f4fd8 100%); display: grid; place-items: center; margin-bottom: 14px; }
.cm-art span { color: #fff; font-size: 30px; font-weight: 750; letter-spacing: -0.02em; }
.cm h3 { margin: 0 0 4px; font-size: 17px; }
.cm p { margin: 0 0 12px; font-size: 13.5px; }
.cm form { display: flex; flex-direction: column; gap: 8px; }
.cm-f { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }

/* ================= home ================= */
.hm { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; background: #f7f6f3; }
.rail { width: 240px; background: #f7f6f3; border-right: 1px solid #e7e5e0; display: flex; flex-direction: column; padding: 12px 10px; gap: 2px; height: 100vh; position: sticky; top: 0; }
.rl-logo { display: flex; align-items: center; gap: 8px; padding: 4px 6px 12px; color: #111; }
.rl-logo:hover { text-decoration: none; }
.rl-logo span:last-child { color: #8a8d93; font-size: 13px; }
.rl-ws { display: flex; align-items: center; gap: 8px; border: 1px solid #e7e5e0; background: #fff; border-radius: 10px; padding: 7px 9px; margin-bottom: 10px; cursor: pointer; font-weight: 600; font-size: 13.5px; text-align: left; }
.rl-ws .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sq { width: 22px; height: 22px; border-radius: 6px; background: #1f4fd8; color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.rl-a { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 8px; color: #33363b; font-size: 13.5px; font-weight: 520; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rl-a:hover { background: #ebe9e4; text-decoration: none; }
.rl-a.on { background: #e8e6e0; color: #111; }
.rl-a.sm { font-size: 13px; }
.rl-a .dot { width: 7px; height: 7px; border-radius: 50%; background: #c9c7c2; flex: none; }
.rl-a .dot.pub { background: #16a34a; }
.rl-lbl { font-size: 11.5px; color: #8a8d93; font-weight: 600; padding: 14px 10px 4px; }
.rl-list { display: flex; flex-direction: column; gap: 1px; overflow-y: auto; min-height: 0; }
.rail > .grow { flex: 1; }
.rl-up { display: flex; align-items: center; gap: 10px; border: 1px solid #e7e5e0; background: #fff; border-radius: 12px; padding: 10px 12px; cursor: pointer; text-align: left; margin-bottom: 8px; }
.rl-up div { flex: 1; display: flex; flex-direction: column; font-size: 13px; }
.rl-up span { color: #8a8d93; font-size: 12px; }
.rl-up i { width: 30px; height: 30px; border-radius: 50%; background: #eef3ff; color: #1f4fd8; display: grid; place-items: center; }
.rl-me { display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 6px; border-radius: 10px; cursor: pointer; font-size: 13px; text-align: left; }
.rl-me:hover { background: #ebe9e4; }
.rl-me .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-pop.menu { width: 270px; padding: 8px; }
.wm-h { display: flex; align-items: center; gap: 10px; padding: 6px 6px 10px; }
.wm-b { display: grid; gap: 6px; padding: 0 6px 10px; }
.wm-b .btn { justify-content: center; }
.cr { border-top: 1px solid #eeece7; padding: 10px 6px; font-size: 13px; }
.cr-h { display: flex; justify-content: space-between; margin-bottom: 6px; }
.cr-bar { height: 6px; background: #eeece7; border-radius: 4px; overflow: hidden; margin-bottom: 6px; }
.cr-bar i { display: block; height: 100%; background: #1f4fd8; border-radius: 4px; }
.wm-f { border-top: 1px solid #eeece7; padding: 10px 6px 4px; display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 550; }
.wm-f span { display: flex; align-items: center; gap: 6px; }
.mi { display: flex; align-items: center; gap: 9px; width: 100%; border: 0; background: none; padding: 8px 8px; border-radius: 8px; font-size: 13.5px; color: #24262b; cursor: pointer; text-align: left; }
.mi:hover { background: #f3f2ef; text-decoration: none; }
.st-pop.menu .sep { height: 1px; background: #eeece7; margin: 4px; }
.hm-main { position: relative; overflow-x: hidden; min-width: 0; }
.hm-bg { position: absolute; inset: 0 0 auto 0; height: 760px; pointer-events: none;
  background: radial-gradient(60% 55% at 15% 85%, #14b8a6aa 0%, transparent 60%), radial-gradient(55% 50% at 85% 80%, #f59e0baa 0%, transparent 60%), radial-gradient(70% 60% at 50% 105%, #1f4fd8cc 0%, transparent 65%), linear-gradient(180deg, #f7f6f3 0%, #f7f6f3 30%, transparent 100%);
  filter: saturate(1.1); }
.hm-hero { position: relative; max-width: 760px; margin: 0 auto; padding: 150px 24px 40px; text-align: center; }
.hm-hero h1 { font-size: 52px; line-height: 1.05; letter-spacing: -0.035em; font-weight: 720; margin: 0 0 14px; }
.hm-hero h1 em { font-style: normal; background: linear-gradient(90deg, #1f4fd8, #0ea5a3); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hm-hero > p { color: #4a4d53; font-size: 17px; margin: 0 auto 30px; max-width: 560px; }
.hm-box { background: #fff; border-radius: 22px; padding: 16px 14px 12px 18px; text-align: left; box-shadow: 0 1px 2px #0000000a, 0 20px 60px #0b122026; position: relative; }
.hm-box textarea { width: 100%; border: 0; outline: none; resize: none; font: inherit; font-size: 16px; min-height: 52px; background: transparent; }
.hm-bb { display: flex; align-items: center; gap: 8px; }
.hm-bb .grow { flex: 1; }
.hm-mode { font-size: 13px; font-weight: 550; color: #5b5f66; padding: 0 6px; }
.hm-box .st-menu { bottom: auto; top: calc(100% + 6px); left: 10px; }
.hm-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.hm-chips button { border: 1px solid #ffffffaa; background: #ffffffcc; backdrop-filter: blur(6px); border-radius: 999px; padding: 7px 14px; font-size: 13px; cursor: pointer; color: #24262b; }
.hm-chips button:hover { background: #fff; }
.hm-cr { margin-top: 16px; font-size: 13px; color: #33363b; }
.hm-sys { position: relative; max-width: 1100px; margin: 120px auto 60px; padding: 0 28px; }
.hm-main.plain .hm-sys { margin-top: 36px; }
.hm-sh { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.hm-sh .grow { flex: 1; }
.hm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.hm-card { background: #fff; border: 1px solid #e7e5e0; border-radius: 14px; overflow: hidden; color: #111; transition: box-shadow .15s, transform .15s; }
.hm-card:hover { text-decoration: none; box-shadow: 0 10px 30px #0000001a; transform: translateY(-2px); }
.hm-th { height: 130px; background: radial-gradient(80% 90% at 0% 100%, #14b8a655, transparent 60%), radial-gradient(70% 80% at 100% 0%, #f59e0b44, transparent 60%), linear-gradient(135deg, #e9eefb, #f7f6f3); display: grid; place-items: center; }
.hm-th span { width: 48px; height: 48px; border-radius: 14px; background: #fff; display: grid; place-items: center; font-size: 22px; font-weight: 700; color: #1f4fd8; box-shadow: 0 6px 20px #0000001a; }
.hm-cb { padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }

/* plans */
.pm2 { position: fixed; z-index: 61; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 780px; max-width: 96vw; max-height: 92vh; overflow: auto; background: #fff; border-radius: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 0; box-shadow: 0 40px 100px #00000050; }
.pm2-l { padding: 26px 28px; }
.pm2-l h2 { font-size: 20px; margin-bottom: 6px; }
.pm2-l > p { font-size: 13.5px; margin: 0 0 16px; }
.pm2-card { border: 1px solid #e7e5e0; border-radius: 14px; padding: 16px; }
.pm2-p { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; margin: 6px 0 10px; }
.pm2-p span { font-size: 14px; font-weight: 500; color: #6b6e74; letter-spacing: 0; }
.pm2-tag { display: inline-flex; align-items: center; gap: 6px; background: #eef3ff; color: #163a9e; border-radius: 999px; padding: 4px 10px; font-size: 12.5px; font-weight: 550; }
.pm2-sel { position: relative; margin-top: 12px; }
.pm2-sel > button { width: 100%; display: flex; align-items: center; gap: 8px; border: 1px solid #e7e5e0; background: #fff; border-radius: 10px; padding: 9px 12px; font-size: 13.5px; cursor: pointer; }
.pm2-sel > button svg { margin-left: auto; }
.pm2-sel em, .pm2-dd em { font-style: normal; background: #eef3ff; color: #163a9e; border-radius: 999px; padding: 1px 8px; font-size: 11.5px; font-weight: 600; }
.pm2-dd { position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid #e7e5e0; border-radius: 12px; box-shadow: 0 12px 32px #00000024; padding: 4px; z-index: 2; }
.pm2-dd button { width: 100%; display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 13.5px; text-align: left; }
.pm2-dd button:hover { background: #f5f4f1; }
.pm2-dd button.on { color: #1f4fd8; font-weight: 600; }
.pm2-dd button svg { margin-left: auto; }
.pm2-ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.pm2-ul li { display: flex; gap: 8px; align-items: center; }
.pm2-ul svg { color: #1f4fd8; }
.pm2-go { width: 100%; justify-content: center; height: 42px; margin-top: 16px; background: #111 !important; border-color: #111 !important; border-radius: 12px; }
.pm2-r { position: relative; margin: 8px; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 26px;
  background: radial-gradient(80% 60% at 20% 100%, #14b8a6 0%, transparent 60%), radial-gradient(70% 60% at 100% 75%, #f59e0b 0%, transparent 60%), linear-gradient(160deg, #0b1220 0%, #1f4fd8 70%); color: #fff; min-height: 420px; }
.pm2-q b { display: block; font-size: 24px; line-height: 1.2; letter-spacing: -0.01em; margin-top: 40px; }
.pm2-q span { display: block; margin-top: 12px; color: #dfe6ff; font-size: 14px; line-height: 1.5; }
.pm2-brand { font: 11px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .14em; color: #ffffffb0; }
.pm2-x { position: absolute; right: 12px; top: 12px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: #ffffff30; color: #fff; display: grid; place-items: center; cursor: pointer; }
@media (max-width: 900px) {
  .st { grid-template-columns: 1fr; grid-template-rows: 52px 1fr 0; }
  .st-top { grid-template-columns: 1fr; } .st-tr { display: none; } .st-view { display: none; }
  .hm { grid-template-columns: 1fr; } .hm > .rail { display: none; }
  .hm-hero { padding-top: 90px; } .hm-hero h1 { font-size: 36px; }
  .pm2 { grid-template-columns: 1fr; } .pm2-r { display: none; }
}
.st-railwrap { position: absolute; width: 0; height: 0; }
.kpi .v { white-space: nowrap; font-size: clamp(22px, 2.3vw, var(--kpi)); }
.st-code { white-space: pre-wrap; word-break: break-word; }
.st-code .ln { float: none; }

/* ================= sign up / sign in / welcome ================= */
.au { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; background: #121316; color: #f2f2f2; }
.au-l { display: flex; align-items: center; justify-content: center; padding: 40px; }
.au-f { width: 100%; max-width: 340px; }
.au-logo { display: inline-block; margin-bottom: 26px; }
.au-logo .mark { width: 40px; height: 40px; border-radius: 11px; background: linear-gradient(135deg, #1f4fd8, #0ea5a3 60%, #f59e0b); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 19px; }
.au h1 { font-size: 30px; letter-spacing: -0.02em; margin-bottom: 6px; color: #fff; }
.au .muted { color: #9a9ca3; }
.au p.muted { margin: 0 0 24px; }
.au label.f > span { color: #c9cbd1; }
.au .input { background: #1c1d21; border-color: #33353b; color: #fff; height: 42px; border-radius: 12px; }
.au .input:focus { border-color: #6f8fff; box-shadow: 0 0 0 3px #6f8fff33; }
.au-go { width: 100%; justify-content: center; height: 44px; border-radius: 999px; background: #f2f2f2; color: #111; border: 0; font-weight: 600; font-size: 15px; margin-top: 4px; }
.au-go:hover { background: #fff; }
.au-sw { text-align: center; font-size: 13.5px; color: #9a9ca3; margin-top: 16px; }
.au-sw a, .au-legal a { color: #fff; text-decoration: underline; }
.au-legal { text-align: center; margin-top: 12px; }
.au-r { margin: 18px; border-radius: 22px; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(60% 45% at 50% 0%, #121316 0%, transparent 70%), radial-gradient(70% 55% at 10% 100%, #0ea5a3 0%, transparent 60%), radial-gradient(70% 55% at 100% 90%, #f59e0b 0%, transparent 60%), linear-gradient(180deg, #1b2a6b 0%, #1f4fd8 55%, #f08a4b 100%); }
.au-box { width: min(420px, 80%); background: #ffffffe6; backdrop-filter: blur(8px); border-radius: 18px; padding: 16px 16px 16px 18px; display: flex; align-items: center; gap: 4px; color: #111; font-size: 15px; box-shadow: 0 20px 60px #00000040; min-height: 64px; }
.au-box span { flex: none; }
.au-box .cur { width: 1.5px; height: 18px; background: #1f4fd8; animation: blink 1s steps(2) infinite; flex: none; }
.au-box b { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; background: #111; color: #fff; display: grid; place-items: center; flex: none; }
@keyframes blink { 50% { opacity: 0; } }
.wl { min-height: 100vh; position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #f7f6f3; }
.wl-bg { position: absolute; inset: 0; background: radial-gradient(50% 40% at 15% 100%, #14b8a666 0%, transparent 70%), radial-gradient(50% 40% at 85% 100%, #f59e0b66 0%, transparent 70%), radial-gradient(60% 45% at 50% 110%, #1f4fd877 0%, transparent 70%); }
.wl-c { position: relative; width: 100%; max-width: 560px; text-align: center; padding: 24px; }
.wl-c h1 { font-size: 32px; letter-spacing: -0.02em; margin-bottom: 22px; }
.wl-form { max-width: 380px; margin: 0 auto; text-align: left; }
.wl-form .input { height: 42px; border-radius: 12px; }
.wl-pref { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 18px; }
.wl-pref label { display: flex; gap: 8px; align-items: center; }
.wl .au-go { background: #111; color: #fff; }
.wl-roles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.wl-roles button { border: 1px solid #e3e1dc; background: #ffffffcc; backdrop-filter: blur(6px); border-radius: 14px; padding: 18px 8px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 10px; font-weight: 600; font-size: 13px; color: #24262b; }
.wl-roles button:hover { background: #fff; border-color: #9fb3ec; }
.wl-roles svg.i { width: 20px; height: 20px; }
.wl-sizes { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 16px; }
.wl-sizes label { cursor: pointer; }
.wl-sizes input { display: none; }
.wl-sizes span { display: inline-block; border: 1px solid #e3e1dc; background: #fff; border-radius: 999px; padding: 7px 14px; font-size: 13.5px; }
.wl-sizes input:checked + span { border-color: #1f4fd8; background: #eef3ff; color: #163a9e; font-weight: 600; }
.wl-dots { position: absolute; bottom: 30px; display: flex; gap: 6px; }
.wl-dots i { width: 8px; height: 8px; border-radius: 99px; background: #c9c7c2; }
.wl-dots i.on { width: 22px; background: #111; }
@media (max-width: 860px) { .au { grid-template-columns: 1fr; } .au-r { display: none; } .wl-roles { grid-template-columns: 1fr 1fr; } }

/* ================= ATLAS style for studio, home, sign-in: one sans (IBM Plex Sans), white + blue, A/S wordmark ================= */
.st, .hm, .au, .wl, .pm2, .cm, .st-pop, .st-menu { font-family: "IBM Plex Sans", ui-sans-serif, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.st h1, .st h2, .st h3, .hm h1, .hm h2, .au h1, .wl h1, .pm2 h2, .cm h3, .st-pop h3 { font-family: "IBM Plex Sans", ui-sans-serif, sans-serif; }
.wm { display: inline-flex; align-items: baseline; gap: .42em; color: #0b1220; white-space: nowrap; }
.wm i { font-family: "Newsreader", Georgia, serif; font-style: italic; font-size: 1.15em; }
.wm b { font-family: "Newsreader", Georgia, serif; font-weight: 500; letter-spacing: .14em; font-size: 1em; }
.wm em { font-style: normal; font-family: "IBM Plex Sans", sans-serif; color: #1f4fd8; font-weight: 500; font-size: .92em; }
.st-logo .wm i { font-size: 19px; color: #0b1220; }
.rl-logo { padding: 6px 8px 14px; font-size: 15px; }
.au-logo { font-size: 18px; }
.au .wm { color: #fff; } .au .wm em { color: #8fb0ff; }
.wl .au-logo { font-size: 18px; margin-bottom: 18px; }
.sq { background: #1f4fd8; }
.st-tr .btn.primary, .st-send { background: #1f4fd8; border-color: #1f4fd8; }
.st-send:disabled { background: #c9cfdc; }
.hm-bg { background: radial-gradient(55% 50% at 12% 90%, #5b8cff88 0%, transparent 62%), radial-gradient(55% 50% at 88% 85%, #9db8ff99 0%, transparent 62%), radial-gradient(75% 60% at 50% 108%, #1f4fd8cc 0%, transparent 66%), linear-gradient(180deg, #f7f8fb 0%, #f7f8fb 32%, transparent 100%); }
.hm, .rail { background: #f7f8fb; }
.hm-hero h1 { font-weight: 600; letter-spacing: -0.03em; }
.hm-hero h1 em { background: none; -webkit-background-clip: initial; background-clip: initial; color: #1f4fd8; }
.hm-th { background: radial-gradient(80% 90% at 0% 100%, #5b8cff44, transparent 60%), linear-gradient(135deg, #e9eefb, #f7f8fb); }
.au { background: #0b1220; }
.au-r { background: radial-gradient(60% 45% at 50% 0%, #0b1220 0%, transparent 70%), radial-gradient(70% 55% at 15% 100%, #5b8cff 0%, transparent 60%), radial-gradient(70% 55% at 100% 90%, #9db8ff 0%, transparent 60%), linear-gradient(180deg, #0f1d4a 0%, #1f4fd8 60%, #cfdcff 100%); }
.au .input { background: #111a2e; border-color: #26324d; }
.wl, .wl-bg { background: #f7f8fb; }
.wl-bg { background: radial-gradient(50% 40% at 15% 100%, #5b8cff55 0%, transparent 70%), radial-gradient(50% 40% at 85% 100%, #9db8ff66 0%, transparent 70%), radial-gradient(60% 45% at 50% 110%, #1f4fd866 0%, transparent 70%); }
.cm-art, .pm2-r { background: radial-gradient(80% 60% at 15% 100%, #5b8cff 0%, transparent 60%), radial-gradient(70% 60% at 100% 80%, #9db8ff 0%, transparent 60%), linear-gradient(160deg, #0b1220 0%, #1f4fd8 75%); }
.pp-ic { background: #1f4fd8; }
.rl-up i { background: #eef3ff; color: #1f4fd8; }
.hm-bg { height: 900px; -webkit-mask-image: linear-gradient(#000 62%, transparent); mask-image: linear-gradient(#000 62%, transparent); }
.rl-logo { font-size: 17px; }
.wm i, .wm b { color: #0b1220; }
.au .wm i, .au .wm b { color: #fff; }

/* ================= ATLAS identity in the studio ================= */
.st { --sb: #f4f6fa; --sl: #e1e6ef; }
.st-top { background: #0b1220; color: #e6ebf5; border-bottom: 1px solid #1b2740; }
.st-top .st-name { color: #fff; font-weight: 600; }
.st-top .st-logo .wm i { color: #fff; }
.st-top .st-ib { color: #9fb0cf; } .st-top .st-ib:hover { background: #18233a; color: #fff; }
.st-views { background: #121c31; }
.st-views button { color: #9fb0cf; font-family: "IBM Plex Sans", sans-serif; }
.st-views button.on { background: #1f4fd8; color: #fff; box-shadow: none; }
.st-dev button { color: #7f8fae; } .st-dev button.on { background: #18233a; color: #fff; }
.st-page { background: #121c31; border-color: #22304d; color: #e6ebf5; }
.st-top .btn:not(.primary) { background: transparent; color: #e6ebf5; border-color: #2a3858; }
.st-top .btn:not(.primary):hover { background: #18233a; }
.st-chat { padding-top: 6px; }
.st-view { padding-top: 12px; }
.sm-card .pill, .sm-ct .pill { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 11px; letter-spacing: .02em; background: #0b1220; color: #fff; }
.sm-steps div { font-family: "IBM Plex Sans", sans-serif; }

/* map */
.st-map, .st-pulse { height: 100%; background: #fff; border: 1px solid var(--sl); border-radius: 16px; overflow: auto; }
.mp-h, .pu-h { padding: 18px 22px 0; }
.mp-h b, .pu-h b { display: block; font-size: 17px; }
.mp-h span, .pu-h span { display: block; color: #6b7585; font-size: 13.5px; max-width: 760px; margin-top: 2px; }
.mp-c { position: relative; margin: 6px 20px 20px; background-image: radial-gradient(#dfe5ef 1px, transparent 1px); background-size: 18px 18px; border-radius: 12px; }
.mp-svg { position: absolute; inset: 0; }
.mp-svg path { fill: none; stroke: #9aa7bf; stroke-width: 1.6; }
.mp-svg path.fl { stroke: #1f4fd8; stroke-width: 2.2; stroke-dasharray: 6 4; animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -20; } }
.mp-step { position: absolute; top: 24px; font: 600 11px/1 "IBM Plex Mono", monospace; letter-spacing: .1em; text-transform: uppercase; color: #8a96ad; }
.mp-n { position: absolute; background: #fff; border: 1px solid #d7deea; border-radius: 12px; padding: 12px 14px; text-align: left; cursor: pointer; box-shadow: 0 2px 8px #0b12200d; display: flex; flex-direction: column; gap: 8px; font-family: "IBM Plex Sans", sans-serif; transition: border-color .15s, box-shadow .15s; }
.mp-n:hover { border-color: #1f4fd8; box-shadow: 0 6px 18px #1f4fd81f; }
.mp-n.mv { border-color: #b9c9f5; background: #f6f8ff; }
.mp-t { display: flex; align-items: center; gap: 8px; font-size: 14.5px; color: #0b1220; }
.mp-t svg { color: #1f4fd8; }
.mp-k { display: flex; gap: 12px; font-size: 11.5px; color: #6b7585; }
.mp-k em { display: block; font-style: normal; font: 600 15px/1.1 "IBM Plex Mono", monospace; color: #0b1220; }
.mp-a { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: #9a6100; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-a svg.i { width: 13px; height: 13px; flex: none; }

/* pulse */
.pu-g { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 16px 22px 22px; }
.pu-c { border: 1px solid #e1e6ef; border-radius: 14px; padding: 18px; background: #fff; min-width: 0; }
.pu-c.wide { grid-column: 1 / -1; background: #0b1220; color: #e6ebf5; border-color: #0b1220; }
.pu-l { font: 600 11px/1.3 "IBM Plex Mono", monospace; letter-spacing: .08em; text-transform: uppercase; color: #8a96ad; }
.pu-big { font: 600 34px/1.1 "IBM Plex Mono", monospace; letter-spacing: -.02em; margin: 10px 0 6px; color: #0b1220; }
.pu-c.wide .pu-big { color: #fff; }
.pu-big small { font-size: 15px; font-weight: 500; color: #8a96ad; letter-spacing: 0; }
.pu-s { font-size: 13.5px; color: #5d6779; }
.pu-c.wide .pu-s { color: #aebbd4; margin-top: 8px; }
.pu-bar { position: relative; height: 8px; margin: 16px 0 4px; border-radius: 99px; background: #18233a; }
.pu-bar i { position: absolute; top: 0; bottom: 0; border-radius: 99px; background: linear-gradient(90deg, #1f4fd8, #6f8fff); }
.pu-bar b { position: absolute; top: -5px; width: 2px; height: 18px; background: #fff; }
.pu-p { font: 600 14px "IBM Plex Mono", monospace; } .pu-p.up { color: #6fd69a; } .pu-p.dn { color: #ff9b8a; }
.pu-t { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 13px; }
.pu-t th { text-align: left; font: 600 10.5px "IBM Plex Mono", monospace; letter-spacing: .06em; text-transform: uppercase; color: #8a96ad; padding: 0 0 8px; border-bottom: 1px solid #e1e6ef; }
.pu-t th.num, .pu-t td.num { text-align: right; }
.pu-t td { padding: 7px 0; border-bottom: 1px solid #f0f2f6; font-variant-numeric: tabular-nums; }
.pu-t td:first-child { max-width: 180px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 8px; }
.rk { font: 600 12.5px "IBM Plex Mono", monospace; padding: 2px 7px; border-radius: 6px; }
.rk.hi { background: #fdecea; color: #b42318; } .rk.md { background: #fdf3e2; color: #9a6100; } .rk.lo { background: #e9f6ef; color: #157347; }
.pu-n { grid-column: 1 / -1; font-size: 12px; color: #8a96ad; margin: 0; }

/* plan sheet */
.plan { background: #fff; border: 1px solid #d7deea; border-radius: 14px; padding: 18px 18px 14px; margin-top: 10px; box-shadow: 0 8px 26px #0b122012; }
.pl-h { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 1.5px solid #0b1220; padding-bottom: 8px; margin-bottom: 12px; font-size: 13px; }
.pl-h > span:last-child { font: 600 10.5px "IBM Plex Mono", monospace; letter-spacing: .1em; text-transform: uppercase; color: #1f4fd8; }
.plan h3 { margin: 0 0 4px; font-size: 17px; }
.plan > p { margin: 0 0 10px; font-size: 13.5px; color: #4a5568; }
.pl-s { border-top: 1px solid #edf0f5; padding: 9px 0; }
.pl-s b { display: block; font: 600 10.5px "IBM Plex Mono", monospace; letter-spacing: .08em; text-transform: uppercase; color: #6b7585; margin-bottom: 5px; }
.pl-s ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; }
.pl-s li { display: flex; flex-direction: column; }
.pl-s li em { font-style: normal; color: #6b7585; font-size: 12.5px; }
.pl-f { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.pl-adj textarea { margin-top: 10px; font-size: 13.5px; }

.au-box span { flex: 0 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; direction: rtl; text-align: left; }

/* a system's own sign-in */
.al { min-height: 100vh; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; font-family: var(--font); }
.al-c { width: 100%; max-width: 380px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 30px 28px; box-shadow: 0 20px 60px #0b122014; }
.al-co { font-size: 12.5px; color: var(--mute); font-weight: 560; margin-bottom: 4px; }
.al-c h1 { font-family: var(--hfont); font-size: 26px; margin-bottom: 6px; }
.al-c p.muted { margin: 0 0 18px; }
.al-go { width: 100%; justify-content: center; height: 40px; }
.al-n { margin: 14px 0 0; }
.al-by { margin-top: 22px; font-size: 12.5px; color: var(--mute); display: flex; align-items: baseline; gap: 6px; }
.al-by .wm { font-size: 13px; } .al-by .wm i, .al-by .wm b { color: var(--ink2); }

.demo-bar { display: flex; align-items: center; gap: 10px; background: var(--amber-bg); color: var(--amber); padding: 9px 28px; font-size: 13px; }
.demo-bar span { flex: 1; } .demo-bar .btn { background: var(--card); }
.st-demo { display: flex; gap: 10px; background: #fdf5e6; border: 1px solid #f1dfb8; color: #7a4f00; border-radius: 12px; padding: 10px 12px; margin: 8px 0 0; font-size: 12.5px; }
.st-demo div { display: flex; flex-direction: column; gap: 3px; } .st-demo b { font-size: 13px; } .st-demo .btn { align-self: flex-start; margin-top: 4px; }
.pu-demo { margin: 16px 22px 0; background: #fdf5e6; color: #7a4f00; border-radius: 10px; padding: 9px 12px; font-size: 13px; }

.im-w .im { position: fixed; z-index: 61; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 560px; max-width: 95vw; max-height: 90vh; overflow: auto; background: var(--card, #fff); border-radius: 16px; padding: 18px 20px; box-shadow: 0 30px 80px #00000040; font-family: "IBM Plex Sans", var(--font); color: var(--ink); }
.im-w .im.wide { width: 980px; }
.im-h { display: flex; align-items: center; margin-bottom: 12px; } .im-h h3 { flex: 1; margin: 0; font-size: 17px; }
.im-w .drop { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.im-map { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; font-size: 12.5px; }
.im-map span { border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; } .im-map em { color: var(--mute); font-style: normal; margin-left: 4px; }
.im-t { max-height: 46vh; } .im-t td[contenteditable] { outline: none; } .im-t td[contenteditable]:focus { background: var(--blue-bg); }
.spin.dark { border-color: #0b122022; border-top-color: #1f4fd8; width: 22px; height: 22px; }
.rl-scrim { position: fixed; inset: 0; z-index: 39; background: #0b122033; }

.hm-kinds { display: inline-flex; gap: 4px; background: #ffffffb0; border: 1px solid #e4e8ef; border-radius: 999px; padding: 4px; margin-bottom: 14px; backdrop-filter: blur(6px); }
.hm-kinds button { border: 0; background: none; border-radius: 999px; padding: 7px 14px; font: 600 13px "IBM Plex Sans", sans-serif; color: #3b4556; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.hm-kinds button.on { background: #0b1220; color: #fff; }
.hm-kinds button:disabled { opacity: .55; cursor: default; }
.hm-kinds em { font-style: normal; font-size: 10.5px; font-weight: 600; background: #eef3ff; color: #1f4fd8; border-radius: 99px; padding: 1px 6px; }
.sim-sum { max-width: 820px; color: var(--ink2); margin: -4px 0 16px; }
.sim-k .kpi { min-height: 0; padding-bottom: var(--pad) !important; }
.sim-g { grid-template-columns: 1fr 1.3fr; }
.sim-in { display: flex; flex-direction: column; gap: 14px; max-height: 520px; overflow-y: auto; padding-right: 6px; }
.si-h { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.si-h span { color: var(--ink2); } .si-h b { font-variant-numeric: tabular-nums; }
.si input[type=range] { width: 100%; accent-color: var(--blue); margin: 6px 0 2px; }
.si-r { font-size: 11.5px; color: var(--mute); }
.sim-t { max-height: 520px; } .sim-t tr.hl td { font-weight: 650; background: var(--blue-bg); }
@media (max-width: 900px) { .sim-g { grid-template-columns: 1fr; } }
.prev-bar { background: #0b1220; color: #fff; font-size: 12.5px; padding: 7px 28px; letter-spacing: .02em; }

.web-page { position: fixed; inset: 0; display: flex; flex-direction: column; background: #fff; }
.web-host { flex: 1; min-height: 0; }
.web-frame { width: 100%; height: 100%; border: 0; display: block; background: #fff; }

.cr-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid #2a3858; background: transparent; color: #e6ebf5; font: 550 12.5px "IBM Plex Sans", sans-serif; cursor: pointer; margin-right: 6px; }
.cr-chip svg.i { width: 14px; height: 14px; color: #8fb0ff; } .cr-chip.low { border-color: #f2b955; color: #f2b955; } .cr-chip:hover { background: #18233a; }
.chart-empty { height: 200px; display: grid; place-items: center; color: var(--mute); font-size: 13.5px; text-align: center; padding: 0 20px; }

.cm-bar { display: flex; gap: 10px; align-items: center; margin: 14px 0 18px; flex-wrap: wrap; }
.cg { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.cc { background: #fff; border: 1px solid #e4e8ef; border-radius: 14px; overflow: hidden; color: #0b1220; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; }
.cc:hover { text-decoration: none; box-shadow: 0 10px 30px #0b12201a; transform: translateY(-2px); }
.cc-th { height: 130px; position: relative; display: grid; place-items: center; background: linear-gradient(135deg, #1f4fd8, #5b8cff); color: #fff; }
.cc-th.k-sim { background: linear-gradient(135deg, #0b1220, #1f4fd8); } .cc-th.k-game { background: linear-gradient(135deg, #5b8cff, #9db8ff); }
.cc-th b { font-size: 44px; font-weight: 700; } .cc-th span { position: absolute; left: 10px; top: 10px; font-size: 11px; font-weight: 600; background: #ffffff30; border-radius: 99px; padding: 2px 9px; }
.cc-b { padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; } .cc-b p { margin: 6px 0; font-size: 13px; color: #4a5568; }
.cc-m { display: flex; gap: 12px; align-items: center; font-size: 12.5px; color: #6b7585; } .cc-m svg.i { width: 13px; height: 13px; } .cc-m em { margin-left: auto; font-style: normal; font-weight: 600; color: #1f4fd8; }
.cp { min-height: 100vh; display: flex; flex-direction: column; background: #f7f8fb; font-family: "IBM Plex Sans", var(--font); }
.cp-h { display: flex; align-items: center; gap: 12px; padding: 10px 18px; background: #fff; border-bottom: 1px solid #e4e8ef; }
.cp-t { display: flex; flex-direction: column; } .cp-h .grow { flex: 1; }
.cp-g { flex: 1; display: grid; grid-template-columns: 1fr 340px; gap: 14px; padding: 14px; min-height: 0; }
.cp-prev { background: #fff; border: 1px solid #e4e8ef; border-radius: 14px; overflow: hidden; min-height: 70vh; }
.cp-side { background: #fff; border: 1px solid #e4e8ef; border-radius: 14px; padding: 16px; overflow-y: auto; }
.cp-side h3 { margin: 16px 0 8px; font-size: 15px; } .cp-side form { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; } .cp-side form .btn { align-self: flex-end; }
.cp-cm div { border-top: 1px solid #eef0f3; padding: 9px 0; } .cp-cm p { margin: 4px 0 0; font-size: 13.5px; }
@media (max-width: 900px) { .cp-g { grid-template-columns: 1fr; } }

.mi-lang { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px 6px 8px; border-bottom: 1px solid #eeece7; margin-bottom: 4px; }
.mi-lang button { border: 1px solid #e4e8ef; background: #fff; border-radius: 99px; padding: 3px 9px; font-size: 12px; cursor: pointer; }
.mi-lang button.on { background: #0b1220; color: #fff; border-color: #0b1220; }
.au-lang { display: flex; gap: 4px; justify-content: center; margin-top: 14px; }
.au-lang button { border: 1px solid #26324d; background: transparent; color: #9fb0cf; border-radius: 99px; padding: 3px 10px; font-size: 12px; cursor: pointer; }
.au-lang button.on { background: #fff; color: #0b1220; }

.tipop { position: fixed; z-index: 90; width: 290px; background: #0b1220; color: #fff; border-radius: 12px; padding: 14px 16px 12px; box-shadow: 0 14px 40px #0b122040; font-family: "IBM Plex Sans", var(--font); animation: tipin .18s ease-out; }
.tipop::before { content: ""; position: absolute; top: -6px; left: calc(var(--ax, 40px) - 6px); width: 12px; height: 12px; background: #0b1220; transform: rotate(45deg); }
.tipop.l::before { top: 18px; left: -6px; }
.tipop b { display: block; font-size: 14px; margin: 0 22px 4px 0; } .tipop p { margin: 0 0 10px; font-size: 13px; line-height: 1.45; color: #c7d1e3; }
.tip-x { position: absolute; top: 8px; right: 8px; background: none; border: 0; color: #9fb0cf; cursor: pointer; padding: 2px; } .tip-x svg.i { width: 14px; height: 14px; }
.tip-f { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: #9fb0cf; }
.tip-f .btn { background: #fff; color: #0b1220; border-color: #fff; }
@keyframes tipin { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.st-pop .sp-foot { flex-wrap: wrap; gap: 8px; justify-content: stretch; }
.st-pop .sp-foot > div[style] { display: none; }
.st-pop .sp-foot .btn { flex: 1 1 100%; justify-content: center; }

.dm-t { border-collapse: collapse; width: 100%; font-size: 13.5px; margin-bottom: 8px; } .dm-t th, .dm-t td { border: 1px solid #e4e8ef; padding: 8px 10px; text-align: left; } .dm-t th { background: #f7f8fb; font-weight: 600; }
.note.warn { background: #fff7e6; border-color: #f3d9a4; color: #7a5200; }

#made-atlas { position: fixed; right: 14px; bottom: 14px; z-index: 80; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; background: #0b1220; color: #fff; font: 500 12.5px "IBM Plex Sans", system-ui, sans-serif; text-decoration: none; box-shadow: 0 6px 20px #0b122030; opacity: .92; transition: opacity .15s, transform .15s; }
#made-atlas:hover { opacity: 1; transform: translateY(-1px); text-decoration: none; }
#made-atlas span { color: #b9c4d8; } #made-atlas i { font-family: Georgia, serif; font-style: italic; } #made-atlas b { letter-spacing: .08em; font-weight: 600; }
.acc { border: 1px solid #e4e8ef; border-radius: 12px; padding: 10px; margin: 8px 0 12px; display: flex; flex-direction: column; gap: 6px; }
.acc-h { font-size: 12px; font-weight: 600; color: #6b7585; text-transform: uppercase; letter-spacing: .05em; padding: 0 2px 2px; }
.acc-o { display: flex; gap: 10px; align-items: flex-start; padding: 7px 8px; border-radius: 9px; cursor: pointer; border: 1px solid transparent; }
.acc-o input { display: none; } .acc-o svg.i { width: 16px; height: 16px; margin-top: 2px; color: #6b7585; }
.acc-o span { display: flex; flex-direction: column; } .acc-o b { font-size: 13.5px; font-weight: 600; } .acc-o em { font-style: normal; font-size: 12.5px; color: #6b7585; }
.acc-o.on { border-color: #1f4fd8; background: #f2f5ff; } .acc-o.on svg.i { color: #1f4fd8; }
.acc-code { display: flex; align-items: center; gap: 6px; padding: 4px 8px; } .acc-code code { font-size: 16px; letter-spacing: .14em; font-weight: 600; background: #f7f8fb; padding: 4px 10px; border-radius: 8px; flex: 1; }
.acc-b { display: flex; gap: 8px; align-items: center; font-size: 13px; padding: 6px 8px 2px; border-top: 1px solid #eeece7; margin-top: 4px; }

.cc-th { background-size: cover; background-position: center; }
.cp-cover { width: 100%; border-radius: 10px; aspect-ratio: 16/9; object-fit: cover; margin-bottom: 4px; }
.cp-ex { background: #f2f5ff; color: #1f4fd8; border-radius: 8px; padding: 8px 10px; font-size: 13px; margin: 8px 0; }
.cv-cur { display: flex; align-items: center; gap: 10px; margin: 4px 0 8px; } .cv-cur img { width: 120px; height: 68px; object-fit: cover; border-radius: 8px; }
.cv-bar { display: flex; gap: 6px; align-items: center; } .cv-bar .input { flex: 1; }
.cv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; }
.cv-grid button { aspect-ratio: 16/10; border: 2px solid transparent; border-radius: 8px; background-size: cover; background-position: center; cursor: pointer; } .cv-grid button:hover { border-color: #1f4fd8; }
.sm-u.queued { opacity: .6; } .q-tag { font-size: 11.5px; color: #6b7585; margin-top: 4px; display: flex; gap: 8px; align-items: center; } .q-x { background: none; border: 0; color: #1f4fd8; cursor: pointer; font-size: 11.5px; padding: 0; }

.hm.pub { display: block; } .cm-top { display: flex; align-items: center; gap: 8px; padding: 14px 28px; border-bottom: 1px solid #e4e8ef; background: #fff; } .cm-top .wm { color: #0b1220; text-decoration: none; }
.hm.pub .hm-main { max-width: 1200px; margin: 0 auto; }
.sim-demo { padding: 16px; overflow-y: auto; max-height: 80vh; } .sim-demo .kpis { margin-bottom: 12px; }

.sim-verdict { display: flex; gap: 12px; align-items: baseline; padding: 12px 16px; border-radius: 12px; margin-bottom: 12px; border: 1px solid; font-size: 14px; line-height: 1.5; }
.sim-verdict b { white-space: nowrap; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.sim-verdict.good { background: #effaf4; border-color: #bfe8d0; color: #14532d; } .sim-verdict.mid { background: #fff8eb; border-color: #f3dca8; color: #713f12; } .sim-verdict.bad { background: #fdf0f0; border-color: #f2c4c4; color: #7f1d1d; }
.sim-sc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 12px; }
.sim-sc .card { padding: 14px 16px; } .sim-sc .l { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: #6b7585; font-weight: 600; }
.sim-sc .v { font-size: 24px; font-weight: 600; margin: 4px 0; font-variant-numeric: tabular-nums; } .sim-sc .dl { font-size: 12.5px; color: #6b7585; } .sim-sc .sc-c { font-size: 12.5px; margin-top: 8px; padding-top: 8px; border-top: 1px solid #eef0f3; }
.sim-sc .sc-p10 { border-top: 3px solid #d14343; } .sim-sc .sc-p50 { border-top: 3px solid #1f4fd8; } .sim-sc .sc-p90 { border-top: 3px solid #1f9d55; }
.sim-hist .hb { display: flex; align-items: flex-end; gap: 2px; height: 170px; margin-top: 10px; }
.sim-hist .hb i { flex: 1; background: #1f4fd8; opacity: .8; border-radius: 2px 2px 0 0; min-height: 1px; } .sim-hist .hb i.neg { background: #d14343; } .sim-hist .hb i.mix { background: linear-gradient(90deg, #d14343 50%, #1f4fd8 50%); }
.sim-hist .hx { display: flex; justify-content: space-between; font-size: 11.5px; color: #6b7585; margin: 6px 0; font-variant-numeric: tabular-nums; }
.sim-tor { display: flex; flex-direction: column; gap: 9px; margin-top: 10px; }
.sim-tor .tr { display: grid; grid-template-columns: 34% 1fr 30%; gap: 10px; align-items: center; font-size: 12.5px; }
.sim-tor .tl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .sim-tor .tv { color: #6b7585; text-align: right; font-variant-numeric: tabular-nums; font-size: 11.5px; }
.sim-tor .tb { position: relative; height: 14px; background: linear-gradient(90deg, transparent calc(50% - .5px), #c9d0db calc(50% - .5px), #c9d0db calc(50% + .5px), transparent calc(50% + .5px)); }
.sim-tor .tb i { position: absolute; top: 0; bottom: 0; border-radius: 2px; } .sim-tor .tb i.neg { right: 50%; background: #d14343; } .sim-tor .tb i.pos { left: 50%; background: #1f9d55; }
.sim-t .rng { font-size: 10.5px; color: #6b7585; white-space: nowrap; }
@media (max-width: 900px) { .sim-sc { grid-template-columns: 1fr; } }
.hm-hero h1 { white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: clip; }

.st-mic { width: 32px; height: 32px; border-radius: 50%; border: 1px solid #e4e8ef; background: #fff; display: grid; place-items: center; cursor: pointer; color: #4a5568; margin-right: 6px; }
.st-mic svg.i { width: 16px; height: 16px; } .st-mic.on { background: #d14343; border-color: #d14343; color: #fff; animation: micp 1.2s infinite; }
@keyframes micp { 0%, 100% { box-shadow: 0 0 0 0 #d1434355; } 50% { box-shadow: 0 0 0 6px #d1434300; } }
.hm-hero h1 { line-height: 1.2; padding-bottom: .08em; }

.sp-link { display: flex; gap: 8px; align-items: center; background: #f7f8fb; border: 1px solid #e4e8ef; border-radius: 10px; padding: 8px 8px 8px 12px; margin: 6px 0 4px; }
.sp-link code, .sp-link span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; }
.as-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 16px; }
.as-i { border: 1px solid #e4e8ef; border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 6px; } .as-i img { width: 100%; aspect-ratio: 4/3; object-fit: contain; background: #f7f8fb; border-radius: 6px; }
.as-i span { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* On phones, and always after a few seconds, the badge shrinks to a small mark so it never covers the game */
#made-atlas.mini span, #made-atlas.mini b { display: none; } #made-atlas.mini { padding: 5px 9px; opacity: .55; font-size: 11px; }
#made-atlas.mini:hover { opacity: 1; }
@media (max-height: 520px), (max-width: 600px) { #made-atlas { right: 6px; bottom: 6px; padding: 4px 9px; font-size: 10.5px; gap: 4px; opacity: .9; } }
#made-atlas { left: auto !important; width: auto !important; max-width: max-content; display: inline-flex !important; }
.st-prev.phone.land iframe { width: min(844px, calc(100% - 40px)); height: 390px; }
.st-dev [data-dev=land] svg.i { transform: rotate(90deg); }

/* ---------- phones ---------- */
.rl-burger, .st-mob { display: none; }
@media (max-width: 900px) {
  .rl-burger { display: grid; place-items: center; position: fixed; top: 10px; left: 10px; z-index: 70; width: 40px; height: 40px; border-radius: 12px; border: 1px solid #e4e8ef; background: #fff; box-shadow: 0 4px 14px #0b122014; }
  .hm.railopen > .rail { display: flex !important; position: fixed; inset: 0 22% 0 0; z-index: 69; background: #fff; overflow-y: auto; box-shadow: 0 0 0 100vmax #0b122055; padding-top: 60px; }
  .hm-main { padding-top: 56px; }
  .hm-kinds { flex-wrap: wrap; justify-content: center; max-width: 100%; height: auto; border-radius: 18px; }
  .hm-kinds button { padding: 7px 11px; font-size: 13px; }
  .hm-hero h1 { font-size: 30px; white-space: normal; } .hm-hero { padding: 40px 14px 0; }
  .cm-bar { gap: 8px; } .cm-bar .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; } .cm-bar .seg button { flex: 0 0 auto; }
  .cm-bar .input { max-width: none !important; width: 100%; }
  .cm-top { padding: 10px 12px; flex-wrap: wrap; } .cm-top .btn:not(.primary) { display: none; }
  .cg { grid-template-columns: 1fr 1fr; gap: 10px; } .cc-th { height: 100px; } .cc-b p { display: none; }
  .cp-h { flex-wrap: wrap; padding: 10px 12px; } .cp-t { order: 3; flex: 1 1 100%; } .cp-h .grow { display: none; } .cp-h .btn { font-size: 12.5px; }
  .cp-g { padding: 8px; } .cp-prev { min-height: 62vh; }
  /* studio: chat or preview, a tap away */
  .st { grid-template-rows: 52px 1fr; }
  .st-mob { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: #ffffff14; margin-left: 8px; }
  .st-mob button { border: 0; background: transparent; color: #c9d3e6; padding: 5px 10px; border-radius: 8px; font: 600 12.5px var(--font); display: grid; place-items: center; cursor: pointer; } .st-mob button.on { background: #fff; color: #0b1220; } .st-mob svg.i { width: 15px; height: 15px; }
  .st-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
  .st-tl .grow, #stp { display: none; }
  .st.mprev .st-chat { display: none; } .st.mprev .st-view { display: block; padding: 8px; }
  .st.mprev .st-prev.phone iframe, .st.mprev .st-prev iframe { width: 100%; height: 100%; border-radius: 12px; box-shadow: none; }
  .st-prev.phone, .st-prev { padding: 0; }
  .st-chat { padding: 0 10px 10px; }
  /* nothing in the chat may push it wider than the phone */
  .st, .st-top { grid-template-columns: minmax(0, 1fr) !important; } .st-chat, .st-msgs, .st-chat > * { min-width: 0; max-width: 100%; }
  .st-msgs .sm-card, .st-msgs .sm-a, .st-msgs .sm-u { max-width: 100%; overflow-wrap: anywhere; } .st-msgs .sm-ct { flex-wrap: wrap; }
  .st-sugg { overflow-x: auto; flex-wrap: nowrap; max-width: 100%; }
  .pm2 { width: calc(100vw - 20px); }
  .tipop { display: none; }
}
@media (max-width: 900px) { .sim-t, .tbl-wrap { overflow-x: auto; max-width: 100%; } .sim-g { gap: 10px; } .sim-tor .tr { grid-template-columns: 40% 1fr; } .sim-tor .tv { display: none; } }

.srch { position: fixed; inset: 0; z-index: 95; display: grid; place-items: start center; padding-top: 12vh; }
.srch .scrim { position: absolute; inset: 0; background: #0b122055; }
.srch-b { position: relative; width: min(640px, calc(100vw - 24px)); background: #fff; border-radius: 16px; box-shadow: 0 30px 80px #0b122040; overflow: hidden; font-family: "IBM Plex Sans", var(--font); }
.srch-i { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid #eef0f3; } .srch-i input { flex: 1; border: 0; outline: 0; font-size: 16px; } .srch-i kbd { font-size: 11px; color: #6b7585; border: 1px solid #e4e8ef; border-radius: 6px; padding: 2px 6px; }
.srch-r { max-height: 60vh; overflow-y: auto; padding: 6px; } .srch-s { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: #6b7585; padding: 10px 10px 4px; }
.srch-a { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; color: #0b1220; text-decoration: none; } .srch-a:hover { background: #f2f5ff; text-decoration: none; } .srch-a span { display: flex; flex-direction: column; min-width: 0; } .srch-a em { font-style: normal; font-size: 12.5px; color: #6b7585; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srch-e { padding: 20px; text-align: center; color: #6b7585; font-size: 14px; }

.dm-res { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; } .dm-r { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid #e4e8ef; border-radius: 10px; } .dm-r b { flex: 1; } .dm-r span { font-size: 13px; }
.modal { position: fixed; inset: 0; z-index: 96; display: grid; place-items: center; padding: 12px; } .modal .scrim { position: absolute; inset: 0; background: #0b122055; z-index: 0; } .modal > .mcard { z-index: 1; }
.mcard { position: relative; background: #fff; border-radius: 16px; padding: 22px; width: min(560px, 100%); max-height: 92vh; overflow: auto; box-shadow: 0 30px 80px #0b122040; }
.dm-g { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; } .dm-g .f:not(.half) { grid-column: 1 / -1; }
.st.nochat .st-view { grid-column: 2; grid-row: 2; }

/* "Hecho con ATLAS" readable on phones */
@media (max-height: 520px), (max-width: 600px) { #made-atlas { padding: 7px 12px !important; font-size: 13px !important; opacity: .95 !important; right: 8px !important; bottom: 8px !important; } }

.ag { height: 100vh; display: flex; flex-direction: column; background: #f7f8fb; font-family: "IBM Plex Sans", var(--font); }
.ag-h { display: flex; align-items: center; gap: 12px; padding: 12px 18px; background: #fff; border-bottom: 1px solid #e4e8ef; } .ag-h .grow { flex: 1; }
.ag-h b { display: block; font-size: 15px; } .ag-h span { font-size: 12.5px; color: #6b7585; }
.ag-av { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, #1f4fd8, #5b8cff); color: #fff; display: grid; place-items: center; font-weight: 700; }
.ag-m { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; max-width: 760px; width: 100%; margin: 0 auto; }
.ag-b { max-width: 82%; padding: 10px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; } .ag-b.a { background: #fff; border: 1px solid #e4e8ef; align-self: flex-start; border-bottom-left-radius: 4px; } .ag-b.u { background: #1f4fd8; color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.ag-act { margin-top: 6px; font-size: 12px; color: #1f9d55; }
.ag-b.typing { display: flex; gap: 4px; } .ag-b.typing i { width: 7px; height: 7px; border-radius: 50%; background: #9aa7bb; animation: agd 1s infinite; } .ag-b.typing i:nth-child(2) { animation-delay: .15s; } .ag-b.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes agd { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
.ag-st { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 0 18px 10px; } .ag-st button { border: 1px solid #d5dcea; background: #fff; border-radius: 999px; padding: 7px 13px; font-size: 13px; cursor: pointer; }
.ag-f { display: flex; gap: 8px; padding: 12px 18px 16px; max-width: 760px; width: 100%; margin: 0 auto; } .ag-f textarea { flex: 1; border: 1px solid #d5dcea; border-radius: 14px; padding: 11px 14px; font: inherit; resize: none; }
.ag-sec { border: 1px solid #e4e8ef; border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; background: #fff; } .ag-sec b { font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: #6b7585; } .ag-sec p { margin: 6px 0 0; } .ag-sec pre { white-space: pre-wrap; font: 13.5px/1.55 "IBM Plex Sans", var(--font); margin: 6px 0 0; }

.hm-chips { display: none !important; }

.cx { border: 1px solid #e4e8ef; border-radius: 14px; padding: 14px 16px; margin-bottom: 10px; background: #fff; display: flex; flex-direction: column; gap: 10px; } .cx.off { flex-direction: row; align-items: center; justify-content: space-between; opacity: .7; }
.cx-h { display: flex; flex-direction: column; gap: 2px; } .cx-h span { font-size: 13px; color: #6b7585; } .cx-b { display: flex; gap: 8px; flex-wrap: wrap; } .cx-imp { border-top: 1px solid #eef0f3; padding-top: 10px; }

.cv-tip { display: flex; gap: 8px; align-items: flex-start; background: #f2f5ff; color: #1f3a8a; border-radius: 10px; padding: 10px 12px; font-size: 13px; margin: 0 0 12px; } .cv-tip svg.i { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 1px; }
.cv-prev { max-width: 300px; margin-bottom: 14px; } .cv-prev .cc { pointer-events: none; }

.pw-w { position: relative; display: block; } .pw-w .input { padding-right: 44px; width: 100%; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; background: transparent; border-radius: 8px; display: grid; place-items: center; color: #6b7585; cursor: pointer; }
.pw-eye:hover { background: #f1f3f7; } .pw-eye.on { color: var(--blue); } .pw-eye svg.i { width: 18px; height: 18px; }
.au-rem { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: #3b4556; margin: -4px 0 12px; cursor: pointer; } .au-rem input { width: 16px; height: 16px; accent-color: var(--blue); }
.au-or { display: flex; align-items: center; gap: 12px; color: #8a93a3; font-size: 12.5px; margin: 16px 0; } .au-or::before, .au-or::after { content: ''; flex: 1; height: 1px; background: #e3e7ef; }
.au-g { width: 100%; height: 44px; display: flex; align-items: center; justify-content: center; gap: 10px; background: #fff; border: 1px solid #d7dce5; color: #1f2430; font-weight: 600; border-radius: 10px; text-decoration: none; }
.au-g:hover { background: #f7f8fb; }
.au .pw-eye { background: transparent; color: #9aa6bd; } .au .pw-eye:hover { background: #ffffff14; } .au .pw-eye.on { color: #8fb0ff; }
.au .au-rem { color: #c3cad8; } .au .au-or { color: #8a93a3; } .au .au-or::before, .au .au-or::after { background: #ffffff1f; }

.adm { max-width: 1180px; margin: 0 auto; padding: 32px 28px 60px; } .adm-h h1 { margin: 2px 0 14px; font-size: 30px; } .adm .k { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.adm-ks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; } .adm-k { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; box-shadow: 0 8px 24px #0b12200a; }
.adm-k span { display: block; font-size: 12.5px; color: var(--mute); } .adm-k b { display: block; font-size: 28px; margin: 4px 0 2px; font-variant-numeric: tabular-nums; } .adm-k em { font-style: normal; font-size: 12.5px; color: var(--mute); }
.adm-g2 { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; } .adm h3 { margin: 0 0 10px; font-size: 15px; }
.adm-bars { display: flex; align-items: flex-end; gap: 3px; height: 160px; } .adm-bars i { flex: 1; background: linear-gradient(180deg, #4f7dff, #1f4fd8); border-radius: 4px 4px 0 0; min-height: 2px; }
.adm-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; } .adm-row b { font-variant-numeric: tabular-nums; }
.adm-funnel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.adm-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.adm-pipe { display: grid; grid-template-columns: repeat(9, 1fr); gap: 6px; margin: 4px 0 12px; } .adm-pipe button { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 6px; cursor: pointer; text-align: center; }
.adm-pipe button b { display: block; font-size: 20px; } .adm-pipe button span { font-size: 11.5px; color: var(--mute); } .adm-pipe button.on { border-color: var(--blue); box-shadow: 0 0 0 3px #1f4fd81f; }
@media (max-width: 900px) { .adm-ks, .adm-g2, .adm-funnel { grid-template-columns: 1fr; } .adm-pipe { grid-template-columns: repeat(3, 1fr); } .adm { padding: 18px 12px; } }

.att-row { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 2px 8px; } .att-row[hidden] { display: none; }
.att { display: inline-flex; align-items: center; gap: 6px; background: #eef3ff; color: #1f2a44; border: 1px solid #d6e0fb; border-radius: 10px; padding: 5px 8px; font-size: 12.5px; max-width: 100%; }
.att b { font-weight: 600; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .att em { font-style: normal; color: var(--mute); } .att svg.i { width: 14px; height: 14px; }
.att button { border: 0; background: transparent; cursor: pointer; font-size: 15px; line-height: 1; color: #6b7585; }
.st-chat.dropping { outline: 2px dashed var(--blue); outline-offset: -6px; background: #f2f6ff; }

.hm-box.dropping { outline: 2px dashed var(--blue); outline-offset: 4px; }
.cc-th { height: auto !important; aspect-ratio: 16 / 10; background-position: center !important; }

/* community: more design */
.cm-hero { position: relative; overflow: hidden; border-radius: 22px; padding: 34px 32px; margin: 18px 0 18px; color: #fff; background: radial-gradient(60% 120% at 0% 100%, #3d6dff 0%, transparent 60%), radial-gradient(50% 100% at 100% 0%, #7aa2ff 0%, transparent 60%), linear-gradient(135deg, #0b1a4a, #1636b8); box-shadow: 0 30px 70px #1636b833; }
.cm-hero .k { color: #b9ccff; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; } .cm-hero h1 { margin: 6px 0 6px; font-size: 32px; letter-spacing: -.02em; } .cm-hero p { margin: 0; color: #dbe5ff; max-width: 640px; }
.cg { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.cc { border-radius: 18px; border-color: #e3e9f6; box-shadow: 0 10px 30px #0b12200d; }
.cc:hover { transform: translateY(-4px); box-shadow: 0 26px 60px #1636b826; border-color: #c9d6fb; }
.cc-th { border-bottom: 1px solid #eef1f7; } .cc-th > span { position: absolute; left: 12px; top: 12px; background: #0b1220cc; color: #fff; backdrop-filter: blur(6px); border-radius: 999px; padding: 5px 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; }
.cm-bar .seg button.on { background: linear-gradient(135deg, #1f4fd8, #4f7dff); color: #fff; box-shadow: 0 6px 16px #1f4fd840; }
@media (max-width: 640px) { .cm-hero { padding: 22px 18px; } .cm-hero h1 { font-size: 24px; } .cg { grid-template-columns: 1fr; } }

.cp-vid { position: relative; height: 100%; min-height: 420px; background: #0b1220; border-radius: 14px; overflow: hidden; } .cp-vid video { width: 100%; height: 100%; object-fit: contain; display: block; } .cp-vid-cta { position: absolute; left: 16px; bottom: 16px; background: #0b1220d9; color: #fff; padding: 10px 14px; border-radius: 12px; font-weight: 600; font-size: 14px; }

.srch .scrim { background: #0b122026 !important; backdrop-filter: blur(3px); }
.srch > :not(.scrim) { box-shadow: 0 40px 100px #0b122040; }

.cc-cr { position: absolute; right: 8px; bottom: 8px; font-style: normal; font-size: 10.5px; color: #fff; background: #0b122099; padding: 3px 7px; border-radius: 6px; cursor: pointer; } .cc-cr:hover { text-decoration: underline; }

.srchp { max-width: 860px; margin: 0 auto; padding: 40px 24px 60px; }
.srchp .srch-b { position: static; width: 100%; max-width: none; box-shadow: none; background: transparent; border: 0; }
.srchp .srch-i { height: 64px; border: 1px solid #d7dfee; border-radius: 18px; background: #fff; padding: 0 20px; box-shadow: 0 16px 40px #1636b814; display: flex; align-items: center; gap: 12px; }
.srchp .srch-i input { font-size: 19px; border: 0; outline: none; flex: 1; background: transparent; }
.srchp .srch-i kbd, .srchp .srch-i .esc { display: none; }
.srchp #sqr { margin-top: 18px; background: #fff; border: 1px solid #e3e9f6; border-radius: 18px; padding: 8px; max-height: none; }

.srch-ans { display: block; font-style: normal; color: #3b4556; margin-top: 3px; line-height: 1.45; white-space: normal; }

.pf { max-width: 760px; margin: 0 auto; padding: 32px 24px 60px; } .pf .k { color: var(--blue); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; } .pf h1 { margin: 4px 0 18px; font-size: 30px; }
.pf-s { margin-bottom: 14px; padding: 20px; } .pf-s h2 { margin: 0 0 12px; font-size: 17px; }
.pf-n { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; } .pf-n input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--blue); } .pf-n b { display: block; font-size: 14.5px; } .pf-n em { font-style: normal; font-size: 13px; color: var(--mute); }
.pf-lang { display: flex; flex-wrap: wrap; gap: 8px; }

.pm2-r { position: relative; overflow: hidden; } .pm2-v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.pm2-r > :not(video):not(.pm2-x) { position: relative; z-index: 2; } .pm2-r > .pm2-x { z-index: 3; }
.pm2-dd { right: auto; min-width: 100%; width: max-content; max-width: 420px; } .pm2-dd button { white-space: nowrap; } .pm2-dd em { margin-left: auto; }

.nx-k { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 18px; } .nx-k .chip { border: 1px solid #dfe5f1; background: #fff; border-radius: 999px; padding: 7px 14px; font-size: 13.5px; cursor: pointer; } .nx-k .chip.on { background: #0b1220; color: #fff; border-color: #0b1220; }
.nx-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.nx-c { background: #fff; border: 1px solid #e6ebf4; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px #1636b80d; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; } .nx-c:hover { transform: translateY(-2px); box-shadow: 0 16px 40px #1636b81a; }
.nx-th { display: block; aspect-ratio: 16/10; background: #eef2fa center/cover no-repeat; position: relative; } .nx-th span { position: absolute; left: 10px; top: 10px; background: #0b1220cc; color: #fff; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.nx-b { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; } .nx-b b { font-size: 15px; } .nx-b p { margin: 0; font-size: 13px; color: var(--mute); line-height: 1.45; flex: 1; } .nx-a { display: flex; gap: 8px; margin-top: 8px; }

.srch-a em.srch-ans { white-space: normal; overflow: visible; text-overflow: clip; display: block; }
.hp { max-width: 1080px; margin: 0 auto; padding: 0 24px 60px; }
.hp-hero { margin: 0 -24px 28px; padding: 48px 24px 36px; text-align: center; background: radial-gradient(80% 120% at 50% 0%, #e7eeff 0%, #f6f8fc 70%); border-bottom: 1px solid #e6ebf4; }
.hp-hero .k { color: var(--blue); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; } .hp-hero h1 { font-size: 34px; margin: 6px 0 6px; letter-spacing: -.02em; } .hp-hero p { color: var(--mute); margin: 0 0 20px; }
.hp-s { max-width: 640px; margin: 0 auto; height: 58px; display: flex; align-items: center; gap: 12px; padding: 0 18px; background: #fff; border: 1px solid #d7dfee; border-radius: 16px; box-shadow: 0 16px 40px #1636b814; } .hp-s input { flex: 1; border: 0; outline: none; font-size: 17px; background: transparent; }
.hp-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; align-items: start; } @media (max-width: 900px) { .hp-grid { grid-template-columns: 1fr; } }
.hp-q { background: #fff; border: 1px solid #e6ebf4; border-radius: 14px; margin-bottom: 10px; overflow: hidden; } .hp-q summary { list-style: none; cursor: pointer; padding: 15px 16px; font-weight: 600; font-size: 15px; display: flex; justify-content: space-between; gap: 10px; align-items: center; } .hp-q summary::-webkit-details-marker { display: none; }
.hp-q[open] summary svg { transform: rotate(180deg); } .hp-q p { margin: 0; padding: 0 16px 14px; color: #3b4556; line-height: 1.55; } .hp-go { display: inline-flex; gap: 6px; align-items: center; margin: 0 16px 14px; font-weight: 600; font-size: 14px; }
.hp-form { padding: 22px; position: sticky; top: 20px; box-shadow: 0 16px 40px #1636b812; } .hp-form h2 { margin: 0 0 4px; font-size: 19px; }
.hp-kinds { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; } .hp-kinds input { display: none; } .hp-kinds span { display: inline-block; padding: 7px 13px; border: 1px solid #dfe5f1; border-radius: 999px; font-size: 13.5px; cursor: pointer; background: #fff; } .hp-kinds input:checked + span { background: #0b1220; color: #fff; border-color: #0b1220; }
.hp-ok { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 10px; text-align: center; } .hp-ok svg { width: 34px; height: 34px; color: #16a34a; } .hp-ok span { color: var(--mute); }

.pf { max-width: 1040px; }
.pf-hero { display: flex; align-items: center; gap: 18px; padding: 26px; margin-bottom: 18px; border-radius: 20px; background: radial-gradient(90% 140% at 0% 0%, #e8eeff 0%, #ffffff 65%); border: 1px solid #e3e9f6; box-shadow: 0 16px 40px #1636b80f; flex-wrap: wrap; }
.pf-av { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 22px; color: #fff; background: linear-gradient(135deg, #1f4fd8, #6d4ee8); box-shadow: 0 10px 24px #1f4fd840; }
.pf-id { flex: 1; min-width: 200px; } .pf-id h1 { margin: 0 0 4px; font-size: 26px; letter-spacing: -.01em; } .pf-id div { color: var(--mute); font-size: 14px; }
.pf-badge { padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; background: #f1f4fa; color: #3b4556; border: 1px solid #e3e9f6; } .pf-badge.paid { background: #0b1220; color: #fff; border-color: #0b1220; }
.pf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } @media (max-width: 860px) { .pf-grid { grid-template-columns: 1fr; } }
.pf-s { margin: 0; padding: 22px; border-radius: 18px; box-shadow: 0 10px 30px #1636b80a; } .pf-h { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; } .pf-h h2 { margin: 0; font-size: 16.5px; } .pf-h svg { width: 18px; height: 18px; color: var(--blue); }
.pf-plan { background: linear-gradient(150deg, #0b1230 0%, #1a3aa8 70%, #4f6cf0 100%); color: #fff; border: 0; box-shadow: 0 20px 50px #1636b833; } .pf-plan .pf-h svg { color: #9fb6ff; }
.pf-cr { display: flex; align-items: baseline; gap: 10px; } .pf-cr b { font-size: 44px; letter-spacing: -.02em; } .pf-cr span { color: #cdd8ff; }
.pf-bar { height: 8px; border-radius: 99px; background: #ffffff26; overflow: hidden; margin-top: 10px; } .pf-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #8fb0ff, #ffffff); }
.pf-btns, .pf-btns2 { display: flex; flex-wrap: wrap; gap: 8px; } .pf-w { background: #fff; color: #0b1220; border: 0; font-weight: 600; } .pf-g { background: #ffffff1f; color: #fff; border: 1px solid #ffffff40; }
.pf-n { justify-content: space-between; align-items: center; } .pf-n input.sw { appearance: none; width: 40px; height: 23px; border-radius: 99px; background: #d5dbe7; position: relative; cursor: pointer; flex: none; transition: background .15s; margin: 0; }
.pf-n input.sw::after { content: ''; position: absolute; left: 3px; top: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #0003; transition: transform .15s; } .pf-n input.sw:checked { background: var(--blue); } .pf-n input.sw:checked::after { transform: translateX(17px); }
.pf-modal { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(440px, 92vw); padding: 24px; z-index: 1001; border-radius: 18px; } .pf-modal h2 { margin: 0 0 8px; } .pf-modal p { color: #3b4556; line-height: 1.55; margin: 0 0 18px; }
.btn.danger { background: #dc2626; color: #fff; border-color: #dc2626; }

.cc-th[style*="background-image"] { background-size: cover !important; background-position: center top !important; background-repeat: no-repeat !important; }

/* Toolbar labels never wrap (credits chip, view tabs, buttons) */
.cr-chip, .cr-chip span, .st-views button, .st-views button span, .st-tr .btn, .st-tl .btn { white-space: nowrap; flex-shrink: 0; }
.st-tr { overflow: hidden; }
.st-page { min-width: 0; width: 200px; flex: 0 1 200px; text-overflow: ellipsis; }
@media (max-width: 1360px) { .st-page { flex-basis: 130px; } .st-dev button[data-dev="land"] { display: none; } }
@media (max-width: 1200px) { #stx, #strf { display: none; } .st-top .btn.primary svg.i { display: none; } }
@media (max-width: 1200px) { .st-views button.on span { display: none; } }
/* Research on the plan card */
.pl-rs b { display: flex; align-items: center; gap: 6px; } .pl-rs b svg.i { width: 12px; height: 12px; }
.pl-src { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pl-src a { font-size: 11.5px; color: #3b5bdb; background: #f1f4ff; border-radius: 999px; padding: 3px 9px; text-decoration: none; white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.pl-src a:hover { background: #e3e9ff; }
/* Plans popup: the blue panel moves (light blobs drifting across the gradient); text stays still and readable */
.pm2-r { isolation: isolate; }
.pm2-r::before, .pm2-r::after { content: ''; position: absolute; inset: -50%; z-index: -1; pointer-events: none; filter: blur(24px); }
.pm2-r::before { background: radial-gradient(22% 18% at 35% 62%, #6f9bff 0%, transparent 70%), radial-gradient(18% 16% at 68% 40%, #a9c1ff 0%, transparent 70%); opacity: .85; animation: pmDrift1 9s ease-in-out infinite alternate; }
.pm2-r::after { background: radial-gradient(20% 17% at 58% 70%, #2f5bff 0%, transparent 70%), radial-gradient(15% 13% at 32% 38%, #8ad0ff 0%, transparent 70%); opacity: .7; animation: pmDrift2 12s ease-in-out infinite alternate; }
@keyframes pmDrift1 { 0% { transform: translate(-14%, 12%) rotate(0deg); } 50% { transform: translate(12%, -8%) rotate(40deg); } 100% { transform: translate(-4%, -16%) rotate(-25deg); } }
@keyframes pmDrift2 { 0% { transform: translate(14%, -10%) rotate(0deg); } 50% { transform: translate(-12%, 12%) rotate(-45deg); } 100% { transform: translate(6%, 16%) rotate(30deg); } }
@media (prefers-reduced-motion: reduce) { .pm2-r::before, .pm2-r::after { animation: none; } }
.pl-cost { display: flex; align-items: center; gap: 7px; margin-top: 8px; padding: 8px 10px; border-radius: 9px; background: #f6f7fb; font-size: 12.5px; color: #4a5160; }
.pl-cost svg.i { width: 13px; height: 13px; color: #1f4fd8; flex-shrink: 0; }
.pm2-fx { margin: -4px 0 8px; }
.pl-cost.basic { background: #fff7e8; color: #7a4d00; } .pl-cost.basic svg.i { color: #c77700; } .pl-cost a { color: inherit; font-weight: 600; }
/* Admin -> Costos */
.cs h3 { margin: 26px 0 6px; font-size: 15px; }
.cs-bar { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.cs-bar .seg { display: inline-flex; background: #eeece7; border-radius: 10px; padding: 3px; gap: 2px; }
.cs-bar .seg button { border: 0; background: none; padding: 6px 12px; border-radius: 7px; cursor: pointer; font-weight: 550; color: #5b5f66; white-space: nowrap; }
.cs-bar .seg button.on { background: #fff; color: #1f4fd8; box-shadow: 0 1px 2px #0000000f; }
.cs-k { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.cs-k > div { background: #fff; border: 1px solid var(--sl); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.cs-k span { font-size: 12px; color: #6b7585; } .cs-k b { font-size: 24px; white-space: nowrap; } .cs-k em { font-style: normal; font-size: 12px; color: #8a8d93; }
.cs td.bad { color: #b42318; font-weight: 600; } .cs td.ok { color: #067647; font-weight: 600; } .cs tr.loss td { background: #fff4f2; }
.cx-list { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.cx-row { display: grid; grid-template-columns: 120px 1fr auto auto; gap: 10px; align-items: center; font-size: 13px; padding: 8px 10px; border: 1px solid var(--sl); border-radius: 9px; }
.cx-row span { color: #5b5f66; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .cx-row em { font-style: normal; color: #8a8d93; font-size: 12px; }
.cx-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; } .cx-form .btn { justify-self: start; }
@media (max-width: 640px) { .cx-form, .cx-row { grid-template-columns: 1fr; } }
.an-run { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: #1f4fd8; white-space: nowrap; }
.an-run i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #c9d6fb; border-top-color: #1f4fd8; animation: anspin .8s linear infinite; }
@keyframes anspin { to { transform: rotate(360deg); } }
.an-note { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.pay-nudge { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; margin: 8px 0; padding: 12px 14px; border: 1px solid #c9d6fb; background: #f3f6ff; border-radius: 12px; font-size: 13.5px; } .pay-nudge span { color: #4b5563; }
.ag-demo { height: 100%; min-height: 560px; border-radius: 14px; overflow: hidden; background: #fff; } .ag-demo .ag-note { padding: 6px 14px 10px; }
.rl-list .rl-a.sm { white-space: normal; align-items: flex-start; line-height: 1.3; overflow: visible; } .rl-list .rl-a.sm .dot { margin-top: 5px; flex-shrink: 0; }
.rp-card { margin: 0 0 12px; } .rp-top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.rp { border-top: 1px solid var(--sl); padding: 12px 0; } .rp.done { padding: 6px 0; font-size: 13px; }
.rp-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .rp-s { margin: 6px 0; font-size: 14px; }
.rp-b { white-space: pre-wrap; font: 13px/1.5 inherit; background: #f7f7f5; border-radius: 8px; padding: 10px; max-height: 260px; overflow: auto; margin: 6px 0; }
.rp-a { display: flex; gap: 8px; margin-top: 8px; } .rp-t { width: 100%; }
.th { display: flex; flex-direction: column; gap: 10px; max-height: 60vh; overflow: auto; } .th-i { padding: 10px 12px; border-radius: 10px; background: #f3f6ff; } .th-i.in { background: #f4f9f1; }
.sqp { margin-top: 12px; border-top: 1px solid var(--sl); padding-top: 12px; }
.sq-k { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; } .sq-k > div { background: #f7f7f5; border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; } .sq-k b { font-size: 18px; } .sq-k span { font-size: 12px; color: #6b7585; }
@media (max-width: 640px) { .sq-k { grid-template-columns: 1fr 1fr; } }
.fj { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; } .fj-r { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 10px; background: #f7f7f5; border-radius: 9px; font-size: 13.5px; }
.seq { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; max-width: 230px; } .seq i { width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; font: 600 11px/1 inherit; background: #eceae5; color: #8a8d93; font-style: normal; } .seq i.ok { background: #1f4fd8; color: #fff; } .seq i.next { background: #fff; color: #1f4fd8; box-shadow: inset 0 0 0 1.5px #1f4fd8; } .seq em { font-style: normal; font-size: 12px; color: #4b5563; flex-basis: 100%; } .seq small { font-size: 11.5px; color: #8a8d93; flex-basis: 100%; }
.adm-st { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; } .adm-st button { border: 1px solid var(--sl); background: #fff; border-radius: 999px; padding: 7px 14px; font: 600 13px inherit; color: #4b5563; cursor: pointer; } .adm-st button.on { background: #111; color: #fff; border-color: #111; } .adm-st b { margin-left: 4px; }
.adm-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; } .adm-sum .card { padding: 12px 14px; } @media (max-width: 800px) { .adm-sum { grid-template-columns: 1fr; } }
.vb { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 999px; background: #eceae5; color: #6b7280; } .vb.ok { background: #e3f4ea; color: #067647; } .vb.mid { background: #fff4d6; color: #8a5a00; } .vb.bad { background: #fde8e6; color: #b42318; }
.cp-prev.ag-site { position: relative; overflow: hidden; } .ag-site .ag-bg { position: absolute; inset: 0; } .ag-site .ag-bg iframe { width: 100%; height: 100%; border: 0; }
.ag-site .ag-pop { position: absolute; right: 18px; bottom: 18px; width: min(400px, calc(100% - 36px)); height: min(580px, calc(100% - 36px)); border-radius: 20px; overflow: hidden; box-shadow: 0 30px 80px #0b122066, 0 0 0 1px #0b12201a; animation: agpop .5s cubic-bezier(.2,.8,.2,1) both .6s; }
.ag-site .ag-pop .ag-demo { min-height: 0; height: 100%; border-radius: 0; } .ag-site .ag-pop .ag-h span { display: none; } .ag-site .ag-pop .ag-st { justify-content: flex-start; } .ag-site .ag-pop .ag-b { max-width: 90%; }
@keyframes agpop { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) { .ag-site .ag-pop { right: 8px; left: 8px; bottom: 8px; width: auto; height: 70%; } }
/* Simulations: a decision report, not a dashboard */
.sim-hero { position: relative; border-radius: 22px; overflow: hidden; margin-bottom: 16px; color: #fff; background: radial-gradient(70% 90% at 0% 100%, #1f4fd8aa, transparent 60%), #0b1220; }
.sim-hero::before { content: ""; position: absolute; inset: 0; background: var(--img, none) center/cover; opacity: .38; }
.sim-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, #0b1220f2 0%, #0b1220c0 55%, #0b122066 100%); }
.sim-hero > * { position: relative; z-index: 1; }
.sh-in { display: flex; gap: 32px; align-items: center; padding: 34px 36px 22px; flex-wrap: wrap; } .sh-t { flex: 1; min-width: 280px; }
.sh-k { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #9db8ff; font-weight: 600; }
.sim-hero h1 { font: 500 clamp(26px, 3.2vw, 40px)/1.1 Newsreader, Georgia, serif; letter-spacing: -.01em; margin: 10px 0 12px; } .sim-hero p { color: #c9d3e6; max-width: 640px; margin: 0; font-size: 15px; line-height: 1.6; }
.sh-g { position: relative; width: 168px; height: 168px; flex-shrink: 0; } .sh-g svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.sh-g circle { fill: none; stroke-width: 9; } .sh-g .tr { stroke: #ffffff1f; } .sh-g .fg { stroke: #f59e0b; stroke-linecap: round; transition: stroke-dasharray 1s; }
.sim-hero.good .sh-g .fg { stroke: #34d399; } .sim-hero.bad .sh-g .fg { stroke: #f87171; }
.sh-g > div { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; } .sh-g b { font: 600 34px/1 "IBM Plex Sans", sans-serif; } .sh-g span { font-size: 11.5px; color: #c9d3e6; max-width: 110px; margin-top: 4px; }
.sh-v { display: flex; gap: 12px; align-items: baseline; padding: 14px 36px 22px; border-top: 1px solid #ffffff1a; font-size: 14.5px; color: #e6ebf5; } .sh-v b { text-transform: uppercase; letter-spacing: .08em; font-size: 12px; white-space: nowrap; color: #fbbf24; } .sim-hero.good .sh-v b { color: #34d399; } .sim-hero.bad .sh-v b { color: #f87171; }
.sim-k .kpi { border-radius: 16px; } .sim-sc .card { border-radius: 16px; } .sim-sc .v { font-size: 28px; letter-spacing: -.02em; }
@media (max-width: 640px) { .sh-in { padding: 24px 20px 16px; } .sh-v { padding: 12px 20px 18px; } .sh-g { width: 130px; height: 130px; } }
