/* pigeon-platform.css */
/* pigeon-platform.css — consolidated stylesheet for the Pigeon platform web
   surfaces. Hand-assembled from the BotChat design system (avatar base from
   wireframes.css; hi-fi language from hifi.css + hifi-impl.css; platform
   surfaces from platform.css; desktop/tablet from responsive.css).

   LOCKED PALETTE: pal-peach-navy. The palette tokens are resolved directly into
   the .hifi scope — there is no palette switcher and no body data-attr. Other
   palettes and the Tweaks plumbing from the design are intentionally absent.

   Brand: every user-facing "BotChat" is "Pigeon". The lowercase "bot" pill on
   agent avatars is a generic role marker, not the brand, and is preserved. */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500;600&display=swap');

/* ─────────────────────────────────────────────────────────────────────────
   TOKENS — .hifi scope. Peach + Navy palette baked in as the only palette.
   ───────────────────────────────────────────────────────────────────────── */
.hifi {
  /* pal-peach-navy — resolved from palette-audit.css */
  --hf-bg:        #faf0e8;
  --hf-bg-alt:    #f1e3d5;
  --hf-surface:   #fdf7f1;
  --hf-surface-2: #ead7c5;
  --hf-bubble:    #faf0e8;
  --hf-ink:       #1c1814;
  --hf-ink-2:     #4c423a;
  --hf-muted:     #8e8276;
  --hf-fade:      #c4b9ad;
  --hf-line:      #efe2d4;
  --hf-line-2:    #dac8b3;
  --hf-accent:      #1f2c4e;
  --hf-accent-deep: #131b30;
  --hf-accent-tint: #dde2ec;

  --hf-green:     #0d8460;
  --hf-amber:     #c26a06;
  --hf-red:       #b8362a;

  /* fonts */
  --hf-sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --hf-mono: 'Geist Mono', ui-monospace, monospace;

  /* avatar internals read these wireframe-scoped vars; map to hi-fi tokens so
     shape glyphs paint with the locked palette inside .hifi */
  --ink: var(--hf-ink);
  --paper: var(--hf-bg);
  --paper-2: var(--hf-surface-2);
  --line: var(--hf-line-2);
  --line-soft: var(--hf-line);
  --muted: var(--hf-muted);
  --accent: var(--hf-accent);
  --hand: var(--hf-sans);
  --display: var(--hf-sans);
  --mono: var(--hf-mono);

  --hf-r-sm: 8px;
  --hf-r-md: 12px;
  --hf-r-lg: 18px;
  --hf-r-xl: 22px;
  --hf-r-bubble: 18px;

  --hf-sh-1: 0 1px 2px rgba(14, 17, 22, 0.06);
  --hf-sh-2: 0 4px 12px rgba(14, 17, 22, 0.08);
  --hf-sh-3: 0 14px 40px rgba(14, 17, 22, 0.18);

  --hf-fs-1: 11px;
  --hf-fs-2: 13px;
  --hf-fs-3: 14px;
  --hf-fs-4: 15px;
  --hf-fs-5: 17px;
  --hf-fs-6: 22px;
}

/* ─────────────────────────────────────────────────────────────────────────
   AVATAR base (from wireframes.css). Shape style + the "bot" pill marker.
   ───────────────────────────────────────────────────────────────────────── */
.av {
  --av-size: 36px;
  width: var(--av-size); height: var(--av-size);
  border-radius: 50%;
  position: relative;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: visible;
}
.av .face {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: var(--paper-2);
  border: 1.4px solid var(--line);
  overflow: hidden;
  display: grid; place-items: center;
  font-family: var(--hand);
  font-weight: 700;
  font-size: calc(var(--av-size) * 0.38);
  color: var(--ink);
}
.av.shape-v2 .face {
  position: relative;
  padding: 0;
  display: block;
}
.av.shape-v2 .face > svg {
  width: 100%;
  height: 100%;
  display: block;
}
.av .corner-acc {
  position: absolute;
  width: 22%;
  height: 22%;
  border-radius: 50%;
}
.av .corner-acc.corner-tl { top: 12%;  left: 12%; }
.av .corner-acc.corner-tr { top: 12%;  right: 12%; }
.av .corner-acc.corner-bl { bottom: 12%; left: 12%; }
.av .corner-acc.corner-br { bottom: 12%; right: 12%; }

.av.iden .face { padding: 12%; background: var(--paper); }
.av.iden .grid {
  width: 100%; height: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 0;
}
.av.iden .grid i { background: var(--ink); display: block; }
.av.iden .grid i.off { background: transparent; }

.av.mono .face {
  background: linear-gradient(135deg, var(--g1, #ddd), var(--g2, #aaa));
  color: var(--paper);
  border-color: var(--line);
}

.av .marker {
  position: absolute;
  right: -2px; bottom: -2px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.2px solid var(--line);
  display: grid; place-items: center;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}
.av .marker.subtle {
  width: 8px; height: 8px;
  background: var(--paper);
  border: 1.4px solid var(--ink);
}
.av .marker.subtle::before { content: ''; }
.av .marker.bold {
  background: var(--ink);
  color: var(--paper);
  width: auto;
  min-width: 14px;
  height: 13px;
  padding: 0 4px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}
.av.lg .marker.bold, .av.xl .marker.bold {
  height: 16px;
  font-size: 9px;
  padding: 0 5px;
}
.av .ring {
  position: absolute;
  inset: -3px;
  border: 1.2px dashed var(--line);
  border-radius: 50%;
  pointer-events: none;
}
.av.lg { --av-size: 52px; }
.av.xl { --av-size: 72px; }
.av.sm { --av-size: 28px; }

/* avatar — hi-fi overrides (from hifi.css) */
.hifi .av .face {
  border-color: transparent;
  background: var(--hf-surface-2);
}
.hifi .av.shape-v2 .face {
  border: none;
}
.hifi .av.mono .face, .hifi .av.human .face {
  border: none;
  color: white;
  font-family: var(--hf-sans);
  font-weight: 600;
  font-size: calc(var(--av-size) * 0.42);
}
.hifi .av .marker {
  font-family: var(--hf-mono);
  background: var(--hf-ink);
  color: white;
  border: 1.5px solid var(--hf-bg);
  width: auto;
  min-width: 16px;
  height: 15px;
  padding: 0 5px;
  border-radius: 999px;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  bottom: -3px;
  right: -3px;
}
.hifi .av.lg .marker, .hifi .av.xl .marker {
  height: 17px;
  font-size: 9.5px;
  padding: 0 6px;
  bottom: -2px;
  right: -2px;
}
.hifi .av.sm .marker {
  height: 13px;
  min-width: 13px;
  padding: 0 4px;
  font-size: 7.5px;
}

/* ─────────────────────────────────────────────────────────────────────────
   PHONE FRAME (from hifi.css)
   ───────────────────────────────────────────────────────────────────────── */
.hifi .phone {
  --phone-w: 300px;
  --phone-h: 624px;
  width: var(--phone-w);
  height: var(--phone-h);
  margin: 0 auto;
  border: 1px solid var(--hf-line-2);
  border-radius: 38px;
  background: var(--hf-bg);
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.5),
    0 20px 50px -10px rgba(14, 17, 22, 0.18),
    0 2px 6px rgba(14, 17, 22, 0.08);
  font-family: var(--hf-sans);
  color: var(--hf-ink);
  -webkit-font-smoothing: antialiased;
}
.hifi .phone::before {
  content: '';
  position: absolute;
  top: 9px; left: 50%;
  transform: translateX(-50%);
  width: 84px; height: 22px;
  border-radius: 999px;
  background: #0e1116;
  z-index: 5;
}
.hifi .statusbar {
  position: absolute; top: 0; left: 0; right: 0;
  height: 38px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 22px 0 24px;
  font-family: var(--hf-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--hf-ink);
  z-index: 6;
  pointer-events: none;
}
.hifi .statusbar .ind { display: flex; gap: 4px; align-items: center; }
.hifi .statusbar .ind i {
  display: inline-block;
  width: 14px; height: 10px;
  border: 1.2px solid var(--hf-ink);
  border-radius: 2px;
  position: relative;
}
.hifi .statusbar .ind i::after {
  content:''; position: absolute; inset: 1.5px;
  background: var(--hf-ink); border-radius: 1px;
}
.hifi .screen {
  position: absolute;
  inset: 38px 0 0 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--hf-bg);
}

/* ── APP BAR ──────────────────────────────────────────────────────────── */
.hifi .appbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 8px;
  background: var(--hf-bg);
}
.hifi .appbar .back {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--hf-ink);
  margin-left: -6px;
}
.hifi .appbar .back svg { width: 18px; height: 18px; }
.hifi .appbar .title-block { flex: 1; min-width: 0; }
.hifi .appbar .title-block .h {
  font-family: var(--hf-sans);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.hifi .appbar .title-block .h.sm { font-size: 15px; }
.hifi .appbar .title-block .sub {
  font-size: 11.5px;
  color: var(--hf-muted);
  font-weight: 500;
  margin-top: 1px;
}
.hifi .appbar .icons { display: flex; gap: 4px; }
.hifi .appbar .icobtn {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--hf-ink-2);
}
.hifi .appbar .icobtn svg { width: 18px; height: 18px; }

/* ── TOP TABS ─────────────────────────────────────────────────────────── */
.hifi .toptabs {
  display: flex;
  padding: 0 14px;
  border-bottom: 1px solid var(--hf-line);
  gap: 22px;
  background: var(--hf-bg);
}
.hifi .toptabs .t {
  font-size: 14px;
  font-weight: 500;
  color: var(--hf-muted);
  padding: 8px 0 10px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  position: relative;
}
.hifi .toptabs .t.on {
  color: var(--hf-ink);
  font-weight: 600;
  border-bottom-color: var(--hf-ink);
}
.hifi .toptabs .t .badge {
  display: inline-block;
  margin-left: 6px;
  background: var(--hf-accent);
  color: white;
  font-family: var(--hf-mono);
  font-size: 10px;
  font-weight: 600;
  border-radius: 999px;
  padding: 1px 6px;
  vertical-align: 1px;
}

/* ── SEARCH FIELD ─────────────────────────────────────────────────────── */
.hifi .searchfield {
  margin: 8px 12px 4px;
  background: var(--hf-surface-2);
  border-radius: 11px;
  padding: 7px 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--hf-muted);
}
.hifi .searchfield svg { width: 14px; height: 14px; color: var(--hf-muted); }

/* ── LIST / CONTENT ───────────────────────────────────────────────────── */
.hifi .content {
  flex: 1;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
.hifi .content.padbot { padding-bottom: 0; }
.hifi .content.scroll { overflow-y: auto; }
.hifi .content.scroll::-webkit-scrollbar { width: 0; height: 0; }

.hifi .sect-label {
  font-family: var(--hf-sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hf-muted);
  padding: 9px 14px 5px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hifi .sect-label.attn { color: var(--hf-amber); }
.hifi .sect-label.attn::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--hf-amber);
}

.hifi .row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 9px 14px;
  position: relative;
}
.hifi .row::after {
  content: '';
  position: absolute;
  left: 64px; right: 16px; bottom: 0;
  height: 1px;
  background: var(--hf-line);
}
.hifi .row:last-child::after { display: none; }
.hifi .row .meta { flex: 1; min-width: 0; }
.hifi .row .meta .name {
  font-size: var(--hf-fs-4);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hifi .row .meta .sub {
  font-size: var(--hf-fs-2);
  color: var(--hf-muted);
  line-height: 1.32;
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hifi .row .right {
  display: flex; flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.hifi .row .right .when {
  font-family: var(--hf-mono);
  font-size: 11px;
  color: var(--hf-muted);
  font-weight: 500;
}

/* ── PILLS ────────────────────────────────────────────────────────────── */
.hifi .pill {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--hf-accent);
  color: white;
  line-height: 1.4;
  white-space: nowrap;
}
.hifi .pill.count {
  font-family: var(--hf-mono);
  min-width: 20px;
  text-align: center;
  padding: 1px 7px;
}
.hifi .pill.ghost {
  background: transparent;
  color: var(--hf-ink-2);
  border: 1px solid var(--hf-line-2);
}
.hifi .pill.attn { background: var(--hf-amber); color: white; }
.hifi .pill.added {
  background: transparent;
  color: var(--hf-muted);
  font-weight: 500;
  border: 1px solid var(--hf-line-2);
}
.hifi .price {
  font-family: var(--hf-mono);
  font-size: 11px;
  color: var(--hf-muted);
  font-weight: 500;
}

/* ── HERO HEADER ──────────────────────────────────────────────────────── */
.hifi .hero {
  padding: 14px 16px 16px;
  background: var(--hf-bg);
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--hf-line);
}
.hifi .hero .meta { flex: 1; min-width: 0; }
.hifi .hero .name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.hifi .hero .sub {
  font-size: 13px;
  color: var(--hf-ink-2);
  line-height: 1.35;
  margin-top: 3px;
}
.hifi .hero .metaline {
  margin-top: 8px;
  font-family: var(--hf-mono);
  font-size: 11px;
  color: var(--hf-muted);
  font-weight: 500;
  letter-spacing: 0.01em;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.hifi .hero .metaline .dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--hf-fade);
}
.hifi .hero .chips span {
  font-family: var(--hf-mono);
  font-size: 10.5px;
  font-weight: 500;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--hf-surface-2);
  color: var(--hf-ink-2);
}

/* ── MESSAGES ─────────────────────────────────────────────────────────── */
.hifi .thread {
  flex: 1;
  overflow: hidden;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: var(--hf-bg);
}
.hifi .day-divider {
  text-align: center;
  font-family: var(--hf-mono);
  font-size: 10.5px;
  color: var(--hf-muted);
  font-weight: 500;
  letter-spacing: 0.05em;
  margin: 6px 0;
}
.hifi .bubble {
  max-width: 80%;
  padding: 9px 13px;
  font-size: 13.5px;
  line-height: 1.35;
  border-radius: var(--hf-r-bubble);
}
.hifi .bubble.them {
  align-self: flex-start;
  background: var(--hf-bubble);
  color: var(--hf-ink);
  border: 1px solid var(--hf-line);
  border-radius: var(--hf-r-bubble);
}
.hifi .bubble.me {
  align-self: flex-end;
  background: var(--hf-accent);
  color: white;
  border-radius: var(--hf-r-bubble);
}
.hifi .bubble .status {
  font-family: var(--hf-mono);
  font-size: 10px;
  color: var(--hf-muted);
  margin-top: 4px;
  font-weight: 500;
}
.hifi .bubble.me .status { color: rgba(255,255,255,0.7); }

.hifi .artifact {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 7px 9px 7px 8px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 10px;
  font-family: var(--hf-sans);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--hf-ink);
}
.hifi .bubble.me .artifact { background: rgba(255, 255, 255, 0.15); color: white; }
.hifi .artifact .ico {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: var(--hf-ink-2);
  color: white;
  display: grid; place-items: center;
  font-family: var(--hf-mono);
  font-size: 9px;
  font-weight: 700;
  flex-shrink: 0;
}
.hifi .bubble.me .artifact .ico { background: rgba(255,255,255,0.25); }
.hifi .artifact .info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.hifi .artifact .info .nm {
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hifi .artifact .info .sz {
  font-family: var(--hf-mono);
  font-size: 10px;
  color: var(--hf-muted);
  font-weight: 500;
}
.hifi .bubble.me .artifact .info .sz { color: rgba(255,255,255,0.65); }

.hifi .sender {
  display: flex; align-items: flex-end; gap: 8px;
  align-self: flex-start;
}
.hifi .sender .bubble.them { margin-bottom: 0; }

/* named bubble (multi-party attribution) */
.hifi .msg { display: flex; flex-direction: column; gap: 2px; max-width: 84%; }
.hifi .msg.them { align-self: flex-start; }
.hifi .msg.me { align-self: flex-end; align-items: flex-end; }
.hifi .msg .who {
  font-size: 10.5px; font-weight: 600; color: var(--hf-ink-2);
  padding: 0 4px; display: flex; align-items: center; gap: 5px;
}
.hifi .msg .who .owner { font-family: var(--hf-mono); font-weight: 500; font-size: 9px; color: var(--hf-muted); }
.hifi .msg .who .to {
  font-family: var(--hf-mono); font-weight: 600; font-size: 8.5px;
  background: var(--hf-accent-tint); color: var(--hf-accent-deep);
  padding: 1px 5px; border-radius: 999px; letter-spacing: 0.02em;
}
.hifi .msg .who .to.owner { background: var(--hf-bg-alt); color: var(--hf-muted); }
.hifi .msg .bubble { max-width: 100%; }

/* ── COMPOSER ─────────────────────────────────────────────────────────── */
.hifi .composer {
  padding: 7px 10px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--hf-bg);
  border-top: 1px solid var(--hf-line);
}
.hifi .composer .add {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--hf-surface-2);
  display: grid; place-items: center;
  color: var(--hf-ink);
  flex-shrink: 0;
}
.hifi .composer .add svg { width: 18px; height: 18px; }
.hifi .composer .input {
  flex: 1;
  border-radius: 22px;
  background: var(--hf-surface-2);
  padding: 9px 14px;
  font-size: 13.5px;
  color: var(--hf-muted);
  min-height: 36px;
  display: flex; align-items: center;
}
.hifi .composer .send {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--hf-accent);
  color: white;
  display: grid; place-items: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(31, 44, 78, 0.35);
}
.hifi .composer .send svg { width: 16px; height: 16px; }

/* ── SIGN-IN ──────────────────────────────────────────────────────────── */
.hifi .signin-roster {
  flex: 1;
  display: flex; flex-direction: column;
  padding: 26px 22px 22px;
}
.hifi .signin-roster .wm {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 24px 0 6px;
  text-align: center;
}
.hifi .signin-roster .tag {
  font-size: 14px;
  color: var(--hf-ink-2);
  text-align: center;
  max-width: 240px;
  margin: 0 auto;
  line-height: 1.4;
}
.hifi .signin-roster .grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px 12px;
  justify-items: center;
}
.hifi .signin-roster .grid .cell-av {
  display: flex; flex-direction: column;
  align-items: center; gap: 5px;
}
.hifi .signin-roster .grid .nm {
  font-size: 11px;
  color: var(--hf-muted);
  font-weight: 500;
}
.hifi .signin-roster .more {
  font-family: var(--hf-mono);
  font-size: 11px;
  color: var(--hf-muted);
  text-align: center;
  margin-top: 14px;
  letter-spacing: 0.04em;
}
.hifi .gbtn {
  background: var(--hf-ink);
  color: white;
  border-radius: 14px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 600;
}
.hifi .gbtn .gicon {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: white;
  display: grid; place-items: center;
  font-family: var(--hf-mono);
  font-weight: 700;
  font-size: 12px;
  color: var(--hf-ink);
}
.hifi .signin-foot {
  margin-top: auto;
  display: flex; flex-direction: column; gap: 10px;
}
.hifi .signin-foot .legal {
  font-family: var(--hf-mono);
  font-size: 10.5px;
  color: var(--hf-fade);
  text-align: center;
  letter-spacing: 0.04em;
}
.hifi .signin-error {
  margin: 0 22px 12px;
  background: var(--hf-bg-alt);
  border: 1px solid var(--hf-red);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.hifi .signin-error .ico {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--hf-red);
  color: white;
  display: grid; place-items: center;
  font-family: var(--hf-mono);
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}
.hifi .signin-error .body { font-size: 12.5px; color: var(--hf-ink); line-height: 1.35; }
.hifi .signin-error .body .ttl { font-weight: 600; }
.hifi .signin-error .body .sub { color: var(--hf-muted); margin-top: 1px; }

/* ─────────────────────────────────────────────────────────────────────────
   IMPLEMENTATION ADDITIONS (from hifi-impl.css)
   ───────────────────────────────────────────────────────────────────────── */

/* bottom sheet */
.hifi .scrim {
  position: absolute;
  inset: 0;
  background: rgba(15, 12, 8, 0.32);
  z-index: 10;
}
.hifi .sheet {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: var(--hf-bg);
  border-radius: 22px 22px 0 0;
  padding: 8px 0 0;
  box-shadow: 0 -12px 30px rgba(0,0,0,0.18);
  z-index: 11;
  max-height: 80%;
  display: flex;
  flex-direction: column;
}
.hifi .sheet.tall { max-height: 94%; }
.hifi .sheet .grab {
  width: 38px; height: 4px;
  border-radius: 999px;
  background: var(--hf-line-2);
  margin: 4px auto 8px;
}
.hifi .sheet-hd {
  padding: 4px 18px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hifi .sheet-hd .h {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.hifi .sheet-hd .close {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--hf-surface-2);
  display: grid; place-items: center;
  color: var(--hf-ink);
}

.hifi .dimmed { filter: blur(0.5px) saturate(0.7); opacity: 0.55; }

/* empty state */
.hifi .empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 24px;
  text-align: center;
  gap: 12px;
}
.hifi .empty .glyph {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--hf-surface-2);
  display: grid;
  place-items: center;
  color: var(--hf-ink-2);
  margin-bottom: 8px;
}
.hifi .empty .glyph svg { width: 26px; height: 26px; }
.hifi .empty .ttl { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.hifi .empty .body { font-size: 13.5px; color: var(--hf-muted); max-width: 240px; line-height: 1.4; }
.hifi .empty .cta {
  margin-top: 6px;
  background: var(--hf-accent);
  color: white;
  border-radius: 12px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
}

/* shimmer */
@keyframes hf-shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.hifi .shim {
  background: linear-gradient(90deg, var(--hf-surface-2) 0%, var(--hf-bg-alt) 50%, var(--hf-surface-2) 100%);
  background-size: 200% 100%;
  animation: hf-shimmer 1.6s linear infinite;
  border-radius: 6px;
}

/* toast */
.hifi .toast {
  position: absolute;
  left: 12px; right: 12px;
  top: 50px;
  background: var(--hf-ink);
  color: var(--hf-bg);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.2);
  z-index: 9;
}
.hifi .toast .ico {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--hf-red);
  display: grid; place-items: center;
  color: white;
  flex-shrink: 0;
  font-family: var(--hf-mono);
  font-weight: 700;
  font-size: 12px;
}
.hifi .toast .body { flex: 1; font-size: 13px; line-height: 1.3; }
.hifi .toast .body .ttl { font-weight: 600; }
.hifi .toast .body .sub { font-size: 11.5px; opacity: 0.75; margin-top: 1px; }
.hifi .toast .action {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--hf-bg);
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(255,255,255,0.12);
}

/* blocked composer (no-grant) */
.hifi .nogrant {
  border-top: 1px solid var(--hf-line);
  background: var(--hf-bg-alt);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hifi .nogrant .ico {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--hf-surface-2);
  display: grid; place-items: center;
  color: var(--hf-amber);
  flex-shrink: 0;
}
.hifi .nogrant .body { flex: 1; min-width: 0; }
.hifi .nogrant .body .ttl { font-size: 13px; font-weight: 600; line-height: 1.2; }
.hifi .nogrant .body .sub { font-size: 11.5px; color: var(--hf-muted); line-height: 1.25; margin-top: 1px; }
.hifi .nogrant .cta {
  font-size: 12.5px;
  font-weight: 600;
  color: white;
  background: var(--hf-ink);
  padding: 6px 12px;
  border-radius: 8px;
  flex-shrink: 0;
}

/* listing detail */
.hifi .listing {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px 18px 12px;
  overflow: hidden;
}
.hifi .listing.detail { overflow-y: auto; }
.hifi .listing .head { display: flex; align-items: center; gap: 12px; }
.hifi .listing .head .meta { flex: 1; min-width: 0; }
.hifi .listing .head .meta .name { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.hifi .listing .head .meta .by { font-size: 12.5px; color: var(--hf-muted); margin-top: 2px; }
.hifi .listing .desc { margin-top: 14px; font-size: 13.5px; color: var(--hf-ink-2); line-height: 1.45; }
.hifi .listing .features { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.hifi .listing .features .ft { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--hf-ink-2); }
.hifi .listing .features .ft .chk {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--hf-green);
  display: grid; place-items: center;
  color: white;
  font-size: 9px;
  font-weight: 700;
  flex-shrink: 0;
}
.hifi .listing .price-row {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed var(--hf-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.hifi .listing .price-row .price { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.hifi .listing .price-row .price .per {
  font-family: var(--hf-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--hf-muted);
  margin-left: 4px;
}
.hifi .listing .price-row .buy {
  padding: 11px 22px;
  background: var(--hf-ink);
  color: white;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
}

/* gateway grant rows */
.hifi .grant { padding: 12px 16px; display: flex; align-items: center; gap: 12px; position: relative; }
.hifi .grant::after { content: ''; position: absolute; left: 16px; right: 16px; bottom: 0; height: 1px; background: var(--hf-line); }
.hifi .grant:last-child::after { display: none; }
.hifi .grant .radio { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--hf-line-2); flex-shrink: 0; position: relative; }
.hifi .grant.active .radio { border-color: var(--hf-accent); }
.hifi .grant.active .radio::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--hf-accent); }
.hifi .grant .info { flex: 1; min-width: 0; }
.hifi .grant .info .name { font-size: 14px; font-weight: 600; line-height: 1.2; }
.hifi .grant .info .sub { font-family: var(--hf-mono); font-size: 11px; color: var(--hf-muted); margin-top: 2px; }
.hifi .grant .badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hf-accent);
  background: var(--hf-accent-tint);
  padding: 2px 8px;
  border-radius: 999px;
}
.hifi .gateway-cta {
  margin: 12px 16px 16px;
  padding: 12px 14px;
  background: var(--hf-bg-alt);
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hifi .gateway-cta .body { flex: 1; min-width: 0; }
.hifi .gateway-cta .body .ttl { font-size: 13px; font-weight: 600; }
.hifi .gateway-cta .body .sub { font-size: 11.5px; color: var(--hf-muted); margin-top: 2px; line-height: 1.3; }
.hifi .gateway-cta .cta {
  font-size: 12.5px;
  font-weight: 600;
  background: var(--hf-ink);
  color: white;
  padding: 7px 12px;
  border-radius: 8px;
  flex-shrink: 0;
}

/* ═════════════════════════════════════════════════════════════════════════
   PLATFORM SURFACES (from platform.css) — all scoped under .hifi
   ═════════════════════════════════════════════════════════════════════════ */

/* system banner (official, non-chat) */
.hifi .sys-banner {
  margin: 10px 12px 4px;
  background: var(--hf-bg-alt);
  border: 1px solid var(--hf-line-2);
  border-radius: 12px;
  padding: 9px 12px;
  display: flex; align-items: center; gap: 9px;
}
.hifi .sys-banner .lock {
  width: 26px; height: 26px; border-radius: 7px;
  background: var(--hf-ink); color: var(--hf-bg);
  display: grid; place-items: center; flex-shrink: 0;
}
.hifi .sys-banner .lock svg { width: 14px; height: 14px; }
.hifi .sys-banner .txt { font-size: 11.5px; color: var(--hf-ink-2); line-height: 1.3; }
.hifi .sys-banner .txt b { font-weight: 600; color: var(--hf-ink); }

/* open banner (published agent — free to message) */
.hifi .open-banner {
  margin: 10px 12px 4px;
  background: color-mix(in srgb, var(--hf-green) 8%, var(--hf-bg));
  border: 1px solid color-mix(in srgb, var(--hf-green) 26%, transparent);
  border-radius: 12px; padding: 9px 12px;
  display: flex; align-items: center; gap: 9px;
}
.hifi .open-banner .lk {
  width: 26px; height: 26px; border-radius: 7px; flex-shrink: 0;
  background: color-mix(in srgb, var(--hf-green) 16%, transparent); color: var(--hf-green);
  display: grid; place-items: center;
}
.hifi .open-banner .lk svg { width: 14px; height: 14px; }
.hifi .open-banner .tx { font-size: 11.5px; color: var(--hf-ink-2); line-height: 1.32; }
.hifi .open-banner .tx b { font-weight: 600; color: var(--hf-ink); }

/* system row (admissions list / inbox) */
.hifi .sysrow {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 11px 14px; position: relative;
}
.hifi .sysrow::after {
  content:''; position:absolute; left:52px; right:14px; bottom:0;
  height:1px; background: var(--hf-line);
}
.hifi .sysrow:last-child::after { display:none; }
.hifi .sysrow .glyph {
  width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0;
  background: var(--hf-surface-2); color: var(--hf-ink-2);
  display: grid; place-items: center; margin-top: 1px;
}
.hifi .sysrow .glyph svg { width: 15px; height: 15px; }
.hifi .sysrow .glyph.attn { background: var(--hf-bg-alt); color: var(--hf-amber); }
.hifi .sysrow .meta { flex: 1; min-width: 0; }
.hifi .sysrow .meta .name { font-size: 13.5px; font-weight: 600; line-height: 1.25; }
.hifi .sysrow .meta .sub { font-size: 12px; color: var(--hf-muted); line-height: 1.32; margin-top: 2px; }
.hifi .sysrow .meta .sub b { color: var(--hf-ink-2); font-weight: 600; }
.hifi .sysrow .ttl-row { display: flex; align-items: center; gap: 8px; }
.hifi .sysrow .right { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.hifi .sysrow .right .when { font-family: var(--hf-mono); font-size: 10.5px; color: var(--hf-muted); }

/* TTL / countdown + state pills */
.hifi .ttl-pill {
  font-family: var(--hf-mono); font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.02em; padding: 2px 6px; border-radius: 999px;
  background: var(--hf-bg-alt); color: var(--hf-amber);
  border: 1px solid color-mix(in srgb, var(--hf-amber) 30%, transparent);
}
.hifi .state-pill {
  font-size: 9.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 999px;
}
.hifi .state-pill.pending { background: var(--hf-bg-alt); color: var(--hf-amber); }
.hifi .state-pill.approved { background: color-mix(in srgb, var(--hf-green) 14%, transparent); color: var(--hf-green); }
.hifi .state-pill.denied { background: color-mix(in srgb, var(--hf-red) 12%, transparent); color: var(--hf-red); }

/* decide screen */
.hifi .decide { flex: 1; display: flex; flex-direction: column; padding: 16px 16px 14px; overflow-y: auto; }
.hifi .decide .kicker {
  font-family: var(--hf-mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--hf-amber);
  display: flex; align-items: center; gap: 6px;
}
.hifi .decide .kicker::before { content:''; width:6px; height:6px; border-radius:50%; background: var(--hf-amber); }
.hifi .decide h2 { font-size: 21px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; margin: 10px 0 0; }
.hifi .decide .who {
  margin-top: 16px; display: flex; align-items: center; gap: 12px;
  padding: 12px; background: var(--hf-surface); border: 1px solid var(--hf-line);
  border-radius: 14px;
}
.hifi .decide .who .arrow { color: var(--hf-fade); font-size: 16px; }
.hifi .decide .who .col { display: flex; flex-direction: column; align-items: center; gap: 5px; flex: 1; }
.hifi .decide .who .col .nm { font-size: 11.5px; font-weight: 600; text-align: center; line-height: 1.2; }
.hifi .decide .who .col .role { font-family: var(--hf-mono); font-size: 9px; color: var(--hf-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.hifi .decide .quote {
  margin-top: 14px; padding: 11px 13px; border-left: 3px solid var(--hf-line-2);
  background: var(--hf-bg-alt); border-radius: 0 10px 10px 0;
  font-size: 12.5px; color: var(--hf-ink-2); line-height: 1.45; font-style: italic;
}
.hifi .decide .quote .by { display: block; font-style: normal; font-family: var(--hf-mono); font-size: 10px; color: var(--hf-muted); margin-top: 6px; }
.hifi .decide .clarify {
  margin-top: 14px; font-size: 11.5px; color: var(--hf-muted); line-height: 1.4;
  display: flex; gap: 8px; align-items: flex-start;
}
.hifi .decide .clarify .i {
  width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0; margin-top: 1px;
  border: 1.4px solid var(--hf-line-2); color: var(--hf-muted);
  display: grid; place-items: center; font-family: var(--hf-mono); font-size: 10px; font-weight: 700;
}
.hifi .decide .clarify b { color: var(--hf-ink-2); font-weight: 600; }
.hifi .decide .acts { margin-top: auto; padding-top: 18px; display: flex; gap: 10px; }
.hifi .decide .acts .btn {
  flex: 1; padding: 13px 0; border-radius: 13px; text-align: center;
  font-size: 14.5px; font-weight: 600; white-space: nowrap;
}
.hifi .decide .acts .btn.deny { background: var(--hf-surface-2); color: var(--hf-ink); }
.hifi .decide .acts .btn.approve { background: var(--hf-ink); color: var(--hf-bg); }
.hifi .decide .ttlnote { text-align: center; font-family: var(--hf-mono); font-size: 10px; color: var(--hf-muted); margin-top: 12px; letter-spacing: 0.02em; }

/* pending (requester side) */
.hifi .pending-pill {
  align-self: center; margin: 8px 0;
  background: var(--hf-bg-alt); border: 1px solid var(--hf-line-2);
  border-radius: 999px; padding: 6px 12px;
  display: flex; align-items: center; gap: 8px;
  font-size: 11.5px; color: var(--hf-ink-2);
}
.hifi .pending-pill .spin {
  width: 11px; height: 11px; border-radius: 50%;
  border: 1.6px solid var(--hf-line-2); border-top-color: var(--hf-amber);
  animation: hf-spin 0.9s linear infinite;
}
@keyframes hf-spin { to { transform: rotate(360deg); } }
.hifi .bubble.queued { opacity: 0.6; }
.hifi .bubble .qtag { font-family: var(--hf-mono); font-size: 9.5px; margin-top: 4px; color: rgba(255,255,255,0.75); font-weight: 500; }
.hifi .bubble.rejected { border: 1px dashed var(--hf-red); background: color-mix(in srgb, var(--hf-red) 6%, var(--hf-bg)); color: var(--hf-ink); align-self: flex-end; }
.hifi .bubble.rejected .qtag { color: var(--hf-red); }

/* participant strip (multi-party) */
.hifi .participants {
  display: flex; gap: 7px; padding: 8px 12px; overflow-x: auto;
  border-bottom: 1px solid var(--hf-line); background: var(--hf-bg);
  scrollbar-width: none;
}
.hifi .participants::-webkit-scrollbar { height: 0; }
.hifi .pchip {
  display: flex; align-items: center; gap: 6px;
  background: var(--hf-surface-2); border-radius: 999px;
  padding: 3px 9px 3px 4px; flex-shrink: 0;
}
.hifi .pchip .nm { font-size: 11px; font-weight: 600; line-height: 1; }
.hifi .pchip .kind {
  font-family: var(--hf-mono); font-size: 8px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--hf-muted);
}
.hifi .pchip.you { background: color-mix(in srgb, var(--hf-accent) 14%, transparent); }
.hifi .pchip.you .nm { color: var(--hf-accent-deep); }
.hifi .pchip .reach {
  font-family: var(--hf-mono); font-size: 8px; font-weight: 600; letter-spacing: 0.02em;
  padding: 1px 4px; border-radius: 4px; line-height: 1.3;
}
.hifi .pchip .reach.all { background: var(--hf-accent-tint); color: var(--hf-accent-deep); }
.hifi .pchip .reach.owner { background: var(--hf-bg-alt); color: var(--hf-muted); }

/* owner-scoped bot note */
.hifi .scope-note {
  align-self: flex-start; max-width: 86%;
  display: flex; align-items: center; gap: 8px; margin: 3px 0;
  padding: 8px 11px; border-radius: 12px;
  background: var(--hf-bg-alt); border: 1px dashed var(--hf-line-2);
}
.hifi .scope-note .lk {
  width: 24px; height: 24px; border-radius: 7px; flex-shrink: 0;
  background: var(--hf-surface-2); color: var(--hf-muted);
  display: grid; place-items: center;
}
.hifi .scope-note .lk svg { width: 13px; height: 13px; }
.hifi .scope-note .tx { font-size: 11.5px; color: var(--hf-ink-2); line-height: 1.35; }
.hifi .scope-note .tx b { font-weight: 600; color: var(--hf-ink); }

/* system bubble (spawn / handoff.decline / clarification) */
.hifi .sys-msg {
  align-self: center; max-width: 86%;
  background: var(--hf-bg-alt); border: 1px solid var(--hf-line);
  border-radius: 12px; padding: 9px 12px; margin: 4px 0;
}
.hifi .sys-msg .lbl {
  font-family: var(--hf-mono); font-size: 9px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--hf-muted);
  margin-bottom: 4px; display: flex; align-items: center; gap: 6px;
}
.hifi .sys-msg.decline .lbl { color: var(--hf-red); }
.hifi .sys-msg.decline .lbl::before { content:''; width:5px; height:5px; border-radius:50%; background: var(--hf-red); }
.hifi .sys-msg .body { font-size: 12.5px; color: var(--hf-ink-2); line-height: 1.4; }
.hifi .sys-msg .body b { color: var(--hf-ink); font-weight: 600; }
.hifi .sys-msg.spawn { display: flex; align-items: center; gap: 10px; }
.hifi .sys-msg.spawn .ic {
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
  background: var(--hf-surface-2); color: var(--hf-ink-2);
  display: grid; place-items: center;
}
.hifi .sys-msg.spawn .ic svg { width: 15px; height: 15px; }
.hifi .sys-msg.spawn .jump { font-size: 11px; font-weight: 600; color: var(--hf-accent); flex-shrink: 0; }

/* clarification inline answer field */
.hifi .clarify-card {
  align-self: flex-start; max-width: 84%;
  background: var(--hf-surface); border: 1px solid var(--hf-line-2);
  border-radius: 14px; padding: 11px 12px; margin: 2px 0;
}
.hifi .clarify-card .q { font-size: 13px; color: var(--hf-ink); line-height: 1.35; }
.hifi .clarify-card .field {
  margin-top: 9px; background: var(--hf-bg-alt); border: 1px solid var(--hf-line);
  border-radius: 9px; padding: 8px 10px; display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--hf-muted);
}
.hifi .clarify-card .field .go { color: var(--hf-accent); font-weight: 600; }

/* directory */
.hifi .cat-rail { display: flex; gap: 7px; padding: 8px 12px 6px; overflow: hidden; }
.hifi .cat {
  font-size: 12px; font-weight: 500; padding: 5px 12px; border-radius: 999px;
  background: var(--hf-surface-2); color: var(--hf-ink-2); flex-shrink: 0;
}
.hifi .cat.on { background: var(--hf-ink); color: var(--hf-bg); font-weight: 600; }
.hifi .dir-row { padding: 11px 14px; }
.hifi .signal {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  font-family: var(--hf-mono); font-size: 10px; color: var(--hf-muted);
}
.hifi .dir-row .signal { margin-top: 5px; }
.hifi .signal .star { color: var(--hf-amber); }
.hifi .signal .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--hf-fade); flex-shrink: 0; }
.hifi .price-badge { font-family: var(--hf-mono); font-size: 10.5px; font-weight: 600; padding: 3px 8px; border-radius: 7px; white-space: nowrap; }
.hifi .price-badge.free { background: color-mix(in srgb, var(--hf-green) 13%, transparent); color: var(--hf-green); }
.hifi .price-badge.paid { background: var(--hf-surface-2); color: var(--hf-ink-2); }

/* listing detail: capability envelope */
.hifi .envelope {
  margin-top: 16px; border: 1px solid var(--hf-line-2); border-radius: 14px;
  padding: 12px 13px; background: var(--hf-surface);
}
.hifi .envelope .eh {
  font-family: var(--hf-mono); font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--hf-ink-2);
  display: flex; align-items: center; gap: 7px; margin-bottom: 9px;
}
.hifi .envelope .eh .shield { width: 16px; height: 16px; color: var(--hf-accent); }
.hifi .envelope .eh svg { width: 15px; height: 15px; flex-shrink: 0; }
.hifi .envelope .cap-line {
  display: flex; gap: 9px; padding: 6px 0; font-size: 12px; color: var(--hf-ink-2); line-height: 1.35;
  border-top: 1px dashed var(--hf-line); align-items: flex-start;
}
.hifi .envelope .cap-line:first-of-type { border-top: none; }
.hifi .envelope .cap-line .scope {
  font-family: var(--hf-mono); font-size: 10px; color: var(--hf-accent-deep);
  background: var(--hf-accent-tint); padding: 1px 5px; border-radius: 5px; white-space: nowrap; flex-shrink: 0;
}
.hifi .envelope .foot {
  margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--hf-line);
  font-size: 11px; color: var(--hf-muted); line-height: 1.4;
}
.hifi .examples { margin-top: 16px; }
.hifi .examples .ex-h {
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--hf-muted); margin-bottom: 8px;
}
.hifi .examples .ex { display: flex; gap: 8px; margin-bottom: 7px; align-items: flex-start; }
.hifi .examples .ex .ico {
  width: 18px; height: 18px; border-radius: 6px; flex-shrink: 0; margin-top: 1px;
  background: var(--hf-surface-2); color: var(--hf-ink-2);
  display: grid; place-items: center; font-family: var(--hf-mono); font-size: 10px; font-weight: 700;
}
.hifi .examples .ex .t { font-size: 12px; color: var(--hf-ink-2); line-height: 1.35; }

/* deep-link landing */
.hifi .resolve {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; padding: 24px; text-align: center;
}
.hifi .resolve .badge-spin {
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--hf-surface); border: 1px solid var(--hf-line-2);
  display: grid; place-items: center; position: relative;
}
.hifi .resolve .badge-spin .ring2 {
  position: absolute; inset: -5px; border-radius: 20px;
  border: 2px solid var(--hf-line); border-top-color: var(--hf-accent);
  animation: hf-spin 0.9s linear infinite;
}
.hifi .resolve .steps { display: flex; flex-direction: column; gap: 9px; width: 100%; max-width: 220px; margin-top: 4px; }
.hifi .resolve .step { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--hf-muted); text-align: left; }
.hifi .resolve .step .tick {
  width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-size: 10px; font-weight: 700;
  background: var(--hf-surface-2); color: var(--hf-muted);
}
.hifi .resolve .step.done { color: var(--hf-ink-2); }
.hifi .resolve .step.done .tick { background: var(--hf-green); color: white; }
.hifi .resolve .step.now { color: var(--hf-ink); font-weight: 600; }
.hifi .resolve .step.now .tick { background: var(--hf-accent); color: white; }
.hifi .resolve .url { font-family: var(--hf-mono); font-size: 10.5px; color: var(--hf-fade); margin-top: 2px; }

/* operator: gauges header */
.hifi .op-head { padding: 12px 16px 14px; border-bottom: 1px solid var(--hf-line); }
.hifi .gauges { display: flex; gap: 10px; }
.hifi .gauge { flex: 1; }
.hifi .gauge .top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 5px; }
.hifi .gauge .lab { font-size: 11px; font-weight: 600; color: var(--hf-ink-2); }
.hifi .gauge .val { font-family: var(--hf-mono); font-size: 11px; color: var(--hf-muted); }
.hifi .gauge .val b { color: var(--hf-ink); font-weight: 600; }
.hifi .gauge .bar { height: 6px; border-radius: 999px; background: var(--hf-surface-2); overflow: hidden; }
.hifi .gauge .bar i { display: block; height: 100%; border-radius: 999px; background: var(--hf-ink); }
.hifi .gauge.soon { opacity: 0.55; }
.hifi .gauge.soon .bar i { background: var(--hf-line-2); }
.hifi .gauge .soon-tag {
  font-family: var(--hf-mono); font-size: 8px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--hf-muted); background: var(--hf-bg-alt);
  padding: 1px 5px; border-radius: 4px; margin-left: 5px;
}

/* operator: agent rows */
.hifi .op-row { display: flex; align-items: center; gap: 11px; padding: 11px 14px; position: relative; }
.hifi .op-row::after { content:''; position:absolute; left:62px; right:14px; bottom:0; height:1px; background: var(--hf-line); }
.hifi .op-row:last-child::after { display:none; }
.hifi .op-row .meta { flex: 1; min-width: 0; }
.hifi .op-row .meta .top { display: flex; align-items: center; gap: 7px; }
.hifi .op-row .meta .name { font-size: 14px; font-weight: 600; line-height: 1.2; }
.hifi .op-row .meta .stat {
  font-family: var(--hf-mono); font-size: 10.5px; color: var(--hf-muted);
  margin-top: 3px; display: flex; align-items: center; gap: 6px;
}
.hifi .op-row .meta .stat .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--hf-fade); }
.hifi .op-row .right { text-align: right; }
.hifi .op-row .right .spend { font-family: var(--hf-mono); font-size: 12px; font-weight: 600; color: var(--hf-ink); }
.hifi .op-row .right .when { font-family: var(--hf-mono); font-size: 10px; color: var(--hf-muted); margin-top: 2px; }

/* tier badge */
.hifi .tier { font-family: var(--hf-mono); font-size: 9px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; padding: 2px 6px; border-radius: 5px; }
.hifi .tier.private { background: var(--hf-surface-2); color: var(--hf-ink-2); }
.hifi .tier.network { background: var(--hf-accent-tint); color: var(--hf-accent-deep); }
.hifi .tier.public { background: var(--hf-ink); color: var(--hf-bg); }
.hifi .kind-tag { font-family: var(--hf-mono); font-size: 9.5px; color: var(--hf-muted); }
.hifi .sdot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.hifi .sdot.running { background: var(--hf-green); }
.hifi .sdot.idle { background: var(--hf-fade); }
.hifi .sdot.errored { background: var(--hf-red); }
.hifi .sdot.revoked { background: var(--hf-line-2); }

/* agent detail */
.hifi .ad-hero { padding: 16px; display: flex; align-items: center; gap: 13px; border-bottom: 1px solid var(--hf-line); }
.hifi .ad-hero .meta { flex: 1; min-width: 0; }
.hifi .ad-hero .name { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.hifi .ad-hero .badges { display: flex; gap: 6px; margin-top: 7px; flex-wrap: wrap; align-items: center; }
.hifi .ad-section { padding: 13px 16px; border-bottom: 1px solid var(--hf-line); }
.hifi .ad-section .sh {
  font-family: var(--hf-mono); font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--hf-muted); margin-bottom: 10px;
}
.hifi .ad-kv { display: flex; justify-content: space-between; align-items: baseline; padding: 5px 0; font-size: 12.5px; }
.hifi .ad-kv .k { color: var(--hf-muted); }
.hifi .ad-kv .v { color: var(--hf-ink); font-weight: 500; text-align: right; }
.hifi .ad-kv .v.mono { font-family: var(--hf-mono); font-size: 11.5px; }
.hifi .lineage {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  background: var(--hf-bg-alt); border-radius: 10px; font-size: 11.5px; color: var(--hf-ink-2);
}
.hifi .lineage .arc { color: var(--hf-fade); }
.hifi .lineage b { font-weight: 600; }
.hifi .soul { background: var(--hf-surface); border: 1px solid var(--hf-line-2); border-radius: 11px; padding: 11px 12px; position: relative; }
.hifi .soul .code { font-family: var(--hf-mono); font-size: 11px; color: var(--hf-ink-2); line-height: 1.55; white-space: pre-wrap; }
.hifi .soul .edit {
  position: absolute; top: 9px; right: 10px; font-size: 11px; font-weight: 600;
  color: var(--hf-accent); background: var(--hf-bg); padding: 3px 9px; border-radius: 7px;
  border: 1px solid var(--hf-line);
}
.hifi .ad-actions { padding: 13px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.hifi .ad-btn {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-radius: 11px; font-size: 13.5px; font-weight: 600;
  background: var(--hf-surface-2); color: var(--hf-ink);
}
.hifi .ad-btn .chev { color: var(--hf-muted); }
.hifi .ad-btn.danger { background: color-mix(in srgb, var(--hf-red) 9%, var(--hf-bg)); color: var(--hf-red); border: 1px solid color-mix(in srgb, var(--hf-red) 22%, transparent); }

/* per-pair switch matrix (C6) */
.hifi .matrix-note { padding: 6px 16px 12px; font-size: 12px; color: var(--hf-muted); line-height: 1.4; }
.hifi .matrix { padding: 0 14px 14px; }
.hifi .mrow { display: flex; align-items: center; gap: 10px; padding: 11px 4px; position: relative; }
.hifi .mrow::after { content:''; position:absolute; left:4px; right:4px; bottom:0; height:1px; background: var(--hf-line); }
.hifi .mrow:last-child::after { display:none; }
.hifi .mrow .pair { flex: 1; min-width: 0; }
.hifi .mrow .pair .names { font-size: 12.5px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.hifi .mrow .pair .names .ar { color: var(--hf-fade); font-family: var(--hf-mono); font-size: 11px; }
.hifi .mrow .pair .reason { font-size: 11px; color: var(--hf-muted); margin-top: 3px; line-height: 1.3; }
.hifi .seg { display: flex; background: var(--hf-surface-2); border-radius: 8px; padding: 2px; gap: 2px; flex-shrink: 0; }
.hifi .seg .opt {
  font-family: var(--hf-mono); font-size: 9px; font-weight: 600; letter-spacing: 0.02em;
  padding: 4px 7px; border-radius: 6px; color: var(--hf-muted);
}
.hifi .seg .opt.on { background: var(--hf-ink); color: var(--hf-bg); }
.hifi .seg .opt.on.block { background: var(--hf-red); }
.hifi .one-sided { font-family: var(--hf-mono); font-size: 9px; color: var(--hf-muted); background: var(--hf-bg-alt); padding: 2px 6px; border-radius: 5px; }

/* audit feed (uses denied-prompt, not blocked delivery) */
.hifi .audit { padding: 6px 0 14px; }
.hifi .arow { display: flex; gap: 11px; padding: 9px 16px; position: relative; }
.hifi .arow .rail { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.hifi .arow .rail .node {
  width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  background: var(--hf-surface-2); color: var(--hf-ink-2); z-index: 1;
}
.hifi .arow .rail .node svg { width: 13px; height: 13px; }
.hifi .arow .rail .node.spawn { background: var(--hf-accent-tint); color: var(--hf-accent-deep); }
.hifi .arow .rail .node.block { background: color-mix(in srgb, var(--hf-red) 12%, transparent); color: var(--hf-red); }
.hifi .arow .rail .node.tier { background: var(--hf-bg-alt); color: var(--hf-ink); }
.hifi .arow .rail .line { width: 1.5px; flex: 1; background: var(--hf-line); margin: 2px 0 -9px; }
.hifi .arow:last-child .rail .line { display: none; }
.hifi .arow .body { flex: 1; min-width: 0; padding-bottom: 2px; }
.hifi .arow .body .t { font-size: 12.5px; color: var(--hf-ink); line-height: 1.35; }
.hifi .arow .body .t b { font-weight: 600; }
.hifi .arow .body .reason { font-size: 11px; color: var(--hf-muted); margin-top: 3px; line-height: 1.35; font-style: italic; }
.hifi .arow .body .when { font-family: var(--hf-mono); font-size: 9.5px; color: var(--hf-fade); margin-top: 3px; }
.hifi .arow .body .trace { font-family: var(--hf-mono); font-size: 9.5px; color: var(--hf-fade); }

/* render surface (E) */
.hifi .render {
  align-self: flex-start; max-width: 88%; width: 88%;
  background: var(--hf-surface); border: 1px solid var(--hf-line-2);
  border-radius: 16px; overflow: hidden; margin: 2px 0;
}
.hifi .render .r-attr { display: flex; align-items: center; gap: 6px; padding: 7px 12px 0; font-size: 10px; color: var(--hf-muted); }
.hifi .render .r-pad { padding: 10px 13px 12px; }
.hifi .render .r-h { font-size: 14.5px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 5px; }
.hifi .render .r-text { font-size: 12.5px; color: var(--hf-ink-2); line-height: 1.45; }
.hifi .render .r-list { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.hifi .render .r-list .li { display: flex; gap: 8px; font-size: 12px; color: var(--hf-ink-2); align-items: flex-start; }
.hifi .render .r-list .li .b { color: var(--hf-accent); font-weight: 700; }
.hifi .render .r-img {
  margin-top: 10px; border-radius: 10px; overflow: hidden; border: 1px solid var(--hf-line);
  background: repeating-linear-gradient(45deg, var(--hf-bg-alt), var(--hf-bg-alt) 8px, var(--hf-surface-2) 8px, var(--hf-surface-2) 16px);
  height: 92px; display: grid; place-items: center; position: relative;
}
.hifi .render .r-img .ph { font-family: var(--hf-mono); font-size: 10px; color: var(--hf-muted); background: var(--hf-bg); padding: 3px 8px; border-radius: 6px; }
.hifi .render .r-img .proxy {
  position: absolute; top: 6px; right: 6px; font-family: var(--hf-mono); font-size: 8px;
  background: var(--hf-ink); color: var(--hf-bg); padding: 1px 5px; border-radius: 4px;
}
.hifi .render .r-card { margin-top: 10px; border: 1px solid var(--hf-line); border-radius: 11px; padding: 10px 11px; background: var(--hf-bg); }
.hifi .render .r-card .rc-h { font-size: 12px; font-weight: 600; }
.hifi .render .r-card .rc-kv { display: flex; justify-content: space-between; font-size: 11.5px; padding: 3px 0; color: var(--hf-ink-2); }
.hifi .render .r-card .rc-kv .k { color: var(--hf-muted); }
.hifi .render .r-card .rc-kv .v { font-family: var(--hf-mono); }
.hifi .render .r-sep { height: 1px; background: var(--hf-line); margin: 11px 0; }
.hifi .render .r-progress { margin-top: 10px; }
.hifi .render .r-progress .pbar { height: 6px; border-radius: 999px; background: var(--hf-surface-2); overflow: hidden; }
.hifi .render .r-progress .pbar i { display: block; height: 100%; background: var(--hf-accent); border-radius: 999px; }
.hifi .render .r-progress .plab { font-family: var(--hf-mono); font-size: 10px; color: var(--hf-muted); margin-top: 5px; }
.hifi .render .r-actions { display: flex; gap: 8px; margin-top: 12px; }
.hifi .render .r-btn {
  flex: 1; text-align: center; padding: 9px 0; border-radius: 9px;
  font-size: 12.5px; font-weight: 600; background: var(--hf-surface-2); color: var(--hf-ink);
  white-space: nowrap;
}
.hifi .render .r-btn.primary { background: var(--hf-accent); color: white; }
.hifi .render .r-btn.danger { background: color-mix(in srgb, var(--hf-red) 10%, var(--hf-bg)); color: var(--hf-red); border: 1px solid color-mix(in srgb, var(--hf-red) 24%, transparent); }
.hifi .render .r-field {
  margin-top: 9px; background: var(--hf-bg-alt); border: 1px solid var(--hf-line);
  border-radius: 9px; padding: 9px 11px; font-size: 12px; color: var(--hf-ink);
  display: flex; justify-content: space-between; align-items: center;
}
.hifi .render .r-field .fl { font-size: 9.5px; font-family: var(--hf-mono); color: var(--hf-muted); text-transform: uppercase; letter-spacing: 0.04em; display:block; margin-bottom: 3px; }
.hifi .render .r-fallback {
  font-family: var(--hf-mono); font-size: 9.5px; color: var(--hf-fade);
  padding: 6px 12px; border-top: 1px dashed var(--hf-line); background: var(--hf-bg-alt);
}
.hifi .bubble.action-echo { background: var(--hf-accent); color: white; }
.hifi .bubble.action-echo .a-meta { font-family: var(--hf-mono); font-size: 9.5px; color: rgba(255,255,255,0.78); margin-top: 4px; }

/* outbound-link interstitial */
.hifi .interstitial { padding: 18px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.hifi .interstitial .g {
  width: 52px; height: 52px; border-radius: 14px; background: var(--hf-surface-2);
  display: grid; place-items: center; color: var(--hf-ink-2);
}
.hifi .interstitial .g svg { width: 24px; height: 24px; }
.hifi .interstitial .ttl { font-size: 16px; font-weight: 700; }
.hifi .interstitial .host {
  font-family: var(--hf-mono); font-size: 13px; font-weight: 600; color: var(--hf-ink);
  background: var(--hf-bg-alt); border: 1px solid var(--hf-line-2);
  padding: 9px 14px; border-radius: 10px; word-break: break-all; max-width: 100%;
}
.hifi .interstitial .host .scheme { color: var(--hf-muted); }
.hifi .interstitial .sub { font-size: 12px; color: var(--hf-muted); line-height: 1.4; max-width: 230px; }
.hifi .interstitial .acts { display: flex; gap: 10px; width: 100%; margin-top: 6px; }
.hifi .interstitial .acts .btn { flex: 1; padding: 12px 0; border-radius: 12px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.hifi .interstitial .acts .btn.cancel { background: var(--hf-surface-2); color: var(--hf-ink); }
.hifi .interstitial .acts .btn.open { background: var(--hf-ink); color: var(--hf-bg); }

/* grant card (Granite, F1) */
.hifi .grant-card {
  align-self: stretch; margin: 6px 0;
  background: var(--hf-surface);
  border: 1.5px solid var(--hf-accent-deep);
  border-radius: 16px; overflow: hidden;
  box-shadow: var(--hf-sh-2);
}
.hifi .grant-card .gc-top { background: var(--hf-accent-deep); color: white; padding: 8px 13px; display: flex; align-items: center; gap: 8px; }
.hifi .grant-card .gc-top .gr { width: 20px; height: 20px; border-radius: 6px; background: rgba(255,255,255,0.16); display: grid; place-items: center; }
.hifi .grant-card .gc-top .gr svg { width: 12px; height: 12px; }
.hifi .grant-card .gc-top .lbl { font-family: var(--hf-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; flex: 1; }
.hifi .grant-card .gc-top .from { font-family: var(--hf-mono); font-size: 9px; opacity: 0.8; }
.hifi .grant-card .gc-body { padding: 12px 14px; }
.hifi .grant-card .gc-ttl { font-size: 14.5px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
.hifi .grant-card .gc-rows { margin-top: 10px; display: flex; flex-direction: column; gap: 1px; border-radius: 10px; overflow: hidden; border: 1px solid var(--hf-line); }
.hifi .grant-card .gc-row { display: flex; gap: 10px; padding: 8px 11px; background: var(--hf-bg); font-size: 12px; }
.hifi .grant-card .gc-row .k { font-family: var(--hf-mono); font-size: 9.5px; color: var(--hf-muted); text-transform: uppercase; letter-spacing: 0.04em; width: 56px; flex-shrink: 0; padding-top: 1px; }
.hifi .grant-card .gc-row .v { color: var(--hf-ink); flex: 1; line-height: 1.35; }
.hifi .grant-card .gc-row .v .mono { font-family: var(--hf-mono); font-size: 11px; background: var(--hf-surface-2); padding: 0 4px; border-radius: 4px; }
.hifi .grant-card .gc-row .v .expiry { color: var(--hf-amber); font-weight: 600; }
.hifi .grant-card .gc-actions { display: flex; gap: 8px; margin-top: 12px; }
.hifi .grant-card .gc-btn { flex: 1; text-align: center; padding: 11px 0; border-radius: 11px; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.hifi .grant-card .gc-btn.deny { background: var(--hf-surface-2); color: var(--hf-ink); }
.hifi .grant-card .gc-btn.grant { background: var(--hf-accent-deep); color: white; }
.hifi .grant-card .gc-foot { font-size: 10.5px; color: var(--hf-muted); margin-top: 10px; line-height: 1.4; text-align: center; }
.hifi .grant-card .gc-foot a { color: var(--hf-accent); font-weight: 600; }
.hifi .gc-always {
  margin-top: 8px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 0; border-radius: 10px; font-size: 12.5px; font-weight: 600;
  background: transparent; color: var(--hf-accent-deep); border: 1.5px solid var(--hf-accent);
}
.hifi .gc-always svg { width: 13px; height: 13px; }

/* capability lowering (F2) — 3 steps */
.hifi .lower { flex: 1; overflow-y: auto; padding: 14px 16px 16px; }
.hifi .lower .intro { font-size: 12.5px; color: var(--hf-muted); line-height: 1.45; margin-bottom: 14px; }
.hifi .lstep { display: flex; gap: 12px; }
.hifi .lstep .col { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.hifi .lstep .col .num {
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--hf-mono); font-size: 11px; font-weight: 700;
  background: var(--hf-surface-2); color: var(--hf-ink-2);
}
.hifi .lstep.active .col .num { background: var(--hf-accent); color: white; }
.hifi .lstep .col .seg { width: 1.5px; flex: 1; background: var(--hf-line-2); margin: 4px 0; }
.hifi .lstep:last-child .col .seg { display: none; }
.hifi .lstep .panel { flex: 1; padding-bottom: 16px; }
.hifi .lstep .panel .lh { font-size: 13.5px; font-weight: 700; letter-spacing: -0.01em; }
.hifi .lstep .panel .lk {
  font-family: var(--hf-mono); font-size: 9px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--hf-muted); margin-bottom: 2px;
}
.hifi .lstep.active .panel .lk { color: var(--hf-accent-deep); }
.hifi .lstep .panel .card { margin-top: 9px; border: 1px solid var(--hf-line-2); border-radius: 12px; padding: 11px 12px; background: var(--hf-surface); }
.hifi .lstep.active .panel .card { border-color: var(--hf-accent); box-shadow: 0 0 0 3px var(--hf-accent-tint); }
.hifi .lstep .panel .card.ro { background: var(--hf-bg-alt); }
.hifi .lstep .scope-line { display: flex; gap: 8px; align-items: center; padding: 4px 0; font-size: 12px; color: var(--hf-ink-2); }
.hifi .lstep .scope-line .tk { font-family: var(--hf-mono); font-size: 11px; color: var(--hf-accent-deep); background: var(--hf-accent-tint); padding: 1px 5px; border-radius: 5px; }
.hifi .lstep .scope-line.muted { color: var(--hf-muted); }
.hifi .lstep .scope-line.muted .tk { background: var(--hf-surface-2); color: var(--hf-muted); }
.hifi .lstep .picker {
  margin-top: 9px; display: flex; align-items: center; justify-content: space-between;
  background: var(--hf-bg-alt); border: 1px solid var(--hf-line); border-radius: 9px; padding: 9px 11px;
  font-size: 12px;
}
.hifi .lstep .picker .folder { font-family: var(--hf-mono); font-size: 11px; color: var(--hf-ink); display: flex; align-items: center; gap: 6px; }
.hifi .lstep .picker .change { color: var(--hf-accent); font-weight: 600; }
.hifi .lstep .toggle-row { display: flex; gap: 8px; margin-top: 9px; }
.hifi .lstep .tgl { flex: 1; text-align: center; padding: 8px 0; border-radius: 8px; font-size: 11.5px; font-weight: 600; background: var(--hf-surface-2); color: var(--hf-muted); }
.hifi .lstep .tgl.on { background: var(--hf-ink); color: var(--hf-bg); }

/* commerce */
.hifi .checkout { flex: 1; display: flex; flex-direction: column; padding: 16px 18px 14px; overflow-y: auto; }
.hifi .checkout .summary { border: 1px solid var(--hf-line-2); border-radius: 14px; padding: 13px; background: var(--hf-surface); display: flex; align-items: center; gap: 12px; }
.hifi .checkout .summary .meta { flex: 1; }
.hifi .checkout .summary .meta .name { font-size: 15px; font-weight: 700; }
.hifi .checkout .summary .meta .ver { font-family: var(--hf-mono); font-size: 10.5px; color: var(--hf-muted); margin-top: 2px; }
.hifi .checkout .summary .amt { text-align: right; }
.hifi .checkout .summary .amt .n { font-size: 18px; font-weight: 700; }
.hifi .checkout .summary .amt .per { font-family: var(--hf-mono); font-size: 10px; color: var(--hf-muted); }
.hifi .checkout .terms { margin-top: 14px; }
.hifi .checkout .terms .kv { display: flex; justify-content: space-between; padding: 7px 0; font-size: 12.5px; border-bottom: 1px solid var(--hf-line); }
.hifi .checkout .terms .kv .k { color: var(--hf-muted); }
.hifi .checkout .terms .kv .v { font-weight: 500; }
.hifi .handoff {
  margin-top: 16px; background: var(--hf-bg-alt); border: 1px solid var(--hf-line-2);
  border-radius: 12px; padding: 11px 13px; display: flex; gap: 10px; align-items: flex-start;
}
.hifi .handoff .lk { width: 18px; height: 18px; flex-shrink: 0; color: var(--hf-ink-2); margin-top: 1px; }
.hifi .handoff .t { font-size: 11.5px; color: var(--hf-ink-2); line-height: 1.4; }
.hifi .handoff .t b { color: var(--hf-ink); font-weight: 600; }
.hifi .checkout .pay { margin-top: auto; padding-top: 16px; }
.hifi .checkout .pay .btn {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--hf-ink); color: var(--hf-bg); border-radius: 13px;
  padding: 14px; font-size: 14.5px; font-weight: 600;
}
.hifi .checkout .pay .note { text-align: center; font-family: var(--hf-mono); font-size: 9.5px; color: var(--hf-fade); margin-top: 8px; letter-spacing: 0.02em; }

/* entitlement / usage list */
.hifi .ent { margin: 0 14px 10px; border: 1px solid var(--hf-line); border-radius: 14px; overflow: hidden; }
.hifi .ent .top { padding: 11px 13px; display: flex; align-items: center; gap: 11px; background: var(--hf-surface); }
.hifi .ent .top .meta { flex: 1; }
.hifi .ent .top .meta .name { font-size: 14px; font-weight: 600; }
.hifi .ent .top .meta .ver { font-family: var(--hf-mono); font-size: 10px; color: var(--hf-muted); margin-top: 2px; }
.hifi .ent .top .st { font-size: 9.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; padding: 2px 8px; border-radius: 999px; }
.hifi .ent .top .st.active { background: color-mix(in srgb, var(--hf-green) 14%, transparent); color: var(--hf-green); }
.hifi .ent .top .st.expired { background: var(--hf-surface-2); color: var(--hf-muted); }
.hifi .ent .det { padding: 9px 13px; background: var(--hf-bg-alt); display: flex; flex-direction: column; gap: 5px; }
.hifi .ent .det .kv { display: flex; justify-content: space-between; font-size: 11.5px; }
.hifi .ent .det .kv .k { color: var(--hf-muted); }
.hifi .ent .det .kv .v { font-family: var(--hf-mono); color: var(--hf-ink-2); }
.hifi .ent .det .manage { font-size: 11px; font-weight: 600; color: var(--hf-accent); margin-top: 3px; }
.hifi .usage-head { padding: 14px 16px; border-bottom: 1px solid var(--hf-line); }
.hifi .usage-head .big { font-family: var(--hf-mono); font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.hifi .usage-head .sub { font-size: 12px; color: var(--hf-muted); margin-top: 2px; }
.hifi .usage-head .meter-note {
  margin-top: 12px; font-size: 11px; color: var(--hf-ink-2); line-height: 1.4;
  background: var(--hf-bg-alt); border-radius: 9px; padding: 9px 11px;
}
.hifi .usage-head .meter-note b { font-weight: 600; }
.hifi .ulog .urow { display: flex; align-items: center; gap: 10px; padding: 10px 16px; position: relative; }
.hifi .ulog .urow::after { content:''; position:absolute; left:16px; right:16px; bottom:0; height:1px; background: var(--hf-line); }
.hifi .ulog .urow:last-child::after { display: none; }
.hifi .ulog .urow .meta { flex: 1; min-width: 0; }
.hifi .ulog .urow .meta .t { font-size: 12.5px; font-weight: 500; }
.hifi .ulog .urow .meta .w { font-family: var(--hf-mono); font-size: 10px; color: var(--hf-muted); margin-top: 2px; }
.hifi .ulog .urow .amt { font-family: var(--hf-mono); font-size: 12.5px; font-weight: 600; }

/* publish */
.hifi .publish { flex: 1; display: flex; flex-direction: column; padding: 16px; overflow-y: auto; }
.hifi .publish .warn-ic {
  width: 46px; height: 46px; border-radius: 13px; background: var(--hf-bg-alt);
  border: 1px solid var(--hf-line-2); display: grid; place-items: center; color: var(--hf-amber); margin-bottom: 12px;
}
.hifi .publish .warn-ic svg { width: 22px; height: 22px; }
.hifi .publish h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; }
.hifi .publish .lede { font-size: 12.5px; color: var(--hf-muted); line-height: 1.45; margin-top: 8px; }
.hifi .publish .becomes { margin-top: 16px; border: 1px solid var(--hf-line-2); border-radius: 13px; overflow: hidden; }
.hifi .publish .becomes .bh {
  padding: 8px 13px; background: var(--hf-bg-alt); font-family: var(--hf-mono); font-size: 9.5px;
  font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--hf-ink-2);
}
.hifi .publish .becomes .brow { display: flex; justify-content: space-between; padding: 9px 13px; font-size: 12.5px; border-top: 1px solid var(--hf-line); }
.hifi .publish .becomes .brow .k { color: var(--hf-muted); }
.hifi .publish .becomes .brow .v { font-weight: 500; text-align: right; max-width: 60%; }
.hifi .publish .danger-note { margin-top: 14px; display: flex; gap: 9px; align-items: flex-start; font-size: 11.5px; color: var(--hf-ink-2); line-height: 1.4; }
.hifi .publish .danger-note .d { color: var(--hf-red); flex-shrink: 0; font-weight: 700; }
.hifi .publish .reauth { margin-top: auto; padding-top: 16px; }
.hifi .publish .reauth .btn {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--hf-ink); color: var(--hf-bg); border-radius: 13px; padding: 14px; font-size: 14.5px; font-weight: 600;
}
.hifi .publish .reauth .sub { text-align: center; font-size: 10.5px; color: var(--hf-muted); margin-top: 8px; line-height: 1.4; }

/* listing editor form */
.hifi .editor { flex: 1; overflow-y: auto; padding: 6px 0 16px; }
.hifi .field-group { padding: 12px 16px; border-bottom: 1px solid var(--hf-line); }
.hifi .field-group .fl {
  font-family: var(--hf-mono); font-size: 9.5px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--hf-muted); margin-bottom: 7px; display: flex; align-items: center; justify-content: space-between;
}
.hifi .field-group .fl .lock-ic { color: var(--hf-fade); font-size: 9px; display: flex; align-items: center; gap: 4px; }
.hifi .field-input { background: var(--hf-surface); border: 1px solid var(--hf-line-2); border-radius: 10px; padding: 10px 12px; font-size: 13px; color: var(--hf-ink); }
.hifi .field-input.area { min-height: 56px; line-height: 1.4; color: var(--hf-ink-2); }
.hifi .field-input.locked { background: var(--hf-bg-alt); color: var(--hf-muted); display: flex; justify-content: space-between; align-items: center; }
.hifi .vis-seg { display: flex; gap: 8px; }
.hifi .vis-seg .opt { flex: 1; padding: 9px; border-radius: 10px; text-align: center; background: var(--hf-surface-2); border: 1px solid transparent; }
.hifi .vis-seg .opt.on { background: var(--hf-surface); border-color: var(--hf-accent); box-shadow: 0 0 0 2px var(--hf-accent-tint); }
.hifi .vis-seg .opt .vt { font-size: 12.5px; font-weight: 600; }
.hifi .vis-seg .opt .vs { font-size: 10px; color: var(--hf-muted); margin-top: 2px; line-height: 1.3; }
.hifi .terms-locked {
  margin: 12px 16px; padding: 10px 12px; border-radius: 10px;
  background: color-mix(in srgb, var(--hf-amber) 8%, var(--hf-bg)); border: 1px solid color-mix(in srgb, var(--hf-amber) 26%, transparent);
  font-size: 11px; color: var(--hf-ink-2); line-height: 1.4;
}
.hifi .terms-locked b { color: var(--hf-amber); }
.hifi .terms-locked .newver { color: var(--hf-accent); font-weight: 600; }

/* generic sticky action bar */
.hifi .action-bar { padding: 10px 16px 14px; border-top: 1px solid var(--hf-line); background: var(--hf-bg); display: flex; gap: 10px; }
.hifi .action-bar .btn { flex: 1; text-align: center; padding: 12px 0; border-radius: 12px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.hifi .action-bar .btn.ghost { background: var(--hf-surface-2); color: var(--hf-ink); }
.hifi .action-bar .btn.solid { background: var(--hf-ink); color: var(--hf-bg); }

/* revoke — confirm-destructive sheet (C5) */
.hifi .revoke { padding: 4px 18px 18px; }
.hifi .revoke .warn {
  width: 46px; height: 46px; border-radius: 13px; margin-bottom: 12px;
  background: color-mix(in srgb, var(--hf-red) 10%, var(--hf-bg)); color: var(--hf-red);
  display: grid; place-items: center;
}
.hifi .revoke .warn svg { width: 22px; height: 22px; }
.hifi .revoke h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.hifi .revoke .lede { font-size: 12.5px; color: var(--hf-muted); margin-top: 6px; line-height: 1.4; }
.hifi .revoke .does { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.hifi .revoke .does .li { display: flex; gap: 9px; font-size: 12.5px; color: var(--hf-ink-2); align-items: flex-start; line-height: 1.35; }
.hifi .revoke .does .li .x { color: var(--hf-red); font-weight: 700; flex-shrink: 0; }
.hifi .revoke .keeps { margin-top: 13px; padding: 10px 12px; border-radius: 10px; background: var(--hf-bg-alt); font-size: 11.5px; color: var(--hf-ink-2); line-height: 1.4; }
.hifi .revoke .keeps b { font-weight: 600; color: var(--hf-ink); }
.hifi .revoke .acts { display: flex; gap: 10px; margin-top: 16px; }
.hifi .revoke .acts .btn { flex: 1; padding: 12px 0; border-radius: 12px; text-align: center; font-size: 14px; font-weight: 600; white-space: nowrap; }
.hifi .revoke .acts .btn.cancel { background: var(--hf-surface-2); color: var(--hf-ink); }
.hifi .revoke .acts .btn.revoke { background: var(--hf-red); color: white; }

/* push / lock screen (I1) */
.hifi .lockscreen {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  padding: 26px 14px 16px;
  background: linear-gradient(180deg, var(--hf-bg) 0%, var(--hf-bg-alt) 100%);
}
.hifi .lock-clock { font-size: 56px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; margin-top: 6px; }
.hifi .lock-date { font-size: 13px; color: var(--hf-ink-2); font-weight: 500; margin: 5px 0 22px; }
.hifi .notif-stack { width: 100%; display: flex; flex-direction: column; gap: 9px; }
.hifi .notif {
  background: color-mix(in srgb, var(--hf-surface) 88%, transparent);
  border: 1px solid var(--hf-line); border-radius: 16px; padding: 10px 12px;
  display: flex; gap: 10px; box-shadow: var(--hf-sh-1);
}
.hifi .notif .ic {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  background: var(--hf-ink); color: var(--hf-bg);
  display: grid; place-items: center; font-family: var(--hf-mono); font-weight: 700; font-size: 11px;
}
.hifi .notif .bd { flex: 1; min-width: 0; }
.hifi .notif .bd .top { display: flex; align-items: center; gap: 6px; }
.hifi .notif .bd .ttl { font-size: 12.5px; font-weight: 600; flex: 1; min-width: 0; }
.hifi .notif .bd .tm { font-family: var(--hf-mono); font-size: 9.5px; color: var(--hf-muted); flex-shrink: 0; }
.hifi .notif .bd .msg { font-size: 11.5px; color: var(--hf-ink-2); line-height: 1.35; margin-top: 2px; }
.hifi .notif .bd .act { margin-top: 7px; font-size: 11px; font-weight: 600; color: var(--hf-accent); display: inline-flex; }
.hifi .notif .kp { font-family: var(--hf-mono); font-size: 8px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; padding: 1px 5px; border-radius: 4px; flex-shrink: 0; }
.hifi .notif .kp.act { background: var(--hf-accent-tint); color: var(--hf-accent-deep); }
.hifi .notif .kp.amb { background: var(--hf-bg-alt); color: var(--hf-muted); }
.hifi .notif.ambient { background: color-mix(in srgb, var(--hf-bg-alt) 70%, transparent); border-style: dashed; box-shadow: none; }
.hifi .notif.ambient .ic { background: var(--hf-surface-2); color: var(--hf-muted); }
.hifi .notif.alert .ic { background: var(--hf-red); }

/* checkout return — entitlement active (D2/D3) */
.hifi .success-badge {
  width: 56px; height: 56px; border-radius: 50%; margin: 8px auto 0;
  background: color-mix(in srgb, var(--hf-green) 14%, transparent); color: var(--hf-green);
  display: grid; place-items: center;
}
.hifi .success-badge svg { width: 28px; height: 28px; }
.hifi .checkout .success-h { text-align: center; margin-top: 12px; }
.hifi .checkout .success-h .t { font-size: 19px; font-weight: 700; letter-spacing: -0.015em; }
.hifi .checkout .success-h .s { font-size: 12.5px; color: var(--hf-muted); margin-top: 5px; line-height: 1.4; }

/* publisher payouts (D5) */
.hifi .balance { margin: 12px 16px; border: 1px solid var(--hf-line-2); border-radius: 16px; overflow: hidden; }
.hifi .balance .main { padding: 15px 16px; background: var(--hf-surface); }
.hifi .balance .main .lab { font-size: 10px; color: var(--hf-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.hifi .balance .main .amt { font-family: var(--hf-mono); font-size: 30px; font-weight: 700; letter-spacing: -0.02em; margin-top: 4px; }
.hifi .balance .split { display: flex; border-top: 1px solid var(--hf-line); }
.hifi .balance .split .col { flex: 1; padding: 10px 14px; }
.hifi .balance .split .col + .col { border-left: 1px solid var(--hf-line); }
.hifi .balance .split .col .k { font-size: 10.5px; color: var(--hf-muted); }
.hifi .balance .split .col .v { font-family: var(--hf-mono); font-size: 14px; font-weight: 600; margin-top: 2px; }
.hifi .connect-row { margin: 0 16px 14px; padding: 10px 13px; border-radius: 12px; background: var(--hf-bg-alt); display: flex; align-items: center; gap: 10px; }
.hifi .connect-row .dot2 { width: 8px; height: 8px; border-radius: 50%; background: var(--hf-green); flex-shrink: 0; }
.hifi .connect-row .t { flex: 1; font-size: 12px; color: var(--hf-ink-2); line-height: 1.3; }
.hifi .connect-row .t b { color: var(--hf-ink); font-weight: 600; }
.hifi .connect-row .mng { font-size: 11.5px; font-weight: 600; color: var(--hf-accent); flex-shrink: 0; }
.hifi .payout-row { display: flex; align-items: center; gap: 11px; padding: 11px 16px; position: relative; }
.hifi .payout-row::after { content:''; position: absolute; left: 16px; right: 16px; bottom: 0; height: 1px; background: var(--hf-line); }
.hifi .payout-row:last-child::after { display: none; }
.hifi .payout-row .meta { flex: 1; min-width: 0; }
.hifi .payout-row .meta .t { font-size: 12.5px; font-weight: 500; }
.hifi .payout-row .meta .w { font-family: var(--hf-mono); font-size: 10px; color: var(--hf-muted); margin-top: 2px; }
.hifi .payout-row .amt { font-family: var(--hf-mono); font-size: 13px; font-weight: 600; color: var(--hf-green); }
.hifi .payout-row .amt.pending { color: var(--hf-muted); }

/* tablet two-pane (J1) — phone-embedded variant */
.hifi .tablet {
  width: 760px; height: 520px; margin: 0 auto; position: relative; overflow: hidden;
  border: 1px solid var(--hf-line-2); border-radius: 26px; background: var(--hf-bg);
  font-family: var(--hf-sans); color: var(--hf-ink); -webkit-font-smoothing: antialiased;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.5), 0 24px 60px -12px rgba(14,17,22,0.2), 0 2px 6px rgba(14,17,22,0.08);
}
.hifi .tablet .tb-status { height: 30px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; font-size: 11px; font-weight: 600; color: var(--hf-ink); }
.hifi .tablet .tb-body { position: absolute; inset: 30px 0 0 0; display: flex; }
.hifi .tablet .pane.list { width: 300px; border-right: 1px solid var(--hf-line); display: flex; flex-direction: column; }
.hifi .tablet .pane.detail { flex: 1; display: flex; flex-direction: column; overflow-y: auto; background: var(--hf-bg); }
.hifi .tablet .pane.list .content { overflow-y: auto; }
.hifi .op-row.sel { background: var(--hf-accent-tint); }
.hifi .op-row.sel::before { content:''; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; border-radius: 0 3px 3px 0; background: var(--hf-accent); }

/* C6 · bot visibility + F2 · bot permissions (per-bot switches) */
.hifi .pintro { padding: 8px 16px 12px; font-size: 12px; color: var(--hf-muted); line-height: 1.42; }
.hifi .pintro b { color: var(--hf-ink-2); font-weight: 600; }
.hifi .vis-legend { margin: 12px 16px; border: 1px solid var(--hf-line-2); border-radius: 14px; padding: 4px 14px; background: var(--hf-surface); }
.hifi .vis-legend .vk { display: flex; gap: 11px; align-items: center; padding: 10px 0; border-top: 1px solid var(--hf-line); }
.hifi .vis-legend .vk:first-child { border-top: none; }
.hifi .vis-legend .vi { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; }
.hifi .vis-legend .vi svg { width: 16px; height: 16px; }
.hifi .vis-legend .vi.person { background: var(--hf-surface-2); color: var(--hf-ink-2); }
.hifi .vis-legend .vi.lock { background: var(--hf-bg-alt); color: var(--hf-muted); }
.hifi .vis-legend .vi.eye { background: var(--hf-accent-tint); color: var(--hf-accent-deep); }
.hifi .vis-legend .vn { font-size: 13px; font-weight: 600; }
.hifi .vis-legend .vd { font-size: 11px; color: var(--hf-muted); margin-top: 1px; line-height: 1.3; }
.hifi .vis-row { display: flex; align-items: center; gap: 11px; padding: 11px 16px; position: relative; }
.hifi .vis-row::after { content:''; position: absolute; left: 62px; right: 16px; bottom: 0; height: 1px; background: var(--hf-line); }
.hifi .vis-row:last-child::after { display: none; }
.hifi .vis-row .bd { flex: 1; min-width: 0; }
.hifi .vis-row .bd .nm { font-size: 13.5px; font-weight: 600; }
.hifi .vis-row .bd .sub { font-size: 11px; color: var(--hf-muted); margin-top: 2px; line-height: 1.3; }
.hifi .vis-row .bd .scope-sub {
  font-family: var(--hf-mono); font-size: 9.5px; color: var(--hf-accent-deep);
  background: var(--hf-accent-tint); display: inline-block; padding: 1px 5px; border-radius: 4px; margin-top: 4px;
}
.hifi .vis-toggle { display: flex; background: var(--hf-surface-2); border-radius: 9px; padding: 2px; gap: 2px; flex-shrink: 0; }
.hifi .vis-toggle .o { font-size: 11px; font-weight: 600; padding: 6px 11px; border-radius: 7px; color: var(--hf-muted); }
.hifi .vis-toggle .o.on { background: var(--hf-ink); color: var(--hf-bg); }
.hifi .vis-toggle .o.on.vis { background: var(--hf-accent); color: white; }
.hifi .pfoot {
  margin: 6px 16px 16px; padding: 11px 13px; border-radius: 12px;
  background: var(--hf-bg-alt); border: 1px solid var(--hf-line);
  font-size: 11.5px; color: var(--hf-ink-2); line-height: 1.42; display: flex; gap: 9px; align-items: flex-start;
}
.hifi .pfoot .i { width: 16px; height: 16px; border-radius: 50%; border: 1.4px solid var(--hf-line-2); color: var(--hf-muted); display: grid; place-items: center; font-family: var(--hf-mono); font-size: 10px; font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.hifi .pfoot b { color: var(--hf-ink); font-weight: 600; }
.hifi .silent-act {
  align-self: stretch; margin: 4px 0; display: flex; gap: 9px; align-items: center;
  background: color-mix(in srgb, var(--hf-green) 8%, var(--hf-bg)); border: 1px solid color-mix(in srgb, var(--hf-green) 22%, transparent);
  border-radius: 12px; padding: 9px 12px;
}
.hifi .silent-act .ck { width: 22px; height: 22px; border-radius: 7px; background: color-mix(in srgb, var(--hf-green) 16%, transparent); color: var(--hf-green); display: grid; place-items: center; flex-shrink: 0; }
.hifi .silent-act .ck svg { width: 13px; height: 13px; }
.hifi .silent-act .tx { font-size: 11.5px; color: var(--hf-ink-2); line-height: 1.35; }
.hifi .silent-act .tx b { color: var(--hf-ink); font-weight: 600; }
.hifi .silent-act .tx .lg { font-family: var(--hf-mono); font-size: 9px; color: var(--hf-muted); }

/* ═════════════════════════════════════════════════════════════════════════
   RESPONSIVE — desktop (web) window + tablet two-pane (from responsive.css)
   ═════════════════════════════════════════════════════════════════════════ */
.hifi .winwrap, .hifi .winwrap *, .hifi .tabwrap, .hifi .tabwrap * { box-sizing: border-box; }

/* desktop window (browser chrome + app) */
.hifi .winwrap {
  width: 1280px; margin: 0 auto; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--hf-line-2); background: var(--hf-bg);
  box-shadow: 0 40px 90px -24px rgba(14,17,22,0.32), 0 4px 12px rgba(14,17,22,0.1);
  font-family: var(--hf-sans); color: var(--hf-ink); -webkit-font-smoothing: antialiased;
}
.hifi .winbar { height: 40px; background: var(--hf-bg-alt); border-bottom: 1px solid var(--hf-line); display: flex; align-items: center; padding: 0 14px; gap: 10px; }
.hifi .winbar .lights { display: flex; gap: 7px; }
.hifi .winbar .lights i { width: 11px; height: 11px; border-radius: 50%; background: var(--hf-line-2); display: block; }
.hifi .winbar .addr {
  margin: 0 auto; background: var(--hf-bg); border: 1px solid var(--hf-line);
  border-radius: 8px; padding: 5px 16px; font-family: var(--hf-mono); font-size: 11px; color: var(--hf-muted);
  min-width: 360px; text-align: center;
}
.hifi .app { display: flex; height: 768px; position: relative; }

/* nav rail */
.hifi .rail { width: 212px; background: var(--hf-bg-alt); border-right: 1px solid var(--hf-line); display: flex; flex-direction: column; padding: 16px 12px; }
.hifi .rail .brand { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; padding: 4px 10px 16px; }
.hifi .rail .nav-item { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 10px; font-size: 13.5px; font-weight: 500; color: var(--hf-ink-2); margin-bottom: 2px; }
.hifi .rail .nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.hifi .rail .nav-item .ct { margin-left: auto; font-family: var(--hf-mono); font-size: 10px; font-weight: 600; background: var(--hf-accent); color: white; border-radius: 999px; padding: 1px 6px; }
.hifi .rail .nav-item .ct.amber { background: var(--hf-amber); }
.hifi .rail .nav-item.on { background: var(--hf-surface); color: var(--hf-ink); font-weight: 600; box-shadow: var(--hf-sh-1); }
.hifi .rail .nav-item.on svg { color: var(--hf-accent); }
.hifi .rail .sep { height: 1px; background: var(--hf-line); margin: 12px 6px; }
.hifi .rail .me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 8px 8px 4px; }
.hifi .rail .me .nm { font-size: 12.5px; font-weight: 600; }
.hifi .rail .me .sub { font-size: 10.5px; color: var(--hf-muted); }

/* list column */
.hifi .listcol { width: 344px; border-right: 1px solid var(--hf-line); display: flex; flex-direction: column; background: var(--hf-bg); min-width: 0; }
.hifi .listcol .lc-head { padding: 16px 18px 10px; display: flex; align-items: center; }
.hifi .listcol .lc-head h2 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; flex: 1; }
.hifi .listcol .lc-head .ico { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: var(--hf-ink-2); }
.hifi .listcol .lc-head .ico svg { width: 18px; height: 18px; }
.hifi .listcol .lc-body { flex: 1; overflow-y: auto; overflow-x: hidden; }
.hifi .listcol .lc-body::-webkit-scrollbar { width: 8px; }
.hifi .listcol .lc-body::-webkit-scrollbar-thumb { background: var(--hf-line-2); border-radius: 8px; }
.hifi .listcol .lc-search { margin: 4px 16px 10px; }

/* main pane */
.hifi .mainpane { flex: 1; display: flex; flex-direction: column; background: var(--hf-bg); min-width: 0; }
.hifi .mainpane .mp-head { height: 60px; border-bottom: 1px solid var(--hf-line); display: flex; align-items: center; gap: 12px; padding: 0 20px; flex-shrink: 0; }
.hifi .mainpane .mp-head .tt { flex: 1; min-width: 0; }
.hifi .mainpane .mp-head .tt .h { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.hifi .mainpane .mp-head .tt .s { font-size: 12px; color: var(--hf-muted); margin-top: 1px; }
.hifi .mainpane .mp-head .acts { display: flex; gap: 6px; }
.hifi .mainpane .mp-head .acts .ib { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; color: var(--hf-ink-2); }
.hifi .mainpane .mp-head .acts .ib svg { width: 18px; height: 18px; }
.hifi .mainpane .mp-body { flex: 1; overflow-y: auto; overflow-x: hidden; }
.hifi .mainpane .mp-body::-webkit-scrollbar { width: 9px; }
.hifi .mainpane .mp-body::-webkit-scrollbar-thumb { background: var(--hf-line-2); border-radius: 9px; }
.hifi .col-center { max-width: 720px; margin: 0 auto; width: 100%; padding: 22px 28px; }
.hifi .col-narrow { max-width: 540px; margin: 0 auto; width: 100%; padding: 22px 28px; }
.hifi .mp-body .thread { max-width: 700px; margin: 0 auto; padding: 18px 28px; gap: 7px; }
.hifi .mp-body .thread .bubble { max-width: 64%; font-size: 14px; }
.hifi .mp-body .thread .render { max-width: 62%; width: 62%; }
.hifi .mp-body .thread .grant-card { max-width: 460px; align-self: flex-start; }
.hifi .mp-body .thread .scope-note { max-width: 70%; }
.hifi .mp-body .composer { border-top: 1px solid var(--hf-line); max-width: 760px; margin: 0 auto; width: 100%; }
.hifi .mp-foot { border-top: 1px solid var(--hf-line); padding: 12px 28px; display: flex; gap: 10px; align-items: center; }
.hifi .mp-foot .field { flex: 1; background: var(--hf-surface-2); border-radius: 22px; padding: 11px 16px; font-size: 14px; color: var(--hf-muted); }
.hifi .mp-foot .add, .hifi .mp-foot .send { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.hifi .mp-foot .add { background: var(--hf-surface-2); color: var(--hf-ink); }
.hifi .mp-foot .send { background: var(--hf-accent); color: white; }
.hifi .mp-foot .add svg, .hifi .mp-foot .send svg { width: 18px; height: 18px; }

.hifi .listcol .row, .hifi .listcol .op-row { cursor: default; }
.hifi .listcol .row.active, .hifi .listcol .op-row.active { background: var(--hf-accent-tint); }

/* directory grid (desktop main) */
.hifi .dir-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.hifi .dir-card { border: 1px solid var(--hf-line-2); border-radius: 14px; padding: 15px; background: var(--hf-surface); }
.hifi .dir-card .top { display: flex; align-items: center; gap: 12px; }
.hifi .dir-card .top .meta { flex: 1; min-width: 0; }
.hifi .dir-card .top .meta .nm { font-size: 15px; font-weight: 700; }
.hifi .dir-card .top .meta .by { font-size: 11.5px; color: var(--hf-muted); margin-top: 1px; }
.hifi .dir-card .desc { font-size: 12.5px; color: var(--hf-ink-2); line-height: 1.4; margin: 11px 0; min-height: 52px; }
.hifi .dir-card .foot { display: flex; align-items: center; justify-content: space-between; }
.hifi .dir-card .foot .sig { font-family: var(--hf-mono); font-size: 10.5px; color: var(--hf-muted); display: flex; align-items: center; gap: 6px; }
.hifi .dir-card .foot .sig .star { color: var(--hf-amber); }
.hifi .dir-card .foot .add { font-size: 12.5px; font-weight: 600; padding: 7px 16px; border-radius: 9px; background: var(--hf-ink); color: var(--hf-bg); }
.hifi .dir-card .foot .add.free { background: var(--hf-accent); }

/* tablet (landscape two-pane) */
.hifi .tabwrap {
  width: 1024px; height: 720px; margin: 0 auto; position: relative; overflow: hidden;
  border: 1px solid var(--hf-line-2); border-radius: 26px; background: var(--hf-bg);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.5), 0 30px 70px -16px rgba(14,17,22,0.24), 0 3px 8px rgba(14,17,22,0.08);
  font-family: var(--hf-sans); color: var(--hf-ink); -webkit-font-smoothing: antialiased;
}
.hifi .tabwrap .tb-status { height: 34px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; font-size: 12px; font-weight: 600; }
.hifi .tabwrap .tb-status .r { display: flex; gap: 8px; align-items: center; font-family: var(--hf-mono); font-size: 11px; }
.hifi .tabwrap .tb-body { position: absolute; inset: 34px 0 0 0; display: flex; }
.hifi .irail { width: 68px; background: var(--hf-bg-alt); border-right: 1px solid var(--hf-line); display: flex; flex-direction: column; align-items: center; padding: 14px 0; gap: 6px; }
.hifi .irail .ilogo { width: 34px; height: 34px; border-radius: 10px; background: var(--hf-ink); color: var(--hf-bg); display: grid; place-items: center; font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.hifi .irail .iitem { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--hf-ink-2); position: relative; }
.hifi .irail .iitem svg { width: 20px; height: 20px; }
.hifi .irail .iitem.on { background: var(--hf-surface); color: var(--hf-accent); box-shadow: var(--hf-sh-1); }
.hifi .irail .iitem .dot { position: absolute; top: 8px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--hf-amber); }
.hifi .irail .ime { margin-top: auto; }
.hifi .tabwrap .listcol { width: 332px; }
.hifi .tabwrap .mp-body .thread { padding: 16px 22px; max-width: none; }
.hifi .tabwrap .mp-body .thread .bubble { max-width: 74%; }
.hifi .tabwrap .mp-body .thread .render { max-width: 74%; width: 74%; }

/* desktop modals (listing detail / checkout) */
.hifi .web-scrim { position: absolute; inset: 0; background: rgba(15,12,8,0.42); z-index: 20; }
.hifi .web-modal {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 540px; max-height: 86%; background: var(--hf-bg); border-radius: 18px;
  overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,0.4); z-index: 21; display: flex; flex-direction: column;
}
.hifi .web-modal .wm-close { position: absolute; top: 15px; right: 15px; width: 30px; height: 30px; border-radius: 50%; background: var(--hf-surface-2); color: var(--hf-ink); display: grid; place-items: center; z-index: 2; }
.hifi .web-modal .wm-close svg { width: 15px; height: 15px; }
.hifi .web-modal .listing { padding: 26px 28px 22px; }
.hifi .web-modal .checkout { padding: 26px 28px 22px; }

/* Granite grants list + subs list rows */
.hifi .gr-row { display: flex; gap: 11px; padding: 12px 16px; position: relative; align-items: flex-start; }
.hifi .gr-row::after { content:''; position: absolute; left: 16px; right: 16px; bottom: 0; height: 1px; background: var(--hf-line); }
.hifi .gr-row:last-child::after { display: none; }
.hifi .gr-row.active { background: var(--hf-accent-tint); }
.hifi .gr-row .gi { width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0; display: grid; place-items: center; background: var(--hf-accent-tint); color: var(--hf-accent-deep); margin-top: 1px; }
.hifi .gr-row .gi svg { width: 15px; height: 15px; }
.hifi .gr-row .gm { flex: 1; min-width: 0; }
.hifi .gr-row .gm .t { font-size: 13px; font-weight: 600; line-height: 1.25; }
.hifi .gr-row .gm .s { font-family: var(--hf-mono); font-size: 10.5px; color: var(--hf-muted); margin-top: 2px; }
.hifi .gr-row .gp { font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; padding: 2px 7px; border-radius: 999px; flex-shrink: 0; }
.hifi .gr-row .gp.pending { background: var(--hf-bg-alt); color: var(--hf-amber); }
.hifi .gr-row .gp.active { background: color-mix(in srgb, var(--hf-green) 14%, transparent); color: var(--hf-green); }
.hifi .listcol .lc-head.granite h2 { display: flex; align-items: center; gap: 8px; }
.hifi .listcol .lc-head.granite .gk { width: 22px; height: 22px; border-radius: 6px; background: var(--hf-accent-deep); color: white; display: grid; place-items: center; }
.hifi .listcol .lc-head.granite .gk svg { width: 13px; height: 13px; }
.hifi .granite-note { font-size: 11.5px; color: var(--hf-muted); padding: 0 16px 10px; line-height: 1.4; }
.hifi .st-active { font-size: 9.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--hf-green) 14%, transparent); color: var(--hf-green); }
.hifi .st-expired { font-size: 9.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; padding: 2px 8px; border-radius: 999px; background: var(--hf-surface-2); color: var(--hf-muted); }
.hifi .web-modal .paymethod { margin-top: 16px; display: flex; align-items: center; gap: 11px; border: 1px solid var(--hf-line-2); border-radius: 12px; padding: 11px 13px; background: var(--hf-surface); }
.hifi .web-modal .paymethod .pm-ic { width: 34px; height: 34px; border-radius: 8px; background: var(--hf-bg-alt); color: var(--hf-ink-2); display: grid; place-items: center; flex-shrink: 0; }
.hifi .web-modal .paymethod .pm-ic svg { width: 18px; height: 18px; }
.hifi .web-modal .paymethod .pm-meta { flex: 1; min-width: 0; }
.hifi .web-modal .paymethod .pm-t { font-size: 13px; font-weight: 600; }
.hifi .web-modal .paymethod .pm-s { font-size: 11px; color: var(--hf-muted); margin-top: 1px; }
.hifi .web-modal .paymethod .pm-change { font-size: 12px; font-weight: 600; color: var(--hf-accent); flex-shrink: 0; }

/* category list (directory list column) */
.hifi .listcol .lc-body .nav-item { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 9px; font-size: 13px; font-weight: 500; color: var(--hf-ink-2); margin: 0 8px 2px; }
.hifi .listcol .lc-body .nav-item svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--hf-muted); }
.hifi .listcol .lc-body .nav-item .cat-ct { margin-left: auto; font-family: var(--hf-mono); font-size: 10px; color: var(--hf-fade); font-weight: 600; }
.hifi .listcol .lc-body .nav-item.on { background: var(--hf-accent-tint); color: var(--hf-accent-deep); font-weight: 600; }
.hifi .listcol .lc-body .nav-item.on svg { color: var(--hf-accent-deep); }
.hifi .listcol .lc-body .nav-item.on .cat-ct { color: var(--hf-accent-deep); }

/* ── PAGE HOST ──────────────────────────────────────────────────────────────
   The platform demo page renders gallery frames on a neutral canvas. Surfaces
   own their own .hifi wrappers; this just sets the page background + base font. */
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: #f4f1e8;
  font-family: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: #1c1814;
  -webkit-font-smoothing: antialiased;
}

/* ── platform app shell (integrate) ─────────────────────────────────────────
   Page-level chrome that hosts the framed .hifi surfaces. Lives OUTSIDE .hifi
   (like the page host above): a top bar with brand + section nav + a
   breakpoint chooser, then a centered stage the active frame mounts into.
   Added by the integrate step; uses the locked Peach+Navy palette literals
   (the .hifi tokens aren't in scope out here). */
/* ═════════════════════════════════════════════════════════════════════════
   FLUID SHELL — one responsive app, no device frame, no breakpoint chooser.
   The old .plat-shell/.plat-topbar/.plat-bp device-frame chrome is gone. A
   single `.plat-app` grid reflows via the real breakpoints below, and the
   phone-frame chrome that each Plat* surface renders (.phone/.statusbar) is
   neutralized inside `.plat-app` so the same component fills its pane.
   ═════════════════════════════════════════════════════════════════════════ */

html, body { margin: 0; background: #faf0e8; }
#root { min-height: 100vh; }

/* ── app grid: nav rail | list column | main pane ───────────────────────── */
.plat-app {
  min-height: 100vh;
  background: #faf0e8;
  font-family: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: #1c1814;
  display: grid;
  grid-template-columns: 232px minmax(320px, 420px) minmax(0, 1fr);
  grid-template-areas: 'rail list main';
}

/* ── nav rail ───────────────────────────────────────────────────────────── */
.plat-rail {
  grid-area: rail;
  position: sticky; top: 0; align-self: start;
  height: 100vh; box-sizing: border-box;
  display: flex; flex-direction: column; gap: 18px;
  padding: 18px 14px;
  background: #fdf7f1; border-right: 1px solid #dac8b3;
}
.plat-rail-brand {
  font-size: 19px; font-weight: 700; letter-spacing: -0.01em; color: #1c1814;
  padding: 4px 8px 0;
}
.plat-rail-items { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.plat-rail-btn {
  display: flex; align-items: center; gap: 11px;
  font: inherit; font-size: 14px; font-weight: 500; color: #4c423a;
  background: transparent; border: 0; border-radius: 10px;
  padding: 9px 12px; cursor: pointer; text-align: left; width: 100%;
}
.plat-rail-btn:hover { background: #f1e3d5; }
.plat-rail-btn.on { background: #1f2c4e; color: #fff; font-weight: 600; }
.plat-rail-ico { width: 18px; height: 18px; display: grid; place-items: center; flex-shrink: 0; }
.plat-rail-ico svg { width: 18px; height: 18px; }
.plat-rail-label { flex: 1; min-width: 0; }
.plat-rail-ct {
  font-family: 'Geist Mono', ui-monospace, monospace; font-size: 10px; font-weight: 600;
  background: #1f2c4e; color: #fff; border-radius: 999px; padding: 1px 7px;
}
.plat-rail-btn.on .plat-rail-ct { background: rgba(255,255,255,0.22); }
.plat-rail-foot { border-top: 1px solid #efe2d4; padding-top: 12px; }
.plat-rail-user {
  font-size: 12px; color: #8e8276; padding: 0 8px 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.plat-rail-signout {
  font: inherit; font-size: 13px; font-weight: 500; color: #4c423a;
  background: transparent; border: 0; border-radius: 8px;
  padding: 7px 8px; cursor: pointer; width: 100%; text-align: left;
}
.plat-rail-signout:hover { background: #f1e3d5; color: #b8362a; }

/* ── columns ────────────────────────────────────────────────────────────── */
.plat-col { min-width: 0; min-height: 100vh; box-sizing: border-box; }
.plat-list {
  grid-area: list;
  border-right: 1px solid #dac8b3;
  background: #faf0e8;
}
.plat-main {
  grid-area: main;
  background: #f1e3d5;
  display: flex; flex-direction: column;
}
/* the phone-only back bar is hidden on wide layouts */
.plat-backbar { display: none; }

/* ── neutralize the phone-frame chrome inside the fluid app ─────────────────
   Each Plat* surface renders <PlatPhone> => .hifi > .phone > .screen. In the
   fluid shell we strip the fixed dimensions, notch, shadow, and status bar so
   the .screen (and its untouched .appbar/.content/.thread/.composer children)
   simply fills the pane and reflows. Surface class names are unchanged. */
.plat-app .hifi { width: 100%; height: 100%; display: flex; }
.plat-app .hifi .phone {
  --phone-w: auto; --phone-h: auto;
  width: 100%; height: 100%; min-height: 100%;
  margin: 0; border: 0; border-radius: 0;
  box-shadow: none; background: var(--hf-bg);
}
.plat-app .hifi .phone::before { display: none; }     /* drop the notch */
.plat-app .hifi .statusbar { display: none; }          /* drop the 9:41 bar */
.plat-app .hifi .screen {
  position: static; inset: auto;
  width: 100%; height: 100%; min-height: 100%;
  flex: 1;
}
/* the list column gets a slightly tighter content width; main pane breathes */
.plat-list .hifi, .plat-main .hifi { min-height: 100vh; }

/* ── TABLET (~760–1180): icon-only rail, list + main still side by side ──── */
@media (max-width: 1180px) {
  .plat-app { grid-template-columns: 68px minmax(300px, 380px) minmax(0, 1fr); }
  .plat-rail { padding: 16px 10px; align-items: center; }
  .plat-rail-brand { font-size: 0; padding: 0; }
  .plat-rail-brand::after {
    content: 'P'; font-size: 20px; font-weight: 700; color: #1f2c4e;
  }
  .plat-rail-btn { justify-content: center; padding: 11px 0; gap: 0; }
  .plat-rail-label { display: none; }
  .plat-rail-ct {
    position: absolute; transform: translate(12px, -14px);
    font-size: 9px; padding: 0 5px;
  }
  .plat-rail-btn { position: relative; }
  .plat-rail-foot { width: 100%; }
  .plat-rail-user { display: none; }
  .plat-rail-signout { text-align: center; font-size: 0; padding: 9px 0; }
  .plat-rail-signout::after { content: '⇥'; font-size: 16px; }
}

/* ── PHONE (<760): single pane, stacked, with back navigation ───────────── */
@media (max-width: 760px) {
  .plat-app {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
    grid-template-areas: 'list' 'rail';
  }
  /* rail becomes a bottom tab bar */
  .plat-rail {
    grid-area: rail;
    position: sticky; bottom: 0; top: auto;
    height: auto; flex-direction: row; align-items: stretch; gap: 0;
    padding: 6px 4px env(safe-area-inset-bottom, 6px);
    border-right: 0; border-top: 1px solid #dac8b3;
    z-index: 30;
  }
  .plat-rail-brand, .plat-rail-foot { display: none; }
  .plat-rail-items { flex-direction: row; flex: 1; gap: 2px; }
  .plat-rail-btn { flex: 1; flex-direction: column; gap: 3px; padding: 6px 0; font-size: 10px; }
  .plat-rail-btn.on { background: transparent; color: #1f2c4e; }
  .plat-rail-label { display: block; font-size: 10px; }
  .plat-rail-ct { position: absolute; transform: translate(14px, -10px); font-size: 8px; padding: 0 4px; }
  .plat-rail-btn { position: relative; }

  /* only one column is visible at a time, chosen by data-pane */
  .plat-list, .plat-main { grid-area: list; border-right: 0; }
  .plat-main { background: #faf0e8; }
  .plat-app[data-pane='list'] .plat-main { display: none; }
  .plat-app[data-pane='main'] .plat-list { display: none; }

  /* the back bar shows when stacked onto the main pane */
  .plat-app[data-pane='main'] .plat-backbar {
    display: flex; align-items: center;
    padding: 8px 10px; background: #fdf7f1; border-bottom: 1px solid #dac8b3;
  }
  .plat-back-btn {
    display: inline-flex; align-items: center; gap: 6px;
    font: inherit; font-size: 14px; font-weight: 600; color: #1c1814;
    background: transparent; border: 0; cursor: pointer; padding: 4px 6px;
  }
  .plat-back-ico { width: 18px; height: 18px; display: grid; place-items: center; }
  .plat-back-ico svg { width: 18px; height: 18px; }
}

/* ═════════════════════════════════════════════════════════════════════════
   SIGN-IN + BOOT (auth gate)
   ═════════════════════════════════════════════════════════════════════════ */
.plat-signin {
  min-height: 100vh; background: #faf0e8;
  display: grid; place-items: center; padding: 24px;
  font-family: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.plat-signin-card {
  width: 100%; max-width: 380px; box-sizing: border-box;
  background: #fdf7f1; border: 1px solid #dac8b3; border-radius: 18px;
  padding: 32px 28px; text-align: center;
  box-shadow: 0 14px 40px rgba(14, 17, 22, 0.12);
}
.plat-signin-brand { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; color: #1c1814; }
.plat-signin-tag { font-size: 14px; color: #8e8276; margin-top: 6px; }
.plat-signin-err {
  margin-top: 18px; font-size: 13px; color: #b8362a;
  background: #f7e1de; border: 1px solid #e6b8b2; border-radius: 10px; padding: 9px 12px;
}
.plat-signin-btn {
  margin-top: 22px; width: 100%;
  font: inherit; font-size: 15px; font-weight: 600; color: #fff;
  background: #1f2c4e; border: 0; border-radius: 11px; padding: 12px 16px; cursor: pointer;
}
.plat-signin-btn:hover { background: #131b30; }
.plat-signin-foot { margin-top: 16px; font-size: 12px; line-height: 1.5; color: #8e8276; }

.plat-boot {
  min-height: 100vh; background: #faf0e8;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  font-family: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.plat-boot-spin {
  width: 28px; height: 28px; border-radius: 50%;
  border: 3px solid #ead7c5; border-top-color: #1f2c4e;
  animation: plat-spin 0.8s linear infinite;
}
@keyframes plat-spin { to { transform: rotate(360deg); } }
.plat-boot-tx { font-size: 14px; color: #8e8276; }
