/* GENESIS environments. Artwork is decorative; all controls and records remain live DOM. */
:root {
  --bg: #060b13;
  --surface: #0e1826;
  --line: #9ab9d321;
  --ink: #edf5ff;
  --muted: #a3b2c6;
  --cyan: #a5efe9;
  --violet: #c2bdff;
  --amber: #f0ca99;
  --red: #ffb0a8;
  --page-art: url('/command/assets/world-hq.webp');
  --accent-rgb: 165, 239, 233;
  font-family: Inter, "Avenir Next", Avenir, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body[data-page="today"] { --page-art: url('/command/assets/today.webp'); }
body[data-page="businesses"], body[data-page="workspace"] { --page-art: url('/command/assets/ventures.webp'); --accent-rgb: 187, 201, 255; }
body[data-page="fatherscan"] { --page-art: url('/command/assets/fatherscan.webp'); --accent-rgb: 240, 202, 153; }
body[data-page="personal"] { --page-art: url('/command/assets/personal.webp'); --accent-rgb: 199, 181, 247; }
body[data-page="health"] { --page-art: url('/command/assets/health.webp'); --accent-rgb: 150, 232, 198; }
body[data-page="library"] { --page-art: url('/command/assets/library.webp'); --accent-rgb: 222, 192, 147; }
body[data-page="harness"] { --page-art: url('/command/assets/harness.webp'); --accent-rgb: 171, 202, 255; }
body[data-page="systems"] { --page-art: url('/command/assets/systems.webp'); --accent-rgb: 153, 223, 255; }
body[data-page="login"] { --page-art: url('/command/assets/gateway.webp'); }

body { background: #060b13; }
::selection { background: #a5efe936; color: #fff; }
button, a, input, textarea, select { -webkit-tap-highlight-color: #a5efe921; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid #e9fffb;
  outline-offset: 4px;
}
button:disabled { cursor: progress; }
h1 { font-weight: 500; letter-spacing: -.055em; }
h2, h3 { font-weight: 550; }
.eyebrow { font-size: 9px; font-weight: 600; letter-spacing: .22em; color: rgb(var(--accent-rgb)); }
.muted { color: var(--muted); }
.shell { grid-template-columns: 224px minmax(0, 1fr); }
.sidebar {
  background: linear-gradient(155deg, #111b29f7, #080e17fc 65%);
  border-color: #c4def211;
  padding: 31px 17px 22px;
  box-shadow: 14px 0 65px #00000025;
}
.sidebar::before {
  content: "";
  position: absolute;
  top: 0; left: 16%; right: 16%; height: 1px;
  background: linear-gradient(90deg, transparent, #b8edf975, transparent);
  pointer-events: none;
}
.brand { padding: 0 8px; margin-bottom: 43px; gap: 11px; }
.brand strong { color: #f0f8ff; font-size: 19px; font-weight: 550; letter-spacing: .2em; }
.brand small { font-size: 7px; letter-spacing: .18em; color: #8d9eb4; }
.logo-mark {
  color: #d9fffa;
  width: 39px; height: 45px;
  background: linear-gradient(145deg, #acdfe933, #6b92b711);
  font-size: 24px; font-weight: 400;
  text-shadow: 0 0 23px #9ffcf58a;
}
.nav-label { font-size: 8px; letter-spacing: .2em; color: #778ba3; margin-left: 17px; margin-bottom: 13px; }
.nav { gap: 6px; }
.nav a {
  min-height: 44px; padding: 12px 15px; gap: 12px;
  color: #a1b0c4; font-size: 11px; border-radius: 8px;
  transition: color .18s, background .18s, border-color .18s;
}
.nav svg { width: 17px; height: 17px; stroke-width: 1.45; }
.nav a:hover { background: #cae5ff09; border-color: #beddf014; color: #f0f7ff; }
.nav a.active {
  color: #d5fffa;
  border-color: #b8efe922;
  background: linear-gradient(100deg, #87c8c81d, #86afc306);
  box-shadow: inset 2px 0 #b5f4e9, 0 6px 22px #0000000d;
}
.nav a .count { color: #c4dcde; background: #badcde0d; border: 1px solid #badcde19; font-size: 9px; }
.sidebar-bottom { padding-top: 25px; }
.secure-note { color: #9ab0c3; font-size: 8px; letter-spacing: .08em; border-color: #b9d8ec15; }
.secure-note svg { width: 15px; height: 15px; color: #a3c9c0; }
.profile { gap: 9px; }
.profile strong { font-size: 11px; }
.profile small { color: #92a1b5; font-size: 9px; }
.avatar { border-color: #c5aa7966; background: linear-gradient(145deg, #cfb77b23, #be925e0b); color: #f1dfb9; font-size: 10px; }
.main {
  background: radial-gradient(ellipse at 90% 0, #1c394c22, transparent 45%), #080e18;
  isolation: isolate;
}
.topbar {
  height: 74px; padding: 0 34px; gap: 24px;
  border-color: #b9d8ec12;
  background: #09121bc7;
  backdrop-filter: blur(22px);
  position: relative; z-index: 10;
}
.crumb { color: #a6b6c9; font-size: 9px; letter-spacing: .17em; }
.crumb span { color: #5d788a; margin: 0 15px; }
.search { width: min(306px, 32vw); }
.search input {
  height: 35px; background: #04091055; border-color: #bacfd71e;
  border-radius: 6px; font-size: 10px;
}
.search svg { width: 14px; height: 14px; top: 10px; color: #a0b4c5; }
.live-pill { color: #b8e8d7; font-size: 8px; letter-spacing: .11em; }
.dot { width: 4px; height: 4px; box-shadow: 0 0 12px #a2f8cc80; }
.content { padding: 25px 32px 42px; max-width: 1780px; }

/* A full environmental view anchors every functional page. */
body:not([data-page="world"]) .page-head {
  position: relative; isolation: isolate;
  display: flex; align-items: flex-end; justify-content: space-between;
  min-height: clamp(310px, 27vw, 410px);
  padding: 38px 36px;
  gap: 26px; margin: 0 0 25px;
  border: 1px solid #c5e7ff28;
  border-radius: 16px;
  overflow: hidden;
  background: #152639;
  box-shadow: 0 18px 70px #00000025, inset 0 0 0 1px #ffffff04;
}
body:not([data-page="world"]) .page-head::before {
  content: "";
  position: absolute; inset: 0; z-index: -2;
  background-image: linear-gradient(90deg, #05101cea 0%, #06101c87 42%, #09132208 77%), linear-gradient(0deg, #07111bde, #07111b08 64%), var(--page-art);
  background-position: center;
  background-size: cover;
  transform: scale(1.025);
  animation: genesis-environment-drift 36s ease-in-out infinite alternate;
}
body:not([data-page="world"]) .page-head::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  pointer-events: none; opacity: .65;
  background-image: radial-gradient(circle at 77% 26%, #d4faff 0 1px, transparent 2px), radial-gradient(circle at 60% 64%, #adfcff 0 1px, transparent 2px), radial-gradient(circle at 91% 47%, #f3e4af 0 1px, transparent 2px), radial-gradient(circle at 48% 18%, #ffffff 0 .7px, transparent 1.5px);
  animation: genesis-motes 12s ease-in-out infinite alternate;
}
body:not([data-page="world"]) .page-head > div:first-child { max-width: 570px; position: relative; min-width: 0; }
body:not([data-page="world"]) .page-head .eyebrow {
  display: flex; align-items: center; gap: 11px;
  margin-bottom: 17px; line-height: 1.6;
  text-shadow: 0 2px 15px #000;
}
body:not([data-page="world"]) .page-head .eyebrow::before { content: ""; width: 23px; height: 1px; background: currentColor; box-shadow: 0 0 12px currentColor; }
body:not([data-page="world"]) .page-head h1 {
  font-size: clamp(35px, 3.5vw, 58px); line-height: 1.06; margin-bottom: 15px;
  color: #f5f8ff; font-weight: 450;
  text-shadow: 0 4px 28px #00000080;
  text-wrap: balance;
}
body:not([data-page="world"]) .page-head p { max-width: 390px; font-size: 11px; line-height: 1.8; color: #d6e2ed; text-shadow: 0 2px 15px #000; }
body:not([data-page="world"]) .page-head > .actions { position: relative; flex-direction: column; align-items: stretch; min-width: max-content; gap: 9px; }
.actions { gap: 9px; }
.btn {
  min-height: 38px; padding: 11px 16px;
  font-size: 10px; font-weight: 600; letter-spacing: .015em;
  border-radius: 7px;
  background: linear-gradient(145deg, #213144cc, #132132d9);
  border-color: #a6c9de40;
  color: #e0edf4;
  box-shadow: inset 0 1px #ffffff09, 0 4px 14px #00000015;
  backdrop-filter: blur(15px);
  transition: background .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.btn:hover { background: #254152; border-color: #add2de8a; box-shadow: inset 0 1px #ffffff15, 0 6px 20px #00000030; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.primary {
  background: linear-gradient(110deg, #d1f9ee, #a9dcdf);
  border-color: #d4faf3; color: #112d35;
  box-shadow: 0 4px 20px #91dbe61c, inset 0 1px #ffffff99;
}
.btn.primary:hover { background: linear-gradient(110deg, #ecfff9, #c3eef0); border-color: #effffc; }
.btn.violet { color: #e8e5ff; background: linear-gradient(145deg, #31344ac9, #282941da); border-color: #c2baf65a; }
.btn.violet:hover { background: #41455b; border-color: #d6caff9c; }
.btn svg { width: 14px; height: 14px; }
.text-link { font-size: 10px; color: #bbebe8; }
.icon-btn { color: #a6bbce; min-width: 29px; min-height: 29px; border-radius: 6px; }
.icon-btn:hover { color: #e8fffa; background: #d1ecff0a; }
.stats { gap: 16px; margin-bottom: 23px; }
.stat {
  padding: 22px 24px; border-radius: 12px;
  background: linear-gradient(130deg, #152335d9, #0d1825e8);
  border-color: #b9d5e929; box-shadow: inset 0 1px #edf6ff05, 0 10px 25px #00000010;
  position: relative; overflow: hidden;
}
.stat::after { content: ""; position: absolute; left: 0; top: 23px; width: 2px; height: 23px; background: rgb(var(--accent-rgb)); opacity: .65; }
.stat .label { font-size: 10px; color: #bac9dc; gap: 9px; }
.stat svg { color: rgb(var(--accent-rgb)); width: 14px; height: 14px; }
.stat strong { margin: 12px 0 6px; font-weight: 450; font-size: 34px; letter-spacing: -.04em; color: #f2f8ff; }
.stat small { color: #a0b1c8; font-size: 9px; }
.panel {
  border-color: #afcde026;
  border-radius: 14px;
  background: linear-gradient(145deg, #142131ea, #0d1725f5);
  box-shadow: inset 0 1px #dbefff06, 0 10px 34px #00000014;
}
.panel-pad { padding: 25px; }
.panel-title { margin-bottom: 21px; }
.panel-title h2, .section-line h2 { font-size: 16px; letter-spacing: -.025em; }
.panel-title .eyebrow { color: #8ba7bd; }
.dashboard-grid, .workspace-grid { gap: 20px; }
.focus-hero {
  min-height: 200px; padding: 26px 28px;
  border-color: #c3d8eb22;
  background: radial-gradient(ellipse at 90% 40%, #5bacaa19, transparent 66%), linear-gradient(130deg, #192d3ea6, #102131cc);
}
.focus-hero h2 { font-size: 27px; font-weight: 450; color: #f0f6fc; }
.focus-hero p { color: #b1c4d6; font-size: 11px; }
.orbit { filter: drop-shadow(0 0 20px #a0e8db08); }
.ring { background: conic-gradient(#bcf0db var(--progress,0%), #284052 0); padding: 2px; }
.ring-inner { background: radial-gradient(circle at 30% 20%, #203e4c, #152634 75%); box-shadow: inset 0 1px #dcfbff1c, inset 0 -4px 30px #0005; }
.ring strong { color: #e3f8fa; font-size: 25px; }
.ring small { color: #b5ccdb; }
.orbit::before, .orbit::after { border-color: #b4dadd38; }
.orbit::before { animation: genesis-orbit-breathe 9s ease-in-out infinite; }
.mission-card {
  background-image: linear-gradient(90deg, #101a2bef, #14202da6 60%, #131c2640), linear-gradient(0deg, #101a2bd9, transparent), url('/command/assets/fatherscan.webp');
  background-position: center; background-size: cover;
  min-height: 255px;
}
.mission-card .mission-art { display: none; }
.mission-card .eyebrow { color: #f0d3a5; }
.mission-card h2 { color: #fff4df; font-size: 30px; font-weight: 450; letter-spacing: -.035em; }
.mission-card p { color: #d2dde7; }
.quote { color: #edf4fa; font-size: 26px; font-weight: 450; letter-spacing: -.04em; line-height: 1.45; }
.health-mini { padding: 24px; }
.health-mini .health-icon { background: #98c8b10d; color: #b7e6d2; border: 1px solid #aedbc127; }
.health-mini p { color: #a4b8c9; }
.task-row { padding: 18px 0; border-color: #b0d0e517; gap: 13px; }
.task-row h3 { font-size: 12px; line-height: 1.5; font-weight: 550; color: #e1edf6; }
.task-row p { color: #a6b9cf; font-size: 11px; line-height: 1.65; }
.task-row.done h3 { color: #8c9bac; }
.task-meta { color: #99aec4; font-size: 9px; margin-top: 9px; }
.check { border-color: #aec8df4d; background: #0a121a; border-radius: 5px; width: 18px; height: 18px; margin-top: 3px; }
.check:hover { border-color: #bdece2; box-shadow: 0 0 12px #bdece210; }
.check.checked { background: #aee6d72b; color: #c9f6e8; border-color: #bbf2e365; }
.badge { border-color: #a8c9e332; background: #99b7df08; color: #c2d3e5; font-size: 8px; letter-spacing: .025em; padding: 4px 7px; }
.badge.high { color: #ffe1b7; background: #e4bb6b0c; border-color: #e4bb6b36; }
.badge.done, .badge.connected, .badge.completed { color: #b9efdc; background: #84d6bb0d; border-color: #9bd9c12b; }
.badge.running { color: #d7d7ff; background: #b2abfa0c; border-color: #b6b0ef3d; }
.badge.failed, .badge.interrupted { color: #ffbfb3; border-color: #ed978546; background: #ef99800a; }
.count-chip { border-color: #b4d7e72b; color: #a7bdce; font-size: 9px; background: #c7e8ff04; }
.empty { padding: 38px 20px; color: #a7bcd0; }
.empty svg { color: rgb(var(--accent-rgb)); opacity: .75; width: 26px; height: 26px; margin-bottom: 14px; }
.empty strong { font-size: 13px; color: #e0edf7; margin-bottom: 9px; font-weight: 500; }
.empty p { font-size: 11px; line-height: 1.8; max-width: 380px; margin-bottom: 18px; }
.section-line { margin-top: 34px; }
.portfolio-grid { gap: 17px; }
.business-card {
  min-height: 218px; padding: 24px;
  border-radius: 12px; border-color: #b2cde438;
  background-image: linear-gradient(0deg, #081522f5, #0918289c 58%, #0c1b3030), url('/command/assets/ventures.webp');
  background-size: cover; background-position: center 38%;
  overflow: hidden; display: flex; flex-direction: column; align-items: flex-start;
  box-shadow: 0 9px 35px #0000001c, inset 0 1px #ffffff09;
}
.business-card:nth-child(3n+2) { background-position: 75% 50%; }
.business-card:nth-child(3n+3) { background-position: 35% 70%; }
.business-card::after { content: ""; position: absolute; top: 0; left: 15%; right: 15%; height: 1px; background: linear-gradient(90deg, transparent, #b8eced7a, transparent); }
.business-card:hover { border-color: #c6eeef80; transform: translateY(-3px); box-shadow: 0 18px 40px #0005, 0 0 25px #99d8e108; }
.business-mark { color: #dce6fa; background: linear-gradient(130deg, #b5bde021, #aec8df09); border-color: #ccdeec41; border-radius: 8px; width: 35px; height: 35px; font-size: 11px; backdrop-filter: blur(10px); }
.business-card .business-mark { margin-bottom: auto; }
.business-card:nth-child(3n+2) .business-mark { color: #e3fff6; background: #abdcd313; border-color: #aedfd83b; }
.business-card h3 { font-size: 17px; font-weight: 500; letter-spacing: -.025em; margin: 24px 0 9px; color: #f4f7fc; }
.business-card p { color: #bdcddd; font-size: 10px; }
.business-card .arrow { top: 27px; right: 24px; color: #ccdde8; }
.business-card .arrow svg { width: 16px; height: 16px; }
.feed-item { border-color: #b2d1e81a; padding: 20px 0; }
.feed-item h3 { color: #e0ecf8; font-size: 12px; }
.feed-item p { color: #afc1d6; line-height: 1.8; }
.feed-item time { color: #97adc4; }
.record-line { border-color: #a4c5df1d; padding: 18px 0; }
.record-line strong { color: #deedf7; }
.record-line small { color: #a7bacd; line-height: 1.6; }
.record-line .value { color: #beebd7; font-weight: 450; }
.health-header { background: radial-gradient(ellipse at 95% 0, #4b99872b, transparent 65%), linear-gradient(135deg, #102632, #10202c); }
.chart { height: 210px; padding: 10px 3px; }
.chart-caption { color: #acbfcf; font-size: 9px; }
.card-grid { gap: 20px; }
.status-card { min-height: 235px; background: radial-gradient(ellipse at 90% 0, #6473b927, transparent 60%), linear-gradient(145deg, #1b2940e3, #0d1725f5); }
.status-card h2 { color: #edf3fe; font-size: 23px; font-weight: 450; }
.status-card p { color: #b9c8d9; font-size: 11px; }
body[data-page="harness"] .status-card { position: relative; isolation: isolate; min-height: 269px; padding-right: 35%; }
body[data-page="harness"] .status-card::after {
  content: ""; position: absolute; right: -2%; top: 14px; bottom: 0; width: 48%; z-index: -1;
  background: url('/command/assets/agent-claude.webp') center bottom / contain no-repeat;
  opacity: .9; pointer-events: none; filter: drop-shadow(0 0 20px #edc29417);
}
body[data-page="harness"] .status-card:nth-child(2)::after { background-image: url('/command/assets/agent-codex.webp'); filter: drop-shadow(0 0 20px #a7e4f224); }
body[data-page="harness"] .status-card header { min-width: max-content; gap: 12px; }
body[data-page="harness"] .status-card header .badge { background: #142330e8; backdrop-filter: blur(12px); }
.provider-logo { color: #d8deff; background: linear-gradient(130deg, #aaa5f829, #9bcbdf08); border-color: #c6c0ff4d; border-radius: 11px; width: 44px; height: 44px; }
.system-list li { border-color: #b1cce51f; font-size: 11px; line-height: 1.7; }
.run-row { border-color: #b1cce51d; padding: 19px 0; }
.run-row h3 { color: #ddebf7; font-size: 12px; line-height: 1.5; }
.run-row p { color: #9eb3c8; font-size: 10px; }
.run-output { border-color: #adc9e22b; background: #060e19; border-radius: 8px; color: #d2e5f4; font-size: 12px; }
.inline-note { color: #aebfd2; background: #b4c9ff06; border-color: #b1c2fa23; border-radius: 8px; font-size: 11px; padding: 16px 18px; line-height: 1.8; }
.footer-note { color: #8ba1b7; letter-spacing: .12em; font-size: 8px; padding-top: 21px; border-top: 1px solid #a9cadb12; margin-top: 33px; }
.tabs { gap: 8px; }
.tab { background: #0e1b2a; color: #a9bed1; border-color: #aac9df27; }
.tab.active { color: #c5f4ea; background: #9cdeca12; border-color: #a8dece52; }

/* Input surfaces stay opaque enough to read over the illustrated environments. */
input, textarea, select {
  background: #081320; border-color: #bfd8ed32; color: #e7f0fa;
  padding: 12px 13px; border-radius: 6px; font-size: 12px;
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: #7e94ae; opacity: 1; }
input:focus, textarea:focus, select:focus { border-color: #b6ebde; box-shadow: 0 0 0 3px #a9e2d512; outline: 0; }
label { font-size: 11px; font-weight: 500; color: #c1d3e5; margin-bottom: 19px; }
label input, label textarea, label select { margin-top: 9px; }
select option { background: #101d2d; color: #e1ecf8; }
.list-controls select { padding: 8px 12px; border-radius: 6px; }
dialog {
  background: linear-gradient(145deg, #17263a, #0b1727 75%);
  border-color: #bdddef4d; border-radius: 16px;
  padding: 30px; box-shadow: 0 28px 140px #000c, inset 0 1px #e6fbff13;
}
dialog::backdrop { background: #03080dba; backdrop-filter: blur(12px) saturate(.7); }
.dialog-head { margin-bottom: 25px; }
.dialog-head h2 { font-size: 24px; font-weight: 450; letter-spacing: -.035em; }
.form-actions { padding-top: 17px; border-top: 1px solid #bdd6e61a; }
.search-results { background: #111f30f9; border-color: #b0d3ee45; backdrop-filter: blur(25px); padding: 8px; }
.search-results button { line-height: 1.6; }
.search-results button:hover { background: #b3d9e915; }
.search-results small { color: #adc2d8; }
#toast { color: #d7faea; background: #183631f2; border-color: #b8efcd69; font-size: 11px; backdrop-filter: blur(20px); box-shadow: 0 10px 45px #0006; }

/* The gateway is an illustrated room, while authentication remains unchanged. */
.login {
  background: linear-gradient(90deg, #0b172799, #080f1ce0 65%), url('/command/assets/gateway.webp') center / cover;
  grid-template-columns: minmax(0, 1.3fr) minmax(390px, 1fr);
}
.login-story { border-right-color: #b9d4e82b; padding: 48px 55px; min-height: 100vh; }
.login-story::before { background: linear-gradient(0deg, #07111bbf, transparent 65%); opacity: 1; }
.login-story > * { position: relative; }
.login-story .brand { padding: 0; }
.login-story h1 { max-width: 650px; font-size: clamp(44px, 4.7vw, 76px); font-weight: 400; line-height: 1.04; letter-spacing: -.055em; margin: 25px 0; text-shadow: 0 4px 32px #0006; }
.login-story h1 span { color: #dcf3ee; }
.login-story p { color: #cbd9e4; font-size: 12px; max-width: 340px; }
.login-orb { display: none; }
.login-story .eyebrow { color: #d0eaf2; }
.login-story .footer-note { border: 0; color: #b8cedb; }
.login-panel { background: linear-gradient(145deg, #0c172c45, #07101dc2); backdrop-filter: blur(16px); padding: 45px; }
.login-panel form { max-width: 350px; }
.login-panel h2 { font-size: 32px; line-height: 1.13; letter-spacing: -.04em; font-weight: 450; }
.login-panel p { color: #afc1d5; font-size: 11px; line-height: 1.8; }
.login-panel input { background: #07111be3; }
.login-panel .inline-note { background: #a9cdec07; color: #a6b9cd; }
.login-panel .eyebrow { color: #badcda; }
.boot { background: radial-gradient(ellipse at 50% 30%, #28566a2b, transparent 45%), #080e18; }

@keyframes genesis-environment-drift {
  from { transform: scale(1.025) translate3d(0, 0, 0); }
  to { transform: scale(1.075) translate3d(-.35%, -.35%, 0); }
}
@keyframes genesis-motes {
  from { transform: translateY(8px); opacity: .28; }
  to { transform: translateY(-8px); opacity: .7; }
}
@keyframes genesis-orbit-breathe {
  0%, 100% { opacity: .6; }
  50% { opacity: 1; }
}

@media (min-width: 1600px) {
  .content { padding: 30px 42px 48px; }
  .topbar { padding-inline: 42px; }
  body:not([data-page="world"]) .page-head { min-height: 410px; padding: 42px; }
  body:not([data-page="world"]) .page-head h1 { font-size: 63px; }
  .stat { padding: 25px 28px; }
  .business-card { min-height: 252px; }
}
@media (max-width: 1150px) {
  .shell { grid-template-columns: 198px minmax(0, 1fr); }
  .sidebar { width: 198px; padding-inline: 12px; }
  .brand { gap: 8px; padding-inline: 5px; }
  .brand strong { font-size: 17px; }
  .brand small { font-size: 6px; }
  .content { padding: 22px 24px 40px; }
  .topbar { padding-inline: 24px; gap: 17px; }
  body:not([data-page="world"]) .page-head { padding: 31px 28px; min-height: 340px; align-items: flex-end; }
  body:not([data-page="world"]) .page-head h1 { font-size: clamp(35px, 4.1vw, 48px); }
  body:not([data-page="world"]) .page-head > .actions { min-width: auto; max-width: 220px; }
  body:not([data-page="world"]) .page-head .btn { padding-inline: 12px; font-size: 9px; }
  .stat { padding: 21px 19px; }
  .stat strong { font-size: 29px; }
  .panel-pad { padding: 23px; }
  .business-card { min-height: 208px; }
  .login-story { padding: 38px; }
}
@media (max-width: 900px) {
  .content { padding: 20px 20px 36px; }
  body:not([data-page="world"]) .page-head { min-height: 355px; flex-wrap: wrap; align-content: flex-end; gap: 23px; padding: 28px; }
  body:not([data-page="world"]) .page-head > div:first-child { max-width: 470px; }
  body:not([data-page="world"]) .page-head > .actions { flex-direction: row; flex-wrap: wrap; max-width: none; align-items: center; justify-content: flex-start; }
  body:not([data-page="world"]) .page-head::before { background-image: linear-gradient(90deg, #05101cc4, #06101c49 75%), linear-gradient(0deg, #07111be8, #07111b15 83%), var(--page-art); }
  .stats { gap: 10px; }
  .stat { padding: 19px 17px; }
  .stat strong { font-size: 27px; }
  .stat .label { font-size: 9px; }
  .stat small { font-size: 8px; }
  .topbar { padding-inline: 20px; }
  .crumb { display: none; }
  .search { width: 100%; margin-left: 0; }
  .portfolio-grid { gap: 12px; }
  .business-card { min-height: 200px; padding: 21px; }
  .business-card h3 { font-size: 16px; }
  .login { grid-template-columns: 1fr 1fr; }
  .login-story { padding: 30px; }
  .login-panel { padding: 28px; }
  .login-story h1 { font-size: 46px; }
}
@media (max-width: 650px) {
  .shell { display: block; }
  .sidebar { width: 246px; padding: 27px 18px; }
  .sidebar .brand { margin-bottom: 33px; }
  .brand strong { font-size: 19px; }
  .brand small { font-size: 7px; }
  .nav a { font-size: 12px; padding: 12px 14px; min-height: 45px; }
  .topbar { height: 64px; padding-inline: 15px; background: #091421ed; }
  .content { padding: 15px 15px 30px; }
  body:not([data-page="world"]) .page-head { min-height: 390px; padding: 24px 22px; border-radius: 12px; margin-bottom: 17px; gap: 22px; }
  body:not([data-page="world"]) .page-head::before { background-image: linear-gradient(0deg, #05101cef, #07132064 65%, #0b172929), var(--page-art); background-position: 62% center; }
  body:not([data-page="world"]) .page-head h1 { font-size: clamp(35px, 10vw, 47px); max-width: 380px; margin-bottom: 12px; }
  body:not([data-page="world"]) .page-head p { font-size: 11px; max-width: 300px; }
  body:not([data-page="world"]) .page-head .eyebrow { font-size: 8px; margin-bottom: 12px; gap: 8px; }
  body:not([data-page="world"]) .page-head .eyebrow::before { width: 16px; }
  body:not([data-page="world"]) .page-head > .actions { gap: 9px; }
  body:not([data-page="world"]) .page-head .btn { min-height: 39px; font-size: 9px; padding: 11px 12px; }
  .stats { gap: 10px; margin-bottom: 18px; }
  .stat { padding: 17px; border-radius: 10px; }
  .stat .label { font-size: 9px; }
  .stat strong { margin: 10px 0 5px; font-size: 29px; }
  .stat small { font-size: 8px; }
  .stats .stat:last-child strong { font-size: 27px; }
  .panel { border-radius: 12px; }
  .panel-pad { padding: 21px; }
  .panel-title h2 { font-size: 15px; }
  .focus-hero { padding: 24px 21px; min-height: 186px; }
  .focus-hero h2 { font-size: 24px; }
  .focus-hero p { max-width: 175px; font-size: 10px; }
  .dashboard-grid, .workspace-grid, .side-stack, .card-grid { gap: 17px; }
  .mission-card { min-height: 243px; padding: 26px; }
  .health-mini { padding: 20px; }
  .business-card { min-height: 185px; padding: 18px; }
  .business-card h3 { font-size: 15px; margin-top: 25px; }
  .business-card p { font-size: 9px; line-height: 1.65; }
  .business-card .arrow { top: 21px; right: 17px; }
  .business-mark { width: 32px; height: 32px; font-size: 10px; }
  .task-row h3 { font-size: 12px; }
  .task-row p { font-size: 10px; }
  .task-row { gap: 11px; }
  .task-meta { font-size: 8px; }
  .footer-note { font-size: 7px; line-height: 1.8; gap: 7px; margin-top: 25px; }
  .empty { padding: 29px 14px; }
  dialog { padding: 24px 21px; border-radius: 13px; max-height: 88dvh; }
  .dialog-head h2 { font-size: 22px; }
  .form-actions { flex-wrap: wrap; }
  .login { display: flex; flex-direction: column; background-position: center top; }
  .login-story { padding: 28px; min-height: 390px; border: 0; background: linear-gradient(0deg, #0a142acc, transparent); }
  .login-story h1 { font-size: 46px; max-width: 360px; }
  .login-story .brand { margin-bottom: 42px; }
  .login-story p { font-size: 11px; }
  .login-panel { padding: 30px 28px 44px; border-top: 1px solid #bedbea24; background: #091324e6; }
  .login-panel form { max-width: 420px; }
  .login-panel h2 { font-size: 30px; }
}
@media (max-width: 380px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .business-card { min-height: 205px; }
  .stats { grid-template-columns: 1fr; }
  .stats .stat:last-child { grid-column: auto; }
  .stat { display: grid; grid-template-columns: 1fr auto; align-items: center; }
  .stat strong { grid-column: 2; grid-row: 1 / 3; margin: 0; }
  .stat small { grid-column: 1; margin-top: 6px; }
  body:not([data-page="world"]) .page-head { padding-inline: 18px; min-height: 415px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  body:not([data-page="world"]) .page-head::before { transform: none; }
}

.hero-loop{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-3;pointer-events:none}.page-head.has-motion-art::before{background-image:linear-gradient(90deg,#05101cea 0%,#06101c87 42%,#09132208 77%),linear-gradient(0deg,#07111bde,#07111b08 64%)!important}.ambience-toggle{position:absolute;top:16px;right:16px;border:1px solid #c4e5e544;background:#07131dbb;color:#cde4ed;font-size:9px;padding:7px 10px;border-radius:20px;z-index:4;backdrop-filter:blur(15px)}.login{position:relative;isolation:isolate}.login>.hero-loop{z-index:-1;opacity:.6}.login>.ambience-toggle{right:auto;left:24px;top:auto;bottom:24px}@media(prefers-reduced-motion:reduce){.hero-loop,.ambience-toggle{display:none}}

/* Empty collections offer working entry points; saved references retain their existing list. */
.sidebar { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #30495c transparent; }
.sidebar > * { flex-shrink: 0; }
.library-onboarding-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin: 5px 0 20px; }
.library-onboarding-head h2 { margin: 0; color: #e3edf7; font-size: 18px; font-weight: 450; letter-spacing: -.03em; }
.library-onboarding-head p { margin: 0; max-width: 400px; color: #a5b9cd; font-size: 10px; line-height: 1.8; }
.library-collections { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.library-collection {
  --collection-art: url('/command/assets/ventures.webp');
  position: relative; isolation: isolate; display: flex; flex-direction: column;
  min-width: 0; min-height: 258px; padding: 21px; border: 1px solid #b8d6e83d;
  border-radius: 12px; color: #e5f1f8; text-align: left; overflow: hidden;
  background: #102030; box-shadow: inset 0 1px #e3f2ff0d, 0 10px 30px #00000020;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.library-collection::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(0deg, #081523f7 0%, #091827cb 42%, #0b1b3066 74%, #0b1b308a), var(--collection-art);
  background-size: cover; background-position: center;
  transition: transform .5s;
}
.library-collection[data-collection='fatherscan'] { --collection-art: url('/command/assets/fatherscan.webp'); }
.library-collection[data-collection='personal'] { --collection-art: url('/command/assets/personal.webp'); }
.library-collection[data-collection='health'] { --collection-art: url('/command/assets/health.webp'); }
.library-collection:hover { transform: translateY(-3px); border-color: #c7e4ef82; box-shadow: 0 15px 35px #0005; }
.library-collection:hover::before { transform: scale(1.055); }
.library-collection-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; margin-bottom: auto; color: #d2e4ee; }
.library-collection-top > span { font-size: 7px; letter-spacing: .15em; text-shadow: 0 2px 10px #000; }
.library-collection-top svg { width: 17px; height: 17px; color: #d5eee5; filter: drop-shadow(0 2px 6px #000); }
.library-collection-copy { display: grid; gap: 10px; margin-top: 43px; }
.library-collection-copy strong { font-size: 18px; line-height: 1.2; font-weight: 450; letter-spacing: -.035em; color: #f1f6ff; }
.library-collection-copy > span { font-size: 10px; line-height: 1.75; color: #b9cadb; }
.library-collection-cta { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 9px; margin-top: 22px; padding-top: 14px; border-top: 1px solid #c7e3ee29; font-size: 9px; color: #c6f0e6; }
.library-collection-cta svg { width: 14px; height: 14px; }
.library-footnote { display: flex; gap: 8px; align-items: center; color: #90a6bd; font-size: 9px; line-height: 1.8; margin: 18px 0 0; }
.library-footnote svg { width: 13px; height: 13px; flex-shrink: 0; }
@media (max-width: 1200px) { .library-collections { grid-template-columns: repeat(2, minmax(0, 1fr)); } .library-collection { min-height: 238px; } }
@media (max-width: 750px) { .library-onboarding-head { display: block; margin-bottom: 18px; } .library-onboarding-head p { margin-top: 9px; } }
@media (max-width: 500px) { .library-collections { gap: 11px; } .library-collection { padding: 17px; min-height: 270px; } .library-collection-copy strong { font-size: 17px; } .library-collection-copy > span { font-size: 10px; } .library-collection-cta { font-size: 8px; gap: 5px; } }
@media (max-width: 380px) { .library-collections { grid-template-columns: 1fr; } .library-collection { min-height: 230px; } }

/* Each existing venture has its own environment. */
body[data-page="workspace"][data-workspace="council"] { --page-art: url("/command/assets/venture-council.webp"); }
.business-card[data-venture="council"] { background-image: linear-gradient(0deg, #081522f5, #0918289c 58%, #0c1b3030), url("/command/assets/venture-council.webp"); }
body[data-page="workspace"][data-workspace="mercury"] { --page-art: url("/command/assets/venture-mercury.webp"); }
.business-card[data-venture="mercury"] { background-image: linear-gradient(0deg, #081522f5, #0918289c 58%, #0c1b3030), url("/command/assets/venture-mercury.webp"); }
body[data-page="workspace"][data-workspace="aligned"] { --page-art: url("/command/assets/venture-aligned.webp"); }
.business-card[data-venture="aligned"] { background-image: linear-gradient(0deg, #081522f5, #0918289c 58%, #0c1b3030), url("/command/assets/venture-aligned.webp"); }
body[data-page="workspace"][data-workspace="omni"] { --page-art: url("/command/assets/venture-omni.webp"); }
.business-card[data-venture="omni"] { background-image: linear-gradient(0deg, #081522f5, #0918289c 58%, #0c1b3030), url("/command/assets/venture-omni.webp"); }
body[data-page="workspace"][data-workspace="neobrain"] { --page-art: url("/command/assets/venture-neobrain.webp"); }
.business-card[data-venture="neobrain"] { background-image: linear-gradient(0deg, #081522f5, #0918289c 58%, #0c1b3030), url("/command/assets/venture-neobrain.webp"); }
body[data-page="workspace"][data-workspace="lance"] { --page-art: url("/command/assets/venture-lance.webp"); }
.business-card[data-venture="lance"] { background-image: linear-gradient(0deg, #081522f5, #0918289c 58%, #0c1b3030), url("/command/assets/venture-lance.webp"); }
/* Living workspaces lead with their operational room. */
body[data-living="true"] .page-head{min-height:0;padding:8px 0 25px;margin:0;border:0;border-radius:0;background:none;box-shadow:none;align-items:center}
body[data-living="true"] .page-head::before,body[data-living="true"] .page-head::after{display:none}
body[data-living="true"] .page-head h1{font-size:clamp(29px,3vw,46px);margin-bottom:10px}
body[data-living="true"] .page-head .eyebrow{margin-bottom:11px}
body[data-living="true"] .page-head>.actions{flex-direction:row;flex-wrap:wrap}
.project-section{margin:25px 0 30px}.project-section .section-line{margin-top:0}
.business-card[data-venture="golden-media"]{background-image:linear-gradient(0deg,#160e0af5,#10132375 65%,#10132310),url('/command/assets/world-golden-media.webp');min-height:280px}
.business-card[data-venture="golden-tech"]{background-image:linear-gradient(0deg,#081522f5,#09182885 65%,#0c1b3010),url('/command/assets/world-golden-tech.webp');min-height:280px}
body[data-page="businesses"] .portfolio-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:650px){body[data-page="businesses"] .portfolio-grid{grid-template-columns:1fr}body[data-living="true"] .page-head{padding:4px 0 20px;gap:13px}body[data-living="true"] .page-head>.actions{width:100%}.project-section{margin-top:20px}.business-card[data-venture="golden-media"],.business-card[data-venture="golden-tech"],.business-card[data-venture="ironclad"]{min-height:240px}}

body[data-page="workspace"][data-workspace="biopoint"]{--page-art:url("/command/assets/venture-biopoint.webp")}
.business-card[data-venture="biopoint"]{background-image:linear-gradient(0deg,#081522f5,#0918289c 58%,#0c1b3030),url("/command/assets/venture-biopoint.webp")}
body[data-page="workspace"][data-workspace="ironclad"]{--page-art:url('/command/assets/world-ironclad.webp')}
.business-card[data-venture="ironclad"]{background-image:linear-gradient(0deg,#0b141af5,#12213188 65%,#11233210),url('/command/assets/world-ironclad.webp');min-height:280px}
@media(max-width:650px){.business-card[data-venture="ironclad"]{min-height:240px}}

/* Original brand artwork: contain the entire mark without cropping or filters. */
.venture-logo{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:104px;height:72px;border:1px solid #c8d4eb24;border-radius:12px;overflow:hidden;padding:5px;box-sizing:border-box;background:#080a0e}
.venture-logo--light{background:#f7f7f4}
.venture-logo img{display:block;width:100%;height:100%;object-fit:contain}
.business-card .venture-logo{margin-bottom:auto}
.business-card:has(.venture-logo) h3{margin-top:18px}
.venture-heading{display:flex;align-items:center;gap:20px;min-width:0}
.venture-heading>div{min-width:0}
.venture-logo--heading{width:112px;height:96px}
.venture-heading h1{overflow-wrap:anywhere}
@media(max-width:650px){.venture-heading{gap:12px}.venture-logo--heading{width:76px;height:76px}.venture-heading h1{font-size:27px}.venture-heading p{font-size:11px}.business-card .venture-logo{width:88px;height:64px}}

.mission-history-list{display:grid}
.mission-history-row{display:flex;align-items:center;gap:12px;width:100%;min-width:0;padding:11px 0;background:none;border:0;border-bottom:1px solid #b1cce51d;color:var(--ink);text-align:left;cursor:pointer}
.mission-history-row:hover{background:#a6d8ee08}.mission-history-row:focus-visible{outline:2px solid var(--cyan);outline-offset:3px;border-radius:5px}
.mission-history-provider{flex:0 0 26px;text-align:center;color:var(--violet);font-size:19px}
.mission-history-copy{flex:1;min-width:0}.mission-history-copy strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:500;line-height:1.5}.mission-history-copy small{display:block;font-size:10px;color:var(--muted);margin-top:4px}
.mission-history-row>.badge{flex-shrink:0}.mission-history-row>svg{width:14px;flex-shrink:0;color:var(--muted)}
.mission-history-pager{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:16px;font-size:11px;color:var(--muted)}.mission-history-pager>div{display:flex;align-items:center;gap:12px}.mission-history-pager .btn{padding:7px 12px;font-size:11px}
@media(max-width:650px){.mission-history{padding:18px}.mission-history-row{gap:8px}.mission-history-provider{flex-basis:18px}.mission-history-row>svg{display:none}.mission-history-row>.badge{font-size:8px;padding:4px 6px}.mission-history-copy small{font-size:9px;line-height:1.5}.mission-history-pager{flex-wrap:wrap}.mission-history-pager>div{gap:8px}}

/* Unified Data Room */
.data-room-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0}.data-room-filters label,.data-room-category{display:grid;gap:6px;font-size:12px}.data-room-filters input,.data-room-filters select,.data-room-category select{width:100%;min-width:0;padding:10px;background:var(--panel,#151d2c);color:inherit;border:1px solid #ffffff26;border-radius:8px}.data-room-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.data-room-item{min-width:0}.data-room-item h3{overflow-wrap:anywhere;font-size:16px;margin:10px 0}.data-room-item .actions{flex-wrap:wrap}.data-room-item .btn{white-space:normal;text-align:left;overflow-wrap:anywhere}.data-room-excerpt{font-size:12px;line-height:1.6;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.data-room-category{margin-top:12px}.data-room-item .muted{font-size:11px}.data-room-list+.library-pagination{gap:14px;margin:20px 0}@media(max-width:800px){.data-room-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.data-room-list{grid-template-columns:1fr}}@media(max-width:420px){.data-room-filters{grid-template-columns:1fr}}
