@layer legacy {
:root {
  color-scheme: light;
  --pearl: #f7f5ef;
  --pearl-bright: #fffefa;
  --paper: rgba(255, 254, 249, 0.82);
  --paper-strong: rgba(255, 255, 252, 0.96);
  --paper-soft: rgba(244, 241, 232, 0.72);
  --mist: #ece9df;
  --ink: #1e2523;
  --ink-2: #343d39;
  --ink-soft: #59645f;
  --muted: #7d8782;
  --red: #a92724;
  --red-bright: #c64035;
  --red-soft: rgba(169, 39, 36, .10);
  --gold: #af8542;
  --gold-bright: #d3b16c;
  --gold-soft: rgba(175, 133, 66, .13);
  --jade: #397d70;
  --jade-soft: rgba(57, 125, 112, .11);
  --blue: #5472a4;
  --blue-soft: rgba(84, 114, 164, .11);
  --violet: #806a9f;
  --violet-soft: rgba(128, 106, 159, .11);
  --danger: #b12d28;
  --warning: #a87629;
  --success: #347b59;
  --info: #4e7194;
  --line: rgba(42, 52, 48, .10);
  --line-strong: rgba(175, 133, 66, .25);
  --shadow-paper: 0 20px 70px rgba(54, 49, 39, .08), 0 2px 9px rgba(54, 49, 39, .035);
  --shadow-float: 0 32px 100px rgba(47, 43, 34, .15), 0 9px 28px rgba(47, 43, 34, .07);
  --radius: 24px;
  --radius-sm: 14px;
  --sidebar: 274px;
  --topbar: 82px;
  --state-a: var(--gold);
  --state-b: var(--gold-bright);
  --state-soft: var(--gold-soft);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

body[data-work-state="collaborating"] { --state-a: var(--red); --state-b: var(--jade); --state-soft: rgba(63, 137, 125, .12); }
body[data-work-state="reviewing"] { --state-a: var(--blue); --state-b: var(--violet); --state-soft: var(--violet-soft); }
body[data-work-state="blocked"] { --state-a: var(--red); --state-b: #e26d56; --state-soft: var(--red-soft); }
body[data-work-state="available"] { --state-a: var(--jade); --state-b: #77b68d; --state-soft: var(--jade-soft); }
body[data-work-state="away"] { --state-a: #737b77; --state-b: #aaa79d; --state-soft: rgba(111, 119, 115, .08); }

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--pearl); scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 7% 8%, rgba(196, 177, 134, .15), transparent 27%),
    radial-gradient(circle at 93% 3%, rgba(169, 39, 36, .065), transparent 25%),
    radial-gradient(circle at 76% 82%, rgba(57, 125, 112, .07), transparent 28%),
    linear-gradient(145deg, #fbfaf6 0%, #f4f1e8 48%, #fbfaf6 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}
body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 0;
  opacity: .42;
}
body::before {
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 37px, rgba(65, 72, 67, .018) 38px),
    repeating-linear-gradient(90deg, transparent 0 37px, rgba(65, 72, 67, .014) 38px);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.4), transparent 78%);
}
body::after {
  width: 520px; height: 520px; right: -220px; top: 18%; border-radius: 48% 52% 67% 33% / 38% 38% 62% 62%;
  background: radial-gradient(circle at 38% 35%, rgba(35, 43, 40, .08), rgba(35,43,40,.02) 34%, transparent 70%);
  filter: blur(18px);
}

button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img, video, audio, iframe, svg { max-width: 100%; }
::selection { color: var(--ink); background: rgba(211, 177, 108, .36); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(74, 82, 78, .18); border-radius: 999px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }

.ui-icon { flex: none; }
.app-shell { position: relative; z-index: 2; min-height: 100vh; display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); }
.sidebar {
  position: sticky; top: 0; height: 100vh; padding: 24px 18px 18px; z-index: 40;
  background: linear-gradient(180deg, rgba(255,255,252,.89), rgba(245,242,233,.80));
  backdrop-filter: blur(28px) saturate(1.15);
  box-shadow: 12px 0 52px rgba(62, 57, 47, .055);
  display: flex; flex-direction: column; gap: 14px;
}
.sidebar::after { content:""; position:absolute; right:0; top:8%; bottom:8%; width:1px; background:linear-gradient(transparent, rgba(175,133,66,.25), rgba(42,52,48,.08), transparent); }
.brand { display:flex; align-items:center; gap:12px; padding:2px 9px 18px; position:relative; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 48% 52% 46% 54% / 50% 42% 58% 50%; display:grid; place-items:center;
  background: linear-gradient(145deg, #fffef8, #eee8d9); color: var(--red); box-shadow: 0 13px 32px rgba(132, 91, 43, .15), inset 0 0 0 1px rgba(175,133,66,.18);
  font-family: "Songti SC", "STSong", serif; font-size:22px; font-weight:900; position:relative; overflow:hidden;
}
.brand-mark::before { content:""; position:absolute; inset:-10%; background:conic-gradient(from 120deg, transparent, rgba(169,39,36,.25), transparent 30%, rgba(175,133,66,.3), transparent 64%); animation: brand-turn 12s linear infinite; }
.brand-mark span { position:relative; z-index:1; }
.brand-mark i { position:absolute; width:7px; height:7px; border-radius:50%; background:var(--gold); right:7px; bottom:8px; box-shadow:0 0 14px var(--gold); }
@keyframes brand-turn { to { transform: rotate(360deg); } }
.brand strong { display:block; letter-spacing:.08em; font-family:"Songti SC","STSong",serif; font-size:17px; }
.brand small { display:block; color:var(--muted); font-size:10px; margin-top:3px; letter-spacing:.1em; }
.nav-section { display:grid; gap:4px; }
.nav-label { color:var(--muted); font-size:10px; font-weight:750; letter-spacing:.16em; padding:9px 12px 5px; text-transform:uppercase; }
.nav-label-row { display:flex; align-items:center; justify-content:space-between; }
.nav-mini-action { border:0; background:transparent; width:24px; height:24px; border-radius:50%; color:var(--gold); font-size:19px; display:grid; place-items:center; }
.nav-mini-action:hover { background:var(--gold-soft); }
.nav-item {
  min-height:44px; border:0; border-radius:15px; padding:9px 11px; display:flex; align-items:center; gap:10px;
  color:var(--ink-soft); transition:transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease; position:relative;
}
.nav-item::before { content:""; position:absolute; left:0; top:10px; bottom:10px; width:3px; border-radius:999px; background:transparent; transform:scaleY(.25); transition:.2s; }
.nav-item:hover { color:var(--ink); background:rgba(255,255,252,.66); transform:translateX(2px); }
.nav-item.active { color:var(--ink); background:linear-gradient(100deg, rgba(255,255,252,.95), rgba(248,244,234,.76)); box-shadow:0 10px 30px rgba(57,52,43,.07); }
.nav-item.active::before { background:linear-gradient(var(--state-a), var(--state-b)); transform:scaleY(1); box-shadow:0 0 14px color-mix(in srgb, var(--state-a) 50%, transparent); }
.nav-icon { width:25px; height:25px; display:grid; place-items:center; color:var(--gold); }
.nav-item.active .nav-icon { color:var(--state-a); }
.nav-item-text { min-width:0; display:flex; flex-direction:column; }
.nav-item-text b { font-size:13px; font-weight:680; white-space:nowrap; text-overflow:ellipsis; overflow:hidden; }
.nav-item-text small { color:var(--muted); font-size:10px; margin-top:1px; }
.workspace-nav-list { display:grid; gap:3px; max-height:260px; overflow:auto; padding-right:2px; }
.sidebar-spacer { flex:1; }
.sidebar-insight { padding:13px 14px; border-radius:17px; background:linear-gradient(145deg, rgba(255,255,252,.75), rgba(237,232,220,.48)); box-shadow:inset 0 0 0 1px rgba(175,133,66,.1); }
.sidebar-insight span,.sidebar-insight small { display:block; color:var(--muted); font-size:10px; }
.sidebar-insight strong { display:block; color:var(--state-a); font-size:13px; margin:4px 0 3px; }
.user-card { padding:10px 8px 0; }
.user-row { display:flex; align-items:center; gap:9px; }
.user-meta { min-width:0; flex:1; }
.user-meta strong,.user-meta small { display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.user-meta strong { font-size:13px; }
.user-meta small { color:var(--muted); font-size:10px; margin-top:2px; }

.main { min-width:0; position:relative; }
.topbar {
  height:var(--topbar); position:sticky; top:0; z-index:35; padding:14px 30px; display:flex; align-items:center; justify-content:space-between; gap:18px;
  background:linear-gradient(180deg, rgba(250,249,245,.92), rgba(250,249,245,.72)); backdrop-filter:blur(26px) saturate(1.15);
}
.topbar::after { content:""; position:absolute; left:3%; right:3%; bottom:0; height:1px; background:linear-gradient(90deg, transparent, rgba(175,133,66,.19), rgba(42,52,48,.08), transparent); }
.topbar-leading { display:flex; align-items:center; gap:10px; min-width:0; }
.breadcrumb { min-width:0; }
.breadcrumb strong,.breadcrumb small { display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.breadcrumb strong { font-family:"Songti SC","STSong",serif; font-size:17px; letter-spacing:.035em; }
.breadcrumb small { color:var(--muted); font-size:11px; margin-top:3px; }
.top-actions { display:flex; align-items:center; justify-content:flex-end; gap:8px; min-width:0; }
.page { width:min(1660px, 100%); margin:0 auto; padding:28px 34px 72px; }
.mobile-menu { display:none !important; }

.button,.icon-button,.workspace-switcher {
  appearance:none; border:0; color:var(--ink-2); background:rgba(255,255,252,.76); box-shadow:0 7px 24px rgba(61,56,45,.055), inset 0 0 0 1px rgba(48,57,53,.07);
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease; outline:none;
}
.button { min-height:39px; border-radius:13px; padding:9px 14px; font-weight:690; font-size:13px; display:inline-flex; align-items:center; justify-content:center; gap:7px; }
.button:hover,.icon-button:hover { transform:translateY(-1px); box-shadow:0 12px 31px rgba(61,56,45,.1), inset 0 0 0 1px rgba(175,133,66,.16); }
.button:focus-visible,.icon-button:focus-visible { outline:3px solid color-mix(in srgb,var(--state-a) 42%,transparent); outline-offset:3px; }
.button:active,.icon-button:active { transform:translateY(0) scale(.985); }
.button[disabled] { opacity:.45; cursor:not-allowed; transform:none; }
.button-primary { color:#fffdf7; background:linear-gradient(135deg, #b18a47, #8e662c); box-shadow:0 11px 26px rgba(142,102,44,.22); }
.button-red { color:#fff; background:linear-gradient(135deg, var(--red-bright), #8d1d1b); box-shadow:0 11px 27px rgba(169,39,36,.20); }
.button-teal { color:#fff; background:linear-gradient(135deg, #4f9889, #347267); box-shadow:0 10px 24px rgba(57,125,112,.17); }
.button-ghost { background:transparent; box-shadow:inset 0 0 0 1px rgba(175,133,66,.16); }
.button-danger { color:var(--danger); background:rgba(177,45,40,.065); box-shadow:inset 0 0 0 1px rgba(177,45,40,.12); }
.button-small { min-height:31px; padding:6px 10px; border-radius:10px; font-size:11px; }
.icon-button { width:38px; height:38px; padding:0; border-radius:13px; display:grid; place-items:center; }
.layout-reset { color:var(--gold); }
.layout-toggle { color:var(--muted); }
.layout-toggle.active { color:var(--red); background:rgba(169,39,36,.09); box-shadow:inset 0 0 0 1px rgba(169,39,36,.14); }
.workspace-switcher { height:39px; max-width:220px; border-radius:13px; padding:0 34px 0 12px; font-size:12px; }

.page-header { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:25px; position:relative; }
.page-title { min-width:0; max-width:970px; }
.page-title h1 { margin:0; color:var(--ink); font-family:"Songti SC","STSong","SimSun",serif; font-size:clamp(30px, 3.4vw, 52px); font-weight:650; letter-spacing:-.025em; line-height:1.12; }
.page-title p { color:var(--ink-soft); line-height:1.72; margin:10px 0 0; max-width:900px; }
.page-actions { display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.title-with-badges { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.eyebrow,.window-kicker,.hero-kicker { color:var(--gold); font-size:10px; font-weight:800; letter-spacing:.19em; text-transform:uppercase; margin-bottom:8px; }
.section-title { margin:35px 0 15px; display:flex; align-items:flex-end; justify-content:space-between; gap:18px; }
.section-title h2 { margin:0; font-family:"Songti SC","STSong",serif; font-size:24px; font-weight:650; }
.section-title p { margin:5px 0 0; color:var(--muted); font-size:12px; line-height:1.6; }

.grid { display:grid; }
.grid-2 { grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.grid-3 { grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.grid-4 { grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.split-main { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(300px,.8fr); gap:20px; align-items:start; }

.card,.window-panel {
  position:relative; border:0; border-radius:var(--radius); background:linear-gradient(145deg, rgba(255,255,252,.90), rgba(246,243,235,.77));
  box-shadow:var(--shadow-paper); color:var(--ink); min-width:0;
}
.card { padding:20px; }
.card::after,.window-panel::after { content:""; pointer-events:none; position:absolute; inset:0; border-radius:inherit; box-shadow:inset 0 0 0 1px rgba(255,255,255,.76), inset 0 -1px 0 rgba(175,133,66,.08); }
.card-hover { transition:transform .22s ease, box-shadow .22s ease, background .22s ease; }
.card-hover:hover { transform:translateY(-4px); box-shadow:0 28px 80px rgba(58,52,41,.13); background:linear-gradient(145deg, #fffefb, #f5f0e4); }
.card h3,.card h4 { margin:0 0 7px; }
.card p { color:var(--ink-soft); line-height:1.65; }
.card-header,.window-titlebar { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; position:relative; z-index:2; }
.card-header h3,.window-titlebar h2,.window-titlebar h3 { margin:0; }
.card-header p,.window-titlebar p { margin:4px 0 0; color:var(--muted); font-size:12px; line-height:1.55; }
.card footer { margin-top:17px; padding-top:13px; display:flex; align-items:center; justify-content:space-between; gap:12px; color:var(--muted); font-size:11px; position:relative; }
.card footer::before { content:""; position:absolute; top:0; left:0; right:0; height:1px; background:linear-gradient(90deg, rgba(175,133,66,.2), transparent); }

.window-panel {
  --window-x:0px; --window-y:0px;
  transform:translate3d(var(--window-x), var(--window-y), 0);
  resize:both; overflow:auto; min-width:250px; min-height:88px;
  transition:box-shadow .2s ease, opacity .2s ease;
}
.window-panel.window-static { transform:none; resize:none; }
body.layout-editing .window-panel:not(.window-static) { outline:1px dashed rgba(175,133,66,.18); outline-offset:3px; }
.window-panel:hover { z-index:8; }
.window-drag-handle { cursor:grab; user-select:none; touch-action:none; }
.window-drag-handle:focus-visible { outline:2px solid rgba(169,39,36,.45); outline-offset:4px; border-radius:10px; }
.window-dragging { z-index:120 !important; box-shadow:var(--shadow-float) !important; opacity:.97; transition:none; }
.window-dragging .window-drag-handle { cursor:grabbing; }
.window-controls { display:flex; align-items:center; gap:4px; margin-left:auto; opacity:.25; transition:.18s; flex:none; }
.window-panel:hover > .window-titlebar .window-controls,
.window-panel:hover > .card-header .window-controls,
.window-panel:hover > header .window-controls { opacity:1; }
.window-controls button { width:25px; height:25px; border:0; border-radius:9px; background:rgba(255,255,252,.7); color:var(--muted); display:grid; place-items:center; box-shadow:inset 0 0 0 1px rgba(43,52,48,.07); }
.window-controls button:hover { color:var(--red); background:#fff; }
.window-auto-titlebar { position:absolute; top:9px; right:9px; z-index:6; padding:0; background:transparent; }
.window-auto-grip { width:22px; height:22px; display:grid; place-items:center; color:rgba(89,100,95,.34); opacity:.3; }
.window-panel:hover .window-auto-grip { opacity:1; }
.window-minimized { height:48px !important; min-height:48px !important; resize:none; overflow:hidden; }
.window-minimized > *:not(.window-titlebar):not(.card-header):not(header) { display:none !important; }
.window-maximized { position:fixed !important; left:calc(var(--sidebar) + 24px) !important; right:24px !important; top:calc(var(--topbar) + 15px) !important; bottom:22px !important; width:auto !important; height:auto !important; max-width:none !important; transform:none !important; z-index:150 !important; resize:none; overflow:auto; box-shadow:0 35px 140px rgba(47,43,34,.24) !important; }

.metric { min-height:145px; padding:23px; display:flex; flex-direction:column; justify-content:flex-end; overflow:hidden; }
.metric strong { font-size:clamp(28px,3vw,43px); line-height:1; color:var(--ink); font-family:"Songti SC","STSong",serif; font-weight:620; }
.metric > span { margin-top:8px; color:var(--ink-soft); font-size:12px; font-weight:720; }
.metric-note { color:var(--muted); font-size:10px; line-height:1.5; margin-top:6px; }
.metric-glow { position:absolute; width:120px; height:120px; border-radius:50%; right:-37px; top:-42px; background:radial-gradient(circle, var(--state-soft), transparent 68%); }
.metric-stack { display:grid; gap:8px; }
.metric-title { color:var(--muted); }

.badge { display:inline-flex; align-items:center; min-height:23px; border-radius:999px; padding:4px 8px; font-size:10px; font-weight:720; white-space:nowrap; background:rgba(86,95,91,.07); color:var(--ink-soft); }
.badge-neutral { background:rgba(86,95,91,.07); color:var(--ink-soft); }
.badge-info { background:var(--blue-soft); color:var(--blue); }
.badge-warning { background:var(--gold-soft); color:#8e6729; }
.badge-success { background:rgba(52,123,89,.1); color:var(--success); }
.badge-danger { background:var(--red-soft); color:var(--danger); }
.badge-muted { background:rgba(91,99,95,.05); color:var(--muted); }
.role-meta,.profile-tags,.project-meta,.capability-cloud { display:flex; gap:6px; flex-wrap:wrap; align-items:center; margin-top:13px; }

.hero { min-height:330px; padding:clamp(28px,5vw,62px); overflow:hidden; display:flex; align-items:center; justify-content:space-between; gap:35px; }
.pearl-hero { background:linear-gradient(125deg, rgba(255,255,252,.96), rgba(244,238,225,.84) 52%, rgba(251,248,239,.91)); }
.hero-content { position:relative; z-index:3; max-width:880px; }
.hero h1 { font-family:"Songti SC","STSong",serif; font-size:clamp(34px,4.5vw,68px); font-weight:600; letter-spacing:-.045em; line-height:1.07; margin:0; max-width:900px; }
.hero h1 span { color:var(--red); white-space:nowrap; }
.hero p { max-width:830px; font-size:15px; line-height:1.83; margin:20px 0 0; }
.hero-actions { display:flex; gap:9px; flex-wrap:wrap; margin-top:28px; }
.hero-orbit { width:250px; height:250px; border-radius:50%; position:relative; flex:none; display:grid; place-items:center; }
.hero-orbit::before,.hero-orbit::after { content:""; position:absolute; border-radius:50%; inset:8%; box-shadow:inset 0 0 0 1px rgba(175,133,66,.19); animation:orbit-turn 17s linear infinite; }
.hero-orbit::after { inset:24%; border-radius:40% 60% 45% 55%; box-shadow:inset 0 0 0 1px rgba(169,39,36,.12); animation-direction:reverse; animation-duration:11s; }
.hero-orbit-core { width:105px; height:105px; border-radius:50%; display:grid; place-content:center; text-align:center; background:rgba(255,255,252,.76); box-shadow:0 18px 50px rgba(98,72,35,.13); position:relative; z-index:2; }
.hero-orbit-core b { font-family:"Songti SC","STSong",serif; font-size:27px; color:var(--red); }
.hero-orbit-core small { color:var(--muted); font-size:9px; margin-top:4px; }
.orbit-dot { position:absolute; width:10px; height:10px; border-radius:50%; background:var(--gold); box-shadow:0 0 20px var(--gold); }
.dot-one { top:7%; left:48%; }.dot-two { right:9%; bottom:29%; background:var(--jade); }.dot-three { left:12%; bottom:24%; background:var(--red); }
@keyframes orbit-turn { to { transform:rotate(360deg); } }
.ink-bloom { position:absolute; border-radius:48% 52% 60% 40% / 42% 43% 57% 58%; filter:blur(12px); opacity:.22; }
.ink-bloom-a { width:410px; height:310px; right:-80px; top:-130px; background:radial-gradient(circle at 40% 40%, rgba(45,53,49,.32), transparent 67%); }
.ink-bloom-b { width:330px; height:260px; left:36%; bottom:-180px; background:radial-gradient(circle at 40% 40%, rgba(169,39,36,.2), transparent 70%); }

.workspace-number { position:absolute; right:20px; bottom:13px; font-family:"Songti SC","STSong",serif; font-size:44px; color:rgba(175,133,66,.10); }
.workspace-card,.project-card,.research-card,.plugin-card { min-height:190px; }
.workspace-grid .workspace-card { min-height:180px; }
.project-card h3,.workspace-card h3,.research-card h3 { font-family:"Songti SC","STSong",serif; font-size:19px; }
.research-card-top { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.research-domain { color:var(--red); font-size:10px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }

.list { display:grid; gap:9px; }
.list-item { min-width:0; display:flex; align-items:center; gap:12px; padding:12px 13px; border-radius:15px; background:rgba(255,255,252,.57); transition:.18s; position:relative; }
.list-item:hover { background:rgba(255,255,252,.94); box-shadow:0 10px 30px rgba(53,49,41,.055); }
.list-main { flex:1; min-width:0; }
.list-main strong,.list-main small { display:block; }
.list-main strong { font-size:13px; line-height:1.45; }
.list-main small { color:var(--muted); margin-top:3px; font-size:10px; line-height:1.5; }
.list-side { display:flex; align-items:center; justify-content:flex-end; gap:5px; flex-wrap:wrap; }
.avatar { width:35px; height:35px; flex:none; border-radius:13px; display:grid; place-items:center; color:var(--gold); background:linear-gradient(145deg, #fff, #eee8da); box-shadow:inset 0 0 0 1px rgba(175,133,66,.11); font-weight:800; font-size:12px; }
.avatar-ink { color:var(--ink); }
.avatar-soft { color:var(--blue); }
.avatar-red { color:var(--red); }
.action-row { min-height:60px; }
.quiet-note { min-height:130px; display:grid; place-content:center; text-align:center; color:var(--muted); }
.quiet-note span { font-family:"Songti SC","STSong",serif; color:rgba(35,43,40,.25); font-size:45px; }

.tabs { display:flex; gap:5px; padding:6px; border-radius:17px; background:rgba(237,233,222,.69); margin:0 0 20px; box-shadow:inset 0 0 0 1px rgba(255,255,255,.72); }
.tabs-scroll { overflow-x:auto; scrollbar-width:none; }
.tabs-scroll::-webkit-scrollbar { display:none; }
.tab { padding:9px 13px; border-radius:12px; color:var(--muted); white-space:nowrap; font-size:12px; font-weight:700; transition:.18s; }
.tab:hover { color:var(--ink); }
.tab.active { color:var(--red); background:rgba(255,255,252,.95); box-shadow:0 7px 20px rgba(54,50,41,.07); }

form label { display:grid; gap:6px; min-width:0; color:var(--ink-soft); font-size:11px; font-weight:680; }
input,textarea,select {
  width:100%; border:0; border-radius:13px; padding:11px 12px; color:var(--ink); background:rgba(255,255,252,.84);
  box-shadow:inset 0 0 0 1px rgba(48,57,53,.08), 0 5px 16px rgba(63,57,45,.03); outline:none; transition:.18s;
}
input:focus,textarea:focus,select:focus { box-shadow:inset 0 0 0 1.5px color-mix(in srgb, var(--state-a) 55%, transparent), 0 0 0 4px var(--state-soft); background:#fffefa; }
textarea { resize:vertical; min-height:110px; line-height:1.6; }
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.form-grid .full { grid-column:1/-1; }
.form-actions { display:flex; align-items:center; justify-content:flex-end; gap:8px; flex-wrap:wrap; }
.help { color:var(--muted); font-size:10px; line-height:1.6; }
.warning-text { color:var(--warning); }.error-text { color:var(--danger); }.success-text { color:var(--success); }
.json-output,.code-preview { white-space:pre-wrap; word-break:break-word; padding:15px; border-radius:15px; background:#232925; color:#e7eee8; overflow:auto; font:11px/1.65 ui-monospace,SFMono-Regular,Menlo,monospace; }

.progress-ring { --progress:0deg; width:136px; height:136px; border-radius:50%; padding:9px; background:conic-gradient(var(--gold) var(--progress), rgba(175,133,66,.12) 0); display:grid; place-items:center; flex:none; }
.progress-ring::before { content:""; grid-area:1/1; width:100%; height:100%; border-radius:50%; background:linear-gradient(145deg,#fffef9,#eee9dc); }
.progress-ring > div { grid-area:1/1; position:relative; text-align:center; }
.progress-ring strong,.progress-ring small { display:block; }
.progress-ring strong { font:620 26px "Songti SC","STSong",serif; }
.progress-ring small { color:var(--muted); font-size:9px; margin-top:2px; }
.profile-hero { padding:27px; display:flex; align-items:center; gap:27px; }
.profile-hero h2 { font-family:"Songti SC","STSong",serif; font-size:28px; }

.kanban { display:grid; grid-template-columns:repeat(5,minmax(240px,1fr)); gap:12px; overflow-x:auto; padding:12px; background:rgba(246,242,232,.65); }
.kanban-column { min-height:440px; border-radius:18px; padding:10px; background:rgba(255,255,252,.52); transition:.18s; }
.kanban-column.drag-over { background:var(--gold-soft); box-shadow:inset 0 0 0 2px rgba(175,133,66,.25); }
.kanban-title { display:flex; justify-content:space-between; color:var(--ink-soft); padding:8px 5px 12px; font-size:11px; font-weight:800; }
.task-card { border-radius:14px; padding:13px; background:#fffefb; box-shadow:0 8px 25px rgba(55,50,41,.06); margin-bottom:9px; cursor:grab; }
.task-card h4 { font-size:12px; }
.task-card p { font-size:10px; }
.task-meta { display:flex; gap:5px; flex-wrap:wrap; margin-top:9px; }

.editor-layout { display:grid; grid-template-columns:250px minmax(0,1fr); min-height:600px; padding:0; overflow:hidden; }
.editor-sidebar { padding:14px; background:rgba(238,234,223,.59); display:grid; align-content:start; gap:6px; }
.page-link,.channel-button { text-align:left; border:0; border-radius:12px; padding:10px; background:transparent; color:var(--ink-soft); }
.page-link:hover,.page-link.active,.channel-button:hover,.channel-button.active { background:rgba(255,255,252,.92); color:var(--red); box-shadow:0 7px 21px rgba(54,49,41,.055); }
.editor-main { padding:18px; min-width:0; }
.editor-area { width:100%; min-height:510px; font:12px/1.75 ui-monospace,SFMono-Regular,Menlo,monospace; background:rgba(255,255,252,.65); }
.markdown-preview { min-height:250px; line-height:1.78; color:var(--ink-2); }
.markdown-preview h2,.markdown-preview h3,.markdown-preview h4 { font-family:"Songti SC","STSong",serif; }

.chat-shell { display:grid; grid-template-columns:220px minmax(0,1fr); min-height:650px; padding:0; overflow:hidden; }
.channel-list { padding:13px; background:rgba(238,234,223,.58); display:grid; align-content:start; gap:5px; }
.chat-main { display:grid; grid-template-rows:auto 1fr auto; min-width:0; }
.chat-header { padding:15px 17px; display:flex; align-items:center; justify-content:space-between; gap:10px; background:rgba(255,255,252,.58); }
.presence { color:var(--muted); font-size:9px; margin-top:4px; }
.messages { padding:19px; overflow:auto; display:grid; align-content:start; gap:12px; min-height:470px; }
.message { display:flex; gap:10px; align-items:flex-start; }
.message-bubble { max-width:min(760px,82%); padding:11px 13px; border-radius:4px 16px 16px 16px; background:rgba(255,255,252,.92); box-shadow:0 7px 24px rgba(53,48,40,.055); }
.message-ai .message-bubble { background:linear-gradient(135deg, rgba(240,233,216,.9), rgba(255,255,252,.91)); }
.message-head { display:flex; gap:8px; align-items:center; margin-bottom:6px; }
.message-head time { color:var(--muted); font-size:9px; }
.message-content { white-space:pre-wrap; word-break:break-word; font-size:12px; line-height:1.65; }
.chat-form { display:grid; grid-template-columns:1fr auto; gap:8px; padding:13px; background:rgba(245,242,234,.76); }
.chat-form textarea { min-height:54px; max-height:160px; }

.file-drop { padding:28px; text-align:center; margin-bottom:18px; background:linear-gradient(145deg, rgba(255,255,252,.88), rgba(241,235,221,.69)); }
.file-drop input { max-width:430px; margin:15px auto; }
.file-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:14px; }
.file-card { padding:19px; min-height:180px; display:flex; flex-direction:column; align-items:center; text-align:center; }
.file-card strong { max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.file-card small { color:var(--muted); font-size:9px; margin:7px 0 14px; line-height:1.5; }
.file-icon { width:52px; height:52px; border-radius:18px; display:grid; place-items:center; color:var(--gold); background:linear-gradient(145deg,#fff,#eee6d5); margin-bottom:12px; box-shadow:0 10px 25px rgba(105,78,39,.1); }
.file-actions { display:flex; gap:5px; flex-wrap:wrap; justify-content:center; margin-top:auto; }
.upload-orbit { margin:0 auto 10px; }
.media-stage { min-height:65vh; display:grid; place-items:center; padding:8px; }
.adaptive-media { width:100%; max-height:75vh; object-fit:contain; border-radius:17px; background:#111; }
.document-frame { width:100%; height:75vh; border:0; border-radius:17px; background:#fff; }
.audio-canvas { min-height:360px; width:100%; display:grid; place-content:center; gap:24px; text-align:center; color:var(--gold); background:radial-gradient(circle at 50% 45%, rgba(175,133,66,.17), transparent 50%); }
.audio-canvas audio { width:min(650px,80vw); }

.role-card { min-height:210px; }
.match-list { display:grid; gap:14px; }
.match-item { padding:17px; border-radius:18px; background:rgba(255,255,252,.8); box-shadow:var(--shadow-paper); }
.match-score { width:54px; height:54px; border-radius:50%; display:grid; place-items:center; font:620 18px "Songti SC","STSong",serif; color:var(--red); background:var(--red-soft); }
.dimension-bars { display:grid; gap:6px; margin-top:12px; }
.dimension { display:grid; grid-template-columns:110px 1fr 35px; gap:8px; align-items:center; font-size:9px; color:var(--muted); }
.bar,.confidence-bar { height:6px; border-radius:999px; background:rgba(61,70,66,.07); overflow:hidden; }
.bar i,.confidence-bar i { display:block; height:100%; background:linear-gradient(90deg,var(--gold),var(--red)); border-radius:inherit; }

.ai-console { display:grid; grid-template-columns:minmax(330px,.85fr) minmax(0,1.25fr); gap:18px; align-items:start; }
.ai-output { min-height:440px; white-space:pre-wrap; padding:20px; border-radius:21px; background:linear-gradient(145deg,rgba(255,255,252,.88),rgba(239,234,222,.7)); box-shadow:var(--shadow-paper); line-height:1.7; }
.ai-provider { color:var(--muted); font-size:10px; margin-top:8px; }
.graph-wrap { overflow:auto; padding:14px; border-radius:20px; background:radial-gradient(circle at center, rgba(255,255,252,.94), rgba(235,231,220,.7)); }
.graph-wrap svg { min-width:850px; }
.graph-edge,.research-graph-edge { stroke:rgba(77,86,82,.24); stroke-width:1.2; fill:none; }
.graph-node text,.research-graph-node text { fill:var(--ink-soft); font-size:9px; }
.graph-legend { display:flex; flex-wrap:wrap; gap:8px; padding:4px 4px 12px; }
.legend-item { color:var(--muted); font-size:9px; }

.table-wrap { width:100%; overflow:auto; border-radius:20px; background:rgba(255,255,252,.7); box-shadow:var(--shadow-paper); }
.table-wrap:focus-visible { outline:3px solid color-mix(in srgb,var(--state-a) 38%,transparent); outline-offset:3px; }
table { width:100%; border-collapse:collapse; min-width:760px; }
th,td { padding:12px 14px; text-align:left; font-size:11px; }
th { color:var(--muted); font-size:9px; letter-spacing:.07em; text-transform:uppercase; background:rgba(238,234,223,.62); }
td { border-top:1px solid rgba(48,57,53,.055); }
.sr-only { position:absolute !important; width:1px !important; height:1px !important; padding:0 !important; margin:-1px !important; overflow:hidden !important; clip:rect(0,0,0,0) !important; white-space:nowrap !important; border:0 !important; }

.admin-user-manager { margin-top:28px; padding:22px; }
.admin-user-heading { margin:0 0 16px; align-items:center; }
.admin-user-filter { display:grid; grid-template-columns:minmax(240px,1.7fr) repeat(3,minmax(130px,.7fr)) auto; gap:11px; align-items:end; padding:14px; border-radius:18px; background:rgba(244,239,227,.58); }
.admin-user-filter-actions { min-height:41px; display:flex; align-items:center; gap:7px; }
.admin-user-summary { min-height:34px; padding:12px 3px 7px; display:flex; align-items:center; justify-content:space-between; gap:10px; color:var(--muted); font-size:11px; }
.admin-user-summary strong { color:var(--ink); }
.admin-user-warning { margin:7px 0 13px; padding:12px 14px; border-radius:14px; display:grid; gap:4px; color:#76531d; background:rgba(206,143,31,.1); box-shadow:inset 0 0 0 1px rgba(206,143,31,.14); }
.admin-user-warning strong { font-size:11px; }.admin-user-warning span { font-size:10px; line-height:1.5; }
.admin-user-table-wrap { box-shadow:inset 0 1px 0 rgba(255,255,255,.96),var(--shadow-paper); }
.admin-user-table { min-width:1050px; }
.admin-user-identity { min-width:250px; display:flex; align-items:center; gap:9px; }
.admin-user-identity > div:nth-child(2) { min-width:0; flex:1; }
.admin-user-identity strong,.admin-user-identity small { display:block; max-width:300px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.admin-user-identity small { margin-top:3px; color:var(--muted); font-size:9px; }
.admin-user-actions { min-width:270px; display:flex; align-items:center; flex-wrap:wrap; gap:5px; }
.admin-user-row-inactive { opacity:.66; }
.admin-user-pagination { min-height:43px; padding:12px 2px 0; display:flex; align-items:center; justify-content:space-between; gap:12px; color:var(--muted); font-size:10px; }
.admin-user-pagination > div { display:flex; gap:6px; }
.admin-form-error { min-height:18px; margin:0; }
.admin-self-impact,.admin-danger-confirm { padding:14px; border-radius:15px; color:#772d27; background:rgba(177,45,40,.08); box-shadow:inset 0 0 0 1px rgba(177,45,40,.12); }
.admin-self-impact { display:grid; gap:7px; }
.admin-self-impact[hidden] { display:none; }
.admin-self-impact > span,.admin-danger-confirm p { color:var(--ink-soft); font-size:10px; line-height:1.6; }
.admin-self-impact label { margin-top:3px; display:flex; grid-template-columns:none; align-items:flex-start; gap:8px; color:var(--danger); }
.admin-self-impact input { width:auto; margin-top:2px; }
.admin-danger-confirm { margin-bottom:14px; }
.admin-danger-confirm p { margin:7px 0 0; }

.modal-backdrop { position:fixed; inset:0; z-index:300; background:rgba(36,39,36,.24); backdrop-filter:blur(17px); display:grid; place-items:center; padding:22px; }
.modal-card { width:min(680px,100%); max-height:92vh; overflow:auto; border-radius:28px; background:linear-gradient(145deg,#fffefa,#f2eee3); box-shadow:0 45px 150px rgba(42,39,33,.26); }
.modal-wide { width:min(1100px,100%); }
.modal-card > header { position:sticky; top:0; z-index:3; padding:19px 22px; display:flex; justify-content:space-between; align-items:center; background:rgba(255,254,250,.88); backdrop-filter:blur(19px); }
.modal-card > header h2 { margin:0; font:650 21px "Songti SC","STSong",serif; }
.modal-body { padding:22px; }
.modal-card > footer { padding:15px 22px; }

.toast { position:fixed; right:24px; top:96px; z-index:500; min-width:260px; max-width:min(410px,calc(100vw - 36px)); display:flex; gap:10px; align-items:center; padding:13px 15px; border-radius:16px; color:var(--ink); background:rgba(255,255,252,.94); box-shadow:var(--shadow-float); transform:translateX(35px); opacity:0; transition:.23s; }
.toast.show { transform:none; opacity:1; }
.toast-dot { width:8px; height:8px; border-radius:50%; background:var(--success); box-shadow:0 0 13px var(--success); }
.toast-error .toast-dot { background:var(--danger); box-shadow:0 0 13px var(--danger); }
.toast-warning .toast-dot { background:var(--warning); }

.loading-state,.loading { min-height:180px; display:grid; place-content:center; justify-items:center; gap:10px; color:var(--muted); }
.spinner { width:30px; height:30px; border-radius:50%; border:2px solid rgba(175,133,66,.13); border-top-color:var(--gold); animation:spin .8s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
.empty-state { min-height:220px; display:grid; place-content:center; justify-items:center; text-align:center; color:var(--muted); padding:25px; }
.empty-state h3 { color:var(--ink); margin:10px 0 4px; }
.empty-orbit { min-width:52px; height:52px; border-radius:50%; display:grid; place-items:center; color:var(--red); background:var(--red-soft); font-family:"Songti SC","STSong",serif; }

/* Work state and semantic flowing light */
.work-state-control { position:relative; }
.work-state-button { min-width:98px; height:39px; border:0; border-radius:13px; display:flex; align-items:center; justify-content:center; gap:7px; padding:0 10px; background:rgba(255,255,252,.85); color:var(--state-a); box-shadow:0 7px 23px rgba(61,56,45,.055), inset 0 0 0 1px color-mix(in srgb,var(--state-a) 18%, transparent); }
.work-state-pulse { width:7px; height:7px; border-radius:50%; background:var(--state-a); box-shadow:0 0 0 0 color-mix(in srgb,var(--state-a) 40%, transparent); animation:state-pulse 2.2s ease-out infinite; }
@keyframes state-pulse { 0%{box-shadow:0 0 0 0 color-mix(in srgb,var(--state-a) 40%, transparent)} 70%{box-shadow:0 0 0 8px transparent} 100%{box-shadow:0 0 0 0 transparent} }
.work-state-label { font-size:11px; font-weight:750; }
.work-state-chevron { transition:.18s; }
.work-state-control.open .work-state-chevron { transform:rotate(180deg); }
.work-state-menu { position:absolute; top:47px; right:0; width:min(370px,calc(100vw - 30px)); display:none; padding:10px; border-radius:22px; background:rgba(255,254,250,.97); box-shadow:var(--shadow-float); z-index:90; }
.work-state-control.open .work-state-menu { display:grid; gap:5px; animation:menu-rise .18s ease-out; }
@keyframes menu-rise { from{transform:translateY(-7px);opacity:0} }
.work-state-menu-head { padding:9px 9px 11px; }
.work-state-menu-head strong,.work-state-menu-head small { display:block; }
.work-state-menu-head small { color:var(--muted); font-size:9px; margin-top:3px; }
.work-state-option { border:0; border-radius:14px; background:transparent; text-align:left; padding:9px; display:grid; grid-template-columns:34px 1fr 15px; gap:9px; align-items:center; color:var(--ink-soft); }
.work-state-option:hover,.work-state-option.active { background:rgba(239,235,224,.78); color:var(--ink); }
.work-state-option strong,.work-state-option small { display:block; }
.work-state-option strong { font-size:11px; }
.work-state-option small { color:var(--muted); font-size:9px; line-height:1.4; margin-top:2px; }
.work-state-option-icon { width:32px; height:32px; border-radius:11px; display:grid; place-items:center; background:var(--gold-soft); color:var(--gold); }
.state-cyan { color:var(--jade); background:var(--jade-soft); }.state-violet { color:var(--violet); background:var(--violet-soft); }.state-red { color:var(--red); background:var(--red-soft); }.state-green { color:var(--success); background:rgba(52,123,89,.1); }.state-ink { color:var(--ink-soft); background:rgba(89,100,95,.08); }
.work-state-check { width:7px; height:7px; border-radius:50%; background:transparent; }
.work-state-option.active .work-state-check { background:var(--state-a); box-shadow:0 0 9px var(--state-a); }
#state-flow-layer { position:fixed; inset:0; width:100vw; height:100vh; pointer-events:none; z-index:3; overflow:visible; }
.state-flow-path { fill:none; stroke-width:1.65; stroke-linecap:round; stroke-dasharray:4 11; filter:url(#flow-glow); animation:flow-dash 4.8s linear infinite; animation-delay:var(--flow-delay); }
.flow-blocked { stroke-width:2.3; animation-duration:2.2s; }
.flow-away { stroke-dasharray:2 16; animation-duration:9s; }
@keyframes flow-dash { to { stroke-dashoffset:-90; } }

/* Presence */
.workspace-pulse { padding:20px; margin-top:18px; }
.presence-river { display:flex; gap:10px; overflow-x:auto; padding:14px 2px 4px; }
.presence-person { min-width:190px; display:grid; grid-template-columns:auto 1fr auto; gap:9px; align-items:center; padding:10px; border-radius:16px; background:rgba(255,255,252,.62); }
.presence-person strong,.presence-person small { display:block; }
.presence-person strong { font-size:11px; }.presence-person small { color:var(--muted); font-size:9px; margin-top:2px; }
.presence-pill { display:inline-flex; align-items:center; gap:4px; font-size:9px; color:var(--muted); }
.presence-pill i { width:7px; height:7px; border-radius:50%; background:#9aa29e; }
.presence-focus i { background:var(--gold); box-shadow:0 0 9px var(--gold); }.presence-collaborating i { background:var(--jade); box-shadow:0 0 9px var(--jade); }.presence-reviewing i { background:var(--violet); }.presence-blocked i { background:var(--red); box-shadow:0 0 9px var(--red); }.presence-available i { background:var(--success); }.presence-away i { background:#a3a6a1; }

/* Five kernels */
.kernel-thesis { padding:25px; overflow:hidden; }
.kernel-orbit { width:min(720px,100%); height:390px; margin:10px auto; position:relative; display:grid; place-items:center; }
.kernel-orbit::before,.kernel-orbit::after { content:""; position:absolute; inset:10%; border-radius:50%; box-shadow:inset 0 0 0 1px rgba(175,133,66,.15); }
.kernel-orbit::after { inset:25%; box-shadow:inset 0 0 0 1px rgba(169,39,36,.10); }
.orbit-center { width:155px; height:155px; border-radius:50%; display:grid; place-content:center; text-align:center; background:linear-gradient(145deg,#fff,#eee6d7); box-shadow:0 20px 60px rgba(98,72,35,.13); z-index:2; }
.orbit-center strong { font:650 20px "Songti SC","STSong",serif; color:var(--red); }.orbit-center small { color:var(--muted); font-size:9px; margin-top:5px; }
.orbit-item { position:absolute; display:grid; justify-items:center; gap:5px; color:var(--ink-soft); font-size:10px; font-weight:750; }
.orbit-item i { width:54px; height:54px; border-radius:50%; display:grid; place-items:center; font:650 19px "Songti SC","STSong",serif; background:rgba(255,255,252,.9); box-shadow:0 12px 32px rgba(53,48,40,.09); color:var(--gold); }
.orbit-1{left:6%;top:42%}.orbit-2{left:22%;top:5%}.orbit-3{right:22%;top:5%}.orbit-4{right:5%;top:42%}.orbit-5{left:44%;bottom:0}
.kernel-loop-copy { display:flex; gap:8px; flex-wrap:wrap; justify-content:center; align-items:center; color:var(--ink-soft); font-size:10px; }
.kernel-loop-copy i { color:var(--gold); }
.kernel-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin-top:20px; }
.kernel-card { padding:22px; min-height:300px; overflow:hidden; }
.kernel-card::before { content:""; position:absolute; width:170px; height:170px; right:-55px; top:-60px; border-radius:50%; background:radial-gradient(circle, var(--kernel-soft, var(--gold-soft)), transparent 67%); }
.kernel-gold{--kernel-soft:var(--gold-soft)}.kernel-jade{--kernel-soft:var(--jade-soft)}.kernel-blue{--kernel-soft:var(--blue-soft)}.kernel-violet{--kernel-soft:var(--violet-soft)}.kernel-red{--kernel-soft:var(--red-soft)}
.kernel-card-head { align-items:center; }
.kernel-glyph { width:48px; height:48px; border-radius:17px; display:grid; place-items:center; color:var(--red); background:linear-gradient(145deg,#fff,#eee7d8); font:650 20px "Songti SC","STSong",serif; }
.kernel-summary { min-height:76px; }
.kernel-counts { display:flex; gap:12px; flex-wrap:wrap; margin:16px 0; }
.kernel-counts div { min-width:110px; padding:10px 12px; border-radius:14px; background:rgba(255,255,252,.68); }
.kernel-counts strong,.kernel-counts span { display:block; }.kernel-counts strong { font-size:21px; }.kernel-counts span { color:var(--muted); font-size:9px; margin-top:3px; }
.kernel-flow { display:flex; align-items:center; gap:6px; flex-wrap:wrap; font-size:9px; color:var(--ink-soft); }
.kernel-flow span { padding:5px 7px; border-radius:999px; background:rgba(86,95,91,.06); }.kernel-flow i { color:var(--gold); }
.research-kernel-band,.plugin-foundation { padding:24px; margin-top:20px; }
.research-kernel-stats { display:flex; align-items:center; gap:9px; flex-wrap:wrap; margin:16px 0; }
.research-kernel-stats > div { padding:10px 15px; border-radius:15px; background:var(--red-soft); }.research-kernel-stats strong,.research-kernel-stats span { display:block; }.research-kernel-stats > div strong { color:var(--red); font-size:24px; }.research-kernel-stats > div span { font-size:9px; color:var(--muted); }
.research-kernel-stats > span { padding:6px 9px; border-radius:999px; color:var(--ink-soft); background:rgba(86,95,91,.06); font-size:9px; }
.plugin-layer-map { display:flex; gap:8px; flex-wrap:wrap; margin:16px 0; }
.plugin-chip { border:0; border-radius:999px; padding:8px 12px; background:rgba(255,255,252,.72); color:var(--ink-soft); box-shadow:inset 0 0 0 1px rgba(175,133,66,.12); }
.plugin-chip:hover { color:var(--red); background:#fff; }

/* Research and design */
.research-manifest { padding:25px; overflow:hidden; }
.research-chain { display:flex; align-items:center; gap:7px; overflow-x:auto; padding:20px 2px 6px; }
.research-chain.compact { padding-top:13px; }
.chain-node { min-width:95px; padding:10px 12px; border-radius:15px; background:rgba(255,255,252,.73); text-align:center; }
.chain-node i,.chain-node strong { display:block; }.chain-node i { color:var(--gold); font-size:9px; }.chain-node strong { margin-top:4px; font-size:10px; }
.chain-arrow { color:var(--red); flex:none; }
.template-card { min-height:260px; }
.template-glyph { width:55px; height:55px; border-radius:20px; display:grid; place-items:center; color:var(--red); background:linear-gradient(145deg,#fff,#ede4d2); font:650 23px "Songti SC","STSong",serif; margin-bottom:15px; }
.research-program-header { align-items:flex-start; }
.research-tabs { position:sticky; top:calc(var(--topbar) + 8px); z-index:20; }
.research-workbench { min-height:420px; }
.research-question-map,.claim-matrix,.workflow-grid,.design-studio-grid,.artifact-river { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.question-index,.hypothesis-mark { width:37px; height:37px; border-radius:13px; display:grid; place-items:center; color:var(--gold); background:var(--gold-soft); flex:none; font-weight:800; }
.hypothesis-mark { color:var(--violet); background:var(--violet-soft); }
.confidence-bar { margin-top:8px; }
.experiment-card,.design-study,.artifact-card,.claim-card,.workflow-card { min-height:230px; }
.experiment-protocol pre { max-height:180px; overflow:auto; padding:10px; border-radius:12px; background:rgba(36,42,38,.94); color:#e9eee9; font-size:9px; }
.design-axis-wheel { display:flex; gap:7px; flex-wrap:wrap; margin:14px 0; }
.design-axis-wheel span { padding:6px 8px; border-radius:999px; background:var(--red-soft); color:var(--red); font-size:9px; }
.artifact-type { color:var(--gold); font-size:9px; letter-spacing:.12em; text-transform:uppercase; }
.artifact-version { position:absolute; right:18px; bottom:15px; font:600 35px "Songti SC","STSong",serif; color:rgba(175,133,66,.12); }
.evidence-lanes { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin:15px 0; }
.evidence-lanes > div { min-height:100px; padding:9px; border-radius:13px; background:rgba(255,255,252,.56); }
.evidence-lanes strong { display:block; font-size:9px; color:var(--muted); margin-bottom:7px; }
.evidence-chip { display:block; padding:6px 7px; border-radius:9px; font-size:9px; margin-bottom:5px; background:rgba(86,95,91,.07); }
.evidence-chip.supports { background:rgba(52,123,89,.1); color:var(--success); }.evidence-chip.contradicts { background:var(--red-soft); color:var(--red); }.evidence-chip.uncertain,.evidence-chip.context { background:var(--gold-soft); color:var(--warning); }
.graph-insight-layout { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(280px,.55fr); gap:17px; }
.graph-window { min-height:600px; }
.risk-list,.principle-list { display:grid; gap:8px; }
.risk-list li,.principle-list li { padding:8px 10px; border-radius:12px; background:rgba(255,255,252,.57); color:var(--ink-soft); font-size:10px; }
.workflow-steps,.workflow-run-steps { display:grid; gap:7px; margin-top:13px; }
.timeline { position:relative; display:grid; gap:11px; padding-left:18px; }
.timeline::before { content:""; position:absolute; left:5px; top:5px; bottom:5px; width:1px; background:linear-gradient(var(--gold),transparent); }
.timeline-item { position:relative; padding:9px 11px; border-radius:13px; background:rgba(255,255,252,.61); }
.timeline-item::before,.step-dot { content:""; position:absolute; width:8px; height:8px; left:-17px; top:14px; border-radius:50%; background:var(--gold); box-shadow:0 0 10px var(--gold); }
.approval-card { padding:14px; border-radius:15px; background:var(--gold-soft); }
.settlement-sheet { padding:22px; margin-top:18px; }
.settlement-waterfall { display:grid; gap:5px; margin:15px 0; }
.settlement-waterfall > div { display:flex; justify-content:space-between; gap:10px; padding:9px 11px; border-radius:12px; background:rgba(255,255,252,.58); }
.settlement-waterfall .total { color:var(--red); background:var(--red-soft); font-weight:800; }
.transaction-mark { width:30px; height:30px; border-radius:50%; display:grid; place-items:center; background:rgba(52,123,89,.1); color:var(--success); font-weight:900; }
.transaction-mark.cost,.transaction-mark.refund,.transaction-mark.payout { color:var(--red); background:var(--red-soft); }

.plugin-icon { width:52px; height:52px; border-radius:19px; display:grid; place-items:center; color:var(--red); background:linear-gradient(145deg,#fff,#eee4d1); box-shadow:0 12px 28px rgba(113,80,37,.11); margin-bottom:14px; }
.plugin-card footer { justify-content:flex-start; flex-wrap:wrap; }
.highlight-card { animation:highlight 1.8s ease; }
@keyframes highlight { 0%,100%{box-shadow:var(--shadow-paper)} 35%{box-shadow:0 0 0 5px rgba(175,133,66,.18),0 30px 80px rgba(175,133,66,.16)} }

.auth-page { min-height:100vh; display:grid; grid-template-columns:minmax(0,1.35fr) minmax(420px,.65fr); position:relative; z-index:2; }
.auth-visual { padding:clamp(35px,6vw,90px); display:flex; flex-direction:column; justify-content:space-between; overflow:hidden; position:relative; }
.auth-visual::before { content:""; position:absolute; width:720px; height:720px; left:-360px; top:-390px; border-radius:50%; box-shadow:0 0 0 1px rgba(175,133,66,.18),0 0 0 75px rgba(175,133,66,.025),0 0 0 150px rgba(169,39,36,.018); }
.auth-copy { position:relative; max-width:800px; margin:60px 0; }
.auth-copy h1 { font:600 clamp(40px,6vw,82px)/1.05 "Songti SC","STSong",serif; letter-spacing:-.045em; margin:0; }
.auth-copy h1 span { color:var(--red); }
.auth-copy p { max-width:690px; line-height:1.8; color:var(--ink-soft); }
.auth-proof { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:13px; position:relative; }
.auth-proof .card { min-height:120px; padding:17px; }
.auth-proof strong,.auth-proof small { display:block; }.auth-proof small { color:var(--muted); font-size:10px; line-height:1.55; margin-top:7px; }
.auth-panel { display:grid; place-items:center; padding:30px; background:linear-gradient(160deg,rgba(240,235,223,.74),rgba(255,255,252,.78)); backdrop-filter:blur(22px); }
.auth-card { width:min(440px,100%); padding:28px; border-radius:30px; background:rgba(255,255,252,.9); box-shadow:var(--shadow-float); }
.auth-card h2 { font:650 28px "Songti SC","STSong",serif; margin:22px 0 5px; }.auth-card > p { color:var(--muted); font-size:11px; }
.auth-tabs { display:grid; grid-template-columns:1fr 1fr; padding:5px; border-radius:15px; background:rgba(236,231,218,.68); }
.auth-tabs button { border:0; border-radius:11px; padding:9px; background:transparent; color:var(--muted); }
.auth-tabs button.active { background:#fff; color:var(--red); box-shadow:0 7px 20px rgba(54,49,41,.06); }
.demo-box { margin-top:18px; padding:12px; border-radius:14px; background:var(--gold-soft); color:var(--ink-soft); font-size:9px; line-height:1.7; }

@media (max-width: 1180px) {
  :root { --sidebar:240px; }
  .page { padding-left:24px; padding-right:24px; }
  .grid-4 { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .grid-3 { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .hero-orbit { display:none; }
  .auth-page { grid-template-columns:1fr 430px; }
  .kernel-orbit { transform:scale(.88); }
}

@media (max-width: 900px), (pointer: coarse) {
  :root { --sidebar:290px; --topbar:70px; }
  .app-shell { display:block; }
  .sidebar { position:fixed; left:0; top:0; width:min(var(--sidebar),87vw); transform:translateX(-105%); transition:transform .25s ease; box-shadow:24px 0 80px rgba(44,40,33,.18); }
  body.menu-open .sidebar { transform:none; }
  body.menu-open::after { content:""; position:fixed; inset:0; width:auto; height:auto; right:auto; top:auto; border-radius:0; background:rgba(36,39,36,.21); backdrop-filter:blur(8px); opacity:1; z-index:34; }
  .mobile-menu { display:grid !important; }
  .topbar { height:auto; min-height:var(--topbar); padding:10px 14px; }
  .breadcrumb small { display:none; }
  .top-actions { gap:5px; }
  .workspace-switcher { display:none; }
  .quick-idea span { display:none; }
  .quick-idea { width:39px; padding:0; }
  .layout-reset { display:none; }
  .page { padding:20px 14px 55px; }
  .page-header { align-items:flex-start; flex-direction:column; }
  .page-actions { width:100%; justify-content:flex-start; }
  .grid-2,.grid-3,.grid-4,.split-main,.ai-console,.research-question-map,.claim-matrix,.workflow-grid,.design-studio-grid,.artifact-river,.graph-insight-layout { grid-template-columns:1fr; }
  .window-panel { transform:none !important; width:auto !important; height:auto !important; min-width:0; resize:none; overflow:visible; }
  .window-controls { display:none; }
  .window-maximized { position:fixed !important; inset:10px !important; width:auto !important; height:auto !important; overflow:auto; z-index:200 !important; }
  #state-flow-layer { opacity:.45; }
  .hero { min-height:0; padding:28px 22px; }
  .hero h1 { font-size:clamp(32px,10vw,54px); }
  .profile-hero { align-items:flex-start; flex-direction:column; }
  .admin-user-filter { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .admin-user-filter-actions { justify-content:flex-start; }
  .editor-layout,.chat-shell { grid-template-columns:1fr; }
  .editor-sidebar,.channel-list { display:flex; overflow-x:auto; }
  .page-link,.channel-button { flex:none; min-width:150px; }
  .kanban { grid-template-columns:repeat(5,280px); }
  .auth-page { grid-template-columns:1fr; }
  .auth-visual { min-height:55vh; padding:28px 22px; }
  .auth-copy { margin:35px 0; }
  .auth-proof { grid-template-columns:1fr; }
  .auth-panel { padding:20px 14px 40px; }
  .kernel-grid { grid-template-columns:1fr; }
  .kernel-orbit { height:330px; transform:scale(.8); transform-origin:center; }
  .evidence-lanes { grid-template-columns:1fr; }
  .research-tabs { top:76px; }
}

@media (max-width: 560px) {
  .page-title h1 { font-size:34px; }
  .grid-4 { grid-template-columns:1fr 1fr; gap:10px; }
  .metric { min-height:125px; padding:17px; }
  .metric strong { font-size:29px; }
  .button { min-height:37px; padding:8px 11px; }
  .topbar { gap:7px; }
  .work-state-label { display:none; }
  .work-state-button { min-width:42px; width:42px; padding:0; }
  .work-state-chevron { display:none; }
  .form-grid { grid-template-columns:1fr; }
  .form-grid .full { grid-column:auto; }
  .admin-user-manager { padding:16px; }
  .admin-user-heading { align-items:flex-start; }
  .admin-user-filter { grid-template-columns:1fr; }
  .admin-user-summary,.admin-user-pagination { align-items:flex-start; flex-direction:column; }
  .modal-backdrop { padding:8px; align-items:end; }
  .modal-card { max-height:95vh; border-radius:24px 24px 0 0; }
  .modal-body { padding:16px; }
  .research-chain { gap:5px; }
  .chain-node { min-width:82px; }
  .kernel-orbit { display:none; }
  .kernel-loop-copy { justify-content:flex-start; }
  .hero-actions .button { flex:1 1 145px; }
  .file-grid { grid-template-columns:1fr; }
  .chat-form { grid-template-columns:1fr; }
  .message-bubble { max-width:90%; }
}

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

/* Research workbench depth: notebook, experiment provenance, artifact lineage */
.notebook-workspace { display:grid; grid-template-columns:minmax(0,1.42fr) minmax(270px,.58fr); gap:17px; align-items:start; }
.notebook-timeline-window { min-height:520px; }
.notebook-timeline { padding:4px 4px 4px 26px; }
.notebook-entry { padding:15px 16px; background:linear-gradient(135deg,rgba(255,255,252,.82),rgba(245,239,226,.55)); }
.notebook-entry::before { top:24px; background:linear-gradient(135deg,var(--red),var(--gold)); box-shadow:0 0 18px rgba(175,133,66,.32); }
.notebook-entry-body { min-width:0; }
.notebook-entry-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:7px; }
.notebook-entry-head h3 { margin:2px 0 0; }
.reference-strip { display:flex; flex-wrap:wrap; gap:6px; margin:10px 0; }
.notebook-principles { position:sticky; top:calc(var(--topbar) + 82px); }

.experiment-run-stack,.design-history-stack,.artifact-version-stack,.review-stack { display:grid; gap:14px; }
.experiment-run-panel,.design-version { padding:17px; border-radius:22px; background:linear-gradient(145deg,rgba(255,255,252,.9),rgba(240,234,221,.61)); box-shadow:var(--shadow-paper); }
.experiment-run-panel > header,.design-version > header { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; margin-bottom:12px; }
.run-data-grid,.design-version-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.design-version-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.run-data-grid > div,.design-version-grid > div { min-width:0; padding:11px; border-radius:15px; background:rgba(255,255,252,.63); }
.run-data-grid pre,.design-version-grid pre { max-height:190px; margin:7px 0 0; overflow:auto; white-space:pre-wrap; word-break:break-word; font-size:9px; color:var(--ink-soft); }
.run-notes { margin:10px 0; padding:10px 12px; border-radius:13px; background:var(--gold-soft); }
.measurement-table { margin-top:13px; padding-top:12px; border-top:1px solid rgba(106,91,61,.1); }
.measurement-head { display:flex; justify-content:space-between; align-items:center; gap:10px; }
.measurement-rows { display:grid; gap:5px; margin-top:9px; }
.measurement-row { display:grid; grid-template-columns:minmax(150px,1.5fr) minmax(90px,.8fr) minmax(70px,.5fr) minmax(110px,.7fr); gap:10px; align-items:center; padding:9px 11px; border-radius:12px; background:rgba(255,255,252,.66); }
.measurement-row small { color:var(--muted); text-align:right; }
.measurement-form,.artifact-inline-form { margin-bottom:16px; background:linear-gradient(150deg,rgba(255,255,252,.98),rgba(242,233,214,.89)); box-shadow:0 25px 70px rgba(84,63,31,.13); }

.artifact-studio { display:grid; gap:16px; }
.artifact-studio-hero { display:flex; justify-content:space-between; align-items:flex-start; gap:18px; padding:18px 20px; border-radius:22px; background:linear-gradient(130deg,rgba(255,255,252,.95),rgba(236,226,207,.72)); }
.artifact-studio-hero h2 { margin:3px 0 6px; font:650 28px "Songti SC","STSong",serif; }
.artifact-version-stack article,.review-stack article { padding:12px 13px; border-radius:15px; background:rgba(255,255,252,.65); }
.artifact-version-stack article header,.review-stack article > div { display:flex; justify-content:space-between; gap:10px; align-items:center; }
.artifact-version-stack code { display:block; margin-top:8px; color:var(--muted); font-size:8px; word-break:break-all; }
.artifact-version-stack .markdown-preview { max-height:220px; overflow:auto; margin-top:8px; }
.review-stack p { margin:7px 0; color:var(--ink-soft); }
.design-history-stack { max-height:72vh; overflow:auto; padding-right:4px; }

@media (max-width: 900px), (pointer: coarse) {
  .notebook-workspace,.run-data-grid,.design-version-grid { grid-template-columns:1fr; }
  .notebook-principles { position:static; }
  .measurement-row { grid-template-columns:1fr 1fr; }
  .measurement-row small { text-align:left; }
  .artifact-studio-hero { flex-direction:column; }
}

@media (max-width: 560px) {
  .notebook-entry-head,.experiment-run-panel > header,.design-version > header,.measurement-head { flex-direction:column; align-items:flex-start; }
  .measurement-row { grid-template-columns:1fr; }
}
.collective-layout{display:grid;grid-template-columns:220px minmax(0,1fr) 300px;gap:14px;min-height:720px}.collective-palette,.node-inspector,.canvas-shell{background:rgba(255,255,255,.72);border-radius:24px;padding:14px;box-shadow:var(--shadow)}.collective-palette h3,.node-inspector h3{margin:8px 0 12px}.palette-item{width:100%;border:0;border-radius:14px;padding:10px 12px;background:rgba(255,255,255,.76);display:grid;text-align:left;margin-bottom:7px}.palette-item span{font-weight:700}.palette-item small{color:var(--muted);margin-top:3px}.canvas-shell{padding:0;overflow:hidden}.canvas-toolbar{height:48px;padding:8px 12px;display:flex;justify-content:space-between;align-items:center;color:var(--muted)}.infinite-canvas{position:relative;height:760px;overflow:auto;background-image:radial-gradient(rgba(44,46,51,.12) 1px,transparent 1px);background-size:24px 24px;background-color:rgba(252,249,244,.72)}#canvas-nodes{position:relative;width:2400px;height:1600px}.canvas-edges{position:absolute;width:2400px;height:1600px;pointer-events:none;overflow:visible}.canvas-edges path{fill:none;stroke:rgba(60,70,80,.28);stroke-width:2}.canvas-edges text{font-size:11px;fill:var(--muted)}.canvas-node{position:absolute;border-radius:18px;padding:12px;background:rgba(255,255,255,.93);box-shadow:0 16px 36px rgba(90,70,50,.12);user-select:none;touch-action:none}.canvas-node.selected{box-shadow:0 0 0 3px rgba(195,147,65,.35),0 20px 44px rgba(90,70,50,.16)}.canvas-node header,.canvas-node footer{display:flex;justify-content:space-between;align-items:center;gap:8px}.canvas-node header span{font-size:11px;color:var(--gold-soft);font-weight:800}.canvas-node h4{margin:10px 0 6px}.canvas-node p{margin:0;color:var(--text-soft);font-size:12px;line-height:1.5}.canvas-node footer{margin-top:10px}.kind-problem{border-left:5px solid #b93a30}.kind-need{border-left:5px solid #c39341}.kind-evidence{border-left:5px solid #427adf}.kind-solution,.kind-design{border-left:5px solid #1c9c92}.kind-risk{border-left:5px solid #d55d44}.kind-experiment{border-left:5px solid #7e65c5}.kind-actor,.kind-resource{border-left:5px solid #6c7a86}.compact-list .list-item{padding:9px}.model-lab-grid{display:grid;grid-template-columns:360px minmax(0,1fr);gap:18px}.model-list-item{width:100%;border:0;text-align:left}.code-area{min-height:240px;font-family:ui-monospace,monospace}.training-result{margin-top:18px}.metric-card{border-radius:16px;padding:14px;background:rgba(255,255,255,.8)}.metric-card span{display:block;color:var(--muted);font-size:12px}.metric-card strong{display:block;margin-top:6px;font-size:20px}@media(max-width:1100px){.collective-layout{grid-template-columns:1fr}.collective-palette{display:grid;grid-template-columns:repeat(2,1fr)}.collective-palette h3,.collective-palette hr,#presence-list,#insight-list{grid-column:1/-1}.node-inspector{order:2}.canvas-shell{order:1}.model-lab-grid{grid-template-columns:1fr}}@media(max-width:640px){.collective-palette{grid-template-columns:1fr}.infinite-canvas{height:620px}}
.tool-checkbox-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; max-height:320px; overflow:auto; padding:4px; }
.tool-checkbox-grid .form-check { background:rgba(255,255,255,.62); border-radius:14px; padding:11px; align-items:flex-start; }
.tool-checkbox-grid small { display:block; color:var(--muted); margin-top:3px; overflow-wrap:anywhere; }
.agent-session-detail { margin-bottom:18px; }
.agent-action-card details { margin-top:10px; }
.agent-action-card summary { cursor:pointer; color:var(--gold-soft); font-size:12px; }
.agent-approval { margin-top:14px; padding:14px; border-radius:16px; background:rgba(206,143,31,.1); }
.metric-card { background:rgba(255,255,255,.62); border-radius:16px; padding:14px; box-shadow:inset 0 1px 0 rgba(255,255,255,.95); }
.metric-card span { display:block; color:var(--muted); font-size:11px; }
.metric-card strong { display:block; margin-top:5px; font-size:18px; }
@media (max-width:700px){.tool-checkbox-grid{grid-template-columns:1fr}}

/* Research mission lifecycle: recruitment, evidence, contribution and audit */
.mission-empty { min-height:360px; display:grid; grid-template-columns:170px minmax(0,1fr); align-items:center; gap:32px; padding:34px; overflow:hidden; }
.mission-empty-visual { width:150px; height:150px; border-radius:50%; display:grid; place-items:center; position:relative; background:radial-gradient(circle,rgba(255,255,252,.96),rgba(227,214,187,.7)); box-shadow:0 22px 70px rgba(106,79,40,.13); }
.mission-empty-visual span { font:700 54px "Songti SC","STSong",serif; color:var(--red); }
.mission-empty-visual i { position:absolute; inset:-14px; border:1px solid rgba(175,133,66,.28); border-radius:43% 57% 48% 52%; animation:missionOrbit 11s linear infinite; }
@keyframes missionOrbit { to { transform:rotate(360deg); } }
.mission-empty h2 { margin:8px 0; font:650 clamp(26px,4vw,42px) "Songti SC","STSong",serif; }
.mission-empty p { color:var(--ink-soft); line-height:1.85; max-width:900px; }
.mission-hero { display:grid; grid-template-columns:150px minmax(0,1fr) auto; align-items:center; gap:24px; padding:27px; background:linear-gradient(130deg,rgba(255,255,252,.97),rgba(235,224,200,.72)); overflow:hidden; }
.mission-readiness { width:126px; height:126px; border-radius:50%; display:grid; place-items:center; align-content:center; position:relative; isolation:isolate; }
.mission-readiness::before { content:""; position:absolute; inset:0; border-radius:inherit; background:conic-gradient(var(--gold) var(--mission-progress,0deg),rgba(69,74,70,.08) 0); z-index:-2; }
.mission-readiness::after { content:""; position:absolute; inset:9px; border-radius:inherit; background:linear-gradient(145deg,#fffefb,#eee5d2); z-index:-1; }
.mission-readiness strong { font-size:25px; }.mission-readiness span { margin-top:3px; color:var(--muted); font-size:11px; }
.mission-hero-copy h2 { margin:4px 0 8px; font:650 clamp(25px,3vw,40px) "Songti SC","STSong",serif; }
.mission-hero-copy p { max-width:920px; color:var(--ink-soft); line-height:1.7; }
.mission-hero-actions { display:flex; flex-direction:column; align-items:stretch; gap:8px; min-width:150px; }
.mission-phase-panel { padding:22px; margin-top:18px; }
.mission-phase-track { display:grid; grid-template-columns:repeat(7,minmax(130px,1fr)); gap:9px; overflow-x:auto; padding:3px 2px 8px; }
.mission-phase { min-width:132px; min-height:136px; border-radius:18px; padding:13px; background:rgba(255,255,252,.64); position:relative; overflow:hidden; display:flex; flex-direction:column; gap:6px; }
.mission-phase > span { width:27px; height:27px; border-radius:50%; display:grid; place-items:center; background:rgba(175,133,66,.1); color:var(--gold); font-weight:800; }
.mission-phase strong { font-size:12px; }.mission-phase small { color:var(--muted); font-size:10px; }
.mission-phase > i { height:4px; border-radius:999px; background:linear-gradient(90deg,var(--red),var(--gold)); margin-top:auto; }
.mission-phase.active { box-shadow:0 0 0 2px rgba(175,133,66,.25),0 18px 44px rgba(97,76,43,.1); }
.mission-phase.passed { background:rgba(49,150,104,.08); }.mission-phase.blocked,.mission-phase.rejected { background:rgba(185,58,48,.08); }
.mini-link { border:0; padding:0; background:transparent; color:var(--gold-soft); text-align:left; font-size:10px; }
.mission-metrics { margin-top:18px; }
.mission-main-grid { display:grid; grid-template-columns:minmax(0,1.38fr) minmax(320px,.62fr); gap:18px; margin-top:18px; align-items:start; }
.mission-main-grid > .window-panel,.mission-main-grid > section,.mission-main-grid > aside { padding:20px; }
.mission-gap-list { display:grid; gap:9px; }
.mission-gap { padding:12px 13px; border-radius:15px; background:rgba(255,255,252,.64); display:grid; grid-template-columns:auto minmax(0,1fr); gap:10px; align-items:start; }
.mission-gap::before { content:""; width:8px; height:8px; border-radius:50%; margin-top:6px; background:var(--gold); }
.mission-gap.high::before { background:var(--red); }.mission-gap.medium::before { background:#cf8a2e; }.mission-gap.low::before { background:var(--teal); }
.mission-definition { display:grid; gap:10px; }
.mission-definition > div { padding:12px; border-radius:15px; background:rgba(255,255,252,.62); }
.mission-definition strong { display:block; font-size:11px; color:var(--muted); margin-bottom:5px; }
.mission-slot-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:13px; }
.mission-slot { padding:15px; border-radius:19px; background:linear-gradient(145deg,rgba(255,255,252,.88),rgba(238,229,209,.55)); box-shadow:var(--shadow-paper); }
.mission-slot h3 { margin:6px 0; }.mission-slot p { color:var(--ink-soft); font-size:12px; line-height:1.55; }
.application-manager { display:grid; gap:13px; }
.application-card { padding:15px; border-radius:19px; background:rgba(255,255,252,.67); box-shadow:inset 0 1px 0 rgba(255,255,255,.9); }
.application-card > header { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; }
.application-state { display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; }
.mission-workpackages { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.mission-workpackages article { padding:14px; border-radius:17px; background:rgba(255,255,252,.66); }
.mission-timeline { display:grid; gap:0; padding-left:22px; }
.mission-log { position:relative; padding:0 0 17px 18px; border-left:1px solid rgba(106,91,61,.15); }
.mission-log::before { content:""; position:absolute; left:-5px; top:5px; width:9px; height:9px; border-radius:50%; background:linear-gradient(135deg,var(--red),var(--gold)); box-shadow:0 0 0 5px rgba(175,133,66,.07); }
.mission-log header { display:flex; justify-content:space-between; gap:10px; }.mission-log p { color:var(--ink-soft); }
.mission-dossier-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px; }
.mission-dossier { padding:16px; border-radius:20px; background:linear-gradient(150deg,rgba(255,255,252,.89),rgba(238,231,215,.58)); box-shadow:var(--shadow-paper); }
.dossier-stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:7px; margin:12px 0; }
.dossier-stats > div { padding:9px; border-radius:12px; background:rgba(255,255,252,.65); text-align:center; }
.dossier-stats strong,.dossier-stats span { display:block; }.dossier-stats span { color:var(--muted); font-size:9px; margin-top:3px; }
.contribution-events { display:grid; gap:7px; }.contribution-events article { padding:9px; border-radius:12px; background:rgba(255,255,252,.64); }
.audit-report-item { padding:15px; border-radius:18px; background:rgba(255,255,252,.68); margin-bottom:10px; }
.audit-report-item header { display:flex; justify-content:space-between; gap:10px; }
.audit-flags { display:flex; flex-wrap:wrap; gap:6px; margin:9px 0; }
.checksum { display:block; word-break:break-all; padding:9px 10px; border-radius:11px; background:#262b27; color:#e7ece8; font:9px/1.5 ui-monospace,monospace; }
.gate-detail { display:grid; gap:12px; }.gate-detail ul { padding-left:20px; }
.positive-state { color:var(--success); }
.check-row { grid-template-columns:auto minmax(0,1fr); align-items:start; }.check-row input { width:auto; margin-top:3px; }

/* Cross-workspace research opportunity market */
.opportunity-hero { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:25px; align-items:center; padding:28px; overflow:hidden; }
.opportunity-hero h1 { margin:5px 0 8px; font:650 clamp(30px,4vw,52px) "Songti SC","STSong",serif; }
.opportunity-hero p { max-width:950px; color:var(--ink-soft); line-height:1.8; }
.opportunity-hero-stats { display:grid; grid-template-columns:repeat(3,minmax(100px,1fr)); gap:8px; }
.opportunity-hero-stats > div { padding:15px; border-radius:18px; background:rgba(255,255,252,.66); text-align:center; }
.opportunity-hero-stats strong,.opportunity-hero-stats span { display:block; }.opportunity-hero-stats strong { font-size:24px; }.opportunity-hero-stats span { margin-top:4px; color:var(--muted); font-size:10px; }
.opportunity-controls { display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:12px; padding:17px; margin-top:18px; }
.opportunity-list { display:grid; gap:18px; margin-top:18px; }
.opportunity-mission { padding:22px; }
.opportunity-mission-head { display:flex; justify-content:space-between; gap:20px; align-items:flex-start; }
.opportunity-mission-head h2 { margin:4px 0 7px; font:650 28px "Songti SC","STSong",serif; }.opportunity-mission-head p { color:var(--ink-soft); max-width:1000px; line-height:1.65; }
.opportunity-mission-meta,.opportunity-disciplines { display:flex; flex-wrap:wrap; gap:6px; }.opportunity-disciplines { margin:10px 0 14px; }
.opportunity-slot-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:13px; }
.opportunity-slot { min-height:230px; padding:15px; border-radius:20px; background:linear-gradient(145deg,rgba(255,255,252,.9),rgba(240,231,210,.56)); box-shadow:var(--shadow-paper); display:flex; flex-direction:column; }
.opportunity-slot.has-application { box-shadow:0 0 0 2px rgba(28,156,146,.16),var(--shadow-paper); }
.opportunity-slot-head { display:flex; justify-content:space-between; gap:10px; align-items:flex-start; }.opportunity-slot h3 { margin:4px 0 8px; }.opportunity-slot p { color:var(--ink-soft); font-size:12px; line-height:1.55; }
.slot-category { color:var(--red); font-size:10px; font-weight:800; letter-spacing:.08em; }.opportunity-slot-actions { margin-top:auto; padding-top:15px; }
.opportunity-footer { display:flex; gap:12px; align-items:center; flex-wrap:wrap; margin-top:16px; color:var(--muted); font-size:11px; }.opportunity-footer .button { margin-left:auto; }
.opportunity-apply-summary,.application-principles { padding:14px; border-radius:16px; background:rgba(255,255,252,.66); }.opportunity-apply-summary p,.application-principles p { color:var(--ink-soft); }
.application-progress-hero { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-bottom:15px; }.application-progress-hero > div { padding:15px; border-radius:17px; background:rgba(255,255,252,.68); text-align:center; }.application-progress-hero strong,.application-progress-hero span { display:block; }.application-progress-hero strong { font-size:22px; }.application-progress-hero span { margin-top:4px; color:var(--muted); font-size:10px; }

@media (max-width:1100px) {
  .mission-hero { grid-template-columns:120px minmax(0,1fr); }.mission-hero-actions { grid-column:1/-1; flex-direction:row; flex-wrap:wrap; }
  .mission-main-grid,.mission-slot-grid,.opportunity-slot-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .opportunity-controls { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:760px) {
  .mission-empty,.mission-hero,.opportunity-hero { grid-template-columns:1fr; }.mission-empty-visual { width:110px; height:110px; }.mission-empty-visual span { font-size:40px; }
  .mission-readiness { width:106px; height:106px; }.mission-main-grid,.mission-slot-grid,.mission-workpackages,.mission-dossier-grid,.opportunity-slot-grid,.opportunity-controls { grid-template-columns:1fr; }
  .mission-phase-track { grid-template-columns:repeat(7,150px); }.mission-hero-actions { flex-direction:column; }
  .opportunity-hero-stats,.application-progress-hero { grid-template-columns:repeat(3,minmax(0,1fr)); }.opportunity-mission-head { flex-direction:column; }.opportunity-footer .button { margin-left:0; }
  .dossier-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:480px) {
  .opportunity-hero-stats,.application-progress-hero { grid-template-columns:1fr; }
}
.dossier-recommendations { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; margin:12px 0; }
.dossier-recommendations > div { padding:10px; border-radius:13px; background:rgba(255,255,252,.64); }
.dossier-recommendations strong,.dossier-recommendations span,.dossier-recommendations small { display:block; }
.dossier-recommendations strong { color:var(--muted); font-size:9px; }.dossier-recommendations span { margin-top:4px; font-weight:760; }.dossier-recommendations small { margin-top:3px; color:var(--muted); font-size:9px; line-height:1.4; }
.credit-role-cloud { display:flex; align-items:center; flex-wrap:wrap; gap:6px; margin:11px 0; }.credit-role-cloud > strong { width:100%; font-size:11px; }
.dossier-details { margin:10px 0; padding:10px 12px; border-radius:13px; background:rgba(255,255,252,.58); }.dossier-details summary { cursor:pointer; color:var(--gold-soft); font-size:11px; font-weight:700; }.dossier-details ul { padding-left:18px; }.dossier-details p,.dossier-details li { color:var(--ink-soft); font-size:10px; line-height:1.55; }
@media(max-width:500px){.dossier-recommendations{grid-template-columns:1fr}}

/* Production agent fabric */
.feature-card { position: relative; overflow: hidden; }
.feature-card::after { content:''; position:absolute; inset:auto -30% -65% 30%; height:120px; background:radial-gradient(circle,rgba(195,147,65,.12),transparent 65%); pointer-events:none; }
.feature-locked { filter:saturate(.62); opacity:.82; }
.feature-locked::before { content:'LOCKED'; position:absolute; right:14px; bottom:12px; font-size:9px; letter-spacing:.18em; color:var(--muted); }
.agent-stream-log { max-height:460px; overflow:auto; display:grid; gap:8px; }
.stream-event { display:grid; grid-template-columns:minmax(150px,220px) minmax(0,1fr); gap:10px; align-items:start; padding:10px 12px; border-radius:14px; background:rgba(255,255,255,.64); box-shadow:inset 0 1px 0 rgba(255,255,255,.95); }
.stream-event > span { color:var(--gold-soft); font-size:11px; font-weight:800; overflow-wrap:anywhere; }
.stream-event pre { margin:0; white-space:pre-wrap; overflow-wrap:anywhere; font:11px/1.55 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; color:var(--text-soft); }
@media (max-width:720px){ .stream-event{grid-template-columns:1fr;} }

.feature-locked {
  opacity: .68;
  background: linear-gradient(180deg, rgba(255,255,255,.44), rgba(238,232,224,.48));
  cursor: not-allowed;
}
.feature-locked input { cursor: not-allowed; }
.feature-locked strong { color: var(--muted); }
.feature-locked small { color: #9a746d; line-height: 1.45; }

/* --------------------------------------------------------------------------
   Opportunity & Agency layer · 0.8
   -------------------------------------------------------------------------- */
.growth-loading { min-height: 60vh; display: grid; place-items: center; }
.growth-hero {
  min-height: 360px; padding: clamp(28px, 5vw, 66px); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); gap: 34px; align-items: center;
  overflow: hidden; position: relative;
  background:
    radial-gradient(circle at 88% 18%, rgba(199,151,67,.24), transparent 27%),
    radial-gradient(circle at 12% 110%, rgba(179,49,41,.13), transparent 35%),
    linear-gradient(135deg, rgba(255,255,255,.94), rgba(249,240,225,.82));
}
.growth-hero::after { content:""; position:absolute; inset:auto -12% -60% auto; width:480px; height:480px; border-radius:50%; border:1px solid rgba(199,151,67,.16); box-shadow:0 0 0 54px rgba(199,151,67,.025),0 0 0 108px rgba(179,49,41,.018); }
.growth-hero-copy { position: relative; z-index: 2; }
.growth-hero h1 { font-size: clamp(34px, 5vw, 68px); line-height: 1.02; letter-spacing: -.055em; margin: 18px 0; max-width: 900px; }
.growth-hero h1 span { display:block; color: var(--gold-soft); }
.growth-hero p { font-size: 16px; line-height: 1.85; max-width: 780px; color: var(--text-soft); }
.growth-hero-actions { display:flex; gap:10px; flex-wrap:wrap; margin-top:22px; }
.growth-pulse { position:relative; width:min(360px,100%); aspect-ratio:1; margin:auto; z-index:2; }
.growth-pulse-core { position:absolute; inset:29%; border-radius:50%; display:grid; place-items:center; align-content:center; background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(245,231,207,.94)); box-shadow:0 28px 65px rgba(154,112,49,.22), inset 0 1px 0 rgba(255,255,255,.98); z-index:3; }
.growth-pulse-core strong { font-size:44px; letter-spacing:-.06em; color:var(--gold-soft); }
.growth-pulse-core span { font-size:12px; color:var(--muted); }
.growth-pulse-ring { position:absolute; border-radius:50%; border:1px solid rgba(199,151,67,.23); animation:growthOrbit 18s linear infinite; }
.growth-pulse-ring.ring-a { inset:11%; }
.growth-pulse-ring.ring-b { inset:2%; animation-duration:26s; animation-direction:reverse; border-color:rgba(179,49,41,.14); }
.growth-pulse-ring::before,.growth-pulse-ring::after { content:""; position:absolute; width:9px; height:9px; border-radius:50%; background:linear-gradient(135deg,var(--gold),var(--red)); box-shadow:0 0 18px rgba(199,151,67,.65); }
.growth-pulse-ring::before { top:8%; left:24%; }
.growth-pulse-ring::after { right:7%; bottom:27%; background:linear-gradient(135deg,var(--teal),var(--blue)); }
@keyframes growthOrbit { to { transform:rotate(360deg); } }
.growth-pulse-label { position:absolute; padding:10px 12px; border-radius:16px; background:rgba(255,255,255,.8); box-shadow:0 14px 28px rgba(91,66,40,.09), inset 0 1px 0 rgba(255,255,255,.95); min-width:110px; text-align:center; }
.growth-pulse-label b { display:block; font-size:19px; }
.growth-pulse-label span { display:block; color:var(--muted); font-size:10px; margin-top:2px; }
.growth-pulse-label.label-a { left:-3%; top:18%; }
.growth-pulse-label.label-b { right:-3%; top:35%; }
.growth-pulse-label.label-c { left:10%; bottom:4%; }
.growth-workspace-row { display:flex; gap:12px; align-items:center; justify-content:space-between; margin:18px 0; }
.growth-tabs { flex:1; margin:0; overflow-x:auto; flex-wrap:nowrap; }
.growth-tabs .tab { white-space:nowrap; }
.growth-principles { margin-top:30px; display:flex; flex-wrap:wrap; gap:9px; }
.growth-principles span { padding:9px 12px; border-radius:999px; background:rgba(255,255,255,.58); color:var(--muted); font-size:11px; box-shadow:inset 0 1px 0 rgba(255,255,255,.9); display:inline-flex; align-items:center; gap:6px; }
.growth-overview-grid { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(320px,.8fr); gap:18px; align-items:start; }
.growth-overview-grid.lower { margin-top:24px; }
.growth-today,.growth-strength { padding:22px; }
.growth-action-list { display:grid; gap:10px; }
.growth-action { display:grid; grid-template-columns:46px minmax(0,1fr) auto; gap:12px; align-items:center; padding:14px; border-radius:18px; background:rgba(255,255,255,.64); box-shadow:inset 0 1px 0 rgba(255,255,255,.94),0 10px 24px rgba(100,74,45,.055); transition:.18s ease; }
.growth-action:hover { transform:translateY(-2px); box-shadow:0 18px 34px rgba(199,151,67,.13),inset 0 1px 0 rgba(255,255,255,.96); }
.growth-action>span { font:700 17px/1 ui-monospace,monospace; color:var(--gold-soft); }
.growth-action strong,.growth-action small { display:block; }
.growth-action small { margin-top:4px; color:var(--muted); line-height:1.45; }
.strength-bars { display:grid; gap:13px; }
.strength-row>div:first-child { display:flex; justify-content:space-between; gap:10px; font-size:12px; }
.strength-row span { color:var(--text-soft); }
.strength-row b { color:var(--gold-soft); }
.strength-track { height:8px; border-radius:999px; background:rgba(43,39,34,.07); overflow:hidden; margin-top:7px; }
.strength-track i { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,var(--red),var(--gold),var(--teal)); box-shadow:0 0 12px rgba(199,151,67,.24); }
.growth-note { margin-top:16px; padding:12px 14px; border-radius:15px; background:rgba(199,151,67,.07); color:var(--muted); font-size:11px; line-height:1.6; }
.growth-opportunity-card { padding:19px; display:flex; flex-direction:column; min-height:390px; position:relative; overflow:hidden; }
.growth-opportunity-card::after { content:""; position:absolute; width:160px; height:160px; border-radius:50%; right:-90px; top:-90px; background:radial-gradient(circle,rgba(199,151,67,.12),transparent 68%); }
.growth-opportunity-card.locked { opacity:.78; }
.growth-card-top { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; }
.opportunity-type,.resource-card-head>span { text-transform:uppercase; letter-spacing:.12em; color:var(--gold-soft); font-size:10px; font-weight:800; }
.fit-disc { width:58px; height:58px; flex:0 0 auto; border-radius:50%; display:grid; place-items:center; align-content:center; background:conic-gradient(var(--gold) calc(var(--fit, .7)*360deg),rgba(43,39,34,.06) 0); position:relative; box-shadow:0 8px 20px rgba(199,151,67,.12); }
.fit-disc::before { content:""; position:absolute; inset:5px; border-radius:inherit; background:#fffaf3; }
.fit-disc strong,.fit-disc small { position:relative; z-index:1; display:block; text-align:center; }
.fit-disc strong { font-size:14px; }
.fit-disc small { font-size:8px; color:var(--muted); }
.fit-disc.large { width:90px; height:90px; }
.fit-disc.large strong { font-size:22px; }
.growth-opportunity-card h3 { font-size:20px; line-height:1.25; margin:14px 0 8px; }
.growth-opportunity-card>p { color:var(--text-soft); line-height:1.65; min-height:66px; }
.growth-value { padding:12px 14px; border-radius:16px; background:linear-gradient(135deg,rgba(199,151,67,.08),rgba(179,49,41,.045)); margin:12px 0; }
.growth-value strong { display:block; font-size:16px; color:var(--gold-soft); }
.growth-value span { display:block; margin-top:4px; color:var(--muted); font-size:11px; line-height:1.5; }
.growth-reasons { padding-left:18px; color:var(--text-soft); font-size:12px; line-height:1.6; }
.growth-reasons li::marker { color:var(--gold); }
.growth-missing { padding:9px 11px; border-radius:12px; background:rgba(179,49,41,.06); color:#9b3a32; font-size:11px; margin-top:8px; }
.growth-card-actions { margin-top:auto; padding-top:14px; display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.growth-card-actions .help { flex:1; }
.opportunity-detail-head { display:grid; grid-template-columns:auto minmax(0,1fr); gap:20px; align-items:start; margin-bottom:18px; }
.opportunity-detail-head h2 { margin:10px 0 6px; font-size:27px; }
.opportunity-detail-head p { color:var(--text-soft); line-height:1.65; }
.application-principles { padding:12px 14px; border-radius:15px; background:rgba(28,156,146,.07); color:var(--text-soft); }
.application-principles p { margin:5px 0 0; line-height:1.6; }
.growth-step-mini { display:grid; gap:10px; margin:12px 0 18px; }
.growth-step { display:grid; grid-template-columns:34px minmax(0,1fr); gap:10px; align-items:start; }
.growth-step i { width:30px; height:30px; border-radius:50%; display:grid; place-items:center; background:rgba(199,151,67,.1); color:var(--gold-soft); font-style:normal; font-weight:800; }
.growth-step.completed i { background:rgba(43,151,100,.12); color:var(--success); }
.growth-step strong,.growth-step small { display:block; }
.growth-step small { margin-top:3px; color:var(--muted); line-height:1.5; }
.growth-progress-number { font-size:28px; color:var(--gold-soft); }
.growth-filter { padding:16px; display:grid; grid-template-columns:1.4fr .8fr .8fr; gap:12px; margin-bottom:18px; }
.growth-path-head { display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:20px; align-items:center; padding:24px; }
.growth-path-head h2 { margin:6px 0; font-size:28px; }
.growth-path-head p { color:var(--text-soft); }
.growth-progress { width:92px; height:92px; border-radius:50%; display:grid; place-items:center; align-content:center; background:linear-gradient(145deg,#fff,#f3e4ce); box-shadow:0 18px 36px rgba(199,151,67,.14); }
.growth-progress strong { font-size:24px; color:var(--gold-soft); }
.growth-progress span { font-size:10px; color:var(--muted); }
.growth-path-timeline { margin-top:22px; display:grid; gap:0; }
.growth-path-step { display:grid; grid-template-columns:64px minmax(0,1fr); min-height:210px; position:relative; }
.path-axis { position:relative; display:grid; justify-items:center; }
.path-axis::after { content:""; position:absolute; top:42px; bottom:-2px; width:2px; background:linear-gradient(var(--gold),rgba(199,151,67,.08)); }
.growth-path-step:last-child .path-axis::after { display:none; }
.path-axis i { width:42px; height:42px; border-radius:50%; display:grid; place-items:center; background:linear-gradient(145deg,#fff,#f0dfc6); color:var(--gold-soft); font-style:normal; font-weight:800; box-shadow:0 12px 26px rgba(199,151,67,.15); z-index:1; }
.growth-path-step.completed .path-axis i { background:linear-gradient(145deg,#eaf8f0,#d1ecde); color:var(--success); }
.growth-path-step>.window-panel { padding:20px; margin-bottom:18px; }
.growth-step-head { display:flex; justify-content:space-between; gap:12px; }
.growth-step-head span { color:var(--gold-soft); text-transform:uppercase; font-size:10px; letter-spacing:.12em; }
.growth-step-head h3 { margin:5px 0 0; font-size:21px; }
.growth-step-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin:14px 0; }
.growth-step-grid>div { padding:11px; border-radius:14px; background:rgba(255,255,255,.62); }
.growth-step-grid strong,.growth-step-grid span { display:block; }
.growth-step-grid strong { font-size:10px; color:var(--muted); text-transform:uppercase; letter-spacing:.08em; }
.growth-step-grid span { margin-top:4px; color:var(--text-soft); font-size:11px; line-height:1.45; }
.growth-completed { color:var(--success); font-size:12px; }
.resource-pass-hero,.curiosity-hero,.unlock-hero { padding:25px; display:flex; justify-content:space-between; gap:24px; align-items:center; margin-bottom:20px; }
.resource-pass-hero h2,.curiosity-hero h2,.unlock-hero h2 { margin:7px 0; font-size:28px; }
.resource-pass-hero p,.curiosity-hero p,.unlock-hero p { color:var(--text-soft); max-width:900px; line-height:1.65; }
.resource-pass-seal { width:86px; height:86px; border-radius:50%; flex:0 0 auto; display:grid; place-items:center; align-content:center; background:linear-gradient(145deg,#b33129,#d55b42); color:#fff7e9; font:800 22px/1.1 serif; box-shadow:0 18px 35px rgba(179,49,41,.22); }
.resource-card { padding:20px; min-height:390px; display:flex; flex-direction:column; }
.resource-icon { width:48px; height:48px; border-radius:17px; display:grid; place-items:center; background:linear-gradient(145deg,rgba(199,151,67,.15),rgba(28,156,146,.08)); color:var(--gold-soft); font:800 20px/1 serif; margin-bottom:10px; }
.resource-card-head { display:flex; gap:8px; align-items:center; justify-content:space-between; }
.resource-card h3 { font-size:20px; margin:12px 0 7px; }
.resource-card p { color:var(--text-soft); line-height:1.6; }
.resource-card ul { padding-left:18px; color:var(--text-soft); font-size:12px; }
.resource-capacity { display:flex; align-items:baseline; gap:4px; margin:10px 0; }
.resource-capacity strong { font-size:30px; color:var(--gold-soft); }
.resource-capacity span { color:var(--muted); font-size:11px; }
.curiosity-card { padding:20px; min-height:420px; display:flex; flex-direction:column; overflow:hidden; position:relative; }
.curiosity-signal { display:flex; align-items:center; gap:8px; color:var(--gold-soft); font-size:10px; text-transform:uppercase; letter-spacing:.1em; }
.curiosity-signal i { width:10px; height:10px; border-radius:50%; background:linear-gradient(135deg,var(--gold),var(--red)); box-shadow:0 0 16px rgba(199,151,67,.5); animation:curiosityPulse 2.2s infinite; }
.curiosity-signal b { margin-left:auto; font-size:13px; color:var(--text); }
@keyframes curiosityPulse { 50%{transform:scale(1.45);opacity:.55;} }
.curiosity-card h3 { font-size:21px; margin:14px 0 8px; }
.curiosity-card>p { color:var(--text-soft); line-height:1.65; }
.curiosity-card blockquote { margin:12px 0; padding:12px 14px; border-left:3px solid rgba(179,49,41,.45); background:rgba(179,49,41,.04); color:var(--text-soft); line-height:1.55; }
.curiosity-card>.button { margin-top:auto; align-self:flex-start; }
.plan-seal { min-width:120px; padding:18px; border-radius:22px; text-align:center; background:linear-gradient(145deg,#fff,#f0dfc6); box-shadow:0 18px 34px rgba(199,151,67,.14); }
.plan-seal small,.plan-seal strong { display:block; }
.plan-seal small { color:var(--muted); }
.plan-seal strong { margin-top:4px; font-size:24px; color:var(--gold-soft); text-transform:uppercase; }
.unlock-columns { display:grid; grid-template-columns:1fr 1fr; gap:22px; }
.unlock-list { display:grid; gap:10px; }
.unlock-card { padding:15px 16px; border-radius:18px; display:flex; justify-content:space-between; gap:14px; background:rgba(255,255,255,.64); box-shadow:inset 0 1px 0 rgba(255,255,255,.94),0 10px 24px rgba(100,74,45,.05); }
.unlock-card.locked { background:rgba(245,239,231,.58); }
.unlock-card span { color:var(--gold-soft); font-size:9px; text-transform:uppercase; letter-spacing:.12em; }
.unlock-card h3 { margin:5px 0; font-size:15px; }
.unlock-card p { margin:0; color:var(--muted); font-size:11px; line-height:1.5; }
.unlock-card>div:last-child { text-align:right; min-width:100px; }
.unlock-card small { display:block; margin-top:6px; color:var(--muted); font-size:9px; }
.strength-proof-ledger { padding:20px; margin-top:22px; }
.strength-proof-ledger h2 { margin-top:0; }
.strength-proof-ledger .grid>div { padding:14px; border-radius:15px; background:rgba(255,255,255,.6); }
.strength-proof-ledger strong,.strength-proof-ledger span { display:block; }
.strength-proof-ledger strong { font-size:24px; color:var(--gold-soft); }
.strength-proof-ledger span { margin-top:4px; color:var(--muted); font-size:10px; }
.dashboard-growth-strip { margin:18px 0 0; padding:18px 20px; display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:18px; align-items:center; background:linear-gradient(135deg,rgba(255,255,255,.88),rgba(249,238,219,.72)); }
.dashboard-growth-score { width:82px; height:82px; border-radius:50%; display:grid; place-items:center; align-content:center; background:linear-gradient(145deg,#fff,#f0dfc7); box-shadow:0 15px 30px rgba(199,151,67,.14); }
.dashboard-growth-score strong { font-size:22px; color:var(--gold-soft); }
.dashboard-growth-score span { font-size:9px; color:var(--muted); }
.dashboard-growth-copy h2 { margin:5px 0; font-size:20px; }
.dashboard-growth-copy p { margin:0; color:var(--text-soft); }
.dashboard-growth-actions { display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; }

@media (max-width: 1100px) {
  .growth-hero { grid-template-columns:1fr; }
  .growth-pulse { max-width:320px; }
  .growth-overview-grid,.unlock-columns { grid-template-columns:1fr; }
  .growth-step-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .dashboard-growth-strip { grid-template-columns:auto minmax(0,1fr); }
  .dashboard-growth-actions { grid-column:1/-1; justify-content:flex-start; }
}
@media (max-width: 760px) {
  .growth-hero { min-height:auto; padding:24px 18px; }
  .growth-hero h1 { font-size:38px; }
  .growth-pulse { width:270px; }
  .growth-pulse-label { transform:scale(.86); }
  .growth-workspace-row { display:grid; }
  .growth-filter { grid-template-columns:1fr; }
  .growth-path-head { grid-template-columns:1fr auto; }
  .growth-path-head>.button { grid-column:1/-1; }
  .growth-path-step { grid-template-columns:46px minmax(0,1fr); }
  .growth-step-grid { grid-template-columns:1fr; }
  .resource-pass-hero,.curiosity-hero,.unlock-hero { align-items:flex-start; }
  .resource-pass-seal,.plan-seal { display:none; }
  .opportunity-detail-head { grid-template-columns:1fr; }
  .dashboard-growth-strip { grid-template-columns:1fr; }
  .dashboard-growth-score { width:70px; height:70px; }
}
@media (prefers-reduced-motion: reduce) {
  .growth-pulse-ring,.curiosity-signal i { animation:none !important; }
}

/* 0.8.0 Opportunity & Agency operational workspace */
.growth-filter { grid-template-columns:minmax(220px,1.3fr) minmax(150px,.7fr) minmax(160px,.7fr) auto; align-items:end; }
.growth-filter-action { min-width:180px; display:flex; justify-content:flex-end; align-items:center; }
.resource-pass-actions { display:flex; align-items:center; gap:15px; }
.my-growth-head,.manage-growth-head { padding:25px; display:flex; justify-content:space-between; gap:22px; align-items:center; margin-bottom:20px; }
.my-growth-head h2,.manage-growth-head h2 { margin:6px 0; font-size:28px; }
.my-growth-head p,.manage-growth-head p { max-width:860px; color:var(--text-soft); line-height:1.65; }
.my-engagement-list,.manage-application-list,.manage-resource-list { display:grid; gap:15px; }
.engagement-card,.manage-application,.manage-resource { padding:20px; }
.engagement-card.completed { background:linear-gradient(145deg,rgba(255,255,255,.9),rgba(232,248,239,.75)); }
.engagement-card.outcome_submitted { background:linear-gradient(145deg,rgba(255,255,255,.9),rgba(245,235,216,.82)); }
.engagement-card-head,.manage-application-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.engagement-card-head span,.manage-application-head span { color:var(--gold-soft); font-size:10px; letter-spacing:.09em; text-transform:uppercase; }
.engagement-card-head h3,.manage-application-head h3 { margin:5px 0 0; font-size:19px; }
.engagement-flow { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:0; margin:20px 0; position:relative; }
.engagement-flow::before { content:""; position:absolute; left:7%; right:7%; top:14px; height:2px; background:rgba(125,106,82,.11); }
.engagement-flow i { position:relative; z-index:1; display:grid; justify-items:center; gap:5px; font-style:normal; color:var(--muted); }
.engagement-flow i b { width:29px; height:29px; border-radius:50%; display:grid; place-items:center; background:#f1eadf; box-shadow:0 5px 12px rgba(90,68,42,.08); font-size:10px; }
.engagement-flow i span { font-size:9px; text-align:center; }
.engagement-flow i.reached { color:var(--gold-soft); }
.engagement-flow i.reached b { background:linear-gradient(145deg,#fff5dc,#e5bd6d); color:#744f15; }
.grid.compact { gap:9px; margin:12px 0; }
.grid.compact>div { padding:10px 12px; border-radius:13px; background:rgba(255,255,255,.58); }
.grid.compact small,.grid.compact strong { display:block; }
.grid.compact small { color:var(--muted); font-size:9px; }
.grid.compact strong { margin-top:4px; font-size:12px; }
.outcome-summary,.outcome-review { margin:14px 0; padding:13px 15px; border-radius:15px; background:rgba(28,156,146,.07); }
.outcome-summary small,.outcome-review>strong { color:var(--teal); font-size:10px; text-transform:uppercase; letter-spacing:.08em; }
.outcome-summary p,.outcome-review p { color:var(--text-soft); line-height:1.6; }
.outcome-summary>strong { color:var(--success); }
.resource-request-card { padding:18px; min-height:220px; }
.resource-request-card>div { display:flex; justify-content:space-between; gap:8px; align-items:center; }
.resource-request-card h3 { margin:13px 0 7px; }
.resource-request-card p { color:var(--text-soft); line-height:1.55; }
.resource-request-card small { color:var(--muted); }
.resource-request-card blockquote,.manage-application blockquote { margin:12px 0 0; padding:10px 13px; border-left:3px solid rgba(199,151,67,.48); background:rgba(199,151,67,.06); color:var(--text-soft); }
.proof-pills { display:flex; flex-wrap:wrap; gap:6px; margin:12px 0; }
.proof-pills span { padding:6px 9px; border-radius:999px; background:rgba(66,122,223,.08); color:#315ea8; font-size:9px; }
.manage-application .form-actions,.manage-resource .form-actions { justify-content:flex-start; margin-top:14px; }
.manage-resource .dimension-bars { max-width:760px; }
.manage-resource-list { grid-template-columns:repeat(auto-fit,minmax(320px,1fr)); }
.fit-disc { background:conic-gradient(var(--gold) var(--fit,70%),rgba(125,106,82,.1) 0); }
.fit-disc::before { content:""; position:absolute; inset:5px; border-radius:50%; background:rgba(255,254,250,.97); z-index:-1; }
.toolbar-pills { display:flex; flex-wrap:wrap; gap:8px; }

@media (max-width:1100px) {
  .growth-filter { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .growth-filter-action { justify-content:flex-start; }
}
@media (max-width:760px) {
  .my-growth-head,.manage-growth-head { align-items:flex-start; flex-direction:column; }
  .growth-filter { grid-template-columns:1fr; }
  .engagement-flow { overflow-x:auto; grid-template-columns:repeat(5,100px); padding-bottom:6px; }
  .engagement-card-head,.manage-application-head { flex-direction:column; }
  .resource-pass-actions { width:100%; justify-content:flex-start; }
  .manage-resource-list { grid-template-columns:1fr; }
}

/* --------------------------------------------------------------------------
   0.9.0 Human-centered experience layer
   -------------------------------------------------------------------------- */
.network-banner {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1500;
  min-height: 42px;
  padding: 9px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #6e241d;
  background: rgba(255, 238, 228, .96);
  box-shadow: 0 8px 26px rgba(90, 45, 24, .12);
  backdrop-filter: blur(18px);
}
.network-banner[hidden] { display: none; }
.network-banner strong { font-size: 12px; }
.network-banner span { color: #8d5248; font-size: 11px; }
body.network-offline .app-shell { padding-top: 42px; }

.tenant-select-wrap {
  display: grid;
  gap: 6px;
  padding: 0 8px 8px;
}
.tenant-select-wrap > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.tenant-select-wrap select { font-size: 12px; padding: 9px 10px; }
.nav-label-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.nav-mini-action {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 9px;
  color: var(--gold-soft);
  background: rgba(255,255,255,.66);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95);
}
.workspace-nav-list { display: grid; gap: 6px; }
.nav-item-text { min-width: 0; flex: 1; }
.nav-item-text b,
.nav-item-text small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-item-text b { font-size: 12px; font-weight: 720; }
.nav-item-text small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.nav-count {
  min-width: 20px;
  padding: 3px 6px;
  border-radius: 999px;
  color: #8c5b16;
  background: rgba(195,147,65,.12);
  font-size: 9px;
  font-style: normal;
  text-align: center;
}
.advanced-nav { display: grid; gap: 6px; }
.advanced-nav-toggle {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto auto;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  background: rgba(255,255,255,.28);
  text-align: left;
}
.advanced-nav-toggle > span { font-size: 11px; font-weight: 760; }
.advanced-nav-toggle > small { color: var(--muted); font-size: 9px; }
.advanced-nav-toggle svg { transition: transform .18s ease; }
.advanced-nav.open .advanced-nav-toggle svg { transform: rotate(90deg); }
.advanced-nav-content { display: none; gap: 6px; }
.advanced-nav.open .advanced-nav-content { display: grid; }
.sidebar-insight {
  padding: 12px 13px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255,255,255,.72), rgba(247,238,226,.62));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.96), 0 12px 24px rgba(95,70,40,.05);
}
.sidebar-insight span,
.sidebar-insight strong,
.sidebar-insight small { display: block; }
.sidebar-insight span { color: var(--muted); font-size: 9px; }
.sidebar-insight strong { margin-top: 4px; color: var(--gold-soft); font-size: 14px; }
.sidebar-insight small { margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.user-meta-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.topbar-leading { min-width: 0; display: flex; align-items: center; gap: 10px; }
.command-trigger {
  min-width: 200px;
  height: 40px;
  border: 0;
  border-radius: 14px;
  padding: 0 9px 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  background: rgba(255,255,255,.65);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.96), 0 10px 22px rgba(99,73,44,.05);
}
.command-trigger span { flex: 1; text-align: left; font-size: 11px; }
kbd {
  padding: 3px 6px;
  border-radius: 7px;
  color: var(--muted);
  background: rgba(120,100,76,.08);
  font: 9px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
  box-shadow: inset 0 -1px 0 rgba(70,50,30,.08);
}

.mobile-bottom-nav { display: none; }

.window-panel {
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(255,255,255,.9), rgba(250,242,232,.76));
  box-shadow: 0 24px 60px rgba(101,75,44,.09), inset 0 1px 0 rgba(255,255,255,.97);
}
.eyebrow {
  color: var(--gold-soft);
  font-size: 9px;
  font-weight: 820;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.text-button {
  border: 0;
  padding: 0;
  color: var(--gold-soft);
  background: transparent;
  font-size: 11px;
  text-decoration: underline;
  text-decoration-color: rgba(195,147,65,.3);
  text-underline-offset: 3px;
}
.inline-error,
.inline-notice {
  margin: 14px 0;
  padding: 14px 16px;
  border-radius: 16px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: rgba(195,74,64,.08);
  color: #8f332c;
}
.inline-notice { background: rgba(195,147,65,.09); color: #795719; }
.inline-error strong,
.inline-notice strong { white-space: nowrap; }
.inline-error p,
.inline-notice span { margin: 0; color: inherit; line-height: 1.55; }
.error-state {
  min-height: 440px;
  padding: 46px 24px;
  display: grid;
  justify-items: center;
  align-content: center;
  text-align: center;
}
.error-state h2 { margin: 16px 0 8px; }
.error-state p { max-width: 680px; color: var(--text-soft); line-height: 1.65; }
.error-state .form-actions { justify-content: center; }
.error-unlock { margin-top: 12px; color: var(--gold-soft); font-size: 11px; }
.empty-actions { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }

/* Intent launcher */
.intent-launcher { display: grid; gap: 18px; }
.intent-intro { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 16px; align-items: center; }
.intent-intro h3 { margin: 0 0 6px; font-size: 21px; }
.intent-intro p { margin: 0; color: var(--text-soft); line-height: 1.6; }
.intent-orb {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #8a5a15;
  background: radial-gradient(circle at 35% 28%, #fff, #ead09d 46%, #c8923d 100%);
  box-shadow: 0 14px 34px rgba(195,147,65,.22), inset 0 1px 0 rgba(255,255,255,.9);
}
.intent-form { display: grid; gap: 12px; }
.intent-form textarea { min-height: 150px; font-size: 15px; }
.intent-presets { display: flex; gap: 8px; flex-wrap: wrap; }
.intent-presets button {
  border: 0;
  border-radius: 999px;
  padding: 8px 11px;
  color: var(--text-soft);
  background: rgba(255,255,255,.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.97), 0 8px 18px rgba(91,68,43,.04);
  font-size: 10px;
}
.intent-result-card {
  padding: 20px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255,255,255,.88), rgba(239,248,244,.76));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.98), 0 16px 34px rgba(55,116,99,.08);
}
.intent-result-card h3 { margin: 7px 0; font-size: 21px; }
.intent-result-card p { color: var(--text-soft); line-height: 1.62; }
.intent-result-card small { display: block; margin-top: 12px; color: var(--muted); }
.intent-result-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Global search and command palette */
.command-palette { display: grid; gap: 10px; }
.command-input-wrap {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 16px;
  background: rgba(255,255,255,.76);
  box-shadow: 0 12px 28px rgba(100,75,46,.06), inset 0 1px 0 rgba(255,255,255,.98);
}
.command-input-wrap input { padding: 9px 4px; background: transparent; box-shadow: none; }
.command-help { color: var(--muted); font-size: 10px; }
.command-results { max-height: 54vh; overflow: auto; display: grid; gap: 5px; }
.command-result {
  width: 100%;
  border: 0;
  border-radius: 15px;
  padding: 11px 12px;
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  gap: 11px;
  align-items: center;
  color: var(--text);
  background: transparent;
  text-align: left;
}
.command-result:hover,
.command-result.active { background: rgba(255,255,255,.8); box-shadow: 0 10px 22px rgba(100,75,46,.05); }
.command-result-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--gold-soft);
  background: rgba(195,147,65,.09);
}
.command-result-copy { min-width: 0; }
.command-result-copy strong,
.command-result-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.command-result-copy small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.command-result-type { color: var(--muted); font-size: 9px; }
.command-empty { padding: 30px; text-align: center; color: var(--muted); }
.command-footer { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 9px; }
.command-footer .text-button { margin-left: auto; }

/* Human-centered home */
.human-home-hero {
  min-height: 310px;
  padding: clamp(24px, 4vw, 48px);
  display: grid;
  grid-template-columns: minmax(0,1.4fr) minmax(300px,.7fr);
  gap: 28px;
  align-items: center;
  overflow: hidden;
  position: relative;
}
.human-home-hero::before {
  content: '';
  position: absolute;
  width: 440px;
  height: 440px;
  right: -140px;
  top: -230px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(195,147,65,.16), rgba(195,147,65,0) 66%);
}
.human-home-copy { position: relative; z-index: 1; }
.human-home-copy h1 { max-width: 820px; margin: 10px 0 12px; font-size: clamp(34px, 5vw, 66px); line-height: 1.02; letter-spacing: -.055em; }
.human-home-copy > p { max-width: 720px; color: var(--text-soft); font-size: 15px; line-height: 1.75; }
.home-intent-form { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; margin-top: 22px; }
.home-intent-form input { min-height: 50px; font-size: 14px; }
.home-intent-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.home-intent-links button {
  border: 0;
  padding: 6px 0;
  color: var(--gold-soft);
  background: transparent;
  font-size: 10px;
}
.next-action-card {
  position: relative;
  z-index: 1;
  min-height: 230px;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255,255,255,.92), rgba(246,236,220,.8));
  box-shadow: 0 20px 48px rgba(110,78,38,.12), inset 0 1px 0 rgba(255,255,255,.98);
}
.next-action-mark {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: #825716;
  background: linear-gradient(145deg, #fff, #e6c98f);
}
.next-action-card h2 { margin: 16px 0 7px; font-size: 22px; }
.next-action-card p { color: var(--text-soft); line-height: 1.58; }
.next-action-card .button { margin-top: 8px; }
.home-grid-main { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(300px,.72fr); gap: 18px; margin-top: 18px; }
.home-grid-secondary { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-top: 18px; }
.home-section { padding: 21px; }
.home-section .section-title { margin: 0 0 14px; }
.home-action-list { display: grid; gap: 9px; }
.home-action {
  border: 0;
  border-radius: 17px;
  padding: 12px;
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  gap: 12px;
  align-items: center;
  color: inherit;
  background: rgba(255,255,255,.62);
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.96), 0 10px 20px rgba(99,73,44,.04);
}
.home-action:hover { transform: translateY(-1px); background: rgba(255,255,255,.82); }
.home-action-icon {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: var(--gold-soft);
  background: rgba(195,147,65,.09);
}
.home-action-copy { min-width: 0; }
.home-action-copy strong { display: block; }
.home-action-copy small { display: block; margin-top: 3px; color: var(--muted); line-height: 1.4; }
.home-action-end { display: flex; gap: 6px; align-items: center; }
.onboarding-panel { padding: 21px; }
.onboarding-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.onboarding-head h2 { margin: 4px 0; }
.onboarding-head p { margin: 0; color: var(--text-soft); }
.onboarding-progress { min-width: 66px; text-align: right; }
.onboarding-progress strong { display: block; color: var(--gold-soft); font-size: 24px; }
.onboarding-progress span { color: var(--muted); font-size: 9px; }
.onboarding-steps { display: grid; gap: 8px; margin-top: 15px; }
.onboarding-step {
  padding: 10px 11px;
  border-radius: 14px;
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  gap: 9px;
  align-items: center;
  background: rgba(255,255,255,.58);
}
.onboarding-step.is-done { opacity: .66; }
.onboarding-step b {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: rgba(120,100,76,.08);
  font-size: 10px;
}
.onboarding-step.is-done b { color: white; background: var(--success); }
.onboarding-step strong,
.onboarding-step small { display: block; }
.onboarding-step small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.onboarding-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.home-strength { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 16px; align-items: center; }
.strength-orbit {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--gold) var(--strength,45%), rgba(125,106,82,.09) 0);
  position: relative;
}
.strength-orbit::before { content:''; position:absolute; inset:8px; border-radius:50%; background: #fffdf9; }
.strength-orbit strong,
.strength-orbit small { position: relative; z-index: 1; display: block; text-align: center; }
.strength-orbit strong { font-size: 24px; }
.strength-orbit small { color: var(--muted); font-size: 9px; }
.strength-mini { display: grid; gap: 6px; }
.strength-mini div { display: grid; grid-template-columns: 92px minmax(0,1fr) 34px; gap: 8px; align-items: center; font-size: 9px; }
.strength-mini span { color: var(--muted); }
.strength-mini i { height: 5px; border-radius: 999px; background: rgba(125,106,82,.09); overflow: hidden; }
.strength-mini i::after { content:''; display:block; height:100%; width:var(--value,0%); border-radius:inherit; background: linear-gradient(90deg,var(--teal),var(--gold)); }
.home-opportunity-list { display: grid; gap: 9px; }
.home-opportunity {
  padding: 12px;
  border-radius: 16px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 10px;
  background: rgba(255,255,255,.62);
}
.home-opportunity-copy strong,
.home-opportunity-copy small { display: block; }
.home-opportunity-copy small { margin-top: 3px; color: var(--muted); line-height: 1.4; }
.home-opportunity-score { align-self: start; color: var(--gold-soft); font-size: 16px; font-weight: 800; }
.recent-work-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.recent-work-card { padding: 13px; border-radius: 16px; background: rgba(255,255,255,.62); }
.recent-work-card span { color: var(--gold-soft); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.recent-work-card h3 { margin: 6px 0 4px; font-size: 14px; }
.recent-work-card p { margin: 0; color: var(--muted); font-size: 10px; }
.home-capability-strip { display: flex; gap: 8px; flex-wrap: wrap; }
.home-capability-strip a { padding: 8px 11px; border-radius: 999px; background: rgba(255,255,255,.65); color: var(--text-soft); font-size: 10px; }

/* Unified work center */
.work-hero {
  padding: 26px;
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: center;
}
.work-hero h1 { margin: 6px 0; font-size: clamp(30px,4vw,46px); }
.work-hero p { max-width: 760px; margin: 0; color: var(--text-soft); line-height: 1.65; }
.work-hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.work-metrics { margin-top: 16px; }
.work-toolbar { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin: 20px 0 12px; }
.filter-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.filter-chip {
  border: 0;
  border-radius: 999px;
  padding: 8px 11px;
  color: var(--text-soft);
  background: rgba(255,255,255,.58);
  font-size: 10px;
}
.filter-chip.active { color: #805716; background: rgba(195,147,65,.16); }
.work-view-note { color: var(--muted); font-size: 9px; }
.work-action-list { display: grid; gap: 10px; }
.work-action {
  padding: 14px;
  border-radius: 18px;
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  gap: 13px;
  align-items: center;
  background: rgba(255,255,255,.68);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.96), 0 12px 24px rgba(99,73,44,.05);
}
.work-action.is-blocking { background: linear-gradient(145deg, rgba(255,255,255,.9), rgba(255,235,226,.72)); }
.work-action-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--gold-soft);
  background: rgba(195,147,65,.09);
}
.work-action-main { min-width: 0; }
.work-action-heading { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.work-action-heading h3 { margin: 0; font-size: 15px; }
.work-action-main p { margin: 5px 0 0; color: var(--text-soft); line-height: 1.5; }
.work-action-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 7px; color: var(--muted); font-size: 9px; }
.work-action-controls { display: flex; gap: 7px; align-items: center; }

/* Capability and access center */
.capabilities-hero {
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 22px;
  align-items: center;
}
.capabilities-hero h1 { margin: 6px 0; font-size: clamp(32px,4vw,48px); }
.capabilities-hero p { max-width: 820px; margin: 0; color: var(--text-soft); line-height: 1.68; }
.capability-plan {
  min-width: 160px;
  padding: 17px;
  border-radius: 20px;
  display: grid;
  justify-items: end;
  background: rgba(255,255,255,.68);
}
.capability-plan strong { color: var(--gold-soft); font-size: 24px; }
.capability-plan span,
.capability-plan small { color: var(--muted); font-size: 9px; }
.capability-plan .text-button { margin-top: 8px; }
.capability-tabs button { font: inherit; border: 0; }
.capability-group { margin-top: 22px; }
.capability-list { display: grid; gap: 10px; }
.capability-card {
  padding: 15px;
  border-radius: 19px;
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  gap: 14px;
  align-items: center;
  background: rgba(255,255,255,.7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.97), 0 12px 26px rgba(99,73,44,.05);
}
.capability-card.is-locked { background: rgba(246,241,234,.65); }
.capability-state {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--success);
  background: rgba(43,151,100,.08);
}
.capability-card.is-locked .capability-state { color: var(--warning); background: rgba(206,143,31,.09); }
.capability-copy { min-width: 0; }
.capability-title-row { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.capability-title-row h3 { margin: 0; font-size: 15px; }
.capability-copy > p { margin: 5px 0; color: var(--text-soft); line-height: 1.55; }
.capability-copy > small { color: var(--muted); }
.capability-lock-reason { margin-top: 8px; display: grid; gap: 2px; }
.capability-lock-reason strong { color: #8e671f; font-size: 9px; }
.capability-lock-reason span { color: var(--muted); font-size: 10px; }
.capability-actions { display: flex; gap: 7px; flex-wrap: wrap; justify-content: end; }
.capability-request-summary { padding: 13px; border-radius: 15px; background: rgba(195,147,65,.07); }
.capability-request-summary p { margin: 5px 0 0; color: var(--text-soft); }
.request-list { display: grid; gap: 10px; }
.request-row {
  padding: 15px;
  border-radius: 18px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto auto;
  gap: 14px;
  align-items: center;
  background: rgba(255,255,255,.68);
}
.request-row h3 { margin: 5px 0; font-size: 15px; }
.request-row p { margin: 0; color: var(--text-soft); }
.request-row small { color: var(--muted); }
.request-actions { display: flex; gap: 7px; }
.compact-card-list { display: grid; gap: 9px; }

@media (max-width: 1280px) {
  .command-trigger { min-width: 168px; }
  .command-trigger kbd { display: none; }
  .human-home-hero { grid-template-columns: minmax(0,1fr) 320px; }
}
@media (max-width: 1100px) {
  .human-home-hero,
  .home-grid-main,
  .home-grid-secondary { grid-template-columns: 1fr; }
  .next-action-card { min-height: auto; }
  .capabilities-hero { grid-template-columns: 1fr; }
  .capability-plan { justify-items: start; }
  .work-hero { align-items: flex-start; flex-direction: column; }
  .command-trigger span { display: none; }
  .command-trigger { min-width: 40px; width: 40px; padding: 0; justify-content: center; }
}
@media (max-width: 900px) {
  .page { padding-bottom: 94px; }
  .mobile-bottom-nav {
    position: fixed;
    z-index: 60;
    left: 10px;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    min-height: 62px;
    padding: 7px;
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: 4px;
    border-radius: 22px;
    background: rgba(255,253,249,.88);
    backdrop-filter: blur(22px);
    box-shadow: 0 18px 48px rgba(77,55,33,.18), inset 0 1px 0 rgba(255,255,255,.98);
  }
  .mobile-bottom-nav .nav-item { padding: 7px 3px; display: grid; justify-items: center; gap: 3px; background: transparent; }
  .mobile-bottom-nav .nav-item.active { box-shadow: none; background: rgba(195,147,65,.1); }
  .mobile-bottom-nav .nav-item.active::before { display: none; }
  .mobile-bottom-nav .nav-item-text b { font-size: 9px; }
  .mobile-bottom-nav .nav-item-text small,
  .mobile-bottom-nav .nav-count { display: none; }
  .mobile-bottom-nav .nav-icon { width: auto; }
  .advanced-top-action,
  .workspace-switcher { display: none; }
  .top-actions { margin-left: auto; }
  .home-intent-form { grid-template-columns: 1fr; }
  .human-home-copy h1 { font-size: clamp(34px,10vw,52px); }
  .recent-work-grid { grid-template-columns: 1fr; }
  .capability-card { grid-template-columns: auto minmax(0,1fr); }
  .capability-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .request-row { grid-template-columns: 1fr auto; }
  .request-actions { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .human-home-hero,
  .work-hero,
  .capabilities-hero { padding: 20px 16px; }
  .human-home-hero { min-height: auto; }
  .home-grid-main,
  .home-grid-secondary { gap: 12px; }
  .home-strength { grid-template-columns: 1fr; justify-items: center; }
  .work-toolbar { align-items: flex-start; flex-direction: column; }
  .work-action { grid-template-columns: auto minmax(0,1fr); }
  .work-action-controls { grid-column: 1 / -1; justify-content: flex-start; }
  .work-action-meta { flex-direction: column; gap: 3px; }
  .intent-intro { grid-template-columns: 1fr; }
  .intent-orb { width: 52px; height: 52px; }
  .command-result { grid-template-columns: auto minmax(0,1fr); }
  .command-result-type { display: none; }
  .command-footer > span { display: none; }
  .capability-card { grid-template-columns: 1fr; }
  .capability-state { width: 36px; height: 36px; }
  .capability-actions { grid-column: auto; justify-content: flex-start; }
  .request-row { grid-template-columns: 1fr; }
  .onboarding-head { flex-direction: column; }
  .onboarding-progress { text-align: left; }
  .home-action { grid-template-columns: auto minmax(0,1fr); }
  .home-action-end { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .home-action,
  .nav-item,
  .button,
  .command-result { transition: none !important; }
}

/* 0.9.0 home markup alignment and compact cards */
.home-intent-links a {
  min-width: 160px;
  padding: 9px 11px;
  border-radius: 14px;
  background: rgba(255,255,255,.55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.96);
}
.home-intent-links a strong,
.home-intent-links a small { display: block; }
.home-intent-links a strong { color: var(--gold-soft); font-size: 11px; }
.home-intent-links a small { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.35; }
.next-action-card > small { display: block; margin-top: 12px; color: var(--muted); font-size: 9px; }
.onboarding-step.completed { opacity: .7; }
.onboarding-step i {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: rgba(125,106,82,.08);
  font-size: 10px;
  font-style: normal;
}
.onboarding-step.completed i { color: white; background: var(--success); }
.onboarding-step > span { min-width: 0; }
.onboarding-step > b { color: var(--gold-soft); font-size: 9px; white-space: nowrap; }
.strength-orbit > div { position: relative; z-index: 1; }
.strength-mini i { position: relative; display: block; }
.strength-mini i::after { display: none; }
.strength-mini i b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--teal),var(--gold)); }
.strength-mini em { color: var(--text-soft); font-style: normal; text-align: right; }
.home-opportunity { grid-template-columns: auto minmax(0,1fr) auto; align-items: center; }
.home-opportunity-score { min-width: 56px; text-align: center; }
.home-opportunity-score strong,
.home-opportunity-score span { display: block; }
.home-opportunity-score span { margin-top: 2px; color: var(--muted); font-size: 8px; }
.home-opportunity-copy h3 { margin: 7px 0 4px; font-size: 14px; }
.home-opportunity-copy p { margin: 0; color: var(--text-soft); font-size: 11px; line-height: 1.5; }
.home-opportunity-copy small { margin-top: 4px; }
.recent-work-card footer { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; color: var(--muted); font-size: 9px; }
.recent-work-card footer b { color: var(--gold-soft); }
.compact-card-list a {
  padding: 11px 12px;
  border-radius: 15px;
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  gap: 10px;
  align-items: center;
  background: rgba(255,255,255,.62);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.96),0 9px 18px rgba(99,73,44,.04);
}
.compact-card-list a > span:first-child { color: var(--gold-soft); }
.compact-card-list a strong,
.compact-card-list a small { display: block; }
.compact-card-list a small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.compact-card-list a > b { color: var(--gold-soft); }
.home-capability-strip {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 19px;
  align-items: center;
  background: rgba(255,255,255,.62);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.96), 0 12px 26px rgba(99,73,44,.05);
}
.home-capability-strip > div { min-width: 92px; }
.home-capability-strip strong,
.home-capability-strip span { display: block; }
.home-capability-strip strong { font-size: 18px; color: var(--gold-soft); }
.home-capability-strip span { color: var(--muted); font-size: 9px; }
.home-capability-strip .button { margin-left: auto; }
.work-action-controls a { text-decoration: none; }
@media (max-width: 680px) {
  .home-opportunity { grid-template-columns: auto minmax(0,1fr); }
  .home-opportunity > .button { grid-column: 1 / -1; justify-self: start; }
  .home-capability-strip .button { margin-left: 0; width: 100%; }
}
.explanations-off .nav-item-text small,
.explanations-off .sidebar-insight small { display: none; }
.toggle-row { display: flex !important; grid-template-columns: auto minmax(0,1fr) !important; align-items: center; }
.toggle-row input { width: auto; }
.project-progressive-tabs { align-items: center; }
.project-more-tabs {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 9px;
}
.project-more-tabs select { width: auto; min-width: 126px; padding: 8px 10px; font-size: 10px; }
@media (max-width:680px) {
  .project-more-tabs { width: 100%; margin-left: 0; }
  .project-more-tabs select { flex: 1; }
}
body.modal-open { overflow: hidden; }

/* 0.9.1 real-use audit refinements --------------------------------------- */
.main,.page,#project-tab { min-width:0; }
.mode-guided .window-static,
.mode-standard .window-static {
  transform:none !important;
  width:auto !important;
  height:auto !important;
  min-width:0;
  min-height:0;
  resize:none !important;
  overflow:visible;
}
.mode-guided .window-static > .window-auto-titlebar,
.mode-standard .window-static > .window-auto-titlebar,
.mode-guided .window-static .window-controls,
.mode-standard .window-static .window-controls { display:none !important; }
.mode-guided .human-home-hero.window-static,
.mode-standard .human-home-hero.window-static { overflow:hidden !important; }
.nav-mini-action { width:36px; height:36px; border-radius:12px; }
.filter-chip { min-height:36px; padding:8px 12px; }
.button,.icon-button,.text-button,.tab { min-height:38px; }
.text-button { padding:7px 4px; }

/* Compact first-value home */
.human-home-hero { min-height:270px; grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr); }
.human-home-copy h1 { font-size:clamp(32px,4.4vw,58px); }
.human-home-copy > p { font-size:14px; }
.home-intent-links a { min-width:0; flex:1 1 210px; }
.onboarding-current {
  min-height:78px; padding:14px 16px; border-radius:18px; display:grid;
  grid-template-columns:auto minmax(0,1fr) auto; gap:13px; align-items:center;
  background:linear-gradient(145deg,rgba(255,255,255,.9),rgba(248,238,220,.76));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.98),0 14px 28px rgba(99,73,44,.06);
}
.onboarding-current i { width:32px; height:32px; border-radius:50%; display:grid; place-items:center; font-style:normal; color:#fff; background:linear-gradient(145deg,var(--gold),#9d6c25); }
.onboarding-current span strong,.onboarding-current span small { display:block; }
.onboarding-current span small { margin-top:4px; color:var(--muted); line-height:1.45; }
.onboarding-current b { color:var(--gold-soft); white-space:nowrap; }
.onboarding-history { margin-top:10px; border-radius:15px; background:rgba(255,255,255,.42); }
.onboarding-history summary { padding:10px 13px; color:var(--text-soft); cursor:pointer; font-size:11px; }
.onboarding-history > div { padding:0 12px 12px; display:grid; gap:6px; }
.onboarding-history a { padding:8px 10px; display:grid; grid-template-columns:auto minmax(0,1fr); gap:9px; border-radius:12px; background:rgba(255,255,255,.6); }
.onboarding-history i { color:var(--success); font-style:normal; }
.onboarding-history strong,.onboarding-history small { display:block; }
.onboarding-history small { color:var(--muted); margin-top:2px; }
.home-strength { overflow:hidden; }
.strength-orbit {
  --strength:0%; width:126px; height:126px; margin:4px auto 13px; border-radius:50%;
  display:grid; place-items:center; position:relative;
  background:conic-gradient(var(--gold) var(--strength),rgba(70,61,49,.08) 0);
}
.strength-orbit::before { inset:10px; }
.strength-orbit > div { max-width:88px; text-align:center; }
.strength-orbit strong { font-size:27px; line-height:1.1; }
.strength-orbit span { position:relative; z-index:1; display:block; margin-top:3px; color:var(--muted); font-size:9px; }
.home-strength > p { overflow-wrap:anywhere; }
.home-more-section { margin-top:18px; border-radius:22px; background:rgba(255,255,255,.42); box-shadow:inset 0 1px 0 rgba(255,255,255,.9); }
.home-more-section > summary { padding:15px 18px; display:flex; align-items:center; justify-content:space-between; gap:12px; cursor:pointer; list-style:none; }
.home-more-section > summary::-webkit-details-marker { display:none; }
.home-more-section > summary span { font-weight:750; }
.home-more-section > summary small { color:var(--muted); }
.home-more-content { padding:0 16px 16px; }
.home-more-content .home-section { padding:18px; border-radius:18px; background:rgba(255,255,255,.52); }
.home-more-content .home-capability-strip { margin-top:14px; }

/* Profile readability */
.profile-heading-row { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.profile-heading-row h2 { margin:0; }
.profile-headline { margin:8px 0; color:var(--gold-soft); font-size:17px; }
.profile-focus-card { margin-top:14px; padding:16px 18px; border-radius:18px; display:flex; justify-content:space-between; gap:14px; align-items:center; background:linear-gradient(145deg,rgba(255,255,255,.85),rgba(244,235,219,.65)); box-shadow:var(--shadow-paper); }
.profile-focus-card span,.profile-focus-card strong,.profile-focus-card small { display:block; }
.profile-focus-card span { color:var(--muted); font-size:9px; text-transform:uppercase; letter-spacing:.12em; }
.profile-focus-card strong { margin-top:4px; }
.profile-focus-card small { margin-top:3px; color:var(--text-soft); }
.profile-core-grid { margin-top:18px; }
.profile-details { margin-top:22px; border-radius:20px; background:rgba(255,255,255,.48); box-shadow:inset 0 1px 0 rgba(255,255,255,.94); }
.profile-details > summary { padding:15px 18px; cursor:pointer; list-style:none; display:flex; justify-content:space-between; gap:12px; align-items:center; }
.profile-details > summary::-webkit-details-marker { display:none; }
.profile-details > summary span { font-weight:760; }
.profile-details > summary small { color:var(--muted); }
.profile-details-body { padding:0 16px 17px; }
.profile-details-body .section-title { margin-top:0; }
.interview-result-card { margin-top:16px; }
.interview-extracted { display:grid; gap:8px; margin:14px 0; }
.interview-row { padding:11px 12px; border-radius:13px; display:grid; grid-template-columns:120px minmax(0,1fr); gap:12px; background:rgba(255,255,255,.68); }
.interview-row strong { color:var(--gold-soft); }
.interview-row span { color:var(--text-soft); overflow-wrap:anywhere; }
.choice-field { border:0; margin:0; padding:0; }
.choice-field legend { margin-bottom:7px; color:var(--text-soft); font-size:13px; font-weight:650; }
.choice-grid { display:flex; flex-wrap:wrap; gap:8px; }
.choice-chip { display:block; }
.choice-chip input { position:absolute; opacity:0; pointer-events:none; }
.choice-chip span { min-height:38px; padding:9px 13px; border-radius:999px; display:flex; align-items:center; background:rgba(255,255,255,.68); box-shadow:inset 0 1px 0 rgba(255,255,255,.96); }
.choice-chip input:checked + span { color:#7b5518; background:rgba(195,147,65,.17); box-shadow:inset 0 0 0 1px rgba(195,147,65,.26); }

/* Capability center progressive disclosure */
.capability-recommended { margin:18px 0; }
.capability-recommended-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.capability-recommended-grid a { min-height:104px; padding:14px; border-radius:18px; display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:11px; align-items:start; background:linear-gradient(145deg,rgba(255,255,255,.9),rgba(247,238,221,.7)); box-shadow:var(--shadow-paper); }
.capability-recommended-grid a > span { width:38px; height:38px; border-radius:13px; display:grid; place-items:center; color:var(--gold-soft); background:rgba(195,147,65,.1); }
.capability-recommended-grid strong,.capability-recommended-grid small { display:block; }
.capability-recommended-grid small { margin-top:4px; color:var(--muted); line-height:1.45; }
.capability-recommended-grid b { color:var(--gold-soft); }
.capability-toolbar { margin:18px 0 8px; display:flex; align-items:end; justify-content:space-between; gap:14px; }
.capability-toolbar .tabs { margin:0; }
.capability-search { min-width:260px; }
.capability-search span { font-size:10px; }
.capability-group-accordion { margin-top:11px; border-radius:19px; background:rgba(255,255,255,.48); box-shadow:inset 0 1px 0 rgba(255,255,255,.94); }
.capability-group-accordion > summary { min-height:58px; padding:13px 16px; display:flex; justify-content:space-between; gap:12px; align-items:center; cursor:pointer; list-style:none; }
.capability-group-accordion > summary::-webkit-details-marker { display:none; }
.capability-group-accordion > summary strong,.capability-group-accordion > summary small { display:block; }
.capability-group-accordion > summary small { margin-top:3px; color:var(--muted); }
.capability-group-accordion > summary b { min-width:30px; height:30px; border-radius:50%; display:grid; place-items:center; color:var(--gold-soft); background:rgba(195,147,65,.1); }
.capability-group-accordion .capability-list { padding:0 12px 13px; }

/* Agent tool choice: safe defaults first */
.agent-tool-section { border-radius:16px; background:rgba(255,255,255,.5); box-shadow:inset 0 1px 0 rgba(255,255,255,.94); }
.agent-tool-section + .agent-tool-section { margin-top:8px; }
.agent-tool-section > summary { min-height:54px; padding:11px 13px; display:flex; justify-content:space-between; gap:10px; align-items:center; cursor:pointer; list-style:none; }
.agent-tool-section > summary::-webkit-details-marker { display:none; }
.agent-tool-section > summary strong,.agent-tool-section > summary small { display:block; }
.agent-tool-section > summary small { margin-top:2px; color:var(--muted); }
.agent-tool-section > summary b { min-width:28px; height:28px; display:grid; place-items:center; border-radius:50%; color:var(--gold-soft); background:rgba(195,147,65,.1); }
.agent-tool-list { padding:0 10px 11px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.agent-tool-row { min-height:70px; padding:10px 11px; border-radius:14px; display:grid; grid-template-columns:auto minmax(0,1fr); gap:9px; align-items:start; background:rgba(255,255,255,.65); }
.agent-tool-row > input { width:auto; margin-top:3px; }
.agent-tool-copy strong,.agent-tool-copy small,.agent-tool-copy em { display:block; }
.agent-tool-copy small { margin-top:3px; color:var(--text-soft); line-height:1.42; }
.agent-tool-copy em { margin-top:4px; color:var(--muted); font-size:9px; font-style:normal; }

/* Project board must scroll internally, not widen the entire page */
.kanban.window-panel { width:100% !important; max-width:100%; min-width:0; overflow-x:auto !important; overflow-y:hidden !important; grid-template-columns:repeat(5,minmax(280px,320px)); }

@media (max-width:1180px) {
  .capability-recommended-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .agent-tool-list { grid-template-columns:1fr; }
}
@media (max-width:900px) {
  .human-home-hero { min-height:auto; }
  .profile-core-grid { grid-template-columns:1fr; }
  .profile-details > summary,.home-more-section > summary { align-items:flex-start; flex-direction:column; }
  .capability-toolbar { align-items:stretch; flex-direction:column; }
  .capability-search { width:100%; min-width:0; }
}
@media (max-width:680px) {
  .human-home-copy h1 { font-size:34px; }
  .human-home-copy > p { font-size:13px; }
  .home-intent-links { display:grid; grid-template-columns:1fr; }
  .onboarding-current { grid-template-columns:auto minmax(0,1fr); }
  .onboarding-current b { grid-column:1 / -1; padding-left:45px; }
  .home-strength { padding:18px; }
  .profile-focus-card { align-items:flex-start; flex-direction:column; }
  .profile-hero { grid-template-columns:1fr; justify-items:center; text-align:center; }
  .profile-heading-row { justify-content:center; }
  .interview-row { grid-template-columns:1fr; gap:4px; }
  .capability-recommended-grid { grid-template-columns:1fr; }
  .capability-recommended-grid a { min-height:0; }
  .choice-grid { display:grid; grid-template-columns:1fr 1fr; }
  .agent-tool-list { grid-template-columns:1fr; }
}

/* Final layout corrections discovered by browser geometry audit */
.home-grid-main { width:100%; grid-template-columns:minmax(0,1.45fr) minmax(260px,.72fr); }
.home-section,.home-strength { min-width:0; }
.home-strength { display:block; overflow:hidden; }
.home-strength .section-title { width:100%; }
.strength-mini { width:100%; }
.layout-reset { width:38px !important; min-width:38px !important; padding:0 !important; }
@media (max-width:1100px) {
  .human-home-hero,.home-grid-main,.home-grid-secondary { grid-template-columns:1fr !important; }
}
@media (max-width:680px) {
  .human-home-hero { grid-template-columns:1fr !important; }
  .human-home-copy { width:100%; min-width:0; }
  .home-intent-form,.home-intent-links { width:100%; min-width:0; }
  .home-intent-links a { width:100%; writing-mode:horizontal-tb; }
}


/* 0.9.1 final browser-audit corrections */
.agent-tool-list { grid-template-columns:1fr; }
.agent-tool-row { min-height:62px; }
.agent-tool-row > input.form-check-input { width:20px; height:20px; min-height:20px; margin:1px 0 0; accent-color:var(--gold); }
.agent-tool-copy { min-width:0; }
.agent-tool-copy strong,.agent-tool-copy small,.agent-tool-copy em { overflow-wrap:anywhere; }
.project-more-tabs select { min-height:38px; }
@media (max-width:680px) {
  .agent-tool-row { padding:11px; }
  .agent-tool-row > input.form-check-input { width:22px; height:22px; }
}

.agent-setup-grid { align-items:start; }
.tool-checkbox-grid { display:block; max-height:420px; overflow:auto; padding:4px; }
@media (max-width: 1100px){.studio-layout{grid-template-columns:1fr!important}.studio-layout .kanban{overflow-x:auto;grid-template-columns:repeat(5,260px)}}

/* Commercial outcome diagnosis */
.diagnosis-index-hero {
  display:grid;
  grid-template-columns:minmax(0,1.45fr) minmax(310px,.62fr);
  gap:20px;
  align-items:stretch;
  margin-bottom:18px;
}
.diagnosis-index-copy {
  min-height:300px;
  padding:clamp(28px,4.5vw,58px);
  border-radius:30px;
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at 88% 20%,rgba(169,39,36,.10),transparent 27%),
    linear-gradient(135deg,rgba(255,255,252,.96),rgba(240,234,219,.82));
  box-shadow:var(--shadow-paper);
}
.diagnosis-index-copy::after {
  content:"";
  position:absolute;
  width:300px;
  height:300px;
  right:-150px;
  bottom:-185px;
  border-radius:50%;
  box-shadow:0 0 0 1px rgba(175,133,66,.18),0 0 0 58px rgba(175,133,66,.035),0 0 0 116px rgba(169,39,36,.02);
}
.diagnosis-index-copy h1 {
  margin:0;
  font:620 clamp(42px,6vw,76px)/1 "Songti SC","STSong",serif;
  letter-spacing:-.055em;
}
.diagnosis-index-copy > p {
  max-width:820px;
  margin:20px 0 0;
  color:var(--ink-soft);
  font-size:15px;
  line-height:1.85;
}
.diagnosis-trust-note {
  max-width:680px;
  display:flex;
  gap:12px;
  align-items:flex-start;
  margin-top:28px;
  padding:13px 15px;
  border-radius:16px;
  background:rgba(169,39,36,.06);
  color:var(--ink-soft);
}
.diagnosis-trust-note strong { color:var(--red); white-space:nowrap; }
.diagnosis-trust-note span { font-size:11px; line-height:1.55; }
.diagnosis-offering { padding:25px; display:flex; flex-direction:column; justify-content:center; }
.diagnosis-offering-title { display:flex; align-items:center; gap:7px; flex-wrap:wrap; }
.diagnosis-offering code,.diagnosis-offering-detail code {
  padding:5px 8px;
  border-radius:9px;
  background:rgba(38,45,42,.06);
  color:var(--ink-soft);
  font:10px ui-monospace,SFMono-Regular,Menlo,monospace;
}
.diagnosis-offering h3 { margin:17px 0 0; font:650 25px "Songti SC","STSong",serif; }
.diagnosis-offering p { margin-bottom:0; }
.diagnosis-mini-list { display:flex; gap:7px; flex-wrap:wrap; margin-top:18px; }
.diagnosis-mini-list span {
  padding:7px 9px;
  border-radius:999px;
  background:var(--gold-soft);
  color:#835f27;
  font-size:10px;
}
.diagnosis-index-metrics { margin:18px 0; }
.diagnosis-index-toolbar {
  display:grid;
  grid-template-columns:minmax(260px,1fr) minmax(170px,230px) auto;
  gap:10px;
  align-items:end;
  margin:25px 0 14px;
  padding:14px;
  border-radius:20px;
  background:rgba(255,255,252,.54);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.78);
}
.diagnosis-index-toolbar label { display:grid; gap:5px; color:var(--muted); font-size:10px; font-weight:750; }
.diagnosis-case-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:15px; }
.diagnosis-case-grid > .empty-state { grid-column:1/-1; }
.diagnosis-case-card { min-height:255px; display:flex; flex-direction:column; }
.diagnosis-case-card-head { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.diagnosis-case-card-head > div { display:flex; gap:5px; flex-wrap:wrap; }
.diagnosis-case-card time { color:var(--muted); font-size:10px; }
.diagnosis-case-card h3 { margin-top:18px; font:650 21px "Songti SC","STSong",serif; }
.diagnosis-case-card > p { margin:4px 0 14px; }
.diagnosis-case-target { margin-top:auto; padding:10px 12px; border-radius:13px; background:rgba(255,255,252,.59); }
.diagnosis-case-target span,.diagnosis-case-target strong { display:block; }
.diagnosis-case-target span { color:var(--muted); font-size:9px; }
.diagnosis-case-target strong { margin-top:3px; font-size:11px; line-height:1.45; }
.diagnosis-back { display:inline-flex; margin-bottom:17px; color:var(--muted); font-size:11px; }
.diagnosis-back:hover { color:var(--red); }
.diagnosis-detail-header { align-items:flex-start; margin-bottom:20px; }
.diagnosis-detail-header .title-with-badges { margin-bottom:10px; }
.diagnosis-case-meta { display:flex; flex-wrap:wrap; gap:7px 15px; margin-top:13px; color:var(--muted); font-size:10px; }
.diagnosis-pipeline {
  overflow-x:auto;
  margin-bottom:18px;
  border-radius:21px;
  background:rgba(239,235,224,.66);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.8);
}
.diagnosis-pipeline ol {
  min-width:850px;
  display:grid;
  grid-template-columns:repeat(8,minmax(96px,1fr));
  gap:0;
  margin:0;
  padding:8px;
  list-style:none;
}
.diagnosis-pipeline li {
  min-height:58px;
  padding:8px 9px;
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--muted);
  position:relative;
}
.diagnosis-pipeline li:not(:last-child)::after {
  content:"";
  position:absolute;
  right:-2px;
  width:11px;
  height:1px;
  background:rgba(73,82,78,.18);
}
.diagnosis-pipeline li > span {
  width:25px;
  height:25px;
  flex:none;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:rgba(86,95,91,.07);
  font-size:9px;
}
.diagnosis-pipeline li strong { font-size:10px; white-space:nowrap; }
.diagnosis-pipeline li.is-done { color:var(--success); }
.diagnosis-pipeline li.is-done > span { color:var(--success); background:rgba(52,123,89,.1); }
.diagnosis-pipeline li.is-current {
  color:var(--red);
  border-radius:14px;
  background:rgba(255,255,252,.91);
  box-shadow:0 7px 21px rgba(54,49,41,.06);
}
.diagnosis-pipeline li.is-current > span { color:#fff; background:var(--red); }
.diagnosis-pipeline li.is-stopped { opacity:.42; }
.diagnosis-blockers {
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:15px;
  padding:20px;
  margin:16px 0;
  border-radius:22px;
  background:linear-gradient(135deg,rgba(169,39,36,.11),rgba(255,255,252,.75));
  box-shadow:inset 0 0 0 1px rgba(169,39,36,.11);
}
.diagnosis-blocker-mark {
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:15px;
  color:#fff;
  background:var(--red);
  font-weight:900;
}
.diagnosis-blockers h2 { margin:0; font:650 20px "Songti SC","STSong",serif; }
.diagnosis-blockers p { margin:5px 0; color:var(--ink-soft); font-size:11px; }
.diagnosis-blockers ul,.diagnosis-action-error ul { margin:11px 0 0; padding-left:18px; color:var(--danger); font-size:11px; line-height:1.65; }
.diagnosis-next-action { display:flex; justify-content:space-between; align-items:center; gap:20px; }
.diagnosis-next-action span { color:var(--gold); font-size:9px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.diagnosis-next-action h2 { margin:4px 0; font:650 22px "Songti SC","STSong",serif; }
.diagnosis-next-action p { margin:0; color:var(--muted); font-size:10px; }
.diagnosis-next-action code { color:var(--muted); font-size:9px; }
.diagnosis-intake { margin-top:16px; }
.diagnosis-intake-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin:16px 0 0; }
.diagnosis-intake-grid > div { padding:10px 12px; border-radius:12px; background:rgba(255,255,252,.65); }
.diagnosis-intake-grid > div.is-missing { background:var(--red-soft); }
.diagnosis-intake-grid dt { color:var(--muted); font-size:8px; }
.diagnosis-intake-grid dd { margin:4px 0 0; color:var(--ink-soft); font-size:10px; line-height:1.45; overflow-wrap:anywhere; }
.diagnosis-intake-grid .is-missing dd { color:var(--danger); }
.diagnosis-section { margin-top:24px; }
.diagnosis-fact-lanes { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; align-items:start; }
.diagnosis-fact-lane {
  min-width:0;
  padding:12px;
  border-radius:20px;
  background:rgba(255,255,252,.5);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.76);
}
.diagnosis-fact-lane > header { min-height:75px; display:flex; justify-content:space-between; gap:8px; }
.diagnosis-fact-lane h3 { margin:0; font:650 16px "Songti SC","STSong",serif; }
.diagnosis-fact-lane header p { margin:4px 0 0; color:var(--muted); font-size:9px; line-height:1.45; }
.diagnosis-fact-lane header b {
  min-width:27px;
  height:27px;
  display:grid;
  place-items:center;
  border-radius:50%;
  color:var(--gold);
  background:var(--gold-soft);
  font-size:10px;
}
.diagnosis-lane-inference header b { color:var(--blue); background:var(--blue-soft); }
.diagnosis-lane-gap header b { color:var(--warning); }
.diagnosis-lane-conflict header b { color:var(--red); background:var(--red-soft); }
.diagnosis-fact-card {
  padding:13px;
  margin-top:8px;
  border-radius:15px;
  background:rgba(255,255,252,.91);
  box-shadow:0 8px 25px rgba(55,50,41,.055);
}
.diagnosis-fact-meta { display:flex; align-items:center; justify-content:space-between; gap:7px; margin-bottom:9px; }
.diagnosis-fact-meta > span { color:var(--muted); font-size:9px; }
.diagnosis-fact-card > strong { display:block; font-size:11px; }
.diagnosis-fact-card > p { margin:5px 0 10px; color:var(--ink-2); font-size:11px; line-height:1.55; overflow-wrap:anywhere; }
.diagnosis-fact-card dl { margin:0; display:grid; gap:5px; }
.diagnosis-fact-card dl div { display:grid; grid-template-columns:34px minmax(0,1fr); gap:5px; font-size:8px; }
.diagnosis-fact-card dt { color:var(--muted); }
.diagnosis-fact-card dd { margin:0; color:var(--ink-soft); overflow-wrap:anywhere; }
.diagnosis-fact-card blockquote,.diagnosis-evidence-row blockquote {
  margin:9px 0;
  padding:8px 9px;
  border-left:2px solid var(--gold);
  background:var(--gold-soft);
  color:var(--ink-soft);
  font-size:9px;
  line-height:1.45;
}
.diagnosis-fact-card .button { margin-top:10px; }
.diagnosis-lane-empty { margin:10px 0; color:var(--muted); font-size:10px; line-height:1.6; }
.diagnosis-ledger { margin-top:13px; border-radius:20px; background:rgba(255,255,252,.5); }
.diagnosis-ledger > summary {
  min-height:55px;
  padding:13px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  cursor:pointer;
  list-style:none;
  font-weight:750;
}
.diagnosis-ledger > summary::-webkit-details-marker { display:none; }
.diagnosis-ledger > summary b { color:var(--gold); }
.diagnosis-evidence-list { display:grid; gap:7px; padding:0 12px 13px; }
.diagnosis-evidence-row {
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  gap:10px;
  align-items:start;
  padding:12px;
  border-radius:15px;
  background:rgba(255,255,252,.76);
}
.diagnosis-evidence-icon {
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border-radius:12px;
  color:var(--gold);
  background:var(--gold-soft);
  font:650 13px "Songti SC","STSong",serif;
}
.diagnosis-evidence-row strong,.diagnosis-evidence-row small,.diagnosis-evidence-row code { display:block; }
.diagnosis-evidence-row strong { margin-top:6px; font-size:11px; }
.diagnosis-evidence-row small { margin-top:3px; color:var(--muted); font-size:9px; line-height:1.5; }
.diagnosis-evidence-row code { margin-top:5px; color:var(--muted); font-size:8px; overflow-wrap:anywhere; }
.diagnosis-qualification { padding:22px; }
.diagnosis-qualification-grid { display:grid; grid-template-columns:minmax(210px,.6fr) 1fr 1fr; gap:18px; margin-top:20px; }
.diagnosis-qualification-grid h3 { font-size:12px; }
.diagnosis-score { display:flex; gap:14px; align-items:center; }
.diagnosis-score-ring {
  width:112px;
  height:112px;
  flex:none;
  padding:8px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:conic-gradient(var(--jade) var(--diagnosis-score),rgba(57,125,112,.1) 0);
}
.diagnosis-score-ring::before {
  content:"";
  grid-area:1/1;
  width:100%;
  height:100%;
  border-radius:50%;
  background:#fffef9;
}
.diagnosis-score-ring > div { grid-area:1/1; z-index:1; text-align:center; }
.diagnosis-score-ring strong,.diagnosis-score-ring small { display:block; }
.diagnosis-score-ring strong { font:650 29px "Songti SC","STSong",serif; }
.diagnosis-score-ring small { color:var(--muted); font-size:8px; }
.diagnosis-score > div:last-child p { color:var(--muted); font-size:9px; }
.diagnosis-score-list { display:grid; gap:6px; }
.diagnosis-score-list div { display:flex; justify-content:space-between; gap:10px; padding:8px 10px; border-radius:11px; background:rgba(255,255,252,.67); font-size:9px; }
.diagnosis-signal-list { margin:0; padding-left:17px; color:var(--warning); font-size:10px; line-height:1.65; }
.diagnosis-human-decision { margin-top:15px; padding:13px; border-radius:14px; background:var(--gold-soft); }
.diagnosis-human-decision p { margin:5px 0; font-size:11px; }
.diagnosis-human-decision small { color:var(--muted); }
.diagnosis-stale-decision { margin:15px 0 0; padding:13px; border:1px solid rgba(180, 83, 9, .24); border-radius:14px; background:#fff7ed; color:#9a3412; }
.diagnosis-stale-decision p { margin:5px 0 0; font-size:12px; line-height:1.65; color:#9a3412; }
.diagnosis-commercial-grid { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(330px,.65fr); gap:15px; }
.diagnosis-solution-panel,.diagnosis-commercial-grid > .card { min-height:360px; }
.diagnosis-offering-detail { padding:11px 12px; margin-bottom:15px; border-radius:13px; background:rgba(57,125,112,.07); }
.diagnosis-offering-detail > div { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.diagnosis-offering-detail span { color:var(--jade); font-size:9px; font-weight:800; }
.diagnosis-offering-detail p { margin:7px 0 0; font-size:10px; }
.diagnosis-solution-summary { font-size:12px; }
.diagnosis-two-columns { display:grid; grid-template-columns:1fr 1fr; gap:15px; margin-top:15px; }
.diagnosis-two-columns h4 { font-size:11px; }
.diagnosis-checklist { margin:0; padding:0; display:grid; gap:6px; list-style:none; }
.diagnosis-checklist li { display:grid; grid-template-columns:18px minmax(0,1fr); gap:6px; align-items:start; }
.diagnosis-checklist li > span { width:18px; height:18px; display:grid; place-items:center; border-radius:50%; color:var(--success); background:rgba(52,123,89,.1); font-size:8px; }
.diagnosis-checklist p { margin:1px 0 0; color:var(--ink-soft); font-size:9px; line-height:1.45; }
.diagnosis-cost-strip { display:flex; gap:7px; flex-wrap:wrap; margin-top:17px; }
.diagnosis-cost-strip span { padding:7px 9px; border-radius:10px; background:rgba(86,95,91,.055); color:var(--muted); font-size:8px; }
.diagnosis-cost-strip b { color:var(--ink-soft); }
.diagnosis-empty-panel { min-height:300px; display:grid; place-content:center; justify-items:center; text-align:center; padding:20px; }
.diagnosis-empty-panel > span { width:54px; height:54px; display:grid; place-items:center; border-radius:50%; color:var(--red); background:var(--red-soft); font:650 21px "Songti SC","STSong",serif; }
.diagnosis-empty-panel h3 { margin:12px 0 3px; }
.diagnosis-empty-panel p { max-width:460px; margin:0 0 15px; color:var(--muted); font-size:10px; }
.diagnosis-quote-head { display:flex; justify-content:space-between; gap:10px; align-items:flex-start; }
.diagnosis-quote-head > div:first-child span,.diagnosis-quote-head > div:first-child strong { display:block; }
.diagnosis-quote-head span { color:var(--muted); font-size:9px; }
.diagnosis-quote-head strong { margin-top:7px; font:650 31px "Songti SC","STSong",serif; }
.diagnosis-price-lines { display:grid; gap:5px; margin-top:17px; }
.diagnosis-price-lines > div { display:flex; justify-content:space-between; gap:8px; padding:8px 10px; border-radius:10px; background:rgba(255,255,252,.65); font-size:9px; }
.diagnosis-price-lines .is-total { color:var(--red); background:var(--red-soft); font-weight:800; }
.diagnosis-quote-meta { display:flex; flex-wrap:wrap; gap:5px 12px; margin:12px 0; color:var(--muted); font-size:8px; }
.diagnosis-quote-actions { justify-content:flex-start; }
.diagnosis-version-history { margin-top:14px; color:var(--muted); font-size:9px; }
.diagnosis-version-history summary { cursor:pointer; }
.diagnosis-version-history div { display:grid; gap:4px; margin-top:7px; }
.diagnosis-order,.diagnosis-order-empty,.diagnosis-outcome-empty { padding:23px; }
.diagnosis-order-empty,.diagnosis-outcome-empty { display:grid; grid-template-columns:minmax(0,1fr) minmax(300px,.6fr); gap:20px; align-items:center; }
.diagnosis-manual-warning,.diagnosis-modal-warning {
  display:flex;
  align-items:flex-start;
  gap:9px;
  padding:11px 13px;
  border-radius:13px;
  background:var(--gold-soft);
  color:#78571f;
  font-size:9px;
  line-height:1.5;
}
.diagnosis-manual-warning { margin-top:15px; }
.diagnosis-manual-warning strong,.diagnosis-modal-warning strong { white-space:nowrap; }
.diagnosis-order-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:9px; margin-top:15px; }
.diagnosis-order-check { display:grid; grid-template-columns:auto 1fr; gap:9px; align-items:start; padding:12px; border-radius:14px; background:rgba(86,95,91,.05); }
.diagnosis-order-check > span { width:27px; height:27px; display:grid; place-items:center; border-radius:50%; background:rgba(86,95,91,.08); color:var(--muted); }
.diagnosis-order-check.is-done > span { color:var(--success); background:rgba(52,123,89,.1); }
.diagnosis-order-check strong,.diagnosis-order-check small { display:block; }
.diagnosis-order-check strong { font-size:10px; }
.diagnosis-order-check small { margin-top:3px; color:var(--muted); font-size:8px; overflow-wrap:anywhere; }
.diagnosis-order-actions { margin-top:15px; }
.diagnosis-package-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.diagnosis-package { min-height:220px; }
.diagnosis-package-meta { display:flex; gap:10px; margin:12px 0; color:var(--muted); font-size:8px; }
.diagnosis-package h4 { margin-top:15px; font-size:10px; }
.diagnosis-delivery-grid { display:grid; grid-template-columns:1fr 1fr; gap:15px; margin-top:16px; align-items:start; }
.diagnosis-subheading { display:flex; justify-content:space-between; margin:0 0 10px; font:650 16px "Songti SC","STSong",serif; }
.diagnosis-subheading span { color:var(--gold); }
.diagnosis-deliverable-list,.diagnosis-review-list { display:grid; gap:9px; }
.diagnosis-deliverable,.diagnosis-review { padding:15px; border-radius:18px; background:rgba(255,255,252,.78); box-shadow:var(--shadow-paper); }
.diagnosis-deliverable-head,.diagnosis-review-head { display:flex; justify-content:space-between; gap:8px; align-items:center; }
.diagnosis-deliverable-head time,.diagnosis-review-head small { color:var(--muted); font-size:8px; }
.diagnosis-deliverable h3,.diagnosis-review h3 { margin:12px 0 4px; font-size:12px; }
.diagnosis-deliverable > p { margin:0; font-size:10px; }
.diagnosis-deliverable > small { display:block; color:var(--muted); font-size:8px; }
.diagnosis-evidence-refs { display:flex; gap:6px; flex-wrap:wrap; align-items:center; margin-top:11px; }
.diagnosis-evidence-refs strong { font-size:9px; }
.diagnosis-evidence-refs code { padding:5px 7px; border-radius:8px; background:var(--jade-soft); color:var(--jade); font-size:8px; overflow-wrap:anywhere; }
.diagnosis-evidence-refs span { font-size:9px; }
.diagnosis-review.is-rework { box-shadow:inset 0 0 0 1px rgba(169,39,36,.18),var(--shadow-paper); }
.diagnosis-review-trace { display:grid; gap:6px; margin:12px 0; }
.diagnosis-review-trace > div { display:grid; grid-template-columns:28px minmax(0,1fr); gap:8px; align-items:start; opacity:.56; }
.diagnosis-review-trace > div.is-done { opacity:1; }
.diagnosis-review-trace > div > span { width:27px; height:27px; display:grid; place-items:center; border-radius:10px; background:rgba(86,95,91,.07); color:var(--muted); font-size:8px; font-weight:800; }
.diagnosis-review-trace > div.is-done > span { color:var(--success); background:rgba(52,123,89,.1); }
.diagnosis-review-trace p { margin:0; }
.diagnosis-review-trace strong,.diagnosis-review-trace small { display:block; }
.diagnosis-review-trace strong { font-size:9px; }
.diagnosis-review-trace small { margin-top:2px; color:var(--muted); font-size:8px; line-height:1.45; }
.diagnosis-rework-reason { padding:10px; border-radius:12px; background:var(--red-soft); }
.diagnosis-rework-reason strong,.diagnosis-rework-reason small { font-size:8px; }
.diagnosis-rework-reason p { margin:4px 0; color:var(--danger); font-size:9px; }
.diagnosis-outcome {
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:20px;
  padding:27px;
  border-radius:28px;
  background:
    radial-gradient(circle at 90% 15%,rgba(57,125,112,.12),transparent 27%),
    linear-gradient(135deg,rgba(255,255,252,.96),rgba(236,242,232,.78));
  box-shadow:var(--shadow-paper);
}
.diagnosis-outcome-mark { width:64px; height:64px; display:grid; place-items:center; border-radius:22px; color:#fff; background:linear-gradient(135deg,var(--jade),#255d53); font:650 24px "Songti SC","STSong",serif; }
.diagnosis-outcome-title { display:flex; justify-content:space-between; gap:10px; align-items:center; }
.diagnosis-outcome-title h2 { margin:0; font:650 25px "Songti SC","STSong",serif; }
.diagnosis-outcome-summary { max-width:900px; font-size:13px; }
.diagnosis-outcome-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:17px 0; }
.diagnosis-outcome-grid > div { padding:13px; border-radius:15px; background:rgba(255,255,252,.62); }
.diagnosis-outcome-grid h3 { font-size:10px; }
.diagnosis-result-metrics { margin:0; display:grid; gap:6px; }
.diagnosis-result-metrics div { display:flex; justify-content:space-between; gap:9px; font-size:9px; }
.diagnosis-result-metrics dt { color:var(--muted); }
.diagnosis-result-metrics dd { margin:0; font-weight:800; }
.diagnosis-recommendations { display:grid; gap:6px; }
.diagnosis-recommendations article { padding:8px; border-radius:10px; background:var(--jade-soft); }
.diagnosis-recommendations strong { font-size:9px; }
.diagnosis-recommendations p { margin:3px 0 0; font-size:8px; }
.diagnosis-outcome > div:last-child > small { color:var(--muted); font-size:8px; }
.diagnosis-form-context { display:grid; grid-template-columns:auto 1fr auto; gap:8px 12px; align-items:center; padding:13px; border-radius:14px; background:var(--jade-soft); }
.diagnosis-form-context > span,.diagnosis-form-context > small { color:var(--muted); font-size:9px; }
.diagnosis-form-context > small { grid-column:1/-1; }
.diagnosis-form-context code { font-size:9px; }
.diagnosis-check-label { grid-template-columns:auto minmax(0,1fr); align-items:start; padding:12px; border-radius:13px; background:rgba(255,255,252,.6); }
.diagnosis-check-label input { width:20px; min-height:20px; margin:1px 0 0; accent-color:var(--gold); }
.diagnosis-check-label strong,.diagnosis-check-label small { display:block; }
.diagnosis-check-label small { margin-top:3px; color:var(--muted); font-size:9px; line-height:1.45; }
.diagnosis-evidence-picker { min-width:0; margin:0; padding:12px; border:1px solid rgba(39,91,76,.13); border-radius:13px; background:rgba(255,255,252,.6); }
.diagnosis-evidence-picker legend { padding:0 5px; font-size:10px; font-weight:800; color:var(--ink); }
.diagnosis-evidence-picker > p { margin:0 0 9px; color:var(--muted); font-size:9px; line-height:1.45; }
.diagnosis-evidence-picker > div { display:grid; gap:7px; }
.diagnosis-evidence-picker label { display:grid; grid-template-columns:auto minmax(0,1fr); gap:9px; align-items:start; padding:9px; border-radius:10px; background:rgba(39,91,76,.045); cursor:pointer; }
.diagnosis-evidence-picker input { width:18px; min-height:18px; margin:1px 0 0; accent-color:var(--gold); }
.diagnosis-evidence-picker strong,.diagnosis-evidence-picker small { display:block; overflow-wrap:anywhere; }
.diagnosis-evidence-picker small { margin-top:2px; color:var(--muted); font-size:8px; }
.diagnosis-evidence-picker.is-empty { border-color:rgba(177,83,63,.2); background:var(--red-soft); }
.diagnosis-evidence-picker.is-empty p { margin:5px 0 0; color:var(--danger); }
.diagnosis-form-error { padding:12px; border-radius:13px; background:var(--red-soft); color:var(--danger); font-size:10px; }
.diagnosis-form-error strong { display:block; }
.diagnosis-form-error ul { margin:7px 0 0; padding-left:17px; }
.diagnosis-json-input { min-height:110px; font:10px/1.55 ui-monospace,SFMono-Regular,Menlo,monospace; }
.diagnosis-load-error h2 { margin:15px 0 5px; }

@media (max-width:1180px) {
  .diagnosis-index-hero { grid-template-columns:1fr; }
  .diagnosis-offering { min-height:220px; }
  .diagnosis-fact-lanes { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .diagnosis-commercial-grid { grid-template-columns:1fr; }
  .diagnosis-package-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .diagnosis-outcome-grid { grid-template-columns:1fr 1fr; }
}
@media (max-width:900px) {
  .diagnosis-case-grid { grid-template-columns:1fr; }
  .diagnosis-index-toolbar { grid-template-columns:1fr 190px; }
  .diagnosis-index-toolbar .button { grid-column:1/-1; }
  .diagnosis-qualification-grid { grid-template-columns:1fr 1fr; }
  .diagnosis-score { grid-column:1/-1; }
  .diagnosis-order-empty,.diagnosis-outcome-empty { grid-template-columns:1fr; }
  .diagnosis-intake-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .diagnosis-order-grid { grid-template-columns:1fr; }
  .diagnosis-delivery-grid { grid-template-columns:1fr; }
}
@media (max-width:680px) {
  .diagnosis-index-copy { min-height:0; padding:27px 20px; }
  .diagnosis-index-copy h1 { font-size:43px; }
  .diagnosis-index-copy > p { font-size:12px; }
  .diagnosis-trust-note { display:grid; gap:4px; }
  .diagnosis-index-toolbar { grid-template-columns:1fr; }
  .diagnosis-index-toolbar .button { grid-column:auto; }
  .diagnosis-case-card { min-height:0; }
  .diagnosis-next-action { align-items:flex-start; flex-direction:column; }
  .diagnosis-intake-grid { grid-template-columns:1fr; }
  .diagnosis-fact-lanes { grid-template-columns:1fr; }
  .diagnosis-evidence-row { grid-template-columns:auto minmax(0,1fr); }
  .diagnosis-evidence-row > .button { grid-column:1/-1; width:100%; }
  .diagnosis-qualification-grid { grid-template-columns:1fr; }
  .diagnosis-score { grid-column:auto; flex-direction:column; align-items:flex-start; }
  .diagnosis-two-columns { grid-template-columns:1fr; }
  .diagnosis-order-actions .button,.diagnosis-order-actions a { width:100%; }
  .diagnosis-package-grid { grid-template-columns:1fr; }
  .diagnosis-outcome { grid-template-columns:1fr; }
  .diagnosis-outcome-grid { grid-template-columns:1fr; }
  .diagnosis-outcome-title { align-items:flex-start; flex-direction:column; }
  .diagnosis-form-context { grid-template-columns:1fr; }
  .diagnosis-form-context > small { grid-column:auto; }
  .diagnosis-modal-warning { display:grid; gap:4px; }
}
.marketing-page{min-height:100vh;background:#f7f7f5;color:#111;font-family:Inter,-apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif}.marketing-nav{height:72px;display:flex;justify-content:space-between;align-items:center;max-width:1220px;margin:auto;padding:0 24px}.marketing-nav>div,.marketing-brand{display:flex;gap:16px;align-items:center}.marketing-nav a{text-decoration:none;color:inherit}.marketing-brand span{display:grid;place-items:center;width:36px;height:36px;background:#111;color:#fff;border-radius:12px}.marketing-hero{text-align:center;padding:90px 24px 80px}.marketing-hero h1{font-size:clamp(50px,8vw,104px);line-height:.98;letter-spacing:-.06em;margin:18px auto 28px;max-width:1100px}.marketing-hero h1 span{color:#777}.hero-lead{font-size:20px;line-height:1.7;color:#555;max-width:760px;margin:auto}.hero-actions{display:flex;gap:12px;justify-content:center;margin:30px}.button-dark{background:#111!important;color:white!important}.button-large{padding:15px 24px!important;border-radius:999px!important}.hero-stage{width:min(900px,94vw);height:380px;margin:60px auto 0;border:1px solid #ddd;border-radius:36px;background:white;position:relative;box-shadow:0 35px 90px #0001}.stage-core{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:220px;height:220px;border-radius:50%;background:#111;color:white;display:flex;flex-direction:column;justify-content:center}.stage-core strong{font-size:30px}.agent-chip{position:absolute;background:white;border:1px solid #ddd;border-radius:16px;padding:12px 15px;box-shadow:0 15px 40px #0001}.agent-chip i{font-style:normal}.chip-a{left:8%;top:15%}.chip-b{right:8%;top:18%}.chip-c{left:12%;bottom:14%}.chip-d{right:10%;bottom:12%}.marketing-proof{max-width:1100px;margin:0 auto 90px;display:grid;grid-template-columns:repeat(4,1fr);gap:20px;border-block:1px solid #ddd;padding:28px}.marketing-proof div{display:flex;flex-direction:column}.marketing-proof b{font-size:32px}.marketing-section{max-width:1200px;margin:auto;padding:100px 24px}.marketing-section h2{font-size:clamp(38px,6vw,72px);letter-spacing:-.05em}.workflow-line{display:grid;grid-template-columns:repeat(7,1fr);margin-top:50px;border-top:1px solid #ccc}.workflow-line div{padding:22px 12px;min-height:150px;border-right:1px solid #ddd}.workflow-line em{display:block;color:#999;margin-bottom:50px}.pricing-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.price-card{background:white;border:1px solid #ddd;border-radius:24px;padding:28px;display:flex;flex-direction:column;min-height:420px}.price-card.featured{border-color:#111;box-shadow:0 25px 60px #0002}.price-card ul{padding:0;list-style:none;line-height:2;flex:1}.price strong{font-size:36px}.marketing-cta{text-align:center;padding:110px 24px;background:linear-gradient(135deg,#665cff,#c55cff);color:white}.billing-current{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}.billing-current div{display:flex;flex-direction:column}.billing-toolbar{display:flex;justify-content:space-between;align-items:center;margin:20px 0}.segmented{display:flex;border:1px solid var(--border);padding:4px;border-radius:999px}.segmented button{border:0;background:transparent;padding:9px 15px;border-radius:999px}.segmented button.active{background:#111;color:#fff}.order-row{display:grid;grid-template-columns:1fr 1fr auto;padding:14px 0;border-bottom:1px solid var(--border)}@media(max-width:800px){.marketing-nav>div>a:not(.button){display:none}.hero-stage{height:430px}.agent-chip{font-size:12px}.chip-a{left:3%;top:8%}.chip-b{right:3%;top:8%}.chip-c{left:3%;bottom:8%}.chip-d{right:3%;bottom:8%}.workflow-line,.pricing-grid,.marketing-proof,.billing-current{grid-template-columns:1fr}.workflow-line div{min-height:auto}.billing-toolbar{align-items:flex-start;flex-direction:column;gap:12px}.segmented{width:100%}.segmented button{flex:1}}

/* Group coordination control plane */
.studio-index-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}
.studio-index-card,
.studio-index-empty {
  min-height:230px;
  padding:22px;
  display:flex;
  flex-direction:column;
  color:var(--ink);
  background:
    radial-gradient(circle at 93% 8%,rgba(195,147,65,.11),transparent 28%),
    linear-gradient(145deg,rgba(255,255,252,.95),rgba(241,235,222,.78));
}
.studio-index-card h3 { margin:8px 0 6px; font:650 22px/1.2 "Songti SC","STSong",serif; }
.studio-index-card p,.studio-index-empty p { color:var(--text-soft); line-height:1.68; }
.studio-index-card footer {
  margin-top:auto;
  padding-top:18px;
  display:flex;
  justify-content:space-between;
  gap:12px;
  color:var(--muted);
  border-top:1px solid rgba(80,71,57,.08);
}
.studio-index-card footer strong { color:var(--gold-soft); }
.studio-page-header { margin-bottom:18px; }
.coordination-hero {
  min-height:210px;
  padding:26px;
  display:grid;
  grid-template-columns:150px minmax(0,1fr) auto;
  gap:28px;
  align-items:center;
  overflow:hidden;
  background:
    radial-gradient(circle at 9% 50%,rgba(169,39,36,.08),transparent 22%),
    radial-gradient(circle at 84% 20%,rgba(39,91,76,.10),transparent 28%),
    linear-gradient(135deg,rgba(255,255,252,.97),rgba(238,232,219,.83));
}
.coordination-score {
  width:138px;
  height:138px;
  padding:10px;
  border-radius:50%;
  display:grid;
  place-items:center;
  position:relative;
  background:conic-gradient(
    var(--coordination-color) calc(var(--coordination-score) * 3.6deg),
    rgba(76,82,78,.08) 0
  );
  box-shadow:0 18px 45px rgba(55,50,41,.12);
}
.coordination-score::before {
  content:"";
  position:absolute;
  inset:10px;
  border-radius:50%;
  background:linear-gradient(145deg,#fffefb,#eee8dc);
  box-shadow:inset 0 1px 0 #fff;
}
.coordination-score > div,.coordination-score > small { position:relative; z-index:1; }
.coordination-score > div { align-self:end; display:flex; align-items:baseline; justify-content:center; }
.coordination-score strong { font:650 43px/1 "Songti SC","STSong",serif; }
.coordination-score span { color:var(--muted); font-size:10px; }
.coordination-score small { align-self:start; margin-top:5px; color:var(--text-soft); font-size:10px; font-weight:760; }
.coordination-score.score-healthy { --coordination-color:#2f8069; }
.coordination-score.score-watch { --coordination-color:#bd8734; }
.coordination-score.score-risk { --coordination-color:#b7483b; }
.coordination-hero-copy { min-width:0; }
.coordination-hero-copy h2 { margin:3px 0 8px; font:650 clamp(25px,2.5vw,36px)/1.2 "Songti SC","STSong",serif; }
.coordination-hero-copy > p { max-width:780px; margin:0; color:var(--text-soft); line-height:1.7; }
.coordination-health-row { margin-top:18px; display:flex; align-items:center; gap:7px; flex-wrap:wrap; }
.coordination-health-row > span:last-child { color:var(--muted); font-size:10px; }
.coordination-hero-controls { display:grid; gap:8px; min-width:128px; }
.coordination-metrics {
  margin-top:16px;
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:12px;
}
.coordination-metric {
  min-height:142px;
  padding:19px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  overflow:hidden;
}
.coordination-metric::before {
  content:"";
  position:absolute;
  width:96px;
  height:96px;
  right:-32px;
  top:-38px;
  border-radius:50%;
  background:var(--metric-color,rgba(80,91,87,.08));
  filter:blur(2px);
}
.coordination-metric strong { font:650 34px/1 "Songti SC","STSong",serif; }
.coordination-metric > span { margin-top:7px; font-size:11px; font-weight:780; }
.coordination-metric small { margin-top:5px; color:var(--muted); line-height:1.45; }
.coordination-metric.metric-danger { --metric-color:rgba(177,72,59,.13); }
.coordination-metric.metric-warning { --metric-color:rgba(189,135,52,.15); }
.coordination-metric.metric-success { --metric-color:rgba(47,128,105,.12); }
.coordination-metric.metric-info { --metric-color:rgba(56,111,180,.12); }
.coordination-primary-grid {
  margin-top:18px;
  display:grid;
  grid-template-columns:minmax(0,1.65fr) minmax(320px,.62fr);
  gap:18px;
  align-items:start;
}
.coordination-secondary-grid {
  margin-top:18px;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(360px,.9fr);
  gap:18px;
  align-items:start;
}
.coordination-workflow-panel,
.coordination-risk-panel,
.coordination-load,
.coordination-governance,
.studio-kanban-panel,
.studio-team-panel,
.studio-timeline-panel {
  padding:20px;
}
.coordination-workflow-panel { min-height:780px; overflow:hidden; }
.coordination-workflow-panel > .card-header { margin-bottom:14px; }
.workflow-legend { display:flex; flex-wrap:wrap; gap:6px; justify-content:flex-end; }
.workflow-legend span { padding:4px 7px; border-radius:999px; color:var(--muted); background:rgba(80,91,87,.07); font-size:9px; }
.workflow-legend span::before { content:""; width:6px; height:6px; display:inline-block; margin-right:5px; border-radius:50%; background:#87918d; }
.workflow-legend .is-doing::before { background:#397bd4; }
.workflow-legend .is-review::before { background:#8064bd; }
.workflow-legend .is-blocked::before { background:#b94336; }
.workflow-legend .is-done::before { background:#3d8b68; }
.studio-workflow-shell {
  display:grid;
  grid-template-columns:minmax(0,1fr) 280px;
  gap:12px;
  min-width:0;
}
.studio-workflow-editor { min-width:0; }
.studio-workflow-inspector {
  min-width:0;
  height:clamp(520px,70vh,780px);
  padding:17px;
  overflow:auto;
  border-radius:22px;
  background:rgba(255,255,252,.72);
  box-shadow:inset 0 0 0 1px rgba(70,64,54,.07);
}
.workflow-inspector-empty { min-height:200px; display:grid; place-content:center; text-align:center; color:var(--muted); }
.workflow-inspector-empty strong { color:var(--ink); }
.workflow-inspector-empty p { max-width:190px; font-size:10px; line-height:1.55; }
.workflow-inspector-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:8px; }
.workflow-inspector-heading span { color:var(--muted); font-size:9px; }
.workflow-inspector-heading h4 { margin:4px 0 0; font-size:17px; line-height:1.3; }
.studio-workflow-inspector > p { color:var(--text-soft); font-size:11px; line-height:1.6; }
.workflow-inspector-facts { display:grid; gap:7px; margin:15px 0; }
.workflow-inspector-facts > div { padding:9px 10px; border-radius:12px; background:rgba(80,91,87,.045); }
.workflow-inspector-facts dt { color:var(--muted); font-size:8px; text-transform:uppercase; letter-spacing:.08em; }
.workflow-inspector-facts dd { margin:3px 0 0; overflow-wrap:anywhere; font-size:10px; line-height:1.5; }
.workflow-blocker { padding:11px; border-radius:13px; background:var(--red-soft); color:var(--danger); }
.workflow-blocker p { margin:4px 0 0; font-size:10px; line-height:1.5; }
.workflow-inspector-actions { display:flex; flex-wrap:wrap; gap:6px; }
.coordination-risk-panel { min-height:780px; max-height:980px; overflow:hidden; }
.coordination-risk-list { margin-top:14px; max-height:850px; padding-right:4px; display:grid; gap:9px; overflow:auto; }
.coordination-risk {
  padding:13px;
  border-radius:16px;
  background:rgba(255,255,252,.72);
  box-shadow:inset 3px 0 0 var(--risk-color,rgba(80,91,87,.18)),inset 0 0 0 1px rgba(70,64,54,.055);
}
.coordination-risk.risk-critical { --risk-color:#9f302a; }
.coordination-risk.risk-high { --risk-color:#c0523e; }
.coordination-risk.risk-medium { --risk-color:#bc8735; }
.coordination-risk.risk-low { --risk-color:#4e8271; }
.coordination-risk.is-acknowledged { opacity:.62; }
.coordination-risk-heading { display:flex; gap:6px; align-items:center; }
.coordination-risk-heading strong { min-width:0; font-size:11px; line-height:1.35; }
.coordination-risk p { margin:8px 0 4px; color:var(--text-soft); font-size:10px; line-height:1.55; }
.coordination-risk > small { color:var(--muted); font-size:9px; line-height:1.45; }
.coordination-risk-actions { margin-top:10px; display:flex; flex-wrap:wrap; gap:5px; }
.coordination-positive { min-height:180px; display:grid; place-content:center; text-align:center; }
.coordination-positive strong,.coordination-positive span { display:block; }
.coordination-positive strong { color:var(--jade); }
.coordination-positive span { max-width:250px; margin-top:6px; color:var(--muted); font-size:10px; }
.coordination-load-list { margin-top:16px; display:grid; gap:9px; }
.coordination-load-row {
  min-height:70px;
  padding:10px 12px;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  gap:11px;
  align-items:center;
  border-radius:16px;
  background:rgba(255,255,252,.66);
}
.coordination-load-row.is-overloaded { background:rgba(177,72,59,.075); }
.coordination-load-main { min-width:0; }
.coordination-load-main > div { display:flex; justify-content:space-between; gap:8px; }
.coordination-load-main strong,.coordination-load-main span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.coordination-load-main span { color:var(--muted); font-size:9px; }
.coordination-load-main i,.coordination-component i,.studio-work-progress i {
  height:6px;
  display:block;
  overflow:hidden;
  border-radius:999px;
  background:rgba(80,91,87,.09);
}
.coordination-load-main i { margin-top:8px; }
.coordination-load-main i b,.coordination-component i b,.studio-work-progress i b {
  height:100%;
  display:block;
  border-radius:inherit;
  background:linear-gradient(90deg,#b4873e,#3b8a72);
}
.is-overloaded .coordination-load-main i b { background:linear-gradient(90deg,#b4873e,#b94336); }
.coordination-load-number { min-width:42px; text-align:right; }
.coordination-load-number strong { font-size:20px; }
.coordination-load-number span { color:var(--muted); font-size:9px; }
.coordination-components { margin:16px 0; display:grid; gap:8px; }
.coordination-component > div { display:flex; justify-content:space-between; gap:10px; margin-bottom:4px; font-size:9px; }
.coordination-component span { color:var(--text-soft); }
.coordination-component strong { color:var(--ink); }
.coordination-component i { height:5px; }
.governance-form {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;
}
.governance-form label { min-width:0; }
.governance-form label > span { font-size:9px; }
.governance-form input,.governance-form select { min-height:38px; }
.governance-check { grid-column:1/-1; display:flex!important; flex-direction:row!important; align-items:center; gap:8px; padding:10px; border-radius:12px; background:rgba(255,255,252,.55); }
.governance-check input { width:18px; min-height:18px; margin:0; accent-color:var(--gold); }
.governance-form > button,.governance-form > p { grid-column:1/-1; }
.studio-agent-runtime { margin-top:18px; width:100%!important; padding:22px; }
.agent-runtime-toolbar { display:flex; align-items:center; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.agent-runtime-toolbar #agent-runtime-sync { color:var(--muted); font-size:10px; }
.agent-runtime-list { margin-top:16px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:11px; }
.agent-runtime-run {
  min-width:0;
  padding:16px;
  border-radius:18px;
  background:rgba(255,255,252,.72);
  box-shadow:inset 0 0 0 1px rgba(70,64,54,.07),0 10px 26px rgba(63,54,42,.05);
}
.agent-runtime-run.is-active { box-shadow:inset 3px 0 0 #b88735,inset 0 0 0 1px rgba(70,64,54,.07),0 10px 26px rgba(63,54,42,.06); }
.agent-runtime-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.agent-runtime-heading > div { min-width:0; }
.agent-runtime-heading span { color:var(--muted); font-size:8px; font-weight:760; letter-spacing:.05em; }
.agent-runtime-heading h4 { margin:4px 0 0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font:650 17px/1.3 "Songti SC","STSong",serif; }
.agent-runtime-progress { margin-top:13px; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:9px; }
.agent-runtime-progress i { height:7px; overflow:hidden; border-radius:999px; background:rgba(76,87,83,.1); }
.agent-runtime-progress i b { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,#b88735,#3b8a72); transition:width .35s ease; }
.agent-runtime-progress span { color:var(--muted); font-size:8px; }
.agent-runtime-facts { margin-top:9px; display:flex; gap:5px; flex-wrap:wrap; }
.agent-runtime-facts span { padding:4px 7px; border-radius:999px; background:rgba(57,72,68,.055); color:var(--text-soft); font-size:8px; }
.agent-runtime-members { margin-top:12px; display:grid; gap:5px; }
.agent-runtime-member {
  min-width:0;
  padding:7px 8px;
  display:grid;
  grid-template-columns:9px minmax(0,1fr) auto auto;
  align-items:center;
  gap:7px;
  border-radius:11px;
  background:rgba(245,241,233,.66);
}
.agent-runtime-member.is-synthesis { background:rgba(195,147,65,.09); }
.agent-runtime-member > div { min-width:0; }
.agent-runtime-member strong,.agent-runtime-member small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.agent-runtime-member strong { font-size:11px; }
.agent-runtime-member small,.agent-runtime-member > span { color:var(--muted); font-size:9px; }
.agent-state-dot { width:7px; height:7px; border-radius:50%; background:#9b9d99; box-shadow:0 0 0 3px rgba(100,105,101,.08); }
.agent-state-dot.state-running,.agent-state-dot.state-synthesizing { background:#b88735; animation:pulse 1.6s ease-in-out infinite; }
.agent-state-dot.state-completed { background:#2f8069; }
.agent-state-dot.state-failed,.agent-state-dot.state-cancelled { background:#b7483b; }
.agent-state-dot.state-cancelling,.agent-state-dot.state-cancel_requested { background:#b86f35; animation:pulse 1.6s ease-in-out infinite; }
.agent-runtime-result { margin-top:11px; padding:10px 12px; border-radius:12px; background:rgba(47,128,105,.075); }
.agent-runtime-result strong { color:var(--jade); font-size:9px; }
.agent-runtime-result p { max-height:74px; margin:4px 0 0; overflow:auto; color:var(--text-soft); font-size:9px; line-height:1.55; }
.agent-runtime-candidate {
  margin-top:10px;
  overflow:hidden;
  border-radius:12px;
  background:rgba(47,128,105,.055);
  box-shadow:inset 0 0 0 1px rgba(47,128,105,.1);
}
.agent-runtime-candidate > summary {
  padding:11px 12px;
  cursor:pointer;
  color:var(--jade);
  font-size:10px;
  font-weight:760;
}
.agent-runtime-candidate > summary:focus-visible { outline:3px solid rgba(67,119,214,.3); outline-offset:-3px; }
.agent-runtime-candidate-body { max-height:430px; padding:0 12px 12px; overflow:auto; display:grid; gap:9px; }
.agent-runtime-candidate-body section { padding:10px; border-radius:10px; background:rgba(255,255,252,.65); }
.agent-runtime-candidate-body h5 { margin:0 0 5px; color:var(--ink); font-size:10px; }
.agent-runtime-candidate-body p,.agent-runtime-candidate-body ul { margin:0; color:var(--text-soft); font-size:10px; line-height:1.6; }
.agent-runtime-candidate-body ul { padding-left:18px; }
.agent-runtime-candidate-body li + li { margin-top:4px; }
.agent-runtime-candidate-body small { color:var(--muted); font-size:9px; }
.agent-runtime-candidate-body .is-failure { background:rgba(183,72,59,.07); }
.agent-runtime-review-action { padding:11px; display:flex; align-items:center; justify-content:space-between; gap:10px; border-radius:10px; background:rgba(195,147,65,.09); }
.agent-runtime-review-action p { margin:0; color:var(--text-soft); font-size:9px; }
.agent-runtime-error,.agent-runtime-cancel-note { margin:9px 0 0; padding:8px 10px; border-radius:10px; color:#88433a; background:rgba(183,72,59,.08); font-size:8px; line-height:1.5; }
.agent-runtime-actions { margin-top:12px; display:flex; align-items:center; gap:7px; flex-wrap:wrap; }
.agent-runtime-actions small { color:var(--muted); font-size:8px; }
.agent-runtime-empty { min-height:160px; grid-column:1/-1; display:grid; place-content:center; text-align:center; }
.agent-runtime-empty strong { color:var(--jade); }
.agent-runtime-empty p { max-width:560px; margin:7px auto 0; color:var(--muted); font-size:10px; line-height:1.6; }
.agent-delegation-context { padding:13px; display:grid; gap:5px; border-radius:14px; background:rgba(47,128,105,.07); }
.agent-delegation-context p { margin:0; color:var(--text-soft); line-height:1.6; }
.agent-delegation-context span { color:var(--muted); font-size:9px; }
.studio-kanban-panel { margin-top:18px; width:100%!important; max-width:100%; overflow:hidden; }
.studio-kanban {
  margin-top:15px;
  padding:11px;
  display:grid;
  grid-template-columns:repeat(5,minmax(260px,1fr));
  gap:10px;
  overflow-x:auto;
  border-radius:20px;
  background:rgba(232,226,214,.55);
}
.studio-kanban-column {
  min-height:410px;
  padding:8px;
  border-radius:16px;
  background:rgba(255,255,252,.5);
  transition:background .16s,box-shadow .16s;
}
.studio-kanban-column.drag-over { background:rgba(195,147,65,.13); box-shadow:inset 0 0 0 2px rgba(195,147,65,.28); }
.studio-kanban-stack { display:grid; gap:8px; }
.studio-work-card {
  padding:13px;
  border-radius:14px;
  background:rgba(255,255,252,.92);
  box-shadow:0 8px 22px rgba(63,54,42,.07),inset 0 0 0 1px rgba(70,64,54,.05);
  cursor:pointer;
}
.studio-work-card[draggable="true"] { cursor:grab; }
.studio-work-card.is-dragging { opacity:.48; }
.studio-work-card.is-blocked { box-shadow:inset 3px 0 0 #b94336,0 8px 22px rgba(63,54,42,.07); }
.studio-work-card:focus-visible { outline:3px solid rgba(67,119,214,.32); outline-offset:2px; }
.studio-work-heading { display:flex; justify-content:space-between; gap:8px; }
.studio-work-heading h4 { margin:0; font-size:12px; line-height:1.4; }
.studio-work-heading > span { width:20px; height:20px; display:grid; place-items:center; border-radius:50%; color:#fff; background:#b94336; font-weight:800; }
.studio-work-card > p { min-height:34px; margin:6px 0 9px; color:var(--text-soft); font-size:9px; line-height:1.5; }
.studio-work-card > small { display:block; margin-top:8px; color:var(--muted); font-size:8px; overflow-wrap:anywhere; }
.studio-work-progress { margin-top:9px; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:6px; align-items:center; }
.studio-work-progress span { color:var(--muted); font-size:8px; }
.studio-team-panel,.studio-timeline-panel { min-height:480px; }
.studio-event-list { margin-top:14px; max-height:430px; overflow:auto; }
.studio-event { display:grid; grid-template-columns:15px minmax(0,1fr); gap:9px; padding:0 0 14px; position:relative; }
.studio-event > i { width:9px; height:9px; margin-top:4px; border-radius:50%; background:var(--gold); box-shadow:0 0 0 4px rgba(195,147,65,.1); }
.studio-event::before { content:""; position:absolute; left:4px; top:15px; bottom:1px; width:1px; background:rgba(80,91,87,.1); }
.studio-event strong { font-size:10px; }
.studio-event p { margin:3px 0; color:var(--text-soft); font-size:9px; line-height:1.5; }
.studio-event small { color:var(--muted); font-size:8px; }
.studio-message-form { margin-top:12px; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:7px; }
.review-evidence-summary { padding:14px; border-radius:15px; background:rgba(255,255,252,.65); }
.review-evidence-summary strong { display:block; margin-top:8px; }
.review-evidence-summary strong:first-child { margin-top:0; }
.review-evidence-summary p,.review-evidence-summary ul { color:var(--text-soft); line-height:1.55; }

@media (max-width:1400px) {
  .coordination-metrics { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .studio-workflow-shell { grid-template-columns:minmax(0,1fr) 250px; }
}
@media (max-width:1180px) {
  .studio-index-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .coordination-primary-grid,.coordination-secondary-grid { grid-template-columns:1fr; }
  .coordination-risk-panel { min-height:0; max-height:none; }
  .coordination-risk-list { max-height:none; }
}
@media (max-width:900px) {
  .agent-runtime-list { grid-template-columns:1fr; }
  .coordination-hero { grid-template-columns:auto minmax(0,1fr); }
  .coordination-score { width:112px; height:112px; }
  .coordination-score strong { font-size:34px; }
  .coordination-hero-controls { grid-column:1/-1; display:flex; flex-wrap:wrap; }
  .studio-workflow-shell { grid-template-columns:1fr; }
  .studio-workflow-inspector { height:auto; min-height:240px; }
  .coordination-workflow-panel { min-height:0; }
}
@media (max-width:680px) {
  .studio-index-grid,.coordination-metrics { grid-template-columns:1fr; }
  .studio-index-card,.studio-index-empty { min-height:0; }
  .studio-page-header .toolbar-pills { width:100%; display:grid; grid-template-columns:1fr; }
  .coordination-hero { padding:20px; grid-template-columns:1fr; justify-items:start; }
  .coordination-score { justify-self:center; }
  .coordination-hero-controls { width:100%; display:grid; grid-template-columns:1fr; }
  .coordination-workflow-panel,.coordination-risk-panel,.coordination-load,.coordination-governance,.studio-agent-runtime,.studio-kanban-panel,.studio-team-panel,.studio-timeline-panel { padding:15px; }
  .coordination-workflow-panel > .card-header,.coordination-load > .card-header,.coordination-governance > .card-header { align-items:flex-start; flex-direction:column; }
  .workflow-legend { justify-content:flex-start; }
  .governance-form { grid-template-columns:1fr; }
  .governance-check,.governance-form > button,.governance-form > p { grid-column:auto; }
  .coordination-load-main > div { display:grid; }
  .studio-kanban { grid-template-columns:repeat(5,250px); }
  .studio-message-form { grid-template-columns:1fr; }
  .agent-runtime-review-action { align-items:stretch; flex-direction:column; }
}
}
