/* The signed-in app and the sign-in pages: inside the observatory. The same night palette and
   type as the site; colour still means only one thing each: cyan added, amber changed, red removed.
   Loaded after site.css on the app's pages. */

/* ---- the app: a sidebar and the page --------------------------------------------------------- */
.app { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; background: var(--bg); }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 18px; padding: 18px 14px 14px; border-right: 1px solid var(--line); background: #060a12; overflow-y: auto; }
.side__brand { display: block; padding: 2px 8px 0; line-height: 0; }
.side__brand img { height: 32px; width: auto; }
.ws { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 8px; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(232, 238, 242, .03); color: var(--glass); text-align: left; font: inherit; cursor: pointer; }
.ws:hover { border-color: rgba(232, 238, 242, .32); }
.ws__org { grid-column: 1; font: 500 .72rem Azeret, monospace; color: rgba(232, 238, 242, .62); }
.ws__name { grid-column: 1; font-weight: 500; }
.ws__chev { grid-column: 2; grid-row: 1 / 3; width: 8px; height: 8px; border-right: 1.5px solid var(--glass-2); border-bottom: 1.5px solid var(--glass-2); transform: rotate(45deg); margin-top: -4px; }
.side nav { display: grid; gap: 2px; }
.side__group { margin: 10px 0 4px; padding: 0 10px; font: 500 .68rem Azeret, monospace; color: rgba(232, 238, 242, .5); }
.side nav a { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--glass-2); text-decoration: none; font-size: .95rem; }
.side nav a:hover { color: var(--glass); background: rgba(232, 238, 242, .05); }
.side nav a[aria-current="page"] { color: var(--glass); background: rgba(232, 238, 242, .08); }
.side nav a[aria-current="page"]::before { content: ''; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 2px; background: var(--added); }
.side nav svg { flex: none; width: 16px; height: 16px; opacity: .8; }
.side__foot { margin-top: auto; display: grid; gap: 10px; padding: 12px 10px 0; border-top: 1px solid var(--line); }
.side__sky { position: relative; height: 64px; border-radius: 8px; overflow: hidden; background: linear-gradient(#050913, #0b1526); }
.side__sky canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.side__sky span { position: absolute; left: 8px; bottom: 6px; font: 500 .66rem Azeret, monospace; color: rgba(232, 238, 242, .72); }
.side__user { display: grid; gap: 2px; font-size: .86rem; color: var(--glass-2); }
.side__user b { font-weight: 500; color: var(--glass); }
.side__user button { justify-self: start; padding: 0; border: 0; background: none; color: var(--glass-2); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.topbar { display: none; }
.view { min-width: 0; padding: 26px clamp(20px, 3.2vw, 44px) 80px; }
.view__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; margin: 0 0 24px; }
.view__head h1 { margin: 0; font-weight: 360; font-stretch: 110%; font-size: clamp(1.7rem, 2.6vw, 2.2rem); line-height: 1.1; letter-spacing: -.02em; }
.view__head p { margin: 6px 0 0; color: var(--glass-2); max-width: 42rem; }
.view__crumbs { margin: 0 0 8px; font: 500 .74rem Azeret, monospace; color: rgba(232, 238, 242, .6); }
.view__crumbs a { color: inherit; text-decoration: none; }
.view__crumbs a:hover { color: var(--glass); }
.view__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.demo { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 4px 10px; border: 1px dashed rgba(233, 180, 95, .55); border-radius: 6px; font: 500 .72rem Azeret, monospace; color: var(--changed); }

.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--main { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
.panel { min-width: 0; padding: 18px 20px 20px; border: 1px solid var(--line); border-radius: 12px; background: rgba(5, 8, 15, .62); }
.panel__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.panel__head h2 { margin: 0; font: 500 1.02rem/1.3 Archivo, sans-serif; color: var(--glass); }
.panel__head a { font-size: .88rem; color: var(--glass-2); }
.panel__head a:hover { color: var(--glass); }
.panel > p { margin: 0 0 .8em; color: var(--glass-2); font-size: .94rem; }
.stat__label { display: block; font: 500 .72rem Azeret, monospace; color: rgba(232, 238, 242, .62); }
.stat__value { display: block; margin-top: 4px; font-weight: 330; font-stretch: 110%; font-size: 2rem; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat__note { display: block; margin-top: 4px; font-size: .86rem; color: var(--glass-2); }
.quota { margin: 12px 0 4px; height: 6px; border-radius: 3px; background: rgba(232, 238, 242, .12); overflow: hidden; }
.quota span { display: block; height: 100%; width: calc(var(--used) * 100%); background: var(--added); border-radius: 3px; }
.quota[data-high] span { background: var(--changed); }
.tasks { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.task { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.task:first-child { border-top: 0; }
.task__mark { width: 18px; height: 18px; border-radius: 50%; border: 1.5px dashed rgba(232, 238, 242, .4); }
.task[data-done] .task__mark { border: 0; background: var(--added); box-shadow: inset 0 0 0 4px #0a3b40; }
.task__name { color: var(--glass); }
.task__what { display: block; font-size: .84rem; color: var(--glass-2); }
.task[data-done] .task__name { color: var(--glass-2); }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: baseline; gap: 4px 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.feed li:first-child { border-top: 0; }
.feed time { font: 500 .74rem Azeret, monospace; color: rgba(232, 238, 242, .6); white-space: nowrap; }
.feed__what { min-width: 0; }
.feed__key { font: 500 .82rem Azeret, monospace; color: var(--glass); }
.feed__val { display: block; font-size: .9rem; color: var(--glass-2); overflow-wrap: anywhere; }
.feed__val s { color: rgba(232, 238, 242, .5); }
.op { display: inline-block; min-width: 4.6rem; padding: 1px 7px; border-radius: 4px; border: 1px solid var(--line); font: 500 .7rem Azeret, monospace; text-align: center; color: var(--glass-2); }
.op--added { color: var(--added); border-color: rgba(92, 225, 230, .5); }
.op--changed { color: var(--changed); border-color: rgba(233, 180, 95, .55); }
.op--removed { color: #ffc7bd; border-color: rgba(255, 107, 87, .55); }
.op--restored { color: var(--glass); border-color: rgba(232, 238, 242, .45); }
.list-rows { list-style: none; margin: 0; padding: 0; }
.list-rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.list-rows li:first-child { border-top: 0; }
.list-rows b { font-weight: 500; color: var(--glass); }
.list-rows small { display: block; font-size: .84rem; color: var(--glass-2); }
.key { font: 500 .84rem Azeret, monospace; color: var(--glass); }
.mono { font-family: Azeret, monospace; font-size: .86em; }
.muted { color: var(--glass-2); }

/* the memory browser: the list, and the chosen memory's history */
.mem { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.mem__tools { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
.mem__tools .text { max-width: 20rem; }
.mem table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.mem th, .mem td { padding: 11px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.mem thead th { font: 500 .72rem Azeret, monospace; color: var(--glass-2); }
.mem tbody tr { cursor: pointer; }
.mem tbody tr:hover { background: rgba(232, 238, 242, .04); }
.mem tbody tr[aria-selected="true"] { background: rgba(92, 225, 230, .06); box-shadow: inset 2px 0 0 var(--added); }
.mem td small { display: block; font: 400 .74rem Azeret, monospace; color: rgba(232, 238, 242, .6); }
.mem tr[data-gone] td { color: rgba(232, 238, 242, .5); }
.hist { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 1px solid var(--line); }
.hist li { position: relative; padding: 0 0 18px 16px; }
.hist li::before { content: ''; position: absolute; left: -19px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 1.5px solid rgba(232, 238, 242, .55); }
.hist li[data-op="added"]::before { border-color: var(--added); background: var(--added); }
.hist li[data-op="changed"]::before { border-color: var(--changed); }
.hist li[data-op="removed"]::before { border-color: var(--removed); }
.hist li[data-op="restored"]::before { border-color: var(--glass); background: var(--glass); }
.hist__when { font: 500 .74rem Azeret, monospace; color: rgba(232, 238, 242, .62); }
.hist__val { display: block; margin-top: 4px; color: var(--glass); }
.hist__src { display: block; margin-top: 2px; font: 400 .76rem Azeret, monospace; color: rgba(232, 238, 242, .62); }

@media (max-width: 1100px) { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid--main, .mem { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; z-index: 12; inset: 0 auto 0 0; width: min(300px, 86vw); transform: translateX(-102%); transition: transform .25s; box-shadow: 20px 0 60px rgba(0, 0, 0, .5); }
  .app[data-nav="open"] .side { transform: none; }
  .topbar { position: sticky; top: 0; z-index: 11; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(6, 10, 18, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .topbar img { height: 28px; width: auto; }
  .view { padding: 20px 16px 70px; }
  .grid--2, .grid--3 { grid-template-columns: minmax(0, 1fr); }
}
/* a closed drawer is out of the tab order, not only off screen */
@media (max-width: 860px) {
  .side { visibility: hidden; transition: transform .25s, visibility 0s .25s; }
  .app[data-nav="open"] .side { visibility: visible; transition: transform .25s; }
}
@media (prefers-reduced-motion: reduce) { .side, .app[data-nav="open"] .side { transition: none; } }
.side__sky[data-day="true"] { background: linear-gradient(#3b6ea8, #8fb3d6); }
.side__sky[data-day="true"] span { color: rgba(7, 11, 20, .78); }
.ws { cursor: default; grid-template-columns: 1fr; }
.ws__env { font: 500 .72rem Azeret, monospace; color: var(--added); }
.side nav a.is-sub { margin-left: 18px; font-size: .9rem; }
.side nav a.is-sub[aria-current="page"]::before { left: -32px; }
.side__plan { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; margin: 0; }
.side__plan dt { font: 500 .64rem Azeret, monospace; color: rgba(232, 238, 242, .55); }
.side__plan dd { margin: 1px 0 0; font-size: .86rem; color: var(--glass); }
.side__user a { color: var(--glass-2); }

/* ---- the app's parts ---------------------------------------------------------------------- */
.panel__status { font: 500 .72rem Azeret, monospace; color: rgba(232, 238, 242, .6); white-space: nowrap; }
.panel--gap { margin-top: 16px; }
.view__note { margin: -10px 0 18px; color: var(--glass-2); max-width: 46rem; }
.next { display: grid; gap: 6px; padding: 14px 16px; margin: 0 0 12px; border-left: 2px solid var(--added); background: rgba(92, 225, 230, .05); }
.next__tag { font: 500 .68rem Azeret, monospace; color: var(--added); }
.next b { font-weight: 500; color: var(--glass); font-size: 1.05rem; }
.next p { margin: 0; color: var(--glass-2); font-size: .92rem; }
.next .btn { justify-self: start; margin-top: 4px; }
.task a { font-size: .86rem; color: var(--glass-2); }
.log { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.log li { display: grid; grid-template-columns: 5.2rem 7.6rem minmax(0, 1fr); align-items: baseline; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); }
.log .op { white-space: normal; overflow-wrap: anywhere; }
.log li:first-child { border-top: 0; }
.log time { font: 500 .78rem Azeret, monospace; color: rgba(232, 238, 242, .62); }
.log span:last-child { color: var(--glass-2); }
.op--plain { color: var(--glass-2); }
.quotas { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.quotas li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: baseline; gap: 2px 12px; }
.quotas__label { color: var(--glass); font-size: .92rem; }
.quotas__n { font: 500 .78rem Azeret, monospace; color: var(--glass-2); }
.quotas__pct { font: 500 .78rem Azeret, monospace; color: var(--glass); min-width: 3ch; text-align: right; }
.quotas .quota { grid-column: 1 / -1; margin: 2px 0 0; }
.quotas li[data-high] .quota span { background: var(--changed); }
.stat { display: grid; align-content: start; gap: 2px; }
.stat__value--sm { font-size: 1.4rem; }
.stat__link { justify-self: start; margin-top: 8px; font-size: .9rem; color: var(--glass); }
.stepper { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.stepper li { display: grid; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; font-size: .86rem; color: var(--glass-2); }
.stepper li[data-done] { border-color: rgba(92, 225, 230, .35); }
.stepper__n { font: 500 .72rem Azeret, monospace; color: var(--added); }
.stepper b { font-weight: 500; color: var(--glass); font-size: .95rem; }
.reveal { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 10px 0 4px !important; }
.reveal code { padding: 8px 10px; border: 1px solid rgba(92, 225, 230, .45); border-radius: 6px; background: rgba(92, 225, 230, .06); font-weight: 600; overflow-wrap: anywhere; }
.adv summary { cursor: pointer; color: var(--glass); font-weight: 500; }
.adv[open] summary { margin-bottom: 10px; }
.checks--tight { gap: 8px; margin-bottom: 1em; }
.checks--tight li { font-size: .92rem; }
.checks--tight b { font: 500 .78rem Azeret, monospace; margin-right: 6px; color: var(--glass); }
.table--app { font-size: .92rem; }
.table--app tbody th { font-weight: 500; }
.table--app small.host { display: block; font: 400 .74rem Azeret, monospace; color: rgba(232, 238, 242, .6); }
.table-wrap--plain { border: 0; background: none; border-radius: 0; }
.mem__table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.mem__table th, .mem__table td { padding: 11px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.mem__table thead th { font: 500 .72rem Azeret, monospace; color: var(--glass-2); }
.mem__table tbody tr { cursor: pointer; }
.mem__table tbody tr:hover { background: rgba(232, 238, 242, .04); }
.mem__table tbody tr[aria-selected="true"] { background: rgba(92, 225, 230, .06); box-shadow: inset 2px 0 0 var(--added); }
.mem__table tbody th { font-weight: 400; }
.mem__table small { display: block; margin-top: 3px; font: 400 .72rem Azeret, monospace; color: rgba(232, 238, 242, .6); }
.mem__side { position: sticky; top: 20px; }
.hist-panel .op { margin-left: 6px; }
.plans-mini { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 8px; margin: 4px 0 14px; }
.plan-btn { display: grid; gap: 2px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(232, 238, 242, .03); color: var(--glass); text-align: left; font: inherit; cursor: pointer; }
.plan-btn:hover { border-color: rgba(232, 238, 242, .4); }
.plan-btn b { font-weight: 500; }
.plan-btn span { font: 500 .76rem Azeret, monospace; color: var(--glass-2); }
.sub3 { margin: 12px 0 2px; font: 500 1rem Archivo, sans-serif; color: var(--glass); }
.grid--flat { gap: 14px 18px; }
.empty { margin: 0; font-size: .92rem; color: rgba(232, 238, 242, .62); }
.kv { margin: 0 0 12px; display: grid; gap: 8px; }
.kv div { display: grid; grid-template-columns: 11rem 1fr; gap: 10px; font-size: .9rem; }
.kv dt { color: rgba(232, 238, 242, .62); }
.kv dd { margin: 0; color: var(--glass); }
.form--row { grid-template-columns: minmax(0, 1fr) 9rem auto; align-items: end; }
.form--row .btn { width: auto; }
@media (max-width: 1100px) { .stepper { grid-template-columns: 1fr 1fr; } .mem__side { position: static; order: -1; } }
@media (max-width: 760px) { .form--row { grid-template-columns: 1fr; } .kv div { grid-template-columns: 1fr; } .log li { grid-template-columns: 4.6rem 1fr; } .log li span:last-child { grid-column: 2; } }

@media (max-width: 760px) {
  .mem__table thead, .table--app thead { display: none; }
  .mem__table, .mem__table tbody, .mem__table tr, .mem__table th, .mem__table td,
  .table--app, .table--app tbody, .table--app tr, .table--app th, .table--app td { display: block; width: 100%; }
  .mem__table tr, .table--app tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .mem__table th, .mem__table td, .table--app th, .table--app td { border: 0 !important; padding: 3px 4px; }
  .mem__table td[data-label]::before, .table--app td[data-label]::before { content: attr(data-label) ' '; font: 500 .68rem Azeret, monospace; color: rgba(232, 238, 242, .55); }
}
/* in the app a disabled button reads as unavailable, not as done */
.app .btn:disabled, .auth-card .btn:disabled { color: rgba(232, 238, 242, .45); border-color: var(--line); background: transparent; cursor: not-allowed; }

/* ---- the live app (components/cloud): states and parts the demo screens did not need ---------- */
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.quotas li[data-state="exceeded"] .quota span { background: var(--removed); }
.checks li[data-pending] { color: var(--glass-2); }
.checks li[data-pending]::before { left: 4px; top: .5em; width: 9px; height: 9px; border: 1.5px dashed rgba(232, 238, 242, .5); border-radius: 50%; transform: none; }
.stepper li[aria-current] { border-color: rgba(232, 238, 242, .45); color: var(--glass); }
.panel .actions { align-items: center; }
.panel .form--row { margin: 0 0 16px; }
.form--row .select, .form--row .select select { width: 100%; }
.form--row .form__msg { grid-column: 1 / -1; }
.plan-btn:disabled { cursor: not-allowed; opacity: .5; }
.plan-btn:disabled:hover { border-color: var(--line); }
.stat__note small { display: block; margin-top: 2px; font: 400 .74rem Azeret, monospace; color: rgba(232, 238, 242, .6); overflow-wrap: anywhere; }
.next h2 { margin: 0; font: 500 1.05rem/1.3 Archivo, sans-serif; color: var(--glass); }
.panel__head h3 { margin: 0; font: 500 .95rem/1.3 Archivo, sans-serif; color: var(--glass); }
.records > section { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
/* the memory browser: a key links to its history, and the chosen one is marked */
.mem__filters { grid-template-columns: minmax(0, 1fr) 11rem auto; }
.mem__table th, .mem__table td { overflow-wrap: anywhere; }
.mem__table--links tbody tr { cursor: auto; }
.mem__table--links tbody tr[data-selected] { background: rgba(92, 225, 230, .06); box-shadow: inset 2px 0 0 var(--added); }
.mem__table--links th a { color: var(--glass); text-decoration: none; }
.mem__table--links th a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1100px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .grid--4 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .mem__filters { grid-template-columns: minmax(0, 1fr); } }

/* ---- confirm dialogs, key states, inline forms and the account page (2026-10-19 batch 3) -------- */
.dialog { width: min(32rem, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 20px 22px; border: 1px solid var(--line); border-radius: 12px; background: #070b14; color: var(--glass); overflow-y: auto; }
.dialog::backdrop { background: rgba(2, 4, 9, .72); }
.dialog h2 { margin: 0 0 8px; font: 500 1.08rem/1.3 Archivo, sans-serif; color: var(--glass); }
.dialog p { margin: 0 0 10px; color: var(--glass-2); font-size: .92rem; }
.dialog ul { margin: 0 0 12px; padding-left: 1.1rem; display: grid; gap: 6px; color: var(--glass-2); font-size: .92rem; }
.dialog .form { margin-top: 10px; }
.dialog__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.dialog__actions .btn, .dialog .form .btn { width: auto; }
.btn--danger { background: transparent; color: #ffc7bd; border-color: rgba(255, 107, 87, .7); }
.btn--danger:hover { background: rgba(255, 107, 87, .12); }
.tag--expiring { color: var(--changed); border-color: rgba(233, 180, 95, .55); }
.tag--expired { color: rgba(232, 238, 242, .6); border-color: rgba(255, 107, 87, .45); border-style: dashed; }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.row-actions .btn { width: auto; }
.form--inline { grid-template-columns: minmax(0, 1fr) auto auto; align-items: end; margin: 0 0 16px; }
.form--inline .btn { width: auto; }
.form--inline .form__msg { grid-column: 1 / -1; }
.table--app td small { display: block; font: 400 .74rem Azeret, monospace; color: rgba(232, 238, 242, .6); }
@media (max-width: 760px) { .form--inline { grid-template-columns: 1fr; } }

/* ---- owner review (/metrics) ---- */
.view__stamp { font: 500 .74rem Azeret, monospace; color: rgba(232, 238, 242, .6); align-self: center; }
.period { display: flex; flex-wrap: wrap; gap: 8px; }
.period .btn { min-height: 36px; padding: 0 14px; font-size: .9rem; }
.btn.is-on { background: rgba(232, 238, 242, .12); color: var(--glass); }

/* funnel bars: width is a custom property, label and count are text, no gridlines */
.funnel { list-style: none; margin: 0; padding: 0; }
.funnel__seg { margin: 0 0 6px; font: 500 .72rem Azeret, monospace; color: rgba(232, 238, 242, .6); }
.panel > p.funnel__seg { font-size: .72rem; color: rgba(232, 238, 242, .6); margin: 0 0 6px; }
.funnel__seam, .panel > p.funnel__seam { margin: 10px 0 6px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: .84rem; color: var(--glass-2); }
.funnel__row { display: grid; grid-template-columns: 13rem minmax(0, 1fr) 3.5rem; align-items: center; gap: 4px 14px; padding: 7px 0; }
.funnel__name { min-width: 0; font-size: .92rem; color: var(--glass); }
.funnel__of { display: block; font: 400 .74rem Azeret, monospace; color: rgba(232, 238, 242, .6); }
.funnel__name .tag { margin-top: 4px; }
.funnel__count { font-variant-numeric: tabular-nums; font-size: 1.05rem; color: var(--glass); white-space: nowrap; text-align: right; }
.bar { position: relative; display: block; height: 14px; border-radius: 3px; background: rgba(232, 238, 242, .06); }
.bar__fill { position: absolute; inset: 0 auto 0 0; width: max(var(--w, 0%), 2px); border-radius: 3px; background: rgba(232, 238, 242, .55); }
.funnel__row--leak .bar__fill { background: var(--changed); }
.funnel__row--na .bar__fill { background: transparent; border: 1px dashed var(--line); }
.funnel__row--na .funnel__count { color: rgba(232, 238, 242, .6); }
.tag--leak { color: var(--changed); border-color: rgba(233, 180, 95, .55); }

/* delta chip: one neutral style, sign carried by the text, never a colour */
.delta { display: inline-block; margin-left: 10px; padding: 1px 7px; border-radius: 4px; border: 1px solid var(--line); font: 500 .7rem Azeret, monospace; letter-spacing: 0; color: var(--glass-2); vertical-align: middle; white-space: nowrap; }
.delta--tiny { color: rgba(232, 238, 242, .6); border-style: dashed; }

/* counts line: visible definition under every number */
.stat__counts, .panel > p.stat__counts { display: block; margin: 6px 0 0; font: 400 .74rem Azeret, monospace; color: rgba(232, 238, 242, .6); }
.stat__counts::before { content: 'counts: '; color: rgba(232, 238, 242, .5); }
.stat--hero { grid-column: 1 / -1; }
.stat--hero .stat__value { font-size: 2.8rem; }

/* sparkline: inline SVG, 72x20; daily bars for 7 points, a polyline for 30 */
.spark { display: block; width: 72px; height: 20px; margin-top: 10px; overflow: visible; }
.spark polyline { fill: none; stroke: rgba(232, 238, 242, .7); stroke-width: 1.5; stroke-linejoin: round; }
.spark rect { fill: rgba(232, 238, 242, .55); }
.spark rect.is-today { fill: var(--added); }

/* readout */
.readout, .panel > p.readout { margin: 0; font-size: 1.02rem; line-height: 1.6; color: var(--glass); max-width: 60rem; }
.readout__next, .panel > p.readout__next { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: .95rem; color: var(--glass-2); max-width: 60rem; }
.readout__next b { font-weight: 500; color: var(--glass); }
.adv__title { margin: 6px 0 0; font: 500 .9rem/1.3 Archivo, sans-serif; color: var(--glass); }
.review .list-rows small { overflow-wrap: anywhere; }

@media (max-width: 860px) {
  .funnel__row { grid-template-columns: minmax(0, 1fr) auto; }
  .funnel__row .bar { grid-column: 1 / -1; grid-row: 2; }
  .stat--hero .stat__value { font-size: 2.2rem; }
  .view__stamp { flex-basis: 100%; }
}
/* the account list stays one compact block per account on phones: name, then the numbers in a wrapping row */
@media (max-width: 760px) {
  .table--accounts tr { display: flex; flex-wrap: wrap; gap: 2px 14px; }
  .table--accounts th { flex-basis: 100%; }
  .table--accounts td { width: auto; }
}

/* Onboarding: where you use Bilinc, then numbered steps for that app. */
.picker { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 18px; }
.picker__item { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; color: var(--glass-2); font-size: .86rem; text-decoration: none; transition: border-color .15s, background-color .15s; }
.picker__item b { color: var(--glass); font-weight: 500; font-size: 1rem; }
.picker__item:hover { border-color: rgba(232, 238, 242, .35); }
.picker__item[aria-current] { border-color: rgba(92, 225, 230, .6); background: rgba(92, 225, 230, .06); }
.picker__item[aria-current] b::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--added); vertical-align: middle; }
.howto { list-style: none; counter-reset: howto; margin: 0; padding: 0; display: grid; gap: 16px; }
.howto li { counter-increment: howto; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 6px 10px; }
.howto li::before { content: counter(howto, decimal-leading-zero); font: 500 .72rem Azeret, monospace; color: var(--added); padding-top: .25em; }
.howto li > * { grid-column: 2; margin: 0; }
.seen { list-style: none; margin: 0 0 1em; padding: 0; display: grid; gap: 6px; }
.seen li { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: .9rem; color: var(--glass-2); }
.seen b { color: var(--glass); font-weight: 500; }
@media (max-width: 860px) { .picker { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .picker__item { transition: none; } }
/* Memory browser: who saved each memory stays on one line on wide screens. */
.mem__table td[data-label="Saved by"] { white-space: nowrap; }
@media (max-width: 760px) { .mem__table td[data-label="Saved by"] { white-space: normal; } }
/* Credit warnings: the .next block in the plan's own states (the tag and title carry it, not colour alone). */
.next--warning { border-left-color: var(--changed); background: rgba(233, 180, 95, .07); }
.next--warning .next__tag { color: var(--changed); }
.next--stopped { border-left-color: var(--removed); background: rgba(255, 107, 87, .08); }
.next--stopped .next__tag { color: #ffc7bd; }


/* ---- motion pass (2026-10-23) ----------------------------------------------------------------
   Patterns after Kokonut UI (Morph Popover, Hold), transitions.dev (Modal, Error state shake,
   Skeleton reveal, Checkbox check, Tabs sliding, Toast, Success check), vibeprompts (JSON tree,
   connect-your-stack, consent scopes, one-time key reveal, empty states), Beautiful UI (Code Block
   diff, Filter Table chips, Sidebar Nav) and Wensity UI (Activity Grid), rebuilt in the night
   palette. Under reduced motion every one rests at its final state. */

/* confirm dialogs scale in and out; a failed confirmation shakes once */
.dialog[data-state="open"] { animation: dialog-in .2s cubic-bezier(.2, .8, .2, 1); }
.dialog[data-state="open"]::backdrop { animation: backdrop-in .2s ease-out; }
.dialog.is-shaking { animation: dialog-shake .42s cubic-bezier(.36, .07, .19, .97); }
.dialog[data-state="closing"] { animation: dialog-out .15s ease-in forwards; pointer-events: none; }
.dialog[data-state="closing"]::backdrop { animation: backdrop-out .15s ease-in forwards; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(8px) scale(.97); } }
@keyframes dialog-out { to { opacity: 0; transform: translateY(4px) scale(.98); } }
@keyframes backdrop-in { from { opacity: 0; } }
@keyframes backdrop-out { to { opacity: 0; } }
@keyframes dialog-shake { 15%, 85% { transform: translateX(-2px); } 30%, 70% { transform: translateX(4px); } 45%, 55% { transform: translateX(-6px); } 50% { transform: translateX(6px); } }

/* "Create checkpoint" opens into its form, its words becoming the title */
.morph-anchor { margin: 0 0 16px; }
.morph-anchor[hidden], .morph[hidden] { display: none !important; }
.morph { padding: 14px 16px 16px; border: 1px solid rgba(92, 225, 230, .35); border-radius: 12px; background: rgba(92, 225, 230, .04); transform-origin: 0 0; animation: morph-open .28s cubic-bezier(.2, .8, .2, 1); }
.morph__title { grid-column: 1 / -1; margin: 0 !important; font: 500 .95rem Archivo, sans-serif; color: var(--glass) !important; animation: morph-title .32s cubic-bezier(.2, .8, .2, 1); }
@keyframes morph-open { from { opacity: .4; clip-path: inset(0 calc(100% - 11rem) calc(100% - 42px) 0 round 6px); } to { clip-path: inset(0 round 12px); } }
@keyframes morph-title { from { transform: translateY(14px); opacity: .6; } }

/* a page loading: its shape, with one slow sweep of light */
.skeleton { display: grid; gap: 24px; }
.skeleton__head { display: grid; gap: 10px; }
.skeleton__panel { display: grid; gap: 14px; }
.skeleton__line { position: relative; display: block; height: 12px; border-radius: 4px; background: rgba(232, 238, 242, .07); overflow: hidden; }
.skeleton__line--title { width: 34%; height: 26px; }
.skeleton__line--lede { width: 58%; }
.skeleton__line--head { width: 22%; height: 16px; }
.skeleton__line--short { width: 46%; }
.skeleton__line::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(232, 238, 242, .09) 50%, transparent 80%); transform: translateX(-100%); animation: skeleton-sweep 1.6s ease-in-out infinite; }
@keyframes skeleton-sweep { to { transform: translateX(100%); } }

/* setup steps: a done step's check; one done in the last few minutes draws itself as the page opens */
.task[data-done] .task__mark { display: grid; place-items: center; border: 0; background: var(--added); box-shadow: none; }
.task__mark svg { width: 14px; height: 14px; fill: none; stroke: #062a2d; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.task[data-fresh] .task__mark { animation: mark-pop .3s cubic-bezier(.2, .8, .2, 1) .15s both; }
.task[data-fresh] .task__mark path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: mark-draw .45s ease-out .4s forwards; }
@keyframes mark-pop { from { transform: scale(.4); opacity: 0; } }
@keyframes mark-draw { to { stroke-dashoffset: 0; } }

/* the sidebar's current-page bar glides to the next page */
.side nav { position: relative; }
.side nav[data-glide] a[aria-current="page"]::before { display: none; }
.side__marker { position: absolute; left: -14px; top: 0; width: 2px; background: var(--added); pointer-events: none; }
.side__marker[data-moved] { transition: transform .32s cubic-bezier(.2, .8, .2, 1), height .32s cubic-bezier(.2, .8, .2, 1); }

/* notices rise in (transitions.dev Toast) */
[role="status"] > .form__msg, .form__msg[role="status"], .note[role="status"] { animation: toast-in .32s cubic-bezier(.2, .8, .2, 1); }
@keyframes toast-in { from { opacity: 0; transform: translateY(6px) scale(.98); filter: blur(3px); } }
.empty a { color: var(--glass); }

/* a copy button's check draws itself */
.copy__check { width: 11px; height: 11px; margin-right: 5px; vertical-align: -1px; fill: none; stroke: var(--added); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.copy__check path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: mark-draw .35s ease-out forwards; }

/* a changed value as a two-line diff; full values open as a tree */
.vdiff { display: grid; gap: 2px; }
.vdiff__line { display: block; padding: 2px 8px 2px 22px; border-radius: 4px; text-decoration: none; overflow-wrap: anywhere; position: relative; }
.vdiff__line--old { background: rgba(255, 107, 87, .08); color: rgba(255, 199, 189, .9); }
.vdiff:not(.vdiff--full) .vdiff__line--old { text-decoration: line-through; text-decoration-thickness: 1px; text-decoration-color: rgba(255, 107, 87, .6); }
.vdiff__line--new { background: rgba(92, 225, 230, .08); color: var(--glass); }
.vdiff__sign { position: absolute; left: 8px; top: 2px; font-family: Azeret, monospace; font-weight: 500; text-decoration: none; display: inline-block; }
.vdiff__line--old .vdiff__sign { color: var(--removed); }
.vdiff__line--new .vdiff__sign { color: var(--added); }
.jtree summary { cursor: pointer; font: 500 .8rem Azeret, monospace; color: var(--glass-2); }
.jtree summary:hover { color: var(--glass); }
.jtree ul { list-style: none; margin: 2px 0 2px 6px; padding: 0 0 0 12px; border-left: 1px dashed var(--line); display: grid; gap: 2px; }
.jtree__k { font: 500 .8rem Azeret, monospace; color: rgba(232, 238, 242, .7); }
.jtree__colon { color: rgba(232, 238, 242, .5); }
.jv--string { white-space: pre-wrap; }
.jv--number, .jv--boolean { color: var(--glass); font-family: Azeret, monospace; font-size: .86em; }
.jv--null { color: rgba(232, 238, 242, .55); font-family: Azeret, monospace; font-size: .86em; }
.jtree__more { font-size: .82rem; color: rgba(232, 238, 242, .6); }
/* inside a history timeline, a tree's rows are rows, not more points on the timeline */
.hist .jtree li { padding: 0; }
.hist .jtree li::before { content: none; }
.mem__side { animation: side-in .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes side-in { from { opacity: 0; transform: translateX(10px); } }

/* memory filters as chips */
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 10px; }
.chips__label { margin-right: 4px; font: 500 .72rem Azeret, monospace; color: rgba(232, 238, 242, .6); }
.chipf { padding: 4px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--glass-2); text-decoration: none; font-size: .86rem; transition: border-color .15s, background-color .15s, color .15s; }
.chipf:hover { border-color: rgba(232, 238, 242, .4); color: var(--glass); }
.chipf[aria-current="true"] { border-color: rgba(92, 225, 230, .6); background: rgba(92, 225, 230, .08); color: var(--glass); }

/* onboarding: each app's real state, and one outline sliding to the chosen app */
.picker { position: relative; }
.picker__state { display: block; margin-top: 4px; font: 500 .72rem Azeret, monospace; color: var(--added); }
.picker[data-glide] .picker__item[aria-current] { border-color: transparent; }
.picker__glide { position: absolute; left: 0; top: 0; border: 1px solid rgba(92, 225, 230, .6); border-radius: 10px; background: rgba(92, 225, 230, .06); pointer-events: none; }
.picker__glide[data-moved] { transition: transform .32s cubic-bezier(.2, .8, .2, 1), width .32s cubic-bezier(.2, .8, .2, 1), height .32s cubic-bezier(.2, .8, .2, 1); }
.picker__item { position: relative; }

/* consent: what the chosen level lets the app do, tool by tool */
.access__tools ul { list-style: none; padding-left: 0; }
.access__tools li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.access__tools code { font: 500 .78rem Azeret, monospace; color: var(--glass); }
.access__changes { padding: 0 6px; border: 1px solid rgba(233, 180, 95, .55); border-radius: 4px; font: 500 .66rem Azeret, monospace; color: var(--changed); }

/* a secret shown once: masked until shown */
.reveal__key[data-masked] { letter-spacing: .04em; color: var(--glass-2); }
.reveal__saved { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 4px 0 8px; }

/* operations per day */
.ugrid { margin: 0; }
.ugrid__body { position: relative; display: flex; gap: 8px; padding: 4px 0 6px; }
.ugrid__days { display: grid; grid-template-rows: repeat(7, 13px); gap: 3px; font: 500 .62rem Azeret, monospace; color: rgba(232, 238, 242, .5); }
.ugrid__days span { line-height: 13px; }
.ugrid__weeks { display: flex; gap: 3px; }
.ugrid__week { display: grid; grid-template-rows: repeat(7, 13px); gap: 3px; }
.ugrid__cell { display: block; width: 13px; height: 13px; border-radius: 3px; background: rgba(232, 238, 242, .06); }
.ugrid__weeks .ugrid__cell { animation: cell-in .3s ease-out calc(var(--ago, 0) * 7ms) both; }
.ugrid__cell--out { background: none; }
.ugrid__cell[data-level="1"] { background: rgba(92, 225, 230, .25); }
.ugrid__cell[data-level="2"] { background: rgba(92, 225, 230, .45); }
.ugrid__cell[data-level="3"] { background: rgba(92, 225, 230, .7); }
.ugrid__cell[data-level="4"] { background: var(--added); }
.ugrid__tip { position: absolute; left: 0; top: 0; z-index: 2; margin: -30px 0 0; padding: 3px 8px; border: 1px solid var(--line); border-radius: 6px; background: #0b1120; font: 500 .72rem Azeret, monospace; color: var(--glass); white-space: nowrap; pointer-events: none; translate: -50% 0; transition: transform .12s ease-out; }
.ugrid__cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-top: 8px; font-size: .86rem; color: var(--glass-2); }
.ugrid__scale { display: inline-flex; align-items: center; gap: 3px; font: 500 .68rem Azeret, monospace; color: rgba(232, 238, 242, .55); }
.ugrid__scale .ugrid__cell { width: 11px; height: 11px; }
@keyframes cell-in { from { opacity: 0; transform: scale(.5); } }

@media (prefers-reduced-motion: reduce) {
  .dialog[data-state], .dialog[data-state]::backdrop, .dialog.is-shaking, .morph, .morph__title, .task[data-fresh] .task__mark,
  [role="status"] > .form__msg, .form__msg[role="status"], .note[role="status"], .mem__side, .ugrid__weeks .ugrid__cell { animation: none !important; }
  .task[data-fresh] .task__mark path, .copy__check path { animation: none !important; stroke-dashoffset: 0 !important; }
  .skeleton__line::after { animation: none; display: none; }
  .side__marker[data-moved], .picker__glide[data-moved], .ugrid__tip, .chipf { transition: none !important; }
}
