/* Sotto -- the front page and the organiser's desk (#614; the #818 design since #828). Built only
   from tokens.css. The desk is views drawn by admin.js inside #desk; on a wide screen its
   navigation is a rail on the left, on a phone a bar at the bottom. One primary action per view. */

/* ---------------------------------------------------------------- the front page */
.page-front { padding-bottom: 0; }
.page-front > main#front { justify-content: flex-start; padding: 0; max-width: none; }
/* #840: a browser that was signed in last time never paints the front page first: theme.js sets
   .desk-pending before the first paint, admin.js lifts it once /me has answered (the desk, or the
   front page if the session is gone). Only the quiet top bar shows for that moment. */
html.desk-pending #front, html.desk-pending .front-foot { visibility: hidden; }
.tag {
  color: var(--ink-3); font-size: var(--t-2xs); font-weight: var(--w-medium); letter-spacing: var(--track-wide); text-transform: uppercase;
}
.hero {
  display: grid; gap: var(--s-7); align-items: center; width: 100%; max-width: 1200px; margin: 0 auto;
  padding: var(--s-6) 0 var(--s-10);
}
@media (min-width: 900px) { .hero { grid-template-columns: 1fr 1.05fr; min-height: calc(100dvh - 96px); padding-bottom: var(--s-9); } }
.hero-text { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-5); }
.hero h1 { font-size: var(--t-4xl); font-weight: var(--w-heavy); line-height: var(--lh-tight); max-width: 11ch; text-wrap: balance; }
.hero-lead { font-size: var(--t-lg); color: var(--ink-2); line-height: var(--lh-snug); max-width: 26ch; text-wrap: balance; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 var(--s-3);
  border-radius: var(--r-pill); background: var(--fill-1); color: var(--ink-2);
  font-size: var(--t-xs); font-weight: var(--w-medium); white-space: nowrap; letter-spacing: 0; text-transform: none;
}
.chip .ic { width: 16px; height: 16px; }
.chip-warn { background: var(--warn-soft); color: var(--warn-text); }

/* the round table: five seats, each with its key; one voice at a time (front.js) */
.av {
  --tint: var(--p1); --sz: var(--avatar);
  position: relative; display: inline-grid; place-items: center; flex: none;
  width: var(--sz); height: var(--sz); border-radius: 50%;
  background: color-mix(in oklab, var(--tint) 26%, var(--surface));
  color: color-mix(in oklab, var(--tint) 55%, var(--ink));
  font-weight: var(--w-bold); font-size: calc(var(--sz) * 0.36); letter-spacing: -0.02em;
}
.t1 { --tint: var(--p1); } .t2 { --tint: var(--p2); } .t3 { --tint: var(--p3); }
.t4 { --tint: var(--p4); } .t5 { --tint: var(--p5); } .t6 { --tint: var(--p6); }
.table { position: relative; width: min(100%, 500px); aspect-ratio: 1; margin: 0 auto; }
.table-top { position: absolute; inset: 25%; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line); display: grid; place-items: center; }
.table-top .ic { width: 38%; height: 38%; color: var(--ink); }
.table-waves { position: absolute; inset: 25%; border-radius: 50%; }
.table-waves i { position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--accent); opacity: 0; animation: ripple 2.4s var(--ease-out) 1 both; }
.table-waves i:nth-child(2) { animation-delay: 0.5s; }
.table-waves i:nth-child(3) { animation-delay: 1s; }
.seat { --a: 0deg; position: absolute; left: 50%; top: 50%; width: 19%; aspect-ratio: 1; margin: -9.5%; transform: rotate(var(--a)) translateY(-196%) rotate(calc(-1 * var(--a))); }
.seat > * { animation: pop var(--d-4) var(--ease-spring) both; }
.seat-1 { --a: 0deg; } .seat-2 { --a: 72deg; } .seat-3 { --a: 144deg; } .seat-4 { --a: 216deg; } .seat-5 { --a: 288deg; }
.seat-2 > * { animation-delay: 0.08s; } .seat-3 > * { animation-delay: 0.16s; } .seat-4 > * { animation-delay: 0.24s; } .seat-5 > * { animation-delay: 0.32s; }
.seat .seat-talk { animation: none; }
.seat .av { --sz: 100%; width: 100%; height: 100%; font-size: clamp(14px, 3vw, 24px); box-shadow: var(--shadow-1); }
.seat .key { position: absolute; right: -6%; bottom: -6%; width: 40%; height: 40%; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; box-shadow: 0 0 0 3px var(--bg); }
.seat .key .ic { width: 60%; height: 60%; }
.seat.is-speaking .av { box-shadow: 0 0 0 4px var(--bg), 0 0 0 7px var(--warm-bright); }
.seat-talk { position: absolute; inset: -14%; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--warm-bright); opacity: 0; }
.seat.is-speaking .seat-talk { animation: ripple 1.6s var(--ease-out) infinite; }

/* the story: real pieces of the product, each a captioned object */
.story { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 0 var(--s-9); display: grid; gap: var(--s-4); }
@media (min-width: 900px) { .story { grid-template-columns: repeat(3, 1fr); } }
.thing { position: relative; display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-5); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-1); overflow: hidden; }
.thing-wide { display: grid; gap: var(--s-4); align-items: center; }
@media (min-width: 900px) { .thing-wide { grid-column: 1 / -1; grid-template-columns: 1fr 1.4fr; } }
.thing-stage { position: relative; height: 200px; border-radius: var(--r-lg); background: var(--bg-sunken); display: grid; place-items: center; overflow: hidden; margin-bottom: var(--s-1); }
.thing-cap { font-size: var(--t-lg); font-weight: var(--w-bold); letter-spacing: -0.01em; }
.thing-sub { color: var(--ink-2); font-size: var(--t-sm); }
.thing-wide .thing-sub { margin-top: var(--s-2); }
.mini { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-1); font-size: var(--t-xs); text-align: left; }
.mini-h { display: flex; align-items: center; gap: 6px; font-weight: var(--w-bold); color: var(--ink); }
.mini-h .ic { width: 16px; height: 16px; color: var(--accent); }
.mini-l { display: flex; align-items: center; gap: 8px; color: var(--ink-2); white-space: nowrap; }
.mini-l .ic { width: 15px; height: 15px; color: var(--ok); flex: none; }
.mini .chip { min-height: 24px; align-self: flex-start; }
.o-phones { display: flex; align-items: center; gap: var(--s-4); }
.o-phone { width: 112px; height: 168px; border-radius: 22px; padding: 14px 10px; background: var(--surface); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; font-size: var(--t-xs); font-weight: var(--w-medium); }
.o-phone .av { --sz: 40px; }
.o-phone-yes { padding: 5px 10px; border-radius: var(--r-pill); background: var(--accent); color: var(--accent-ink); font-size: var(--t-2xs); }
.o-phone-other { position: relative; color: var(--ink-2); }
.o-phone-other .ic { width: 30px; height: 30px; }
.o-phone-no { position: absolute; top: -8px; right: -8px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--rec); color: var(--rec-ink); box-shadow: 0 0 0 3px var(--bg-sunken); animation: pop var(--d-3) var(--ease-spring) 0.6s both; }
.o-phone-no .ic { width: 16px; height: 16px; }
.o-keys { display: flex; align-items: center; gap: var(--s-3); }
.o-keys .scr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 10px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); }
.o-keys .scr span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--fill-1); font-size: var(--t-lg); font-weight: var(--w-heavy); font-variant-numeric: tabular-nums; }
.o-keys .eq { color: var(--ok); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ok-soft); animation: pop var(--d-3) var(--ease-spring) 0.6s both; }
.o-keys .eq .ic { width: 18px; height: 18px; }
.o-sum, .o-wipe { width: min(250px, 86%); }
.o-wipe .mini-body { display: flex; flex-direction: column; gap: 8px; animation: fade-out var(--d-5) var(--ease-in) 0.8s both; }
@keyframes fade-out { from { opacity: 1; transform: none; } to { opacity: 0.22; transform: scale(0.97); } }

/* #720: what the host sees, the VPN guess, the opt-in journal -- one fold on the front page */
.security { width: 100%; max-width: 1200px; margin: 0 auto var(--s-9); }
.sec-more { border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-1); }
.sec-more summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: var(--s-3); min-height: 64px; padding: var(--s-3) var(--s-5);
  border-radius: var(--r-xl);
}
.sec-more summary::-webkit-details-marker { display: none; }
.sec-more summary > .ic { color: var(--accent); }
.security-title { flex: 1; font-size: var(--t-lg); font-weight: var(--w-bold); }
.sec-chev { color: var(--ink-3); transition: transform var(--d-2) var(--ease-out); }
.sec-more[open] .sec-chev { transform: rotate(180deg); }
.facts { list-style: none; margin: 0; padding: 0 var(--s-5) var(--s-4); display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.facts h3 { font-size: var(--t-md); margin-bottom: var(--s-2); }
.facts p { color: var(--ink-2); font-size: var(--t-xs); line-height: 1.55; }
.facts p + p { margin-top: var(--s-2); }
.credit { padding: 0 var(--s-5) var(--s-5); color: var(--ink-3); font-size: var(--t-2xs); }
.credit a, .net-credit a { color: var(--ink-2); text-underline-offset: 2px; }

.front-foot {
  width: 100%; max-width: 1200px; margin: 0 auto; padding: var(--s-6) 0 calc(var(--s-7) + env(safe-area-inset-bottom));
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3) var(--s-4);
  border-top: 1px solid var(--line); color: var(--ink-2);
}
.foot-name { flex-basis: 100%; font-weight: var(--w-heavy); font-size: var(--t-sm); letter-spacing: -0.01em; color: var(--ink-2); }
.door { display: flex; gap: var(--s-2); align-items: center; font-size: var(--t-sm); }
.door .ic { width: 20px; height: 20px; color: var(--ink-3); }
.front-doors { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.btn-ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); }
body:has(#desk:not([hidden])) .front-foot { display: none; }

/* ---------------------------------------------------------------- the desk's navigation */
.desk-nav { display: flex; gap: var(--s-2); }
.nav-btn {
  appearance: none; border: 0; cursor: pointer; width: 48px; height: 48px; padding: 0; border-radius: var(--r-pill);
  display: inline-grid; place-items: center; background: transparent; color: var(--ink-2); position: relative;
}
.nav-btn .ic { width: 22px; height: 22px; position: relative; transition: transform var(--ui-d) var(--ease-spring); }
.nav-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* #840: the rail's buttons move like the rest -- a layer under the icon fades and settles in on
   hover (opacity + scale), the current page's plate grows in, the icon lifts and a press sinks it. */
.nav-btn { -webkit-tap-highlight-color: transparent; transition: transform var(--ui-press) var(--ui-ease); }
.nav-btn::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--fill-1); opacity: 0; transform: scale(0.82);
  transition: opacity var(--ui-d) var(--ui-ease), transform var(--ui-d) var(--ui-ease); }
.nav-btn:hover { color: var(--ink); }
@media (hover: hover) { .nav-btn:hover::before { opacity: 1; transform: none; } .nav-btn:hover .ic { transform: translateY(-1px); } }
.nav-btn:active { transform: scale(0.92); }
.nav-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.nav-btn[aria-current="page"] { color: var(--ink); }
.nav-btn[aria-current="page"]::before { background: var(--surface); box-shadow: var(--shadow-1); opacity: 1; transform: none; }
.nav-new { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 0 var(--accent-soft); }
.nav-new::before { background: var(--accent-ink); }
.nav-new:hover { color: var(--accent-ink); }
@media (hover: hover) { .nav-new:hover::before { opacity: 0.14; } .nav-new:hover .ic { transform: rotate(90deg); } }
.nav-new[aria-current="page"] { color: var(--accent-ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.nav-new[aria-current="page"]::before { opacity: 0; box-shadow: none; }
/* A wide screen: the header becomes a rail on the left while the desk is open. */
@media (min-width: 900px) {
  body:has(#desk-nav:not([hidden])) .page-front { padding-left: calc(88px + var(--gutter)); }
  body:has(#desk-nav:not([hidden])) .page-front > .topbar {
    position: fixed; z-index: 5; left: 0; top: 0; bottom: 0; width: 88px; max-width: none; margin: 0;
    flex-direction: column; justify-content: flex-start; gap: var(--s-6); padding: calc(var(--s-4) + env(safe-area-inset-top)) 0 var(--s-5);
    background: var(--bg-sunken);
  }
  body:has(#desk-nav:not([hidden])) .page-front > .topbar .wordmark { font-size: 0; gap: 0; }
  body:has(#desk-nav:not([hidden])) .desk-nav { flex-direction: column; gap: var(--s-3); flex: 1; }
}
/* A phone: a bar at the bottom, the theme button stays at the top. */
@media (max-width: 899px) {
  body:has(#desk-nav:not([hidden])) .page-front { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  body:has(#desk-nav:not([hidden])) .desk-nav {
    position: fixed; z-index: 5; left: 0; right: 0; bottom: 0; justify-content: space-around;
    padding: var(--s-2) var(--s-4) calc(var(--s-2) + env(safe-area-inset-bottom));
    background: var(--glass); box-shadow: 0 -1px 0 var(--line); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  }
  .nav-btn { width: 56px; height: 56px; }
}

/* ---------------------------------------------------------------- the desk */
.page > main.desk { justify-content: flex-start; padding: var(--s-6) 0 var(--s-9); max-width: 1120px; margin: 0; }
.desk h1 { font-size: var(--t-3xl); line-height: var(--lh-tight); overflow-wrap: anywhere; letter-spacing: -0.02em; }
.desk h1:focus { outline: none; }
.desk .lead { margin-top: var(--s-3); color: var(--ink-2); font-size: var(--t-sm); max-width: 60ch; overflow-wrap: anywhere; }
.desk .eyebrow { color: var(--ink-3); font-size: var(--t-2xs); font-weight: var(--w-medium); letter-spacing: var(--track-wide); text-transform: uppercase; margin-bottom: var(--s-2); }
.desk-card { margin-top: var(--s-5); max-width: 560px; }
.desk-card .actions + .actions { margin-top: var(--s-3); }
.desk-card h1 { font-size: var(--t-2xl); }
.desk-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); }
.desk-me { margin-top: var(--s-3); }
.desk button:focus-visible, .desk a:focus-visible, .desk summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* the match code: the figures he compares with the bot's, each in its own tile */
.match {
  margin-top: var(--s-5); color: var(--ink); font-size: var(--t-code); font-weight: var(--w-heavy);
  letter-spacing: 0.24em; font-variant-numeric: tabular-nums; line-height: 1.1;
}
.wait-state { margin-top: var(--s-4); display: flex; align-items: center; gap: var(--s-2); }
.wait-state::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: dotwave 1.4s var(--ease-move) infinite; }

/* notes */
.desk-note { margin: var(--s-4) 0 0; padding: var(--s-3) var(--s-4); border-radius: var(--r-md); background: var(--surface); color: var(--ink); font-size: var(--t-sm); box-shadow: var(--shadow-1); }
.desk-note.is-error { box-shadow: var(--shadow-1), inset 0 0 0 2px var(--rec); }
.desk-note.is-ok { box-shadow: var(--shadow-1), inset 0 0 0 2px var(--ok); }
.desk-flash { margin: 0 0 var(--s-4); }

/* the offer of a passkey */
.offer {
  margin-top: var(--s-5); padding: var(--s-4) var(--s-5); border-radius: var(--r-xl);
  background: var(--accent-soft); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3);
}
.offer-text { color: var(--ink); font-weight: var(--w-medium); }
.offer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }

/* the meetings: one card each; the one under way carries the voice's edge */
.rooms { list-style: none; margin: var(--s-5) 0 0; padding: 0; display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.room-row {
  appearance: none; border: 0; cursor: pointer; width: 100%; height: 100%; text-align: left; display: grid; gap: var(--s-1); align-content: start;
  padding: var(--s-5); border-radius: var(--r-xl); background: var(--surface); color: var(--ink-2); box-shadow: var(--shadow-1);
  font: inherit; min-height: 44px; transition: transform var(--d-1) var(--ease-out);
}
.room-row:active { transform: scale(0.98); }
.room-row:has(.is-live) { box-shadow: var(--shadow-1), inset 0 0 0 2px var(--accent); }
.room-when { color: var(--ink); font-size: var(--t-lg); font-weight: var(--w-heavy); font-variant-numeric: tabular-nums; }
.room-title { color: var(--ink); font-weight: var(--w-bold); font-size: var(--t-lg); overflow-wrap: anywhere; line-height: var(--lh-snug); }
.room-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-2); color: var(--ink-2); font-size: var(--t-xs); margin-top: var(--s-2); }
.chip.is-live { background: var(--rec-soft); color: var(--rec-text); }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rec); }
.chip.is-scheduled { background: var(--accent-soft); color: var(--accent-text); }
.empty { margin-top: var(--s-6); padding: var(--s-7) var(--s-6); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-1); text-align: center; }
.empty p:first-child { color: var(--ink); font-size: var(--t-lg); font-weight: var(--w-bold); }
.empty .hint { margin-top: var(--s-2); }
.recent { margin-top: var(--s-6); }
.recent summary {
  cursor: pointer; list-style: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-4);
  border-radius: var(--r-pill); background: var(--fill-1); color: var(--ink); font-weight: var(--w-medium); font-size: var(--t-sm);
}
.recent summary::-webkit-details-marker { display: none; }
.recent[open] summary { background: var(--fill-2); }

/* forms: one card per question, the whole form in two columns on a wide screen */
.desk-form .lead { margin-bottom: var(--s-2); }
.form-grid { display: grid; gap: var(--s-4); margin-top: var(--s-5); }
@media (min-width: 900px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.form-block {
  border: 0; margin: 0; min-width: 0; padding: var(--s-5); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-1);
  display: grid; gap: var(--s-4); align-content: start;
}
.form-block + .form-block { margin-top: 0; }
.block-title { padding: 0; float: left; width: 100%; color: var(--ink); font-size: var(--t-lg); font-weight: var(--w-bold); }
.block-title + * { clear: both; }
.field-group { display: grid; gap: var(--s-2); min-width: 0; }
.field:disabled { color: var(--ink-3); background: var(--bg-sunken); }
textarea.field { resize: vertical; min-height: 88px; }
.field-num { max-width: 120px; }
.inline { display: flex; gap: var(--s-2); min-width: 0; }
.inline .field { flex: 1 1 auto; min-width: 0; }
.form-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-5); }
.form-actions .btn-primary { min-width: 200px; }
.form-block .form-actions { margin-top: 0; }

/* segmented choice: a sliding pill on a quiet track */
.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: var(--r-pill); background: var(--fill-1); justify-self: start; max-width: 100%; }
.seg-opt { position: relative; display: inline-flex; }
.seg-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg-opt span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-4); border-radius: var(--r-pill);
  color: var(--ink-2); font-weight: var(--w-medium); font-size: var(--t-sm); cursor: pointer;
}
.seg-opt input:checked + span { background: var(--ink); color: var(--bg); }
.seg-opt input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }

/* people as avatar chips */
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chips:empty { display: none; }
.chip-person {
  display: inline-flex; align-items: center; gap: var(--s-1); min-height: 44px; padding: 0 var(--s-1) 0 var(--s-4);
  border-radius: var(--r-pill); background: var(--accent-soft); color: var(--ink); font-weight: var(--w-medium); max-width: 100%;
}
.chip-person span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip-x {
  appearance: none; border: 0; cursor: pointer; width: 44px; height: 44px; flex: none; border-radius: 50%;
  background: transparent; color: var(--ink-2); font-size: var(--t-lg); line-height: 1;
}
.chip-x { transition: transform var(--ui-press) var(--ui-ease), opacity var(--ui-d) var(--ui-ease); }
.chip-x:hover { color: var(--ink); background: var(--fill-1); }
.chip-x:active { transform: scale(0.88); }
.chip-person { animation: chip-in var(--d-3) var(--ease-spring) both; }
@keyframes chip-in { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: none; } }

/* links with a copy button */
.desk-created h1 { margin-top: 0; }
.links { list-style: none; margin: var(--s-5) 0 var(--s-4); padding: 0; display: grid; gap: var(--s-2); }
.link-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2) var(--s-4);
  padding: var(--s-3) var(--s-3) var(--s-3) var(--s-5); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-1);
}
.link-who { display: grid; min-width: 0; }
.link-name { color: var(--ink); font-weight: var(--w-bold); overflow-wrap: anywhere; }
.link-acts { display: flex; gap: var(--s-2); }
.desk-created .hint + .hint { margin-top: var(--s-2); }

/* one meeting: the tools in one capsule, the people and the agenda as cards */
.back { padding: 0 var(--s-3); margin-bottom: var(--s-4); justify-self: start; text-decoration: none; border-radius: var(--r-pill); background: var(--fill-1); color: var(--ink); }
.room-head .eyebrow { text-transform: none; letter-spacing: 0; font-size: var(--t-xs); }
.room-tools {
  display: inline-flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-5); padding: var(--s-2);
  border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-2);
}
.links-box:empty { display: none; }
.room-grid { display: grid; gap: var(--s-4); margin-top: var(--s-5); }
.room-grid > div { display: grid; gap: var(--s-4); align-content: start; min-width: 0; }
@media (min-width: 900px) { .room-grid { grid-template-columns: 3fr 2fr; } }
.people-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-1); }
.people-list .person { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); min-height: 52px; padding: var(--s-1) 0; }
.disc {
  --tint: var(--p2);
  flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: color-mix(in oklab, var(--tint) 26%, var(--surface)); color: color-mix(in oklab, var(--tint) 55%, var(--ink));
  font-weight: var(--w-bold); font-size: var(--t-sm);
}
.people-list > li:nth-child(6n+1) .disc { --tint: var(--p1); }
.people-list > li:nth-child(6n+3) .disc { --tint: var(--p3); }
.people-list > li:nth-child(6n+4) .disc { --tint: var(--p4); }
.people-list > li:nth-child(6n+5) .disc { --tint: var(--p5); }
.people-list > li:nth-child(6n) .disc { --tint: var(--p6); }
.disc:not(.is-out) { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent); }
.disc.is-out { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-strong); color: var(--ink-2); }
.person-who { display: grid; flex: 1 1 140px; min-width: 0; }
.people-list .person-name { color: var(--ink); font-weight: var(--w-medium); overflow-wrap: anywhere; white-space: normal; }
.person-acts { display: flex; gap: var(--s-2); margin-left: auto; }
.agenda-edit { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.agenda-row { display: flex; align-items: center; gap: var(--s-2); }
.agenda-row .field { flex: 1 1 auto; min-width: 0; }
.tick {
  appearance: none; flex: none; width: 44px; height: 44px; margin: 0; border-radius: 50%; cursor: pointer;
  background: transparent; position: relative;
}
.tick::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line-strong); }
.tick::before { transition: transform var(--ui-d) var(--ease-spring); }
.tick:active::before { transform: scale(0.88); }
.tick:checked::before { background: var(--accent); box-shadow: none; }
.tick:checked::after { animation: chip-in var(--d-2) var(--ease-spring) both; }
.tick:checked::after {
  content: ""; position: absolute; left: 18px; top: 14px; width: 6px; height: 12px;
  border: solid var(--accent-ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.tick:focus-visible { outline: 2px solid var(--focus); }
.tick:disabled { cursor: default; }
.agenda-row .icon-btn { font-size: var(--t-lg); }
.danger-zone { background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); }
.confirm {
  display: grid; gap: var(--s-3); padding: var(--s-4); border-radius: var(--r-lg); background: var(--rec-soft);
  color: var(--ink); flex-basis: 100%;
}
.confirm-acts { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.confirm .hint { color: var(--ink-2); }

/* security: devices and keys as cards, the events as a quiet list */
.desk-security .form-block { margin-top: var(--s-4); }
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2) var(--s-4); min-height: 48px; }
.desk-security .rows > .row { padding: var(--s-3) var(--s-3) var(--s-3) var(--s-4); border-radius: var(--r-lg); background: var(--bg); }
.row-main { display: grid; min-width: 0; }
.row-title { color: var(--ink); font-weight: var(--w-bold); overflow-wrap: anywhere; }
.audit { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); font-size: var(--t-xs); }
.audit li { display: grid; grid-template-columns: minmax(0, 9.5em) minmax(0, 1fr); gap: var(--s-3); padding: var(--s-1) 0; border-bottom: 1px solid var(--line); }
.audit-at { color: var(--ink-3); font-variant-numeric: tabular-nums; }

@media (max-width: 520px) {
  .form-block { padding: var(--s-4); }
  .link-row { padding-left: var(--s-4); }
  .audit li { grid-template-columns: 1fr; gap: 0; }
  .desk h1 { font-size: var(--t-2xl); }
}

/* the trusted host (#672): her badge on his list, the closed entry, the step-up, the quiet note */
.chip.is-led { background: var(--warm-soft); color: var(--warn-text); }
.chip.is-closed { background: var(--rec-soft); color: var(--rec-text); }
.room-head .eyebrow { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.stepup { margin-top: var(--s-4); }
.form-note { margin-top: var(--s-4); }

/* his «Ведущие» (#719): a card per trusted host, its strips under it, the six digits, the invitation */
.delegate-row { padding: var(--s-4); border-radius: var(--r-lg); background: var(--bg); }
.delegate-row:has(.approve) { box-shadow: inset 0 0 0 2px var(--warm); }
.row-acts { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.delegate-row .approve, .delegate-row .invite, .delegate-row .strip { flex-basis: 100%; min-width: 0; }
.delegate-row .invite .links { margin: 0 0 var(--s-2); }
.delegate-row .invite .link-row { background: var(--surface); }
.approve { display: grid; gap: var(--s-3); }
.approve .desk-note { margin: 0; }
.field-digits { max-width: 11em; font-variant-numeric: tabular-nums; letter-spacing: .12em; font-size: var(--t-lg); font-weight: var(--w-bold); }
.strip:empty { display: none; }
.delegates > .strip { margin-top: calc(-1 * var(--s-2)); }
.keep { display: flex; align-items: center; gap: var(--s-1); color: var(--ink-2); }
/* #720: the entry journal after a call -- quiet facts, red only for the VPN mark */
.journal { margin-top: var(--s-5); display: grid; gap: var(--s-2); }
.journal-row { display: grid; gap: 2px; padding: var(--s-3) var(--s-4); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-1); }
.journal-net { overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.journal-vpn { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-2); align-items: baseline; }
.vpn-mark {
  color: var(--rec-text); background: var(--rec-soft); padding: 0 var(--s-2); border-radius: var(--r-pill); line-height: 22px; font-size: var(--t-2xs);
  white-space: nowrap; font-weight: var(--w-medium);
}

/* «Как войти?» (#818): his two ways in as two square tiles, the glyph in the accent over the word */
.desk-login { background: none; box-shadow: none; padding: 0; margin-inline: auto; text-align: center; max-width: 440px; display: flex; flex-direction: column; align-items: center; }
.desk-login .actions:first-of-type { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); width: 100%; gap: var(--s-3); }
.desk-login .actions:first-of-type .btn {
  aspect-ratio: 1; height: auto; flex-direction: column; gap: var(--s-3); border-radius: var(--r-xl); padding: var(--s-4);
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); white-space: normal; font-size: var(--t-sm);
}
.desk-login .actions:first-of-type .btn::before {
  content: ""; width: 44px; height: 44px; background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.75%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M21 4 3 11.3l6.6 2.3L12 20.5l3.2-4.7 4.6 3.2z%22/%3E%3Cpath d=%22M9.6 13.6 21 4%22/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.75%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M21 4 3 11.3l6.6 2.3L12 20.5l3.2-4.7 4.6 3.2z%22/%3E%3Cpath d=%22M9.6 13.6 21 4%22/%3E%3C/svg%3E") center / contain no-repeat;
}
.desk-login .actions:first-of-type .btn + .btn::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.75%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M5 11a7 7 0 0 1 12.4-4.4M19 10.5v1.5M8 11a4 4 0 0 1 8 0v1.5c0 3-.6 5.5-1.8 7.5M12 11.5v2a10 10 0 0 1-2 6.3M8 14.5a12 12 0 0 1-1.7 4.5%22/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.75%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M5 11a7 7 0 0 1 12.4-4.4M19 10.5v1.5M8 11a4 4 0 0 1 8 0v1.5c0 3-.6 5.5-1.8 7.5M12 11.5v2a10 10 0 0 1-2 6.3M8 14.5a12 12 0 0 1-1.7 4.5%22/%3E%3C/svg%3E"); }
.desk-login .actions:first-of-type .btn::after { background: var(--fill-2); }

/* ================================================================ the #818 desk (#828) */
.dc { background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow-1); min-width: 0; }
.av-xs { --sz: 22px; font-size: 10px; }
.av-sm { --sz: 30px; }
.av-md { --sz: 40px; }
.av-lg { --sz: 56px; }
.d-faces { display: inline-flex; align-items: center; }
.d-faces .av { box-shadow: 0 0 0 2px var(--surface); }
.d-faces .av + .av { margin-left: -8px; }
.d-more { --tint: var(--ink-3); font-size: var(--t-2xs); }
.desk .ibtn { width: 44px; height: 44px; }
.desk .ibtn-danger { background: var(--rec-soft); color: var(--rec-text); }
.desk-head .sub { color: var(--ink-3); font-size: var(--t-lg); font-weight: var(--w-bold); font-variant-numeric: tabular-nums; }
.desk-head .grow { flex: 1; }
.desk-head { justify-content: flex-start; }
.desk-head .btn svg, .h-now-act .btn svg { width: 20px; height: 20px; }
.desk .chip svg { width: 16px; height: 16px; }

/* the ring: a meeting as a clock face */
.d-ring { position: relative; display: inline-grid; place-items: center; flex: none; width: 132px; height: 132px; border-radius: 50%; }
.d-ring-svg { position: absolute; inset: 0; width: 100%; height: 100%; rotate: -90deg; }
.d-ring-svg circle { fill: none; stroke-width: 8; stroke-linecap: round; }
.d-ring-svg .trk { stroke: var(--fill-2); }
.d-ring-svg .arc { stroke: var(--accent); transition: stroke-dashoffset var(--d-5) var(--ease-out); }
.d-ring-svg.wait .arc { stroke: var(--warm-bright); }
.d-ring-svg.lock .arc { stroke: var(--warn); }
.d-ring-in { position: relative; display: grid; justify-items: center; line-height: 1; gap: 4px; max-width: 72%; text-align: center; }
/* #840: the caption under the clock stays inside the ring's hole at every width (it used to run
   over the stroke): it wraps on a word, never past the hole. */
.d-ring-s { line-height: 1.15; overflow-wrap: anywhere; }
.d-ring-n { font-size: var(--t-2xl); font-weight: var(--w-heavy); letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.d-ring-s { color: var(--ink-2); font-size: var(--t-xs); font-variant-numeric: tabular-nums; }
.d-ring-sm { width: 80px; height: 80px; }
.d-ring-sm .d-ring-n { font-size: var(--t-xl); }
button.d-ring { appearance: none; border: 0; padding: 0; background: transparent; cursor: pointer; transition: transform var(--d-2) var(--ease-out); }
button.d-ring:hover { transform: scale(1.03); }

/* home: now + next */
.desk-home .offer { margin-top: var(--s-4); }
.h-top { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: var(--s-5); margin: var(--s-6) 0 var(--s-8); }
.h-now { display: flex; gap: var(--s-7); align-items: center; padding: var(--s-6) var(--s-7); }
.h-now.is-live { box-shadow: var(--shadow-1), inset 0 0 0 2px var(--accent-soft); }
.h-now-body { display: grid; gap: var(--s-3); min-width: 0; }
.h-now-top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); color: var(--ink-2); }
.h-range { font-variant-numeric: tabular-nums; font-weight: var(--w-medium); }
.h-now h2 { color: var(--ink); font-size: var(--t-2xl); font-weight: var(--w-heavy); letter-spacing: -0.02em; line-height: var(--lh-tight); overflow-wrap: anywhere; }
.h-now-faces { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-3); }
.h-now-faces .av { --sz: 36px; }
.h-count { color: var(--ink-2); font-weight: var(--w-medium); font-size: var(--t-sm); }
.h-now-act { display: flex; gap: var(--s-2); margin-top: var(--s-1); }
.h-next {
  appearance: none; border: 0; font: inherit; text-align: left; cursor: pointer; color: var(--ink);
  display: grid; align-content: center; justify-items: start; gap: var(--s-2); padding: var(--s-6); transition: transform var(--d-2) var(--ease-out);
}
.h-next:hover { transform: translateY(-2px); }
.h-next-n { font-size: var(--t-4xl); font-weight: var(--w-heavy); letter-spacing: -0.02em; line-height: 1; color: var(--warm); font-variant-numeric: tabular-nums; }
.h-next-t { font-size: var(--t-lg); font-weight: var(--w-bold); overflow-wrap: anywhere; }
.h-next-more { display: flex; gap: 4px; margin-top: var(--s-1); }
.h-next-more i { height: 6px; width: calc(var(--d) * 0.6px); max-width: 80px; border-radius: 3px; background: var(--fill-2); }
.h-empty { grid-column: 1 / -1; display: flex; align-items: center; gap: var(--s-5); padding: var(--s-7);
  background: transparent; box-shadow: inset 0 0 0 2px var(--line-strong); }
.h-empty .ghost { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); }
.h-empty .ghost svg { width: 32px; height: 32px; }
.h-empty-t { font-size: var(--t-2xl); font-weight: var(--w-bold); color: var(--ink-2); }
.h-me { display: grid; gap: var(--s-4); padding: var(--s-5) var(--s-6); align-content: center; }
.h-me-top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }
.h-me-top .desk-me { margin: 0; flex: 1 1 140px; color: var(--ink); font-weight: var(--w-medium); }
.h-me-term { display: flex; align-items: center; gap: var(--s-4); }
.h-me-facts { display: flex; flex-wrap: wrap; gap: var(--s-2); }

/* the week: hours run left to right, a capsule per meeting, the red line is now */
.tl { display: grid; gap: var(--s-2); }
.tl-hours { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--s-4); color: var(--ink-2); font-size: var(--t-2xs); font-variant-numeric: tabular-nums; }
.tl-hours > div { position: relative; height: 18px; margin-inline: 16px; }
.tl-hours > div span { position: absolute; left: calc(var(--x) * 100%); translate: -50% 0; }
.tl-day { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--s-4); align-items: center; }
.tl-when { display: grid; justify-items: start; line-height: 1.05; }
.tl-when .tag { font-size: var(--t-2xs); }
.tl-when b { font-size: var(--t-xl); font-weight: var(--w-heavy); color: var(--ink); font-variant-numeric: tabular-nums; }
.tl-day.today .tl-when b { color: var(--accent-text); }
.tl-track {
  --lanes: 1; position: relative; height: calc(16px + var(--lanes) * 60px + (var(--lanes) - 1) * 6px); border-radius: var(--r-md); padding-inline: 16px;
  background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px calc(100% / var(--cols, 7))), var(--bg-sunken); background-clip: content-box, padding-box;
}
.tl-mini { display: none; }
.tl-now { position: absolute; z-index: 2; top: -6px; bottom: -6px; left: calc(16px + var(--x, 0) * (100% - 32px)); width: 2px; background: var(--rec); border-radius: 1px; pointer-events: none; }
.tl-now i { position: absolute; top: -4px; left: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--rec); animation: d-pulse 2s var(--ease-move) infinite; }
@keyframes d-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.8); } }
.tl .cap {
  position: absolute; top: calc(8px + var(--lane, 0) * 66px); height: 60px; min-height: 0;
  left: min(calc(16px + var(--x) * (100% - 32px)), calc(100% - 136px));
  width: max(120px, calc(var(--w) * (100% - 32px))); max-width: calc(100% - 16px);
  display: flex; align-items: center; gap: var(--s-2); padding: var(--s-2) var(--s-3); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); overflow: hidden; text-align: left;
  transition: transform var(--d-2) var(--ease-out);
}
.tl .cap:hover { transform: translateY(-2px); z-index: 3; }
.tl .cap-tm, .tl .cap-seats { display: none; }
.cap-t { font-weight: var(--w-bold); font-size: var(--t-sm); line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: anywhere; min-width: 0; }
.cap-led { flex: none; }
.tl .cap.s-live, .tl .cap.s-open { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-2); }
.tl .cap.s-ended { background: var(--fill-1); box-shadow: none; color: var(--ink-2); }
.tl .cap.s-cancelled { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-strong); color: var(--ink-2); }
.tl .cap.s-cancelled .cap-t { text-decoration: line-through; }
.h-later { margin-top: var(--s-7); }
.h-later .rooms { margin-top: var(--s-3); }

/* the list rows (later, recent, journals) */
.rooms .room-row { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-radius: var(--r-lg); }
.room-main { display: grid; flex: 1; min-width: 0; }
.rooms .room-when { font-size: var(--t-xs); font-weight: var(--w-medium); color: var(--ink-2); }
.rooms .room-title { font-size: var(--t-md); }
.rooms .room-meta { margin: 0; justify-content: flex-end; flex: none; }
.h-later .rooms, .recent .rooms { grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr)); }
.room-row.is-cancelled .room-title { text-decoration: line-through; color: var(--ink-2); }

/* a phone: days stack, capsules become rows, a mini track keeps the shape of the day */
@media (max-width: 899px) {
  .h-top { grid-template-columns: minmax(0, 1fr); gap: var(--s-3); margin: var(--s-5) 0 var(--s-6); }
  .h-now { padding: var(--s-5); gap: var(--s-4); }
  .h-now .d-ring { width: 104px; height: 104px; }
  .h-now .d-ring-n { font-size: var(--t-xl); }
  .h-now .d-ring-s { font-size: var(--t-2xs); }
  .h-now h2 { font-size: var(--t-xl); }
  .h-next { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; padding: var(--s-4) var(--s-5); column-gap: var(--s-4); }
  .h-next .tag, .h-next-more { display: none; }
  .h-next-n { font-size: var(--t-xl); white-space: nowrap; }
  .tl-hours { display: none; }
  .tl { gap: var(--s-5); }
  .tl-day { grid-template-columns: minmax(0, 1fr); gap: var(--s-2); }
  .tl-day.is-free .tl-track { display: none; }
  .tl-when { display: flex; align-items: baseline; gap: var(--s-2); }
  .tl-mini { display: block; position: relative; height: 8px; border-radius: 4px; background: var(--bg-sunken); overflow: hidden; }
  .tl-mini i { position: absolute; top: 0; bottom: 0; left: calc(var(--x) * 100%); width: max(4px, calc(var(--w) * 100%)); background: var(--ink-3); border-radius: 4px; }
  .tl-mini i.s-live, .tl-mini i.s-open { background: var(--accent); }
  .tl-mini i.s-scheduled { background: var(--ink-2); }
  .tl-mini i.s-ended, .tl-mini i.s-cancelled { background: var(--line-strong); }
  .tl-mini .tl-now { top: 0; bottom: 0; left: calc(var(--x, 0) * 100%); }
  .tl-mini .tl-now i { display: none; }
  .tl-track { height: auto; display: grid; gap: var(--s-2); background: none; padding: 0; }
  .tl-track > .tl-now { display: none; }
  .tl .cap { position: relative; inset: auto; left: auto; top: auto; width: auto; max-width: none; height: auto; min-height: 56px; padding: var(--s-2) var(--s-4); border-radius: var(--r-md); }
  .tl .cap-tm { display: block; flex: none; min-width: 44px; font-weight: var(--w-bold); font-size: var(--t-sm); font-variant-numeric: tabular-nums; }
  .tl .cap-t { flex: 1; }
  .tl .cap-seats { display: flex; flex: none; }
  .h-me { padding: var(--s-4) var(--s-5); }
}
@media (prefers-reduced-motion: reduce) { .tl-now i { animation: none; } }

/* one meeting: the table and its dock on the left, people and agenda as cards beside it */
.r-head { gap: var(--s-3); }
.r-head .back { margin: 0; padding: 0; background: var(--fill-1); color: var(--ink); }
.r-head h1 { flex: 0 1 auto; }
.r-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--s-8); align-items: start; margin-top: var(--s-6); }
.r-stage { display: grid; justify-items: center; gap: var(--s-5); min-width: 0; }
.r-side { display: grid; gap: var(--s-4); min-width: 0; }
.r-stage .links-box { width: 100%; }
.r-stage .links { margin: 0; }
.r-ask { width: 100%; max-width: 560px; }
.r-ask:empty { display: none; }

/* the round table */
.rt { --R: 118px; --seat: 52px; position: relative; width: calc(var(--R) * 2 + var(--seat) + 16px); aspect-ratio: 1; flex: none; max-width: 100%; }
.rt-lg { --R: 150px; --seat: 60px; }
.rt-top { position: absolute; inset: calc(var(--seat) / 2 + 18px); border-radius: 50%; background: var(--surface); box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line); }
.rt-c { position: absolute; inset: calc(var(--seat) / 2 + 18px); display: grid; place-items: center; text-align: center; }
.rt-seat {
  position: absolute; left: 50%; top: 50%; width: var(--seat); height: var(--seat); margin: calc(var(--seat) / -2);
  display: grid; place-items: center; border-radius: 50%;
  transform: rotate(var(--a)) translateY(calc(-1 * var(--R))) rotate(calc(-1 * var(--a)));
  animation: rt-in var(--d-4) var(--ease-spring) both; animation-delay: calc(var(--i) * 50ms);
}
@keyframes rt-in { from { opacity: 0; scale: 0.6; } to { opacity: 1; scale: 1; } }
.rt-seat .av { --sz: var(--seat); box-shadow: 0 0 0 3px var(--bg); }
.rt-seat.st-new .av, .rt-seat.st-delivered .av { opacity: 0.5; }
.rt-seat.st-delivered .av { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--line-strong); }
.rt-seat.st-bound .av { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--ink-3); }
.rt-seat.st-present .av { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--accent); }
.rt-seat.st-present::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; box-shadow: 0 0 0 2px var(--accent); opacity: 0; animation: ripple 2.4s var(--ease-out) infinite; }
.rt-seat.st-revoked .av { opacity: 0.35; filter: grayscale(1); box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--rec); }
.rt-seat.st-free { border: 2px dashed var(--line-strong); color: var(--ink-3); }
.rt-seat.st-free svg { width: 18px; height: 18px; }
.rt-host { position: absolute; right: -4px; bottom: -4px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--warm-bright); color: #fff; box-shadow: 0 0 0 2px var(--bg); }
.rt-host svg { width: 13px; height: 13px; }
.r-c { position: relative; display: grid; justify-items: center; align-content: center; gap: 2px; width: 100%; height: 100%; line-height: 1.05; }
.r-c .d-ring-svg { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); }
.r-c .d-ring-svg circle { stroke-width: 2.6; }
.r-c b { position: relative; font-size: var(--t-4xl); font-weight: var(--w-heavy); letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.r-c small { position: relative; color: var(--ink-2); font-size: var(--t-sm); font-weight: var(--w-medium); }
.r-c.wait b { color: var(--warm); }
.r-c.done b { color: var(--ink-2); }
.r-c-ic { width: 28px; height: 28px; color: var(--ok); }
.r-lock { position: absolute; top: 16%; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--warn-soft); color: var(--warn-text); animation: pop var(--d-3) var(--ease-spring) both; }
.r-lock svg { width: 18px; height: 18px; }

/* the dock: one row of pills under the table */
.r-dock { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2); padding: var(--s-2); border-radius: var(--r-pill);
  background: var(--glass); box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.r-pill { min-height: 48px; padding: 0 var(--s-4); gap: var(--s-2); white-space: nowrap; }
.r-pill:not(.btn-danger) { background: var(--fill-1); color: var(--ink); }
.r-pill.is-on { background: var(--warn-soft); color: var(--warn-text); }
.r-entry { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2); }

/* the cards beside */
.r-card { padding: var(--s-4) var(--s-5); display: grid; gap: var(--s-3); }
.r-card .block-title { float: none; font-size: var(--t-md); }
.r-people .people-list .person { min-height: 56px; }
.person .av { box-shadow: 0 0 0 2px var(--surface); }
.person.st-present .av { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent); }
.person.st-new .av, .person.st-delivered .av { opacity: 0.55; }
.person.st-revoked .av { opacity: 0.35; filter: grayscale(1); }
.person-state { color: var(--ink-2); font-size: var(--t-sm); }
.person.st-present .person-state { color: var(--accent-text); font-weight: var(--w-medium); }
.person.st-revoked .person-state { color: var(--rec-text); }
.r-free { display: flex; align-items: center; gap: var(--s-2); color: var(--ink-2); font-size: var(--t-xs); }
.r-free svg { width: 16px; height: 16px; }
.r-more > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: var(--s-2); min-height: 44px; color: var(--ink); font-weight: var(--w-medium); }
.r-more > summary::-webkit-details-marker { display: none; }
.r-more > summary svg { width: 20px; height: 20px; color: var(--ink-2); }
.r-more > summary .block-title { margin: 0; }
.r-more[open] > summary { margin-bottom: var(--s-2); }
.r-ag-head { display: flex; align-items: center; gap: var(--s-3); color: var(--ink-2); }
.r-ag-head > svg { width: 20px; height: 20px; flex: none; }
.r-ag-head .block-title { width: auto; flex: none; }
.r-ag-bar { --f: 0; flex: 1; height: 6px; border-radius: 3px; background: var(--fill-1); overflow: hidden; }
.r-ag-bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; transform-origin: 0 50%; transform: scaleX(var(--f)); transition: transform var(--d-4) var(--ease-out); }
.r-ag-n { font-size: var(--t-xs); font-variant-numeric: tabular-nums; }
.r-ag-text { border: 0; background: transparent; box-shadow: none; padding-inline: var(--s-1); font-weight: var(--w-medium); }
.r-ag-text:disabled { background: transparent; color: var(--ink); }
.agenda-row.done .r-ag-text { color: var(--ink-2); text-decoration: line-through; }
.ibtn-plain { background: transparent; color: var(--ink-2); }

@media (max-width: 899px) {
  .r-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); margin-top: var(--s-4); }
  .rt-lg { --R: 112px; --seat: 50px; }
  .r-c b { font-size: var(--t-2xl); }
  .r-dock { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); width: 100%; border-radius: var(--r-xl); }
  .r-pill { flex-direction: column; justify-content: center; gap: 2px; min-height: 64px; padding: var(--s-1); font-size: var(--t-xs); border-radius: var(--r-lg); white-space: normal; text-align: center; }
  .r-pill.btn-danger { grid-column: 1 / -1; flex-direction: row; min-height: 48px; font-size: var(--t-sm); }
}
@media (max-width: 360px) { .rt-lg { --R: 100px; --seat: 46px; } }
@media (prefers-reduced-motion: reduce) { .rt-seat, .rt-seat.st-present::after { animation: none; } }

/* a new meeting: the table on the left grows as people are picked; the form on the right */
.n-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: var(--s-8); align-items: start; margin-top: var(--s-5); }
.n-stage { position: sticky; top: var(--s-6); display: grid; justify-items: center; gap: var(--s-5); padding-top: var(--s-2); min-width: 0; }
.n-table { display: grid; place-items: center; }
.n-c { display: grid; justify-items: center; line-height: 1.05; gap: 4px; }
.n-c b { font-size: var(--t-3xl); font-weight: var(--w-heavy); letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.n-c small { color: var(--ink-2); font-size: var(--t-sm); font-weight: var(--w-medium); }
.n-track { position: relative; width: min(100%, 420px); height: 12px; margin: 22px 0 22px; border-radius: var(--r-pill); background: var(--bg-sunken); box-shadow: inset 0 0 0 1px var(--line); }
.n-track small { position: absolute; font-size: var(--t-2xs); color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.n-end { top: calc(100% + 6px); }
.n-end-a { left: 0; } .n-end-b { right: 0; }
.n-cap { position: absolute; top: 0; bottom: 0; left: calc(var(--x, 0.5) * 100%); width: max(10px, calc(var(--w, 0.02) * 100%)); border-radius: var(--r-pill); background: var(--accent); transition: left var(--d-3) var(--ease-spring), width var(--d-3) var(--ease-spring); }
.n-cap-t { position: absolute; bottom: calc(100% + 4px); left: 100%; translate: -100% 0; font-size: var(--t-xs); color: var(--accent-text); white-space: nowrap; font-variant-numeric: tabular-nums; }
.n-cap-t.is-near-start { left: 0; translate: 0 0; }
.n-now { position: absolute; top: -4px; bottom: -4px; width: 2px; left: calc(var(--x, 0) * 100%); background: var(--rec); border-radius: 1px; }
.n-now small { top: calc(100% + 2px); left: 50%; translate: -50% 0; color: var(--rec-text); font-weight: var(--w-medium); }
.n-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); padding: var(--s-6); }
.n-title { width: 100%; min-height: 44px; border: 0; background: transparent; padding: 0; font: inherit; font-size: var(--t-xl); font-weight: var(--w-bold); color: var(--ink); }
.n-title::placeholder { color: var(--ink-2); }
.n-title:focus { outline: none; box-shadow: 0 2px 0 var(--accent); }
.n-block { display: grid; gap: var(--s-3); min-width: 0; }
.n-label { color: var(--ink-2); font-size: var(--t-2xs); font-weight: var(--w-medium); letter-spacing: var(--track-wide); text-transform: uppercase; }
.n-chips { display: flex; flex-wrap: wrap; gap: var(--s-2); min-width: 0; }
.n-chip { position: relative; display: inline-flex; }
.n-chip input { position: absolute; inset: 0; z-index: 1; margin: 0; opacity: 0; cursor: pointer; }  /* above its words: a click lands on the radio */
.n-chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-4); border-radius: var(--r-pill);
  background: var(--fill-1); color: var(--ink); font-size: var(--t-sm); font-weight: var(--w-medium); white-space: nowrap; font-variant-numeric: tabular-nums;
  transition: background var(--d-2) var(--ease-out), color var(--d-2) var(--ease-out), transform var(--d-2) var(--ease-spring); }
.n-chip input:checked + span { background: var(--ink); color: var(--bg); }
.n-chip input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.n-chip input:active + span { transform: scale(0.95); }
@media (hover: hover) { .n-chip input:not(:checked):hover + span { transform: translateY(-1px); } }
.n-date { max-width: 220px; }
.n-when { display: flex; align-items: center; gap: var(--s-3); }
.n-when[hidden] { display: none; }
.n-time { min-height: 48px; width: 5.2em; border: 0; border-radius: var(--r-md); background: transparent; color: var(--ink); text-align: center;
  font: inherit; font-size: var(--t-2xl); font-weight: var(--w-heavy); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.n-time::-webkit-calendar-picker-indicator { display: none; }
.n-time:focus { outline: 2px solid var(--focus); }
.n-people { display: flex; flex-wrap: wrap; gap: var(--s-3); }
/* #840: his contacts as suggestion chips inside «Participants» */
.n-suggs { display: grid; gap: var(--s-2); margin-top: var(--s-2); }
.n-who .n-people { gap: var(--s-2); }
.n-sugg { appearance: none; display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; max-width: 100%;
  padding: 0 var(--s-3) 0 var(--s-2); border: 0; border-radius: var(--r-pill); background: var(--bg-sunken); color: var(--ink-2);
  font: inherit; font-size: var(--t-xs); font-weight: var(--w-medium); cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform var(--ui-d) var(--ui-ease), opacity var(--ui-d) var(--ui-ease); }
.n-sugg-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 14ch; }
.n-sugg-ic { width: 16px; height: 16px; flex: none; transition: transform var(--d-2) var(--ease-spring); }
.n-sugg:hover { transform: translateY(-1px); color: var(--ink); }
.n-sugg:active { transform: scale(0.96); }
.n-sugg:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.n-sugg[aria-pressed="true"] { color: var(--ink); background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); }
.n-sugg[aria-pressed="true"] .n-sugg-ic { transform: rotate(45deg); }
/* #840: the agenda, an item per line, growing by itself */
.ag-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-radius: var(--r-md); background: var(--bg-sunken); box-shadow: inset 0 0 0 1px var(--line); padding: var(--s-1) var(--s-3); }
.ag-row { display: flex; align-items: center; gap: var(--s-3); min-height: 44px; }
.ag-row + .ag-row { border-top: 1px solid var(--line); }
.ag-dot { width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--accent); opacity: 0.7; }
.ag-in { flex: 1; min-width: 0; min-height: 44px; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: var(--t-md); padding: var(--s-2) 0; outline: none; }
.ag-in::placeholder { color: var(--ink-3); }
.ag-list:focus-within { box-shadow: inset 0 0 0 2px var(--focus); }
.n-person { appearance: none; display: grid; justify-items: center; gap: 4px; border: 0; background: none; padding: 0; width: 64px; min-height: 44px; cursor: pointer;
  font: inherit; font-size: var(--t-2xs); color: var(--ink-2); transition: transform var(--d-2) var(--ease-spring); }
.n-person .av { opacity: 0.6; transition: opacity var(--d-2) var(--ease-out), transform var(--d-2) var(--ease-spring), box-shadow var(--d-2) var(--ease-out); }
.n-person-n { max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.n-person[aria-pressed="true"] { color: var(--ink); }
.n-person[aria-pressed="true"] .av { opacity: 1; transform: scale(1.06); box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent); }
.n-person:active { transform: scale(0.94); }
.n-person:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--r-md); }
.n-opts { gap: var(--s-2); }
.n-sub { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); color: var(--ink); min-height: 44px; }
.n-sub[hidden] { display: none; }
.n-sub > svg { width: 20px; height: 20px; color: var(--ink-2); }
.n-sub-t { color: var(--ink-2); font-size: var(--t-sm); }
.n-go { min-width: 200px; }
.n-links { display: grid; gap: var(--s-3); min-width: 0; }
.n-links .links { margin: 0; }
.chip.is-ok { background: var(--ok-soft); color: var(--ok-text); }

/* links: a face, the name, one line of what the link is, one action */
.link-row { flex-wrap: nowrap; justify-content: flex-start; gap: var(--s-3); padding: var(--s-3) var(--s-3) var(--s-3) var(--s-4); }
.link-row .link-who { flex: 1; }
.link-row .hint { font-size: var(--t-xs); }
.link-ic { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); }
.link-ic svg { width: 20px; height: 20px; }
.link-row.is-shared { background: var(--bg-sunken); box-shadow: inset 0 0 0 1px var(--line); }
.link-acts .btn svg { width: 18px; height: 18px; }

@media (max-width: 899px) {
  .n-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
  .n-stage { position: static; gap: var(--s-3); padding: 0; }
  .n-c b { font-size: var(--t-2xl); }
  .n-form { padding: var(--s-5); gap: var(--s-4); }
  .n-chip span { padding: 0 var(--s-3); }
  .n-people { gap: var(--s-2); padding-top: 4px; }
  .n-go { flex: 1; }
  .link-row { flex-wrap: wrap; }
  .link-row .link-acts { margin-left: auto; }
  .link-row .link-who { flex: 1 1 55%; min-width: 150px; }
}

/* security: devices and keys as cards, the journals as a chart beside the events */
.desk-security .s-sec { margin-top: var(--s-7); display: grid; gap: var(--s-4); }
.desk-security > .dc, .desk-security > .telegram-block { margin-top: var(--s-5); }
.s-block { padding: var(--s-5); display: grid; gap: var(--s-3); max-width: 560px; }
.s-head { display: flex; align-items: center; gap: var(--s-3); }
.s-head .block-title { float: none; width: auto; }
.s-sec-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); }
.s-label { display: flex; align-items: center; gap: var(--s-2); color: var(--ink-2); font-size: var(--t-2xs); font-weight: var(--w-bold); letter-spacing: var(--track-wide); text-transform: uppercase; }
.s-label svg { width: 18px; height: 18px; }
.s-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.s-dev { display: grid; justify-items: start; align-content: start; gap: var(--s-2); padding: var(--s-5); }
.s-dev.is-here { box-shadow: var(--shadow-1), inset 0 0 0 2px var(--accent); }
.s-dev-ic { position: relative; color: var(--ink); margin-bottom: var(--s-2); }
.s-dev-ic svg { width: 30px; height: 30px; }
.s-here-dot { position: absolute; top: -2px; right: -8px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.s-dev-name { color: var(--ink); font-size: var(--t-xl); font-weight: var(--w-heavy); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.s-dev-app { color: var(--ink-2); font-size: var(--t-sm); margin-top: -6px; }
.s-dev-facts { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: var(--s-1) 0; }
.s-dev .btn svg { width: 18px; height: 18px; }
.s-keys-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-4); }
.s-key-card { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-3) var(--s-3) var(--s-3); min-width: 220px; }
.s-key-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r-md); background: var(--accent-soft); color: var(--accent-text); flex: none; }
.s-key-ic svg { width: 26px; height: 26px; }
.s-key-main { display: grid; flex: 1; min-width: 0; }
.s-key-name { color: var(--ink); font-weight: var(--w-bold); overflow-wrap: anywhere; }
.s-key-when { color: var(--ink-2); font-size: var(--t-xs); }
.s-key-add { appearance: none; display: grid; place-items: center; width: 100px; height: 72px; border: 2px dashed var(--line-strong); border-radius: var(--r-lg);
  background: transparent; color: var(--ink-2); cursor: pointer; transition: transform var(--d-2) var(--ease-spring), color var(--d-2) var(--ease-out); }
.s-key-add:hover { color: var(--accent-text); transform: translateY(-2px); }
.s-key-add svg { width: 24px; height: 24px; }
.s-journal { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--s-7); padding: var(--s-6); align-items: start; }
.s-journal-chart, .s-journal-ev { display: grid; gap: var(--s-4); min-width: 0; }
.s-chart { display: grid; gap: var(--s-3); }
.s-bars { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 6px; align-items: end; height: 150px; }
.s-bar { display: grid; grid-template-rows: 1fr auto; gap: 6px; height: 100%; justify-items: center; }
.s-bar small { color: var(--ink-2); font-size: var(--t-2xs); }
.s-bar.today small { color: var(--ink); font-weight: var(--w-bold); }
.s-stack { display: flex; flex-direction: column-reverse; justify-content: flex-start; gap: 2px; width: min(100%, 22px); height: 100%; border-radius: 4px; background: var(--fill-1); overflow: hidden; }
.s-stack i { display: block; height: calc(var(--v) * 100%); min-height: 3px; transform-origin: 50% 100%; animation: s-grow var(--d-5) var(--ease-out) both; }
@keyframes s-grow { from { transform: scaleY(0); } to { transform: none; } }
.s-in { background: var(--accent); }
.s-vpn { background: var(--warm-bright); }
.s-refused { background: var(--rec); }
.s-keys { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); color: var(--ink-2); font-size: var(--t-sm); }
.s-key { display: inline-flex; align-items: center; gap: 6px; }
.s-key i { width: 10px; height: 10px; border-radius: 50%; }
.s-key b { color: var(--ink); }
.desk-security .audit { max-height: 340px; overflow-y: auto; gap: var(--s-1); font-size: var(--t-sm); padding-right: var(--s-2); }
.desk-security .audit li { display: flex; align-items: flex-start; gap: var(--s-3); grid-template-columns: none; border: 0; padding: var(--s-1) 0; }
.ev-dot { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--fill-1); color: var(--ink-2); }
.ev-dot svg { width: 16px; height: 16px; }
.ev-ok .ev-dot { background: var(--accent); color: var(--accent-ink); }
.ev-bad .ev-dot { background: var(--rec); color: var(--rec-ink); }
.ev-warm .ev-dot { background: var(--warm-bright); color: #fff; }
.ev-p5 .ev-dot { background: color-mix(in oklab, var(--p5) 60%, var(--surface)); color: var(--ink); }
.ev-main { display: grid; min-width: 0; }
.ev-t { color: var(--ink); font-weight: var(--w-medium); }
.ev-bad .ev-t { color: var(--rec-text); }

/* hosts (his «Ведущие») as person cards */
.p-cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: var(--s-4); }
.desk-security .p-cards > .delegate-row { display: grid; gap: var(--s-3); align-content: start; padding: var(--s-5); background: var(--surface); }
.p-top { display: flex; align-items: center; gap: var(--s-3); min-width: 0; }
.p-top .row-main { flex: 1; }
.p-crown { display: inline-grid; place-items: center; margin-left: 6px; color: var(--warm); vertical-align: -2px; }
.p-crown svg { width: 15px; height: 15px; }
.d-ring-xs { width: 56px; height: 56px; }
.d-ring-xs .d-ring-n { font-size: var(--t-md); }
.d-ring-xs .d-ring-s { font-size: 10px; }
.delegate-row.is-invited .av, .delegate-row.is-pending .av { opacity: 0.6; }
.delegate-row .row-acts { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.delegate-row .row-acts .btn svg { width: 18px; height: 18px; }
.p-revoke { color: var(--rec-text); }

@media (max-width: 899px) {
  .s-journal { grid-template-columns: minmax(0, 1fr); padding: var(--s-5); gap: var(--s-5); }
  .s-cards { grid-template-columns: minmax(0, 1fr); }
  .s-dev { grid-template-columns: auto minmax(0, 1fr); column-gap: var(--s-3); align-items: center; }
  .s-dev-ic { grid-row: span 2; margin: 0; }
  .s-dev-app { margin: 0; }
  .s-dev-facts, .s-dev .btn { grid-column: 1 / -1; }
  .s-bars { gap: 3px; height: 120px; }
  .s-key-card { flex: 1 1 100%; }
}

/* #840: one motion language for the desk's controls (DESIGN «Motion»): transform and opacity, the
   shared --ui-* durations, a press sinks, a hover lifts by a pixel. sotto.css settles all of it at
   once under prefers-reduced-motion; this block repeats that for the desk on its own. */
.desk .link-btn, .desk .s-cards button { transition: transform var(--ui-press) var(--ui-ease), opacity var(--ui-d) var(--ui-ease); }
.desk .link-btn:active { transform: scale(0.94); }
.desk-flash { animation: flash-in var(--d-3) var(--ease-out) both; }
@keyframes flash-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.ag-row { animation: chip-in var(--d-2) var(--ease-out) both; }
@media (prefers-reduced-motion: reduce) {
  .nav-btn, .nav-btn::before, .nav-btn .ic, .chip-x, .chip-person, .tick::before, .tick::after, .n-sugg, .n-sugg-ic,
  .desk .link-btn, .desk-flash, .ag-row { transition: none !important; animation: none !important; }
}
