/* OpenNodd web app. Clean Studio: flat, calm, one thin border colour. */
@font-face {
  font-family: 'Inter';
  src: url('/app/inter.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/app/jetbrains-mono.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* Light is the primary look; dark follows the device or the saved theme switch (data-theme on <html>). */
:root {
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --r: 8px;
  --r-card: 12px;
  --bg: #0f1211; --pane: #161a19; --raised: #1c211f; --line: #262c29; --line-2: #262c29; --line-soft: #1f2422;
  --text: #eef1ef; --text-2: #c9d0cc; --dim: #9aa39e; --dim-2: #8d9792;
  --mint: #3ccf95; --mint-ink: #04140d; --btn: #2fbf86; --btn-hover: #3ccf95;
  --mint-soft: #13291f; --mint-line: #262c29; --mint-text: #7fe0b6;
  --amber: #f0c674; --amber-soft: #2e2410; --amber-ink: #231600;
  --red: #f2a0a0; --red-soft: #2e1818; --red-text: #f2a0a0;
  --blue: #aab0f5; --info-soft: #1b1e3a;
  --mint-rgb: 60 207 149; --amber-rgb: 240 198 116; --red-rgb: 242 160 160;
  --tint: 255 255 255; --glass: 22 26 25; --well: #161a19; --chip: #262c29;
  --shadow: rgba(0, 0, 0, 0.4);
  --accent: var(--mint); --panel: var(--pane); --muted: var(--dim);
  color-scheme: dark;
  font-family: var(--sans);
}
:root[data-theme='light'] {
  --bg: #f6f7f6; --pane: #ffffff; --raised: #f1f3f2; --line: #e3e7e4; --line-2: #e3e7e4; --line-soft: #edf0ee;
  --text: #101814; --text-2: #303a35; --dim: #59645e; --dim-2: #66716b;
  --mint: #067a55; --mint-ink: #ffffff; --btn: #067a55; --btn-hover: #045c40;
  --mint-soft: #e3f3ec; --mint-line: #e3e7e4; --mint-text: #045c40;
  --amber: #7a4a00; --amber-soft: #fff1d6; --amber-ink: #ffffff;
  --red: #a12a2a; --red-soft: #fdecec; --red-text: #a12a2a;
  --blue: #3a3f9e; --info-soft: #eef0ff;
  --mint-rgb: 6 122 85; --amber-rgb: 122 74 0; --red-rgb: 161 42 42;
  --tint: 0 0 0; --glass: 255 255 255; --well: #ffffff; --chip: #e3e7e4;
  --shadow: rgba(16, 24, 20, 0.08);
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) {
    --bg: #f6f7f6; --pane: #ffffff; --raised: #f1f3f2; --line: #e3e7e4; --line-2: #e3e7e4; --line-soft: #edf0ee;
    --text: #101814; --text-2: #303a35; --dim: #59645e; --dim-2: #66716b;
    --mint: #067a55; --mint-ink: #ffffff; --btn: #067a55; --btn-hover: #045c40;
    --mint-soft: #e3f3ec; --mint-line: #e3e7e4; --mint-text: #045c40;
    --amber: #7a4a00; --amber-soft: #fff1d6; --amber-ink: #ffffff;
    --red: #a12a2a; --red-soft: #fdecec; --red-text: #a12a2a;
    --blue: #3a3f9e; --info-soft: #eef0ff;
    --mint-rgb: 6 122 85; --amber-rgb: 122 74 0; --red-rgb: 161 42 42;
    --tint: 0 0 0; --glass: 255 255 255; --well: #ffffff; --chip: #e3e7e4;
    --shadow: rgba(16, 24, 20, 0.08);
    color-scheme: light;
  }
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
}
body {
  font-size: 14px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
#root {
  height: 100%;
}
[hidden] {
  display: none !important;
}
a {
  color: var(--mint);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
b {
  font-weight: 600;
}
::selection {
  background: rgb(var(--mint-rgb) / 0.28);
}
:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-thumb {
  background: var(--line-2);
  border-radius: 6px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-track {
  background: transparent;
}
.muted,
.dim {
  color: var(--dim);
}
.small {
  font-size: 12.5px;
}
.spacer {
  flex: 1;
}
.row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
h1,
h2,
h3 {
  font-family: var(--sans);
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.015em;
}

/* ================================================================
   AUTH
   ================================================================ */
.auth {
  position: relative;
  min-height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  background: var(--bg);
  overflow: hidden;
}
.auth-main {
  display: grid;
  place-items: center;
  padding: 32px 16px;
  min-height: 100dvh;
}
.auth-wrap {
  width: 100%;
  max-width: 400px;
  animation: rise 0.3s ease both;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
.card.glass {
  position: relative;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--pane);
}
.glass-body {
  padding: 32px 32px 26px;
}
.auth-head {
  text-align: center;
  margin-bottom: 26px;
}
.auth-head .logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}
.auth-head h1 {
  font-family: var(--sans);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 16px 0 6px;
}
.auth-head p {
  margin: 0;
  color: var(--dim);
  font-size: 14px;
}
.invitecode {
  display: inline-block;
  margin-top: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--mint-soft);
  color: var(--mint-text);
  font: 600 13px var(--sans);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}
.glass .field {
  display: block;
  margin-bottom: 16px;
}
.glass .field > span:first-child {
  display: flex;
  justify-content: space-between;
  font: 500 13px var(--sans);
  color: var(--text-2);
  margin-bottom: 6px;
}
.glass .field > span:first-child i {
  font-style: normal;
  color: var(--dim);
  font-weight: 400;
}
.glass .prompt {
  height: 44px;
  background: var(--pane);
  border-radius: var(--r);
}
.glass .prompt input {
  font: 400 15px var(--sans);
  padding: 0 14px;
  height: 100%;
}
.reveal {
  font: 500 12px var(--sans);
  color: var(--dim);
  background: none;
  border: 0;
  padding: 0 14px;
  height: 100%;
  cursor: pointer;
  border-radius: 0 8px 8px 0;
}
.reveal:hover {
  color: var(--text);
}
.glass .btn.go {
  width: 100%;
  height: 44px;
  margin-top: 6px;
  font: 600 14.5px var(--sans);
}
.glass .btn.go .arrow {
  display: inline-block;
  margin-left: 6px;
  transition: transform 0.2s;
}
.glass .btn.go:hover .arrow {
  transform: translateX(3px);
}
.glass .btn.go:disabled {
  cursor: progress;
  opacity: 0.85;
}
.spin {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgb(var(--tint) / 0.2);
  border-top-color: currentColor;
  animation: rot 0.7s linear infinite;
  display: inline-block;
  vertical-align: -3px;
  margin-right: 8px;
}
@keyframes rot {
  to {
    transform: rotate(360deg);
  }
}
.glass .error {
  margin: 0 0 14px;
  padding: 9px 12px;
  border-radius: var(--r);
  background: var(--red-soft);
  color: var(--red-text);
  font-size: 13px;
}
.glass .error:empty {
  display: none;
}
.card-foot {
  border-top: 1px solid var(--line);
  border-radius: 0 0 var(--r-card) var(--r-card);
  padding: 14px 32px;
  text-align: center;
  font-size: 13.5px;
  color: var(--dim);
}
.card-foot.secured {
  padding: 10px 32px;
  font: 400 12px var(--sans);
  background: var(--raised);
  color: var(--dim);
}
.card-foot.secured b {
  color: var(--dim-2);
  font-weight: 500;
}
.card-foot + .card-foot {
  border-radius: 0 0 var(--r-card) var(--r-card);
}
.card-foot:has(+ .card-foot) {
  border-radius: 0;
}
.auth-visual {
  display: none;
}
@media (min-width: 980px) {
  .auth {
    grid-template-columns: minmax(440px, 5fr) minmax(0, 6fr);
  }
  .auth-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 40px 48px;
    min-height: 100dvh;
    position: relative;
    border-left: 1px solid var(--line);
    background: var(--raised);
  }
}
.orbit {
  position: relative;
  width: min(46vh, 30vw, 460px);
  aspect-ratio: 1;
  flex: none;
}
.orbit img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.orbit .rings {
  inset: -8%;
  width: 116%;
  height: 116%;
  animation: rot 140s linear infinite;
}
.orbit .rings.slow {
  animation-duration: 260s;
  animation-direction: reverse;
  inset: -22%;
  width: 144%;
  height: 144%;
  opacity: 0.4;
}
.tagline {
  text-align: center;
  max-width: 460px;
}
.tagline h2 {
  font: 700 clamp(26px, 3vw, 36px) / 1.12 var(--sans);
  letter-spacing: -0.025em;
  margin: 0 0 10px;
  color: var(--text);
}
.tagline p {
  margin: 0;
  color: var(--dim);
  font-size: 15px;
}
.snippet {
  width: min(460px, 100%);
  border-radius: var(--r-card);
  background: var(--pane);
  border: 1px solid var(--line);
  font: 14px/1.6 var(--sans);
  overflow: hidden;
}
.snippet-h {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}
.snippet-h i {
  display: none;
}
.snippet-h span {
  margin-left: 0;
}
.snippet-b {
  padding: 14px 16px 16px;
  white-space: pre-wrap;
  color: var(--text-2);
}
.snippet-b .m {
  color: var(--mint-text);
  font-weight: 600;
}
.snippet-b .a {
  color: var(--amber);
}
.snippet-b .d {
  color: var(--dim-2);
}
@media (max-width: 480px) {
  .glass-body {
    padding: 26px 20px 22px;
  }
  .card-foot {
    padding: 13px 20px;
  }
}

/* ================================================================
   APP SHELL
   ================================================================ */
.shell {
  position: relative;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  height: 100dvh;
  background: var(--bg);
}
.side {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border-right: 1px solid var(--line);
  min-height: 0;
  overflow: hidden;
}
/* top left: the account switcher (name, plan, ⇕) */
.side-head {
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 10px;
  flex: none;
}
.acct-sw {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 0 8px;
  border: 0;
  border-radius: var(--r);
  background: none;
  color: var(--text);
  font: 600 14px var(--sans);
  cursor: pointer;
  text-align: left;
}
.acct-sw:hover,
.acct-sw[aria-expanded='true'] {
  background: var(--raised);
}
.sw-av,
.me-av {
  flex: none;
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--mint);
  color: var(--mint-ink);
  font: 700 11px var(--sans);
}
.sw-n {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.plan {
  flex: none;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--chip);
  color: var(--text-2);
  font: 600 11.5px var(--sans);
}
.acct-sw .ic {
  margin-left: auto;
  flex: none;
  color: var(--dim);
}
/* Find (press F) */
.side-find {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 10px 10px;
  height: 36px;
  padding: 0 6px 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--pane);
  color: var(--dim);
  flex: none;
}
.side-find:focus-within {
  border-color: var(--dim);
}
.side-find .side-find-i {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  font: 14px var(--sans);
  outline: 0;
}
.side-find .side-find-i::-webkit-search-cancel-button {
  display: none;
}
.side-find kbd {
  flex: none;
  min-width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--pane);
  color: var(--dim);
  font: 500 11px var(--sans);
}
.side-links {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 0 10px 10px;
  overflow-y: auto;
  min-height: 0;
  flex: 1;
}
.side-sep {
  height: 1px;
  margin: 8px 6px;
  background: var(--line);
  flex: none;
}
.side-sep:first-child {
  display: none;
}
.side a.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 0 10px;
  border-radius: var(--r);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  position: relative;
  flex: none;
}
.side a.nav[hidden] {
  display: none;
}
.side a.nav .ic {
  flex: none;
  color: var(--text-2);
}
.side a.nav:hover {
  background: var(--raised);
}
.side a.nav.on {
  background: var(--chip);
  color: var(--text);
  font-weight: 500;
}
.side a.nav .badge {
  margin-left: auto;
}
/* "Action required" card */
.side-notice {
  margin: 8px 10px;
  padding: 12px;
  border: 1px solid rgb(var(--amber-rgb) / 0.35);
  border-radius: var(--r-card);
  background: var(--amber-soft);
  display: grid;
  gap: 6px;
  font-size: 13px;
  flex: none;
}
.side-notice b {
  font-size: 13.5px;
}
.side-notice p {
  margin: 0;
  color: var(--text-2);
}
.side-notice .btn {
  justify-content: center;
  background: var(--pane);
  color: var(--text);
  border: 1px solid var(--line);
}
/* bottom: you, ⋯ and the bell */
.side-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  min-width: 0;
  flex: none;
}
.side-foot .me-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.foot-b {
  position: relative;
  flex: none;
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--pane);
  color: var(--text-2);
  cursor: pointer;
}
.foot-b:hover {
  color: var(--text);
  background: var(--raised);
}
.bell.has::after {
  content: '';
  position: absolute;
  top: 2px;
  right: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2f6fec;
  border: 2px solid var(--bg);
}
/* small menus (account switcher, ⋯, section picker) */
.pop {
  position: fixed;
  z-index: 300;
  min-width: 220px;
  max-width: 300px;
  padding: 6px;
  background: var(--pane);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: 0 8px 24px var(--shadow);
  display: grid;
  gap: 1px;
}
.pop-who {
  display: grid;
  padding: 6px 10px 8px;
  font-size: 13.5px;
}
.pop-who span {
  color: var(--dim);
  font-size: 12.5px;
}
.pop-i {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--text);
  font: 500 14px var(--sans);
  text-decoration: none;
  text-align: left;
  cursor: pointer;
}
.pop-i svg {
  flex: none;
  width: 16px;
  height: 16px;
}
.pop-i .ic {
  color: var(--text-2);
}
.pop-i:hover,
.pop-i:focus-visible {
  background: var(--raised);
  outline: 0;
}
.pop-sep {
  height: 1px;
  margin: 4px 0;
  background: var(--line);
}
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  border-radius: 6px;
  font: 600 12px var(--sans);
  background: var(--mint-soft);
  color: var(--mint-text);
}
.badge.warn {
  background: var(--amber-soft);
  color: var(--amber);
}
.col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  height: 56px;
  flex: none;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  font: 500 14px var(--sans);
  white-space: nowrap;
}
.tb-l,
.tb-r {
  display: flex;
  align-items: center;
  min-width: 0;
}
.tb-r {
  justify-content: flex-end;
}
.tb-c {
  color: var(--text);
  font-weight: 500;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 40vw;
}
.tb-ctx {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 8px;
  border: 0;
  border-radius: var(--r);
  background: none;
  color: var(--text);
  font: 600 14px var(--sans);
  cursor: pointer;
}
.tb-me {
  display: none;
}
.tb-ctx .ic {
  color: var(--dim);
}
.tb-ctx:hover,
.tb-ctx[aria-expanded='true'] {
  background: var(--raised);
}
.main {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
}

/* pages */
.page {
  padding: 36px 36px 56px;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}
.page-narrow {
  max-width: 920px;
}
.page h2 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.lede {
  margin: 0 0 24px;
  color: var(--dim);
  font-size: 14.5px;
  max-width: 64ch;
}

/* panes */
.pane,
.card {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--pane);
  margin-bottom: 16px;
}
.card {
  padding: 20px;
  margin-bottom: 12px;
}
.card.row {
  flex-wrap: nowrap;
}
.pane-h {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  font: 600 15px var(--sans);
  color: var(--text);
  border-radius: var(--r-card) var(--r-card) 0 0;
}
.pane-h .right {
  margin-left: auto;
  font-weight: 400;
  font-size: 13px;
  color: var(--dim);
}
.pane-b {
  padding: 20px;
}
.pane-b.flush {
  padding: 0;
}
.pane .card {
  border: 0;
  padding: 0;
  margin: 0;
  background: none;
}

/* controls */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--pane);
  color: var(--text);
  font: 600 14px var(--sans);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.btn:hover {
  background: var(--raised);
  text-decoration: none;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn.primary {
  background: var(--btn);
  border-color: var(--btn);
  color: var(--mint-ink);
}
.btn.primary:hover {
  background: var(--btn-hover);
  border-color: var(--btn-hover);
}
.btn.danger {
  color: var(--red);
  border-color: rgb(var(--red-rgb) / 0.4);
}
.btn.danger:hover {
  background: var(--red-soft);
}
.btn.ghost {
  border-color: transparent;
  background: none;
  color: var(--dim);
}
.btn.ghost:hover {
  background: var(--raised);
  color: var(--text);
}
.btn.ghost.danger {
  color: var(--red);
}
.btn.sm {
  height: 32px;
  padding: 0 12px;
  font-size: 13px;
}
.btn.big {
  height: 48px;
  font-size: 15px;
}
.btn.block {
  width: 100%;
}
.icon-btn {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: var(--r);
  background: none;
  color: var(--dim);
  font: 16px var(--sans);
  cursor: pointer;
  text-decoration: none;
}
.icon-btn:hover {
  background: var(--raised);
  color: var(--text);
  text-decoration: none;
}

.field {
  display: block;
  margin-bottom: 14px;
}
.field > span:first-child {
  display: block;
  margin-bottom: 6px;
  font: 500 13px var(--sans);
  color: var(--text-2);
}
.field > span:first-child i {
  margin-left: 6px;
  font-style: normal;
  opacity: 0.8;
}
.prompt {
  display: flex;
  align-items: center;
  min-height: 40px;
  background: var(--pane);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.prompt:focus-within {
  border-color: var(--dim);
  outline: 0;
}
input,
textarea,
select {
  width: 100%;
  min-width: 0;
  font: 14px var(--sans);
  color: var(--text);
  background: var(--pane);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 9px 12px;
}
input::placeholder,
textarea::placeholder {
  color: var(--dim-2);
}
input:focus,
textarea:focus,
select:focus {
  outline: 0;
  border-color: var(--dim);
}
.prompt input {
  border: 0;
  background: none;
  padding: 9px 12px;
}
.prompt input:focus {
  outline: 0;
}
select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 28px;
  background-image: linear-gradient(45deg, transparent 50%, var(--dim) 50%), linear-gradient(135deg, var(--dim) 50%, transparent 50%);
  background-position: calc(100% - 17px) 55%, calc(100% - 12px) 55%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
input[type='checkbox'],
input[type='radio'] {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 18px;
  height: 18px;
  padding: 0;
  margin: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 4px;
  cursor: pointer;
}
input[type='radio'] {
  border-radius: 50%;
}
input[type='checkbox']:checked,
input[type='radio']:checked {
  background: var(--btn);
  border-color: var(--btn);
}
input[type='checkbox']:checked::after {
  content: '✓';
  color: var(--mint-ink);
  font: 700 11px/1 var(--sans);
}
input[type='radio']:checked::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint-ink);
}
input:disabled {
  opacity: 0.55;
}
textarea {
  resize: vertical;
  line-height: 1.5;
}
.error {
  color: var(--red-text);
  font: 13px var(--sans);
  margin: 6px 0;
}
.error:empty {
  display: none;
}
.switch,
.choice {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font: 14px var(--sans);
}
.choice {
  align-items: flex-start;
  padding: 8px 0;
}
.choice > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.choice .small {
  font: 400 12.5px var(--sans);
  color: var(--dim);
}
.choice input {
  margin-top: 2px;
}

.pill {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  background: var(--raised);
  color: var(--text-2);
  font: 600 12px var(--sans);
  white-space: nowrap;
}
.pill.agent {
  color: var(--mint-text);
  background: var(--mint-soft);
}
.pill.ok {
  color: var(--mint-text);
  background: var(--mint-soft);
}
.pill.warn {
  color: var(--amber);
  background: var(--amber-soft);
}
.pill.bad {
  color: var(--red);
  background: var(--red-soft);
}
button.pill {
  cursor: pointer;
  border: 0;
}
button.pill:hover {
  background: var(--line);
}

.avatar {
  flex: none;
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  border: 0;
  background: var(--mint-soft) !important;
  color: var(--mint-text) !important;
  font: 600 14px var(--sans);
}
.avatar.sm {
  width: 24px;
  height: 24px;
  font-size: 11px;
}
.appicon {
  flex: none;
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--r);
  background: var(--mint-soft);
  color: var(--mint-text);
  font: 600 12px var(--sans);
}

/* status */
.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: 500 13px var(--sans);
  color: var(--dim);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--dim);
  flex: none;
}
.dot.on {
  background: var(--mint);
  border-color: var(--mint);
  animation: pulse 2.4s ease-in-out infinite;
}
.dot.new {
  border-color: var(--amber);
  background: var(--amber);
}
.status.on {
  color: var(--mint);
}
@keyframes pulse {
  50% {
    opacity: 0.45;
  }
}

/* empty */
.empty {
  padding: 32px 20px;
  font: 14px var(--sans);
  color: var(--dim);
  background: var(--raised);
  border-radius: var(--r-card);
  text-align: center;
}
.empty p {
  margin: 0 0 6px;
}
.empty .pr {
  display: none;
}
.empty .small {
  font: 400 12.5px var(--sans);
}

/* ---------- chats ---------- */
.chat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text);
  text-decoration: none !important;
  position: relative;
}
.chat-item:last-child {
  border-bottom: 0;
}
.chat-item:hover {
  background: var(--raised);
}
.chat-item .info {
  flex: 1;
  min-width: 0;
}
.chat-item .title {
  font: 600 14px var(--sans);
  display: flex;
  gap: 8px;
  align-items: center;
}
.chat-item .preview {
  color: var(--dim);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-item.unread .title::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
}
.chat-item .tm {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font: 12px var(--sans);
  color: var(--dim);
}

.chatpane {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--line);
}
.header h1 {
  flex: 1;
  font-size: 15px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.members {
  display: flex;
  gap: 6px;
  padding: 8px 14px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}
.banner {
  padding: 10px 20px;
  background: var(--amber-soft);
  color: var(--amber);
  font: 500 13px var(--sans);
}
.thread {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.thread .empty {
  margin: auto;
}
.msg {
  display: flex;
  gap: 8px;
  max-width: min(78%, 640px);
  align-items: flex-start;
}
.msg.mine {
  align-self: flex-end;
}
.bubble {
  padding: 8px 12px 6px;
  border-radius: var(--r-card);
  background: var(--raised);
  font-size: 14.5px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  min-width: 0;
}
.msg.mine .bubble {
  background: var(--mint-soft);
}
.who {
  font: 600 12px var(--sans);
  color: var(--mint-text);
  margin-bottom: 2px;
}
.msg.mine .who {
  color: var(--dim);
}
.who .muted {
  font-weight: 400;
}
.meta {
  font: 11px var(--sans);
  color: var(--dim);
  text-align: right;
  margin-top: 2px;
}
.mention {
  color: var(--mint);
  font-weight: 500;
}
.sys {
  align-self: center;
  font: 12px var(--sans);
  color: var(--dim);
  padding: 2px 10px;
}
.deliveries {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
  white-space: normal;
}
.attachment {
  display: block;
  margin-top: 6px;
  font: 13px var(--sans);
}
.attachment img {
  max-width: 100%;
  max-height: 260px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  display: block;
}

.composer {
  position: relative;
  flex: none;
  border-top: 1px solid var(--line);
  background: var(--pane);
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px) * 0);
}
.composer .opts {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  align-items: center;
}
.composer .opts input {
  max-width: 260px;
  height: 28px;
  padding: 4px 8px;
}
.composer .files {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.composer .files:not(:empty) {
  margin-bottom: 8px;
}
.composer .bar {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  background: var(--pane);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 4px 4px 4px 12px;
}
.composer .bar:focus-within {
  border-color: var(--dim);
  outline: 0;
}
.composer textarea {
  flex: 1;
  border: 0;
  background: none;
  box-shadow: none !important;
  outline: 0 !important;
  resize: none;
  padding: 7px 4px;
  font: 14px/1.5 var(--sans);
  max-height: 140px;
}
.composer .bar .btn.send {
  width: 36px;
  height: 36px;
  padding: 0;
}
.seg {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.seg button {
  height: 30px;
  padding: 0 12px;
  background: none;
  border: 0;
  color: var(--dim);
  font: 500 13px var(--sans);
  cursor: pointer;
}
.seg button.on {
  background: var(--mint-soft);
  color: var(--mint-text);
  font-weight: 600;
}
.suggest {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: calc(100% - 4px);
  background: var(--pane);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: 0 8px 24px var(--shadow);
  overflow: hidden;
  z-index: 5;
}
.suggest button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: none;
  border: 0;
  color: var(--text);
  font: 14px var(--sans);
  cursor: pointer;
  text-align: left;
}
.suggest button:hover {
  background: var(--mint-soft);
}

/* ---------- approvals / agents ---------- */
.approval textarea.body {
  font: 14px/1.5 var(--sans);
}
.agent-card {
  padding: 0;
  overflow: hidden;
}
.agent-card .top {
  padding: 20px;
}
.agent-card .actions {
  display: flex;
  gap: 8px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.agent-card .actions .btn {
  flex: 1;
}
.agent-card .actions .btn.danger {
  flex: 0 0 auto;
}
details {
  border-top: 1px solid var(--line);
  padding: 0 20px;
}
summary {
  cursor: pointer;
  padding: 12px 0;
  font: 600 13px var(--sans);
  color: var(--text-2);
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
summary::before {
  content: '▸ ';
  color: var(--dim);
}
details[open] > summary::before {
  content: '▾ ';
}
details[open] {
  padding-bottom: 12px;
}

/* ---------- tables ---------- */
.ctable {
  width: 100%;
  border-collapse: collapse;
  font: 14px var(--sans);
}
.ctable th {
  text-align: left;
  font: 500 13px var(--sans);
  color: var(--dim);
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.ctable td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
}
.ctable tr:last-child td {
  border-bottom: 0;
}
.ctable tbody tr:hover {
  background: var(--bg);
}
.ctable td.act {
  text-align: right;
  white-space: nowrap;
}
.ctable td.act .btn + .btn {
  margin-left: 6px;
}
.ctable .id {
  color: var(--text);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.ctable .id.me::after {
  content: ' (you)';
  color: var(--dim);
  font-weight: 400;
}
.ctable td.wrap {
  white-space: normal;
}
.ctable .dimtd {
  color: var(--dim);
}

.subnav {
  display: flex;
  gap: 4px;
  margin: 16px 0 20px;
  overflow-x: auto;
  font: 500 14px var(--sans);
}
.subnav a {
  padding: 8px 14px;
  color: var(--dim);
  border-radius: var(--r);
  text-decoration: none !important;
  white-space: nowrap;
}
.subnav a:hover {
  color: var(--text);
}
.subnav a.on {
  color: var(--mint-text);
  background: var(--mint-soft);
  font-weight: 600;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.stat {
  display: flex;
  flex-direction: column-reverse;
  gap: 6px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--pane);
}
.stat b {
  display: block;
  font: 700 28px/1.15 var(--sans);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.stat span {
  font: 500 13px var(--sans);
  color: var(--dim);
}

/* activity list */
.feed {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  font: 13.5px/1.7 var(--sans);
  max-height: 420px;
  overflow: auto;
}
.feed li {
  display: flex;
  gap: 12px;
  padding: 3px 20px;
}
.feed li:hover {
  background: var(--raised);
}
.feed time {
  color: var(--dim-2);
  flex: none;
  min-width: 8ch;
}
.feed .actor {
  color: var(--text);
  font-weight: 600;
  flex: none;
  min-width: 11ch;
  max-width: 16ch;
  overflow: hidden;
  text-overflow: ellipsis;
}
.feed .act {
  min-width: 0;
  overflow-wrap: anywhere;
}
.feed .act.ok {
  color: var(--mint-text);
}
.feed .act.warn {
  color: var(--amber);
}
.feed .act.bad {
  color: var(--red);
}
.feed .none {
  color: var(--dim);
  padding: 8px 20px;
}

/* ---------- dialog / terminal ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(16, 24, 20, 0.4);
  animation: fade 0.15s both;
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
.dialog {
  width: min(520px, 100%);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  background: var(--pane);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: 0 8px 24px var(--shadow);
  animation: rise 0.2s ease both;
}
.dialog > h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 60px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  font: 600 17px var(--sans);
  letter-spacing: -0.01em;
  color: var(--text);
}
.dialog > h2 .esc {
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--dim);
  font: 500 12px var(--sans);
  padding: 3px 9px;
  cursor: pointer;
}
.dialog-b {
  padding: 20px;
}
.dialog h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--dim);
  margin: 16px 0 4px;
}
.dialog p {
  margin: 0 0 10px;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0 16px;
}
.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--pane);
  color: var(--text);
  font: 500 13px var(--sans);
  cursor: pointer;
  transition: background 0.12s;
}
.tile:hover,
.tile.on {
  background: var(--mint-soft);
  color: var(--mint-text);
}
.tile .e {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--r);
  background: var(--mint-soft);
  color: var(--mint-text);
  font: 600 13px var(--sans);
}
.steps {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 12px;
  font: 500 13px var(--sans);
  color: var(--dim);
}
.steps i {
  width: 22px;
  height: 4px;
  border-radius: 2px;
  background: var(--line);
}
.steps i.on {
  background: var(--mint);
}
.steps span {
  margin-left: 6px;
}
.term {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--raised);
  overflow: hidden;
  margin: 12px 0 10px;
}
.term-h {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 8px 14px;
  border-bottom: 1px solid var(--line);
  font: 500 12px var(--sans);
  color: var(--dim);
}
.term-h i {
  display: none;
}
.term-h span {
  margin-left: 0;
}
.cmd {
  padding: 12px 14px;
  position: relative;
  font: 13px/1.6 var(--mono);
  color: var(--text);
  word-break: break-all;
  user-select: all;
  min-height: 48px;
}
.live {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 500 13px var(--sans);
  color: var(--amber);
  margin-top: 12px;
}
.live .dot {
  border-color: var(--amber);
  background: var(--amber);
  animation: pulse 1.4s ease-in-out infinite;
}
.live.done {
  color: var(--mint);
}
.live.done .dot {
  border-color: var(--mint);
  background: var(--mint);
  animation: none;
}
.bigcode,
.code {
  margin: 8px 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--raised);
  color: var(--text);
  font: 600 18px var(--mono);
  letter-spacing: 0.04em;
  word-break: break-all;
  user-select: all;
}
.code {
  font-size: 14px;
}

.list-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}
.list-row:last-child {
  border-bottom: 0;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  max-width: min(420px, calc(100vw - 32px));
  padding: 12px 16px;
  background: var(--pane);
  border: 1px solid var(--line);
  border-radius: var(--r);
  font: 500 14px var(--sans);
  box-shadow: 0 8px 24px var(--shadow);
  animation: rise 0.2s both;
}

/* ================================================================
   PHONE
   ================================================================ */
@media (max-width: 760px) {
  .shell {
    display: flex;
    flex-direction: column;
  }
  .col {
    order: 1;
    flex: 1;
  }
  .side {
    order: 2;
    flex-direction: row;
    border-right: 0;
    border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    flex: none;
  }
  .brand,
  .side-label,
  .side-head,
  .side-find,
  .side-sep,
  .side-notice,
  .side-foot {
    display: none;
  }
  .side {
    overflow: visible;
  }
  .side-links {
    flex: 1;
  }
  .topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
  .tb-l {
    display: none;
  }
  .tb-me {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin-left: 6px;
    border: 0;
    border-radius: 50%;
    background: var(--mint);
    color: var(--mint-ink);
    font: 700 13px var(--sans);
  }
  .tb-c {
    max-width: none;
  }
  .side-links {
    flex-direction: row;
    width: 100%;
    padding: 4px 6px;
    gap: 2px;
    overflow-x: auto;
  }
  .side a.nav {
    flex: 1 0 auto;
    min-width: 64px;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    height: 52px;
    padding: 0 8px;
    font-size: 12px;
  }
  .side a.nav .badge {
    position: absolute;
    top: 2px;
    right: calc(50% - 24px);
    margin: 0;
    min-width: 18px;
    height: 18px;
    font-size: 11px;
  }
  .topbar {
    padding: 0 16px;
    height: 52px;
  }
  .topbar .right {
    display: none;
  }
  .page {
    padding: 20px 16px 32px;
  }
  .page h2 {
    font-size: 24px;
  }
  .btn {
    height: 44px;
  }
  .btn.sm {
    height: 44px;
  }
  .icon-btn {
    width: 44px;
    height: 44px;
  }
  .toast {
    right: 16px;
    left: 16px;
    bottom: 16px;
    max-width: none;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .tiles {
    grid-template-columns: repeat(2, 1fr);
  }
  input,
  textarea,
  select {
    font-size: 16px;
  }
  .composer textarea {
    font-size: 16px;
  }
  .msg {
    max-width: 92%;
  }
  .thread {
    padding: 12px;
  }
  .overlay {
    place-items: end center;
    padding: 0;
  }
  .dialog {
    width: 100%;
    max-height: 92dvh;
    border-radius: var(--r-card) var(--r-card) 0 0;
  }
  /* tables become stacked rows */
  .ctable thead {
    display: none;
  }
  .ctable,
  .ctable tbody,
  .ctable tr,
  .ctable td {
    display: block;
  }
  .ctable tr {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line-soft);
  }
  .ctable tr:last-child {
    border-bottom: 0;
  }
  .ctable td {
    padding: 2px 0;
    border: 0;
    white-space: normal;
  }
  .ctable td[data-label]:not(.first)::before {
    content: attr(data-label) ' ';
    color: var(--dim);
    font-size: 12px;
    margin-right: 6px;
  }
  .ctable td.act {
    text-align: left;
    padding-top: 8px;
  }
  .feed li {
    flex-wrap: wrap;
    gap: 0 10px;
    padding: 4px 16px;
  }
  .feed .act {
    flex-basis: 100%;
    order: 3;
  }
  .glass .prompt input {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .orbit .rings {
    animation: none !important;
  }
}

@media (max-width: 760px) {
  .subnav a {
    padding: 8px 10px;
  }
}

/* ================================================================
   BOARDROOM (rooms | room | people and agents)
   ================================================================ */
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.main.flush {
  overflow: hidden;
}
.pres {
  display: inline-block;
  width: 1.1ch;
  flex: none;
  font: 13px/1 var(--sans);
  text-align: center;
  cursor: help;
}
.pres.listening {
  color: var(--mint);
}
.pres.on_demand {
  color: var(--dim);
}
.pres.offline {
  color: var(--dim-2);
}
.pres.none {
  cursor: default;
}
.boardroom {
  position: relative;
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr) 272px;
  overflow: hidden;
}
.rooms,
.nicks {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--pane);
}
.rooms {
  border-right: 1px solid var(--line);
}
.nicks {
  border-left: 1px solid var(--line);
}
.col-h {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: none;
  height: 52px;
  padding: 0 8px 0 20px;
  border-bottom: 1px solid var(--line);
  font: 600 15px var(--sans);
  color: var(--text);
}
.col-b {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 6px 0 12px;
}
.sec {
  margin-bottom: 8px;
}
.sec-h,
.sec-t {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px 4px;
  font: 600 12px var(--sans);
  color: var(--dim);
}
.sec-t {
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  margin-top: 6px;
}
.sec-h i {
  font-style: normal;
  color: var(--dim-2);
}
.none {
  padding: 4px 20px;
  font: 13px var(--sans);
  color: var(--dim);
}
.room-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  margin: 1px 8px;
  padding: 0 12px;
  border-radius: var(--r);
  font: 500 14px var(--sans);
  color: var(--text-2);
  text-decoration: none;
  position: relative;
}
.room-item:hover {
  background: var(--raised);
  color: var(--text);
  text-decoration: none;
}
.room-item.on {
  background: var(--mint-soft);
  color: var(--mint-text);
  font-weight: 600;
}
.room-item .rk {
  width: 1.1ch;
  flex: none;
  color: var(--dim);
  text-align: center;
}
.room-item .rn {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.room-item.unread .rn {
  color: var(--text);
  font-weight: 600;
}
.room-item .ov {
  color: var(--dim);
}
.room-item .badge {
  height: 16px;
  min-width: 18px;
  font-size: 11px;
}
.invite {
  padding: 10px 14px;
  margin: 4px 8px;
  border-radius: var(--r);
  background: var(--amber-soft);
}
.invite .rn {
  font: 600 14px var(--sans);
  color: var(--amber);
  overflow-wrap: anywhere;
}
.invite .row {
  margin-top: 6px;
}
.welcome {
  padding: 32px;
  max-width: 680px;
}
.welcome-sm {
  display: none;
}
.empty-room {
  overflow-y: auto;
}

.room {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: var(--bg);
}
.room-h {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  height: 52px;
  padding: 0 12px 0 20px;
  border-bottom: 1px solid var(--line);
}
.room-h .back,
.people-btn,
.drawer-x {
  display: none;
}
.room-t {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}
.room-t h1 {
  display: flex;
  align-items: center;
  gap: 7px;
  font: 600 15px var(--sans);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.room-t .sub {
  font: 13px var(--sans);
  color: var(--dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.people-btn {
  width: auto;
  padding: 0 10px;
  font-size: 13px;
  border-color: var(--line);
}
.scrim {
  display: none;
}

/* the IRC thread */
.thread.irc-thread {
  gap: 0;
  padding: 10px 0 14px;
  background: none;
  font-size: 14px;
}
.thread.irc-thread:focus-visible {
  outline-offset: -2px;
}
.irc {
  display: grid;
  grid-template-columns: 52px minmax(7ch, 16ch) minmax(0, 1fr);
  column-gap: 12px;
  align-items: baseline;
  padding: 3px 20px;
}
.irc:hover {
  background: var(--raised);
}
.irc time {
  font: 12px var(--sans);
  color: var(--dim);
}
.irc .nick {
  font: 600 14px var(--sans);
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nick.agent {
  color: var(--mint-text);
}
.nick.human {
  color: var(--text-2);
}
.nick.me {
  color: var(--blue);
}
.irc .tx {
  min-width: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.5;
}
.irc .dl {
  white-space: normal;
  font: 13px/1.6 var(--sans);
  color: var(--dim);
}
.irc .dl.warn {
  color: var(--amber);
}
.irc .dl.ok {
  color: var(--mint-text);
}
.irc .dl.bad {
  color: var(--red);
}
/* Live states: the agent got it (pulse), the agent is working (moving dots). */
.irc .dl.live,
.irc .dl.typing {
  color: var(--mint);
}
.irc .dl .pulse {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: currentColor;
  vertical-align: middle;
  animation: nodd-pulse 1.4s ease-in-out infinite;
}
.irc .dl .dots {
  display: inline-flex;
  gap: 3px;
  margin-left: 6px;
  vertical-align: middle;
}
.irc .dl .dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  animation: nodd-dot 1.2s ease-in-out infinite;
}
.irc .dl .dots i:nth-child(2) {
  animation-delay: 0.15s;
}
.irc .dl .dots i:nth-child(3) {
  animation-delay: 0.3s;
}
.irc .dl a {
  color: inherit;
  text-decoration: underline dotted;
}
@keyframes nodd-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
@keyframes nodd-dot {
  0%, 80%, 100% { opacity: 0.25; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}
@media (prefers-reduced-motion: reduce) {
  .irc .dl .pulse,
  .irc .dl .dots i {
    animation: none;
  }
}
.irc.sysl .nick,
.irc.sysl .tx {
  color: var(--dim);
  font-weight: 400;
  font-size: 13px;
  font-family: var(--sans);
}
.irc.sysl.local {
  grid-template-columns: 52px minmax(7ch, 16ch) minmax(0, 1fr);
}
.irc.sysl.local::before {
  content: '';
}
.irc.sysl.local .tx {
  white-space: pre-wrap;
}
.irc.sysl.err .tx {
  color: var(--red);
}
.irc.daysep {
  display: block;
  text-align: center;
  padding: 12px 20px 4px;
  font: 500 12px var(--sans);
  color: var(--dim);
}
.irc .attachment {
  display: block;
}

/* composer as a prompt line */
.irc-composer .hint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 12px;
  margin-top: 8px;
  font: 12px var(--sans);
  color: var(--dim);
}
.irc-composer .slash {
  padding: 2px 0;
  border: 0;
  background: none;
  color: var(--dim);
  font: inherit;
  cursor: pointer;
}
.irc-composer .slash:hover {
  color: var(--mint);
}
.irc-composer .tabhint {
  margin-left: auto;
}
.irc-composer .suggest button .pres {
  width: 1.4ch;
}

/* the nick list */
.nick-search {
  flex: none;
  padding: 8px 10px 4px;
}
.nick-row {
  display: flex;
  align-items: center;
  gap: 7px;
  width: calc(100% - 16px);
  min-height: 34px;
  margin: 1px 8px;
  padding: 0 12px 0 10px;
  background: none;
  border: 0;
  border-radius: var(--r);
  color: var(--text-2);
  font: 14px var(--sans);
  text-align: left;
  cursor: pointer;
}
.nick-row.agent .nm {
  color: var(--text);
}
.nick-row:hover:not(:disabled) {
  background: var(--raised);
}
.nick-row:disabled {
  cursor: default;
  opacity: 0.75;
}
.nick-row .mk {
  width: 1.1ch;
  flex: none;
  color: var(--amber);
  text-align: center;
}
.nick-row .nm {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nick-row .own {
  margin-left: auto;
  padding-left: 6px;
  font-size: 11px;
  color: var(--dim);
  white-space: nowrap;
}
.nicks .more {
  display: block;
  padding: 4px 20px 4px 40px;
  background: none;
  border: 0;
  color: var(--dim);
  font: 13px var(--sans);
  cursor: pointer;
}
.nicks .more:hover {
  color: var(--mint);
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  flex: none;
  padding: 10px 20px;
  border-top: 1px solid var(--line);
  font: 12px var(--sans);
  color: var(--dim);
  cursor: help;
}
.legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* quick switcher */
.qs {
  max-height: 46dvh;
  overflow-y: auto;
  margin: 10px 0 6px;
}
.qs button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
  background: none;
  border: 0;
  border-radius: var(--r);
  color: var(--text);
  font: 14px var(--sans);
  text-align: left;
  cursor: pointer;
}
.qs button.on,
.qs button:hover {
  background: var(--mint-soft);
  color: var(--mint-text);
}
.qs .rk {
  width: 1.4ch;
  text-align: center;
  color: var(--dim);
}
.qs .rn {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.qs .kind {
  font-size: 11px;
  color: var(--dim);
}

/* narrower than a wide desktop: the nick list becomes a drawer */
@media (max-width: 1099px) {
  .boardroom {
    grid-template-columns: 248px minmax(0, 1fr);
  }
  .nicks {
    position: absolute;
    z-index: 30;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 88vw);
    visibility: hidden;
    transform: translateX(100%);
    transition: transform 0.18s ease, visibility 0s 0.18s;
    box-shadow: -8px 0 24px var(--shadow);
  }
  .boardroom.drawer .nicks {
    visibility: visible;
    transform: none;
    transition: transform 0.18s ease;
  }
  .boardroom.drawer .scrim {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 20;
    background: rgba(16, 24, 20, 0.4);
  }
  .people-btn,
  .drawer-x {
    display: inline-grid;
  }
  .rooms .people-btn {
    display: none;
  }
}
@media (max-width: 760px) {
  .boardroom {
    grid-template-columns: minmax(0, 1fr);
  }
  .boardroom.has-room .rooms,
  .boardroom:not(.has-room) .room {
    display: none;
  }
  .room-h .back {
    display: inline-grid;
  }
  .rooms .people-btn {
    display: inline-grid;
  }
  .room-h {
    padding-left: 4px;
  }
  .room-t {
    flex-direction: column;
    gap: 0;
  }
  .room-t .sub {
    font-size: 11px;
  }
  .room-item {
    min-height: 44px;
  }
  .welcome-sm {
    display: block;
  }
  .welcome {
    padding: 16px;
  }
  .nick-row {
    min-height: 44px;
  }
  .col-h .icon-btn {
    width: 40px;
    height: 40px;
  }
  .irc {
    display: block;
    padding: 4px 16px;
  }
  .irc time,
  .irc .nick {
    display: inline;
    margin-right: 8px;
  }
  .irc .tx {
    display: inline;
  }
  .irc .dl {
    display: block;
  }
  .irc.sysl.local .tx {
    white-space: pre-wrap;
  }
  .irc-composer .slash:nth-child(-n + 4) {
    display: none;
  }
  .irc-composer .tabhint {
    display: none;
  }
  .irc-composer .hint {
    margin-top: 2px;
  }
}

/* ================================================================
   FLEET
   ================================================================ */
.page.wide {
  max-width: none;
}
.fleet {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.fleet.has-detail {
  grid-template-columns: minmax(0, 1fr) 400px;
}
.fleet-main {
  min-width: 0;
}
.toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.toolbar .grow {
  flex: 1;
  min-width: 0;
}
.toolbar select {
  width: auto;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.chip {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--pane);
  color: var(--text-2);
  font: 500 13px var(--sans);
  cursor: pointer;
}
.chip:hover {
  color: var(--text);
  background: var(--raised);
}
.chip i {
  margin-left: 7px;
  font-style: normal;
  color: var(--dim);
}
.chip.on {
  color: var(--mint-text);
  background: var(--mint-soft);
  font-weight: 600;
}
.chip.on i {
  color: var(--mint-text);
}
.bulk {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 14px;
  margin-bottom: 10px;
  border-radius: var(--r);
  background: var(--mint-soft);
  font: 500 13px var(--sans);
}
.bulk b {
  margin-right: 6px;
  color: var(--mint-text);
}
.amber {
  color: var(--amber);
}
.fleet-t th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--pane);
}
.fleet-t th.ck,
.fleet-t td.ck {
  width: 34px;
  padding-right: 0;
}
.fleet-t td.gl,
.fleet-t th.gl {
  width: 22px;
  padding-left: 6px;
  padding-right: 0;
}
.fleet-t tbody tr {
  cursor: pointer;
}
.fleet-t td {
  white-space: nowrap;
}
.fleet-t td.nm {
  white-space: normal;
}
.fleet-t td.ck input {
  display: block;
}
.fleet-t tbody tr.on {
  background: var(--mint-soft);
}
.fleet-t tr.arch .id {
  color: var(--dim);
  font-weight: 400;
}
.fleet-t .id {
  text-decoration: none;
}
.fleet-t .id:hover {
  color: var(--mint-text);
}
.fleet-t td.st {
  text-align: right;
  white-space: nowrap;
}
.fleet-t td.st .pill + .pill {
  margin-left: 4px;
}
.fleet-t .meta {
  display: none;
}
.fleet-t td.nm {
  width: 99%;
}
.has-detail .fleet-t td:nth-child(n + 4):nth-child(-n + 7),
.has-detail .fleet-t th:nth-child(n + 4):nth-child(-n + 7) {
  display: none;
}
.has-detail .fleet-t .meta {
  display: block;
  margin-top: 1px;
  font-size: 11px;
  color: var(--dim);
  font-weight: 400;
}

.fleet-detail {
  position: sticky;
  top: 0;
  align-self: start;
  max-height: calc(100dvh - 64px - 72px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--pane);
  padding-bottom: 8px;
}
.dhead {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 10px 0 16px;
  border-bottom: 1px solid var(--line);
}
.dhead .icon-btn:first-child {
  display: none;
}
.dname {
  font: 600 15px var(--sans);
  overflow-wrap: anywhere;
}
.dsub {
  padding: 12px 16px 0;
  font: 13px var(--sans);
  color: var(--dim);
}
.dpres {
  display: flex;
  gap: 10px;
  margin: 8px 16px 4px;
  padding: 12px;
  border-radius: var(--r);
  background: var(--raised);
  font-size: 13px;
  line-height: 1.5;
}
.dpres .pres {
  margin-top: 3px;
}
.dactions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 16px;
}
.fleet-detail .pad {
  display: flex;
  margin: 0 16px 6px;
}
.dsec {
  padding: 4px 16px 6px;
  border-top: 1px solid var(--line-soft);
  margin-top: 8px;
}
.dsec h3 {
  margin: 12px 0 8px;
  font: 600 12px var(--sans);
  color: var(--dim);
}
.dsec .feed li {
  padding-left: 0;
  padding-right: 0;
}
.kv {
  display: flex;
  gap: 12px;
  padding: 3px 0;
  font-size: 13px;
}
.kv span:first-child {
  flex: none;
  width: 76px;
  color: var(--dim);
}
.kv span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.access {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  flex-wrap: wrap;
}
.access select {
  width: auto;
  max-width: 100%;
  padding-top: 5px;
  padding-bottom: 5px;
  font-size: 12px;
}

@media (max-width: 1099px) {
  .fleet.has-detail {
    grid-template-columns: minmax(0, 1fr);
  }
  .fleet.has-detail .fleet-main {
    display: none;
  }
  .fleet-detail {
    position: static;
    max-height: none;
  }
  .dhead .icon-btn:first-child {
    display: inline-grid;
  }
  .dhead .closer {
    display: none;
  }
  .has-detail .fleet-t td:nth-child(n + 4):nth-child(-n + 7) {
    display: table-cell;
  }
}
@media (max-width: 760px) {
  .toolbar select {
    max-width: 44%;
  }
  .chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-right: -16px;
    padding-bottom: 4px;
  }
  .chip {
    flex: none;
    min-height: 44px;
  }
  .fleet-t thead {
    display: none;
  }
  .fleet-t tbody tr {
    display: grid;
    grid-template-columns: 34px 18px minmax(0, 1fr) auto;
    align-items: center;
    padding: 4px 8px 4px 0;
    min-height: 52px;
  }
  .fleet-t tbody td {
    display: block;
    padding: 0;
  }
  .fleet-t tbody td.ck {
    width: auto;
    padding: 0 0 0 12px;
  }
  .fleet-t tbody td.gl {
    width: auto;
    padding: 0;
  }
  .fleet-t tbody td.nm {
    width: auto;
    padding-left: 6px;
  }
  .fleet-t tbody td:nth-child(n + 4):nth-child(-n + 7),
  .has-detail .fleet-t tbody td:nth-child(n + 4):nth-child(-n + 7) {
    display: none;
  }
  .fleet-t .meta {
    display: block;
    margin-top: 1px;
    font-size: 11px;
    color: var(--dim);
    font-weight: 400;
  }
  .fleet-t tbody td.ck input {
    width: 20px;
    height: 20px;
  }
  .fleet-detail {
    border-left: 0;
    border-right: 0;
    margin: 0 -16px;
    border-radius: 0;
  }
}

.fleet-t .meta {
  text-align: left;
}
.access {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 8px;
}
.access .arow {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  padding-left: 36px;
}
.access .arow select {
  flex: 1;
}

.col-h .people-btn {
  width: auto;
  height: 28px;
  margin: 0 4px;
}
.room-t {
  flex: 1 1 0;
}
.room-t h1 {
  flex: 0 1 auto;
  min-width: 4ch;
}
.room-t .sub {
  flex: 1 1 0;
  min-width: 0;
}
.room-h .spacer {
  flex: 0;
}

/* ---- Markdown in chat ---- */
.irc .tx.md { white-space: normal; }
.irc .tx.md > :first-child { margin-top: 0; }
.irc .tx.md > :last-child { margin-bottom: 0; }
.md p { margin: 0 0 8px; }
.md .md-h { font-family: var(--sans); font-weight: 600; color: var(--text); margin: 12px 0 6px; letter-spacing: -0.01em; }
.md .md-h1, .md .md-h2 { font-size: 15px; }
.md .md-h3, .md .md-h4, .md .md-h5, .md .md-h6 { font-size: 14px; }
.md strong { color: var(--text); font-weight: 600; }
.md em { font-style: italic; }
.md a { color: var(--mint); text-decoration: underline; text-underline-offset: 2px; }
.md .md-c { font: 12.5px var(--mono); background: var(--raised); border-radius: 6px; padding: 1px 5px; color: var(--text); overflow-wrap: anywhere; }
.md .md-code { margin: 6px 0 10px; padding: 10px 12px; background: var(--raised); border: 1px solid var(--line); border-radius: var(--r); overflow-x: auto; white-space: pre; }
.md .md-code code { font: 12.5px/1.55 var(--mono); color: var(--text); }
.md .md-list { margin: 2px 0 8px; padding-left: 20px; }
.md .md-list li { margin: 2px 0; }
.md .md-list li::marker { color: var(--dim); }
.md .md-list .md-d1 { margin-left: 16px; }
.md .md-list .md-d2 { margin-left: 32px; }
.md .md-list .md-d3 { margin-left: 48px; }
.md .md-quote { margin: 4px 0 8px; padding: 2px 10px; border-left: 1px solid var(--line); color: var(--dim); }
.md .md-hr { border: 0; border-top: 1px solid var(--line); margin: 10px 0; }
.md .md-table { overflow-x: auto; margin: 6px 0 10px; }
.md table { border-collapse: collapse; font-size: 13px; }
.md th, .md td { border: 1px solid var(--line); padding: 4px 10px; text-align: left; vertical-align: top; }
.md th { font: 600 13px var(--sans); color: var(--dim); background: var(--raised); }

.nick-row .aka { color: var(--dim); font-size: 0.92em; }
.aka-form { display: flex; gap: 6px; align-items: center; }
.aka-form input { flex: 1; min-width: 0; }

.thread .older {
  align-self: center;
  margin: 6px auto 10px;
}

.trace {
  font-family: var(--mono);
  max-height: 60vh;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 12px;
}

/* hideable side panels (topbar toggles, Ctrl+\) */
.topbar .panes {
  margin-left: auto;
  display: flex;
  gap: 4px;
  padding-left: 12px;
}
.pane-t {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  font: 500 14px var(--sans);
  color: var(--text-2);
  background: none;
  border: 0;
  border-radius: var(--r);
  padding: 0 10px;
  cursor: pointer;
}
.pane-t:hover {
  color: var(--text);
  background: var(--raised);
}
.pane-t.on {
  color: var(--text);
}
@media (max-width: 760px) {
  .pane-only {
    display: none;
  }
}
@media (min-width: 761px) {
  .shell.no-side {
    grid-template-columns: minmax(0, 1fr);
  }
  .shell.no-side .side,
  .boardroom.no-rooms .rooms {
    display: none;
  }
}
@media (min-width: 761px) and (max-width: 1099px) {
  .boardroom.no-rooms {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (min-width: 1100px) {
  .boardroom.no-rooms {
    grid-template-columns: minmax(0, 1fr) 272px;
  }
  .boardroom.no-nicks {
    grid-template-columns: 248px minmax(0, 1fr);
  }
  .boardroom.no-rooms.no-nicks {
    grid-template-columns: minmax(0, 1fr);
  }
  .boardroom.no-nicks .nicks {
    display: none;
  }
}

/* voice: the floating bar with a living orb */
.vbtn.on {
  color: var(--mint-ink);
  background: var(--btn);
  border-color: var(--btn);
}
.vhud {
  --lvl: 0;
  --c: var(--mint);
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: 96px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(560px, calc(100vw - 32px));
  padding: 12px 12px 12px 14px;
  background: var(--pane);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: 0 8px 24px var(--shadow);
  font-family: var(--sans);
}
.vhud[data-phase='speaking'] {
  --c: #8fb7ff;
}
.vhud[data-phase='working'] {
  --c: #f5c46b;
}
.vhud[data-phase='asking'] {
  --c: #ff9e7a;
}
.orb {
  position: relative;
  flex: none;
  width: 40px;
  height: 40px;
}
.orb i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--c);
  transform: scale(calc(0.55 + var(--lvl) * 0.5));
  opacity: 0.9;
}
.orb i:nth-child(1) {
  background: var(--c);
  border: 0;
  inset: 30%;
}
.orb i:nth-child(2) {
  transform: scale(calc(0.7 + var(--lvl) * 0.6));
  opacity: 0.45;
}
.orb i:nth-child(3) {
  transform: scale(calc(0.85 + var(--lvl) * 0.8));
  opacity: 0.2;
}
.vhud[data-phase='working'] .orb i:nth-child(3) {
  animation: orbspin 1.2s linear infinite;
  border-top-color: transparent;
  opacity: 0.6;
}
@keyframes orbspin {
  to {
    rotate: 360deg;
  }
}
.vtext {
  flex: 1;
  min-width: 0;
}
.vstate {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
}
.vcap {
  margin-top: 3px;
  font: 14px/1.4 var(--sans, inherit);
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vnear {
  flex: none;
  font: 500 12px var(--sans);
  color: var(--dim);
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 4px 8px;
  cursor: pointer;
}
.vnear[aria-pressed='true'] {
  color: var(--mint-text);
  background: var(--mint-soft);
}
@media (max-width: 760px) {
  .vhud {
    bottom: 140px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .vhud[data-phase='working'] .orb i:nth-child(3) {
    animation: none;
  }
}

/* Dragging files over a chat */
body.dropping .irc-composer {
  outline: 2px dashed var(--mint);
  outline-offset: 4px;
}
body.dropping .irc-composer::before {
  content: 'Drop files to attach';
  display: block;
  color: var(--mint-text);
  font: 500 13px var(--sans);
  margin-bottom: 6px;
}

/* Two-step sign-in QR code: dark on white so phones can read it */
.qr {
  width: 200px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 6px;
  margin: 4px 0 8px;
}
.qr svg {
  display: block;
  width: 100%;
  height: auto;
}
.theme-t { display: inline-grid; place-items: center; padding: 0 8px; min-width: 32px; min-height: 32px; }
.theme-t svg { width: 14px; height: 14px; }

/* The admin site's sign-in: one centred box. */
.admin-auth {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
  background: var(--bg);
}
.admin-auth .card {
  width: 100%;
  max-width: 380px;
  padding: 32px;
  margin: 0;
  display: grid;
  gap: 4px;
}
.admin-auth .btn.go { width: 100%; justify-content: center; margin-top: 8px; }
.admin-auth .admin-help { margin: 4px 0 0; font-size: 13px; color: var(--dim); }
