
@font-face { font-family: "Instrument Sans"; src: url(/assets/fonts/InstrumentSans.ttf) format("truetype"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(/assets/fonts/InstrumentSerif-Italic.ttf) format("truetype"); font-style: italic; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(/assets/fonts/JetBrainsMono.ttf) format("truetype"); font-weight: 400 700; font-display: swap; }
/* Orbit Bot design system: warm ink and bone, one signal colour. Mobile first, light + dark. */
:root {
  --bg: #0c0d0f;
  --bg2: #101114;
  --surface: #141518;
  --surface2: #1a1b1f;
  --surface3: #222328;
  --line: #26272c;
  --line2: #34353b;
  --text: #f2eee6;
  --text2: #c8c4ba;
  --mute: #8f8c84;
  --accent: #ff5a1f;
  --accent2: #ff7d4a;
  --accent-ink: #0c0d0f;
  --ok: #5ec48f;
  --warn: #efb54a;
  --bad: #ec5b5b;
  --shadow: 0 10px 40px rgba(0, 0, 0, .5);
  --logo: url(/assets/mark-dark.svg);
  --r: 14px;
  --r2: 10px;
  --tab: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --font: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}
:root[data-theme=light] {
  --bg: #f5f2eb; --bg2: #eeeae1; --surface: #fffdf9; --surface2: #f5f2eb; --surface3: #ebe7dd;
  --line: #e3ded2; --line2: #d2ccbe; --text: #0c0d0f; --text2: #3d3c38; --mute: #77746c;
  --accent: #f04a0e; --accent2: #ff5a1f; --accent-ink: #fffdf9; --ok: #2f9e6a; --warn: #b9801c; --bad: #d23b3b;
  --shadow: 0 10px 40px rgba(40, 30, 10, .12); --logo: url(/assets/mark-light.svg);
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme=dark]) {
    --bg: #f5f2eb; --bg2: #eeeae1; --surface: #fffdf9; --surface2: #f5f2eb; --surface3: #ebe7dd;
    --line: #e3ded2; --line2: #d2ccbe; --text: #0c0d0f; --text2: #3d3c38; --mute: #77746c;
    --accent: #f04a0e; --accent2: #ff5a1f; --accent-ink: #fffdf9; --ok: #2f9e6a; --warn: #b9801c; --bad: #d23b3b;
    --shadow: 0 10px 40px rgba(40, 30, 10, .12); --logo: url(/assets/mark-light.svg);
    color-scheme: light;
  }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--text); font: 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overscroll-behavior-y: none;
}
a { color: var(--accent); text-decoration: none; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.025em; line-height: 1.15; font-weight: 650; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg.i { width: 1.25em; height: 1.25em; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.hide { display: none !important; }
.mute { color: var(--mute); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.grow { flex: 1; min-width: 0; }
.row { display: flex; align-items: center; gap: 12px; }
.col { display: flex; flex-direction: column; gap: 12px; }
.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.center { text-align: center; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mono { font-family: var(--mono); font-size: 12.5px; }

/* ---- controls ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line2);
  background: var(--surface2); color: var(--text); font-weight: 600; font-size: 14px; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .05s, opacity .15s;
}
.btn:hover { border-color: var(--accent); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn.primary:hover { background: var(--accent2); }
.btn.primary { background: var(--accent); border-color: transparent; color: var(--accent-ink); }
.btn.danger { color: var(--bad); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text2); }
.btn.ghost:hover { background: var(--surface2); }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn.icon { width: 42px; padding: 0; }
.btn.icon.sm { width: 34px; }
.btn.block { width: 100%; }

.field { display: block; }
.field > span { display: block; font-size: 12px; font-weight: 600; color: var(--mute); margin: 0 0 6px 2px; letter-spacing: .02em; }
.input, select.input, textarea.input {
  width: 100%; min-height: 46px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line2);
  background: var(--surface2); outline: none; font-size: 16px; /* 16px stops iOS zoom */
  transition: border-color .15s, box-shadow .15s;
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
textarea.input { resize: vertical; min-height: 92px; line-height: 1.45; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237d879d' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.switch { display: flex; align-items: center; gap: 12px; padding: 10px 0; cursor: pointer; }
.switch input { appearance: none; width: 46px; height: 28px; border-radius: 99px; background: var(--surface3); border: 1px solid var(--line2); position: relative; transition: .2s; flex: none; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 3px #0005; }
.switch input:checked { background: var(--accent); border-color: var(--accent); }
.switch input:checked::after { transform: translateX(18px); }
.seg { display: flex; gap: 4px; padding: 4px; background: var(--surface2); border: 1px solid var(--line); border-radius: 14px; }
.seg button { flex: 1; min-height: 38px; border: 0; border-radius: 10px; background: none; color: var(--mute); font-weight: 600; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 6px #0003; }

/* ---- surfaces ---- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.card.pad0 { padding: 0; overflow: hidden; }
.card.glow { background: var(--surface); border-color: color-mix(in srgb, var(--accent) 38%, var(--line)); }
.list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.item { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: none; border-left: 0; border-right: 0; border-top: 0; width: 100%; text-align: left; color: inherit; }
.item:last-child { border-bottom: 0; }
button.item:hover, .item.click:hover { background: var(--surface2); cursor: pointer; }
.item .ico { width: 38px; height: 38px; border-radius: 11px; background: var(--surface3); display: grid; place-items: center; color: var(--text2); flex: none; }
.section { font-size: 12px; font-weight: 700; color: var(--mute); text-transform: uppercase; letter-spacing: .08em; margin: 22px 4px 8px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--surface3); color: var(--text2); border: 1px solid var(--line); }
.badge.ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.badge.bad { color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, transparent); border-color: color-mix(in srgb, var(--bad) 30%, transparent); }
.badge.warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, transparent); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.badge.acc { color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); border-color: color-mix(in srgb, var(--accent) 32%, transparent); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 25%, transparent); }
.dot.warn { background: var(--warn); box-shadow: 0 0 0 3px color-mix(in srgb, var(--warn) 25%, transparent); }
.dot.off { background: var(--mute); box-shadow: none; }
.bar { height: 8px; background: var(--surface3); border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 99px; background: var(--accent); transition: width .4s; }
.bar.hot > i { background: linear-gradient(90deg, var(--warn), var(--bad)); }
.av { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; color: var(--accent-ink); font-weight: 700; flex: none; font-size: 16px; position: relative; }
.av.lg { width: 56px; height: 56px; border-radius: 18px; font-size: 22px; }
.av.sm { width: 32px; height: 32px; border-radius: 10px; font-size: 13px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 19px; letter-spacing: -.035em; color: var(--text); }
.logo i { width: 34px; height: 34px; display: block; background: var(--logo) center / contain no-repeat; flex: none; }
.logo .bot { color: var(--mute); font-weight: 450; margin-left: -4px; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line2); border-top-color: var(--accent); animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.skel { background: linear-gradient(90deg, var(--surface2), var(--surface3), var(--surface2)); background-size: 200% 100%; animation: sh 1.2s infinite; border-radius: 10px; }
@keyframes sh { to { background-position: -200% 0; } }
.empty { text-align: center; padding: 56px 24px; color: var(--mute); }
.empty .ico { width: 64px; height: 64px; border-radius: 20px; margin: 0 auto 14px; display: grid; place-items: center; background: var(--surface2); border: 1px solid var(--line); color: var(--text2); }
.empty h3 { color: var(--text); margin-bottom: 6px; }

/* ---- overlays ---- */
.toasts { position: fixed; left: 0; right: 0; bottom: calc(var(--tab) + var(--safe-b) + 16px); display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 90; pointer-events: none; padding: 0 16px; }
.nobar .toasts { bottom: calc(var(--safe-b) + 20px); }
.toast { background: var(--surface3); border: 1px solid var(--line2); padding: 11px 16px; border-radius: 14px; box-shadow: var(--shadow); max-width: 440px; font-size: 14px; animation: up .25s; }
.toast.bad { border-color: var(--bad); }
@keyframes up { from { transform: translateY(10px); opacity: 0; } }
.sheet-bg { position: fixed; inset: 0; background: rgba(2, 4, 10, .62); backdrop-filter: blur(3px); z-index: 60; display: flex; align-items: flex-end; justify-content: center; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.sheet { width: 100%; max-width: 560px; max-height: 92dvh; overflow: auto; background: var(--surface); border: 1px solid var(--line2); border-bottom: 0; border-radius: 22px 22px 0 0; padding: 8px 20px calc(24px + var(--safe-b)); animation: sheet .28s cubic-bezier(.2, .9, .3, 1); }
@keyframes sheet { from { transform: translateY(40px); opacity: .4; } }
.sheet .grab { width: 40px; height: 4px; border-radius: 4px; background: var(--line2); margin: 6px auto 14px; }
.sheet h3 { margin-bottom: 14px; font-size: 19px; }
.sheet .actions { display: flex; gap: 10px; margin-top: 20px; }
.sheet .actions .btn { flex: 1; }
@media (min-width: 720px) {
  .sheet-bg { align-items: center; padding: 24px; }
  .sheet { border-radius: 22px; border-bottom: 1px solid var(--line2); padding-bottom: 24px; }
  .sheet .grab { display: none; }
}

/* ---- auth ---- */
.auth { min-height: 100dvh; display: grid; place-items: center; padding: 24px 18px; background:
  radial-gradient(700px 380px at 50% -40px, color-mix(in srgb, var(--accent) 8%, transparent), transparent 70%), var(--bg); }
.auth .logo { font-size: 22px; } .auth .logo i { width: 44px; height: 44px; }
.auth .box { width: 100%; max-width: 410px; }
.auth .card { padding: 26px 22px; box-shadow: var(--shadow); }
.auth h1 { font-size: 26px; margin: 18px 0 6px; }

/* ---- app shell (customer) ---- */
.app { height: 100dvh; display: grid; grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
.rail { display: none; }
.pane { min-height: 0; min-width: 0; display: flex; flex-direction: column; position: relative; }
.topbar { display: flex; align-items: center; gap: 10px; padding: calc(10px + var(--safe-t)) 14px 10px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 10; min-height: 60px; }
.topbar h2 { font-size: 18px; }
.scroll { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; }
.page { padding: 16px 16px 28px; max-width: 760px; margin: 0 auto; width: 100%; }
.tabbar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); height: calc(var(--tab) + var(--safe-b)); padding-bottom: var(--safe-b); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
.tabbar button { min-width: 0; padding: 0 2px; background: none; border: 0; color: var(--mute); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 600; position: relative; }
.tabbar button svg { width: 23px; height: 23px; }
.tabbar button.on { color: var(--accent); }
.tabbar button .pip { position: absolute; top: 9px; left: calc(50% + 8px); width: 9px; height: 9px; border-radius: 50%; background: var(--warn); border: 2px solid var(--surface); }
@media (min-width: 900px) {
  .app { grid-template-columns: 300px 1fr; grid-template-rows: 1fr; }
  .rail { display: flex; flex-direction: column; background: var(--surface); border-right: 1px solid var(--line); min-height: 0; }
  .tabbar { display: none; }
  .toasts { bottom: 20px; }
  .rail .head { padding: 18px 18px 8px; }
  .rail nav { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; }
  .rail nav button { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 0; background: none; border-radius: 11px; color: var(--text2); font-weight: 600; text-align: left; }
  .rail nav button:hover { background: var(--surface2); }
  .rail nav button.on { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
  .rail .bots { flex: 1; overflow-y: auto; padding: 4px 10px 10px; }
  .rail .bots .lab { padding: 10px 12px 6px; }
  .botrow { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; cursor: pointer; border: 0; background: none; width: 100%; text-align: left; color: inherit; }
  .botrow:hover { background: var(--surface2); }
  .botrow.on { background: var(--surface2); box-shadow: inset 0 0 0 1px var(--line2); }
  .hide-desk { display: none !important; }
}
@media (max-width: 899px) { .hide-mob { display: none !important; } }

/* chat */
.chat { max-width: 800px; margin: 0 auto; width: 100%; padding: 16px 14px 8px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 18px; word-wrap: break-word; overflow-wrap: anywhere; line-height: 1.5; }
.msg.user { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 6px; white-space: pre-wrap; }
.msg.bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg.err { border-color: var(--bad); color: var(--bad); }
.msg p { margin: 0 0 .6em; } .msg p:last-child { margin: 0; }
.msg h1, .msg h2, .msg h3 { font-size: 1.05em; margin: .8em 0 .35em; }
.msg ul, .msg ol { margin: .4em 0; padding-left: 1.3em; }
.msg pre { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px; overflow: auto; margin: .6em 0; font-size: 13px; }
.msg code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9em; background: var(--surface3); padding: 1px 5px; border-radius: 6px; }
.msg pre code { background: none; padding: 0; }
.msg blockquote { margin: .5em 0; padding-left: 12px; border-left: 3px solid var(--line2); color: var(--text2); }
.msg a { text-decoration: underline; word-break: break-all; }
.typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--mute); animation: bl 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bl { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.tool { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text2); background: var(--surface2); border: 1px solid var(--line); border-radius: 99px; padding: 5px 12px 5px 9px; max-width: 92%; }
.tool.bad { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); }
.shot { align-self: flex-start; max-width: min(460px, 86%); border-radius: 14px; border: 1px solid var(--line2); cursor: zoom-in; display: block; background: var(--surface2); min-height: 80px; }
.approval { align-self: stretch; background: color-mix(in srgb, var(--warn) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--warn) 45%, var(--line)); border-radius: 16px; padding: 14px; }
.composer { padding: 8px 12px calc(10px + var(--safe-b)); background: linear-gradient(180deg, transparent, var(--bg) 30%); }
.composer .in { max-width: 800px; margin: 0 auto; display: flex; align-items: flex-end; gap: 8px; background: var(--surface); border: 1px solid var(--line2); border-radius: 24px; padding: 6px 6px 6px 16px; box-shadow: var(--shadow); }
.composer textarea { flex: 1; border: 0; outline: 0; background: none; resize: none; min-height: 36px; max-height: 160px; padding: 7px 0; line-height: 1.4; font-size: 16px; }
.send { width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; color: var(--accent-ink); background: var(--accent); flex: none; }
.send.stop { background: var(--bad); }
.send:disabled { opacity: .4; }
.ideas { display: flex; gap: 8px; overflow-x: auto; padding: 4px 14px 10px; max-width: 800px; margin: 0 auto; scrollbar-width: none; }
.ideas button { white-space: nowrap; background: var(--surface); border: 1px solid var(--line2); border-radius: 99px; padding: 8px 14px; font-size: 13.5px; color: var(--text2); }

/* tasks / cards */
.fab { position: fixed; right: 18px; bottom: calc(var(--tab) + var(--safe-b) + 18px); width: 56px; height: 56px; border-radius: 50%; border: 0; color: var(--accent-ink); background: var(--accent); box-shadow: 0 10px 30px rgba(0,0,0,.35); display: grid; place-items: center; z-index: 20; }
@media (min-width: 900px) { .fab { bottom: 28px; right: 28px; } }
.screen { width: 100%; border-radius: 14px; border: 1px solid var(--line2); background: #000; display: block; aspect-ratio: 16/10; object-fit: contain; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat b { font-size: 26px; letter-spacing: -.02em; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.plan { position: relative; display: flex; flex-direction: column; gap: 10px; }
.plan.cur { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.plan .price { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; color: var(--text2); font-size: 14px; }
.plan li { display: flex; gap: 8px; align-items: flex-start; } .plan li svg { color: var(--ok); margin-top: 3px; }

/* landing */
.land nav { display: flex; align-items: center; justify-content: space-between; max-width: 1100px; margin: 0 auto; padding: calc(14px + var(--safe-t)) 20px 14px; }
.hero { max-width: 880px; margin: 0 auto; padding: 56px 20px 36px; text-align: center; }
.hero h1 { font-size: clamp(34px, 7vw, 64px); line-height: 1.04; letter-spacing: -.035em; margin: 18px 0 16px; }
.hero h1 em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; color: var(--accent); }
.hero p.lead { font-size: clamp(16px, 2.4vw, 20px); color: var(--text2); max-width: 620px; margin: 0 auto 28px; }
.glowbg { position: relative; overflow: hidden; background: radial-gradient(800px 420px at 50% -120px, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%); }
.glowbg::before { content: ""; position: absolute; left: 50%; top: 52%; width: 1500px; height: 1500px; margin: -750px 0 0 -750px; transform: rotate(-28deg); pointer-events: none; opacity: .9; background: repeating-radial-gradient(ellipse 100% 26% at 50% 50%, transparent 0 79px, var(--line) 79px 80px); -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 12%, transparent 62%); mask-image: radial-gradient(circle at 50% 50%, #000 12%, transparent 62%); }
.glowbg > * { position: relative; }
.sec { max-width: 1100px; margin: 0 auto; padding: 36px 20px; }
.sec h2 { font-size: clamp(24px, 4vw, 36px); text-align: center; margin-bottom: 10px; }
.sec .sub { text-align: center; color: var(--text2); max-width: 560px; margin: 0 auto 28px; }
.feat .ico { width: 44px; height: 44px; border-radius: 13px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); display: grid; place-items: center; margin-bottom: 12px; }
.feat h3 { font-size: 17px; margin-bottom: 6px; }
.feat p { color: var(--text2); font-size: 14.5px; }
.mock { max-width: 360px; margin: 34px auto 0; background: var(--surface); border: 1px solid var(--line2); border-radius: 28px; padding: 14px; box-shadow: var(--shadow); text-align: left; }
.mock .msg { font-size: 14px; }
footer.f { text-align: center; color: var(--mute); padding: 40px 20px calc(40px + var(--safe-b)); font-size: 13px; }

/* admin */
.adm { min-height: 100dvh; }
.adm-top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); padding-top: var(--safe-t); }
.adm-top .bar1 { display: flex; align-items: center; gap: 12px; padding: 10px 16px; max-width: 1180px; margin: 0 auto; }
.nav-h { display: flex; gap: 4px; overflow-x: auto; padding: 0 12px 10px; max-width: 1180px; margin: 0 auto; scrollbar-width: none; }
.nav-h::-webkit-scrollbar { display: none; }
.nav-h button { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; border: 1px solid transparent; background: none; color: var(--mute); padding: 8px 14px; border-radius: 12px; font-weight: 600; font-size: 14px; }
.nav-h button.on { background: var(--surface); border-color: var(--line2); color: var(--text); }
.adm-main { max-width: 1180px; margin: 0 auto; padding: 18px 16px calc(40px + var(--safe-b)); }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 760px) { .kpis { grid-template-columns: repeat(4, 1fr); } .cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; } .cols2 > * { min-width: 0; } }
.kpi { display: flex; flex-direction: column; gap: 6px; }
.kpi .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.kpi b { font-size: 28px; letter-spacing: -.02em; }
.cols2 > .card, .cols2 > .col { margin-bottom: 16px; }
.pgrid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 760px) { .pgrid { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); } }
.copy { display: flex; gap: 8px; align-items: center; background: var(--surface2); border: 1px solid var(--line2); border-radius: 12px; padding: 6px 6px 6px 12px; }
.copy code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 6px; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.help { font-size: 13px; color: var(--mute); line-height: 1.5; }
.steps { counter-reset: s; display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.steps li { counter-increment: s; display: block; position: relative; padding-left: 36px; min-height: 26px; font-size: 14px; color: var(--text2); line-height: 1.55; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--surface3); display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--text); }

/* picture attachments in the composer and in user messages */
.composer .attach { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 4px 8px; }
.composer .attach .th { position: relative; width: 64px; height: 64px; }
.composer .attach .th img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; border: 1px solid var(--line2); display: block; }
.composer .attach .th button { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line2); background: var(--surface3); color: var(--text); display: grid; place-items: center; padding: 0; }
.composer .attach .th button svg { width: 12px; height: 12px; }
.clip { width: 40px; height: 40px; border-radius: 50%; border: 0; background: none; color: var(--mute); display: grid; place-items: center; flex: none; }
.clip:hover { color: var(--text); background: var(--surface2); }
.msg.user .uimgs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.msg.user .ushot { width: 180px; max-width: 100%; border-radius: 10px; display: block; cursor: zoom-in; }