/*
 * Continuum design system.
 *
 * Taken from `prototype/styles.css`, which is design work done for this product and is design
 * reference only — it is not modified, ported or depended on at runtime. This is a copy, and the
 * copy is the frontend's own from here on. Apart from this comment it is byte-for-byte the
 * original, so a diff against `prototype/styles.css` stays readable — keep it that way.
 *
 * The two deliberate departures from the prototype are therefore not in this file:
 *
 *   - `index.html` does not load the prototype's web font links. A deployment may be EU-only or
 *     air-gapped, so the type stack declared below falls back to the system UI font rather than
 *     fetching from a third party on every page load;
 *   - this slice is header-led rather than sidebar-led, so `continuum.css` redeclares `.app-shell`
 *     and the sidebar rules below simply go unused.
 *
 * Anything this slice needed that the prototype did not have — chiefly the standing treatments that
 * keep a proposal from looking like a recorded fact — is in `continuum.css`, not here, so the two
 * stay tellable apart.
 */

:root {
  --ink: #173042;
  --ink-strong: #0d2434;
  --muted: #667784;
  --subtle: #8a98a2;
  --paper: #f4f3ee;
  --surface: #ffffff;
  --surface-soft: #f8f8f5;
  --line: #dfe3e1;
  --line-strong: #cbd2cf;
  --teal: #19745f;
  --teal-dark: #105947;
  --teal-soft: #e3f1ec;
  --blue-soft: #e8f0f4;
  --amber: #a76316;
  --amber-soft: #fbefd9;
  --red: #a9433a;
  --red-soft: #f9e8e6;
  --purple: #675a8b;
  --purple-soft: #efebf7;
  --shadow-sm: 0 1px 2px rgba(13, 36, 52, 0.06), 0 4px 12px rgba(13, 36, 52, 0.04);
  --shadow-lg: 0 22px 70px rgba(13, 36, 52, 0.18);
  --radius: 14px;
  --radius-sm: 9px;
  --sidebar: 244px;
}

* { box-sizing: border-box; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(25, 116, 95, 0.25);
  outline-offset: 2px;
}

.prototype-banner {
  height: 32px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: var(--ink-strong);
  color: #dfe8ec;
  font-size: 12px;
  letter-spacing: 0.01em;
  position: relative;
  z-index: 40;
}

.prototype-banner .text-button { position: absolute; right: 22px; }
.text-button { border: 0; background: none; color: inherit; padding: 2px; text-decoration: underline; text-underline-offset: 3px; }

.app-shell { min-height: calc(100vh - 32px); display: grid; grid-template-columns: var(--sidebar) 1fr; }

.sidebar {
  position: fixed;
  top: 32px;
  bottom: 0;
  left: 0;
  width: var(--sidebar);
  display: flex;
  flex-direction: column;
  padding: 22px 14px 14px;
  background: #102b3b;
  color: #dbe5e9;
  z-index: 30;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 9px 24px;
  color: white;
  text-decoration: none;
  font: 700 19px/1 "Manrope", sans-serif;
}

.brand-mark { width: 44px; height: 44px; display: block; object-fit: contain; }

.main-nav { flex: 1; }
.nav-label { color: #7f99a7; font-size: 10px; text-transform: uppercase; letter-spacing: 0.13em; padding: 0 12px; margin: 4px 0 7px; }
.nav-label-spaced { margin-top: 28px; }
.nav-item {
  width: 100%;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #bdd0d8;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  margin: 2px 0;
  text-align: left;
  font-weight: 500;
}
.nav-item:hover { background: rgba(255,255,255,0.06); color: white; }
.nav-item.is-active { color: white; background: rgba(118,196,173,0.15); }
.nav-icon { font-size: 17px; text-align: center; color: #87a6b3; }
.nav-item.is-active .nav-icon { color: #83d0b8; }
.nav-count, .decision-count { font-size: 11px; color: #809aa7; }
.decision-count { background: #264758; color: #c9dbe2; padding: 1px 7px; border-radius: 999px; }

.sidebar-footer { border-top: 1px solid rgba(255,255,255,0.09); padding-top: 12px; }
.integration-pill { display: flex; align-items: center; gap: 7px; padding: 8px 9px; color: #a9bec7; font-size: 11px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--subtle); }
.status-dot.is-online { background: #67c7a7; box-shadow: 0 0 0 3px rgba(103,199,167,0.12); }
.mock-tag { margin-left: auto; color: #78929f; border: 1px solid #385665; border-radius: 4px; padding: 0 4px; text-transform: uppercase; font-size: 8px; }
.profile-button { width: 100%; display: flex; gap: 9px; align-items: center; color: white; border: 0; border-radius: 9px; background: transparent; padding: 9px; text-align: left; }
.profile-button:hover { background: rgba(255,255,255,0.05); }
.avatar { display: grid; place-items: center; width: 31px; height: 31px; flex: 0 0 auto; border-radius: 50%; background: #dcebe6; color: #175c4d; font-size: 11px; font-weight: 700; }
.profile-copy { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.profile-copy strong { font-size: 12px; font-weight: 600; }
.profile-copy small { color: #8da6b1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.workspace { grid-column: 2; min-width: 0; }
.topbar { height: 65px; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(244,243,238,0.92); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(12px); }
.breadcrumbs { color: var(--muted); font-size: 12px; }
.breadcrumbs span { margin: 0 7px; color: var(--subtle); }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.tour-button, .role-switcher, .icon-button { border: 1px solid var(--line-strong); background: rgba(255,255,255,0.7); border-radius: 9px; color: var(--ink); min-height: 36px; }
.tour-button { padding: 0 12px; display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: 12px; }
.tour-button:hover { border-color: var(--teal); color: var(--teal-dark); }
.role-switcher { display: flex; align-items: center; gap: 7px; padding: 0 6px 0 11px; }
.role-switcher > span { color: var(--muted); font-size: 11px; }
.role-switcher select { border: 0; background: transparent; color: var(--ink-strong); font-weight: 600; padding: 7px 24px 7px 0; }
.icon-button { width: 36px; display: grid; place-items: center; position: relative; }
.notification-button > span { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--red); top: 8px; right: 8px; }
.mobile-menu { display: none; background: none; border: 0; color: var(--ink); font-size: 20px; }

#app-main { padding: 30px 32px 60px; max-width: 1560px; margin: 0 auto; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 26px; }
.page-heading h1 { margin: 0; font: 700 27px/1.2 "Manrope", sans-serif; color: var(--ink-strong); letter-spacing: -0.025em; }
.page-heading p { margin: 6px 0 0; color: var(--muted); max-width: 680px; }
.heading-actions { display: flex; gap: 9px; flex: 0 0 auto; }

.button { border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface); color: var(--ink); padding: 9px 14px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 7px; text-decoration: none; box-shadow: 0 1px 1px rgba(13,36,52,0.03); }
.button:hover { border-color: #a8b6b1; background: var(--surface-soft); }
.button.primary { background: var(--teal); border-color: var(--teal); color: white; }
.button.primary:hover { background: var(--teal-dark); }
.button.ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--muted); }
.button.ghost:hover { color: var(--ink); background: rgba(255,255,255,0.6); }
.button.small { padding: 6px 10px; font-size: 12px; }
.button:disabled { opacity: 0.5; cursor: not-allowed; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 19px 20px 14px; }
.card-header h2, .card-header h3 { margin: 0; font: 650 15px/1.35 "Manrope", sans-serif; color: var(--ink-strong); }
.card-header p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.card-body { padding: 0 20px 20px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 30px 0 13px; }
.section-heading h2 { margin: 0; font: 650 16px/1.3 "Manrope", sans-serif; }
.section-heading p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }

.status { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 8px; font-size: 10px; font-weight: 700; letter-spacing: 0.025em; white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.approved, .status.on-track, .status.published { background: var(--teal-soft); color: var(--teal-dark); }
.status.attention, .status.in-review { background: var(--amber-soft); color: var(--amber); }
.status.blocked, .status.changes { background: var(--red-soft); color: var(--red); }
.status.draft, .status.ready { background: var(--blue-soft); color: #3d6578; }
.status.new { background: var(--purple-soft); color: var(--purple); }
.eyebrow { color: var(--teal-dark); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.11em; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.divider { height: 1px; background: var(--line); }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 13px; }
.stat-card { padding: 17px 18px; }
.stat-card .stat-label { color: var(--muted); font-size: 11px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.stat-card strong { display: block; color: var(--ink-strong); font: 700 24px/1.2 "Manrope", sans-serif; margin-top: 6px; }
.stat-card small { color: var(--muted); }
.stat-delta { color: var(--teal-dark); font-weight: 600; }

.overview-grid { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(300px,0.85fr); gap: 14px; }
.attention-list { display: grid; gap: 8px; padding: 0 13px 13px; }
.attention-item { width: 100%; border: 1px solid transparent; border-radius: 10px; background: var(--surface-soft); display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 11px; padding: 11px; text-align: left; color: var(--ink); }
.attention-item:hover { background: var(--teal-soft); border-color: #cfe5dd; }
.attention-icon { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--amber-soft); color: var(--amber); font-weight: 700; }
.attention-item.is-red .attention-icon { background: var(--red-soft); color: var(--red); }
.attention-copy { min-width: 0; }
.attention-copy strong { display: block; color: var(--ink-strong); font-size: 13px; }
.attention-copy span { display: block; color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.attention-meta { color: var(--muted); font-size: 10px; text-align: right; }
.attention-meta strong { display: block; color: var(--ink); font-size: 11px; }

.next-action { padding: 20px; background: linear-gradient(145deg, #153749, #1b4a54); color: white; position: relative; overflow: hidden; }
.next-action::after { content: ""; width: 170px; height: 170px; border: 36px solid rgba(118,196,173,0.12); border-radius: 50%; position: absolute; right: -58px; bottom: -80px; }
.next-action .eyebrow { color: #90d7c2; }
.next-action h2 { margin: 9px 0 8px; font: 650 20px/1.3 "Manrope", sans-serif; max-width: 290px; }
.next-action p { color: #bed0d6; max-width: 330px; margin: 0 0 17px; font-size: 12px; }
.next-action .button { position: relative; z-index: 1; border-color: white; }

.campaign-row { display: grid; grid-template-columns: 160px 1fr 140px 115px 34px; gap: 16px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--line); }
.campaign-row:first-child { border-top: 0; }
.campaign-title strong { display: block; font-size: 13px; color: var(--ink-strong); }
.campaign-title small { color: var(--muted); }
.progress-track { height: 6px; border-radius: 99px; background: #e8ebe9; overflow: hidden; }
.progress-track i { display: block; height: 100%; border-radius: inherit; background: var(--teal); }
.progress-labels { display: flex; justify-content: space-between; margin-bottom: 5px; font-size: 10px; color: var(--muted); }

.campaign-hero { display: grid; grid-template-columns: 1.55fr 0.85fr; gap: 14px; margin-bottom: 14px; }
.campaign-summary { padding: 24px; position: relative; overflow: hidden; }
.campaign-summary::before { content: ""; position: absolute; inset: 0 62% 0 0; background: linear-gradient(150deg, rgba(25,116,95,0.1), transparent); pointer-events: none; }
.campaign-summary h1,.campaign-summary h2 { font: 700 27px/1.2 "Manrope", sans-serif; margin: 8px 0 8px; color: var(--ink-strong); }
.campaign-summary > p { color: var(--muted); max-width: 690px; margin: 0; }
.campaign-meta { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 25px; }
.meta-item small { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; }
.meta-item strong { display: block; margin-top: 2px; font-size: 12px; }
.health-card { padding: 21px; }
.health-score { display: flex; align-items: center; gap: 15px; margin: 14px 0; }
.health-ring { --p: 78%; width: 66px; height: 66px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--teal) var(--p), #e7ece9 0); position: relative; }
.health-ring::before { content: ""; position: absolute; inset: 7px; background: white; border-radius: 50%; }
.health-ring strong { position: relative; font: 700 16px "Manrope", sans-serif; }
.health-copy strong { display: block; color: var(--ink-strong); }
.health-copy span { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }

.campaign-content-grid { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(310px,0.8fr); gap: 14px; }
.adoption-table, .data-table { width: 100%; border-collapse: collapse; }
.adoption-table th, .data-table th { text-align: left; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; padding: 9px 15px; border-bottom: 1px solid var(--line); }
.adoption-table td, .data-table td { padding: 11px 15px; border-bottom: 1px solid var(--line); font-size: 12px; }
.adoption-table tr:last-child td, .data-table tr:last-child td { border-bottom: 0; }
.country { display: flex; gap: 9px; align-items: center; }
.flag { width: 25px; height: 18px; display: grid; place-items: center; background: var(--blue-soft); border-radius: 4px; font-size: 9px; font-weight: 700; color: #426677; }
.activity-list { list-style: none; padding: 2px 20px 18px; margin: 0; }
.activity-list li { display: grid; grid-template-columns: 9px 1fr; gap: 10px; padding: 8px 0; }
.activity-list li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #98aaa4; margin-top: 6px; box-shadow: 0 0 0 4px #edf1ef; }
.activity-list li:first-child::before { background: var(--teal); box-shadow: 0 0 0 4px var(--teal-soft); }
.activity-list strong { display: block; font-size: 12px; }
.activity-list span { color: var(--muted); font-size: 11px; }

.toolbar { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin-bottom: 15px; }
.search-box { min-width: 240px; flex: 1; position: relative; }
.search-box input, .filter-select, .field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface); color: var(--ink); padding: 9px 11px; }
.search-box input { padding-left: 34px; }
.search-box::before { content: "\2315"; position: absolute; left: 12px; top: 7px; color: var(--muted); }
.filter-select { width: auto; min-width: 130px; }
.view-toggle { display: flex; border: 1px solid var(--line-strong); border-radius: 9px; overflow: hidden; }
.view-toggle button { border: 0; border-left: 1px solid var(--line); background: var(--surface); padding: 8px 11px; color: var(--muted); }
.view-toggle button:first-child { border-left: 0; }
.view-toggle button.is-active { background: var(--teal-soft); color: var(--teal-dark); }

.asset-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.asset-card { overflow: hidden; transition: transform 150ms ease, box-shadow 150ms ease; }
.asset-card:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(13,36,52,0.1); }
.asset-preview { height: 154px; background: #dfe9e6; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.asset-preview.video { background: linear-gradient(145deg, #dfe9e6, #bdcfca); }
.asset-preview.visual { background: linear-gradient(145deg, #d9e5eb, #aec8d1); }
.asset-preview.copy { background: linear-gradient(145deg, #eee8dc, #d9d0be); }
.asset-preview.template { background: linear-gradient(145deg, #e9e4ee, #cbc0d5); }
.asset-preview::before, .asset-preview::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(23,48,66,0.12); }
.asset-preview::before { width: 150px; height: 150px; left: -28px; top: -70px; }
.asset-preview::after { width: 115px; height: 115px; right: -12px; bottom: -68px; }
.preview-figure { width: 85px; height: 105px; position: relative; z-index: 1; }
.preview-figure .head { position: absolute; width: 32px; height: 32px; border-radius: 50%; left: 28px; top: 10px; background: #789b91; }
.preview-figure .body { position: absolute; width: 74px; height: 74px; border-radius: 45px 45px 15px 15px; left: 7px; top: 45px; background: #537b70; }
.play { position: absolute; z-index: 2; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.92); display: grid; place-items: center; color: var(--teal-dark); box-shadow: var(--shadow-sm); }
.asset-duration { position: absolute; right: 9px; bottom: 8px; background: rgba(13,36,52,0.8); color: white; border-radius: 4px; padding: 2px 5px; font-size: 9px; z-index: 3; }
.asset-card-content { padding: 15px; }
.asset-card-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.asset-card h3 { margin: 0; color: var(--ink-strong); font: 650 14px/1.35 "Manrope", sans-serif; }
.asset-card p { margin: 5px 0 13px; color: var(--muted); font-size: 11px; }
.asset-metrics { display: flex; gap: 15px; border-top: 1px solid var(--line); padding-top: 11px; color: var(--muted); font-size: 10px; }
.asset-metrics strong { color: var(--ink); font-weight: 600; }

.lineage-panel { padding: 22px; }
.lineage-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.lineage-tree { overflow-x: auto; padding: 12px 4px 20px; }
.lineage-level { display: flex; align-items: center; justify-content: center; gap: 24px; position: relative; margin-bottom: 38px; }
.lineage-level:last-child { margin-bottom: 0; }
.lineage-level:not(:last-child)::after { content: ""; position: absolute; width: 1px; height: 39px; background: var(--line-strong); top: 100%; left: 50%; }
.lineage-level.children::before { content: ""; position: absolute; height: 1px; background: var(--line-strong); left: 10%; right: 10%; top: -20px; }
.lineage-node { min-width: 145px; max-width: 180px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px; text-align: left; position: relative; color: var(--ink); }
.lineage-node:hover, .lineage-node.is-selected { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.lineage-level.children .lineage-node::before { content: ""; position: absolute; width: 1px; height: 20px; background: var(--line-strong); bottom: 100%; left: 50%; }
.lineage-node small { display: block; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: 0.05em; }
.lineage-node strong { display: block; font-size: 11px; margin: 3px 0; }
.lineage-node span { color: var(--muted); font-size: 9px; }

.deliveries-funnel { display: grid; grid-template-columns: repeat(5,1fr); gap: 8px; margin: 4px 0 20px; }
.funnel-stage { background: var(--surface-soft); padding: 14px; border-radius: 9px; position: relative; }
.funnel-stage:not(:last-child)::after { content: "\203A"; position: absolute; right: -7px; top: 18px; color: var(--subtle); z-index: 2; }
.funnel-stage strong { display: block; font: 700 20px "Manrope", sans-serif; }
.funnel-stage span { display: block; color: var(--muted); font-size: 10px; }

.decision-layout { display: grid; grid-template-columns: minmax(0,1fr) 290px; gap: 15px; align-items: start; }
.decision-list { display: grid; gap: 10px; }
.decision-card { padding: 18px; }
.decision-card-top { display: flex; gap: 13px; align-items: flex-start; }
.decision-id { flex: 0 0 auto; font: 650 10px "Manrope", sans-serif; color: var(--teal-dark); background: var(--teal-soft); border-radius: 6px; padding: 5px 7px; }
.decision-card h3 { margin: 1px 0 4px; font: 650 14px/1.35 "Manrope", sans-serif; }
.decision-card p { margin: 0; color: var(--muted); font-size: 12px; }
.decision-actions { display: flex; gap: 6px; margin: 14px 0 0 52px; }
.decision-choice { border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 7px; padding: 5px 9px; font-size: 10px; font-weight: 600; }
.decision-choice:hover { border-color: var(--line-strong); color: var(--ink); }
.decision-choice.is-selected[data-choice="aligned"] { background: var(--teal-soft); border-color: #b6dbcf; color: var(--teal-dark); }
.decision-choice.is-selected[data-choice="discuss"] { background: var(--amber-soft); border-color: #ebd3a7; color: var(--amber); }
.decision-choice.is-selected[data-choice="change"] { background: var(--red-soft); border-color: #edc7c2; color: var(--red); }
.spec-summary { position: sticky; top: 82px; padding: 19px; }
.spec-summary h2 { margin: 0; font: 650 15px "Manrope", sans-serif; }
.summary-ring { width: 102px; height: 102px; margin: 18px auto; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--teal) var(--decision-progress, 0%), #e8ebe9 0); position: relative; }
.summary-ring::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: white; }
.summary-ring span { position: relative; text-align: center; }
.summary-ring strong { display: block; font: 700 21px/1.1 "Manrope", sans-serif; }
.summary-ring small { color: var(--muted); font-size: 9px; }
.summary-breakdown { display: grid; gap: 8px; margin: 14px 0; }
.summary-row { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.summary-row strong { color: var(--ink); }

.modal-backdrop, .drawer-backdrop { position: fixed; inset: 0; background: rgba(7,24,35,0.52); z-index: 80; backdrop-filter: blur(2px); }
.modal-backdrop { display: grid; place-items: center; padding: 24px; }
.modal-backdrop[hidden], .drawer-backdrop[hidden], .tour-layer[hidden] { display: none; }
.modal { width: min(720px,100%); max-height: calc(100vh - 48px); overflow-y: auto; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-lg); }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 23px 25px 18px; border-bottom: 1px solid var(--line); }
.modal-header h2 { margin: 0; font: 700 20px/1.3 "Manrope", sans-serif; color: var(--ink-strong); }
.modal-header p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.close-button { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--muted); }
.modal-body { padding: 23px 25px; }
.modal-footer { padding: 16px 25px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wizard-progress { display: flex; align-items: center; justify-content: center; padding: 17px 25px 0; }
.wizard-step { display: flex; align-items: center; color: var(--muted); font-size: 10px; }
.wizard-step:not(:last-child)::after { content: ""; width: 56px; height: 1px; background: var(--line-strong); margin: 0 9px; }
.wizard-step i { width: 23px; height: 23px; border-radius: 50%; display: grid; place-items: center; background: #e8ebe9; color: var(--muted); font-style: normal; margin-right: 6px; }
.wizard-step.is-active { color: var(--teal-dark); font-weight: 600; }
.wizard-step.is-active i, .wizard-step.is-complete i { background: var(--teal); color: white; }
.choice-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.choice-card { border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--ink); padding: 14px; text-align: left; min-height: 80px; }
.choice-card:hover { border-color: var(--teal); }
.choice-card.is-selected { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); background: #fbfdfc; }
.choice-card strong { display: block; font-size: 12px; }
.choice-card span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.choice-card .choice-meta { margin-top: 10px; color: var(--teal-dark); font-weight: 600; }
.field { display: grid; gap: 5px; margin-bottom: 15px; }
.field label { font-size: 11px; color: var(--ink); font-weight: 600; }
.field small { color: var(--muted); }

.builder { display: grid; grid-template-columns: 240px minmax(350px,1fr) 285px; gap: 13px; align-items: start; }
.builder-panel { min-height: 600px; }
.panel-title { padding: 15px 16px; border-bottom: 1px solid var(--line); }
.panel-title h2 { margin: 0; font: 650 13px "Manrope", sans-serif; }
.panel-title p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.component-list { padding: 9px; display: grid; gap: 7px; }
.component-item { border: 1px solid var(--line); border-radius: 9px; background: var(--surface); padding: 10px; text-align: left; color: var(--ink); }
.component-item:hover { border-color: var(--teal); }
.component-item.is-active { border-color: var(--teal); background: var(--teal-soft); }
.component-item-head { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.component-item strong { font-size: 11px; }
.component-item p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.content-class { font-size: 8px; text-transform: uppercase; letter-spacing: 0.04em; border-radius: 4px; padding: 2px 4px; background: var(--blue-soft); color: #416779; }
.content-class.locked { background: var(--teal-soft); color: var(--teal-dark); }
.content-class.new { background: var(--purple-soft); color: var(--purple); }
.builder-stage { min-height: 650px; background: #d9dfdd; border-radius: var(--radius); padding: 38px; display: grid; place-items: center; position: relative; }
.stage-toolbar { position: absolute; left: 13px; right: 13px; top: 12px; display: flex; justify-content: space-between; align-items: center; font-size: 10px; color: #52646e; }
.social-preview { width: min(410px,100%); aspect-ratio: 1/1; background: #e8eee9; border: 8px solid white; box-shadow: 0 15px 35px rgba(13,36,52,0.18); position: relative; overflow: hidden; }
.social-preview .visual-area { height: 56%; background: linear-gradient(145deg,#c4d7d1,#88aea3); position: relative; overflow: hidden; }
.preview-person { position: absolute; width: 130px; height: 150px; bottom: -20px; right: 20%; }
.preview-person::before { content: ""; position: absolute; width: 48px; height: 48px; border-radius: 50%; top: 0; left: 43px; background: #527b70; }
.preview-person::after { content: ""; position: absolute; width: 120px; height: 110px; border-radius: 60px 60px 10px 10px; bottom: 0; left: 7px; background: #315e54; }
.visual-line { position: absolute; height: 1px; background: rgba(255,255,255,0.55); width: 130px; transform: rotate(-28deg); }
.visual-line.one { left: -15px; top: 50px; }
.visual-line.two { right: -30px; bottom: 50px; width: 180px; }
.social-copy { height: 44%; padding: 22px 25px 18px; display: flex; flex-direction: column; }
.social-copy .mini-brand { color: var(--teal-dark); font: 700 9px "Manrope", sans-serif; letter-spacing: 0.1em; text-transform: uppercase; }
.social-copy h3 { margin: 8px 0 5px; color: var(--ink-strong); font: 700 20px/1.18 "Manrope", sans-serif; max-width: 310px; }
.social-copy p { margin: 0; color: #57706e; font-size: 10px; max-width: 300px; }
.preview-footer { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; border-top: 1px solid #cedbd5; padding-top: 8px; }
.preview-footer small { max-width: 240px; color: #6d807b; font-size: 6px; line-height: 1.35; }
.preview-cta { border-radius: 99px; background: var(--teal); color: white; padding: 4px 8px; font-size: 7px; font-weight: 600; }
.builder-properties { padding: 14px; }
.property-section { padding: 3px 0 16px; border-bottom: 1px solid var(--line); margin-bottom: 15px; }
.property-section:last-child { border: 0; }
.property-section h3 { margin: 0 0 9px; font: 650 11px "Manrope", sans-serif; }
.guardrail-list { display: grid; gap: 8px; }
.guardrail { display: grid; grid-template-columns: 18px 1fr; gap: 7px; color: var(--muted); font-size: 10px; }
.guardrail i { width: 16px; height: 16px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal-dark); border-radius: 50%; font-style: normal; font-size: 9px; }
.guardrail.warning i { background: var(--amber-soft); color: var(--amber); }
.readiness-bar { position: sticky; bottom: 14px; grid-column: 1/-1; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 12px 15px; background: rgba(255,255,255,0.94); backdrop-filter: blur(10px); z-index: 8; }
.readiness-copy { display: flex; align-items: center; gap: 11px; }
.readiness-score { width: 32px; height: 32px; border-radius: 50%; background: var(--teal-soft); color: var(--teal-dark); display: grid; place-items: center; font-weight: 700; font-size: 11px; }
.readiness-copy strong { display: block; font-size: 11px; }
.readiness-copy span { display: block; color: var(--muted); font-size: 9px; }

.variant-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 12px; }
.variant-card { border: 1px solid var(--line); border-radius: 10px; padding: 11px; position: relative; }
.variant-card.is-selected { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.variant-card .variant-preview { min-height: 98px; background: var(--surface-soft); padding: 12px; display: flex; align-items: center; margin-bottom: 9px; font: 650 12px/1.35 "Manrope", sans-serif; color: var(--ink-strong); }
.variant-card strong { font-size: 10px; }
.variant-card p { margin: 4px 0 8px; font-size: 9px; color: var(--muted); }
.variant-tag { display: inline-flex; border-radius: 4px; padding: 2px 4px; font-size: 8px; background: var(--teal-soft); color: var(--teal-dark); }
.loading-state { display: grid; place-items: center; min-height: 230px; text-align: center; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--teal); animation: spin 800ms linear infinite; margin: 0 auto 12px; }
@keyframes spin { to { transform: rotate(360deg); } }

.checklist { display: grid; gap: 8px; }
.check-item { display: grid; grid-template-columns: 24px 1fr auto; gap: 9px; align-items: center; padding: 10px; background: var(--surface-soft); border-radius: 8px; }
.check-icon { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--teal-soft); color: var(--teal-dark); font-size: 10px; font-weight: 700; }
.check-item strong { display: block; font-size: 11px; }
.check-item span { display: block; color: var(--muted); font-size: 9px; }
.submission-receipt { text-align: center; padding: 12px 0 5px; }
.success-mark { width: 54px; height: 54px; display: grid; place-items: center; margin: 0 auto 13px; border-radius: 50%; background: var(--teal-soft); color: var(--teal-dark); font-size: 23px; }
.submission-receipt h3 { font: 700 19px "Manrope",sans-serif; margin: 0 0 5px; }
.submission-receipt > p { color: var(--muted); margin: 0 auto 16px; max-width: 440px; }
.receipt-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; text-align: left; }
.receipt-grid div { background: var(--surface-soft); border-radius: 8px; padding: 10px; }
.receipt-grid small { display: block; color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: 0.05em; }
.receipt-grid strong { display: block; font-size: 10px; margin-top: 2px; }

.drawer-backdrop { z-index: 70; }
.drawer { position: fixed; right: 0; top: 32px; bottom: 0; width: min(430px,100%); background: var(--surface); box-shadow: var(--shadow-lg); z-index: 75; transform: translateX(105%); transition: transform 220ms ease; overflow-y: auto; }
.drawer.is-open { transform: translateX(0); }
.drawer[aria-hidden="true"] { display: none; }
.drawer-header { padding: 21px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 13px; }
.drawer-header h2 { margin: 4px 0 0; font: 700 18px "Manrope",sans-serif; }
.drawer-content { padding: 19px 21px; }
.drawer-preview { height: 180px; border-radius: 10px; background: linear-gradient(145deg,#c4d7d1,#88aea3); display: grid; place-items: center; position: relative; overflow: hidden; margin-bottom: 18px; }
.drawer-section { border-top: 1px solid var(--line); padding: 15px 0; }
.drawer-section h3 { margin: 0 0 9px; font: 650 11px "Manrope",sans-serif; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.detail-grid small { display: block; color: var(--muted); font-size: 9px; }
.detail-grid strong { display: block; font-size: 11px; margin-top: 2px; }

.tour-layer { position: fixed; inset: 0; z-index: 110; pointer-events: none; }
.tour-shade { position: absolute; inset: 0; background: rgba(4,18,27,0.65); pointer-events: auto; }
.tour-spotlight { position: fixed; border: 2px solid #8bd9c0; border-radius: 13px; box-shadow: 0 0 0 9999px rgba(4,18,27,0.65), 0 0 0 6px rgba(139,217,192,0.15); transition: all 280ms ease; z-index: 1; }
.tour-card { position: fixed; width: 360px; background: white; color: var(--ink); border-radius: 14px; box-shadow: var(--shadow-lg); z-index: 2; pointer-events: auto; overflow: hidden; }
.tour-card-content { padding: 20px 21px 16px; }
.tour-progress { display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: 0.08em; }
.tour-card h2 { margin: 12px 0 7px; font: 700 18px/1.3 "Manrope", sans-serif; color: var(--ink-strong); }
.tour-card p { margin: 0; color: var(--muted); font-size: 12px; }
.tour-reason { margin-top: 14px; padding: 10px; background: var(--teal-soft); border-radius: 8px; }
.tour-reason strong, .tour-question strong { display: block; font-size: 9px; color: var(--teal-dark); text-transform: uppercase; letter-spacing: 0.06em; }
.tour-reason span, .tour-question span { display: block; margin-top: 3px; font-size: 10px; }
.tour-question { margin-top: 9px; padding: 0 2px; }
.tour-question strong { color: var(--amber); }
.tour-card-actions { border-top: 1px solid var(--line); padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; }
.tour-card-actions div { display: flex; gap: 6px; }
.tour-dots { display: flex; gap: 4px; margin-top: 13px; }
.tour-dots i { display: block; height: 3px; flex: 1; border-radius: 99px; background: var(--line); }
.tour-dots i.is-past, .tour-dots i.is-active { background: var(--teal); }

.toast-region { position: fixed; right: 20px; bottom: 20px; z-index: 130; display: grid; gap: 8px; }
.toast { background: var(--ink-strong); color: white; border-radius: 10px; box-shadow: var(--shadow-lg); padding: 11px 14px; min-width: 260px; display: flex; align-items: center; gap: 9px; animation: toast-in 180ms ease-out; }
.toast i { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: #78c8af; color: var(--ink-strong); font-style: normal; font-size: 10px; font-weight: 700; }
@keyframes toast-in { from { transform: translateY(10px); opacity: 0; } }

.empty-state { padding: 46px 25px; text-align: center; }
.empty-icon { width: 50px; height: 50px; border-radius: 50%; background: var(--blue-soft); color: #426778; display: grid; place-items: center; margin: 0 auto 12px; font-size: 20px; }
.empty-state h3 { margin: 0 0 5px; font: 650 15px "Manrope", sans-serif; }
.empty-state p { margin: 0 auto 15px; max-width: 400px; color: var(--muted); font-size: 12px; }

@media (max-width: 1180px) {
  .builder { grid-template-columns: 210px minmax(340px,1fr); }
  .builder .builder-panel:last-of-type { grid-column: 1/-1; min-height: auto; }
  .builder-properties { display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; }
  .property-section { border: 0; margin: 0; padding: 0; }
  .asset-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 940px) {
  :root { --sidebar: 210px; }
  .topbar { padding: 0 20px; }
  #app-main { padding: 24px 20px 50px; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .overview-grid, .campaign-hero, .campaign-content-grid, .decision-layout { grid-template-columns: minmax(0,1fr); }
  .campaign-content-grid > .card { min-width: 0; overflow-x: auto; }
  .spec-summary { position: static; }
  .campaign-row { grid-template-columns: 140px 1fr 110px 34px; }
  .campaign-row > :nth-child(3) { display: none; }
}

@media (max-width: 760px) {
  .prototype-banner { justify-content: flex-start; padding: 0 12px; }
  .prototype-banner .text-button { right: 12px; }
  .app-shell { display: block; }
  .sidebar { transform: translateX(-105%); transition: transform 200ms ease; width: 244px; box-shadow: var(--shadow-lg); }
  .sidebar.is-open { transform: translateX(0); }
  .workspace { width: 100%; }
  .mobile-menu { display: block; }
  .breadcrumbs { display: none; }
  .topbar { height: 58px; }
  .tour-button { font-size: 0; }
  .tour-button span { font-size: 13px; }
  .role-switcher > span { display: none; }
  .role-switcher select { max-width: 145px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .asset-grid { grid-template-columns: 1fr; }
  .campaign-row { grid-template-columns: 1fr auto; }
  .campaign-row > :not(.campaign-title):not(.status) { display: none; }
  .adoption-table th:nth-child(2), .adoption-table td:nth-child(2),
  .adoption-table th:nth-child(3), .adoption-table td:nth-child(3) { display: none; }
  .data-table { min-width: 720px; }
  .deliveries-funnel { grid-template-columns: repeat(2,1fr); }
  .builder { grid-template-columns: 1fr; }
  .builder-panel { min-height: auto; }
  .builder-stage { min-height: 510px; padding: 45px 22px 22px; }
  .builder .builder-panel:last-of-type { grid-column: auto; }
  .builder-properties { grid-template-columns: 1fr; }
  .readiness-bar { grid-column: auto; flex-direction: column; align-items: stretch; }
  .variant-grid, .receipt-grid { grid-template-columns: 1fr; }
  .tour-card { width: calc(100vw - 28px); left: 14px !important; bottom: 14px !important; top: auto !important; }
  .tour-spotlight { display: none; }
}

@media (max-width: 500px) {
  #app-main { padding: 20px 13px 45px; }
  .prototype-banner { font-size: 10px; }
  .prototype-banner strong { display: none; }
  .stats-grid, .choice-grid { grid-template-columns: 1fr; }
  .page-heading h1 { font-size: 23px; }
  .topbar { padding: 0 12px; }
  .notification-button { display: none; }
  .modal-backdrop { padding: 0; align-items: end; }
  .modal { max-height: 92vh; border-radius: 16px 16px 0 0; }
  .wizard-step span { display: none; }
  .lineage-level { justify-content: flex-start; }
}

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

/* Next-generation human and AI workspace */
:root {
  --sidebar: 74px;
  --paper: #f6f5f0;
  --surface-soft: #f1f2ed;
  --ink: #1a2b35;
  --ink-strong: #10232e;
  --teal: #146d59;
  --teal-dark: #0d5545;
}

.app-shell { grid-template-columns: var(--sidebar) 1fr; }

.sidebar {
  width: var(--sidebar);
  padding: 19px 10px 12px;
  align-items: center;
  background: #112a37;
}

.brand { padding: 0 0 28px; justify-content: center; }
.brand > span:last-child { display: none; }
.brand-mark { width: 44px; height: 44px; }
.main-nav { width: 100%; display: grid; align-content: start; gap: 7px; }
.nav-label { display: none; }
.nav-item {
  position: relative;
  width: 48px;
  height: 46px;
  margin: 0 auto;
  padding: 0;
  display: grid;
  place-items: center;
  grid-template-columns: 1fr;
  border-radius: 13px;
}
.nav-item > span:not(.nav-icon) { display: none; }
.nav-item .nav-icon { font-size: 19px; color: #89a1ac; }
.nav-item.is-active { background: rgba(118,196,173,0.16); }
.nav-item.is-active::before { content: ""; position: absolute; left: -10px; height: 20px; width: 2px; border-radius: 2px; background: #83d0b8; }
.nav-item::after {
  content: attr(data-label);
  position: absolute;
  left: 57px;
  top: 50%;
  transform: translateY(-50%) translateX(-4px);
  padding: 5px 8px;
  border-radius: 6px;
  color: white;
  background: #0d202a;
  font-size: 10px;
  opacity: 0;
  pointer-events: none;
  transition: 120ms ease;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}
.nav-item:hover::after, .nav-item:focus-visible::after { opacity: 1; transform: translateY(-50%) translateX(0); }
.nav-count, .decision-count { position: absolute; top: 4px; right: 3px; width: 16px; height: 16px; display: grid !important; place-items: center; padding: 0; border-radius: 50%; background: #294653; color: #bdd0d8; font-size: 8px; }
.sidebar-footer { width: 100%; border: 0; display: grid; justify-items: center; gap: 8px; }
.integration-pill { padding: 0; }
.integration-pill > span:not(.status-dot) { display: none; }
.profile-button { width: 46px; height: 46px; padding: 0; justify-content: center; border-radius: 13px; }
.profile-button .profile-copy, .profile-button > span:last-child { display: none; }
.avatar { width: 32px; height: 32px; }

.topbar { height: 70px; padding: 0 22px; gap: 18px; background: rgba(246,245,240,0.88); }
.breadcrumbs { width: 110px; flex: 0 0 auto; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.intent-bar {
  flex: 1;
  max-width: 660px;
  height: 42px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 10px 0 14px;
  background: rgba(255,255,255,0.76);
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  box-shadow: 0 3px 18px rgba(13,36,52,0.04);
}
.intent-bar:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.intent-spark { color: var(--teal); font-size: 15px; }
.intent-bar input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; }
.intent-bar input::placeholder { color: #7d8a91; }
.intent-bar kbd { border: 1px solid var(--line); border-bottom-color: var(--line-strong); border-radius: 5px; padding: 1px 5px; color: var(--subtle); background: var(--surface-soft); font: 500 9px "DM Sans", sans-serif; }
.intent-bar button { width: 25px; height: 25px; display: grid; place-items: center; border: 0; border-radius: 7px; background: var(--teal-soft); color: var(--teal-dark); }
.intent-bar button:hover { background: #d4e8e1; }
.topbar-actions { flex: 0 0 auto; }
.tour-button { width: 36px; padding: 0; font-size: 0; }
.tour-button span { font-size: 12px; }
.role-switcher > span { display: none; }
.role-switcher select { max-width: 160px; }

#app-main { max-width: 1340px; padding: 46px 54px 72px; }

.ai-focus-page { max-width: 1080px; margin: 0 auto; }
.focus-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.focus-intro h1 { margin: 6px 0 0; font: 500 31px/1.22 "Manrope", sans-serif; letter-spacing: -0.03em; color: var(--ink-strong); }
.focus-intro p { color: var(--muted); margin: 8px 0 0; }
.ambient-state { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.ambient-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 5px var(--teal-soft); }

.focus-surface {
  position: relative;
  overflow: hidden;
  padding: 35px 38px 31px;
  border: 1px solid #d8dfdc;
  border-radius: 22px;
  background: rgba(255,255,255,0.88);
  box-shadow: 0 18px 50px rgba(13,36,52,0.07);
}
.focus-surface::after { content: ""; position: absolute; width: 340px; height: 340px; border: 50px solid rgba(25,116,95,0.045); border-radius: 50%; right: -180px; top: -180px; pointer-events: none; }
.focus-meta { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 10px; }
.agent-presence { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: var(--teal-soft); color: var(--teal-dark); font-size: 12px; }
.confidence { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border-radius: 999px; background: var(--teal-soft); color: var(--teal-dark); font-size: 9px; font-weight: 600; }
.confidence::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.focus-surface h2 { max-width: 750px; margin: 22px 0 10px; font: 500 30px/1.25 "Manrope", sans-serif; color: var(--ink-strong); letter-spacing: -0.025em; }
.focus-summary { max-width: 720px; margin: 0; color: var(--muted); font-size: 14px; }
.focus-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 25px; position: relative; z-index: 1; }

.reasoning-path { margin-top: 31px; padding-top: 22px; border-top: 1px solid var(--line); }
.reasoning-label { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 12px; color: var(--muted); font-size: 10px; }
.signal-flow { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; }
.signal-node { position: relative; min-width: 0; }
.signal-node:not(:last-child)::after { content: ""; position: absolute; height: 1px; width: 22px; right: -25px; top: 12px; background: var(--line-strong); }
.signal-source { display: flex; align-items: center; gap: 7px; color: var(--ink); font-size: 10px; font-weight: 600; }
.signal-source i { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; background: var(--surface-soft); color: var(--teal-dark); font-style: normal; }
.signal-node p { margin: 7px 0 0 31px; color: var(--muted); font-size: 10px; line-height: 1.45; }

.route-preview { margin-top: 18px; display: flex; align-items: center; gap: 0; }
.route-step { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; }
.route-step:not(:last-child)::after { content: ""; width: 38px; height: 1px; margin: 0 9px; background: var(--line-strong); }
.route-step i { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); color: var(--muted); font-style: normal; font-size: 9px; }
.route-step.is-active { color: var(--ink); font-weight: 600; }
.route-step.is-active i { border-color: var(--teal); color: white; background: var(--teal); }

.quiet-stream { margin-top: 29px; }
.quiet-stream-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 6px; }
.quiet-stream h2 { margin: 0; font: 500 14px "Manrope", sans-serif; color: var(--ink); }
.quiet-stream-item { display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: center; padding: 13px 4px; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.quiet-stream-item:first-of-type { border-top: 0; }
.quiet-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: var(--surface-soft); color: var(--muted); }
.quiet-copy strong { display: block; font-size: 11px; font-weight: 600; }
.quiet-copy span { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }
.quiet-meta { text-align: right; color: var(--muted); font-size: 9px; }
.quiet-meta strong { display: block; color: var(--ink); font-size: 10px; }

.ai-brief-strip { margin-top: 22px; display: flex; align-items: center; gap: 12px; padding: 13px 15px; border-radius: 11px; background: rgba(229,239,235,0.7); color: var(--ink); }
.ai-brief-strip > i { font-style: normal; color: var(--teal-dark); }
.ai-brief-strip p { flex: 1; margin: 0; font-size: 10px; }

.guided-page { max-width: 1180px; margin: 0 auto; }
.guided-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.guided-heading h1 { margin: 4px 0; font: 500 25px/1.25 "Manrope", sans-serif; letter-spacing: -0.02em; }
.guided-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.guided-route { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 9px; }
.guided-route span { display: inline-flex; align-items: center; gap: 5px; }
.guided-route span:not(:last-child)::after { content: ""; width: 22px; height: 1px; margin-left: 5px; background: var(--line-strong); }
.guided-route i { width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); font-style: normal; }
.guided-route .is-done i { background: var(--teal-soft); border-color: var(--teal-soft); color: var(--teal-dark); }
.guided-route .is-active { color: var(--ink); font-weight: 600; }
.guided-route .is-active i { background: var(--teal); border-color: var(--teal); color: white; }

.guided-workspace { display: grid; grid-template-columns: minmax(430px,1.35fr) minmax(310px,0.65fr); gap: 15px; align-items: stretch; }
.creation-canvas { min-height: 650px; padding: 45px; border-radius: 19px; background: #dce2df; display: grid; place-items: center; position: relative; overflow: hidden; }
.creation-canvas::before { content: "Live output · 1080 x 1080"; position: absolute; top: 16px; left: 19px; color: #586970; font-size: 9px; }
.creation-canvas .social-preview { width: min(440px,95%); }
.agent-guide { padding: 27px 25px 22px; border: 1px solid var(--line); border-radius: 19px; background: rgba(255,255,255,0.88); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.agent-guide .agent-presence { margin-bottom: 16px; }
.agent-guide h2 { margin: 0 0 8px; font: 500 20px/1.32 "Manrope", sans-serif; color: var(--ink-strong); }
.agent-guide > p { margin: 0; color: var(--muted); font-size: 11px; }
.choice-stack { display: grid; gap: 7px; margin: 20px 0; }
.guided-choice { width: 100%; display: grid; grid-template-columns: 18px 1fr auto; gap: 9px; align-items: start; padding: 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); text-align: left; }
.guided-choice:hover { border-color: var(--teal); }
.guided-choice.is-selected { background: var(--teal-soft); border-color: #b9d9cf; }
.choice-radio { width: 16px; height: 16px; margin-top: 1px; border: 1px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; }
.guided-choice.is-selected .choice-radio::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.guided-choice strong { display: block; font-size: 10px; }
.guided-choice span { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }
.guided-choice em { color: var(--teal-dark); font-style: normal; font-size: 8px; text-transform: uppercase; letter-spacing: 0.05em; }
.guide-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.guide-evidence { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.guide-evidence summary { cursor: pointer; color: var(--muted); font-size: 9px; }
.guide-evidence p { margin: 8px 0 0; color: var(--muted); font-size: 9px; }

.guided-submit { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 16px; border-top: 1px solid var(--line-strong); }
.guided-submit-copy { display: flex; align-items: center; gap: 10px; }
.guided-submit-copy i { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--teal-soft); color: var(--teal-dark); font-style: normal; }
.guided-submit-copy strong { display: block; font-size: 10px; }
.guided-submit-copy span { display: block; color: var(--muted); font-size: 9px; }

.meeting-insight { padding: 12px 0; border-top: 1px solid var(--line); }
.meeting-insight:first-child { border-top: 0; }
.meeting-insight-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.meeting-insight strong { font-size: 11px; }
.meeting-insight p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.source-quote { margin: 9px 0 0; padding-left: 11px; border-left: 2px solid #b9d9cf; color: var(--muted); font-size: 10px; font-style: italic; }

@media (max-width: 1020px) {
  #app-main { padding: 35px 30px 60px; }
  .guided-workspace { grid-template-columns: 1fr; }
  .agent-guide { min-height: 430px; }
  .creation-canvas { min-height: 580px; }
  .breadcrumbs { display: none; }
}

@media (max-width: 760px) {
  :root { --sidebar: 0px; }
  .sidebar { width: 74px; }
  .topbar { padding: 0 12px; gap: 8px; }
  .intent-bar { order: 3; position: absolute; top: 62px; left: 12px; right: 12px; max-width: none; background: rgba(255,255,255,0.95); }
  .topbar { margin-bottom: 48px; }
  .tour-button { display: none; }
  .role-switcher select { max-width: 140px; }
  #app-main { padding: 25px 14px 50px; }
  .focus-intro { align-items: flex-start; flex-direction: column; margin-bottom: 20px; }
  .focus-intro h1 { font-size: 25px; }
  .focus-surface { padding: 25px 21px; }
  .focus-surface h2 { font-size: 24px; }
  .signal-flow { grid-template-columns: 1fr; gap: 16px; }
  .signal-node:not(:last-child)::after { display: none; }
  .route-preview { align-items: flex-start; flex-direction: column; gap: 7px; }
  .route-step:not(:last-child)::after { width: 1px; height: 11px; margin: 5px 0 0 10px; }
  .quiet-stream-item { grid-template-columns: 30px 1fr; }
  .quiet-meta { grid-column: 2; text-align: left; }
  .guided-heading { align-items: flex-start; flex-direction: column; }
  .guided-route { flex-wrap: wrap; }
  .creation-canvas { min-height: 500px; padding: 42px 17px 18px; }
  .guided-submit { align-items: stretch; flex-direction: column; }
  .guided-submit .button { width: 100%; }
}

/* Responsibility orbit */
:root {
  --canvas-warm: #f7f3eb;
  --canvas-deep: #eee7da;
  --amber: #d87324;
  --amber-soft: #fff0df;
  --violet: #7257b8;
  --violet-soft: #f0ebfb;
  --blue: #3979a7;
  --blue-soft: #e8f2f8;
  --green: #357b67;
  --green-soft: #e7f3ed;
  --rose: #b65f66;
  --rose-soft: #f9e9e9;
}

body { background: var(--canvas-warm); }
.sidebar { background: rgba(255,253,248,0.96); border-right: 1px solid #e5ded1; box-shadow: 10px 0 35px rgba(87,68,40,0.035); }
.brand-mark { filter: drop-shadow(0 6px 9px rgba(42,36,29,0.14)); }
.nav-item .nav-icon { color: #9b8f80; }
.nav-item.is-active { background: #29231c; box-shadow: 0 8px 20px rgba(42,35,27,0.16); }
.nav-item.is-active .nav-icon { color: #fff9ef; }
.nav-item.is-active::before { background: var(--amber); }
.nav-count, .decision-count { background: #efe7da; color: #7c6e5d; }
.nav-item.is-active .nav-count, .nav-item.is-active .decision-count { background: var(--amber); color: white; }
.profile-button { background: #f4eadc; }
.profile-button .avatar { background: linear-gradient(145deg,#e88b3d,#c85c22); color: white; }
.integration-pill .status-dot { box-shadow: 0 0 0 4px #e2f0e9; }
.topbar { background: rgba(247,243,235,0.9); border-bottom-color: #e6dfd3; }
.intent-bar { background: rgba(255,253,249,0.86); border-color: #ded7ca; box-shadow: 0 8px 30px rgba(75,55,30,0.055); }
#app-main { max-width: 1460px; padding-top: 34px; }

.responsibility-page { max-width: 1220px; margin: 0 auto; }
.responsibility-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.context-clock { color: #9d8f7c; font: 600 9px/1.4 "DM Sans", sans-serif; letter-spacing: 0.12em; }
.responsibility-intro h1 { margin: 8px 0 0; max-width: 820px; color: #211b16; font: 600 34px/1.2 "Manrope", sans-serif; letter-spacing: -0.035em; }

.role-context-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.role-chip { height: 37px; padding: 0 14px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid #dfd6c8; border-radius: 999px; background: rgba(255,253,249,0.5); color: #7f7365; font-size: 10px; font-weight: 600; box-shadow: 0 2px 0 rgba(255,255,255,0.8) inset; transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease; }
.role-chip:hover { transform: translateY(-1px); border-color: #cdbfae; }
.role-chip span { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: #eee7dc; font-size: 10px; }
.role-chip.is-active { color: #fff; border-color: #2b251e; background: #2b251e; box-shadow: 0 8px 20px rgba(48,38,26,0.16); }
.role-chip.is-active span { background: rgba(255,255,255,0.14); }
.role-chip.role-violet.is-active { background: var(--violet); border-color: var(--violet); }
.role-chip.role-blue.is-active { background: var(--blue); border-color: var(--blue); }
.role-chip.role-amber.is-active { background: var(--amber); border-color: var(--amber); }
.role-chip.role-green.is-active { background: var(--green); border-color: var(--green); }
.role-chip.role-rose.is-active { background: var(--rose); border-color: var(--rose); }
.role-chip.is-unavailable { border-style: dashed; opacity: 0.6; }
.role-chip > i { font-style: normal; font-size: 9px; }
.role-manage { margin-left: auto; border: 0; background: none; color: #8b7e6d; font-size: 9px; text-decoration: underline; text-underline-offset: 3px; }

.ranking-note { min-height: 30px; margin-top: 12px; display: flex; align-items: center; gap: 7px; color: #928574; font-size: 9px; }
.ranking-note strong { color: #65594c; font-weight: 600; }
.ranking-note button { margin-left: 4px; padding: 0; border: 0; background: none; color: var(--amber); font-size: 9px; font-weight: 600; }
.ranking-note .return-recommended { margin-left: auto; padding: 5px 8px; border: 1px solid #d9cbbb; border-radius: 999px; background: rgba(255,255,255,0.7); color: #65594c; text-decoration: none; }

.orbit-stage { position: relative; height: 650px; margin-top: 1px; isolation: isolate; overflow: hidden; }
.orbit-stage::before { content: ""; position: absolute; z-index: -3; inset: 4% 12% 0; border-radius: 50%; background: radial-gradient(circle at 50% 50%,rgba(255,255,255,0.8) 0,rgba(250,246,239,0.4) 43%,rgba(247,243,235,0) 72%); }
.orbit-depth { position: absolute; z-index: -2; inset: 0; pointer-events: none; }
.orbit-depth i { position: absolute; left: 50%; top: 50%; border: 1px solid rgba(177,154,122,0.2); border-radius: 50%; transform: translate(-50%,-50%); }
.orbit-depth i:nth-child(1) { width: 330px; height: 330px; box-shadow: 0 0 80px rgba(216,115,36,0.05) inset; }
.orbit-depth i:nth-child(2) { width: 650px; height: 500px; }
.orbit-depth i:nth-child(3) { width: 980px; height: 630px; border-color: rgba(177,154,122,0.12); }
.orbit-lines { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.orbit-lines path { fill: none; stroke: rgba(151,130,100,0.22); stroke-width: 1.2; stroke-linecap: round; transition: stroke 280ms ease,stroke-width 280ms ease,opacity 280ms ease; }
.orbit-lines .rank-0 { stroke: rgba(216,115,36,0.68); stroke-width: 2; opacity: 1; }
.orbit-lines .rank-1 { opacity: 0.72; }
.orbit-lines .rank-2 { opacity: 0.5; }
.orbit-lines .rank-3 { opacity: 0.34; }
.orbit-lines .rank-4 { opacity: 0.2; }

.user-core { position: absolute; z-index: 3; left: 50%; top: 50%; width: 190px; display: grid; justify-items: center; transform: translate(-50%,-45%); text-align: center; }
.user-avatar { position: relative; z-index: 2; width: 92px; height: 92px; display: grid; place-items: center; border: 7px solid rgba(255,255,255,0.82); border-radius: 50%; background: linear-gradient(145deg,#ed9345,#c85c21); color: white; box-shadow: 0 20px 38px rgba(174,79,24,0.24),0 0 0 1px rgba(161,73,26,0.08); font: 700 26px "Manrope", sans-serif; }
.user-halo { position: absolute; top: -14px; width: 122px; height: 122px; border-radius: 50%; background: rgba(232,137,57,0.13); box-shadow: 0 0 60px rgba(222,116,32,0.14); }
.user-core > strong { margin-top: 13px; color: #2b241c; font: 600 13px "Manrope", sans-serif; }
.user-core > small { margin-top: 4px; color: #9b8c78; font-size: 9px; }
.agent-orbit-dot { position: absolute; top: 68px; right: 37px; z-index: 3; width: 25px; height: 25px; display: grid; place-items: center; border: 3px solid var(--canvas-warm); border-radius: 50%; background: #1c6a59; color: white; box-shadow: 0 5px 14px rgba(28,106,89,0.24); font-size: 9px; }

.orbit-card-slot { position: absolute; width: 0; height: 0; }
.orbit-card { --orbit-scale: 1; --surface-alpha: 0.96; position: absolute; z-index: 2; left: 0; top: 0; width: 296px; padding: 15px; border: 1px solid rgba(214,203,188,0.9); border-radius: 17px; background: linear-gradient(145deg,rgba(255,255,255,var(--surface-alpha)),rgba(252,249,243,var(--surface-alpha))); box-shadow: 0 16px 32px rgba(74,53,27,0.08),0 3px 8px rgba(74,53,27,0.04); transform: translate(-50%,-50%) scale(var(--orbit-scale)); transform-origin: center; transition: transform 280ms cubic-bezier(0.2,0.75,0.2,1),border-color 280ms ease,box-shadow 280ms ease,filter 280ms ease; cursor: pointer; backdrop-filter: blur(10px); }
.orbit-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: 0 1px 0 rgba(255,255,255,0.95) inset; }
.orbit-position-reviewer { left: 81.5%; top: 175px; }
.orbit-position-explorer { left: 18.5%; top: 208px; }
.orbit-position-builder { left: 80.5%; top: 478px; }
.orbit-position-translator { left: 20.5%; top: 488px; }
.orbit-position-designer { left: 52.5%; top: 130px; }
.orbit-card.rank-0 { --orbit-scale: 1.2; --surface-alpha: 0.99; z-index: 8; border-color: rgba(216,115,36,0.68); box-shadow: 0 38px 72px rgba(144,75,22,0.22),0 10px 22px rgba(82,53,23,0.1); }
.orbit-card.rank-1 { --orbit-scale: 0.96; --surface-alpha: 0.93; z-index: 7; box-shadow: 0 20px 39px rgba(74,53,27,0.09),0 4px 9px rgba(74,53,27,0.04); }
.orbit-card.rank-2 { --orbit-scale: 0.8; --surface-alpha: 0.84; z-index: 6; filter: saturate(0.9); }
.orbit-card.rank-3 { --orbit-scale: 0.65; --surface-alpha: 0.74; z-index: 5; filter: saturate(0.78); box-shadow: 0 10px 20px rgba(74,53,27,0.05); }
.orbit-card.rank-4 { --orbit-scale: 0.5; --surface-alpha: 0.64; z-index: 4; filter: saturate(0.66); box-shadow: 0 6px 12px rgba(74,53,27,0.035); }
.orbit-card:not(.is-primary):hover { transform: translate(-50%,-50%) translateY(-2px) scale(calc(var(--orbit-scale) + 0.015)); border-color: rgba(177,154,122,0.52); filter: saturate(1); }
.orbit-card-head { display: flex; align-items: center; gap: 6px; color: #837565; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.orbit-focus-control { min-height: 28px; margin-left: auto; padding: 4px 8px; border: 1px solid rgba(198,183,163,0.75); border-radius: 999px; background: rgba(255,255,255,0.66); color: #796b5c; font: 700 8px "DM Sans",sans-serif; text-transform: none; letter-spacing: 0; cursor: pointer; }
.orbit-card.rank-0 .orbit-focus-control { border-color: transparent; background: var(--amber-soft); color: var(--amber); }
.orbit-focus-control:focus-visible { outline: 3px solid rgba(216,115,36,0.24); outline-offset: 2px; }
.role-mark { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 7px; background: #eee8df; color: #716656; }
.role-violet .role-mark { background: var(--violet-soft); color: var(--violet); }
.role-blue .role-mark { background: var(--blue-soft); color: var(--blue); }
.role-amber .role-mark { background: var(--amber-soft); color: var(--amber); }
.role-green .role-mark { background: var(--green-soft); color: var(--green); }
.role-rose .role-mark { background: var(--rose-soft); color: var(--rose); }
.work-visual { float: left; width: 54px; height: 54px; margin: 12px 12px 9px 0; position: relative; overflow: hidden; border-radius: 12px; background: linear-gradient(145deg,#e58634,#d15327); box-shadow: 0 8px 16px rgba(86,51,23,0.12); }
.visual-brief { background: linear-gradient(145deg,#8060d4,#b54bb9); }
.visual-draft { background: linear-gradient(145deg,#277ec8,#1cb1b0); }
.visual-localize { background: linear-gradient(145deg,#269b74,#74b63e); }
.visual-system { background: linear-gradient(145deg,#e25b65,#ed9252); }
.work-visual i { position: absolute; left: 11px; right: 11px; height: 3px; border-radius: 3px; background: rgba(255,255,255,0.76); }
.work-visual i:nth-child(1) { top: 16px; }
.work-visual i:nth-child(2) { top: 25px; right: 18px; }
.work-visual i:nth-child(3) { top: 34px; right: 24px; }
.orbit-card h2 { margin: 13px 0 3px; color: #2c251e; font: 600 13px/1.35 "Manrope", sans-serif; letter-spacing: -0.01em; }
.orbit-card > p { margin: 0; min-height: 28px; color: #847767; font-size: 10px; line-height: 1.45; }
.work-reason { clear: both; min-height: 34px; margin-top: 10px; padding-top: 9px; display: flex; align-items: start; justify-content: space-between; gap: 10px; border-top: 1px solid #eee7dc; color: #9b8d7b; font-size: 8px; }
.work-reason span { max-width: 72%; }
.work-reason strong { color: #635749; white-space: nowrap; font-weight: 700; }
.orbit-action { width: 100%; margin-top: 10px; padding: 9px 11px; display: flex; justify-content: space-between; border: 0; border-radius: 9px; background: #f3ede4; color: #504438; font-size: 9px; font-weight: 700; }
.orbit-card.rank-0 .orbit-action { background: #2b251e; color: white; box-shadow: 0 8px 16px rgba(43,37,30,0.15); }
.orbit-action:hover { transform: translateY(-1px); }

/* Depth is also an information hierarchy. Each receding level removes the
   next least useful decision layer while the whole card remains selectable. */
.orbit-card.rank-1 .orbit-action,
.orbit-card.rank-2 .work-reason,
.orbit-card.rank-2 .orbit-action,
.orbit-card.rank-3 .participant-stack,
.orbit-card.rank-3 .work-reason,
.orbit-card.rank-3 .orbit-action,
.orbit-card.rank-4 .orbit-card-head,
.orbit-card.rank-4 > p,
.orbit-card.rank-4 .participant-stack,
.orbit-card.rank-4 .work-reason,
.orbit-card.rank-4 .orbit-action { display: none; }

.orbit-card.rank-4 h2 { margin-top: 19px; }

:root { view-transition-name: none; }
::view-transition-group(orbit-reviewer),::view-transition-group(orbit-explorer),::view-transition-group(orbit-builder),::view-transition-group(orbit-translator),::view-transition-group(orbit-designer),::view-transition-group(orbit-connectors) { animation-duration: 360ms; animation-timing-function: cubic-bezier(0.18,0.8,0.2,1); }
html.orbit-transition-reviewer::view-transition-group(orbit-reviewer),html.orbit-transition-explorer::view-transition-group(orbit-explorer),html.orbit-transition-builder::view-transition-group(orbit-builder),html.orbit-transition-translator::view-transition-group(orbit-translator),html.orbit-transition-designer::view-transition-group(orbit-designer) { z-index: 20; }

.orbit-footer { margin-top: -1px; padding: 13px 16px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid #e2d9cb; border-radius: 13px; background: rgba(255,253,249,0.76); box-shadow: 0 9px 24px rgba(65,48,27,0.05); }
.orbit-footer > div { display: flex; align-items: center; gap: 11px; }
.footer-spark { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: #e5f0eb; color: #1b6b59; }
.orbit-footer p { margin: 0; }
.orbit-footer p strong,.orbit-footer p span { display: block; font-size: 9px; }
.orbit-footer p span { margin-top: 2px; color: #8d806f; }

.role-manager-list { display: grid; gap: 8px; }
.role-manager-item { width: 100%; padding: 12px; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 11px; border: 1px solid #e3dbcf; border-radius: 12px; background: #fbf9f5; color: var(--ink); text-align: left; }
.role-manager-item.is-selected { border-color: #bfcfc8; background: #f4f8f5; }
.role-manager-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: #eee8df; }
.role-manager-item strong,.role-manager-item small { display: block; }
.role-manager-item strong { font-size: 11px; }
.role-manager-item small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.role-manager-item > i { color: #7a6c5c; font-style: normal; font-size: 8px; }
.authority-note { margin-top: 15px; padding: 13px; display: grid; grid-template-columns: auto 1fr; gap: 12px; border-radius: 11px; background: #f3eee6; }
.authority-note > span { align-self: start; padding: 4px 7px; border-radius: 999px; background: white; color: #776957; font-size: 8px; font-weight: 700; }
.authority-note p { margin: 0; color: #786c5d; font-size: 9px; line-height: 1.5; }
.authority-note strong { display: block; color: #3e352c; }

@media (max-width: 1050px) {
  .orbit-stage { height: auto; margin-top: 22px; padding: 210px 0 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; overflow: visible; }
  .orbit-depth i:nth-child(2),.orbit-depth i:nth-child(3),.orbit-lines { display: none; }
  .orbit-depth i:nth-child(1) { top: 100px; width: 260px; height: 180px; }
  .user-core { top: 100px; }
  .orbit-card-slot,.orbit-position-reviewer,.orbit-position-explorer,.orbit-position-builder,.orbit-position-translator,.orbit-position-designer,.context-position-top-right,.context-position-top-left,.context-position-bottom-right,.context-position-bottom-left,.context-position-top-center { position: relative; inset: auto; width: auto; height: auto; }
  .orbit-card { position: relative; inset: auto; width: auto; transform: none; }
  .orbit-card:not(.is-primary):hover { transform: translateY(-2px); }
  .orbit-card.rank-1 { --surface-alpha: 0.95; }
  .orbit-card.rank-2 { --surface-alpha: 0.92; }
  .orbit-card.rank-3 { --surface-alpha: 0.89; }
  .orbit-card.rank-4 { --surface-alpha: 0.86; }
}

@media (max-width: 760px) {
  .responsibility-intro { align-items: flex-start; flex-direction: column; }
  .responsibility-intro h1 { font-size: 27px; }
  .ambient-state { white-space: normal; }
  .role-context-bar { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
  .role-chip { width: 100%; justify-content: center; padding: 0 8px; }
  .role-auto { grid-column: span 2; }
  .role-manage { margin: 0; align-self: center; }
  .ranking-note { align-items: flex-start; flex-wrap: wrap; }
  .ranking-note .return-recommended { margin-left: 0; }
  .orbit-stage { grid-template-columns: 1fr; padding-top: 190px; }
  .user-avatar { width: 78px; height: 78px; }
  .user-halo { width: 108px; height: 108px; }
  .agent-orbit-dot { right: 45px; top: 55px; }
  .orbit-footer,.orbit-footer > div { align-items: flex-start; }
  .orbit-footer { flex-direction: column; }
  .orbit-footer .button { width: 100%; }
  .role-manager-item { grid-template-columns: 38px 1fr; }
  .role-manager-item > i { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(orbit-reviewer),::view-transition-group(orbit-explorer),::view-transition-group(orbit-builder),::view-transition-group(orbit-translator),::view-transition-group(orbit-designer),::view-transition-group(orbit-connectors) { animation-duration: 0.01ms; }
}

/* Community, handoffs and involvement */
.attention-satellite { position: absolute; z-index: 4; top: 98px; right: -116px; width: 116px; padding: 8px 10px; border: 1px solid #ded5c7; border-radius: 11px; background: rgba(255,253,249,0.94); color: #564b3f; box-shadow: 0 12px 25px rgba(66,48,27,0.1); text-align: left; }
.attention-satellite::before { content: ""; position: absolute; left: -18px; top: 50%; width: 18px; height: 1px; background: #d6cbbb; }
.attention-satellite strong,.attention-satellite span { display: block; }
.attention-satellite strong { font-size: 8px; }
.attention-satellite span { margin-top: 2px; color: #918473; font-size: 7px; }
.participant-stack { min-height: 25px; display: flex; align-items: center; }
.participant-stack > span { width: 24px; height: 24px; margin-left: -5px; display: grid; place-items: center; border: 2px solid #fffdfa; border-radius: 50%; background: #e9e2d7; color: #6e6254; font-size: 7px; font-weight: 700; box-shadow: 0 2px 6px rgba(64,47,28,0.08); }
.participant-stack > span:first-child { margin-left: 0; }
.participant-stack > span.is-agent { background: #dfeee8; color: #176b58; }
.participant-stack small { margin-left: 7px; color: #928574; font-size: 8px; }

.community-page { max-width: 1180px; margin: 0 auto; }
.community-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.community-heading h1 { margin: 5px 0 4px; color: #241e18; font: 600 32px/1.2 "Manrope", sans-serif; letter-spacing: -0.035em; }
.community-heading p { margin: 0; max-width: 650px; color: #84786a; font-size: 11px; }
.button-count { min-width: 18px; height: 18px; margin-left: 5px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--amber); color: white; font-size: 8px; }

.inbox-filters,.network-switch { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 15px; }
.inbox-filters button,.network-switch button { padding: 8px 12px; border: 1px solid #ded5c7; border-radius: 999px; background: rgba(255,253,249,0.62); color: #7f7263; font-size: 9px; font-weight: 600; }
.inbox-filters button.is-active,.network-switch button.is-active { border-color: #2b251e; background: #2b251e; color: white; box-shadow: 0 7px 15px rgba(43,37,30,0.13); }
.inbox-layout { display: grid; grid-template-columns: minmax(0,1fr) 270px; gap: 17px; align-items: start; }
.inbox-stream { overflow: hidden; border: 1px solid #e1d8cb; border-radius: 18px; background: rgba(255,253,249,0.8); box-shadow: 0 16px 40px rgba(66,48,27,0.06); }
.inbox-item { width: 100%; padding: 16px; display: grid; grid-template-columns: 42px minmax(0,1fr) 130px; gap: 13px; align-items: start; border: 0; border-top: 1px solid #ebe4da; background: transparent; color: #332b23; text-align: left; }
.inbox-item:first-child { border-top: 0; }
.inbox-item:hover { background: rgba(245,239,230,0.65); }
.inbox-item.is-read { opacity: 0.76; }
.inbox-avatar { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: #e9e2d7; color: #675b4c; font-size: 9px; font-weight: 700; }
.type-agent .inbox-avatar { background: #e2efe9; color: #166b58; }
.type-agency .inbox-avatar { background: var(--amber-soft); color: #b75b19; }
.type-team .inbox-avatar { background: var(--violet-soft); color: var(--violet); }
.inbox-avatar i { position: absolute; right: -2px; bottom: -2px; width: 9px; height: 9px; border: 2px solid #fffdfa; border-radius: 50%; background: #38a578; }
.inbox-copy,.inbox-copy > * { display: block; }
.inbox-sender { display: flex; align-items: center; gap: 7px; }
.inbox-sender strong { font-size: 9px; }
.inbox-sender small { padding: 3px 6px; border-radius: 999px; background: #f0ebe3; color: #8d7f6e; font-size: 7px; }
.inbox-copy > b { margin-top: 6px; font: 600 12px/1.35 "Manrope", sans-serif; }
.inbox-copy > span:last-child { margin-top: 4px; color: #8b7e6f; font-size: 9px; line-height: 1.45; }
.inbox-state { display: grid; justify-items: end; gap: 8px; text-align: right; }
.inbox-state small { color: #9a8c79; font-size: 8px; }
.inbox-state strong { padding: 4px 7px; border-radius: 999px; background: #f1ece4; color: #746858; font-size: 7px; }
.inbox-state.status-attention strong { background: var(--amber-soft); color: #b55b1a; }
.inbox-state.status-running strong { background: #e5f0eb; color: #166b58; }
.inbox-state.status-ready strong { background: var(--blue-soft); color: var(--blue); }
.inbox-state.status-done strong { background: #e5f0eb; color: #166b58; }
.inbox-state > i { width: 90px; height: 4px; overflow: hidden; border-radius: 4px; background: #e5ddd1; }
.inbox-state > i span { display: block; height: 100%; border-radius: inherit; background: #2e8a72; }
.inbox-context { padding: 22px; border: 1px solid #dfd6c9; border-radius: 18px; background: linear-gradient(150deg,rgba(255,253,249,0.95),rgba(242,235,224,0.9)); box-shadow: 0 16px 38px rgba(66,48,27,0.07); }
.context-orbit-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: #2c261f; color: #fff7eb; font-size: 18px; }
.inbox-context h2 { margin: 15px 0 6px; font: 600 16px "Manrope",sans-serif; }
.inbox-context p { margin: 0; color: #897c6d; font-size: 9px; line-height: 1.55; }
.community-mini-row { display: flex; align-items: center; margin: 18px 0; }
.community-mini-row span { width: 30px; height: 30px; margin-left: -6px; display: grid; place-items: center; border: 2px solid #fffaf2; border-radius: 50%; background: #ddd4c6; color: #6d6152; font-size: 8px; font-weight: 700; }
.community-mini-row span:first-child { margin-left: 0; }
.community-mini-row i { margin-left: 7px; color: #8c7e6d; font-style: normal; font-size: 8px; }
.empty-state { padding: 50px 20px; text-align: center; }
.empty-state strong,.empty-state span { display: block; }
.empty-state span { margin-top: 5px; color: var(--muted); font-size: 9px; }

.network-layout { display: grid; grid-template-columns: minmax(0,1fr) 270px; gap: 17px; align-items: stretch; }
.network-stage { position: relative; min-height: 610px; overflow: hidden; border: 1px solid #e0d7c9; border-radius: 21px; background: radial-gradient(circle at 50% 52%,rgba(255,255,255,0.94),rgba(250,246,239,0.72) 55%,rgba(239,231,219,0.6)); box-shadow: 0 20px 46px rgba(66,48,27,0.08); }
.network-stage > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.network-stage > svg path { fill: none; stroke: rgba(147,127,101,0.22); stroke-width: 1.2; }
.network-stage > svg .handoff-line { stroke: rgba(210,105,30,0.68); stroke-width: 2; }
.network-rings i { position: absolute; left: 50%; top: 51%; border: 1px solid rgba(171,150,121,0.18); border-radius: 50%; transform: translate(-50%,-50%); }
.network-rings i:first-child { width: 310px; height: 310px; }
.network-rings i:last-child { width: 650px; height: 520px; }
.network-node { position: absolute; left: var(--x); top: var(--y); width: 118px; padding: 8px; display: grid; justify-items: center; transform: translate(-50%,-50%); border: 1px solid #ddd3c5; border-radius: 13px; background: rgba(255,253,249,0.95); color: #51463a; box-shadow: 0 10px 24px rgba(69,49,28,0.08); text-align: center; }
.network-node > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; background: #eae3d8; font-size: 9px; font-weight: 700; }
.network-node strong { margin-top: 7px; font-size: 9px; }
.network-node small { margin-top: 2px; color: #938574; font-size: 7px; }
.network-node em { position: absolute; right: -5px; top: -5px; width: 19px; height: 19px; display: grid; place-items: center; border: 3px solid var(--canvas-warm); border-radius: 50%; background: var(--amber); color: white; font-style: normal; font-size: 7px; }
.network-node.type-user { border-color: rgba(216,115,36,0.6); box-shadow: 0 15px 30px rgba(166,81,24,0.15); }
.network-node.type-user > span { border-radius: 50%; background: linear-gradient(145deg,#eb9346,#c85d23); color: white; }
.network-node.type-agent { border-style: dashed; }
.network-node.type-agent > span { background: #dfeee8; color: #176b58; }
.network-node.type-agency > span { background: var(--amber-soft); color: #b65a19; }
.network-node.type-team > span { background: var(--violet-soft); color: var(--violet); }
.network-node.is-selected { outline: 3px solid rgba(216,115,36,0.2); border-color: var(--amber); }
.network-detail { padding: 22px; border: 1px solid #e0d7ca; border-radius: 19px; background: rgba(255,253,249,0.9); box-shadow: 0 18px 40px rgba(66,48,27,0.07); }
.network-detail-type { text-transform: uppercase; color: #998a77; font-size: 8px; font-weight: 700; letter-spacing: 0.1em; }
.network-detail h2 { margin: 7px 0 7px; font: 600 18px "Manrope",sans-serif; }
.network-detail > p { margin: 0; color: #837667; font-size: 9px; line-height: 1.55; }
.relationship-path { margin: 19px 0; padding: 11px; display: flex; align-items: center; justify-content: space-between; border-radius: 10px; background: #f1ece4; color: #5f5346; font-size: 8px; font-weight: 700; }
.relationship-path i { color: var(--amber); font-style: normal; }
.active-handoff { margin-bottom: 12px; padding: 12px; border-left: 2px solid var(--amber); background: var(--amber-soft); }
.active-handoff strong,.active-handoff span { display: block; }
.active-handoff strong { font-size: 9px; }
.active-handoff span { margin-top: 3px; color: #876f58; font-size: 8px; line-height: 1.4; }
.active-handoff.is-accepted { border-left-color: #2e8b72; background: #e4f0eb; }
.active-handoff.is-accepted span { color: #587569; }
.network-legend { display: flex; flex-wrap: wrap; gap: 16px; margin: 12px 2px 0; color: #8c7f6e; font-size: 8px; }
.network-legend span { display: flex; align-items: center; gap: 6px; }
.network-legend i { width: 10px; height: 10px; border: 1px solid #bfb3a2; border-radius: 3px; }
.network-legend .legend-agent { border-style: dashed; background: #e0eee8; }
.network-legend .legend-active { border: 0; border-radius: 50%; background: var(--amber); }

.involvement-bar { margin-bottom: 13px; padding: 11px 14px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border: 1px solid #ddd6ca; border-radius: 13px; background: rgba(255,253,249,0.75); box-shadow: 0 8px 22px rgba(66,48,27,0.04); }
.involvement-copy { display: flex; align-items: center; gap: 12px; }
.involvement-copy p { margin: 0; }
.involvement-copy p strong,.involvement-copy p span { display: block; font-size: 9px; }
.involvement-copy p span { margin-top: 2px; color: #8b7e6e; }
.involvement-list { display: grid; gap: 9px; }
.involvement-person { padding: 11px; display: grid; grid-template-columns: 38px 1fr; gap: 11px; align-items: start; border-bottom: 1px solid var(--line); }
.involvement-person > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: #e9e2d7; color: #6d6153; font-size: 9px; font-weight: 700; }
.involvement-person.is-agent > span { background: #deede7; color: #176b58; }
.involvement-person strong,.involvement-person small { display: block; }
.involvement-person strong { font-size: 10px; }
.involvement-person small { margin-top: 2px; color: #8a7c6c; font-size: 8px; }
.involvement-person p { margin: 5px 0 0; color: #766a5c; font-size: 8px; }

/* Participation and authority are decision-critical, so this dialog uses
   normal reading sizes instead of compact metadata typography. */
.involvement-list { gap: 4px; }
.involvement-person { padding: 15px 13px; grid-template-columns: 44px minmax(0,1fr); gap: 13px; }
.involvement-person > span { width: 42px; height: 42px; font-size: 11px; }
.involvement-person strong { font-size: 14px; line-height: 1.35; }
.involvement-person small { margin-top: 3px; font-size: 12px; line-height: 1.4; }
.involvement-person p { margin-top: 6px; font-size: 13px; line-height: 1.5; }
.authority-note { padding: 15px; gap: 13px; }
.authority-note > span { font-size: 11px; }
.authority-note p { font-size: 13px; line-height: 1.55; }
.handoff-actors { display: flex; align-items: center; justify-content: center; gap: 25px; margin-bottom: 18px; }
.handoff-actors > span { display: grid; justify-items: center; text-align: center; }
.handoff-actors i { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--amber-soft); color: #b55b1a; font-style: normal; font-size: 10px; font-weight: 700; }
.handoff-actors strong,.handoff-actors small { display: block; }
.handoff-actors strong { margin-top: 7px; font-size: 10px; }
.handoff-actors small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.handoff-actors > b { color: var(--amber); }
.handoff-scope { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.handoff-scope > span { padding: 10px; border-radius: 9px; background: #f3eee7; }
.handoff-scope small,.handoff-scope strong { display: block; }
.handoff-scope small { color: #928574; font-size: 7px; }
.handoff-scope strong { margin-top: 3px; font-size: 9px; }
.handoff-note { margin: 14px 0; padding: 12px; border-left: 2px solid #c9bda9; background: #faf7f2; }
.handoff-note strong { font-size: 9px; }
.handoff-note p { margin: 5px 0 0; color: #786b5c; font-size: 9px; line-height: 1.55; }
.agent-job-head { display: flex; align-items: center; gap: 10px; }
.agent-job-head > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: #deeee7; color: #176b58; }
.agent-job-head > div { flex: 1; }
.agent-job-head strong,.agent-job-head small { display: block; }
.agent-job-head strong { font-size: 10px; }
.agent-job-head small { color: var(--muted); font-size: 8px; }
.agent-job-head em { padding: 4px 7px; border-radius: 999px; background: #e4f0eb; color: #176b58; font-style: normal; font-size: 7px; }
.agent-job h3 { margin: 18px 0 9px; font: 600 14px "Manrope",sans-serif; }
.job-progress { height: 7px; margin-bottom: 16px; overflow: hidden; border-radius: 7px; background: #e6dfd4; }
.job-progress span { display: block; height: 100%; border-radius: inherit; background: #2e8b72; }

@media (max-width: 1050px) {
  .inbox-layout,.network-layout { grid-template-columns: 1fr; }
  .inbox-context { display: none; }
  .network-detail { order: -1; }
}

@media (max-width: 760px) {
  .attention-satellite { top: 132px; right: auto; left: 50%; transform: translateX(-50%); width: 132px; text-align: center; }
  .attention-satellite::before { display: none; }
  .community-heading { align-items: flex-start; flex-direction: column; }
  .community-heading h1 { font-size: 27px; }
  .community-heading .button { width: 100%; }
  .inbox-item { grid-template-columns: 38px 1fr; }
  .inbox-state { grid-column: 2; justify-items: start; text-align: left; }
  .inbox-sender { align-items: flex-start; flex-direction: column; gap: 3px; }
  .network-stage { min-height: 0; padding: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
  .network-stage > svg,.network-rings { display: none; }
  .network-node { position: relative; inset: auto; width: auto; transform: none; }
  .involvement-bar,.involvement-copy { align-items: flex-start; flex-direction: column; }
  .involvement-bar .button { width: 100%; }
  .handoff-scope { grid-template-columns: 1fr; }
}

/* Sandbox library and generic scaffolding */
.sandbox-library-page,.generic-sandbox-page { width: min(1160px,100%); margin: 0 auto; }
.sandbox-library-heading { min-height: 122px; padding-bottom: 24px; display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; border-bottom: 1px solid #ded6ca; }
.sandbox-library-heading > div > span { color: #8d7e6c; font-size: 11px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; }
.sandbox-library-heading h1 { margin: 7px 0 4px; color: #251f19; font: 600 40px/1.1 "Manrope",sans-serif; letter-spacing: -0.04em; }
.sandbox-library-heading p { max-width: 700px; margin: 0; color: #766957; font-size: 13px; line-height: 1.55; }
.sandbox-library-boundary { margin: 18px 0 20px; padding: 14px 16px; display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 13px; border: 1px solid #ddd3c4; border-radius: 15px; background: rgba(255,253,249,0.63); }
.sandbox-library-boundary > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: #f6ebd8; font-size: 18px; }
.sandbox-library-boundary p { margin: 0; }
.sandbox-library-boundary p strong,.sandbox-library-boundary p small,.sandbox-library-boundary > div strong,.sandbox-library-boundary > div small { display: block; }
.sandbox-library-boundary p strong { color: #443a30; font-size: 12px; }
.sandbox-library-boundary p small { margin-top: 3px; color: #887a69; font-size: 10px; line-height: 1.4; }
.sandbox-library-boundary > div { padding-left: 16px; border-left: 1px solid #e2d9cc; text-align: right; }
.sandbox-library-boundary > div strong { color: #5a4e40; font-size: 11px; }
.sandbox-library-boundary > div small { margin-top: 3px; color: #958674; font-size: 9px; }
.sandbox-library-list { display: grid; gap: 9px; }
.sandbox-library-item { width: 100%; min-height: 108px; padding: 15px 17px; display: grid; grid-template-columns: 54px minmax(230px,1.3fr) minmax(170px,.72fr) minmax(170px,.72fr) 142px 20px; align-items: center; gap: 15px; border: 1px solid #ddd4c8; border-radius: 16px; background: rgba(255,253,249,0.7); color: #463b31; box-shadow: 0 10px 26px rgba(67,49,29,0.045); text-align: left; transition: transform 150ms ease,border-color 150ms ease,box-shadow 150ms ease; }
.sandbox-library-item:hover { transform: translateY(-2px); border-color: #c8b8a5; box-shadow: 0 16px 34px rgba(67,49,29,0.08); }
.sandbox-library-item.status-handoff { border-color: #d8b68e; background: linear-gradient(90deg,rgba(255,247,236,0.9),rgba(255,253,249,0.7)); }
.sandbox-library-icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 15px; background: #eee5d9; color: #6b5d4d; font-size: 11px; font-weight: 700; }
.sandbox-library-copy small,.sandbox-library-copy strong,.sandbox-library-copy em,.sandbox-library-owner small,.sandbox-library-owner strong,.sandbox-library-owner em,.sandbox-library-ai small,.sandbox-library-ai strong,.sandbox-library-ai em,.sandbox-library-status strong,.sandbox-library-status small { display: block; }
.sandbox-library-copy small { color: #9a7a5e; font-size: 9px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.sandbox-library-copy strong { margin-top: 5px; color: #302820; font: 600 15px/1.3 "Manrope",sans-serif; }
.sandbox-library-copy em { margin-top: 4px; overflow: hidden; color: #7f7161; font-size: 10px; font-style: normal; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.sandbox-library-owner,.sandbox-library-ai { min-width: 0; padding-left: 15px; border-left: 1px solid #e5ddd2; }
.sandbox-library-owner small,.sandbox-library-ai small { color: #9a8b79; font-size: 8px; }
.sandbox-library-owner strong,.sandbox-library-ai strong { margin-top: 4px; overflow: hidden; color: #5a4e40; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.sandbox-library-owner em,.sandbox-library-ai em { margin-top: 4px; overflow: hidden; color: #9a8c7a; font-size: 8px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.sandbox-library-status { min-height: 54px; padding: 9px 10px; display: grid; grid-template-columns: 8px 1fr; align-content: center; column-gap: 8px; border-radius: 11px; background: #f2ede5; }
.sandbox-library-status > i { grid-row: 1 / span 2; width: 8px; height: 8px; margin-top: 3px; border-radius: 50%; background: #9d8d79; }
.status-active .sandbox-library-status > i { background: #2e8068; }
.status-working .sandbox-library-status > i { background: #547b9b; box-shadow: 0 0 0 4px rgba(84,123,155,0.1); }
.status-handoff .sandbox-library-status > i { background: #d17428; }
.status-review .sandbox-library-status > i { background: #795ea7; }
.sandbox-library-status strong { color: #655849; font-size: 9px; line-height: 1.3; }
.sandbox-library-status small { margin-top: 3px; color: #958674; font-size: 8px; }
.sandbox-library-arrow { color: #968673; font: 400 25px/1 "Manrope",sans-serif; }

.generic-sandbox-workbench { margin-top: 15px; display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 14px; align-items: start; }
.generic-scaffold,.generic-sandbox-agent { border: 1px solid #ded4c7; border-radius: 18px; background: rgba(255,253,249,0.74); box-shadow: 0 14px 34px rgba(67,49,29,0.05); }
.generic-scaffold { padding: 20px; }
.generic-scaffold > header { margin-bottom: 15px; display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.generic-scaffold > header span { color: #9b6c47; font-size: 9px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.generic-scaffold > header h2 { margin: 4px 0 0; color: #332b23; font: 600 20px "Manrope",sans-serif; }
.generic-scaffold > header small { color: #948674; font-size: 9px; }
.generic-scaffold > div { display: grid; gap: 7px; }
.generic-scaffold-block { width: 100%; min-height: 76px; padding: 12px 14px; display: grid; grid-template-columns: 34px minmax(0,1fr) 18px; align-items: center; gap: 12px; border: 1px solid #e3dbd0; border-radius: 12px; background: rgba(250,247,241,0.72); color: #4f4337; text-align: left; }
.generic-scaffold-block:hover { border-color: #cdbca8; background: #fffdf9; }
.generic-scaffold-block > span { color: #b0784b; font-size: 9px; font-weight: 700; }
.generic-scaffold-block small,.generic-scaffold-block strong { display: block; }
.generic-scaffold-block small { color: #9b8b78; font-size: 8px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.generic-scaffold-block strong { margin-top: 4px; color: #443a30; font-size: 11px; line-height: 1.4; }
.generic-scaffold-block > i { color: #aa9984; font-size: 19px; font-style: normal; }
.generic-add-block { width: 100%; margin-top: 9px; padding: 11px; border: 1px dashed #d2c5b5; border-radius: 11px; background: transparent; color: #867765; font-size: 9px; font-weight: 700; }
.generic-add-block > span { margin-right: 7px; color: #b06933; }
.generic-sandbox-agent { padding: 20px; }
.generic-sandbox-agent h2 { margin: 20px 0 7px; color: #332b23; font: 600 18px/1.3 "Manrope",sans-serif; }
.generic-sandbox-agent > p { margin: 0 0 15px; color: #7f7161; font-size: 10px; line-height: 1.55; }
.generic-sandbox-agent .idea-suggestion { width: 100%; }
.sandbox-create-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.sandbox-create-intent { grid-column: 1 / -1; }

@media (max-width: 1080px) {
  .sandbox-library-item { grid-template-columns: 54px minmax(220px,1fr) minmax(170px,.7fr) 140px 20px; }
  .sandbox-library-ai { display: none; }
}

@media (max-width: 820px) {
  .sandbox-library-heading { align-items: flex-start; flex-direction: column; gap: 18px; }
  .sandbox-library-heading .button { width: 100%; }
  .sandbox-library-boundary { grid-template-columns: 38px minmax(0,1fr); }
  .sandbox-library-boundary > div { grid-column: 2; padding: 9px 0 0; border: 0; border-top: 1px solid #e2d9cc; text-align: left; }
  .sandbox-library-item { grid-template-columns: 50px minmax(0,1fr) 126px 18px; }
  .sandbox-library-owner { grid-column: 2 / 4; padding: 9px 0 0; border: 0; border-top: 1px solid #e5ddd2; }
  .sandbox-library-status { grid-column: 3; grid-row: 1; }
  .sandbox-library-arrow { grid-column: 4; grid-row: 1; }
  .generic-sandbox-workbench { grid-template-columns: 1fr; }
  .generic-sandbox-agent { order: -1; }
}

@media (max-width: 560px) {
  .sandbox-library-heading h1 { font-size: 34px; }
  .sandbox-library-item { grid-template-columns: 44px minmax(0,1fr) 18px; padding: 14px; }
  .sandbox-library-icon { width: 42px; height: 42px; border-radius: 12px; }
  .sandbox-library-status { grid-column: 2 / -1; grid-row: auto; min-height: 44px; }
  .sandbox-library-owner { grid-column: 2 / -1; }
  .sandbox-library-arrow { grid-column: 3; grid-row: 1; }
  .sandbox-create-fields { grid-template-columns: 1fr; }
  .sandbox-create-intent { grid-column: auto; }
}

/* Exploration sandbox */
.sandbox-page { max-width: 1260px; margin: 0 auto; }
.sandbox-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; margin-bottom: 17px; }
.sandbox-kicker { display: block; margin-top: 13px; color: var(--violet); font-size: 9px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.sandbox-heading h1 { margin: 7px 0 5px; max-width: 780px; color: #272019; font: 600 31px/1.2 "Manrope",sans-serif; letter-spacing: -0.035em; }
.sandbox-heading p { margin: 0; max-width: 720px; color: #847769; font-size: 10px; }
.sandbox-presence { min-width: 155px; padding: 10px 12px; display: grid; grid-template-columns: 32px 1fr; gap: 1px 9px; align-items: center; border: 1px solid #ded5c8; border-radius: 13px; background: rgba(255,253,249,0.72); box-shadow: 0 9px 22px rgba(68,48,27,0.05); }
.sandbox-presence > span { grid-row: span 2; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(145deg,#8060d4,#a84caa); color: white; font-size: 8px; font-weight: 700; }
.sandbox-presence strong { font-size: 9px; }
.sandbox-presence small { color: #918372; font-size: 7px; }
.sandbox-safety { padding: 11px 14px; display: flex; align-items: center; gap: 11px; border: 1px dashed #cfc1df; border-radius: 13px; background: rgba(244,239,251,0.72); color: #5f526e; }
.sandbox-lock { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: var(--violet-soft); color: var(--violet); }
.sandbox-safety p { flex: 1; margin: 0; }
.sandbox-safety strong,.sandbox-safety p span { display: block; font-size: 9px; }
.sandbox-safety p span { margin-top: 2px; color: #82758d; }
.sandbox-safety button { padding: 0; border: 0; background: none; color: var(--violet); font-size: 8px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.sandbox-rest-banner { margin-bottom: 12px; padding: 12px 14px; display: flex; align-items: center; gap: 11px; border: 1px solid #d8cce6; border-radius: 13px; background: #f2ecf8; }
.sandbox-rest-banner > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--violet); color: white; }
.sandbox-rest-banner p { flex: 1; margin: 0; }
.sandbox-rest-banner strong,.sandbox-rest-banner small { display: block; }
.sandbox-rest-banner strong { font-size: 9px; }
.sandbox-rest-banner small { margin-top: 2px; color: #7f718c; font-size: 8px; }
.sandbox-rest-banner.is-handed { border-color: #bdd8ce; background: #e6f1ed; }
.sandbox-rest-banner.is-handed > span { background: #287962; }

.sandbox-workbench { margin-top: 13px; display: grid; grid-template-columns: 225px minmax(430px,1fr) 240px; gap: 13px; align-items: start; }
.sandbox-workbench.is-frozen { filter: saturate(0.55); opacity: 0.64; pointer-events: none; }
.source-pocket,.sandbox-canvas,.idea-pocket { border: 1px solid #e0d6c9; border-radius: 18px; background: rgba(255,253,249,0.78); box-shadow: 0 14px 34px rgba(68,48,27,0.055); }
.source-pocket { padding: 14px; }
.sandbox-canvas { min-height: 660px; padding: 18px; position: relative; overflow: hidden; background-color: rgba(255,253,249,0.72); background-image: radial-gradient(rgba(135,111,165,0.13) 0.8px,transparent 0.8px); background-size: 16px 16px; }
.sandbox-canvas::before { content: ""; position: absolute; inset: 60px 14% 80px; border-radius: 50%; background: radial-gradient(circle,rgba(129,96,190,0.09),rgba(129,96,190,0) 70%); pointer-events: none; }
.idea-pocket { padding: 18px; background: linear-gradient(155deg,rgba(255,253,249,0.96),rgba(241,235,249,0.88)); }
.sandbox-panel-heading { position: relative; z-index: 1; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.sandbox-panel-heading span { color: #4c4136; font-size: 9px; font-weight: 700; }
.sandbox-panel-heading small { color: #9b8d7b; font-size: 7px; text-align: right; }
.source-cloud { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.source-slide { position: relative; min-width: 0; padding: 7px; display: grid; align-content: start; border: 1px solid #ded5c8; border-radius: 10px; background: #fffdfa; color: #51453a; box-shadow: 0 6px 13px rgba(71,50,28,0.06); text-align: left; transform: rotate(var(--tilt)); transition: transform 150ms ease,box-shadow 150ms ease; }
.source-slide:hover:not(:disabled) { transform: rotate(0) translateY(-2px); box-shadow: 0 10px 20px rgba(71,50,28,0.11); }
.source-slide.is-added { opacity: 0.56; }
.source-slide-visual { height: 45px; position: relative; overflow: hidden; border-radius: 7px; background: linear-gradient(145deg,#d28550,#a9564e); }
.tone-data .source-slide-visual,.tone-data .sandbox-slide-preview,.brief-sequence-mini .tone-data { background: linear-gradient(145deg,#4a84aa,#315e88); }
.tone-portrait .source-slide-visual,.tone-portrait .sandbox-slide-preview,.brief-sequence-mini .tone-portrait { background: linear-gradient(145deg,#9970d0,#c35aa7); }
.tone-steps .source-slide-visual,.tone-steps .sandbox-slide-preview,.brief-sequence-mini .tone-steps { background: linear-gradient(145deg,#308f77,#58a965); }
.tone-conversation .source-slide-visual,.tone-conversation .sandbox-slide-preview,.brief-sequence-mini .tone-conversation { background: linear-gradient(145deg,#e17b3f,#d3554b); }
.tone-closing .source-slide-visual,.tone-closing .sandbox-slide-preview,.brief-sequence-mini .tone-closing { background: linear-gradient(145deg,#4374a5,#6e58ae); }
.tone-rough .sandbox-slide-preview,.brief-sequence-mini .tone-rough { background: #f5efe6; border: 1px dashed #b8a997; }
.tone-bridge .sandbox-slide-preview,.brief-sequence-mini .tone-bridge { background: linear-gradient(145deg,#6e58ae,#397f87); }
.source-slide strong { margin-top: 6px; overflow: hidden; font-size: 7px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.source-slide small { margin-top: 2px; overflow: hidden; color: #9a8c79; font-size: 6px; text-overflow: ellipsis; white-space: nowrap; }
.source-slide em { margin-top: 5px; color: var(--violet); font-style: normal; font-size: 6px; font-weight: 700; }
.source-slide:disabled em { color: #887b6c; }

.source-slide-visual i,.sandbox-slide-preview i,.suggestion-preview i { position: absolute; display: block; background: rgba(255,255,255,0.76); }
.mark-line { left: 18%; right: 18%; height: 4px; border-radius: 4px; }
.mark-line.one { top: 27%; }.mark-line.two { top: 46%; right: 30%; }.mark-line.three { top: 65%; right: 42%; }
.mark-person { width: 17px; height: 17px; left: 22%; top: 20%; border-radius: 50%; }
.mark-person + .mark-line { left: 52%; top: 31%; right: 13%; }
.mark-bar { bottom: 18%; width: 12%; border-radius: 3px 3px 0 0; }
.mark-bar.one { left: 22%; height: 27%; }.mark-bar.two { left: 43%; height: 48%; }.mark-bar.three { left: 64%; height: 63%; }
.mark-step { width: 14px; height: 14px; border-radius: 50%; top: 35%; }
.mark-step.one { left: 18%; }.mark-step.two { left: 43%; }.mark-step.three { left: 68%; }
.mark-bubble { border-radius: 9px; }.mark-bubble.one { width: 35%; height: 28%; left: 15%; top: 20%; }.mark-bubble.two { width: 30%; height: 24%; right: 13%; bottom: 18%; opacity: 0.68; }

.sequence-thread { position: relative; z-index: 1; display: grid; gap: 8px; }
.sequence-thread::before { content: ""; position: absolute; z-index: -1; left: 35px; top: 25px; bottom: 25px; width: 1px; background: linear-gradient(#b9a4d3,#d9cfe5); }
.sandbox-slide-card { min-height: 77px; padding: 9px 9px 9px 5px; display: grid; grid-template-columns: 30px 92px minmax(0,1fr) auto; gap: 10px; align-items: center; border: 1px solid #dcd2c5; border-radius: 13px; background: rgba(255,253,249,0.94); box-shadow: 0 8px 19px rgba(70,49,27,0.065); }
.sandbox-slide-card.is-rough { border-style: dashed; background: rgba(252,248,242,0.91); }
.sandbox-slide-card.is-suggestion { border-color: #bfaed2; background: #faf7fd; }
.sandbox-slide-number { width: 28px; height: 28px; display: grid; place-items: center; border: 2px solid #f9f5ed; border-radius: 50%; background: var(--violet); color: white; font-size: 7px; font-weight: 700; box-shadow: 0 0 0 1px #c7b8d8; }
.sandbox-slide-preview { height: 58px; position: relative; overflow: hidden; border-radius: 8px; background: linear-gradient(145deg,#c77b4b,#ac5b55); }
.sandbox-slide-copy strong,.sandbox-slide-copy span { display: block; }
.sandbox-slide-copy strong { color: #493e33; font-size: 9px; }
.sandbox-slide-copy span { margin-top: 4px; color: #958776; font-size: 7px; }
.sandbox-slide-actions { display: flex; gap: 4px; }
.sandbox-slide-actions button { width: 23px; height: 23px; display: grid; place-items: center; border: 1px solid #ded5c8; border-radius: 7px; background: #f7f2ea; color: #716556; font-size: 9px; }
.sandbox-slide-actions button:disabled { opacity: 0.34; }
.sandbox-new-slide { min-height: 62px; padding: 10px 12px 10px 35px; display: grid; grid-template-columns: 32px 1fr; align-items: center; gap: 1px 10px; border: 1px dashed #bba9cf; border-radius: 12px; background: rgba(246,241,251,0.68); color: #685679; text-align: left; }
.sandbox-new-slide > span { grid-row: span 2; width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; background: var(--violet-soft); font-size: 16px; }
.sandbox-new-slide strong { font-size: 8px; }.sandbox-new-slide small { color: #9587a0; font-size: 7px; }
.sequence-story { position: relative; z-index: 1; margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: rgba(237,230,246,0.78); }
.sequence-story span { color: var(--violet); font-size: 7px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.sequence-story p { margin: 4px 0 0; color: #6e6079; font-size: 8px; }

.idea-agent { display: flex; align-items: center; gap: 9px; }
.idea-agent > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: var(--violet); color: white; }
.idea-agent strong,.idea-agent small { display: block; }
.idea-agent strong { font-size: 9px; }.idea-agent small { color: #94849f; font-size: 7px; }
.idea-pocket h2 { margin: 20px 0 7px; font: 600 16px/1.35 "Manrope",sans-serif; color: #413647; }
.idea-pocket > p { margin: 0; color: #81748a; font-size: 9px; line-height: 1.55; }
.idea-suggestion { width: 100%; margin: 17px 0 9px; padding: 9px; display: grid; grid-template-columns: 60px 1fr; gap: 9px; align-items: center; border: 1px solid #cdbdde; border-radius: 12px; background: #fbf9fd; color: #54445e; text-align: left; }
.idea-suggestion:disabled { opacity: 0.64; }
.suggestion-preview { height: 52px; position: relative; overflow: hidden; border-radius: 8px; background: linear-gradient(145deg,#6e58ae,#397f87); }
.idea-suggestion strong,.idea-suggestion small { display: block; }
.idea-suggestion strong { font-size: 8px; }.idea-suggestion small { margin-top: 3px; color: #8d7b97; font-size: 7px; line-height: 1.35; }
.idea-boundary { margin-top: 22px; padding-top: 13px; border-top: 1px solid #ded4e7; }
.idea-boundary strong,.idea-boundary span { display: block; }
.idea-boundary strong { color: #685774; font-size: 7px; text-transform: uppercase; letter-spacing: 0.08em; }
.idea-boundary span { margin-top: 4px; color: #8b7d94; font-size: 7px; line-height: 1.5; }

.sandbox-transition { margin-top: 13px; padding: 13px 15px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid #d9cde5; border-radius: 14px; background: linear-gradient(110deg,rgba(248,244,252,0.94),rgba(255,253,249,0.92)); box-shadow: 0 12px 27px rgba(72,50,91,0.07); }
.sandbox-transition > div:first-child { display: flex; align-items: center; gap: 11px; }
.transition-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: var(--violet-soft); color: var(--violet); }
.sandbox-transition p { margin: 0; }
.sandbox-transition p strong,.sandbox-transition p span { display: block; font-size: 9px; }
.sandbox-transition p span { margin-top: 2px; color: #8b7d92; }
.transition-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.boundary-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 11px; align-items: center; }
.boundary-flow > div { min-height: 120px; padding: 12px; border-radius: 11px; background: #f4eef9; }
.boundary-flow > div > span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--violet); color: white; font-size: 8px; }
.boundary-flow strong { display: block; margin-top: 8px; font-size: 9px; }
.boundary-flow p { margin: 4px 0 0; color: #82748d; font-size: 8px; line-height: 1.45; }
.boundary-flow > i { color: var(--violet); font-style: normal; }
.brief-sequence-mini { display: flex; gap: 5px; margin-bottom: 14px; overflow: hidden; }
.brief-sequence-mini > span { min-width: 70px; height: 70px; padding: 7px; display: flex; flex-direction: column; justify-content: space-between; border-radius: 9px; background: linear-gradient(145deg,#c77b4b,#ac5b55); color: white; }
.brief-sequence-mini i { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,0.2); font-style: normal; font-size: 7px; }
.brief-sequence-mini small { font-size: 6px; line-height: 1.25; }
.brief-field { display: grid; gap: 6px; margin-top: 14px; }
.brief-field > span { color: #63564a; font-size: 8px; font-weight: 700; }
.brief-field textarea { width: 100%; resize: vertical; padding: 10px; border: 1px solid var(--line-strong); border-radius: 9px; background: #fffdfa; color: var(--ink); font: 400 10px/1.5 "DM Sans",sans-serif; }

@media (max-width: 1120px) {
  .sandbox-workbench { grid-template-columns: 210px minmax(400px,1fr); }
  .idea-pocket { grid-column: 1 / -1; }
  .idea-pocket { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
  .idea-pocket h2,.idea-pocket > p,.idea-boundary { margin: 0; }
  .idea-suggestion { margin: 0; max-width: 330px; }
}

@media (max-width: 820px) {
  .sandbox-heading { align-items: flex-start; flex-direction: column; }
  .sandbox-presence { align-self: stretch; }
  .sandbox-safety,.sandbox-transition { align-items: flex-start; flex-direction: column; }
  .sandbox-workbench { grid-template-columns: 1fr; }
  .source-cloud { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .idea-pocket { grid-column: auto; display: block; }
  .idea-pocket h2 { margin: 18px 0 7px; }
  .idea-pocket > p { margin: 0; }
  .idea-suggestion { margin: 15px 0 9px; max-width: none; }
  .idea-boundary { margin-top: 18px; }
  .sandbox-transition,.transition-actions { width: 100%; }
  .transition-actions { justify-content: stretch; }
  .transition-actions .button { flex: 1; }
}

@media (max-width: 560px) {
  .sandbox-heading h1 { font-size: 25px; }
  .sandbox-safety button { align-self: flex-start; }
  .source-cloud { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .sandbox-canvas { min-height: 0; padding: 13px; }
  .sandbox-slide-card { grid-template-columns: 28px 70px 1fr; }
  .sandbox-slide-actions { grid-column: 2 / -1; justify-content: flex-end; }
  .sandbox-new-slide { padding-left: 12px; }
  .transition-actions { flex-direction: column; }
  .transition-actions .button { width: 100%; }
  .boundary-flow { grid-template-columns: 1fr; }
  .boundary-flow > i { transform: rotate(90deg); justify-self: center; }
  .brief-sequence-mini { flex-wrap: wrap; }
}

/* Scope-aware operational Pulse */
.pulse-page { max-width: 1240px; margin: 0 auto; }
.pulse-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; }
.pulse-heading > div { max-width: 680px; }
.pulse-kicker { color: #8a7a67; font-size: 9px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.pulse-heading h1 { max-width: 680px; margin: 9px 0 8px; color: #241f19; font: 600 31px/1.14 "Manrope",sans-serif; letter-spacing: -0.035em; }
.pulse-heading > div > p { max-width: 650px; margin: 0; color: #756858; font-size: 11px; line-height: 1.6; }
.pulse-level-switch { min-width: 388px; padding: 4px; display: grid; grid-template-columns: repeat(3,1fr); gap: 4px; border: 1px solid #ddd4c8; border-radius: 14px; background: rgba(255,253,249,0.72); box-shadow: 0 8px 22px rgba(65,48,27,0.045); }
.pulse-level-switch button { min-height: 54px; padding: 8px 10px; border: 0; border-radius: 10px; background: transparent; color: #75695b; text-align: left; }
.pulse-level-switch button strong,.pulse-level-switch button span { display: block; }
.pulse-level-switch button strong { font: 700 9px "Manrope",sans-serif; }
.pulse-level-switch button span { margin-top: 3px; font-size: 7px; }
.pulse-level-switch button.is-active { background: #2b251e; color: #fff; box-shadow: 0 6px 14px rgba(43,37,30,0.14); }
.pulse-scope { margin-top: 18px; padding: 9px 1px; display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid #e5ddd2; color: #8a7c6b; font-size: 8px; }
.pulse-scope span { display: flex; align-items: center; gap: 6px; }
.pulse-scope span i { width: 6px; height: 6px; border-radius: 50%; background: #2b8b70; box-shadow: 0 0 0 4px rgba(43,139,112,0.1); }
.pulse-scope strong { color: #625649; font-weight: 600; }

.pulse-reading { min-height: 250px; margin-top: 18px; display: grid; grid-template-columns: 155px minmax(0,1fr) 390px; align-items: center; gap: 28px; }
.pulse-beacon { position: relative; width: 142px; height: 142px; display: grid; place-items: center; }
.pulse-beacon i { position: absolute; border: 1px solid rgba(215,122,46,0.24); border-radius: 50%; animation: pulse-breathe 2.8s ease-in-out infinite; }
.pulse-beacon i:nth-child(1) { width: 64px; height: 64px; background: rgba(228,139,65,0.1); }
.pulse-beacon i:nth-child(2) { width: 98px; height: 98px; animation-delay: 240ms; }
.pulse-beacon i:nth-child(3) { width: 138px; height: 138px; animation-delay: 480ms; }
.pulse-beacon span { position: relative; z-index: 2; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: #d87324; color: #fff; box-shadow: 0 15px 30px rgba(171,84,20,0.22); font: 600 25px "Manrope",sans-serif; }
.pulse-reading-copy > span { color: #a16a3d; font-size: 8px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; }
.pulse-reading-copy h2 { max-width: 510px; margin: 8px 0 7px; color: #2b251e; font: 600 20px/1.26 "Manrope",sans-serif; letter-spacing: -0.025em; }
.pulse-reading-copy p { max-width: 530px; margin: 0; color: #786b5c; font-size: 10px; line-height: 1.55; }
.pulse-reading-copy button { margin-top: 11px; padding: 0; border: 0; background: none; color: #a15e28; font-size: 8px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.pulse-evidence { padding: 16px; border: 1px solid #ddd3c5; border-radius: 15px; background: rgba(255,253,249,0.88); box-shadow: 0 18px 38px rgba(65,48,27,0.075); }
.pulse-evidence-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pulse-evidence-head small { color: #928575; font-size: 7px; }
.pulse-kind { padding: 5px 7px; border-radius: 999px; font-size: 7px; font-weight: 700; }
.kind-blocker .pulse-kind,.pulse-kind.kind-blocker { background: #fae7df; color: #a84c2b; }
.kind-risk .pulse-kind,.pulse-kind.kind-risk { background: #f7ead5; color: #9b641c; }
.kind-opportunity .pulse-kind,.pulse-kind.kind-opportunity { background: #e3f0ea; color: #256d59; }
.kind-obligation .pulse-kind,.pulse-kind.kind-obligation { background: #e8e7f4; color: #59528e; }
.kind-outcome .pulse-kind,.pulse-kind.kind-outcome { background: #e2edf5; color: #396681; }
.kind-change .pulse-kind,.pulse-kind.kind-change { background: #ece7f3; color: #72578c; }
.pulse-evidence > strong { display: block; margin-top: 10px; color: #322b23; font-size: 10px; }
.pulse-evidence dl { margin: 11px 0 0; display: grid; gap: 7px; }
.pulse-evidence dl div { display: grid; grid-template-columns: 82px 1fr; gap: 8px; }
.pulse-evidence dt { color: #9a8c7a; font-size: 7px; }
.pulse-evidence dd { margin: 0; color: #615649; font-size: 8px; line-height: 1.35; }
.pulse-evidence-actions { margin-top: 13px; display: flex; gap: 7px; }

.pulse-field { margin-top: 12px; padding: 18px; border: 1px solid #ded6ca; border-radius: 18px; background: rgba(255,253,249,0.7); box-shadow: 0 20px 45px rgba(61,45,27,0.055); view-transition-name: pulse-field; }
.pulse-field > header { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.pulse-field > header span { color: #9b6d46; font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.pulse-field > header h2 { margin: 4px 0 0; color: #312a22; font: 600 16px/1.3 "Manrope",sans-serif; }
.pulse-field > header > p { max-width: 340px; margin: 0; color: #8a7c6b; font-size: 8px; text-align: right; }
.pulse-signal-strip { margin-top: 14px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.pulse-signal { min-height: 91px; padding: 11px; display: flex; flex-direction: column; align-items: flex-start; border: 1px solid #e3dbd0; border-radius: 12px; background: rgba(250,247,242,0.86); color: #554a3e; text-align: left; }
.pulse-signal:hover { border-color: #cbbba8; transform: translateY(-1px); }
.pulse-signal.is-selected { border-color: rgba(207,111,36,0.58); background: #fffaf3; box-shadow: 0 9px 20px rgba(119,70,28,0.09); }
.pulse-signal > span { color: #978775; font-size: 7px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; }
.pulse-signal > strong { margin-top: 6px; color: #3c342b; font: 600 10px/1.35 "Manrope",sans-serif; }
.pulse-signal > small { margin-top: auto; padding-top: 7px; color: #8c7e6d; font-size: 7px; }

.hq-gantt { margin-top: 17px; border-top: 1px solid #e9e1d7; }
.hq-gantt-axis,.hq-gantt-row { display: grid; grid-template-columns: 240px minmax(0,1fr); }
.hq-gantt-axis { min-height: 55px; border-bottom: 1px solid #e9e1d7; }
.hq-gantt-axis-label { padding: 13px 14px 10px 4px; }
.hq-gantt-axis-label strong,.hq-gantt-axis-label span { display: block; }
.hq-gantt-axis-label strong { color: #40372e; font: 600 10px "Manrope",sans-serif; }
.hq-gantt-axis-label span { margin-top: 4px; color: #968876; font-size: 7px; }
.hq-gantt-weeks { display: grid; grid-template-columns: repeat(6,1fr); border-left: 1px solid #e9e1d7; }
.hq-gantt-weeks > span { position: relative; padding: 15px 6px 0; border-right: 1px solid #eee8df; color: #8d806f; font-size: 7px; }
.hq-gantt-weeks > span.is-current { color: #a55520; font-weight: 700; }
.hq-gantt-weeks small { display: block; margin-top: 3px; color: #c46824; font-size: 6px; text-transform: uppercase; letter-spacing: 0.08em; }
.hq-gantt-lanes { padding: 6px 10px 6px 252px; display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid #eee7dd; color: #a09382; font-size: 6px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.hq-gantt-lanes span:last-child { text-align: right; }
.hq-gantt-row { min-height: 112px; border-bottom: 1px solid #e9e1d7; transition: background 180ms ease; }
.hq-gantt-row.is-selected { background: linear-gradient(90deg,rgba(255,249,240,0.9),rgba(255,252,247,0.35) 58%,transparent); }
.hq-campaign-label { width: 100%; padding: 14px 11px 13px 4px; display: grid; grid-template-columns: 35px minmax(0,1fr) auto; align-items: start; gap: 9px; border: 0; background: transparent; color: #443a30; text-align: left; }
.hq-campaign-label:hover .hq-campaign-copy strong { color: #a65c25; }
.hq-brand-mark { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 11px; background: linear-gradient(145deg,#3e725f,#275b4d); color: #fff; box-shadow: 0 7px 14px rgba(46,91,75,0.14); font: 700 8px "Manrope",sans-serif; }
.hq-gantt-row.soravix-flight .hq-brand-mark { background: linear-gradient(145deg,#7c68aa,#594b87); }
.hq-gantt-row.nuvienta-flight .hq-brand-mark { background: linear-gradient(145deg,#d98239,#b65d25); }
.hq-campaign-copy strong,.hq-campaign-copy small,.hq-campaign-copy em { display: block; }
.hq-campaign-copy strong { overflow: hidden; color: #352d25; font: 600 10px/1.25 "Manrope",sans-serif; text-overflow: ellipsis; white-space: nowrap; transition: color 150ms ease; }
.hq-campaign-copy small { margin-top: 3px; color: #857766; font-size: 7px; line-height: 1.35; }
.hq-campaign-copy em { margin-top: 4px; color: #9a8d7c; font-size: 6px; font-style: normal; }
.hq-campaign-copy em + em { margin-top: 1px; }
.hq-campaign-status { align-self: start; padding: 4px 6px; border-radius: 999px; font-size: 6px; font-weight: 700; white-space: nowrap; }
.hq-campaign-status.is-blocked { background: #f8e3da; color: #a2472b; }
.hq-campaign-status.is-risk { background: #f7ead4; color: #936019; }
.hq-campaign-status.is-moving { background: #e2f0ea; color: #276b58; }
.hq-gantt-track { position: relative; min-width: 0; border-left: 1px solid #e9e1d7; background: repeating-linear-gradient(90deg,transparent 0,transparent calc(16.666% - 1px),rgba(228,220,209,0.72) calc(16.666% - 1px),rgba(228,220,209,0.72) 16.666%); }
.hq-gantt-track::after { content: ""; position: absolute; left: 0; right: 0; top: 55px; height: 1px; background: rgba(226,217,205,0.55); }
.hq-today-line { position: absolute; z-index: 2; left: 35%; top: 0; bottom: 0; width: 1px; background: rgba(204,105,34,0.48); pointer-events: none; }
.hq-today-line::before { content: ""; position: absolute; left: -3px; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: #ca6924; box-shadow: 0 0 0 4px rgba(202,105,36,0.09); }
.hq-gantt-phase { position: absolute; z-index: 3; left: calc(var(--phase-start) * 1%); width: calc(var(--phase-span) * 1%); min-width: 50px; height: 30px; padding: 5px 8px; display: flex; align-items: center; gap: 6px; overflow: hidden; border: 1px solid transparent; border-radius: 9px; color: #4d443a; text-align: left; box-shadow: 0 4px 10px rgba(66,48,27,0.045); transition: transform 150ms ease,box-shadow 150ms ease,border-color 150ms ease; }
.hq-gantt-phase:hover { z-index: 6; transform: translateY(-1px); box-shadow: 0 7px 14px rgba(66,48,27,0.1); }
.hq-gantt-phase.lane-production { top: 13px; }
.hq-gantt-phase.lane-distribution { top: 68px; }
.hq-gantt-phase strong { flex: 0 0 auto; font: 700 7px "DM Sans",sans-serif; white-space: nowrap; }
.hq-gantt-phase span { min-width: 0; overflow: hidden; font-size: 6px; text-overflow: ellipsis; white-space: nowrap; }
.hq-gantt-phase b { flex: 0 0 auto; width: 15px; height: 15px; display: grid; place-items: center; border-radius: 50%; background: currentColor; color: inherit; font-size: 0; }
.hq-gantt-phase b::after { content: "!"; color: #fff; font-size: 8px; }
.hq-gantt-phase.is-done { border-color: #b8d6ca; background: #e8f2ed; color: #286a58; }
.hq-gantt-phase.is-moving { border-color: #b8cbd8; background: #e8f0f5; color: #3f687f; }
.hq-gantt-phase.is-outcome { border-color: #b6d2c7; background: #dff0e8; color: #236754; }
.hq-gantt-phase.is-planned { border-style: dashed; border-color: #d5cabc; background: rgba(249,246,241,0.86); color: #897b6a; box-shadow: none; }
.hq-gantt-phase.is-risk { border-color: #dfc495; background: #fff3dc; color: #875817; }
.hq-gantt-phase.is-blocked { border-color: #df9e83; background: #fbe8df; color: #943f25; }
.hq-gantt-phase.is-selected { box-shadow: 0 0 0 4px rgba(205,105,35,0.12),0 7px 14px rgba(112,60,24,0.1); }
.hq-gantt-legend { min-height: 42px; padding: 10px 4px; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; color: #7f7262; font-size: 7px; }
.hq-gantt-legend > span { display: inline-flex; align-items: center; gap: 5px; }
.hq-gantt-legend > span::before { content: ""; width: 9px; height: 9px; border: 1px solid #c7baaa; border-radius: 3px; background: #f5f1eb; }
.hq-gantt-legend > span.is-done::before { border-color: #9fc7b7; background: #dcece5; }
.hq-gantt-legend > span.is-moving::before { border-color: #aac2d1; background: #dfeaf1; }
.hq-gantt-legend > span.is-outcome::before { border-color: #8fc0ad; background: #cfe7dd; }
.hq-gantt-legend > span.is-risk::before { border-color: #d7b678; background: #fae8c6; }
.hq-gantt-legend > span.is-blocked::before { border-color: #d88969; background: #f6d7ca; }
.hq-gantt-legend small { margin-left: auto; color: #9b8e7d; font-size: 7px; }

.programme-rhythm { margin: 42px 6px 26px; padding: 0; display: flex; align-items: center; list-style: none; }
.programme-rhythm li { min-width: 0; flex: 1; display: flex; align-items: center; }
.programme-rhythm li > button { width: 126px; min-height: 126px; padding: 11px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid #ded6ca; border-radius: 50%; background: #faf7f2; color: #5d5144; text-align: center; }
.programme-rhythm li > button:disabled { opacity: 1; }
.programme-rhythm li > button.is-selected { border-color: #d87324; box-shadow: 0 0 0 7px rgba(216,115,36,0.1),0 14px 25px rgba(103,60,25,0.09); }
.programme-rhythm li > button > span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #ece5dc; font-size: 8px; }
.programme-rhythm li > button strong { margin-top: 7px; font: 600 9px "Manrope",sans-serif; }
.programme-rhythm li > button small { margin-top: 4px; color: #8f8170; font-size: 7px; }
.programme-rhythm li > i { height: 1px; flex: 1; background: #d7cdbf; }
.programme-rhythm li.is-done > button { border-color: #b9d5ca; background: #eff6f2; color: #276a58; }
.programme-rhythm li.is-blocked > button { border-color: #dfa88f; background: #fff5f0; color: #8b4529; }
.programme-rhythm li.is-risk > button { border-color: #dfc69d; background: #fff9ed; color: #845b20; }
.programme-rhythm li.is-future > button { border-style: dashed; color: #9a8c7a; }

.affiliate-pulse-lanes { margin-top: 18px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.affiliate-lane { min-height: 260px; padding: 13px; border-radius: 14px; background: rgba(246,242,235,0.76); }
.affiliate-lane > header { min-height: 50px; display: flex; align-items: flex-start; gap: 9px; }
.affiliate-lane > header > span { width: 9px; height: 9px; margin-top: 3px; border: 2px solid #b7a896; border-radius: 50%; }
.affiliate-lane.lane-waiting > header > span { border-color: #bd6040; background: #f5d9ce; }
.affiliate-lane.lane-ready > header > span { border-color: #38806b; background: #dcece6; }
.affiliate-lane.lane-moving > header > span { border-color: #657aa0; background: #e1e7f0; }
.affiliate-lane h3 { margin: 0; color: #40372e; font: 600 11px "Manrope",sans-serif; }
.affiliate-lane header p { margin: 3px 0 0; color: #928473; font-size: 7px; line-height: 1.4; }
.affiliate-lane .pulse-signal { width: 100%; margin-top: 8px; }

.pulse-boundary { margin-top: 14px; padding: 12px 14px; display: flex; align-items: center; gap: 11px; border: 1px solid #ddd5c9; border-radius: 13px; background: rgba(255,253,249,0.64); }
.pulse-boundary > span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: #2f6959; color: #fff; font-size: 8px; font-weight: 700; }
.pulse-boundary p { margin: 0; flex: 1; }
.pulse-boundary strong,.pulse-boundary small { display: block; }
.pulse-boundary strong { color: #4b4136; font-size: 9px; }
.pulse-boundary small { margin-top: 3px; color: #8b7d6d; font-size: 8px; }
.pulse-boundary button { padding: 7px 9px; border: 0; background: none; color: #9b5c2a; font-size: 8px; font-weight: 700; }

::view-transition-group(pulse-detail),::view-transition-group(pulse-field) { animation-duration: 280ms; animation-timing-function: cubic-bezier(0.2,0.75,0.2,1); }
@keyframes pulse-breathe { 0%,100% { opacity: 0.45; transform: scale(0.96); } 50% { opacity: 1; transform: scale(1.04); } }

@media (max-width: 1100px) {
  .pulse-heading { flex-direction: column; }
  .pulse-level-switch { width: 100%; min-width: 0; }
  .pulse-reading { grid-template-columns: 125px 1fr; }
  .pulse-beacon { width: 120px; }
  .pulse-evidence { grid-column: 1 / -1; }
  .programme-rhythm { flex-wrap: wrap; gap: 12px; }
  .programme-rhythm li { min-width: 150px; }
}

@media (max-width: 760px) {
  .pulse-heading h1 { font-size: 26px; }
  .pulse-level-switch button span { display: none; }
  .pulse-scope { align-items: flex-start; flex-direction: column; }
  .pulse-reading { grid-template-columns: 1fr; }
  .pulse-beacon { justify-self: center; }
  .pulse-evidence { grid-column: auto; }
  .pulse-field > header { align-items: flex-start; flex-direction: column; }
  .pulse-field > header > p { text-align: left; }
  .pulse-signal-strip,.affiliate-pulse-lanes { grid-template-columns: 1fr; }
  .hq-gantt-axis { grid-template-columns: 1fr; }
  .hq-gantt-axis-label { display: none; }
  .hq-gantt-weeks { min-height: 48px; border-left: 0; }
  .hq-gantt-lanes { padding-left: 4px; }
  .hq-gantt-row { grid-template-columns: 1fr; }
  .hq-campaign-label { padding-left: 4px; }
  .hq-gantt-track { min-height: 112px; border-top: 1px solid #eee7dd; border-left: 0; }
  .hq-gantt-phase span { display: none; }
  .hq-gantt-legend small { width: 100%; margin-left: 0; }
  .programme-rhythm { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .programme-rhythm li,.programme-rhythm li > button { width: 100%; min-width: 0; }
  .programme-rhythm li > i { display: none; }
  .pulse-boundary { align-items: flex-start; flex-wrap: wrap; }
  .pulse-boundary p { min-width: calc(100% - 55px); }
  .pulse-boundary button { margin-left: 51px; }
}

/* Unified Focus, Community and Content surface */
.focus-lens-switch { width: min(570px,100%); margin-top: 22px; padding: 4px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 4px; border: 1px solid #ddd4c7; border-radius: 15px; background: rgba(255,253,249,0.56); box-shadow: 0 8px 24px rgba(69,50,29,0.045); }
.focus-lens-switch button { min-height: 49px; padding: 8px 11px; display: grid; grid-template-columns: 24px 1fr; align-items: center; column-gap: 7px; border: 0; border-radius: 11px; background: transparent; color: #776b5d; text-align: left; }
.focus-lens-switch button > span { grid-row: 1 / span 2; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #ebe4da; font-size: 10px; }
.focus-lens-switch button strong { align-self: end; font: 600 10px "Manrope",sans-serif; }
.focus-lens-switch button small { align-self: start; color: #968878; font-size: 7px; }
.focus-lens-switch button.is-active { background: #2b251e; color: #fff; box-shadow: 0 8px 18px rgba(43,37,30,0.16); }
.focus-lens-switch button.is-active > span { background: rgba(255,255,255,0.13); }
.focus-lens-switch button.is-active small { color: #d4c9bb; }
.focus-lens-content { min-height: 650px; }
.connected-lens-note { min-height: 34px; margin-top: 11px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #817363; font-size: 9px; }
.connected-lens-note button { padding: 0; border: 0; background: none; color: #a35e29; font-size: 8px; font-weight: 700; }
.focus-network-stage { min-height: 625px; width: 100%; border-radius: 24px; box-shadow: 0 24px 56px rgba(66,48,27,0.085); }
.focus-network-stage .network-node { width: 134px; padding: 10px; }
.focus-network-stage .network-node > span { width: 42px; height: 42px; }
.focus-network-stage .network-node strong { font-size: 10px; }
.focus-network-detail { min-height: 104px; margin-top: 12px; padding: 14px 16px; display: grid; grid-template-columns: 155px minmax(240px,1fr) 190px minmax(250px,330px); align-items: center; gap: 18px; border: 1px solid #ded5c8; border-radius: 16px; background: rgba(255,253,249,0.82); box-shadow: 0 12px 30px rgba(66,48,27,0.055); }
.focus-network-detail h2 { margin: 5px 0 0; color: #332b23; font: 600 17px "Manrope",sans-serif; }
.focus-network-detail > p { margin: 0; color: #7e7162; font-size: 9px; line-height: 1.5; }
.focus-network-detail .relationship-path { margin: 0; }
.focus-network-action { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.focus-network-action .active-handoff { min-width: 0; margin: 0; flex: 1; }
.focus-network-action .active-handoff small { display: block; margin-top: 3px; color: #876f58; font-size: 7px; line-height: 1.35; }
.focus-network-action .active-handoff.is-accepted small { color: #587569; }
.focus-network-action .button { flex: 0 0 auto; }

.connected-ranking-note { margin-top: 12px; }
.context-orbit-stage { margin-top: 1px; }
.context-position-top-right { left: 81.5%; top: 175px; }
.context-position-top-left { left: 18.5%; top: 208px; }
.context-position-bottom-right { left: 80.5%; top: 478px; }
.context-position-bottom-left { left: 20.5%; top: 488px; }
.context-position-top-center { left: 52.5%; top: 130px; }
.context-card > p { min-height: 43px; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.context-card.type-agent { border-style: dashed; }
.context-card.rank-0 { border-style: solid; }
.context-card.type-agent .role-mark { background: #dfeee8; color: #176b58; }
.context-card.type-agency .role-mark { background: var(--amber-soft); color: #b65a19; }
.context-card.type-team .role-mark { background: var(--violet-soft); color: var(--violet); }
.context-card.type-person .role-mark { background: #e8e5f1; color: #665c88; }
.context-card.type-content .role-mark { background: #e3edf3; color: #3f6d84; }
.context-card.type-system .role-mark { background: #ece7df; color: #6a5e4f; }
.context-visual { display: grid; place-items: center; }
.context-visual > span { color: #fff; font: 700 14px "Manrope",sans-serif; }
.context-visual.type-agency { background: #d87324; }
.context-visual.type-team { background: #7b61c6; }
.context-visual.type-person { background: #6d72a8; }
.context-visual.type-agent { background: #26765f; }
.context-visual.type-content { background: #3c7892; }
.context-visual.type-system { background: #6f665b; }
.context-orbit-footer { margin-top: -1px; }

::view-transition-group(focus-lens-title),::view-transition-group(focus-lens-content),::view-transition-group(user-core),::view-transition-group(graph-detail),::view-transition-group(graph-elin),::view-transition-group(graph-acme),::view-transition-group(graph-nordic),::view-transition-group(graph-maria),::view-transition-group(graph-johan),::view-transition-group(graph-continuum),::view-transition-group(graph-campaign),::view-transition-group(graph-patient-social),::view-transition-group(graph-promomats) { animation-duration: 320ms; animation-timing-function: cubic-bezier(0.18,0.78,0.2,1); }

/* Bottom AI command dock */
.bottom-dock { position: fixed; left: var(--sidebar); right: 0; top: auto; bottom: 0; z-index: 40; height: 78px; margin: 0; padding: 0 24px; border-top: 1px solid rgba(215,205,191,0.94); border-bottom: 0; background: rgba(247,243,235,0.9); box-shadow: 0 -16px 42px rgba(70,52,30,0.08); backdrop-filter: blur(18px); }
.bottom-dock .breadcrumbs,.bottom-dock .notification-button { display: none; }
.bottom-dock .intent-bar { max-width: 820px; height: 48px; background: rgba(255,253,249,0.94); box-shadow: 0 10px 30px rgba(68,50,29,0.1); }
.bottom-dock .intent-bar input { font-size: 14px; }
.bottom-dock .topbar-actions { min-width: 205px; justify-content: flex-end; }
#app-main { padding-bottom: 138px; }

@media (max-width: 1050px) {
  .focus-network-detail { grid-template-columns: 130px 1fr 180px; }
  .focus-network-action { grid-column: 1 / -1; justify-content: stretch; }
  .bottom-dock .topbar-actions { min-width: 170px; }
}

@media (max-width: 760px) {
  .focus-lens-switch { width: 100%; }
  .focus-lens-switch button { min-height: 46px; grid-template-columns: 20px 1fr; padding: 7px; }
  .focus-lens-switch button > span { width: 20px; height: 20px; }
  .focus-lens-switch button small { display: none; }
  .connected-lens-note { align-items: flex-start; flex-direction: column; padding: 8px 0; }
  .focus-network-stage { min-height: 0; }
  .focus-network-detail { grid-template-columns: 1fr; }
  .focus-network-detail .relationship-path { max-width: 260px; }
  .focus-network-action { grid-column: auto; flex-wrap: wrap; }
  .bottom-dock { left: 0; height: 66px; padding: 8px 10px; gap: 8px; margin: 0; }
  .bottom-dock .intent-bar { position: static; order: initial; height: 48px; margin: 0; flex: 1; max-width: none; }
  .bottom-dock .intent-bar kbd { display: none; }
  .bottom-dock .topbar-actions { display: none; }
  #app-main { padding-bottom: 112px; }
}

/* Ultra-clean Focus landing */
.clean-focus-page { width: min(1120px,100%); min-height: calc(100vh - 250px); margin: 0 auto; display: grid; grid-template-rows: auto minmax(430px,1fr) auto; }
.clean-focus-utility { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #8e806f; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; }
.clean-focus-utility button,.responsibility-view-tools button { padding: 4px 0; border: 0; background: none; color: #7e705f; font-size: 12px; font-weight: 600; letter-spacing: 0; text-decoration: underline; text-underline-offset: 4px; }
.clean-focus-utility button:hover,.responsibility-view-tools button:hover { color: #a65b25; }
.clean-focus-center { align-self: center; width: 100%; padding: 66px 0 56px; display: grid; justify-items: center; }
.clean-focus-center h1 { margin: 0 0 30px; color: #221c17; font: 600 clamp(34px,3.6vw,50px)/1.12 "Manrope",sans-serif; letter-spacing: -0.045em; text-align: center; }
.clean-focus-carousel { position: relative; width: min(900px,100%); }
.clean-focus-task { width: 100%; min-height: 150px; padding: 24px 26px; display: grid; grid-template-columns: 86px minmax(0,1fr) 205px; align-items: center; gap: 24px; overflow: hidden; border: 1px solid rgba(214,203,188,0.92); border-radius: 19px; background: linear-gradient(145deg,rgba(255,255,255,0.97),rgba(252,249,243,0.96)); color: #352c24; box-shadow: 0 28px 65px rgba(71,49,24,0.12),0 4px 12px rgba(71,49,24,0.055); text-align: left; transition: transform 180ms ease,border-color 180ms ease,box-shadow 180ms ease; }
.clean-focus-task:hover { transform: translateY(-2px); border-color: rgba(193,166,132,0.95); box-shadow: 0 32px 72px rgba(71,49,24,0.15),0 5px 14px rgba(71,49,24,0.07); }
.clean-focus-icon { width: 76px; height: 76px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-radius: 18px; background: #f5e9db; color: #a95420; }
.clean-focus-icon > i { font: 600 25px "Manrope",sans-serif; font-style: normal; line-height: 1; }
.clean-focus-icon > small { font-size: 9px; font-weight: 700; line-height: 1; text-transform: uppercase; letter-spacing: 0.06em; }
.clean-focus-icon.role-violet { background: #eee8f8; color: #6d55a4; }
.clean-focus-icon.role-blue { background: #e3eef5; color: #39718f; }
.clean-focus-icon.role-green { background: #e4f0e9; color: #2d745e; }
.clean-focus-icon.role-rose { background: #f6e7e9; color: #a9525c; }
.clean-focus-copy { min-width: 0; }
.clean-focus-copy > small { color: #aa6a39; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.clean-focus-copy > strong { display: block; max-width: 520px; margin-top: 7px; color: #2b241e; font: 600 24px/1.22 "Manrope",sans-serif; letter-spacing: -0.025em; }
.clean-focus-copy > span { display: block; margin-top: 7px; color: #766958; font-size: 13px; }
.clean-focus-context { min-width: 0; padding-left: 20px; display: grid; justify-items: end; border-left: 1px solid #eee6dc; }
.clean-focus-people { display: flex; flex-direction: row-reverse; }
.clean-focus-people i { width: 30px; height: 30px; margin-right: -5px; display: grid; place-items: center; border: 2px solid #fffdfa; border-radius: 50%; background: #e9e2d7; color: #685c4e; font-size: 9px; font-style: normal; font-weight: 700; }
.clean-focus-context > small { max-width: 180px; margin-top: 10px; color: #7c6e5d; font-size: 11px; line-height: 1.4; text-align: right; }
.clean-focus-context > strong { margin-top: 5px; color: #594c3f; font-size: 11px; }
.clean-focus-next { position: absolute; left: calc(100% + 12px); top: 0; bottom: 0; width: 62px; border: 0; border-radius: 18px; background: transparent; color: #665a4c; font: 400 34px/1 "Manrope",sans-serif; transition: background 150ms ease,color 150ms ease,transform 150ms ease; }
.clean-focus-next:hover { background: rgba(255,253,249,0.72); color: #b15f25; transform: translateX(2px); }
.clean-focus-dots { margin-top: 22px; display: flex; align-items: center; gap: 10px; }
.clean-focus-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: #d5ccc0; transition: width 180ms ease,background 180ms ease,transform 180ms ease; }
.clean-focus-dots button:hover { background: #ad9d8a; transform: scale(1.2); }
.clean-focus-dots button.is-active { width: 23px; border-radius: 99px; background: #d87324; }
.clean-focus-pinned { width: min(900px,100%); margin: 0 auto; padding: 0 0 10px; }
.clean-focus-pinned > header { min-height: 28px; display: flex; align-items: center; justify-content: space-between; color: #988a78; }
.clean-focus-pinned h2 { margin: 0; font: 600 12px "Manrope",sans-serif; letter-spacing: 0.06em; text-transform: uppercase; }
.clean-focus-pinned > header span { font-size: 11px; }
.clean-focus-pinned > div { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.clean-focus-pinned > div > button { min-height: 66px; padding: 11px 12px; display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 10px; border: 1px solid rgba(220,211,198,0.82); border-radius: 13px; background: rgba(255,253,249,0.48); color: #5e5245; text-align: left; opacity: 0.74; transition: opacity 150ms ease,background 150ms ease,border-color 150ms ease,transform 150ms ease; }
.clean-focus-pinned > div > button:hover { opacity: 1; transform: translateY(-1px); border-color: #cfc0ad; background: rgba(255,253,249,0.82); }
.clean-focus-pinned > div > button > span:first-child { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #ede7de; color: #746757; font-size: 10px; font-weight: 700; }
.clean-focus-pinned button small,.clean-focus-pinned button strong,.clean-focus-pinned button em { display: block; }
.clean-focus-pinned button small { color: #817362; font-size: 9px; font-weight: 700; line-height: 1.2; text-transform: uppercase; letter-spacing: 0.07em; }
.clean-focus-pinned button strong { margin-top: 3px; overflow: hidden; color: #4d4236; font: 600 13px/1.25 "Manrope",sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.clean-focus-pinned button em { margin-top: 3px; overflow: hidden; color: #7c6d5d; font-size: 10px; font-style: normal; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.clean-focus-pinned button > i { color: #a99b89; font-size: 12px; font-style: normal; }
.responsibility-view-tools { display: grid; justify-items: end; gap: 6px; }

::view-transition-group(clean-focus-task) { animation-duration: 330ms; animation-timing-function: cubic-bezier(0.18,0.78,0.2,1); }
html.clean-focus-forward::view-transition-old(clean-focus-task) { animation: 230ms ease both clean-focus-out-left; }
html.clean-focus-forward::view-transition-new(clean-focus-task) { animation: 310ms cubic-bezier(0.18,0.78,0.2,1) both clean-focus-in-right; }
html.clean-focus-back::view-transition-old(clean-focus-task) { animation: 230ms ease both clean-focus-out-right; }
html.clean-focus-back::view-transition-new(clean-focus-task) { animation: 310ms cubic-bezier(0.18,0.78,0.2,1) both clean-focus-in-left; }
@keyframes clean-focus-out-left { to { opacity: 0; transform: translateX(-26px) scale(0.985); } }
@keyframes clean-focus-in-right { from { opacity: 0; transform: translateX(30px) scale(0.985); } }
@keyframes clean-focus-out-right { to { opacity: 0; transform: translateX(26px) scale(0.985); } }
@keyframes clean-focus-in-left { from { opacity: 0; transform: translateX(-30px) scale(0.985); } }

@media (max-width: 900px) {
  .clean-focus-task { padding-right: 62px; grid-template-columns: 72px minmax(0,1fr); }
  .clean-focus-icon { width: 66px; height: 66px; }
  .clean-focus-context { grid-column: 2; padding: 10px 0 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 0; border-top: 1px solid #eee6dc; }
  .clean-focus-context > small { margin: 0; text-align: left; }
  .clean-focus-context > strong { margin: 0; white-space: nowrap; }
  .clean-focus-next { left: auto; right: 8px; width: 44px; }
}

@media (max-width: 760px) {
  .clean-focus-page { min-height: calc(100vh - 185px); grid-template-rows: auto auto auto; }
  .clean-focus-utility { min-height: 28px; }
  .clean-focus-center { padding: 44px 0 32px; }
  .clean-focus-center h1 { max-width: 430px; margin-bottom: 24px; font-size: 30px; }
  .clean-focus-carousel { width: 100%; }
  .clean-focus-task { min-height: 142px; padding: 18px 58px 18px 18px; grid-template-columns: 54px minmax(0,1fr); gap: 13px; }
  .clean-focus-icon { width: 52px; height: 52px; border-radius: 14px; }
  .clean-focus-icon > i { font-size: 18px; }
  .clean-focus-icon > small { display: none; }
  .clean-focus-copy > small { font-size: 9px; }
  .clean-focus-copy > strong { font-size: 17px; }
  .clean-focus-copy > span { font-size: 11px; }
  .clean-focus-context { grid-column: 1 / -1; }
  .clean-focus-context > small { display: none; }
  .clean-focus-next { right: 7px; width: 42px; font-size: 28px; }
  .clean-focus-pinned > div { grid-template-columns: 1fr; }
  .clean-focus-pinned > div > button { min-height: 58px; padding-top: 8px; padding-bottom: 8px; }
  .responsibility-view-tools { justify-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(clean-focus-task) { animation-duration: 0.01ms; }
}

/* Typography uplift across the remaining work surfaces */
.page-heading h1 { font-size: 32px; }
.page-heading p { font-size: 14px; line-height: 1.5; }
.eyebrow { font-size: 12px; }
.button { font-size: 14px; }
.button.small { font-size: 13px; }
.search-box input,.filter-select,.field input,.field select,.field textarea { font-size: 14px; }
.card-header h2,.card-header h3 { font-size: 18px; }
.card-header p,.section-heading p { font-size: 14px; }
.section-heading h2 { font-size: 19px; }
.status { font-size: 12px; }
.small { font-size: 13px; }
.stat-card .stat-label { font-size: 13px; }
.stat-card strong { font-size: 28px; }
.stat-card small { font-size: 12px; }

.campaign-summary h1,.campaign-summary h2 { font-size: 32px; }
.campaign-summary > p { font-size: 14px; line-height: 1.5; }
.meta-item small { font-size: 12px; }
.meta-item strong { font-size: 14px; }
.health-copy strong { font-size: 14px; }
.health-copy span { font-size: 13px; }
.adoption-table th,.data-table th { font-size: 12px; }
.adoption-table td,.data-table td { font-size: 14px; }
.flag { font-size: 11px; }
.activity-list strong { font-size: 14px; }
.activity-list span { font-size: 13px; }

.asset-duration { font-size: 11px; }
.asset-card h3 { font-size: 17px; }
.asset-card p { font-size: 13px; line-height: 1.45; }
.asset-metrics { font-size: 12px; }
.lineage-node small { font-size: 11px; }
.lineage-node strong { font-size: 13px; }
.lineage-node span { font-size: 11px; }
.funnel-stage span { font-size: 12px; }
.detail-grid small { font-size: 11px; }
.detail-grid strong { font-size: 13px; }

.decision-id { font-size: 12px; }
.decision-card h3 { font-size: 17px; }
.decision-card p { font-size: 14px; line-height: 1.5; }
.decision-choice { font-size: 12px; }
.spec-summary h2 { font-size: 18px; }
.summary-ring small { font-size: 11px; }
.summary-row { font-size: 13px; }

.context-clock { font-size: 11px; }
.responsibility-intro h1 { font-size: 38px; }
.ambient-state { font-size: 12px; }
.ranking-note,.ranking-note button { font-size: 11px; }
.focus-lens-switch button strong { font-size: 12px; }
.focus-lens-switch button small { font-size: 10px; }
.connected-lens-note,.connected-lens-note button { font-size: 11px; }
.user-core > strong { font-size: 15px; }
.user-core > small { font-size: 11px; }
.attention-satellite strong { font-size: 10px; }
.attention-satellite span { font-size: 9px; }
.orbit-card-head { font-size: 11px; }
.orbit-focus-control { font-size: 10px; }
.orbit-card h2 { font-size: 15px; }
.orbit-card > p { font-size: 12px; }
.participant-stack > span { font-size: 9px; }
.participant-stack small { font-size: 10px; }
.work-reason { font-size: 10px; }
.orbit-action { font-size: 11px; }
.orbit-footer p strong { font-size: 11px; }
.orbit-footer p span { font-size: 10px; }
.focus-network-stage .network-node strong { font-size: 12px; }
.focus-network-detail h2 { font-size: 20px; }
.focus-network-detail > p { font-size: 12px; }
.focus-network-action .active-handoff small { font-size: 10px; }

.community-heading h1 { font-size: 36px; }
.community-heading p { font-size: 14px; line-height: 1.5; }
.button-count { font-size: 10px; }
.inbox-filters button,.network-switch button { font-size: 11px; }
.inbox-avatar { font-size: 11px; }
.inbox-sender strong { font-size: 12px; }
.inbox-sender small { font-size: 10px; }
.inbox-copy > b { font-size: 15px; }
.inbox-copy > span:last-child { font-size: 12px; }
.inbox-state small { font-size: 10px; }
.inbox-state strong { font-size: 9px; }
.inbox-context h2 { font-size: 19px; }
.inbox-context p { font-size: 12px; }
.community-mini-row i { font-size: 10px; }
.network-node > span { font-size: 11px; }
.network-node strong { font-size: 11px; }
.network-node small { font-size: 9px; }
.network-node em { font-size: 9px; }
.network-detail-type { font-size: 10px; }
.network-detail h2 { font-size: 21px; }
.network-detail > p { font-size: 12px; }
.relationship-path,.active-handoff strong,.network-legend { font-size: 10px; }
.active-handoff span { font-size: 10px; }

.sandbox-kicker { font-size: 11px; }
.sandbox-heading h1 { font-size: 36px; }
.sandbox-heading p { font-size: 13px; }
.sandbox-presence strong,.sandbox-safety strong,.sandbox-safety p span { font-size: 11px; }
.sandbox-presence small,.sandbox-safety button { font-size: 10px; }
.sandbox-rest-banner strong { font-size: 11px; }
.sandbox-rest-banner small { font-size: 10px; }
.sandbox-panel-heading span { font-size: 11px; }
.sandbox-panel-heading small { font-size: 10px; }
.source-slide strong { font-size: 10px; }
.source-slide small,.source-slide em { font-size: 9px; }
.sandbox-slide-copy strong { font-size: 11px; }
.sandbox-slide-copy span { font-size: 10px; }
.sandbox-new-slide strong,.sequence-story p,.idea-suggestion strong { font-size: 10px; }
.sandbox-new-slide small,.sequence-story span,.idea-agent small,.idea-suggestion small,.idea-boundary strong,.idea-boundary span { font-size: 9px; }
.idea-agent strong { font-size: 11px; }
.idea-pocket > p { font-size: 12px; }
.brief-field > span { font-size: 10px; }
.brief-field textarea { font-size: 12px; }

.guided-heading h1 { font-size: 30px; }
.guided-heading p { font-size: 13px; }
.guided-route { font-size: 11px; }
.agent-guide h2 { font-size: 23px; }
.agent-guide > p { font-size: 13px; }
.guided-choice strong { font-size: 12px; }
.guided-choice span { font-size: 11px; }
.guided-choice em { font-size: 10px; }
.guide-evidence summary,.guide-evidence p { font-size: 11px; }
.guided-submit-copy strong { font-size: 12px; }
.guided-submit-copy span { font-size: 11px; }

.pulse-kicker { font-size: 11px; }
.pulse-heading h1 { font-size: 36px; }
.pulse-heading > div > p { font-size: 14px; }
.pulse-level-switch button strong { font-size: 12px; }
.pulse-level-switch button span { font-size: 10px; }
.pulse-scope { font-size: 11px; }
.pulse-reading-copy > span { font-size: 10px; }
.pulse-reading-copy h2 { font-size: 24px; }
.pulse-reading-copy p { font-size: 13px; }
.pulse-reading-copy button { font-size: 11px; }
.pulse-evidence-head small,.pulse-kind { font-size: 10px; }
.pulse-evidence > strong { font-size: 13px; }
.pulse-evidence dt { font-size: 10px; }
.pulse-evidence dd { font-size: 11px; }
.pulse-field > header span { font-size: 10px; }
.pulse-field > header h2 { font-size: 19px; }
.pulse-field > header > p { font-size: 11px; }
.pulse-signal > span { font-size: 10px; }
.pulse-signal > strong { font-size: 12px; }
.pulse-signal > small { font-size: 10px; }
.hq-gantt-axis-label strong { font-size: 12px; }
.hq-gantt-axis-label span,.hq-gantt-weeks > span { font-size: 10px; }
.hq-gantt-weeks small,.hq-gantt-lanes { font-size: 9px; }
.hq-brand-mark { font-size: 10px; }
.hq-campaign-copy strong { font-size: 12px; }
.hq-campaign-copy small { font-size: 10px; }
.hq-campaign-copy em,.hq-campaign-status { font-size: 9px; }
.hq-gantt-phase { height: 34px; }
.hq-gantt-phase strong { font-size: 10px; }
.hq-gantt-phase span { font-size: 9px; }
.hq-gantt-legend,.hq-gantt-legend small { font-size: 10px; }
.programme-rhythm li > button strong { font-size: 12px; }
.programme-rhythm li > button small { font-size: 10px; }
.affiliate-lane h3 { font-size: 13px; }
.affiliate-lane header p { font-size: 10px; }
.pulse-boundary > span,.pulse-boundary strong,.pulse-boundary button { font-size: 11px; }
.pulse-boundary small { font-size: 10px; }

@media (max-width: 760px) {
  .page-heading h1 { font-size: 28px; }
  .responsibility-intro h1,.community-heading h1,.sandbox-heading h1,.pulse-heading h1 { font-size: 30px; }
  .pulse-reading-copy h2 { font-size: 21px; }
  .hq-gantt-phase span { display: none; }
}

/* Campaigns, brands and resources */
.nav-secondary-start { margin-top: 8px; }
.portfolio-page { width: min(1220px,100%); margin: 0 auto; }
.portfolio-heading { min-height: 118px; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding-bottom: 25px; border-bottom: 1px solid #ded6ca; }
.portfolio-heading > div:first-child { min-width: 0; }
.portfolio-heading > div:first-child > span { color: #8e806f; font-size: 12px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; }
.portfolio-heading h1 { margin: 8px 0 5px; color: #221c17; font: 600 40px/1.1 "Manrope",sans-serif; letter-spacing: -0.04em; }
.portfolio-heading p { max-width: 720px; margin: 0; color: #716554; font-size: 14px; line-height: 1.55; }
.portfolio-heading-summary { flex: 0 0 auto; padding-bottom: 4px; display: flex; align-items: center; gap: 14px; color: #837665; font-size: 12px; white-space: nowrap; }
.portfolio-heading-summary strong { color: #2e2821; font-size: 14px; }
.portfolio-heading-summary span { padding-left: 14px; border-left: 1px solid #d9d0c4; }

.campaigns-flight { padding-top: 28px; }
.campaigns-flight-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.campaigns-flight-intro > div > span { color: #9a6b45; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.campaigns-flight-intro h2 { margin: 5px 0 0; color: #2c251e; font: 600 24px/1.3 "Manrope",sans-serif; letter-spacing: -0.025em; }
.campaigns-flight-intro > p { max-width: 390px; margin: 0; color: #7e7161; font-size: 12px; line-height: 1.5; text-align: right; }
.campaigns-gantt { margin-top: 23px; }
.campaigns-gantt .hq-gantt-axis,.campaigns-gantt .hq-gantt-row { grid-template-columns: 270px minmax(0,1fr); }
.campaigns-gantt .hq-gantt-lanes { padding-left: 282px; }
.campaigns-gantt .hq-gantt-row { min-height: 120px; }
.campaigns-gantt .hq-campaign-label { padding-top: 16px; padding-bottom: 15px; }
.portfolio-campaign-row.is-selected { background: linear-gradient(90deg,rgba(255,245,233,0.92),rgba(255,252,247,0.34) 66%,transparent); box-shadow: -3px 0 0 #d87324; }

.brand-list { padding-top: 24px; display: grid; gap: 12px; }
.brand-row { width: 100%; min-height: 132px; padding: 18px 20px; display: grid; grid-template-columns: 70px minmax(240px,1.35fr) minmax(180px,0.95fr) minmax(155px,0.78fr) minmax(190px,0.95fr) 24px; align-items: center; gap: 20px; border: 1px solid #ddd4c8; border-radius: 18px; background: rgba(255,253,249,0.78); color: #443a30; box-shadow: 0 14px 34px rgba(67,49,29,0.055); text-align: left; transition: transform 160ms ease,border-color 160ms ease,box-shadow 160ms ease; }
.brand-row:hover { transform: translateY(-2px); border-color: #c8b9a7; box-shadow: 0 20px 42px rgba(67,49,29,0.09); }
.brand-row-logo { width: 66px; height: 66px; display: grid; place-items: center; border-radius: 19px; background: linear-gradient(145deg,#3e725f,#275b4d); color: #fff; box-shadow: 0 12px 22px rgba(46,91,75,0.17); font: 700 16px "Manrope",sans-serif; }
.brand-row-logo.brand-soravix { background: linear-gradient(145deg,#7c68aa,#594b87); box-shadow: 0 12px 22px rgba(89,75,135,0.17); }
.brand-row-logo.brand-nuvienta { background: linear-gradient(145deg,#d98239,#b65d25); box-shadow: 0 12px 22px rgba(182,93,37,0.17); }
.brand-row-identity small,.brand-row-identity strong,.brand-row-identity em,.brand-row-activity strong,.brand-row-activity small,.brand-row-activity em,.brand-row-status strong,.brand-row-status small { display: block; }
.brand-row-identity small { color: #978977; font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.brand-row-identity strong { margin-top: 4px; color: #2c251e; font: 600 22px "Manrope",sans-serif; }
.brand-row-identity em { max-width: 390px; margin-top: 5px; color: #7b6f60; font-size: 12px; font-style: normal; line-height: 1.45; }
.brand-row-contents { display: grid; gap: 6px; }
.brand-row-contents i { color: #62574a; font-size: 12px; font-style: normal; }
.brand-row-contents i::before { content: ""; width: 5px; height: 5px; margin-right: 7px; display: inline-block; border-radius: 50%; background: #b5a691; vertical-align: 2px; }
.brand-row-activity { padding-left: 18px; border-left: 1px solid #e1d8cd; }
.brand-row-activity strong { color: #40372e; font-size: 13px; }
.brand-row-activity small { margin-top: 5px; color: #756958; font-size: 11px; }
.brand-row-activity em { margin-top: 8px; color: #9a8c7a; font-size: 10px; font-style: normal; }
.brand-row-status { min-height: 70px; padding: 12px; display: grid; grid-template-columns: 9px 1fr; align-content: center; column-gap: 8px; border-radius: 12px; background: #f7ead8; }
.brand-row-status > i { grid-row: 1 / span 2; width: 9px; height: 9px; margin-top: 3px; border-radius: 50%; background: #c67629; }
.brand-row-status strong { color: #6f4a23; font-size: 12px; line-height: 1.35; }
.brand-row-status small { margin-top: 4px; color: #947450; font-size: 10px; }
.brand-row-status.is-risk { background: #fae8df; }
.brand-row-status.is-risk > i { background: #b74e30; }
.brand-row-status.is-risk strong { color: #7d3623; }
.brand-row-status.is-clear { background: #e5f1eb; }
.brand-row-status.is-clear > i { background: #2f8069; }
.brand-row-status.is-clear strong { color: #286552; }
.brand-row-arrow { color: #8c7d6b; font: 400 28px/1 "Manrope",sans-serif; text-align: right; }

.brand-home-page { width: min(1120px,100%); margin: 0 auto; }
.brand-home-heading { min-height: 132px; padding-bottom: 24px; display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; border-bottom: 1px solid #ded6ca; }
.brand-home-identity { min-width: 0; display: flex; align-items: center; gap: 18px; }
.brand-home-identity .brand-row-logo { flex: 0 0 auto; width: 76px; height: 76px; border-radius: 22px; font-size: 18px; }
.brand-home-identity > div > span { color: #8e806f; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.brand-home-identity h1 { margin: 5px 0 3px; color: #221c17; font: 600 39px/1.08 "Manrope",sans-serif; letter-spacing: -0.04em; }
.brand-home-identity p { max-width: 650px; margin: 0; color: #756858; font-size: 13px; line-height: 1.5; }
.brand-home-actions { flex: 0 0 auto; display: flex; gap: 8px; }

.brand-stewardship { margin-top: 18px; display: grid; grid-template-columns: 250px minmax(0,1fr); gap: 12px; }
.brand-owner,.brand-access { border: 1px solid rgba(220,211,198,0.86); border-radius: 16px; background: rgba(255,253,249,0.55); }
.brand-owner { min-height: 112px; padding: 18px; display: flex; align-items: center; gap: 13px; }
.brand-owner > span { flex: 0 0 auto; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(145deg,#e7944b,#ca6026); color: white; font-size: 12px; font-weight: 700; box-shadow: 0 8px 18px rgba(166,81,24,0.14); }
.brand-owner small,.brand-owner strong,.brand-owner em { display: block; }
.brand-owner small { color: #9a8b78; font-size: 9px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; }
.brand-owner strong { margin-top: 5px; color: #352d25; font-size: 14px; }
.brand-owner em { margin-top: 3px; color: #7f7262; font-size: 10px; font-style: normal; }
.brand-access { padding: 14px 16px; }
.brand-access > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand-access > header small,.brand-access > header strong { display: block; }
.brand-access > header small { color: #9a8b78; font-size: 9px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; }
.brand-access > header strong { margin-top: 3px; color: #463c31; font-size: 11px; }
.brand-access > header > span { padding: 4px 7px; border-radius: 999px; background: #eee8df; color: #796c5c; font-size: 8px; font-weight: 700; }
.brand-access ul { margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 7px; list-style: none; }
.brand-access li { min-width: 0; display: grid; grid-template-columns: 30px minmax(0,1fr); align-items: center; gap: 8px; }
.brand-access li > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; background: #ebe4da; color: #675b4c; font-size: 8px; font-weight: 700; }
.brand-access li strong,.brand-access li small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-access li strong { color: #51463a; font-size: 9px; }
.brand-access li small { margin-top: 2px; color: #978977; font-size: 7px; }

.brand-focus-section { padding: 42px 0 36px; display: grid; justify-items: center; border-bottom: 1px solid #e2dacf; }
.brand-focus-section > header { width: 100%; margin-bottom: 19px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.brand-focus-section > header span { color: #9a6a44; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.brand-focus-section > header h2 { margin: 5px 0 0; color: #262019; font: 600 30px/1.18 "Manrope",sans-serif; letter-spacing: -0.035em; }
.brand-focus-section > header > small { max-width: 330px; color: #8a7c6a; font-size: 10px; line-height: 1.5; text-align: right; }
.brand-focus-carousel { width: calc(100% - 76px); margin-right: 76px; }
.brand-focus-task { min-height: 156px; grid-template-columns: 86px minmax(0,1fr) 220px; }
.brand-focus-mark { width: 76px; height: 76px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-radius: 21px; background: linear-gradient(145deg,#3e725f,#275b4d); color: white; box-shadow: 0 12px 22px rgba(46,91,75,0.17); }
.brand-focus-mark.brand-soravix { background: linear-gradient(145deg,#7c68aa,#594b87); box-shadow: 0 12px 22px rgba(89,75,135,0.17); }
.brand-focus-mark.brand-nuvienta { background: linear-gradient(145deg,#d98239,#b65d25); box-shadow: 0 12px 22px rgba(182,93,37,0.17); }
.brand-focus-mark i { font: 700 20px/1 "Manrope",sans-serif; font-style: normal; }
.brand-focus-mark small { font-size: 8px; font-weight: 700; letter-spacing: 0.08em; opacity: 0.74; }
.brand-focus-section .clean-focus-dots { margin-top: 18px; }

.brand-production { padding-top: 30px; }
.brand-production > header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.brand-production > header span { color: #9a6a44; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.brand-production > header h2 { margin: 5px 0 3px; color: #2c251e; font: 600 23px/1.25 "Manrope",sans-serif; letter-spacing: -0.025em; }
.brand-production > header p { margin: 0; color: #847767; font-size: 11px; }
.brand-production > header > button { padding: 6px 0; border: 0; background: none; color: #9f5b27; font-size: 11px; font-weight: 700; }
.brand-production > header > button i { margin-left: 6px; font-size: 18px; font-style: normal; font-weight: 400; }
.brand-production-list { margin-top: 14px; display: grid; gap: 8px; }
.brand-production-row { width: 100%; min-height: 82px; padding: 12px 15px; display: grid; grid-template-columns: 46px minmax(0,1fr) 180px 150px; align-items: center; gap: 14px; border: 1px solid #dfd6ca; border-radius: 14px; background: rgba(255,253,249,0.64); color: #463c31; text-align: left; transition: transform 150ms ease,border-color 150ms ease,background 150ms ease; }
.brand-production-row:hover { transform: translateY(-1px); border-color: #cabbab; background: rgba(255,253,249,0.94); }
.brand-production-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: #ece5db; color: #675a4c; font-size: 9px; font-weight: 700; }
.brand-production-copy small,.brand-production-copy strong,.brand-production-copy em,.brand-production-owner small,.brand-production-owner strong,.brand-production-owner em { display: block; }
.brand-production-copy small { color: #9a8b78; font-size: 8px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.brand-production-copy strong { margin-top: 4px; color: #372f27; font-size: 13px; }
.brand-production-copy em { margin-top: 3px; color: #847665; font-size: 9px; font-style: normal; }
.brand-production-owner { padding-left: 16px; border-left: 1px solid #e5ddd2; }
.brand-production-owner small { color: #9a8c7b; font-size: 8px; }
.brand-production-owner strong { margin-top: 3px; color: #5b5044; font-size: 10px; }
.brand-production-owner em { margin-top: 3px; color: #9b8d7b; font-size: 8px; font-style: normal; }
.brand-production-state { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.brand-production-state > i { color: #9a8a77; font-size: 22px; font-style: normal; }
.brand-production-empty { padding: 28px; border: 1px dashed #d8cfc3; border-radius: 14px; text-align: center; }
.brand-production-empty strong,.brand-production-empty span { display: block; }
.brand-production-empty span { margin-top: 4px; color: #8a7d6d; font-size: 10px; }

.resource-grid { padding-top: 24px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.resource-card { min-height: 250px; padding: 21px; display: flex; flex-direction: column; align-items: stretch; border: 1px solid #ddd5c9; border-radius: 18px; background: rgba(255,253,249,0.78); color: #443a30; box-shadow: 0 14px 34px rgba(67,49,29,0.05); text-align: left; transition: transform 160ms ease,border-color 160ms ease,box-shadow 160ms ease; }
.resource-card:hover { transform: translateY(-2px); border-color: #c8baa8; box-shadow: 0 20px 42px rgba(67,49,29,0.085); }
.resource-card-top { display: flex; align-items: center; justify-content: space-between; }
.resource-card-top > i { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: #ece5db; color: #675a4c; font-style: normal; font-size: 12px; font-weight: 700; }
.resource-card-top > small { color: #8e806e; font-size: 11px; }
.resource-card > strong { margin-top: 21px; color: #2d261f; font: 600 20px "Manrope",sans-serif; }
.resource-card > p { margin: 7px 0 0; color: #766a5a; font-size: 12px; line-height: 1.5; }
.resource-card-meta { margin-top: auto; padding-top: 18px; display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid #e6ded3; }
.resource-card-meta em { color: #6b5d4e; font-size: 11px; font-style: normal; font-weight: 600; }
.resource-card-meta small { color: #998b79; font-size: 10px; text-align: right; }
.resource-card-action { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; color: #a05c27; font-size: 11px; font-weight: 700; }
.resource-card-action i { font-size: 21px; font-style: normal; font-weight: 400; }

@media (max-width: 1100px) {
  .portfolio-heading { align-items: flex-start; flex-direction: column; gap: 18px; }
  .portfolio-heading-summary { white-space: normal; }
  .campaigns-gantt .hq-gantt-axis,.campaigns-gantt .hq-gantt-row { grid-template-columns: 235px minmax(0,1fr); }
  .campaigns-gantt .hq-gantt-lanes { padding-left: 247px; }
  .brand-row { grid-template-columns: 70px minmax(220px,1fr) minmax(180px,0.8fr) minmax(180px,0.8fr) 24px; }
  .brand-row-activity { display: none; }
  .brand-access ul { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 820px) {
  .campaigns-flight-intro { align-items: flex-start; flex-direction: column; }
  .campaigns-flight-intro > p { text-align: left; }
  .campaigns-gantt .hq-gantt-axis { grid-template-columns: 1fr; }
  .campaigns-gantt .hq-gantt-axis-label { display: none; }
  .campaigns-gantt .hq-gantt-row { grid-template-columns: 1fr; }
  .campaigns-gantt .hq-gantt-lanes { padding-left: 4px; }
  .resource-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .brand-row { grid-template-columns: 62px minmax(0,1fr) 22px; gap: 14px; }
  .brand-row-logo { width: 58px; height: 58px; }
  .brand-row-identity { grid-column: 2; }
  .brand-row-arrow { grid-column: 3; grid-row: 1; }
  .brand-row-contents,.brand-row-status { grid-column: 2 / -1; }
  .brand-row-status { min-height: 58px; }
  .brand-home-heading,.brand-focus-section > header,.brand-production > header { align-items: flex-start; flex-direction: column; }
  .brand-home-actions { width: 100%; }
  .brand-home-actions .button { flex: 1; }
  .brand-stewardship { grid-template-columns: 1fr; }
  .brand-focus-section > header > small { text-align: left; }
  .brand-focus-carousel { width: 100%; margin-right: 0; }
  .brand-focus-task { grid-template-columns: 72px minmax(0,1fr); padding-right: 62px; }
  .brand-focus-mark { width: 66px; height: 66px; }
  .brand-focus-task .clean-focus-context { grid-column: 2; }
  .brand-production-row { grid-template-columns: 46px minmax(0,1fr) 140px; }
  .brand-production-owner { display: none; }
}

@media (max-width: 560px) {
  .portfolio-heading h1 { font-size: 34px; }
  .portfolio-heading-summary { display: grid; grid-template-columns: 1fr 1fr; width: 100%; gap: 8px 14px; }
  .portfolio-heading-summary strong { grid-column: 1 / -1; }
  .portfolio-heading-summary span { padding: 0; border: 0; }
  .resource-grid { grid-template-columns: 1fr; }
  .resource-card { min-height: 220px; }
  .brand-row { padding: 16px; }
  .brand-row-contents { display: none; }
  .brand-row-status { grid-column: 1 / -1; }
  .brand-home-identity { align-items: flex-start; }
  .brand-home-identity .brand-row-logo { width: 58px; height: 58px; border-radius: 18px; }
  .brand-home-identity h1 { font-size: 32px; }
  .brand-home-actions { flex-direction: column; }
  .brand-access ul { grid-template-columns: 1fr 1fr; }
  .brand-focus-section { padding: 34px 0 30px; }
  .brand-focus-section > header h2 { font-size: 25px; }
  .brand-focus-task { min-height: 150px; grid-template-columns: 54px minmax(0,1fr); }
  .brand-focus-mark { width: 52px; height: 52px; border-radius: 15px; }
  .brand-focus-mark i { font-size: 15px; }
  .brand-focus-task .clean-focus-context { grid-column: 1 / -1; }
  .brand-production-row { grid-template-columns: 42px minmax(0,1fr) auto; gap: 10px; }
  .brand-production-state .status { display: none; }
}

/* Peripheral workspace navigation */
:root {
  --sidebar: 0px;
  --app-header-height: 82px;
}

.app-shell {
  display: block;
  min-height: calc(100vh - 32px);
  padding-top: var(--app-header-height);
}

.workspace {
  width: 100%;
  min-width: 0;
  grid-column: auto;
}

.app-header {
  position: fixed;
  top: 32px;
  left: 0;
  right: 0;
  z-index: 35;
  height: var(--app-header-height);
  padding: 14px 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  pointer-events: none;
}

.app-header > * { pointer-events: auto; }

.brand-context {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  justify-self: start;
}

.app-header .top-brand {
  width: 52px;
  height: 52px;
  margin: 0;
  padding: 2px;
  display: grid;
  place-items: center;
  justify-self: start;
  border-radius: 18px;
  color: #2f2922;
  background: rgba(255,253,248,0.58);
  box-shadow: 0 8px 24px rgba(75,55,30,0.055);
  backdrop-filter: blur(12px);
}

.app-header .brand-mark {
  width: 46px;
  height: 46px;
  filter: drop-shadow(0 5px 7px rgba(42,36,29,0.11));
}

.workspace-focus {
  min-width: 0;
  max-width: 285px;
  height: 38px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(220,211,198,0.7);
  border-radius: 12px;
  background: rgba(255,253,249,0.44);
  color: #918575;
  font-size: 11px;
  box-shadow: 0 5px 16px rgba(67,49,29,0.035);
  backdrop-filter: blur(12px);
}

.workspace-focus strong {
  min-width: 0;
  overflow: hidden;
  color: #5d5144;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-focus.is-contextual {
  border-color: #cfbfac;
  background: rgba(237,231,222,0.92);
  color: #746657;
}

.workspace-focus button {
  width: 22px;
  height: 22px;
  margin-left: 2px;
  padding: 0;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255,253,249,0.68);
  color: #766858;
  font-size: 17px;
  line-height: 1;
}

.workspace-focus button:hover { background: #fffdf9; color: #a55322; }
.workspace-focus button[hidden] { display: none; }

.primary-context-nav,
.utility-context-nav {
  display: flex;
  align-items: center;
}

.primary-context-nav {
  gap: 9px;
  justify-self: center;
}

.utility-context-nav {
  gap: 7px;
  justify-self: end;
  padding-top: 5px;
}

.app-header .nav-item {
  position: relative;
  margin: 0;
  padding: 0;
  display: grid;
  place-items: center;
  grid-template-columns: 1fr;
  border: 1px solid rgba(220,211,198,0.82);
  border-radius: 50%;
  background: rgba(237,231,222,0.96);
  color: #8c8174;
  box-shadow: 0 4px 14px rgba(67,49,29,0.035);
  backdrop-filter: blur(12px);
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.app-header .context-nav-item {
  width: 48px;
  height: 48px;
}

.app-header .utility-nav-item {
  width: 36px;
  height: 36px;
  box-shadow: none;
}

.app-header .nav-item:hover {
  transform: translateY(-1px);
  border-color: #cfc0ad;
  background: rgba(255,253,249,0.82);
  color: #51483e;
}

.app-header .nav-item.is-active {
  border-color: #c8b9a7;
  background: rgba(255,253,249,0.48);
  color: #332c25;
  box-shadow: 0 7px 18px rgba(67,49,29,0.09);
}

.app-header .nav-item::before { display: none; }

.app-header .nav-icon,
.app-header .nav-item.is-active .nav-icon {
  color: inherit;
  font-size: 19px;
  line-height: 1;
}

.app-header .utility-nav-item .nav-icon { font-size: 16px; }

.app-header .nav-item::after {
  content: attr(data-label);
  position: absolute;
  top: calc(100% + 9px);
  left: 50%;
  padding: 5px 8px;
  border-radius: 7px;
  background: #332c25;
  color: #fffaf3;
  font-size: 10px;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%,-3px);
  transition: opacity 120ms ease, transform 120ms ease;
  box-shadow: 0 7px 18px rgba(42,35,27,0.13);
}

.app-header .nav-item:hover::after,
.app-header .nav-item:focus-visible::after {
  opacity: 1;
  transform: translate(-50%,0);
}

.app-header .utility-context-nav .nav-item:last-child::after {
  right: 0;
  left: auto;
  transform: translateY(-3px);
}

.app-header .utility-context-nav .nav-item:last-child:hover::after,
.app-header .utility-context-nav .nav-item:last-child:focus-visible::after {
  transform: translateY(0);
}

.app-header .nav-count,
.app-header .decision-count {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 16px;
  height: 16px;
  padding: 0;
  display: grid !important;
  place-items: center;
  border: 2px solid #f7f3eb;
  border-radius: 50%;
  background: #aa652f;
  color: white;
  font-size: 8px;
  line-height: 1;
}

.bottom-dock {
  left: 0;
  padding: 0 24px;
  gap: 18px;
}

.bottom-dock .dock-profile {
  width: 194px;
  height: 48px;
  flex: 0 0 194px;
  padding: 5px 9px 5px 5px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 15px;
  background: transparent;
  color: #453a30;
  text-align: left;
}

.bottom-dock .dock-profile:hover {
  border-color: #ddd2c5;
  background: rgba(255,253,249,0.72);
}

.bottom-dock .dock-profile .avatar {
  width: 38px;
  height: 38px;
}

.bottom-dock .dock-profile .profile-copy {
  display: flex;
  color: #493f35;
}

.bottom-dock .dock-profile .profile-copy strong { font-size: 12px; }
.bottom-dock .dock-profile .profile-copy small { color: #8b7e6e; font-size: 10px; }
.bottom-dock .intent-bar { margin-left: auto; }

#app-main { padding-top: 18px; }

@media (max-width: 1050px) {
  .bottom-dock .dock-profile {
    width: 48px;
    flex-basis: 48px;
    padding: 5px;
    justify-content: center;
  }
  .bottom-dock .dock-profile .profile-copy { display: none; }
}

@media (max-width: 860px) {
  :root { --app-header-height: 118px; }
  .app-header {
    height: var(--app-header-height);
    padding: 9px 12px 8px;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 48px 48px;
    align-items: center;
  }
  .app-header .top-brand {
    width: 46px;
    height: 46px;
    border-radius: 15px;
  }
  .brand-context { gap: 7px; }
  .app-header .brand-mark { width: 41px; height: 41px; }
  .workspace-focus {
    max-width: 185px;
    height: 34px;
    padding: 0 8px;
    font-size: 10px;
  }
  .workspace-focus button { width: 20px; height: 20px; }
  .primary-context-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    gap: 7px;
  }
  .utility-context-nav {
    grid-column: 2;
    grid-row: 1;
    padding: 0;
  }
  .app-header .context-nav-item { width: 42px; height: 42px; }
  .app-header .utility-nav-item { width: 32px; height: 32px; }
  .app-header .nav-item::after { display: none; }
  .bottom-dock { padding: 8px 10px; gap: 8px; }
  .bottom-dock .dock-profile {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }
  #app-main { padding-top: 12px; }
}

@media (max-width: 420px) {
  .primary-context-nav { gap: 5px; }
  .app-header .context-nav-item { width: 39px; height: 39px; }
}

/* Golden-path workflow depth */
.clean-focus-utility-actions { display: inline-flex; align-items: center; gap: 18px; }
.focus-ranking-list { display: grid; gap: 9px; }
.focus-ranking-list > div { min-height: 54px; padding: 11px 13px; display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-soft); }
.focus-ranking-list span { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--teal-soft); color: var(--teal-dark); font-size: 11px; font-weight: 700; }
.focus-ranking-list p { margin: 0; color: var(--ink); font-weight: 600; }
.focus-ranking-evidence { margin: 14px 0 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.focus-ranking-evidence > div { padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.focus-ranking-evidence dt { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.focus-ranking-evidence dd { margin: 5px 0 0; color: var(--ink-strong); font-size: 11px; font-weight: 600; }
.intent-answer { padding: 17px 18px; border: 1px solid #d5e5df; border-radius: 13px; background: linear-gradient(145deg,#f7fbf9,#eef7f3); }
.intent-answer > span { display: block; color: var(--teal-dark); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.intent-answer > strong { display: block; margin-top: 7px; color: var(--ink-strong); font: 650 17px/1.35 "Manrope",sans-serif; }
.intent-answer > p { margin: 8px 0 0; color: var(--muted); }

.review-feedback-banner { margin-bottom: 13px; padding: 13px 15px; display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 12px; border: 1px solid #e8bbb5; border-radius: 12px; background: var(--red-soft); }
.review-feedback-banner.is-resolved { border-color: #bedccb; background: var(--teal-soft); }
.review-feedback-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: white; color: var(--red); font-weight: 800; }
.review-feedback-banner.is-resolved .review-feedback-icon { color: var(--teal-dark); }
.review-feedback-banner small,.review-feedback-banner strong,.review-feedback-banner p { display: block; }
.review-feedback-banner small { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; }
.review-feedback-banner strong { margin-top: 2px; color: var(--ink-strong); }
.review-feedback-banner p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.draft-version-strip { margin: 0 0 13px; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid #d9d3ca; border-radius: 12px; background: rgba(255,253,249,0.75); }
.draft-version-strip > div:first-child { min-width: 0; }
.draft-version-strip > div:first-child span { color: #a45e29; font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.draft-version-strip > div:first-child strong { display: block; margin-top: 2px; color: #362e27; font-size: 12px; }
.draft-version-strip > div:first-child small { display: block; margin-top: 2px; color: #847666; font-size: 10px; }
.draft-version-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; flex-wrap: wrap; }
.draft-provenance { margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line); }
.draft-provenance > span { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.draft-provenance dl { margin: 7px 0 0; display: grid; gap: 6px; }
.draft-provenance dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.draft-provenance dt { color: var(--muted); font-size: 10px; }
.draft-provenance dd { margin: 0; color: var(--ink-strong); font-size: 10px; font-weight: 700; text-align: right; }
.version-compare { display: grid; grid-template-columns: minmax(0,1fr) 28px minmax(0,1fr); align-items: stretch; gap: 10px; }
.version-compare > section { padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }
.version-compare > section.is-changed { border-color: #d7b48f; background: #fff8ef; }
.version-compare > section > span { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; }
.version-compare > section > p { margin: 9px 0; color: var(--ink-strong); font: 600 15px/1.45 "Manrope",sans-serif; }
.version-compare > section > small { color: var(--muted); }
.version-compare > i { display: grid; place-items: center; color: var(--muted); font-style: normal; }
.source-compare > section > p { font-size: 13px; }
.comparison-impact { margin-top: 12px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.comparison-impact > div { padding: 10px 11px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.comparison-impact span,.comparison-impact strong { display: block; }
.comparison-impact span { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: 0.06em; }
.comparison-impact strong { margin-top: 3px; color: var(--teal-dark); font-size: 11px; }
.version-history-list { margin: 0; padding: 0; display: grid; gap: 9px; list-style: none; }
.version-history-list li { padding: 12px 13px; display: grid; grid-template-columns: 38px minmax(0,1fr) auto; gap: 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-soft); }
.version-history-list li.is-current { border-color: #bcd9ce; background: #f1f8f5; }
.version-history-list li > span { color: #a45e29; font-weight: 800; }
.version-history-list strong,.version-history-list p,.version-history-list small { display: block; }
.version-history-list p { margin: 4px 0; color: var(--ink); }
.version-history-list small { color: var(--muted); }
.version-history-list em { color: var(--teal-dark); font-size: 10px; font-style: normal; font-weight: 800; text-transform: uppercase; }
.reviewer-comment { margin-bottom: 12px; padding: 13px 14px; display: grid; grid-template-columns: 34px 1fr; gap: 11px; border: 1px solid #e5c3bf; border-radius: 11px; background: var(--red-soft); }
.reviewer-comment > span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: white; color: var(--red); font-size: 10px; font-weight: 800; }
.reviewer-comment p { margin: 0; color: var(--ink); }

@media (max-width: 760px) {
  .clean-focus-utility-actions { gap: 10px; }
  .focus-ranking-evidence,.comparison-impact { grid-template-columns: 1fr; }
  .review-feedback-banner { grid-template-columns: 32px minmax(0,1fr); }
  .review-feedback-banner .button { grid-column: 1 / -1; }
  .draft-version-strip { align-items: flex-start; flex-direction: column; }
  .draft-version-actions { width: 100%; justify-content: flex-start; }
  .version-compare { grid-template-columns: 1fr; }
  .version-compare > i { transform: rotate(90deg); }
}

/* Readable typography floor
   Meaningful interface copy stays at 12px or larger. Eleven-pixel type is
   reserved for short, secondary labels; initials and numeric badges may be 10px. */
body { font-size: 15px; }

.workspace-focus { font-size: 12px; }
.app-header .nav-count,.app-header .decision-count { width: 18px; height: 18px; font-size: 10px; }
.bottom-dock .dock-profile .profile-copy small { font-size: 12px; }
.bottom-dock .intent-bar kbd { font-size: 10px; }
.wizard-step { font-size: 12px; }
.wizard-step i { width: 26px; height: 26px; font-size: 11px; }
.choice-card span,.choice-card .choice-meta { font-size: 12px; }

.context-clock,
.ranking-note,.ranking-note button,
.connected-lens-note,.connected-lens-note button,
.orbit-card-head,.orbit-action,
.inbox-filters button,.network-switch button,
.sandbox-kicker,.guided-route,.pulse-kicker,.pulse-scope,
.campaigns-flight-intro > div > span,
.brand-home-identity > div > span,
.brand-focus-section > header span,
.brand-production > header span,
.clean-focus-pinned button small,
.focus-ranking-evidence dt,
.intent-answer > span,
.review-feedback-banner small,
.draft-version-strip > div:first-child span,
.draft-provenance > span,
.version-compare > section > span,
.comparison-impact span,
.version-history-list em { font-size: 11px; }

.focus-lens-switch button small,
.attention-satellite strong,.attention-satellite span,
.orbit-focus-control,.participant-stack > span,.participant-stack small,
.work-reason,.orbit-footer p strong,.orbit-footer p span,
.focus-network-action .active-handoff small,
.inbox-sender small,.inbox-state small,.inbox-state strong,
.network-node small,.network-node em,.network-detail-type,
.relationship-path,.active-handoff strong,.active-handoff span,.network-legend,
.community-mini-row i,
.sandbox-presence small,.sandbox-safety button,
.sandbox-rest-banner small,
.sandbox-panel-heading small,
.source-slide small,.source-slide em,
.sequence-story span,
.idea-agent small,.idea-suggestion small,
.idea-boundary strong,
.brief-field > span,
.guided-choice em,
.pulse-level-switch button span,
.pulse-reading-copy > span,
.pulse-evidence-head small,.pulse-kind,.pulse-evidence dt,
.pulse-field > header span,
.pulse-signal > span,.pulse-signal > small,
.hq-gantt-axis-label span,.hq-gantt-weeks > span,.hq-gantt-weeks small,.hq-gantt-lanes,
.hq-campaign-copy small,.hq-campaign-copy em,.hq-campaign-status,
.hq-gantt-phase strong,.hq-gantt-phase span,
.hq-gantt-legend,.hq-gantt-legend small,
.programme-rhythm li > button small,
.affiliate-lane header p,.pulse-boundary small,
.brand-row-identity small,.brand-row-activity em,.brand-row-status small,
.brand-owner small,.brand-owner em,
.brand-access > header small,.brand-access > header > span,
.brand-access li strong,.brand-access li small,
.brand-focus-mark small,.brand-focus-section > header > small,
.brand-production-icon,.brand-production-copy small,.brand-production-copy em,
.brand-production-owner small,.brand-production-owner em,
.brand-production-empty span,
.draft-version-strip > div:first-child small,
.draft-provenance dt,.draft-provenance dd,
.comparison-impact strong,
.reviewer-comment > span { font-size: 11px; }

.user-core > small,
.orbit-card > p,.focus-network-detail > p,
.inbox-sender strong,.inbox-copy > span:last-child,.inbox-context p,
.network-node > span,.network-node strong,.network-detail > p,
.sandbox-presence strong,.sandbox-safety strong,.sandbox-safety p span,
.sandbox-rest-banner strong,.sandbox-panel-heading span,
.source-slide strong,
.sandbox-slide-copy strong,.sandbox-slide-copy span,
.sandbox-new-slide strong,.sandbox-new-slide small,
.sequence-story p,
.idea-agent strong,.idea-pocket > p,
.idea-suggestion strong,.idea-boundary span,
.sandbox-transition p strong,.sandbox-transition p span,
.boundary-flow strong,.boundary-flow p,
.brief-sequence-mini small,.brief-field textarea,
.guided-choice strong,.guided-choice span,
.guide-evidence summary,.guide-evidence p,
.guided-submit-copy strong,.guided-submit-copy span,
.pulse-level-switch button strong,
.pulse-reading-copy button,
.pulse-evidence dt,.pulse-evidence dd,
.pulse-field > header > p,
.pulse-signal > strong,
.hq-gantt-axis-label strong,
.hq-campaign-copy strong,
.programme-rhythm li > button strong,
.pulse-boundary > span,.pulse-boundary strong,.pulse-boundary button,
.campaigns-flight-intro > p,
.brand-row-identity em,.brand-row-contents i,
.brand-row-activity small,.brand-row-status strong,
.brand-owner strong,.brand-access > header strong,
.brand-focus-section > header > small,
.brand-production > header p,.brand-production > header > button,
.brand-production-owner strong,
.clean-focus-context > small,.clean-focus-context > strong,
.clean-focus-pinned > header span,
.clean-focus-pinned button em,
.focus-ranking-evidence dd,
.review-feedback-banner p,
.draft-version-strip > div:first-child strong,
.version-compare > section > small,
.version-history-list small { font-size: 12px; }

/* Small workbench content needs more room once it is readable. */
.source-slide { padding: 9px; }
.source-slide-visual { height: 54px; }
.sandbox-slide-card { min-height: 92px; grid-template-columns: 34px 104px minmax(0,1fr) auto; }
.sandbox-slide-number { width: 32px; height: 32px; font-size: 11px; }
.sandbox-slide-preview { height: 68px; }
.sandbox-slide-actions button { width: 30px; height: 30px; font-size: 12px; }
.sandbox-new-slide { min-height: 74px; }
.sequence-story,.idea-boundary { padding-top: 14px; padding-bottom: 14px; }
.idea-suggestion { grid-template-columns: 72px 1fr; padding: 11px; }
.suggestion-preview { height: 62px; }
.sandbox-transition { padding-top: 15px; padding-bottom: 15px; }
.boundary-flow > div { min-height: 138px; }
.brief-sequence-mini > span { min-width: 82px; height: 82px; }
.brief-field textarea { min-height: 96px; }

/* Sandbox library metadata is operational information, not decorative microcopy. */
.sandbox-library-boundary p small,
.sandbox-library-boundary > div strong,
.sandbox-library-boundary > div small,
.sandbox-library-copy small,
.sandbox-library-copy em,
.sandbox-library-owner small,.sandbox-library-owner strong,.sandbox-library-owner em,
.sandbox-library-ai small,.sandbox-library-ai strong,.sandbox-library-ai em,
.sandbox-library-status strong,.sandbox-library-status small { font-size: 12px; }
.sandbox-library-item { min-height: 126px; grid-template-columns: 58px minmax(240px,1.25fr) minmax(185px,.72fr) minmax(185px,.72fr) 158px 20px; }
.sandbox-library-status { min-height: 66px; padding: 11px 12px; }
.sandbox-presence > span { font-size: 10px; }

/* Timeline labels are allowed to breathe instead of being compressed. */
.hq-gantt-axis { min-height: 62px; }
.hq-gantt-row { min-height: 126px; }
.campaigns-gantt .hq-gantt-row { min-height: 132px; }
.hq-gantt-phase { min-width: 68px; height: 40px; padding: 7px 9px; }
.hq-gantt-phase.lane-production { top: 14px; }
.hq-gantt-phase.lane-distribution { top: 76px; }
.hq-gantt-phase b { width: 18px; height: 18px; }

/* Stewardship and production rows reflow at accessible metadata sizes. */
.brand-stewardship { grid-template-columns: 270px minmax(0,1fr); }
.brand-owner { min-height: 126px; }
.brand-access { padding: 16px 18px; }
.brand-access ul { gap: 12px; }
.brand-access li { grid-template-columns: 34px minmax(0,1fr); }
.brand-access li > span { width: 34px; height: 34px; font-size: 10px; }
.brand-owner em,.brand-access li strong { font-size: 12px; }
.brand-production-row { min-height: 94px; }

/* The primary focus surface should never make its evidence feel incidental. */
.clean-focus-icon > small { font-size: 11px; }
.clean-focus-people i { font-size: 10px; }
.clean-focus-pinned > div > button { min-height: 76px; }
.focus-ranking-list span { font-size: 12px; }

@media (min-width: 561px) and (max-width: 820px) {
  .sandbox-slide-card { grid-template-columns: 32px 88px minmax(0,1fr); }
  .sandbox-library-item { grid-template-columns: 50px minmax(0,1fr) 142px 18px; }
  .brand-stewardship { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .hq-gantt-row,.campaigns-gantt .hq-gantt-row { min-height: 128px; }
  .hq-gantt-phase { min-width: 62px; }
  .brand-access li strong,.brand-access li small { white-space: normal; }
  .clean-focus-copy > small { font-size: 11px; }
  .clean-focus-copy > span { font-size: 12px; }
  .clean-focus-pinned > div > button { min-height: 70px; }
  .card:has(> .data-table) { overflow-x: auto; overscroll-behavior-inline: contain; }
}

@media (max-width: 560px) {
  .sandbox-slide-card { grid-template-columns: 32px 78px minmax(0,1fr); }
  .sandbox-library-item { min-height: 0; padding: 16px; grid-template-columns: 44px minmax(0,1fr) 18px; align-items: start; }
  .sandbox-library-status { grid-column: 2 / -1; grid-row: auto; min-height: 58px; }
  .sandbox-library-owner { grid-column: 2 / -1; }
  .sandbox-library-ai { display: none; }
  .sandbox-library-arrow { grid-column: 3; grid-row: 1; align-self: center; }
  .brand-stewardship { grid-template-columns: 1fr; }
}
