/*
 * ai.com Quiet Sky — specimen stylesheet
 *
 * WHAT THIS FILE IS
 *   The CSS that styles the things being documented. site.css styles the
 *   document itself. Nothing in the docs chrome depends on the ds- prefix,
 *   so this file can be deleted and the reference still reads correctly,
 *   just without pictures.
 *
 * PROVENANCE
 *   Ported from the inline <style> block of
 *     archive/projects/quiet-sky-design-system-2026/catalog.html:151-667
 *   with two rules taken from
 *     archive/projects/quiet-sky-design-system-2026/reference/design-system.html:344-412
 *   (.ds-msg / .bubble and .ds-toast, which the catalog does not define).
 *
 * WHAT CHANGED IN THE PORT
 *   The archive carried its own :root token block and its own docs chrome.
 *   Neither is ported: tokens.css owns the first, site.css the second.
 *   Names were moved onto the collision-safe production spellings, so this
 *   file resolves --qs-accent, --qs-border-soft, and --qs-border-strong
 *   rather than --accent, --border, and --border-strong. Any rule copied
 *   from here into the frontend therefore survives shadcn. Theme
 *   selectors were moved from .theme-dark / .theme-light onto bare :root
 *   and [data-theme="light"], matching tokens.css.
 *
 *   Three raw shadow literals became color-mix over --qs-ink, and four
 *   bare #fff became --qs-white. Two bugs were fixed rather than ported:
 *   .ds-toggle hardcoded the light-mode cyan and so rendered wrong in the
 *   default dark theme, and .ds-count needed a light-mode override that
 *   --btn-primary-fg now handles in both themes.
 *
 *   .ds-palette is deliberately absent. conformance.html records the
 *   command palette as an unimplemented proposal, and a polished
 *   specimen of it would contradict that page.
 *
 * Every specimen here is a static reproduction hand-built from tokens. It
 * is not the production component, and it does not import from the
 * frontend. Each section that uses one says so on the page.
 */

/* ============================================================
   1 · CONTROLS
   ============================================================ */

/* Icons: one family, stroke 1.5, round caps. Accent only when the icon
   IS the state signal. */
.ic {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.ic--14 { width: 14px; height: 14px; }
.ic--18 { width: 18px; height: 18px; }
.ic--20 { width: 20px; height: 20px; }

.ds-iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--text-3);
  border-radius: var(--radius-tight);
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease-brand), color var(--t-fast) var(--ease-brand);
}
.ds-iconbtn:hover { background: var(--fill); color: var(--text-1); }
.ds-iconbtn.danger:hover { color: var(--danger); }

.ds-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: transform var(--t-fast) var(--ease-brand), box-shadow var(--t-fast) var(--ease-brand),
    background-color var(--t-fast) var(--ease-brand), border-color var(--t-fast) var(--ease-brand);
}
.ds-btn:hover { transform: translateY(-1px); }
.ds-btn:active { transform: translateY(0); }
.ds-btn--lg { font-size: 15px; padding: 13px 26px; }
.ds-btn--md { font-size: 13px; padding: 8px 15px; }
.ds-btn--sm { font-size: 12px; padding: 6px 12px; }
.ds-btn--primary { background: var(--btn-primary-bg); color: var(--btn-primary-fg); }
.ds-btn--primary:hover { box-shadow: 0 8px 24px color-mix(in srgb, var(--qs-ink) 18%, transparent); }
/* Ghost sits on --fill in dark and on the raised surface in light. */
.ds-btn--ghost { background: var(--fill); color: var(--text-1); border-color: var(--qs-border-strong); }
[data-theme="light"] .ds-btn--ghost { background: var(--surface-1); }
.ds-btn--ghost:hover { border-color: var(--text-3); }
.ds-btn--quiet { background: transparent; color: var(--text-2); }
.ds-btn--quiet:hover { color: var(--text-1); background: var(--fill); }
.ds-btn--deny { background: transparent; color: var(--danger); }
.ds-btn[disabled] { opacity: 0.45; pointer-events: none; }

.ds-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
  background: var(--fill);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
}
.ds-chip.on {
  background: var(--accent-tint);
  color: var(--accent-text);
  box-shadow: inset 0 0 0 1px var(--accent-border);
}
.ds-chip--sm { font-size: 11.5px; padding: 3px 9px; }

.ds-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  white-space: nowrap;
}
.ds-label--solid { background: var(--btn-primary-bg); color: var(--btn-primary-fg); }
.ds-label--accent { color: var(--accent-text); background: var(--accent-tint); border: 1px solid var(--accent-border); }
.ds-label--neutral { color: var(--text-3); border: 1px solid var(--qs-border-strong); }
.ds-label--ok { color: var(--ok-text); background: var(--ok-tint); }
.ds-label--danger { color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 40%, transparent); }

/* The unread count. --btn-primary-fg is the correct foreground in both
   themes; the archive needed a separate light-mode override. */
.ds-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  background: var(--qs-accent);
  color: var(--btn-primary-fg);
  font-size: 10.5px;
  font-weight: 800;
}

.ds-pip {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--qs-accent);
  flex: none;
  display: inline-block;
}
.ds-pip--live { box-shadow: 0 0 10px var(--qs-accent); animation: pip-pulse 2.4s ease-in-out infinite; }
.ds-pip--lg { width: 8px; height: 8px; }
.ds-pip--sm { width: 6px; height: 6px; }
.ds-pip--ok { background: var(--ok); }
.ds-pip--neutral { background: var(--text-3); }
.ds-pip--hollow { background: transparent; border: 1.5px solid var(--text-3); }
@keyframes pip-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.ds-toggle {
  flex: none;
  width: 38px;
  height: 21px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--qs-border-strong);
  position: relative;
  cursor: pointer;
  padding: 0;
  transition: background-color var(--t-fast) var(--ease-brand);
}
.ds-toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--qs-white);
  box-shadow: 0 1px 3px color-mix(in srgb, var(--qs-ink) 25%, transparent);
  transition: transform var(--t-fast) var(--ease-brand);
}
/* The archive hardcoded --cyan here, which is the light-mode value, so
   the checked toggle rendered wrong in the default dark theme. */
.ds-toggle[aria-checked="true"] { background: var(--qs-accent); }
.ds-toggle[aria-checked="true"]::after { transform: translateX(17px); }

.ds-check {
  flex: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--qs-border-strong);
  border-radius: 6px;
  background: var(--surface-1);
  cursor: pointer;
  position: relative;
}
.ds-check.on { background: var(--qs-accent); border-color: var(--qs-accent); }
.ds-check.on::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 3.5px;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--qs-white);
  border-bottom: 2px solid var(--qs-white);
  transform: rotate(-45deg);
}

.ds-field { display: flex; flex-direction: column; gap: 6px; }
.ds-field label { font-size: 12.5px; font-weight: 600; color: var(--text-1); }
.ds-input {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-1);
  background: var(--surface-1);
  border: 1px solid var(--qs-border-strong);
  border-radius: var(--radius-ctrl);
  padding: 10px 14px;
  height: 42px;
  width: 100%;
  transition: border-color var(--t-fast) var(--ease-brand), box-shadow var(--t-fast) var(--ease-brand);
}
.ds-input::placeholder { color: var(--text-3); }
.ds-input:focus { outline: none; border-color: var(--qs-accent); box-shadow: 0 0 0 3px var(--accent-tint); }

.ds-tabs {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: var(--fill);
  border-radius: var(--radius-pill);
}
.ds-tabs button {
  /* Inline-flex, not the archive's inline-block: a leading icon in the
     view toggle sat flush against its label. */
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  border: none;
  background: transparent;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--t-fast) var(--ease-brand), color var(--t-fast) var(--ease-brand);
}
.ds-tabs button.on {
  background: var(--surface-1);
  color: var(--text-1);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--qs-ink) 8%, transparent), inset 0 0 0 1px var(--qs-border-soft);
}
.ds-tabs--sm button { font-size: 12px; padding: 4px 11px; }

.ds-tabs-line { display: flex; gap: 20px; border-bottom: 1px solid var(--qs-border-soft); }
.ds-tabs-line button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 10px 2px;
  margin-bottom: -1px;
  cursor: pointer;
}
.ds-tabs-line button:hover { color: var(--text-1); }
.ds-tabs-line button.on { color: var(--text-1); border-bottom-color: var(--qs-accent); }

.kbd {
  font: 600 10.5px var(--font-sans);
  color: var(--text-3);
  background: var(--fill);
  border-radius: 5px;
  padding: 2px 6px;
  border: 1px solid var(--qs-border-soft);
}

/* ============================================================
   2 · IDENTITY
   ============================================================ */

.ds-ava {
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--qs-white);
  background: var(--text-3);
  position: relative;
}
.ds-ava--40 { width: 40px; height: 40px; }
.ds-ava--28 { width: 28px; height: 28px; font-size: 10px; }
.ds-ava--26 { width: 26px; height: 26px; font-size: 10px; }
.ds-ava--20 { width: 20px; height: 20px; font-size: 8.5px; }

/* The agent avatar is the logotype's particle at avatar scale: a solid
   accent dot at 44% of the frame, inside one hairline halo at 2.25x its
   radius, the same ratio the icon family and the app tile use. */
.ds-ava--agent { background: transparent; box-shadow: none; }
.ds-ava--agent::before {
  content: "";
  position: absolute;
  inset: 28%;
  border-radius: 50%;
  background: var(--qs-accent);
  box-shadow: 0 0 8px color-mix(in srgb, var(--qs-accent) 55%, transparent);
}
.ds-ava--agent::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--accent-border);
  animation: pip-pulse 2.6s ease-in-out infinite;
}
.ds-ava .pres {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  border: 1.5px solid var(--surface-1);
}
.ds-ava .pres--away {
  background: transparent;
  border: 1.5px solid var(--text-3);
  box-shadow: inset 0 0 0 4px var(--surface-1);
}

.ds-ava-stack { display: inline-flex; align-items: center; }
.ds-ava-stack .ds-ava { margin-left: -8px; box-shadow: 0 0 0 2px var(--surface-1); }
.ds-ava-stack .ds-ava:first-child { margin-left: 0; }
.ds-ava-stack .more {
  margin-left: -8px;
  height: 26px;
  min-width: 26px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: var(--fill);
  color: var(--text-2);
  font-size: 10.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px var(--surface-1);
}

/* ============================================================
   3 · CONTAINERS
   ============================================================ */

.ds-panel {
  background: var(--surface-1);
  border: 1px solid var(--qs-border-soft);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.ds-panel-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 11px 18px;
  border-bottom: 1px solid var(--qs-border-soft);
}
/* Row height and cell padding are the density tokens. Nothing else in a
   row responds to [data-density]. */
.ds-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--row-h);
  padding: var(--cell-y) var(--cell-x);
  font-size: 13.5px;
  color: var(--text-1);
}
.ds-row + .ds-row { border-top: 1px solid var(--qs-border-soft); }
.ds-row .r-sub { display: block; color: var(--text-2); font-size: 12.5px; font-weight: 400; }
.ds-row .r-meta { margin-left: auto; font-size: 11.5px; color: var(--text-3); flex: none; }
.ds-row b { font-weight: 600; }

.ds-stat {
  padding: var(--pad-card);
  border: 1px solid var(--qs-border-soft);
  border-radius: var(--radius-card);
  background: var(--surface-1);
}
.ds-stat .lbl { font-size: 12px; color: var(--text-3); margin-bottom: 8px; }
.ds-stat .val { font-size: 34px; font-weight: 600; letter-spacing: -0.03em; color: var(--text-1); line-height: 1; }
.ds-stat .delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--fill);
  color: var(--text-2);
}
.ds-stat .delta.up { color: var(--ok-text); }
.ds-stat .delta.down { color: var(--danger); }
.ds-stat .delta .ic { width: 12px; height: 12px; }

/* ============================================================
   4 · AGENT STATES
   ============================================================ */

.ds-checkpoint {
  border-radius: var(--radius-inner);
  padding: 15px 16px;
  background: var(--accent-tint);
  border: 1px solid var(--accent-border);
}
.ds-checkpoint .lbl {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 7px;
}
.ds-checkpoint .txt { font-size: 13.5px; margin-bottom: 12px; color: var(--text-1); }
.ds-checkpoint .vrow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.ds-done {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border: 1px solid var(--ok-border);
  background: var(--ok-tint);
  border-radius: var(--radius-inner);
  padding: 12px 16px;
  font-size: 13px;
}
.ds-done .check { width: 20px; height: 20px; border-radius: 50%; flex: none; background: var(--ok); position: relative; }
.ds-done .check::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 5px;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--qs-white);
  border-bottom: 2px solid var(--qs-white);
  transform: rotate(-45deg);
}
.ds-done .main { font-weight: 600; color: var(--text-1); }
.ds-done .sub { color: var(--text-2); font-size: 12px; }

/* ============================================================
   5 · MESSAGING
   ============================================================ */

/* From reference/design-system.html:344-348. The corner cut identifies
   the speaker: the flat corner points at its own side. */
.ds-msg { display: flex; gap: 10px; max-width: 92%; font-size: 14px; line-height: 1.55; }
.ds-msg.user { align-self: flex-end; flex-direction: row-reverse; }
.ds-msg .who {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 4px;
  color: var(--text-3);
}
.ds-msg.user .bubble {
  background: var(--bubble-user-bg);
  color: var(--bubble-user-fg);
  padding: 11px 15px;
  border-radius: 14px 14px 4px 14px;
}
.ds-msg.agent .bubble {
  background: var(--bubble-agent);
  color: var(--text-1);
  padding: 12px 15px;
  border-radius: 4px 14px 14px 14px;
}

.ds-composer {
  background: var(--surface-1);
  border: 1px solid var(--qs-border-strong);
  border-radius: var(--radius-inner);
  overflow: hidden;
  transition: border-color var(--t-fast) var(--ease-brand), box-shadow var(--t-fast) var(--ease-brand);
}
.ds-composer:focus-within { border-color: var(--qs-accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.ds-composer .bar { display: flex; gap: 1px; padding: 6px 8px; border-bottom: 1px solid var(--qs-border-soft); }
.ds-composer .fld { padding: 12px 14px; min-height: 46px; font-size: 14px; color: var(--text-3); }
.ds-composer .foot { display: flex; align-items: center; gap: 1px; padding: 6px 8px 8px; }
.ds-send {
  margin-left: 4px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.ds-send[disabled] { opacity: 0.45; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--qs-border-soft); }
.chat-head b { font-size: 15px; font-weight: 700; }

/* ============================================================
   6 · CALENDAR
   ============================================================ */

.ds-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.ds-day {
  text-align: center;
  padding: 7px 2px 6px;
  border-radius: var(--radius-tight);
  border: 1px solid transparent;
  cursor: pointer;
}
.ds-day:hover { background: var(--fill); }
.ds-day .dw {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  display: block;
}
.ds-day .dn { font-size: 15px; font-weight: 600; }
.ds-day .dots { display: flex; justify-content: center; gap: 2px; margin-top: 2px; height: 3px; }
.ds-day .dots i { width: 3px; height: 3px; border-radius: 50%; background: var(--text-3); opacity: 0.6; }
.ds-day.on { background: var(--accent-tint); border-color: var(--accent-border); }
.ds-day.on .dn,
.ds-day.on .dw { color: var(--accent-text); }

.ds-event {
  background: var(--surface-1);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-card);
  padding: 14px 15px;
  box-shadow: var(--shadow-soft);
}
.ds-event .time { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.ds-event .name { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.ds-event .who { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.ds-event .prep {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent-text);
  margin-top: 10px;
  cursor: pointer;
}
.ds-event .range { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-2); margin-top: 12px; }
.ds-event .joinrow { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.ds-event .guests { font-size: 12px; color: var(--text-3); margin-top: 12px; }
.att { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 13px; color: var(--text-2); }
.att .org { font-size: 11.5px; color: var(--text-3); }

.ds-callrow { padding: 14px 18px; display: grid; grid-template-columns: 220px 1fr; gap: 18px; }
.ds-callrow + .ds-callrow { border-top: 1px solid var(--qs-border-soft); }
.ds-callrow .hd { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-3); }
.ds-callrow .ttl { font-size: 15px; font-weight: 600; }
.ds-callrow .ttl.untitled { color: var(--text-3); font-weight: 500; }
.ds-callrow .pep { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-3); margin-top: 8px; }
.ds-callrow .recap { font-size: 13.5px; color: var(--text-2); }
.ds-callrow .recap.empty { color: var(--text-3); }
.ds-callrow .acts { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

/* ============================================================
   7 · MARKETPLACE
   ============================================================ */

.ds-skillrow { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; }
.ds-skillrow + .ds-skillrow { border-top: 1px solid var(--qs-border-soft); }
.ds-skillrow .nm { font-size: 14.5px; font-weight: 600; }
.ds-skillrow .meta { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.ds-skillrow .desc { font-size: 13px; color: var(--text-2); margin-top: 4px; max-width: 640px; }
.ds-skillrow .tail { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: none; }

.ds-appcard {
  background: var(--surface-1);
  border: 1px solid var(--qs-border-soft);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform var(--t-base) var(--ease-brand), box-shadow var(--t-base) var(--ease-brand);
}
.ds-appcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.ds-appcard .thumb {
  aspect-ratio: 16 / 9;
  background: var(--surface-2);
  border-bottom: 1px solid var(--qs-border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  position: relative;
}
.ds-appcard .thumb .glyph {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--fill);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
}
.ds-appcard .thumb .ds-label {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.ds-appcard .body { padding: 11px 13px; }
.ds-appcard .body b { font-size: 13.5px; font-weight: 600; display: block; }
.ds-appcard .body span { font-size: 11.5px; color: var(--text-3); }

.ds-hero { text-align: center; max-width: 680px; margin: 0 auto; }
.ds-hero h3 { font-size: var(--text-title-1); line-height: var(--text-title-1--line-height); font-weight: 700; letter-spacing: -0.025em; }
.ds-hero p { font-size: 14px; color: var(--text-2); margin: 6px 0 16px; }
.ds-hero .ds-composer { text-align: left; }
.hero-chips { display: flex; justify-content: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; }

/* ============================================================
   8 · FEEDBACK AND DATA
   ============================================================ */

/* From reference/design-system.html:407-412. */
.ds-toast {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  background: var(--surface-1);
  border: 1px solid var(--qs-border-soft);
  border-radius: var(--radius-inner);
  box-shadow: var(--shadow-card);
  padding: 13px 16px;
  font-size: 13.5px;
  max-width: 380px;
}
.ds-toast .ds-pip { margin-top: 6px; }
.ds-toast b { display: block; color: var(--text-1); font-size: 13.5px; }
.ds-toast span { color: var(--text-2); font-size: 12.5px; }
.ds-toast--ok .ds-pip { background: var(--ok); }
.ds-toast--danger .ds-pip { background: var(--danger); }

/* The progress track is --track, not --fill. All three current/
   prototypes make the same distinction. */
.ds-meter { height: 7px; border-radius: var(--radius-pill); background: var(--track); overflow: hidden; }
.ds-meter i { display: block; height: 100%; border-radius: var(--radius-pill); background: var(--qs-accent); }
.ds-meter--warn i { background: var(--danger); }

@keyframes skel-breath {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}
.ds-skel { background: var(--fill); border-radius: var(--radius-tight); animation: skel-breath 1.6s var(--ease-brand) infinite; }
.ds-skel--circle { border-radius: 50%; }
.ds-skel-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; }
.ds-skel-row > .lines { flex: 1; display: flex; flex-direction: column; gap: 7px; }
.ds-skel-row:nth-child(2) .ds-skel { animation-delay: 60ms; }
.ds-skel-row:nth-child(3) .ds-skel { animation-delay: 120ms; }
.ds-skel-row:nth-child(4) .ds-skel { animation-delay: 180ms; }
@media (prefers-reduced-motion: reduce) {
  .ds-skel { animation: none; opacity: 0.8; }
  .ds-pip--live,
  .ds-ava--agent::after { animation: none; }
}

.ds-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 14px; font-size: 12px; color: var(--text-2); }
.ds-legend i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; margin-right: 6px; vertical-align: -1px; }

/* ============================================================
   9 · SHELL MOCKS
   ============================================================ */

/* A fixed-width rail. Drag-resize, auto-collapse, and the mobile
   slide-over are NOT reproduced; components.html says so beside it. */
.app-rail {
  width: 250px;
  flex: none;
  background: var(--bg);
  border-right: 1px solid var(--qs-border-soft);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: 13.5px;
}
.rail-logo { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 16px; letter-spacing: -0.02em; padding: 4px 10px 14px; }
.rail-logo .spacer { flex: 1; }
.rail-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: var(--radius-tight);
  color: var(--text-2);
  font-weight: 500;
  font-size: 13.5px;
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease-brand), color var(--t-fast) var(--ease-brand);
}
.rail-item .ic { color: var(--text-3); }
.rail-item:hover { background: var(--fill); color: var(--text-1); }
.rail-item.on { background: var(--accent-tint); color: var(--accent-text); font-weight: 600; }
.rail-item.on .ic { color: var(--accent-text); }
.rail-item .tail { margin-left: auto; }
.rail-sec {
  display: flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 16px 0 4px;
  padding: 0 10px;
}
.rail-sec .ds-iconbtn { margin-left: auto; width: 22px; height: 22px; }
.rail-sub { padding: 5px 10px 5px 40px; font-size: 13px; color: var(--text-2); border-radius: var(--radius-tight); cursor: pointer; }
.rail-sub:hover { background: var(--fill); color: var(--text-1); }
.rail-sub.on { background: var(--accent-tint); color: var(--accent-text); font-weight: 600; }
.rail-sub.faint { color: var(--text-3); }
.rail-card {
  margin-top: 14px;
  background: var(--surface-1);
  border: 1px solid var(--qs-border-soft);
  border-radius: var(--radius-inner);
  padding: 11px 13px;
}
.rail-card b { font-size: 13px; display: block; }
.rail-card span { font-size: 12px; color: var(--text-3); }
.rail-user { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 10px 2px; border-top: 1px solid var(--qs-border-soft); }
.rail-user b { font-size: 13.5px; }
[data-density="compact"] .rail-item { padding: 5px 10px; }

/* Notification popover. Production width is 384px; the specimen sets it
   inline so the number is visible in the markup. */
.pop {
  background: var(--surface-1);
  border: 1px solid var(--qs-border-soft);
  border-radius: var(--radius-frame);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.pop-head { display: flex; align-items: center; gap: 10px; padding: 13px 16px 10px; }
.pop-head b { font-size: 15px; font-weight: 700; flex: 1; }
.notif { display: flex; gap: 10px; padding: 11px 16px; position: relative; }
.notif + .notif { border-top: 1px solid var(--qs-border-soft); }
.notif:hover { background: var(--fill); }
.notif.unread { background: var(--surface-3); }
.notif.unread::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 18px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--qs-accent);
}
.notif b { font-size: 13px; font-weight: 600; display: block; }
.notif p {
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.notif time { font-size: 11px; color: var(--text-3); flex: none; }

/* Settings geometry. The specimen is a diagram of the desktop split, not
   a working modal; the 90vh height and the mobile drill-down are labelled
   rather than rendered. */
.modal-mock {
  border: 1px solid var(--qs-border-soft);
  border-radius: var(--radius-frame);
  overflow: hidden;
  background: var(--surface-1);
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 280px 1fr;
}
.modal-nav { background: var(--surface-3); border-right: 1px solid var(--qs-border-soft); padding: 16px 10px; }
.modal-nav .rail-item { font-size: 14px; }
.modal-body { padding: 20px 24px; }
.modal-body .grp-lbl {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 18px 0 8px;
}
.modal-body .grp-lbl:first-child { margin-top: 0; }
.set-grp {
  border: 1px solid var(--qs-border-soft);
  border-radius: var(--radius-inner);
  background: var(--surface-1);
  overflow: hidden;
}
.set-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; font-size: 14px; }
.set-row + .set-row { border-top: 1px solid var(--qs-border-soft); }
.set-row .lb { color: var(--text-2); }
.set-row .vl { margin-left: auto; font-weight: 600; }
.set-row.danger { color: var(--danger); font-weight: 600; }
.set-row.danger .ic { color: var(--danger); }
.mask { display: inline-flex; gap: 3px; }
.mask i { width: 4px; height: 4px; border-radius: 50%; background: var(--text-3); }

.mock {
  border: 1px solid var(--qs-border-soft);
  border-radius: var(--radius-frame);
  overflow: hidden;
  background: var(--bg);
  box-shadow: var(--shadow-card);
  display: flex;
}
.mock-main { flex: 1; min-width: 0; background: var(--bg); }
.mock-body { padding: 20px 24px; }
