/* Puley dashboard. Same design as the marketing site (Chad, 7 Oct 2026: "I want that same design on the dashboard looking
   proper nice and premium"): the site's Linear tokens, Inter, white for emphasis, one lavender accent, green and coral only for
   good and bad. Statuses are an icon and a word, never a pill. Things ease in; nothing loops. */
@font-face { font-family: "Inter Variable"; src: url(/fonts/inter.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --void: #08090a; --carbon: #0f1011; --obsidian: #161718; --graphite: #23252a; --smoke: #383b3f; --ash: #62666d; --fog: #8a8f98;
  --mist: #d0d6e0; --bone: #e5e5e6; --green: #27a644; --green-t: #4cc06a; --coral: #eb5757; --iris: #6366f1; --lav: #8b5cf6;
  --lav-t: #b4a5fb; --lav-t2: #c4b5fd; --indigo-t: #a5b4fc;
  --font: "Inter Variable", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
  --inset: inset 0 0 0 1px var(--graphite); --hair: .5px solid var(--graphite);
  --ease: cubic-bezier(.2,.7,.2,1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body { margin: 0; background: var(--void); color: var(--mist); font: 400 14px/1.5 var(--font); font-feature-settings: "cv01", "ss03", "zero";
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
input, select, textarea { font: inherit; }
svg { display: block; flex: none; }
:focus-visible { outline: 2px solid var(--lav-t); outline-offset: 2px; border-radius: 4px; }
::selection { background: rgba(139,92,246,.35); }
.mono { font-family: var(--mono); }
.dim { color: var(--fog); }
.white { color: #fff; }
.cap { font-family: var(--mono); font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--fog); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 236px minmax(0, 1fr) auto; height: 100vh; overflow: hidden; }
.side { background: var(--carbon); border-right: var(--hair); display: flex; flex-direction: column; padding: 12px 10px; gap: 2px; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 9px; padding: 6px 8px 14px; color: #fff; font-weight: 510; font-size: 15px; letter-spacing: -.01em; }
.ws { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 7px; color: #fff; font-weight: 510; margin-bottom: 8px; box-shadow: var(--inset); }
.ws .av { width: 20px; height: 20px; border-radius: 6px; background: var(--iris); display: grid; place-items: center; font-size: 11px; font-weight: 590; }
.ws .plan { margin-left: auto; font-size: 11.5px; color: var(--lav-t2); font-weight: 510; }
.nav-i { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 7px 9px; border-radius: 7px; color: var(--mist);
  transition: background .2s ease, color .2s ease; }
.nav-i svg { color: var(--fog); transition: color .2s ease; }
.nav-i b { margin-left: auto; font-weight: 400; font-size: 12px; color: var(--fog); }
.nav-i b.hot { color: var(--lav-t2); font-weight: 510; }
.nav-i:hover { background: rgba(255,255,255,.035); color: #fff; }
.nav-i.on { background: rgba(255,255,255,.07); color: #fff; }
.nav-i.on svg { color: var(--lav-t); }
.nav-i:focus-visible { outline: 2px solid var(--lav-t); outline-offset: -2px; }
.side-h { margin: 18px 9px 6px; font-size: 11px; color: var(--fog); display: flex; justify-content: space-between; }
.pin-i { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 6px 9px; border-radius: 7px; color: var(--mist); font-size: 13px; }
.pin-i span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pin-i i { width: 8px; height: 8px; border-radius: 2px; flex: none; background: var(--lav); }
.pin-i i.t-ok { background: var(--green); } .pin-i i.t-up { background: var(--lav); } .pin-i i.t-new { background: var(--iris); } .pin-i i.t-bad { background: var(--coral); } .pin-i i.t-watch { background: var(--smoke); }
.pin-i:hover { background: rgba(255,255,255,.035); color: #fff; }
.side-foot { margin-top: auto; padding-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.meter { padding: 12px; border-radius: 10px; box-shadow: var(--inset); background: rgba(255,255,255,.015); }
.meter-top { display: flex; justify-content: space-between; font-size: 12px; color: var(--fog); }
.meter-top b { color: #fff; font-weight: 510; }
.meter-bar { margin-top: 8px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.06); overflow: hidden; }
.meter-bar i { display: block; height: 100%; background: linear-gradient(90deg, #6d5bd0, var(--lav-t)); border-radius: 2px; transition: width .6s var(--ease); }
.conn { display: flex; align-items: center; gap: 7px; padding: 0 6px; font-size: 11.5px; color: var(--fog); }
.conn svg { color: var(--green-t); }

.main { display: grid; grid-template-rows: 52px minmax(0, 1fr); min-width: 0; }
.top { display: flex; align-items: center; gap: 12px; padding: 0 20px 0 24px; border-bottom: var(--hair); background: rgba(8,9,10,.8); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.crumb { font-size: 13px; color: var(--fog); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumb span { color: var(--ash); margin: 0 7px; }
.crumb b { color: #fff; font-weight: 510; }
.top .grow { flex: 1; }
.find { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 8px; width: 280px; padding: 6px 8px 6px 10px; border-radius: 8px;
  box-shadow: var(--inset); color: var(--fog); font-size: 13px; transition: box-shadow .2s ease, color .2s ease; }
.find:hover { box-shadow: inset 0 0 0 1px var(--smoke); color: #fff; }
.kbd { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--fog); padding: 1px 6px; border-radius: 4px; box-shadow: var(--inset); }
.menu-btn { display: none; }
.scroll { overflow-y: auto; overflow-x: hidden; min-width: 0; }
.view { max-width: 1180px; margin: 0 auto; padding: 32px 32px 80px; animation: viewin .4s var(--ease) both; }
@keyframes viewin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.panel { width: 400px; border-left: var(--hair); background: var(--carbon); overflow-y: auto; animation: panelin .35s var(--ease) both; }
@keyframes panelin { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }

/* ---------- type, buttons, inputs ---------- */
.h1 { margin: 0; color: #fff; font-size: 30px; font-weight: 510; letter-spacing: -.02em; line-height: 1.15; }
.h2 { margin: 0; color: #fff; font-size: 17px; font-weight: 510; letter-spacing: -.012em; }
.sub { margin-top: 6px; color: var(--fog); font-size: 14.5px; line-height: 1.55; max-width: 640px; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.btn { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 34px; padding: 0 14px;
  border-radius: 7px; font-size: 13.5px; font-weight: 510; letter-spacing: -.01em; white-space: nowrap; transition: background .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease, opacity .2s ease; }
.btn-p { background: #fff; color: var(--void); box-shadow: rgba(0,0,0,.07) 0 1px 1px; }
.btn-p:hover { background: var(--bone); transform: translateY(-1px); }
.btn-g { color: var(--mist); box-shadow: var(--inset); }
.btn-g:hover { background: rgba(255,255,255,.045); color: #fff; }
.btn-d { color: var(--coral); box-shadow: inset 0 0 0 1px rgba(235,87,87,.3); }
.btn-d:hover { background: rgba(235,87,87,.08); }
.btn-s { height: 28px; padding: 0 10px; font-size: 12.5px; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn:focus-visible { outline: 2px solid var(--lav-t); outline-offset: 2px; }
.in { width: 100%; height: 40px; border: 0; border-radius: 8px; background: rgba(255,255,255,.025); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); color: #fff; padding: 0 12px;
  transition: box-shadow .2s ease, background .2s ease; }
.in::placeholder { color: var(--fog); }
.in:focus { outline: 0; box-shadow: inset 0 0 0 1px var(--lav-t), 0 0 0 4px rgba(139,92,246,.12); background: rgba(255,255,255,.035); }
select.in { appearance: none; -webkit-appearance: none; padding-right: 32px; background-image: linear-gradient(45deg, transparent 50%, var(--fog) 50%), linear-gradient(135deg, var(--fog) 50%, transparent 50%);
  background-position: calc(100% - 17px) 17px, calc(100% - 12px) 17px; background-size: 5px 5px; background-repeat: no-repeat; }
select.in option { background: var(--carbon); }
.lbl { display: block; font-size: 12px; color: var(--fog); margin: 0 0 6px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spin { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid rgba(180,165,251,.3); border-top-color: var(--lav-t); animation: spin .8s linear infinite; flex: none; }
.btn-p .spin { border-color: rgba(8,9,10,.2); border-top-color: var(--void); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- cards and stats ---------- */
.card { background: var(--carbon); border-radius: 12px; box-shadow: var(--inset); padding: 20px; min-width: 0; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.card-h .h2 { font-size: 14px; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 22px 0; }
.kpi { padding: 14px 16px; border-radius: 10px; box-shadow: var(--inset); background: rgba(255,255,255,.015); }
.kpi b { display: block; color: #fff; font-size: 24px; font-weight: 510; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi span { font-size: 12px; color: var(--fog); }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 16px; }
.stat { padding: 12px 14px; border-radius: 10px; box-shadow: var(--inset); min-width: 0; animation: rowin .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms); }
.stat b { display: block; color: #fff; font-size: 22px; font-weight: 510; letter-spacing: -.016em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat span { display: block; font-size: 12px; color: var(--fog); margin-top: 2px; }
.stat em { display: block; font-style: normal; font-size: 12px; color: var(--lav-t2); margin-top: 2px; }
@keyframes rowin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- the ask box ---------- */
.ask { padding: 0; overflow: hidden; background: radial-gradient(120% 140% at 0% 0%, rgba(139,92,246,.10), rgba(8,9,10,0) 55%), var(--carbon); }
.ask-in { display: flex; gap: 10px; padding: 18px; align-items: center; }
.ask-in .in { height: 46px; font-size: 15px; }
.ask-in .btn { height: 46px; padding: 0 18px; font-size: 14px; }
.ask-bar { display: flex; align-items: center; gap: 12px; padding: 0 18px 16px; flex-wrap: wrap; }
.seg { position: relative; display: inline-flex; padding: 3px; border-radius: 9px; box-shadow: var(--inset); background: var(--void); }
.seg button { all: unset; cursor: pointer; position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 7px; font-size: 13px;
  color: var(--fog); transition: color .2s ease; }
.seg button:hover { color: #fff; }
.seg button[aria-pressed="true"] { color: #fff; }
.seg .thumb { position: absolute; z-index: 0; top: 3px; left: 0; height: calc(100% - 6px); border-radius: 7px; background: rgba(255,255,255,.09);
  transition: transform .35s cubic-bezier(.3,.8,.2,1), width .35s cubic-bezier(.3,.8,.2,1); }
.ask-extra { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 240px; flex-wrap: wrap; }
.ask-extra .in { height: 34px; font-size: 13px; }
.ex { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ex button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 8px; box-shadow: var(--inset); font-size: 12.5px; color: var(--mist);
  transition: background .2s ease, color .2s ease, transform .2s ease; }
.ex button svg { color: var(--fog); }
.ex button:hover { background: rgba(255,255,255,.04); color: #fff; transform: translateY(-1px); }

/* ---------- result cards ---------- */
.res { margin-top: 18px; animation: pop .45s var(--ease) both; }
.res-h { display: flex; gap: 14px; align-items: flex-start; }
.res-av { width: 44px; height: 44px; border-radius: 12px; background: var(--obsidian) center/cover no-repeat; box-shadow: inset 0 0 0 1px var(--smoke); flex: none;
  display: grid; place-items: center; color: var(--fog); font-weight: 590; }
.res-t { min-width: 0; flex: 1; }
.res-t .cap { display: flex; gap: 8px; align-items: center; }
.res-t h3 { margin: 4px 0 0; color: #fff; font-size: 19px; font-weight: 510; letter-spacing: -.014em; line-height: 1.3; }
.res-t p { margin: 4px 0 0; color: var(--fog); font-size: 13.5px; }
.res-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.got { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--fog); padding: 4px 9px; border-radius: 6px; box-shadow: var(--inset); margin-top: 14px; }
.got svg { color: var(--green-t); }
.txt { margin-top: 14px; padding: 14px 16px; border-radius: 10px; background: var(--void); box-shadow: var(--inset); max-height: 320px; overflow: auto; white-space: pre-wrap;
  color: var(--mist); font-size: 13.5px; line-height: 1.65; }
.list { margin-top: 14px; border-top: var(--hair); }
.li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 10px 2px; border-bottom: .5px solid rgba(255,255,255,.05);
  font-size: 13px; animation: rowin .4s var(--ease) both; animation-delay: calc(min(var(--i, 0), 14) * 35ms); }
.li a, .li > span:first-child { color: var(--mist); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li a:hover { color: #fff; }
.li time { color: var(--fog); font-size: 12px; white-space: nowrap; }
.li b { color: #fff; font-weight: 510; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.li b em { font-style: normal; color: var(--lav-t2); margin-left: 6px; }
.li.hot a, .li.hot > span:first-child { color: #fff; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 96px; margin-top: 16px; }
.bars i { flex: 1; min-width: 3px; border-radius: 3px 3px 1px 1px; background: #2a2c31; height: var(--h); transform-origin: bottom; animation: grow .8s var(--ease) both; animation-delay: calc(var(--i) * 25ms); }
.bars i.hi { background: linear-gradient(180deg, #c4b5fd, #7c6ad8); }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.chart-cap { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11.5px; color: var(--fog); }

/* ---------- tables ---------- */
.tbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.tabs { position: relative; display: inline-flex; gap: 2px; padding: 3px; border-radius: 9px; box-shadow: var(--inset); background: var(--carbon); flex-wrap: wrap; }
.tabs button { all: unset; cursor: pointer; position: relative; z-index: 1; padding: 5px 10px; border-radius: 6px; font-size: 12.5px; color: var(--fog); transition: color .2s ease; }
.tabs button span { color: var(--ash); margin-left: 4px; }
.tabs button:hover { color: #fff; }
.tabs button[aria-pressed="true"] { color: #fff; }
.tabs .thumb { position: absolute; z-index: 0; border-radius: 6px; background: rgba(255,255,255,.08); transition: transform .35s cubic-bezier(.3,.8,.2,1), width .35s cubic-bezier(.3,.8,.2,1), height .35s ease; }
.tbl-wrap { border-radius: 12px; box-shadow: var(--inset); background: var(--carbon); overflow: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { position: sticky; top: 0; z-index: 1; text-align: left; font-weight: 400; color: var(--fog); font-size: 12px; padding: 11px 14px; border-bottom: var(--hair); background: var(--carbon);
  white-space: nowrap; cursor: pointer; user-select: none; }
.tbl th:hover { color: #fff; }
.tbl th[data-dir="asc"]::after { content: " ↑"; color: var(--lav-t); } .tbl th[data-dir="desc"]::after { content: " ↓"; color: var(--lav-t); }
.tbl td { padding: 11px 14px; border-bottom: .5px solid rgba(255,255,255,.05); color: var(--mist); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl th.n { text-align: right; }
.tbl tbody tr { animation: rowin .4s var(--ease) both; animation-delay: calc(min(var(--i, 0), 16) * 30ms); }
.tbl.rows tbody tr { cursor: pointer; transition: background .15s ease; }
.tbl.rows tbody tr:hover td { background: rgba(255,255,255,.025); }
.tbl tr.sel td { background: rgba(139,92,246,.09); }
.tbl tr.sel td:first-child { box-shadow: inset 2px 0 0 var(--lav-t); }
.tbl .w { display: block; color: #fff; font-weight: 510; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 340px; }
.tbl .s { display: block; color: var(--fog); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 340px; }
.tbl .lt { color: var(--mist); max-width: 300px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tbl a { color: #fff; } .tbl a:hover { text-decoration: underline; text-decoration-color: var(--smoke); text-underline-offset: 3px; }
.st { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--fog); white-space: nowrap; }
.t-ok { color: var(--green-t); } .t-up { color: var(--lav-t); } .t-new { color: var(--indigo-t); } .t-bad { color: var(--coral); } .t-watch { color: var(--fog); }
.st.flash { animation: flash 1.4s ease-out; border-radius: 5px; }
@keyframes flash { 0% { background: rgba(76,192,106,.3); box-shadow: 0 0 0 6px rgba(76,192,106,.12); } 100% { background: transparent; box-shadow: 0 0 0 0 transparent; } }
.empty { padding: 44px 24px; text-align: center; color: var(--fog); }
.empty b { display: block; color: #fff; font-size: 15px; font-weight: 510; margin-bottom: 6px; }
.empty .row { justify-content: center; margin-top: 16px; }

/* ---------- passport ---------- */
.ccs { display: flex; flex-wrap: wrap; gap: 6px; }
.cc { all: unset; cursor: pointer; font-family: var(--mono); font-size: 11.5px; padding: 6px 9px; border-radius: 6px; color: var(--fog); box-shadow: var(--inset); transition: background .2s, color .2s, box-shadow .2s, transform .2s; }
.cc:hover { color: #fff; transform: translateY(-1px); }
.cc[aria-pressed="true"] { color: #fff; background: rgba(139,92,246,.16); box-shadow: inset 0 0 0 1px rgba(180,165,251,.45); }
.pp-row { display: grid; grid-template-columns: 36px minmax(140px, 1.2fr) minmax(0, 2fr) 120px 22px; gap: 14px; align-items: center; padding: 11px 4px; border-bottom: .5px solid rgba(255,255,255,.05);
  animation: rowin .45s var(--ease) both; animation-delay: calc(var(--i) * 70ms); }
.pp-row .c { font-family: var(--mono); font-size: 12px; color: var(--fog); }
.pp-row .nm { min-width: 0; }
.pp-row .nm b { display: block; color: #fff; font-weight: 510; font-size: 13.5px; }
.pp-row .nm span { display: block; color: var(--fog); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-row .bar { height: 8px; border-radius: 4px; background: rgba(255,255,255,.04); overflow: hidden; }
.pp-row .bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #5b4bc4, #b4a5fb); transform-origin: left; animation: growx .9s var(--ease) both; animation-delay: calc(var(--i) * 70ms + 120ms); }
.pp-row.best .bar i { background: linear-gradient(90deg, #1f8a45, #4cc06a); }
.pp-row .v { text-align: right; color: #fff; font-weight: 510; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pp-row .v span { display: block; color: var(--fog); font-weight: 400; font-size: 11.5px; }
.pp-row .x { color: var(--ash); } .pp-row .x:hover { color: #fff; }
.pp-row.fail .nm span { color: var(--coral); }
@keyframes growx { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- fields input ---------- */
.fields { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 40px; padding: 5px 8px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); background: rgba(255,255,255,.025); }
.fields:focus-within { box-shadow: inset 0 0 0 1px var(--lav-t), 0 0 0 4px rgba(139,92,246,.12); }
.fields .f { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 9px; border-radius: 6px; background: rgba(139,92,246,.14); color: #fff; font-size: 12.5px; }
.fields .f button { all: unset; cursor: pointer; color: var(--lav-t2); font-size: 14px; line-height: 1; padding: 0 3px; }
.fields input { flex: 1; min-width: 120px; border: 0; background: transparent; color: #fff; outline: 0; height: 28px; }

/* ---------- alerts ---------- */
.al { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 13px 4px; border-bottom: .5px solid rgba(255,255,255,.05);
  animation: rowin .4s var(--ease) both; animation-delay: calc(min(var(--i, 0), 14) * 35ms); }
.al-i { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: rgba(255,255,255,.04); color: var(--fog); }
.al-t b { display: block; color: #fff; font-weight: 510; font-size: 13.5px; }
.al-t span { display: block; color: var(--mist); font-size: 13px; margin-top: 2px; line-height: 1.45; }
.al-t a { display: inline-block; margin-top: 4px; font-size: 12px; color: var(--fog); } .al-t a:hover { color: #fff; }
.al time { color: var(--fog); font-size: 12px; white-space: nowrap; }
.al.unseen .al-t b::after { content: "New"; margin-left: 8px; font-size: 11.5px; font-weight: 510; color: var(--lav-t2); }

/* ---------- watch panel ---------- */
.pn { padding: 22px; }
.pn-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pn-h h3 { margin: 0; color: #fff; font-size: 17px; font-weight: 510; letter-spacing: -.012em; line-height: 1.3; }
.pn-h a.u { display: block; margin-top: 4px; color: var(--fog); font-size: 12.5px; word-break: break-all; }
.pn-h a.u:hover { color: #fff; }
.x-btn { all: unset; cursor: pointer; width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; color: var(--fog); flex: none; }
.x-btn:hover { background: rgba(255,255,255,.05); color: #fff; }
.spark { width: 100%; height: 90px; margin-top: 16px; }
.spark path.l { fill: none; stroke: var(--lav-t); stroke-width: 2; }
.spark path.a { fill: url(#sg); }
.spark line { stroke: var(--green-t); stroke-dasharray: 3 4; stroke-width: 1; }
.pn .acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.kv { margin-top: 14px; }
.kv div { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-top: var(--hair); font-size: 13px; }
.kv span { color: var(--fog); } .kv b { color: #fff; font-weight: 510; text-align: right; }

/* ---------- sheet (new watch), palette, toasts ---------- */
.overlay { position: fixed; inset: 0; z-index: 40; display: grid; place-items: start center; padding: 9vh 16px 16px; background: rgba(8,9,10,.6);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fadein .18s ease both; overflow-y: auto; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.sheet { width: min(560px, 100%); background: var(--obsidian); border-radius: 14px; box-shadow: inset 0 0 0 1px var(--smoke), rgba(0,0,0,.6) 0 30px 80px; padding: 22px; animation: sheetin .3s var(--ease) both; }
@keyframes sheetin { from { opacity: 0; transform: translateY(-10px) scale(.985); } to { opacity: 1; transform: none; } }
.sheet h3 { margin: 0; color: #fff; font-size: 17px; font-weight: 510; }
.sheet .sub { margin-top: 4px; font-size: 13.5px; }
.sheet .fld { margin-top: 16px; }
.kinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.kind { all: unset; box-sizing: border-box; cursor: pointer; display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border-radius: 10px; box-shadow: var(--inset);
  transition: background .2s, box-shadow .2s; }
.kind svg { color: var(--fog); margin-top: 1px; }
.kind b { display: block; color: #fff; font-weight: 510; font-size: 13px; }
.kind span { display: block; color: var(--fog); font-size: 11.5px; margin-top: 1px; line-height: 1.35; }
.kind:hover { background: rgba(255,255,255,.035); }
.kind[aria-pressed="true"] { background: rgba(139,92,246,.12); box-shadow: inset 0 0 0 1px rgba(180,165,251,.5); }
.kind[aria-pressed="true"] svg { color: var(--lav-t); }
.sheet .foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.err { margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: rgba(235,87,87,.08); box-shadow: inset 0 0 0 1px rgba(235,87,87,.25); color: #f3b3b3; font-size: 13px; }
.pal { width: min(600px, 100%); background: rgba(22,23,24,.98); border-radius: 12px; box-shadow: inset 0 0 0 1px var(--smoke), rgba(0,0,0,.6) 0 24px 60px; overflow: hidden; animation: sheetin .22s var(--ease) both; }
.pal-in { display: flex; align-items: center; gap: 10px; padding: 13px 15px; border-bottom: var(--hair); color: var(--fog); }
.pal-in input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: #fff; font-size: 15px; }
.pal-l { padding: 6px; max-height: 380px; overflow-y: auto; }
.pal-l button { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 8px; color: var(--mist); font-size: 13.5px; }
.pal-l button svg { color: var(--fog); }
.pal-l button span { margin-left: auto; color: var(--fog); font-size: 12px; }
.pal-l button.on, .pal-l button:hover { background: rgba(255,255,255,.06); color: #fff; }
.pal-l .grp { padding: 8px 10px 4px; font-size: 11px; color: var(--fog); }
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 50; display: flex; flex-direction: column; gap: 10px; width: 320px; max-width: calc(100vw - 36px); }
.toast { padding: 12px 14px; border-radius: 12px; background: rgba(32,33,37,.96); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.09), rgba(0,0,0,.55) 0 18px 40px -8px; animation: toastin .5s cubic-bezier(.2,.9,.25,1.2) both; }
.toast.out { animation: toastout .3s ease both; }
@keyframes toastin { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes toastout { to { opacity: 0; transform: translateY(8px); } }
.toast .tp { display: flex; justify-content: space-between; font-size: 11px; color: var(--fog); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 5px; }
.toast .tp span { display: inline-flex; align-items: center; gap: 6px; }
.toast b { display: block; color: #fff; font-weight: 590; font-size: 14px; }
.toast p { margin: 2px 0 0; color: var(--mist); font-size: 13px; line-height: 1.4; }

/* ---------- connect ---------- */
.linkbox { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; border-radius: 12px; box-shadow: var(--inset); background: var(--carbon); flex-wrap: wrap; }
.linkbox code { font-family: var(--mono); color: #fff; font-size: 14px; flex: 1; min-width: 200px; overflow-wrap: anywhere; }
.steps { list-style: none; margin: 10px 0 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-top: var(--hair); color: var(--mist); line-height: 1.55; font-size: 13.5px; }
.steps li::before { content: counter(s); font-family: var(--mono); font-size: 12px; color: var(--fog); padding-top: 2px; }
.code { font-family: var(--mono); font-size: 12.5px; color: #fff; background: var(--void); padding: 10px 12px; border-radius: 8px; box-shadow: var(--inset); overflow-x: auto; white-space: nowrap; }

/* ---------- small screens ---------- */
@media (max-width: 1100px) { .panel { position: fixed; right: 0; top: 0; bottom: 0; z-index: 30; width: min(400px, 100vw); box-shadow: rgba(0,0,0,.6) -20px 0 60px; } }
@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; left: 0; top: 0; bottom: 0; z-index: 35; width: 260px; transform: translateX(-100%); transition: transform .3s var(--ease); }
  .side.open { transform: none; box-shadow: rgba(0,0,0,.6) 20px 0 60px; }
  .menu-btn { display: grid; }
  .find { width: auto; flex: 1; }
  .view { padding: 22px 16px 70px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid2, .grid3 { grid-template-columns: minmax(0, 1fr); }
  .ask-in { flex-direction: column; align-items: stretch; }
  .pp-row { grid-template-columns: 32px minmax(0, 1fr) auto 18px; }
  .pp-row .bar { display: none; }
  .top { padding: 0 12px; }
  .crumb { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; } }
.x-btn.menu-btn { display: none; }
@media (max-width: 860px) { .x-btn.menu-btn { display: grid; } }
/* the watches table keeps its shape; with the panel open it drops the two least useful columns */
#wtable { table-layout: fixed; min-width: 0; }
#wtable th:nth-child(1) { width: 32%; } #wtable th:nth-child(2) { width: 13%; } #wtable th:nth-child(3) { width: 29%; } #wtable th:nth-child(4) { width: 14%; } #wtable th:nth-child(5) { width: 12%; }
#wtable td:nth-child(2), #wtable td:nth-child(5) { white-space: nowrap; }
#wtable .w, #wtable .s, #wtable .lt { max-width: 100%; }
.with-panel #wtable th:nth-child(2), .with-panel #wtable td:nth-child(2), .with-panel #wtable th:nth-child(5), .with-panel #wtable td:nth-child(5) { display: none; }
.with-panel #wtable th:nth-child(1) { width: 40%; } .with-panel #wtable th:nth-child(3) { width: 38%; } .with-panel #wtable th:nth-child(4) { width: 22%; }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; } .back svg { transform: rotate(180deg); } .back:hover { color: #fff; }

/* ---------- the built-in chat ---------- */
.view.chat-mode { max-width: none; padding: 0; height: 100%; animation: none; }
.chat-view { display: grid; grid-template-columns: 250px minmax(0, 1fr); height: 100%; }
.chat-list { border-right: var(--hair); padding: 16px 10px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.chat-list .btn { margin: 0 4px 12px; }
.chat-list a { display: block; padding: 8px 10px; border-radius: 7px; color: var(--mist); font-size: 13px; }
.chat-list a span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-list a time { display: block; font-size: 11.5px; color: var(--fog); margin-top: 1px; }
.chat-list a:hover { background: rgba(255,255,255,.035); color: #fff; }
.chat-list a.on { background: rgba(255,255,255,.07); color: #fff; }
.chat-main { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-width: 0; height: 100%; }
.chat-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 28px; border-bottom: var(--hair); }
.chat-top h1 { margin: 0; color: #fff; font-size: 15px; font-weight: 510; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-top .cr { font-size: 12.5px; color: var(--fog); white-space: nowrap; }
.chat-top .cr b { color: #fff; font-weight: 510; }
.thread { overflow-y: auto; padding: 28px 28px 20px; }
.thread-in { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.cm { animation: pop .35s var(--ease) both; }
.cm.u { align-self: flex-end; max-width: 78%; background: var(--graphite); color: #fff; padding: 10px 14px; border-radius: 14px 14px 4px 14px; font-size: 14.5px; line-height: 1.55; white-space: pre-wrap; }
.cm.a { align-self: stretch; }
.cm-who { display: flex; align-items: center; gap: 8px; color: var(--fog); font-size: 12px; margin-bottom: 8px; }
.steps-live { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.step { display: inline-flex; align-self: flex-start; align-items: center; gap: 7px; font-size: 12.5px; color: var(--fog); padding: 5px 10px; border-radius: 7px; box-shadow: var(--inset); animation: rowin .3s var(--ease) both; }
.step svg { color: var(--green-t); }
.step.fail { color: #f3b3b3; box-shadow: inset 0 0 0 1px rgba(235,87,87,.3); }
.step.fail svg { color: var(--coral); }
.cm-shown { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.cm-shown .res { margin-top: 0; }
.ans { color: var(--mist); font-size: 15px; line-height: 1.7; }
.ans p { margin: 0 0 10px; } .ans p:last-child { margin-bottom: 0; }
.ans b { color: #fff; font-weight: 590; }
.ans a { color: #fff; text-decoration: underline; text-decoration-color: var(--smoke); text-underline-offset: 3px; }
.ans ul, .ans ol { margin: 0 0 10px; padding-left: 20px; } .ans li { margin: 3px 0; }
.ans code { font-family: var(--mono); font-size: .88em; background: rgba(255,255,255,.06); padding: 1px 5px; border-radius: 4px; color: #fff; }
.ans > * { animation: typein2 .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms); }
@keyframes typein2 { from { opacity: 0; filter: blur(6px); transform: translateY(4px); } to { opacity: 1; filter: none; transform: none; } }
.cm-foot { margin-top: 8px; font-size: 11.5px; color: var(--fog); }
.mini { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; box-shadow: var(--inset); background: var(--carbon); }
.mini svg { color: var(--lav-t); }
.mini b { color: #fff; font-weight: 510; } .mini span { color: var(--fog); font-size: 13px; }
.mini a { margin-left: auto; }
.sr-list a { display: block; padding: 8px 2px; border-top: .5px solid rgba(255,255,255,.05); font-size: 13px; color: var(--mist); }
.sr-list a span { display: block; color: var(--fog); font-size: 11.5px; }
.sr-list a:hover { color: #fff; }
.composer { padding: 14px 28px 20px; }
.composer form { max-width: 780px; margin: 0 auto; display: flex; gap: 10px; align-items: flex-end; padding: 10px 10px 10px 14px; border-radius: 14px;
  background: var(--carbon); box-shadow: inset 0 0 0 1px var(--smoke), rgba(0,0,0,.4) 0 12px 30px -10px; transition: box-shadow .2s ease; }
.composer form:focus-within { box-shadow: inset 0 0 0 1px var(--lav-t), 0 0 0 4px rgba(139,92,246,.12); }
.composer textarea { flex: 1; min-width: 0; resize: none; border: 0; outline: 0; background: transparent; color: #fff; font: 400 15px/1.5 var(--font); max-height: 180px; padding: 6px 0; }
.composer textarea::placeholder { color: var(--fog); }
.composer .btn { height: 36px; width: 36px; padding: 0; border-radius: 9px; }
.composer .hint { max-width: 780px; margin: 8px auto 0; font-size: 11.5px; color: var(--fog); text-align: center; }
.welcome { max-width: 640px; margin: 8vh auto 0; text-align: center; animation: pop .5s var(--ease) both; }
.welcome .lg { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--obsidian); box-shadow: inset 0 0 0 1px var(--smoke); }
.welcome h2 { margin: 16px 0 0; color: #fff; font-size: 26px; font-weight: 510; letter-spacing: -.02em; }
.welcome p { margin: 8px auto 0; color: var(--fog); font-size: 14.5px; line-height: 1.6; max-width: 520px; }
.welcome .ex { justify-content: center; margin-top: 22px; }
@media (max-width: 860px) { .chat-view { grid-template-columns: minmax(0, 1fr); } .chat-list { display: none; } .thread, .composer, .chat-top { padding-left: 14px; padding-right: 14px; } }

body { overflow: hidden; }
.sr-list { padding: 10px 14px; }
.sr-list summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; color: var(--fog); font-size: 12.5px; }
.sr-list summary::-webkit-details-marker { display: none; }
.sr-list summary:hover { color: #fff; }
.sr-list[open] summary { margin-bottom: 6px; }
.chat-list a.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 30px; padding: 0 10px; color: var(--void); }
.chat-list a.btn:hover { background: var(--bone); color: var(--void); }

/* ---------- accounts: sign in, onboarding, plans, account (v0.2, 7 Oct 2026) ---------- */
body.signed-out .shell { display: none; }
#auth { position: fixed; inset: 0; z-index: 60; overflow-y: auto; display: grid; place-items: center; padding: 48px 16px;
  background: radial-gradient(70% 55% at 50% -5%, rgba(139,92,246,.16), rgba(8,9,10,0) 70%), var(--void); }
.auth-card { width: min(392px, 100%); animation: sheetin .45s var(--ease) both; }
.auth-brand { display: flex; align-items: center; justify-content: center; gap: 10px; color: #fff; font-weight: 510; font-size: 17px; letter-spacing: -.01em; margin-bottom: 30px; }
.auth-card h1 { margin: 0; text-align: center; color: #fff; font-size: 26px; font-weight: 510; letter-spacing: -.022em; line-height: 1.2; }
.auth-card .sub { text-align: center; margin: 8px auto 0; font-size: 14px; }
.auth-oauth { display: flex; flex-direction: column; gap: 8px; margin-top: 26px; }
.auth-oauth:empty { display: none; }
.auth-oauth .btn { height: 42px; width: 100%; font-size: 14px; background: rgba(255,255,255,.025); }
.auth-oauth .btn:hover { background: rgba(255,255,255,.06); }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 22px 0 4px; color: var(--fog); font-size: 12px; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--graphite); }
#authf { margin-top: 12px; }
#authf .lbl { margin-top: 14px; }
#authf .in { height: 42px; }
#authf .btn-p { width: 100%; height: 42px; margin-top: 22px; font-size: 14px; }
.auth-switch { text-align: center; margin: 20px 0 0; font-size: 13.5px; color: var(--fog); }
.auth-switch a { color: #fff; font-weight: 510; }
.auth-switch a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--smoke); }
.auth-fine { text-align: center; font-size: 12px; color: var(--ash); margin: 28px 0 0; line-height: 1.5; }
.auth-fine a { color: var(--fog); } .auth-fine a:hover { color: #fff; }

/* sidebar account row */
.ws { transition: background .2s ease; }
.ws:hover { background: rgba(255,255,255,.035); }
.ws img.av { width: 20px; height: 20px; border-radius: 6px; object-fit: cover; flex: none; }
.ws .ws-n { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-foot .btn-p { width: 100%; }
.conn a { color: var(--mist); } .conn a:hover { color: #fff; }
.conn svg { flex: none; }

/* get started */
.check-card { margin-top: 22px; }
.check-bar { height: 4px; border-radius: 2px; background: rgba(255,255,255,.06); overflow: hidden; margin: -2px 0 6px; }
.check-bar i { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg, #1f8a45, var(--green-t)); transition: width .6s var(--ease); }
.ck-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 2px; border-top: .5px solid rgba(255,255,255,.05);
  animation: rowin .4s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
.ck-row:first-of-type { border-top: 0; }
.ck-i { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--smoke); display: grid; place-items: center; }
.ck-row.done .ck-i { background: var(--green); box-shadow: none; color: #fff; }
.ck-row b { display: block; color: #fff; font-weight: 510; font-size: 13.5px; }
.ck-row div span { display: block; color: var(--fog); font-size: 12.5px; margin-top: 1px; }
.ck-row.done b { color: var(--fog); text-decoration: line-through; text-decoration-color: var(--smoke); }

/* onboarding: its own screen, no sidebar */
body.onboarding .shell { grid-template-columns: minmax(0, 1fr); }
body.onboarding .side, body.onboarding .top { display: none; }
body.onboarding .main { grid-template-rows: minmax(0, 1fr); }
body.onboarding .scroll { background: radial-gradient(70% 50% at 50% -10%, rgba(139,92,246,.13), rgba(8,9,10,0) 70%), var(--void); }
.welcome-card { max-width: 660px; margin: 6vh auto 0; }
.wc-top { display: flex; align-items: center; gap: 14px; }
.wc-top .brand-s { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 510; font-size: 14px; margin-right: auto; }
.wc-skip { all: unset; cursor: pointer; font-size: 12.5px; color: var(--fog); }
.wc-skip:hover { color: #fff; }
.wc-bar { height: 3px; border-radius: 2px; background: rgba(255,255,255,.06); overflow: hidden; margin: 14px 0 34px; }
.wc-bar i { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg, #6d5bd0, var(--lav-t)); transition: width .6s var(--ease); }
.welcome-card .h1 { font-size: 32px; }
.welcome-card .sub { font-size: 15px; }
.apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 26px; }
.app-pick { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 15px 16px; border-radius: 12px; background: var(--carbon);
  box-shadow: var(--inset); color: #fff; font-weight: 510; font-size: 14px; transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
  animation: rowin .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms); }
.app-pick svg:first-child { color: var(--lav-t); }
.app-pick span { flex: 1; min-width: 0; }
.app-pick svg:last-child { color: var(--ash); transition: transform .2s ease, color .2s ease; }
.app-pick:hover { background: var(--obsidian); box-shadow: inset 0 0 0 1px var(--smoke); transform: translateY(-1px); }
.app-pick:hover svg:last-child { color: #fff; transform: translateX(2px); }
.app-pick:last-child { grid-column: 1 / -1; }
.app-pick:last-child svg:first-child { color: var(--fog); }
.note { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 0; padding: 12px 14px; border-radius: 10px; background: rgba(255,255,255,.02); box-shadow: var(--inset);
  color: var(--fog); font-size: 13px; line-height: 1.55; }
.note svg { color: var(--lav-t); margin-top: 2px; }
.welcome-card .ask-in { padding: 20px 0 0; }

/* errors that point somewhere */
.err-a { margin-left: 6px; color: #fff; font-weight: 510; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.35); white-space: nowrap; }

/* plans */
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan-c { display: flex; flex-direction: column; padding: 22px; animation: pop .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
.plan-c.sk { min-height: 380px; animation: none; opacity: .6; }
.plan-c.feat { background: radial-gradient(120% 90% at 0% 0%, rgba(139,92,246,.12), rgba(8,9,10,0) 60%), var(--carbon); box-shadow: inset 0 0 0 1px rgba(180,165,251,.28); }
.plan-c.mine { box-shadow: inset 0 0 0 1px rgba(76,192,106,.35); }
.plan-c .card-h { margin-bottom: 2px; }
.plan-c .card-h .h2 { font-size: 16px; }
.plan-who { margin: 0; font-size: 13px; }
.plan-price { display: flex; align-items: baseline; gap: 4px; margin-top: 18px; }
.plan-price b { color: #fff; font-size: 40px; font-weight: 510; letter-spacing: -.03em; line-height: 1; }
.plan-price span { color: var(--fog); font-size: 14px; }
.plan-local { margin: 8px 0 0; font-size: 12.5px; }
.plan-c ul { list-style: none; margin: 18px 0 20px; padding: 16px 0 0; border-top: var(--hair); display: flex; flex-direction: column; gap: 9px; flex: 1; }
.plan-c li { display: flex; gap: 9px; align-items: flex-start; font-size: 13.5px; color: var(--mist); line-height: 1.45; }
.plan-c li svg { color: var(--green-t); margin-top: 2px; }
.plan-c .row .btn { flex: 1; }
.plan-inc { margin: 0; font-size: 13px; }
.pay-note { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; margin: 16px 2px 0; line-height: 1.55; }
.pay-note svg { margin-top: 2px; color: var(--fog); }
#promomsg .err { margin-top: 10px; }

@media (max-width: 960px) { .plan-grid { grid-template-columns: minmax(0, 1fr); } .plan-c.sk { min-height: 120px; } }
@media (max-width: 860px) {
  .apps { grid-template-columns: minmax(0, 1fr); }
  .welcome-card { margin-top: 2vh; }
  .welcome-card .h1 { font-size: 26px; }
  .ck-row { grid-template-columns: 22px minmax(0, 1fr); }
  .ck-row > :last-child:not(div) { grid-column: 2; justify-self: start; }
}
.welcome-card .stats { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
/* the shell's one row is the window: long pages scroll inside .scroll, and the sidebar footer stays in view */
.shell { grid-template-rows: minmax(0, 1fr); }
.shell > * { min-height: 0; }
/* chat: the conversation scrolls inside the thread; the header, the chat list and the composer stay put */
.chat-view { grid-template-rows: minmax(0, 1fr); }
.chat-view > *, .chat-main > * { min-height: 0; }
/* phones: the four modes sit in a 2 × 2 grid instead of squeezing onto one line; no keyboard hints */
@media (max-width: 860px) {
  .ask-bar .seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .ask-bar .seg button { justify-content: center; white-space: nowrap; }
  .find .kbd { display: none; }
  .ask-extra { min-width: 0; }
  .head .btn { align-self: flex-start; }
}

/* the copyable command line, and app steps that open with a chevron */
.cmd { display: flex; align-items: flex-start; gap: 10px; margin-top: 8px; padding: 10px 10px 10px 12px; border-radius: 8px; background: var(--void); box-shadow: var(--inset); }
.cmd code { flex: 1; min-width: 0; font-family: var(--mono); font-size: 12.5px; line-height: 1.55; color: #fff; overflow-wrap: anywhere; user-select: all; }
.cmd .btn { flex: none; }
details > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; }
details > summary::-webkit-details-marker { display: none; }
details > summary::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid var(--fog); border-bottom: 1.5px solid var(--fog); transform: rotate(-45deg); transition: transform .2s ease; margin-right: 4px; }
details[open] > summary::after { transform: rotate(45deg); }
.sr-list > summary::after { display: none; }
/* phones: the watches table keeps the watch and its status; the rest is one tap away in the panel */
@media (max-width: 860px) {
  #wtable th:nth-child(2), #wtable td:nth-child(2), #wtable th:nth-child(3), #wtable td:nth-child(3), #wtable th:nth-child(5), #wtable td:nth-child(5) { display: none; }
  #wtable th:nth-child(1) { width: 60%; } #wtable th:nth-child(4) { width: 40%; }
  #wtable td:nth-child(4) { text-align: right; } #wtable th:nth-child(4) { text-align: right; }
  .tbar input.in { width: 100% !important; }
}

/* chat: one column that never grows past the window; long titles shorten instead of pushing the page sideways */
.chat-main { grid-template-columns: minmax(0, 1fr); }
.chat-top > h1 { min-width: 0; flex: 1; }
.cm.a, .cm-shown, .cm-shown > * { min-width: 0; max-width: 100%; }
@media (max-width: 860px) { .chat-top .cr-x { display: none; } .cm.u { max-width: 88%; } }

/* ---------- v0.3 (7 Oct 2026, Chad: "stuff just feels still too complex ... dev mode ... limits") ---------- */
/* the developer switch in the corner */
.dev-tg { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 8px 0 10px; border-radius: 8px;
  box-shadow: var(--inset); color: var(--fog); font-size: 12.5px; transition: color .2s ease, box-shadow .2s ease; }
.dev-tg:hover { color: #fff; box-shadow: inset 0 0 0 1px var(--smoke); }
.dev-tg .sw { width: 26px; height: 15px; border-radius: 8px; background: rgba(255,255,255,.1); position: relative; transition: background .2s ease; flex: none; }
.dev-tg .sw i { position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: var(--fog); transition: transform .2s var(--ease), background .2s ease; }
.dev-tg[aria-pressed="true"] { color: #fff; }
.dev-tg[aria-pressed="true"] .sw { background: rgba(139,92,246,.55); }
.dev-tg[aria-pressed="true"] .sw i { transform: translateX(11px); background: #fff; }
@media (max-width: 860px) { .dev-tg .dev-l { display: none; } }

/* home: one box and four starters */
.ask-note { margin: -4px 18px 16px; font-size: 12.5px; color: var(--fog); }
.starts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.start { all: unset; box-sizing: border-box; cursor: pointer; display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 12px; background: var(--carbon);
  box-shadow: var(--inset); transition: background .2s ease, box-shadow .2s ease, transform .2s ease; animation: rowin .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms); }
.start:hover { background: var(--obsidian); box-shadow: inset 0 0 0 1px var(--smoke); transform: translateY(-1px); }
.start-i { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: rgba(139,92,246,.12); color: var(--lav-t); flex: none; }
.start-t b { display: block; color: #fff; font-weight: 510; font-size: 13.5px; }
.start-t span { display: block; color: var(--fog); font-size: 12.5px; line-height: 1.45; margin-top: 2px; }
@media (max-width: 1100px) { .starts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .starts { grid-template-columns: minmax(0, 1fr); } }

/* result cards: one quiet line at the bottom says where and how it was read */
.read-note { display: flex; gap: 7px; align-items: flex-start; margin: 16px 0 0; padding-top: 12px; border-top: var(--hair); font-size: 12px; color: var(--fog); line-height: 1.5; }
.read-note svg { color: var(--green-t); margin-top: 2px; }
.best { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 11px 14px; border-radius: 10px; background: rgba(139,92,246,.08); box-shadow: inset 0 0 0 1px rgba(180,165,251,.22);
  color: var(--mist); font-size: 13.5px; line-height: 1.5; }
.best svg { color: var(--lav-t); margin-top: 2px; }
.best b { color: #fff; font-weight: 510; }
a.best:hover { background: rgba(139,92,246,.12); }

/* the posts chart: a scale, a dashed "typical" line, dates under the bars, a legend that says what purple means */
.chart { margin-top: 18px; }
.chart-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.chart-h b { color: #fff; font-weight: 510; font-size: 13.5px; }
.legend { display: inline-flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--fog); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.lg-hi { background: linear-gradient(180deg, #c4b5fd, #7c6ad8); } .lg-bar { background: #3a3d44; }
.lg-typ { width: 14px !important; height: 0 !important; border-top: 1.5px dashed var(--green-t); border-radius: 0 !important; }
.plot { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px; margin-top: 14px; }
.yax { display: flex; flex-direction: column; justify-content: space-between; height: 150px; font-size: 11px; color: var(--ash); text-align: right; font-variant-numeric: tabular-nums; }
.cols { position: relative; height: 150px; display: flex; align-items: flex-end; gap: 6px; border-bottom: var(--hair);
  background: linear-gradient(var(--graphite), var(--graphite)) 0 0 / 100% 1px no-repeat, linear-gradient(rgba(255,255,255,.05), rgba(255,255,255,.05)) 0 50% / 100% 1px no-repeat; }
.col { position: relative; flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; color: inherit; cursor: default; }
a.col[href] { cursor: pointer; }
.col i { display: block; height: var(--h); border-radius: 4px 4px 1px 1px; background: #3a3d44; transform-origin: bottom; animation: grow .8s var(--ease) both; animation-delay: calc(var(--i) * 30ms); transition: filter .15s ease; }
.col.hi i { background: linear-gradient(180deg, #c4b5fd, #7c6ad8); }
.col:hover i { filter: brightness(1.35); }
.col em { position: absolute; left: 50%; bottom: calc(var(--h) + 4px); transform: translateX(-50%); font-style: normal; font-size: 11px; color: var(--lav-t2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.col .xl { position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--ash); white-space: nowrap; }
.typ { position: absolute; left: 0; right: 0; height: 0; border-top: 1.5px dashed rgba(76,192,106,.75); z-index: 1; pointer-events: none; }
.typ span { position: absolute; right: 0; bottom: 3px; font-size: 11px; color: var(--green-t); background: var(--carbon); padding: 0 4px; border-radius: 3px; }
.chart-note { margin: 28px 0 0; font-size: 12px; color: var(--fog); }
.posts { margin-top: 14px; max-height: 420px; }
.posts .pt { display: block; max-width: 560px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--mist); }
.posts .pin { font-style: normal; font-size: 11px; color: var(--fog); box-shadow: var(--inset); border-radius: 4px; padding: 1px 5px; margin-right: 8px; }
.nowrap { white-space: nowrap; }
tr[data-href] { cursor: pointer; }
tr[data-href]:hover td { background: rgba(255,255,255,.025); }
tr[data-href]:hover .pt { color: #fff; }
.pp-head { display: grid; grid-template-columns: 36px minmax(140px, 1.2fr) minmax(0, 2fr) 120px 22px; gap: 14px; padding: 6px 4px; font-size: 11.5px; color: var(--ash); border-bottom: var(--hair); }
.pp-head span:nth-child(4) { text-align: right; }
@media (max-width: 860px) { .pp-head { grid-template-columns: 32px minmax(0, 1fr) auto 18px; } .pp-head span:nth-child(3) { display: none; } .posts .pt { max-width: 220px; } }

/* developer data behind a card */
.devbox { margin-top: 14px; border-radius: 10px; background: var(--void); box-shadow: var(--inset); overflow: hidden; }
.devbox-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px 8px 14px; border-bottom: var(--hair); font-size: 12px; color: var(--fog); }
.devbox-h a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--smoke); }
.devbox pre { margin: 0; padding: 12px 14px; max-height: 340px; overflow: auto; font: 12px/1.6 var(--mono); color: var(--mist); white-space: pre-wrap; overflow-wrap: anywhere; }

/* sidebar usage card */
a.meter { display: block; color: inherit; transition: box-shadow .2s ease, background .2s ease; }
a.meter:hover { box-shadow: inset 0 0 0 1px var(--smoke); background: rgba(255,255,255,.03); }
.meter-sub { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11.5px; color: var(--fog); }
.meter-sub span:last-child { color: var(--lav-t2); }

/* usage & limits */
.big-n { display: flex; align-items: baseline; gap: 8px; margin: 4px 0 12px; }
.big-n b { color: #fff; font-size: 34px; font-weight: 510; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.big-n span { color: var(--fog); font-size: 13.5px; }
.meter-bar.big { height: 6px; border-radius: 3px; margin-bottom: 4px; }
.lim-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.lim-grid label { display: block; }
.lim-grid em { display: block; font-style: normal; font-size: 12px; color: var(--fog); margin-top: 6px; line-height: 1.45; }
.lim-go { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; }
.err-inline { color: #f3b3b3; font-size: 12.5px; }
.plot.days .col i { background: #4a4d55; }
.plot.days .col.hi i { background: linear-gradient(180deg, #c4b5fd, #7c6ad8); }
@media (max-width: 860px) { .lim-grid { grid-template-columns: minmax(0, 1fr); } }

/* developer page */
.dev-p { margin: 0 0 14px; font-size: 13.5px; line-height: 1.55; }
.card-h .h2 { display: inline-flex; align-items: center; gap: 8px; }
.card-h .h2 svg { color: var(--lav-t); }
code.ic { font-family: var(--mono); font-size: 12px; color: #fff; background: rgba(255,255,255,.06); padding: 1px 6px; border-radius: 5px; overflow-wrap: anywhere; }
.nk-form { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) auto; gap: 10px; margin-bottom: 14px; }
.newkey { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; padding: 14px; border-radius: 10px; background: rgba(76,192,106,.07); box-shadow: inset 0 0 0 1px rgba(76,192,106,.3); }
.newkey > svg { color: var(--green-t); margin-top: 2px; }
.newkey > div { flex: 1; min-width: 0; }
.newkey b { display: block; color: #fff; font-weight: 510; }
.newkey span { display: block; color: var(--mist); font-size: 13px; margin: 2px 0 8px; }
.mth { display: inline-block; min-width: 50px; font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .04em; margin-right: 8px; }
.m-get { color: var(--green-t); } .m-post { color: var(--lav-t2); } .m-delete { color: var(--coral); }
.api-tbl td { vertical-align: middle; }
.cap-edit { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: #fff; }
.cap-edit svg { color: var(--fog); }
.cap-edit:hover svg { color: #fff; }
.in.in-s { height: 28px; width: 80px; font-size: 12.5px; padding: 0 8px; margin-right: 6px; }
tr.off td { opacity: .5; }
.tool-r { padding: 10px 2px; border-bottom: .5px solid rgba(255,255,255,.05); font-size: 13px; }
.tool-r b { display: block; color: #fff; font-weight: 510; }
.tool-r span { display: block; color: var(--mist); margin-top: 2px; line-height: 1.45; }
.tool-r em { display: block; font-style: normal; font-family: var(--mono); font-size: 11.5px; color: var(--fog); margin-top: 4px; }
@media (max-width: 860px) { .nk-form { grid-template-columns: minmax(0, 1fr); } }
.plot { margin-top: 26px; }
.find { white-space: nowrap; overflow: hidden; min-width: 0; }
@media (max-width: 860px) { .top { gap: 8px; } .find { padding-right: 10px; } }

/* ======================================================================================================================
   PHONES (7 Oct 2026, Chad: "on mobile ... whole nav bar is fucked ... the menu thing is tiny, cant even press it ... loads of
   room in mobile for UI improvement"). One block, last in the file, so it wins: a top bar with the brand, search and your
   account; a tab bar for Home, Chat, Watches, Alerts and More; 44px targets; 16px inputs so iPhones don't zoom in.
   ====================================================================================================================== */
.tabbar, .top-brand, .top-av, .side-x, .side-dev, .chat-m, .posts .pd { display: none; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@supports (height: 100dvh) { .shell { height: 100dvh; } }

@media (max-width: 860px) {
  /* top bar */
  .main { grid-template-rows: auto minmax(0, 1fr) auto; }
  .top { height: auto; min-height: 56px; padding: env(safe-area-inset-top) 12px 0 14px; gap: 10px; }
  .x-btn.menu-btn { display: none !important; }
  .top-brand { display: inline-flex; align-items: center; gap: 9px; color: #fff; font-weight: 510; font-size: 16px; letter-spacing: -.01em; height: 44px; }
  .find { flex: none; width: 44px; height: 40px; padding: 0; justify-content: center; font-size: 0; gap: 0; border-radius: 10px; }
  .find svg { width: 19px; height: 19px; }
  .find .kbd, .dev-tg { display: none; }
  .top-av { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--iris); color: #fff; font-weight: 590; font-size: 14px; overflow: hidden; flex: none; }
  .top-av img { width: 100%; height: 100%; object-fit: cover; }

  /* tab bar */
  .tabbar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: var(--hair); background: rgba(12,13,14,.97);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a, .tabbar button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    min-height: 58px; color: var(--fog); font-size: 11px; font-weight: 510; -webkit-tap-highlight-color: transparent; }
  .tabbar a.on, .tabbar button.on { color: #fff; }
  .tabbar .on svg { color: var(--lav-t); }
  .tabbar a.hot span { color: var(--lav-t2); }

  /* the full menu (More) as a drawer over a dimmed page */
  .side { width: min(304px, 86vw); padding: calc(10px + env(safe-area-inset-top)) 12px calc(12px + env(safe-area-inset-bottom)); z-index: 70; }
  body.menu-open::after { content: ""; position: fixed; inset: 0; z-index: 65; background: rgba(0,0,0,.6); animation: fadein .2s ease both; }
  .side .brand { padding: 4px 4px 12px 8px; }
  .side-x { display: grid; place-items: center; margin-left: auto; width: 44px; height: 44px; border-radius: 10px; color: var(--mist); }
  .side .nav-i { min-height: 46px; font-size: 15.5px; padding: 0 12px; }
  .side .ws { min-height: 46px; }
  .side-dev { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 12px; border-radius: 10px;
    box-shadow: var(--inset); color: var(--mist); font-size: 14px; }
  .side-dev .sw { margin-left: auto; width: 32px; height: 19px; border-radius: 10px; background: rgba(255,255,255,.1); position: relative; }
  .side-dev .sw i { position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: var(--fog); transition: transform .2s var(--ease), background .2s ease; }
  .side-dev[aria-pressed="true"] { color: #fff; }
  .side-dev[aria-pressed="true"] .sw { background: rgba(139,92,246,.6); }
  .side-dev[aria-pressed="true"] .sw i { transform: translateX(13px); background: #fff; }
  .side-foot .btn-p { height: 44px; font-size: 14px; }

  /* type and inputs: 16px stops iOS zooming in on focus */
  .in, input, select, textarea { font-size: 16px !important; }
  .in { height: 46px; }
  .btn { min-height: 40px; }
  .btn-s { min-height: 36px; height: 36px; }
  .view { padding: 20px 16px 28px; }
  .h1 { font-size: 26px; }
  .sub { font-size: 14.5px; }
  .head { margin-bottom: 18px; gap: 12px; }

  /* home */
  .head .btn[data-new] { display: none; }
  #askf, #wf { flex-direction: row; align-items: stretch; gap: 8px; padding: 12px; }
  #askf .in, #wf .in { height: 48px; }
  #askf .btn, #wf .btn { width: 52px; height: 48px; padding: 0; flex: none; }
  #askf .btn span, #wf .btn span { display: none; }
  .ask-note { margin: -2px 14px 12px; font-size: 12px; }
  .starts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
  .start { flex-direction: column; gap: 10px; padding: 14px 12px; min-height: 104px; }
  .start-t b { font-size: 14px; line-height: 1.3; }
  .start-t span { display: none; }
  .check-card .ck-row { grid-template-columns: 22px minmax(0, 1fr) auto; }
  .check-card .ck-row > :last-child:not(div) { grid-column: auto; }
  .check-card .ck-row div span { display: none; }

  /* result cards */
  .res-h { flex-wrap: wrap; }
  .res-actions { width: 100%; }
  .res-actions .btn { flex: 1 1 auto; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat b { font-size: 20px; }
  .posts th:nth-child(2), .posts td:nth-child(2) { display: none; }
  .posts .pd { display: block; font-size: 11.5px; color: var(--ash); margin-top: 2px; }
  .posts .pt { max-width: 190px; }
  .plot { grid-template-columns: 34px minmax(0, 1fr); }
  .cols { gap: 4px; }
  .legend { gap: 10px; }

  /* chat */
  .chat-top { padding: 10px 14px; gap: 8px; }
  .chat-top .cr { display: none; }
  .chat-m { display: inline-flex; gap: 6px; flex: none; }
  .chat-view.list-open .chat-list { display: flex; position: absolute; z-index: 20; left: 12px; right: 12px; top: 58px; max-height: 60%; background: var(--obsidian);
    border-radius: 14px; box-shadow: inset 0 0 0 1px var(--smoke), rgba(0,0,0,.6) 0 20px 50px; padding: 10px; }
  .chat-view { position: relative; }
  .chat-list a { min-height: 44px; }
  .composer { padding: 10px 12px 12px; }
  .composer .hint { display: none; }
  .thread { padding: 18px 14px 12px; }

  /* sheets, panel, toasts */
  .overlay { place-items: end center; padding: 0; }
  .sheet { width: 100%; max-height: 92dvh; overflow-y: auto; border-radius: 18px 18px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); }
  .kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kind { min-height: 64px; }
  .sheet .foot .btn { flex: 1; height: 46px; }
  .pal { border-radius: 0 0 16px 16px; }
  .overlay.pal-o { place-items: start center; }
  .panel { width: 100vw; padding-bottom: env(safe-area-inset-bottom); }
  .pn-h .x-btn { width: 44px; height: 44px; }
  .pn .acts .btn { flex: 1; }
  .toasts { left: 12px; right: 12px; width: auto; bottom: calc(72px + env(safe-area-inset-bottom)); }

  /* tables and pages */
  .tbar { gap: 8px; }
  .tabs { width: 100%; }
  .tabs button { padding: 8px 10px; }
  .lim-go .btn, .nk-form .btn { height: 46px; }
  .linkbox { padding: 12px; }
  .linkbox code { font-size: 12.5px; min-width: 0; width: 100%; }
  .linkbox .btn { width: 100%; }
  .welcome-card { margin-top: 0; }
  .wc-skip { padding: 10px 4px; }
  .app-pick { min-height: 54px; }
}
@media (max-width: 860px) { .ask-note { display: none; } }
@media (max-width: 860px) {
  .side .nav-i[href="#/home"], .side .nav-i[href="#/chat"], .side .nav-i[href="#/watches"], .side .nav-i[href="#/alerts"] { display: none; }
}
@media (max-width: 860px) { .welcome { margin-top: 3vh; } .welcome .ex button { text-align: left; justify-content: flex-start; width: 100%; } .welcome h2 { font-size: 24px; } }
@media (max-width: 860px) {
  .posts .tbl th, .posts .tbl td { padding: 10px 8px; }
  .posts .tbl th { white-space: normal; line-height: 1.25; }
  .posts .pt { max-width: 150px; }
  .posts .tbl td:first-child, .posts .tbl th:first-child { padding-left: 12px; }
}

/* ---------- connecting AI apps: one button each ---------- */
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.app-tile { padding: 16px; border-radius: 12px; background: var(--carbon); box-shadow: var(--inset); min-width: 0; }
.app-tile > b { display: block; color: #fff; font-weight: 510; font-size: 15px; margin-bottom: 12px; }
.app-guide .app-go { width: 100%; height: 44px; }
.app-guide .steps { margin-top: 10px; }
.app-guide .steps li { font-size: 13px; padding: 8px 0; }
.app-tile .app-guide .steps { display: none; }
.app-tile .app-guide.open .steps, .app-guide.big .steps { display: block; }
.copied { display: flex; gap: 8px; align-items: center; margin: 12px 0 0; color: var(--green-t); font-size: 13px; font-weight: 510; }
.app-note { margin: 8px 0 0; font-size: 12px; }
.app-alt a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.manual { margin-top: 18px; }
.manual summary { cursor: pointer; color: var(--fog); font-size: 13px; }
.manual summary:hover { color: #fff; }
@media (max-width: 860px) { .app-grid { grid-template-columns: minmax(0, 1fr); } .app-guide .app-go { height: 48px; font-size: 14.5px; } }
body.onboarding .tabbar { display: none !important; }
/* the phone app */
.install-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 12px; align-items: center; margin-top: 12px; padding: 14px;
  background: radial-gradient(120% 140% at 0% 0%, rgba(139,92,246,.14), rgba(8,9,10,0) 60%), var(--carbon); }
.install-i { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--void); box-shadow: var(--inset); }
.install-card b { display: block; color: #fff; font-weight: 510; font-size: 14px; }
.install-card span { display: block; color: var(--mist); font-size: 12.5px; line-height: 1.45; margin-top: 2px; }
.install-card .x-btn { width: 36px; height: 36px; }
.phone-note { display: flex; gap: 6px; align-items: flex-start; }
.phone-note svg { margin-top: 2px; flex: none; }
/* Claude and ChatGPT: the box you'll see, drawn small */
.big-apps { margin-bottom: 8px; }
.app-big .app-guide .app-go { height: 46px; }
.dlg-mock { margin-top: 14px; border-radius: 12px; background: #1d1e21; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); padding: 14px; font-size: 12.5px; }
.dlg-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; color: #fff; font-weight: 590; font-size: 13.5px; margin-bottom: 10px; }
.dlg-h span { color: var(--ash); font-weight: 400; font-size: 11px; }
.dlg-f { display: grid; gap: 4px; margin-top: 8px; }
.dlg-f span { color: var(--fog); font-size: 11.5px; }
.dlg-f b { display: block; padding: 8px 10px; border-radius: 8px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); color: #fff; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dlg-f b.mono { font-family: var(--mono); font-size: 11.5px; }
.dlg-b { display: flex; justify-content: flex-end; margin-top: 12px; }
.dlg-b i { font-style: normal; padding: 6px 14px; border-radius: 8px; background: #fff; color: var(--void); font-weight: 590; }
.sec-h { margin: 26px 0 12px; font-size: 15px; }
