/* Story Builder — supplemental styling on top of Tailwind utility classes.
 *
 * Theming: colours are stored as space-separated RGB *channels* so the Tailwind
 * config can read them via rgb(var(--c-x) / <alpha-value>) — that keeps every
 * bg-cream / text-ink/70 / bg-white/60 utility working AND theme-driven. A skin
 * is just a set of channel overrides under [data-theme]; the derived --ink /
 * --cream / --clay below re-resolve automatically for the plain CSS rules. */

:root {
  /* Classic (default, light) */
  --c-ink: 34 30 26;        /* #221e1a text */
  --c-cream: 244 239 230;   /* #f4efe6 page */
  --c-clay: 194 73 10;      /* #c2490a ember accent — matches the Told marketing site */
  --c-surface: 255 255 255; /* cards / inputs (Tailwind `white`) */
  --surface-2: #efe7d4;     /* tinted bubble */
  color-scheme: light;

  --ink: rgb(var(--c-ink));
  --cream: rgb(var(--c-cream));
  --clay: rgb(var(--c-clay));
}

:root[data-theme="evening"] {
  /* Dark, low-glare — warm dark ground, light text, brighter rust accent. */
  --c-cream: 26 22 19;       /* #1a1613 page */
  --c-ink: 240 233 223;      /* #f0e9df text — 14.9:1 */
  --c-clay: 232 149 106;     /* #e8956a accent — 7.7:1 on dark */
  --c-surface: 34 29 24;     /* #221d18 cards */
  --surface-2: #2b241d;
  color-scheme: dark;
}

:root[data-theme="storyteller"] {
  /* High-contrast light — for the 55–85 storyteller. Pair with larger text. */
  --c-cream: 255 253 247;    /* #fffdf7 */
  --c-ink: 20 18 16;         /* #141210 — 18:1 */
  --c-clay: 124 61 19;       /* #7c3d13 — 8.1:1 */
  --c-surface: 255 255 255;
  --surface-2: #f1e9db;
}

body {
  font-feature-settings: "kern" 1, "liga" 1, "onum" 1;
}

/* Told brand mark — "told" + the ember full-stop (matches the marketing site). */
.told-word { display: inline-flex; align-items: flex-end; line-height: 1; letter-spacing: -0.02em; }
.told-ember {
  width: 0.2em; height: 0.2em; border-radius: 50%;
  margin-left: 0.06em; margin-bottom: 0.08em;
  background: radial-gradient(circle at 35% 30%, #ffd98a, #ff8a1e 55%, #e5560b);
  box-shadow: 0 0 10px 1px rgba(255, 138, 30, 0.5);
}

.prose-draft {
  max-width: 38rem;
  line-height: 1.7;
}

.prose-draft h1,
.prose-draft h2,
.prose-draft h3,
.prose-draft h4 {
  font-family: Georgia, Cambria, "Times New Roman", serif;
  margin: 1.2em 0 0.4em;
}

.prose-draft p {
  margin: 0.6em 0;
}

.prose-draft em {
  font-style: italic;
}

.prose-draft strong {
  font-weight: 700;
}

.transcript-bubble.assistant {
  background: var(--surface-2);
  border-left: 3px solid var(--clay);
}

.transcript-bubble.user {
  background: rgb(var(--c-surface));
  border-left: 3px solid rgb(var(--c-ink) / 0.18);
}

.record-pulse {
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.92); }
}

.spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 9999px;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.toast {
  background: var(--ink);
  color: var(--cream);
  padding: 0.6rem 1rem;
  border-radius: 0.4rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  font-size: 0.9rem;
  max-width: 22rem;
}

.toast.error {
  background: #8a2326;
}

.toast.success {
  background: #2f5d3a;
}

textarea, input[type="text"], input[type="email"], input[type="password"], input[type="number"] {
  background: rgb(var(--c-surface));
  color: var(--ink);
}

/* =====================================================================
   REDESIGN · shared foundation + FIRESIDE (the storyteller's surface)
   ---------------------------------------------------------------------
   Fireside is the elderly-first, conversation-only surface: one question
   filling the screen, one warm record button as the whole interaction.
   Everything here is namespaced under `.fs` so it never touches the
   existing Atelier/owner app (index.html). The Atelier surface migrates
   onto these same tokens in a later pass. Sizes are in `rem` so they ride
   the kiosk's larger base font-size (the 55–85 accessibility bump). */

.fs {
  /* — Fireside palette: warm dusk, high-contrast for aging eyes — */
  --fs-ground-top: #f8f0e6;
  --fs-ground: #efe4d6;
  --fs-ink: #2a211c;          /* ~13:1 on the ground */
  --fs-dim: #6a5a4b;          /* ≥5:1 for large text on the ground */
  --fs-card: #fbf6ef;
  --fs-line: rgba(42, 33, 28, 0.16);
  --fs-ember: #a83f27;        /* accent — 5.2:1 as text on the ground */
  --fs-ember-2: #cf7f38;      /* gradient partner for the record button */
  --fs-plum: #5c2f3a;

  --fs-ui: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --fs-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Charter, Georgia, serif;

  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: radial-gradient(120% 85% at 50% -8%, var(--fs-ground-top) 0%, var(--fs-ground) 68%);
  color: var(--fs-ink);
  font-family: var(--fs-serif);
}
.fs *:focus-visible {
  outline: 3px solid var(--fs-ember);
  outline-offset: 3px;
  border-radius: 6px;
}

/* — top brand bar (static; per-session progress fills the ribbon) — */
.fs-top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 1.1rem 1.4rem;
}
.fs-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.fs-brand .fs-mk { width: 1.5rem; height: 1.5rem; color: var(--fs-ember); display: inline-flex; }
.fs-brand .fs-mk svg { width: 100%; height: 100%; display: block; }
.fs-top .fs-sp { flex: 1; }
.fs-ribbon {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--fs-ui);
  font-size: 0.8rem;
  color: var(--fs-dim);
}
.fs-ribbon .fs-bar {
  width: 5.5rem;
  height: 0.4rem;
  border-radius: 999px;
  background: #e4d6c4;
  overflow: hidden;
}
.fs-ribbon .fs-bar > i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--fs-ember-2), var(--fs-ember));
}

/* — the stage: one question, centred — */
.fs-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.4rem 2.6rem;
}
.fs-stage {
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
}
.fs-cue {
  font-family: var(--fs-ui);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fs-ember);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.fs-cue::before { content: ""; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--fs-ember); }
.fs-q {
  font-size: 2.05rem;
  line-height: 1.28;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0;
  max-width: 22ch;
  text-wrap: balance;
}
.fs-hear {
  font-family: var(--fs-ui);
  font-size: 0.95rem;
  color: var(--fs-dim);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--fs-card);
  border: 1px solid var(--fs-line);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  cursor: pointer;
}
.fs-hear svg { width: 1.05rem; height: 1.05rem; }

/* voice on/off (mute) — sits beside "Hear the question" */
.fs-voicerow { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; align-items: center; }
.fs-voicetoggle {
  font-family: var(--fs-ui);
  font-size: 0.9rem;
  color: var(--fs-dim);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: 1px solid var(--fs-line);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
}
.fs-voicetoggle:hover { color: var(--fs-ink); border-color: var(--fs-dim); }
.fs-voicetoggle svg { width: 1rem; height: 1rem; }

/* — the record button is the hero — */
.fs-rec { display: flex; flex-direction: column; align-items: center; gap: 0.85rem; margin-top: 0.4rem; }
.fs-recbtn {
  position: relative;
  width: 6.5rem;
  height: 6.5rem;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  color: #fbf1e6;
  background: radial-gradient(circle at 38% 32%, var(--fs-ember-2), var(--fs-ember));
  box-shadow: 0 14px 34px -10px rgba(168, 63, 39, 0.6);
  display: grid;
  place-items: center;
}
.fs-recbtn svg { width: 2.2rem; height: 2.2rem; }
.fs-recbtn .fs-ring {
  position: absolute;
  inset: -0.55rem;
  border-radius: 50%;
  border: 2px solid var(--fs-ember);
  opacity: 0;
}
.fs-recbtn.rec .fs-ring { animation: fs-ring 1.8s ease-out infinite; }
@keyframes fs-ring { 0% { transform: scale(0.9); opacity: 0.55; } 100% { transform: scale(1.35); opacity: 0; } }
.fs-reclabel { font-size: 1.15rem; font-weight: 500; }
.fs-reclabel small { display: block; font-family: var(--fs-ui); font-size: 0.85rem; color: var(--fs-dim); font-weight: 400; margin-top: 0.15rem; }

/* — the typed alternative, always visible (no hidden affordances) — */
.fs-or { font-family: var(--fs-ui); font-size: 0.85rem; color: var(--fs-dim); margin-top: 0.5rem; }
.fs-field {
  width: 100%;
  background: var(--fs-card);
  color: var(--fs-ink);
  border: 1px solid var(--fs-line);
  border-radius: 1rem;
  padding: 1rem 1.15rem;
  font-family: var(--fs-serif);
  font-size: 1.25rem;
  line-height: 1.5;
  min-height: 6.5rem;
  resize: vertical;
}
.fs-field::placeholder { color: var(--fs-dim); opacity: 0.85; }
.fs-field:focus { outline: none; border-color: var(--fs-ember); box-shadow: 0 0 0 3px rgba(168, 63, 39, 0.18); }

/* — big, unmissable continue — */
.fs-save {
  font-family: var(--fs-ui);
  font-size: 1.2rem;
  font-weight: 600;
  color: #fbf1e6;
  background: var(--fs-ember);
  border: none;
  border-radius: 1rem;
  padding: 1rem 2.2rem;
  cursor: pointer;
  box-shadow: 0 8px 22px -10px rgba(168, 63, 39, 0.7);
}
.fs-save[disabled] { opacity: 0.6; cursor: default; }

/* the gentle "volunteer a story" affordance — shown for participatory+ only */
.fs-volunteer {
  background: none;
  border: none;
  font-family: var(--fs-ui);
  font-size: 1rem;
  color: var(--fs-ember);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-top: 0.4rem;
  padding: 0.5rem;
}
/* quieter than volunteer — passing is fine, just not the main path */
.fs-skip {
  background: none;
  border: none;
  font-family: var(--fs-ui);
  font-size: 0.95rem;
  color: var(--fs-dim);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-top: 0.1rem;
  padding: 0.5rem;
}
.fs-skip[disabled] { opacity: 0.6; cursor: default; }

/* — add-a-photo: a warm, tappable chip; secondary to the record hero — */
.fs-photorow { margin-top: 0.5rem; }
.fs-photo {
  font-family: var(--fs-ui);
  font-size: 1rem;
  color: var(--fs-ember);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--fs-card);
  border: 1px solid var(--fs-line);
  border-radius: 999px;
  padding: 0.6rem 1.25rem;
  cursor: pointer;
  min-height: 44px;
}
.fs-photo svg { width: 1.15rem; height: 1.15rem; }
.fs-photo[disabled] { opacity: 0.7; cursor: default; }

/* — quiet closing / error screens — */
.fs-msg { max-width: 34rem; }
.fs-msg h1 { font-size: 2.1rem; line-height: 1.25; font-weight: 600; margin: 0 0 0.7rem; letter-spacing: -0.015em; }
.fs-msg p { font-family: var(--fs-serif); font-size: 1.2rem; line-height: 1.6; color: var(--fs-dim); margin: 0; }

@media (prefers-reduced-motion: reduce) {
  .fs-recbtn.rec .fs-ring { animation: none; opacity: 0.5; }
}

/* =====================================================================
   REDESIGN · ATELIER (the steward's owner app — the workbench frame)
   ---------------------------------------------------------------------
   The shell: a left nav rail + a top bar + a canvas. Drawn from the same
   foundation as Fireside but green-chromed (the steward's tool), with the
   cast inside it wearing the Fireside ember + subject gold. This first
   pass ships the FRAME; the book-centric rail nav (Cast/Outline/…) and the
   per-view restyle land as renderProject migrates in. Namespaced `.at-`. */

.at-shell {
  --at-bg:#f4f5f3; --at-surf:#ffffff; --at-surf-2:#eef1ee; --at-ink:#182019;
  --at-dim:#5f6b63; --at-line:rgba(20,26,22,.1);
  --at-rail:#1b251f; --at-rail-txt:#c8d3cc; --at-rail-dim:#7e8c83;
  --at-acc:#1f6f52; --at-acc-soft:#e2efe9;
  --at-contrib:#a83f27; --at-contrib-soft:#f2e2dc;
  --at-subject:#9a7420; --at-subject-soft:#f0e8d4;
  --at-ui:system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --at-serif:"Iowan Old Style","Palatino Linotype",Palatino,Charter,Georgia,serif;
  min-height:100vh; display:grid; grid-template-columns:220px minmax(0,1fr);
  background:var(--at-bg);
  /* deliberately no font/color override on the root — existing canvas views
     keep their type + theme ink until each is restyled in a later pass. */
}
@media (max-width:820px){ .at-shell{ grid-template-columns:1fr } .at-rail{ display:none } }

.at-rail{ background:var(--at-rail); color:var(--at-rail-txt); padding:16px 12px; display:flex; flex-direction:column; gap:2px; }
.at-rail .grow{ flex:1 }
.at-brand{ display:flex; align-items:center; gap:9px; padding:6px 8px 14px; color:#eef3ef; font-family:var(--at-serif); font-size:16px; font-weight:600; }
.at-brand > span{ width:23px; height:23px; color:var(--at-acc); display:inline-flex; flex:0 0 auto; }
.at-brand > span svg{ width:100%; height:100% }
.at-nav{ display:flex; align-items:center; gap:10px; padding:8px 10px; border-radius:8px; font-size:13.5px; color:var(--at-rail-dim); cursor:pointer; text-decoration:none; background:none; border:none; width:100%; text-align:left; font-family:var(--at-ui); line-height:1.2; }
.at-nav:hover{ color:#dfe7e2 }
.at-nav.on{ background:rgba(255,255,255,.08); color:#eef3ef }
.at-nav > span{ display:inline-flex; flex:0 0 auto }
.at-nav > span svg{ width:16px; height:16px; color:inherit }
.at-nav.on > span svg{ color:var(--at-acc) }
.at-railfoot{ display:flex; align-items:center; gap:9px; padding:10px 8px 2px; margin-top:6px; border-top:1px solid rgba(255,255,255,.08); }
.at-railfoot .av{ width:28px; height:28px; border-radius:50%; background:var(--at-acc); color:#fff; display:grid; place-items:center; font-family:var(--at-serif); font-weight:600; font-size:13px; flex:0 0 auto; }
.at-railfoot .who{ font-size:12px; color:var(--at-rail-txt); line-height:1.15; min-width:0; }
.at-railfoot .who small{ color:var(--at-rail-dim); font-size:10.5px }

.at-main{ display:grid; grid-template-rows:auto 1fr; min-width:0; }
.at-topbar{ display:flex; align-items:center; gap:12px; padding:11px 20px; background:var(--at-surf); border-bottom:1px solid var(--at-line); }
.at-topbar .at-title{ font-family:var(--at-serif); font-size:17px; font-weight:600; margin:0; letter-spacing:-.01em; color:var(--at-ink); }
.at-topbar .sp{ flex:1 }
.at-tbtn{ font-size:12.5px; color:var(--at-dim); border:1px solid var(--at-line); border-radius:8px; padding:6px 11px; background:var(--at-surf); cursor:pointer; font-family:var(--at-ui); }
.at-canvas{ padding:22px 24px 44px; overflow:auto; min-width:0; }

/* Restyle the inner (still-Tailwind) views by remapping the theme tokens they
   read to the Atelier palette — cream→cool-white, terracotta→green, warm ink→
   cool ink. One block harmonises every inner view (home, project, topic,
   account…) without rewriting their markup. `!important` beats the [data-theme]
   skins; the derived --ink/--cream/--clay keep the plain-CSS rules in step. */
.at-canvas {
  --c-cream: 242 243 241 !important;   /* page ground (#f2f3f1) */
  --c-ink: 24 32 25 !important;        /* cool near-black (#182019) */
  --c-clay: 31 111 82 !important;      /* green accent (#1f6f52) */
  --c-surface: 255 255 255 !important; /* cards / inputs */
  --surface-2: #e9ede8 !important;     /* tinted surface */
  --ink: rgb(24 32 25);
  --cream: rgb(242 243 241);
  --clay: rgb(31 111 82);
}

/* rail: book switcher + stage-grouped nav (shown when inside a book) */
.at-bookpick{ display:block; background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.09); border-radius:9px; padding:8px 10px; margin-bottom:10px; text-decoration:none; color:inherit; }
.at-bookpick .t{ font-family:var(--at-serif); font-size:14px; font-weight:600; color:#eef3ef; line-height:1.2; }
.at-bookpick .s{ font-size:11px; color:var(--at-rail-dim); margin-top:2px; }
.at-back{ font-size:11.5px; color:var(--at-rail-dim); text-decoration:none; padding:2px 8px 8px; display:block; }
.at-back:hover{ color:#dfe7e2 }
.at-grp{ font-family:var(--at-serif); font-size:9px; letter-spacing:.14em; text-transform:uppercase; color:var(--at-rail-dim); font-family:ui-monospace,Menlo,monospace; padding:12px 9px 5px; }
.at-nav .badge{ margin-left:auto; background:var(--at-contrib); color:#fff; font-size:10px; font-weight:700; border-radius:99px; padding:1px 7px; }
.at-nav .ct{ margin-left:auto; font-size:11px; opacity:.7; }

/* ---- Cast view ---- */
.at-castgrid{ display:grid; grid-template-columns:minmax(0,1fr) 292px; gap:18px; align-items:start; }
@media (max-width:900px){ .at-castgrid{ grid-template-columns:1fr } .at-inspector{ order:-1 } }
.at-castmain{ min-width:0 }

.at-castheader{ display:flex; flex-wrap:wrap; align-items:center; gap:10px 12px; margin-bottom:14px; }
.at-castheader h1{ font-family:var(--at-serif); font-size:22px; font-weight:600; margin:0; letter-spacing:-.01em; color:var(--at-ink); }
.at-castheader .csub{ font-size:12.5px; color:var(--at-dim); }
.at-castheader .sp{ flex:1 }
.at-subjstate{ display:inline-flex; align-items:center; gap:7px; background:var(--at-subject-soft); color:var(--at-subject); border:1px solid rgba(154,116,32,.3); border-radius:99px; padding:4px 11px; font-size:12px; font-weight:600; cursor:pointer; font-family:var(--at-ui); }
.at-subjstate .d{ width:7px; height:7px; border-radius:50%; background:var(--at-subject); }
.at-subjstate.memorial{ background:var(--at-surf-2); color:var(--at-dim); border-color:var(--at-line); }
.at-subjstate.memorial .d{ background:var(--at-dim); }
.at-agencynote{ font-size:11.5px; color:var(--at-dim); margin:7px 2px 0; line-height:1.45; }
.at-invitebtn{ font-size:12.5px; font-weight:600; color:#fff; background:var(--at-acc); border:none; border-radius:8px; padding:8px 14px; cursor:pointer; font-family:var(--at-ui); }

.at-coach{ display:flex; align-items:flex-start; gap:11px; background:var(--at-acc-soft); border:1px solid rgba(31,111,82,.25); border-radius:11px; padding:11px 13px; margin-bottom:16px; }
.at-coach .cx{ flex:1; font-size:12.5px; color:var(--at-ink); line-height:1.45; }
.at-coach .cx b{ font-weight:600 }
.at-coach .x{ color:var(--at-dim); font-size:16px; line-height:1; cursor:pointer; padding:0 2px; background:none; border:none; }

.at-casthead{ display:flex; align-items:baseline; gap:10px; margin-bottom:12px; }
.at-casthead h3{ font-family:var(--at-serif); font-size:16px; font-weight:600; margin:0; color:var(--at-ink); }
.at-casthead .hint{ font-size:12px; color:var(--at-dim); }

.at-cast{ display:grid; grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); gap:11px; }
.at-person{ position:relative; background:var(--at-surf); border:1px solid var(--at-line); border-radius:12px; padding:12px 13px; display:flex; flex-direction:column; gap:9px; cursor:pointer; text-align:left; font:inherit; color:inherit; }
.at-traybadge{ position:absolute; top:11px; right:12px; background:var(--at-contrib); color:#fff; font-size:10px; font-weight:700; border-radius:99px; padding:2px 7px; }
.at-person:hover{ border-color:var(--at-contrib) }
.at-person.sel{ border-color:var(--at-contrib); box-shadow:0 0 0 2px var(--at-contrib-soft); }
.at-person .ptop{ display:flex; align-items:center; gap:10px; }
.at-person .av{ width:36px; height:36px; border-radius:50%; display:grid; place-items:center; font-family:var(--at-serif); font-weight:600; font-size:15px; color:#fff; background:var(--at-contrib); flex:0 0 auto; }
.at-person .nm{ font-weight:600; font-size:14px; line-height:1.1; color:var(--at-ink); }
.at-person .rel{ font-size:11.5px; color:var(--at-dim); }
.at-person .ptag{ font-size:9.5px; letter-spacing:.05em; text-transform:uppercase; font-weight:700; border-radius:5px; padding:2px 6px; background:var(--at-contrib-soft); color:var(--at-contrib); align-self:flex-start; }
.at-person .pmeta{ display:flex; align-items:center; gap:8px; font-size:11.5px; color:var(--at-dim); border-top:1px solid var(--at-line); padding-top:9px; }
.at-dots{ display:inline-flex; gap:3px; }
.at-dots i{ width:6px; height:6px; border-radius:50%; background:var(--at-contrib); opacity:.28; }
.at-dots i.on{ opacity:1 }
.at-invite{ border:1px dashed var(--at-line); border-radius:12px; display:flex; flex-direction:column; gap:5px; align-items:center; justify-content:center; text-align:center; color:var(--at-dim); padding:16px; min-height:132px; cursor:pointer; background:none; font:inherit; }
.at-invite .plus{ width:30px; height:30px; border-radius:50%; background:var(--at-acc-soft); color:var(--at-acc); display:grid; place-items:center; font-size:19px; line-height:1; }
.at-invite b{ font-size:13px; color:var(--at-ink) }
.at-invite small{ font-size:11px; color:var(--at-dim) }

/* inspector */
.at-inspector{ background:var(--at-surf); border:1px solid var(--at-line); border-radius:12px; padding:16px 15px; position:sticky; top:16px; }
.at-inspector .ihead{ display:flex; align-items:center; gap:10px; margin-bottom:4px; }
.at-inspector .ihead .av{ width:34px; height:34px; border-radius:50%; background:var(--at-contrib); color:#fff; display:grid; place-items:center; font-family:var(--at-serif); font-weight:600; }
.at-inspector .ihead .nm{ font-weight:600; font-size:14.5px; line-height:1.1; color:var(--at-ink); }
.at-inspector .ihead .rel{ font-size:11.5px; color:var(--at-dim); }
.at-il{ font-family:ui-monospace,Menlo,monospace; font-size:9.5px; letter-spacing:.12em; text-transform:uppercase; color:var(--at-dim); margin:16px 0 8px; display:flex; align-items:center; gap:6px; }
.at-il .soon{ font-family:var(--at-ui); letter-spacing:0; text-transform:none; color:var(--at-contrib); font-size:9.5px; background:var(--at-contrib-soft); border-radius:4px; padding:1px 5px; }
.at-agency{ display:flex; background:var(--at-surf-2); border:1px solid var(--at-line); border-radius:9px; padding:3px; gap:2px; }
.at-agency span{ flex:1; text-align:center; font-size:11px; padding:6px 4px; border-radius:7px; color:var(--at-dim); }
.at-agency span.on{ background:var(--at-contrib); color:#fff; font-weight:600; }
.at-emptytray{ font-size:12px; color:var(--at-dim); line-height:1.5; border:1px dashed var(--at-line); border-radius:9px; padding:11px 12px; }
.at-linkline{ display:flex; align-items:center; gap:8px; font-size:11.5px; color:var(--at-dim); }
.at-revoke{ font-size:11.5px; color:var(--at-contrib); background:none; border:1px solid var(--at-line); border-radius:7px; padding:5px 11px; cursor:pointer; margin-top:6px; }
.at-inspempty{ color:var(--at-dim); font-size:13px; text-align:center; padding:30px 10px; line-height:1.5; }
.at-tray{ display:flex; flex-direction:column; gap:8px; }
.at-trayitem{ border:1px solid var(--at-line); border-radius:9px; padding:9px 10px; }
.at-trayitem .tt{ font-family:var(--at-serif); font-size:12.5px; color:var(--at-ink); line-height:1.45; margin:0 0 8px; }
.at-trayitem .acts{ display:flex; gap:6px; }
.at-trayitem .ac{ font-size:11px; font-weight:600; border-radius:6px; padding:5px 10px; cursor:pointer; border:1px solid var(--at-line); color:var(--at-dim); background:var(--at-surf); font-family:var(--at-ui); }
.at-trayitem .ac.pri{ background:var(--at-acc); color:#fff; border-color:var(--at-acc); }
