:root {
  --bg: #08080b;
  --panel: rgba(18, 18, 24, .86);
  --panel-solid: #121218;
  --panel-2: #181820;
  --line: rgba(255, 255, 255, .085);
  --line-strong: rgba(255, 255, 255, .14);
  --text: #f8f7fb;
  --muted: #9c9aa6;
  --soft: #cbc8d3;
  --accent: #a66cff;
  --accent-2: #5fe0c0;
  --danger: #ff6d87;
  --warning: #ffc665;
  --success: #66e4b8;
  --shadow: 0 22px 70px rgba(0, 0, 0, .42);
  --radius-lg: 24px;
  --radius-md: 17px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% -10%, rgba(166,108,255,.16), transparent 32rem),
    radial-gradient(circle at 88% 18%, rgba(95,224,192,.09), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; }
button { color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  z-index: 100;
  left: 16px;
  top: -80px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff;
  color: #111;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

.ambient {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  filter: blur(120px);
  opacity: .12;
  pointer-events: none;
  z-index: -1;
}
.ambient-one { left: -180px; top: 34vh; background: var(--accent); }
.ambient-two { right: -180px; bottom: 0; background: var(--accent-2); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 70px;
  padding: 0 clamp(18px, 4vw, 44px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(8,8,11,.76);
  backdrop-filter: blur(20px) saturate(145%);
}

.brand { display: inline-flex; align-items: center; gap: 10px; width: max-content; text-decoration: none; }
.brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(145deg, var(--accent), #6942d1);
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 9px 28px rgba(166,108,255,.25);
}
.brand-word { font-size: 17px; font-weight: 800; letter-spacing: .06em; }
.brand-dot { color: var(--accent-2); }
.topbar-status { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--warning); box-shadow: 0 0 0 4px rgba(255,198,101,.08); }
.status-dot.online { background: var(--success); box-shadow: 0 0 0 4px rgba(102,228,184,.08); }
.status-dot.offline { background: var(--danger); box-shadow: 0 0 0 4px rgba(255,109,135,.08); }
.topbar-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.role-badge { padding: 7px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--soft); background: rgba(255,255,255,.035); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.icon-button { width: 37px; height: 37px; border-radius: 11px; border: 1px solid var(--line); background: rgba(255,255,255,.035); cursor: pointer; transition: border-color .18s, background .18s, transform .18s; }
.icon-button:hover { border-color: var(--line-strong); background: rgba(255,255,255,.07); }
.icon-button:active { transform: scale(.96); }

.page-shell { width: min(1500px, calc(100% - 36px)); margin: 0 auto; padding: 34px 0 72px; }
.boot-state, .error-state { min-height: calc(100vh - 150px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.boot-state h1, .error-state h1 { margin: 6px 0 10px; font-size: clamp(30px, 5vw, 54px); letter-spacing: -.045em; }
.boot-orbit { width: 42px; height: 42px; border: 1px solid var(--line-strong); border-radius: 50%; margin-bottom: 20px; animation: spin 1.8s linear infinite; }
.boot-orbit span { display: block; width: 8px; height: 8px; margin: -4px auto 0; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 18px rgba(95,224,192,.7); }
@keyframes spin { to { transform: rotate(360deg); } }

.eyebrow { margin: 0; color: var(--accent-2); font-size: 11px; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.muted { color: var(--muted); }
.danger-text { color: var(--danger); }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; margin-bottom: 28px; }
.hero h1 { margin: 7px 0 9px; font-size: clamp(34px, 5vw, 66px); line-height: .99; letter-spacing: -.055em; max-width: 850px; }
.hero-copy { max-width: 720px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

.primary-button, .secondary-button, .danger-button, .quiet-button {
  min-height: 43px;
  padding: 0 16px;
  border-radius: 13px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 780;
  transition: transform .16s, filter .16s, border-color .16s, background .16s;
}
.primary-button { color: #0c0911; background: linear-gradient(135deg, #c395ff, #72e5c7); box-shadow: 0 12px 32px rgba(166,108,255,.16); }
.secondary-button { background: rgba(255,255,255,.06); border-color: var(--line); }
.danger-button { background: rgba(255,109,135,.09); color: #ffc2cc; border-color: rgba(255,109,135,.18); }
.quiet-button { min-height: 36px; padding: 0 12px; background: transparent; border-color: var(--line); color: var(--soft); font-size: 12px; }
.primary-button:hover, .secondary-button:hover, .danger-button:hover, .quiet-button:hover { filter: brightness(1.08); border-color: var(--line-strong); }
.primary-button:active, .secondary-button:active, .danger-button:active, .quiet-button:active { transform: scale(.98); }
button:disabled { cursor: not-allowed; opacity: .48; filter: none; }

.metric-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 12px; margin: 0 0 24px; }
.metric { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-md); background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.024)); box-shadow: inset 0 1px rgba(255,255,255,.025); }
.metric-label { color: var(--muted); font-size: 11px; font-weight: 780; letter-spacing: .08em; text-transform: uppercase; }
.metric-value { display: block; margin-top: 8px; font-size: 27px; font-weight: 850; letter-spacing: -.035em; }
.metric-note { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }

.grid { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 14px; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: 1 / -1; }

.card { position: relative; overflow: hidden; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.card::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; box-shadow: inset 0 1px rgba(255,255,255,.035); }
.card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.card-title { margin: 0; font-size: 18px; letter-spacing: -.025em; }
.card-subtitle { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.card-action { flex: 0 0 auto; }

.status-strip { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 12px; }
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 9px; border-radius: 999px; background: rgba(255,255,255,.045); border: 1px solid var(--line); color: var(--soft); font-size: 10px; font-weight: 850; letter-spacing: .055em; text-transform: uppercase; }
.pill.good { background: rgba(102,228,184,.08); color: #9ff1d4; border-color: rgba(102,228,184,.14); }
.pill.warn { background: rgba(255,198,101,.08); color: #ffda97; border-color: rgba(255,198,101,.14); }
.pill.bad { background: rgba(255,109,135,.08); color: #ffb4c0; border-color: rgba(255,109,135,.14); }
.pill.purple { background: rgba(166,108,255,.09); color: #d7bbff; border-color: rgba(166,108,255,.18); }

.list { display: grid; gap: 8px; }
.list-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(255,255,255,.027); }
.list-main { min-width: 0; }
.list-title { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 760; }
.list-meta { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.list-actions { display: flex; align-items: center; gap: 7px; }
.empty { padding: 28px 14px; border: 1px dashed var(--line-strong); border-radius: var(--radius-md); color: var(--muted); text-align: center; font-size: 12px; }

.readiness { padding: 16px; border-radius: var(--radius-md); border: 1px solid var(--line); background: rgba(255,255,255,.025); }
.readiness.ready { border-color: rgba(102,228,184,.19); background: linear-gradient(140deg, rgba(102,228,184,.065), rgba(255,255,255,.018)); }
.readiness.blocked { border-color: rgba(255,198,101,.16); background: linear-gradient(140deg, rgba(255,198,101,.055), rgba(255,255,255,.018)); }
.readiness h3 { margin: 0 0 6px; font-size: 15px; }
.blocker-list { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.blocker-list li { display: flex; gap: 8px; color: var(--soft); font-size: 12px; line-height: 1.4; }
.blocker-list li::before { content: "•"; color: var(--warning); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 11px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.field input, .field select {
  width: 100%;
  min-height: 43px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  padding: 0 12px;
  background: #0e0e13;
  color: var(--text);
  transition: border-color .16s, box-shadow .16s;
}
.field input:focus, .field select:focus { border-color: rgba(166,108,255,.58); box-shadow: 0 0 0 3px rgba(166,108,255,.10); }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }

.search-bar { display: flex; gap: 8px; margin-bottom: 12px; }
.search-bar input { flex: 1; min-width: 0; min-height: 43px; padding: 0 13px; border-radius: 12px; border: 1px solid var(--line); background: #0e0e13; color: var(--text); outline: none; }
.creator-result { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 13px; border: 1px solid transparent; border-radius: 12px; background: transparent; cursor: pointer; text-align: left; }
.creator-result:hover, .creator-result.active { border-color: var(--line-strong); background: rgba(255,255,255,.045); }
.creator-result strong { display: block; font-size: 13px; }
.creator-result span { color: var(--muted); font-size: 10px; }

.money { font-variant-numeric: tabular-nums; }
.mono { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 10px; color: var(--muted); }
.divider { height: 1px; background: var(--line); margin: 16px 0; }

.toast-region { position: fixed; z-index: 60; right: 18px; bottom: 18px; width: min(390px, calc(100vw - 36px)); display: grid; gap: 8px; pointer-events: none; }
.toast { padding: 13px 14px; border: 1px solid var(--line-strong); border-radius: 14px; background: rgba(22,22,28,.96); box-shadow: var(--shadow); color: var(--soft); font-size: 12px; line-height: 1.45; animation: toast-in .2s ease-out; }
.toast strong { display: block; margin-bottom: 2px; color: var(--text); }
.toast.error { border-color: rgba(255,109,135,.28); }
@keyframes toast-in { from { opacity: 0; transform: translateY(7px); } }

.dialog-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.7); backdrop-filter: blur(12px); }
.dialog { width: min(560px, 100%); padding: 22px; border: 1px solid var(--line-strong); border-radius: 22px; background: #111117; box-shadow: 0 30px 100px rgba(0,0,0,.7); }
.dialog h2 { margin: 0 0 8px; font-size: 23px; letter-spacing: -.035em; }
.dialog p { color: var(--muted); font-size: 13px; line-height: 1.5; }
.delivery-target { margin: 14px 0; padding: 12px; border-radius: 12px; background: #09090c; border: 1px solid var(--line); overflow-wrap: anywhere; font: 11px/1.45 "SFMono-Regular", Consolas, monospace; color: #cfcbd8; }

.preview-banner { display: flex; align-items: center; justify-content: center; gap: 8px; margin: -10px 0 22px; padding: 8px 12px; border-radius: 12px; background: rgba(255,198,101,.06); border: 1px solid rgba(255,198,101,.14); color: #ffda97; font-size: 11px; font-weight: 750; }

@media (max-width: 1040px) {
  .metric-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .span-4, .span-5, .span-7, .span-8 { grid-column: span 6; }
}

@media (max-width: 720px) {
  .topbar { grid-template-columns: 1fr auto; }
  .topbar-status { display: none; }
  .page-shell { width: min(100% - 24px, 1500px); padding-top: 24px; }
  .hero { grid-template-columns: 1fr; align-items: start; }
  .hero-actions { justify-content: flex-start; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid { display: block; }
  .card { margin-bottom: 12px; padding: 17px; border-radius: 19px; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .list-row { grid-template-columns: 1fr; }
  .list-actions { justify-content: flex-start; flex-wrap: wrap; }
}

@media (max-width: 430px) {
  .role-badge { display: none !important; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .metric { padding: 14px; }
  .metric-value { font-size: 23px; }
  .hero h1 { font-size: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* C36 Growth Engine */
.growth-check { display:flex; gap:9px; align-items:flex-start; margin-top:10px; color:var(--soft); font-size:12px; line-height:1.4; }
.growth-check input { flex:0 0 auto; margin-top:2px; }
.growth-check-stack { display:grid; gap:8px; margin-top:14px; }
.growth-actions { flex-wrap:wrap; justify-content:flex-end; max-width:430px; }
.growth-actions select {
  min-height:36px; max-width:145px; border:1px solid var(--line); border-radius:10px;
  padding:0 8px; background:#0e0e13; color:var(--text); font-size:11px;
}
.growth-prospect-row { align-items:start; }
@media (max-width: 720px) {
  .growth-actions { max-width:none; justify-content:flex-start; }
  .growth-actions select { max-width:100%; }
}


/* C31 Studio Starter Kits */
.starter-kit-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.starter-kit-choice { display:flex; gap:10px; align-items:flex-start; padding:14px; border:1px solid var(--line); border-radius:14px; background:rgba(255,255,255,.025); cursor:pointer; }
.starter-kit-choice:hover { border-color:var(--line-strong); background:rgba(255,255,255,.045); }
.starter-kit-choice input { margin-top:3px; }
.starter-kit-choice strong { display:block; font-size:13px; }
.starter-kit-choice small { display:block; margin-top:4px; color:var(--muted); font-size:11px; line-height:1.4; }
.starter-item-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-top:16px; }
.starter-item { padding:15px; border:1px solid var(--line); border-radius:14px; background:rgba(255,255,255,.025); }
.starter-item-head { display:flex; gap:10px; align-items:flex-start; }
.starter-item-copy { flex:1; min-width:0; }
.starter-item-toggle { flex:0 0 auto; padding-top:4px; }
.starter-item-fields { margin-top:12px; }
@media (max-width: 1040px) {
  .starter-kit-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 720px) {
  .starter-kit-grid, .starter-item-grid { grid-template-columns:1fr; }
}


/* C37 — Live Producer Desk */
.producer-desk {
  position: relative;
  overflow: hidden;
  border-color: rgba(95,224,192,.16) !important;
  background:
    radial-gradient(circle at 88% 8%, rgba(95,224,192,.08), transparent 22rem),
    linear-gradient(145deg, rgba(166,108,255,.045), rgba(12,12,18,.96) 52%, rgba(95,224,192,.025)) !important;
}
.producer-desk-header {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
}
.producer-desk-header h2 {
  margin:4px 0 6px;
  font-size:clamp(24px,3vw,34px);
  letter-spacing:-.04em;
}
.producer-mode { display:flex; gap:7px; flex-wrap:wrap; justify-content:flex-end; }
.producer-metrics {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
  margin:16px 0;
}
.producer-metrics span {
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:12px;
  background:rgba(255,255,255,.025);
  color:var(--muted);
  font-size:11px;
}
.producer-metrics strong { color:var(--text); font-size:16px; margin-right:3px; }
.producer-cue {
  padding:15px;
  border:1px solid var(--line);
  border-radius:16px;
  background:rgba(255,255,255,.018);
}
.producer-cue-dominant {
  padding:20px;
  border-color:rgba(166,108,255,.26);
  background:
    radial-gradient(circle at 90% 10%, rgba(95,224,192,.08), transparent 18rem),
    linear-gradient(135deg, rgba(129,83,255,.10), rgba(255,255,255,.02));
  box-shadow:0 18px 48px rgba(0,0,0,.22);
}
.producer-cue-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.producer-cue h3 { margin:10px 0 7px; font-size:18px; letter-spacing:-.025em; }
.producer-cue-dominant h3 { font-size:clamp(22px,3vw,29px); }
.producer-age { color:var(--muted); font-size:11px; white-space:nowrap; }
.producer-why,.producer-next { margin:6px 0; color:var(--soft); font-size:12px; line-height:1.45; }
.producer-preview {
  margin:12px 0;
  padding:11px 13px;
  border-left:2px solid rgba(166,108,255,.45);
  background:rgba(255,255,255,.02);
  color:var(--text);
  font-size:13px;
  line-height:1.45;
}
.producer-cue-actions { display:flex; gap:7px; flex-wrap:wrap; margin-top:13px; }
.producer-queue { margin-top:12px; }
.producer-queue > summary {
  cursor:pointer;
  color:var(--soft);
  font-size:12px;
  font-weight:760;
  padding:10px 2px;
}
.producer-queue-list { display:grid; gap:9px; }
.producer-quick-replies { margin-top:14px; padding-top:12px; border-top:1px solid var(--line); }
.producer-quick-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; margin-top:7px; }
.producer-quick-reply {
  text-align:left;
  min-height:70px;
  padding:10px 11px;
  border:1px solid var(--line);
  border-radius:12px;
  background:rgba(255,255,255,.025);
  color:var(--text);
  cursor:pointer;
}
.producer-quick-reply:hover { border-color:rgba(166,108,255,.30); background:rgba(166,108,255,.055); }
.producer-quick-reply strong,.producer-quick-reply span { display:block; }
.producer-quick-reply strong { font-size:11px; margin-bottom:4px; }
.producer-quick-reply span { color:var(--muted); font-size:10px; line-height:1.35; }
.producer-boundary { margin-top:13px; }
@media (max-width:760px) {
  .producer-desk-header { flex-direction:column; }
  .producer-mode { justify-content:flex-start; }
  .producer-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .producer-quick-grid { grid-template-columns:1fr; }
  .producer-cue-actions > * { flex:1 1 auto; }
}


/* C38 — Commercial Scribe */
.commercial-scribe {
  position: relative;
  overflow: hidden;
  border-color: rgba(166,108,255,.18) !important;
  background:
    radial-gradient(circle at 88% 0%, rgba(166,108,255,.10), transparent 24rem),
    radial-gradient(circle at 10% 110%, rgba(95,224,192,.055), transparent 22rem),
    linear-gradient(145deg, rgba(255,255,255,.03), rgba(12,12,18,.965)) !important;
}
.scribe-header {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
}
.scribe-header h2 {
  margin:4px 0 6px;
  font-size:clamp(25px,3vw,35px);
  letter-spacing:-.045em;
}
.scribe-metrics {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:9px;
  margin:17px 0 12px;
}
.scribe-metrics > div {
  padding:13px 14px;
  border:1px solid var(--line);
  border-radius:14px;
  background:rgba(255,255,255,.02);
}
.scribe-metrics strong,
.scribe-metrics span {
  display:block;
}
.scribe-metrics strong {
  font-size:24px;
  letter-spacing:-.04em;
}
.scribe-metrics span {
  margin-top:3px;
  color:var(--muted);
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.scribe-summary-line {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:13px;
  font-size:12px;
}
.scribe-summary-line.needs-action {
  border-color:rgba(255,194,87,.20);
  background:rgba(255,194,87,.035);
}
.scribe-summary-line.clean {
  border-color:rgba(95,224,192,.18);
  background:rgba(95,224,192,.03);
}
.scribe-summary-line span { color:var(--muted); }
.scribe-bucket-tabs {
  display:flex;
  gap:7px;
  margin:15px 0 10px;
  overflow-x:auto;
  scrollbar-width:none;
}
.scribe-bucket-tabs::-webkit-scrollbar { display:none; }
.scribe-bucket-tab {
  display:flex;
  align-items:center;
  gap:8px;
  min-height:39px;
  padding:0 11px;
  border:1px solid var(--line);
  border-radius:12px;
  background:rgba(255,255,255,.018);
  color:var(--muted);
  cursor:pointer;
  white-space:nowrap;
  font-size:11px;
  font-weight:760;
}
.scribe-bucket-tab.active {
  color:var(--text);
  border-color:rgba(166,108,255,.28);
  background:linear-gradient(135deg,rgba(166,108,255,.12),rgba(95,224,192,.045));
}
.scribe-bucket-tab em { font-style:normal; }
.scribe-bucket-view {
  min-height:116px;
  padding:15px;
  border:1px solid var(--line);
  border-radius:16px;
  background:rgba(255,255,255,.015);
}
.scribe-bucket-head {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.scribe-bucket-head h3 {
  margin:3px 0 0;
  font-size:17px;
}
.scribe-bucket-items {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  margin-top:12px;
}
.scribe-mini-item {
  padding:10px 11px;
  border:1px solid var(--line);
  border-radius:11px;
  background:rgba(255,255,255,.018);
}
.scribe-mini-item strong,
.scribe-mini-item span { display:block; }
.scribe-mini-item strong { font-size:12px; }
.scribe-mini-item span {
  margin-top:3px;
  color:var(--muted);
  font-size:9px;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.scribe-next-moves,
.scribe-tasks,
.scribe-memory {
  margin-top:12px;
  padding:0 14px;
  border:1px solid var(--line);
  border-radius:14px;
  background:rgba(255,255,255,.012);
}
.scribe-next-moves > summary,
.scribe-tasks > summary,
.scribe-memory > summary {
  cursor:pointer;
  padding:13px 0;
  color:var(--soft);
  font-size:12px;
  font-weight:780;
}
.scribe-rec-list {
  display:grid;
  gap:8px;
  padding-bottom:13px;
}
.scribe-recommendation {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:15px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:13px;
  background:rgba(255,255,255,.015);
}
.scribe-rec-main { min-width:0; }
.scribe-rec-main > strong {
  display:block;
  margin-top:7px;
  font-size:13px;
}
.scribe-rec-main p {
  margin:4px 0;
  color:var(--soft);
  font-size:11px;
  line-height:1.4;
}
.scribe-rec-main small {
  color:var(--muted);
  font-size:10px;
}
.scribe-rec-actions {
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  justify-content:flex-end;
  flex:0 0 auto;
}
.scribe-tasks .list,
.scribe-memory .form-grid { padding-bottom:13px; }
@media (max-width:760px) {
  .scribe-header,
  .scribe-summary-line,
  .scribe-recommendation {
    flex-direction:column;
    align-items:stretch;
  }
  .scribe-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .scribe-bucket-items { grid-template-columns:1fr; }
  .scribe-rec-actions { justify-content:flex-start; }
}


/* C39A — Moment Refinery + Vault */
.moment-refinery {
  position:relative;
  overflow:hidden;
}
.moment-refinery::before {
  content:"";
  position:absolute;
  inset:0 auto auto 0;
  width:100%;
  height:1px;
  background:linear-gradient(90deg,transparent,rgba(171,125,255,.7),transparent);
}
.moment-refinery-head,
.moment-zone-title,
.moment-suggestion-top,
.moment-candidate {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
}
.moment-refinery-head h2,
.moment-zone-title h3,
.moment-suggestion h3,
.moment-candidate h3 {
  margin:0;
}
.moment-metrics {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin:18px 0;
}
.moment-metrics > div {
  padding:14px;
  border:1px solid var(--line);
  border-radius:14px;
  background:linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.012));
}
.moment-metrics strong {
  display:block;
  font-size:23px;
  letter-spacing:-.04em;
}
.moment-metrics span {
  display:block;
  margin-top:3px;
  color:var(--muted);
  font-size:11px;
}
.moment-zone {
  margin-top:14px;
  padding:16px;
  border:1px solid var(--line);
  border-radius:17px;
  background:rgba(255,255,255,.014);
}
.moment-zone-title {
  margin-bottom:13px;
}
.moment-suggestion-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.moment-suggestion {
  padding:15px;
  border:1px solid rgba(171,125,255,.22);
  border-radius:15px;
  background:
    radial-gradient(circle at 100% 0%,rgba(171,125,255,.10),transparent 42%),
    rgba(255,255,255,.018);
}
.moment-suggestion p,
.moment-candidate p {
  margin:5px 0 0;
  color:var(--soft);
  font-size:11px;
}
.moment-participants {
  display:grid;
  gap:7px;
  margin:14px 0;
  padding:0;
  border:0;
}
.moment-participants legend {
  margin-bottom:7px;
  color:var(--muted);
  font-size:10px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.moment-person {
  display:flex;
  align-items:center;
  gap:9px;
  padding:9px 10px;
  border:1px solid var(--line);
  border-radius:11px;
  background:rgba(255,255,255,.015);
  cursor:pointer;
}
.moment-person.blocked {
  opacity:.52;
  cursor:not-allowed;
}
.moment-person input {
  width:16px;
  height:16px;
  margin:0;
}
.moment-person span {
  min-width:0;
}
.moment-person strong,
.moment-person small {
  display:block;
}
.moment-person small {
  margin-top:2px;
  color:var(--muted);
  font-size:10px;
}
.moment-candidate-list {
  display:grid;
  gap:10px;
}
.moment-candidate {
  padding:13px;
  border:1px solid var(--line);
  border-radius:14px;
  background:rgba(255,255,255,.015);
}
.moment-candidate-main {
  min-width:0;
}
.moment-candidate-main small {
  display:block;
  margin-top:7px;
  color:var(--muted);
  font-size:10px;
}
.moment-candidate-actions {
  display:flex;
  gap:7px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.moment-next,
.moment-vault-chip {
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:11px;
  padding:10px 11px;
  border-radius:12px;
  background:rgba(171,125,255,.07);
  border:1px solid rgba(171,125,255,.18);
}
.moment-next {
  display:block;
}
.moment-next strong,
.moment-next span,
.moment-vault-chip strong,
.moment-vault-chip span {
  display:block;
}
.moment-next span,
.moment-vault-chip span {
  margin-top:2px;
  color:var(--muted);
  font-size:10px;
}
.vault-orb {
  width:30px;
  height:30px;
  border-radius:50%;
  flex:0 0 auto;
  background:
    radial-gradient(circle at 35% 30%,rgba(255,255,255,.9),rgba(171,125,255,.55) 22%,rgba(90,41,170,.2) 55%,transparent 62%);
  box-shadow:0 0 24px rgba(171,125,255,.18);
}
.moment-status {
  margin-top:14px;
}
.empty.compact {
  padding:9px 10px;
}
@media (max-width:760px) {
  .moment-refinery-head,
  .moment-zone-title,
  .moment-suggestion-top,
  .moment-candidate {
    flex-direction:column;
    align-items:stretch;
  }
  .moment-metrics,
  .moment-suggestion-grid {
    grid-template-columns:1fr;
  }
  .moment-candidate-actions {
    justify-content:flex-start;
  }
}


/* C39B — Vault → Store bridge */
.moment-publish-form {
  display:grid;
  grid-template-columns:minmax(150px,220px) auto;
  align-items:end;
  gap:10px;
  margin-top:11px;
  padding:11px;
  border:1px solid rgba(171,125,255,.18);
  border-radius:12px;
  background:rgba(171,125,255,.055);
}
.moment-publish-form .field {
  margin:0;
}
.moment-store-state {
  display:block;
  margin-top:11px;
  padding:10px 11px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.025);
}
.moment-store-state strong,
.moment-store-state span {
  display:block;
}
.moment-store-state span {
  margin-top:3px;
  color:var(--muted);
  font-size:10px;
}
@media (max-width:760px) {
  .moment-publish-form {
    grid-template-columns:1fr;
    align-items:stretch;
  }
}


/* C40A — ZIN Pulse */
.zin-pulse {
  position:relative;
  overflow:hidden;
}
.zin-pulse::before {
  content:"";
  position:absolute;
  inset:0 0 auto;
  height:1px;
  background:linear-gradient(90deg,transparent,rgba(102,214,255,.75),rgba(171,125,255,.55),transparent);
}
.pulse-head {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
}
.pulse-head h2 {
  margin:0;
}
.pulse-lanes {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin:17px 0 10px;
}
.pulse-lanes > div {
  display:grid;
  grid-template-columns:auto 1fr;
  gap:2px 9px;
  align-items:center;
  padding:11px 12px;
  border:1px solid var(--line);
  border-radius:13px;
  background:rgba(255,255,255,.018);
}
.pulse-lanes small {
  grid-column:2;
  color:var(--muted);
  font-size:10px;
}
.pulse-lane-dot {
  grid-row:1 / span 2;
  width:9px;
  height:9px;
  border-radius:50%;
}
.pulse-lane-dot.live {
  background:currentColor;
  box-shadow:0 0 18px currentColor;
}
.pulse-lane-dot.draft {
  border:1px solid var(--muted);
}
.pulse-metrics {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin-bottom:14px;
}
.pulse-metrics > div {
  padding:13px;
  border:1px solid var(--line);
  border-radius:13px;
  background:linear-gradient(180deg,rgba(255,255,255,.028),rgba(255,255,255,.01));
}
.pulse-metrics strong,
.pulse-metrics span {
  display:block;
}
.pulse-metrics strong {
  font-size:22px;
  letter-spacing:-.04em;
}
.pulse-metrics span {
  margin-top:3px;
  color:var(--muted);
  font-size:10px;
}
.pulse-draft-list {
  display:grid;
  gap:10px;
}
.pulse-draft {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:15px;
  padding:14px;
  border:1px solid var(--line);
  border-radius:15px;
  background:
    radial-gradient(circle at 100% 0%,rgba(102,214,255,.055),transparent 38%),
    rgba(255,255,255,.015);
}
.pulse-draft-copy {
  min-width:0;
  flex:1;
}
.pulse-draft blockquote {
  margin:11px 0 8px;
  padding:0;
  border:0;
  font-size:15px;
  font-weight:650;
  line-height:1.42;
}
.pulse-draft small {
  color:var(--muted);
  font-size:10px;
}
.pulse-draft-actions {
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:7px;
}
.pulse-sent {
  display:flex;
  align-items:baseline;
  gap:8px;
  margin-top:9px;
}
.pulse-sent strong {
  font-size:11px;
}
.pulse-sent span {
  color:var(--muted);
  font-size:10px;
}
.pulse-controls {
  margin-top:14px;
  border-top:1px solid var(--line);
  padding-top:12px;
}
.pulse-controls summary {
  cursor:pointer;
  font-weight:650;
}
.pulse-controls-form {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:9px;
  margin-top:12px;
  align-items:end;
}
.pulse-control-action {
  display:flex;
  align-items:end;
}
.pulse-status {
  margin-top:13px;
}
@media (max-width:900px) {
  .pulse-controls-form {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media (max-width:760px) {
  .pulse-head,
  .pulse-draft {
    flex-direction:column;
    align-items:stretch;
  }
  .pulse-lanes,
  .pulse-metrics,
  .pulse-controls-form {
    grid-template-columns:1fr;
  }
  .pulse-draft-actions {
    justify-content:flex-start;
  }
}

/* C45 — evidence-first performance coaching */
.scribe-performance-coach{
  margin:14px 0;
  padding:16px;
  border:1px solid rgba(95,224,192,.18);
  border-radius:18px;
  background:linear-gradient(145deg,rgba(95,224,192,.055),rgba(166,108,255,.045));
}
.scribe-coach-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin-top:12px;
}
.scribe-performance-coach .scribe-recommendation{
  display:block;
}
@media (max-width:760px){
  .scribe-coach-grid{grid-template-columns:1fr}
}


/* C47 — governed performance observations */
.producer-performance{
  margin-top:14px;
  padding:0 14px;
  border:1px solid rgba(95,224,192,.16);
  border-radius:16px;
  background:linear-gradient(145deg,rgba(95,224,192,.035),rgba(166,108,255,.025));
}
.producer-performance>summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 0;
  cursor:pointer;
  list-style:none;
}
.producer-performance>summary::-webkit-details-marker{display:none}
.producer-performance>summary span:first-child strong,
.producer-performance>summary span:first-child small{display:block}
.producer-performance>summary span:first-child small{
  margin-top:3px;
  color:var(--muted);
  font-size:10px;
}
.producer-performance-quick{
  display:flex;
  gap:6px;
  overflow-x:auto;
  padding-bottom:10px;
  scrollbar-width:none;
}
.producer-performance-quick::-webkit-scrollbar{display:none}
.producer-performance-quick button{white-space:nowrap}
.producer-performance-form{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr)) auto;
  gap:8px;
  align-items:end;
  padding:11px;
  border:1px solid var(--line);
  border-radius:13px;
  background:rgba(255,255,255,.018);
}
.producer-performance-form label{
  display:grid;
  gap:5px;
  color:var(--muted);
  font-size:10px;
  font-weight:700;
}
.producer-performance-form input,
.producer-performance-form select{
  min-height:39px;
  padding:0 9px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#0c0c12;
  color:var(--text);
}
.producer-performance-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin-top:11px;
}
.producer-performance-grid>section{
  min-width:0;
  padding:12px;
  border:1px solid var(--line);
  border-radius:13px;
  background:rgba(255,255,255,.012);
}
.producer-performance-list{display:grid;gap:7px;margin-top:8px}
.producer-performance-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:9px 10px;
  border:1px solid var(--line);
  border-radius:11px;
  background:rgba(255,255,255,.018);
}
.producer-performance-row>div{min-width:0}
.producer-performance-row strong,
.producer-performance-row span,
.producer-performance-row small{display:block}
.producer-performance-row strong{font-size:11px}
.producer-performance-row span{
  margin-top:2px;
  color:var(--muted);
  font-size:9px;
}
.producer-performance-row small{
  margin-top:3px;
  color:var(--soft);
  font-size:9px;
}
.producer-performance-row.muted-row{opacity:.58}
.producer-performance-pattern{
  padding:10px;
  border:1px solid rgba(166,108,255,.18);
  border-radius:11px;
  background:rgba(166,108,255,.035);
}
.producer-performance-pattern strong,
.producer-performance-pattern>span{display:block}
.producer-performance-pattern strong{
  margin-top:8px;
  font-size:11px;
  line-height:1.42;
}
.producer-performance-pattern>span{
  margin-top:5px;
  color:var(--muted);
  font-size:9px;
}
@media(max-width:900px){
  .producer-performance-form{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
  .producer-performance-grid,
  .producer-performance-form{grid-template-columns:1fr}
  .producer-performance>summary{align-items:flex-start}
}
