@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  --paper: #faf9f6;
  --surface: #f2f1ed;
  --card: #fdfcf9;
  --ink: #292d28;
  --text: #555950;
  --muted: #6d7267;
  --line: #e6e6de;
  --green: #365e47;
  --green-hover: #2c513c;
  --green-soft: #e9eee5;
  --green-wash: #f0f4ed;
  --amber: #946126;
  --amber-soft: #f5eee1;
  --red: #a2473c;
  --red-soft: #f7eae6;
  --blue: #45677c;
  --blue-soft: #e9f0f3;
  --shadow-dock: 0 12px 34px rgb(36 45 37 / 13%), 0 1px 0 rgb(255 255 255 / 55%) inset;
  --shadow-panel: 0 12px 32px rgb(36 45 37 / 8%);
  --radius-sm: 9px;
  --radius-md: 13px;
  --radius-lg: 18px;
  --radius-xl: 23px;
  --sidebar-width: 258px;
  --ease-out: cubic-bezier(.2,.7,.2,1);
  --ease-fluid: cubic-bezier(.32,.72,0,1);
  background: var(--paper);
  color: var(--ink);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #191d1a;
  --surface: #222722;
  --card: #1e231f;
  --ink: #eeeeE6;
  --text: #b6beb3;
  --muted: #949e91;
  --line: #343c33;
  --green: #b0cfa2;
  --green-hover: #c0d9b5;
  --green-soft: #2b382c;
  --green-wash: #232d24;
  --amber: #e3bd82;
  --amber-soft: #382f23;
  --red: #e6a197;
  --red-soft: #3b2825;
  --blue: #a2c0d0;
  --blue-soft: #26343b;
  --shadow-dock: 0 13px 36px rgb(0 0 0 / 27%), 0 1px 0 rgb(255 255 255 / 4%) inset;
  --shadow-panel: 0 12px 32px rgb(0 0 0 / 18%);
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: var(--paper); scroll-behavior: smooth; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: var(--paper); color: var(--ink); font-size: 14px; line-height: 1.55; transition: background-color .24s var(--ease-out), color .24s var(--ease-out); }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button:enabled { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .54; }
a { color: inherit; }
svg { display: block; }
[hidden] { display: none !important; }
::selection { color: var(--ink); background: var(--green-soft); }

.app-shell { display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.sidebar { position: sticky; top: 0; display: flex; flex-direction: column; height: 100vh; height: 100dvh; min-height: 580px; padding: 27px 18px 20px; overflow: hidden; background: var(--surface); border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; min-height: 44px; padding: 0 8px; color: var(--ink); text-decoration: none; }
.brand-mark { display: grid; flex: 0 0 35px; width: 35px; height: 35px; place-items: center; color: var(--green); }
.brand-mark svg { width: 34px; height: 34px; }
.brand-wordmark { display: flex; flex-direction: column; font-size: 19px; font-weight: 690; letter-spacing: -.85px; line-height: 1.08; }
.brand-name { display: inline; }
.brand-period { display: inline; color: var(--green); }
.brand-wordmark small { margin-top: 5px; color: var(--muted); font-size: 8px; font-weight: 650; letter-spacing: 1.45px; }
.workspace-switcher { display: flex; align-items: center; gap: 10px; min-height: 58px; margin: 28px 0 26px; padding: 10px 11px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--card); }
.workspace-avatar { display: grid; flex: 0 0 31px; width: 31px; height: 31px; place-items: center; border-radius: 10px; background: var(--green-soft); color: var(--green); font-size: 13px; font-weight: 700; }
.workspace-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 1px; }
.workspace-copy strong { overflow: hidden; font-size: 11px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.workspace-copy small { color: var(--muted); font-size: 10px; }
.workspace-chevron { width: 15px; height: 15px; fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.nav { display: flex; min-height: 0; flex: 1; flex-direction: column; gap: 25px; overflow: auto; padding: 0 2px 14px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.nav-group { display: flex; flex-direction: column; gap: 4px; }
.nav-heading { margin: 0 0 7px 10px; color: var(--muted); font-size: 9px; font-weight: 680; letter-spacing: 1.35px; line-height: 1.4; }
.nav-item { position: relative; display: flex; width: 100%; min-height: 43px; align-items: center; gap: 12px; padding: 9px 11px; border: 1px solid transparent; border-radius: 11px; background: transparent; color: var(--text); text-align: left; transition: color .18s var(--ease-out), background-color .18s var(--ease-out), border-color .18s var(--ease-out), transform .18s var(--ease-out); }
.nav-item svg { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; opacity: .86; }
.nav-item span:not(.nav-indicator) { font-size: 12px; font-weight: 530; letter-spacing: -.08px; }
.nav-item:hover { background: color-mix(in srgb, var(--green-soft) 68%, transparent); color: var(--ink); }
.nav-item:active { transform: scale(.985); }
.nav-item.active { border-color: color-mix(in srgb, var(--green) 13%, var(--line)); background: var(--green-soft); color: var(--green); }
.nav-item.active svg { opacity: 1; }
.nav-indicator { width: 5px; height: 5px; margin-left: auto; border-radius: 50%; background: var(--green); opacity: 0; }
.nav-item.active .nav-indicator { opacity: 1; }
.sidebar-bottom { margin-top: auto; padding: 13px 9px 0; border-top: 1px solid var(--line); }
.sidebar-security { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 10px; font-weight: 550; }
.security-dot, .live-marker { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.sidebar-footnote { margin-top: 14px; color: var(--muted); font-family: "Instrument Serif", Georgia, serif; font-size: 16px; line-height: 1.25; }

.workspace { min-width: 0; min-height: 100vh; min-height: 100dvh; }
.topbar { position: sticky; z-index: 20; top: 0; display: flex; min-height: 72px; align-items: center; justify-content: space-between; gap: 18px; padding: 0 clamp(24px, 3.2vw, 54px); border-bottom: 1px solid var(--line); background: var(--paper); }
.topbar-context { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 9px; font-weight: 680; letter-spacing: 1.5px; }
.topbar-mark { display: none; color: var(--green); font-family: "Instrument Serif", Georgia, serif; font-size: 23px; letter-spacing: -1px; }
.topbar-separator { color: var(--line); font-size: 16px; font-weight: 400; }
.topbar-actions { display: flex; align-items: center; gap: 13px; }
.connection-status { display: inline-flex; min-height: 29px; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid var(--line); border-radius: 50px; background: var(--card); color: var(--muted); font-size: 10px; font-weight: 590; text-transform: capitalize; }
.connection-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.connection-status.is-connected { border-color: color-mix(in srgb, var(--green) 30%, var(--line)); background: var(--green-wash); color: var(--green); }
.connection-status.is-connected .connection-dot { background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.icon-button { display: inline-grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--text); transition: background-color .2s var(--ease-out), color .2s var(--ease-out), border-color .2s var(--ease-out), transform .2s var(--ease-out); }
.icon-button:hover { border-color: color-mix(in srgb, var(--green) 35%, var(--line)); background: var(--green-soft); color: var(--green); }
.icon-button:active { transform: scale(.95); }
.icon-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.theme-icon-sun { display: none; }
:root[data-theme="dark"] .theme-icon-moon { display: none; }
:root[data-theme="dark"] .theme-icon-sun { display: block; }
.auth { display: flex; align-items: center; gap: 8px; margin: 0; }
.connect-button, .disconnect-button { min-height: 36px; padding: 0 15px; border: 1px solid var(--line); border-radius: 50px; background: var(--card); color: var(--ink); font-size: 11px; font-weight: 620; transition: background-color .2s var(--ease-out), color .2s var(--ease-out), transform .2s var(--ease-out); }
.connect-button { border-color: var(--green); background: var(--green); color: #fff; }
.connect-button:hover { background: var(--green-hover); }
.disconnect-button:hover { background: var(--green-soft); color: var(--green); }
.connect-button:active, .disconnect-button:active { transform: scale(.98); }

.main { width: 100%; max-width: 1560px; margin: 0 auto; padding: 35px clamp(24px, 3.2vw, 54px) 25px; outline: none; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin: 3px 0 28px; }
.page-heading h1 { margin: 0; color: var(--ink); font-family: "Instrument Serif", Georgia, serif; font-size: clamp(35px, 3.1vw, 43px); font-weight: 400; letter-spacing: -1px; line-height: 1.06; }
.page-heading-copy > p { max-width: 650px; margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.page-heading-aside { display: flex; align-items: center; gap: 9px; padding-bottom: 5px; color: var(--muted); font-size: 9px; font-weight: 650; letter-spacing: 1.2px; white-space: nowrap; }
.page-heading-aside .live-marker { width: 6px; height: 6px; flex-basis: 6px; }
#content { display: flex; min-width: 0; flex-direction: column; gap: 15px; animation: content-arrive .36s var(--ease-fluid) both; }
#content[aria-busy="true"] { opacity: .72; }

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.card { min-width: 0; padding: 19px 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); color: var(--ink); transition: border-color .2s var(--ease-out), background-color .22s var(--ease-out), transform .22s var(--ease-out), box-shadow .22s var(--ease-out); }
.card h2, #content h2 { margin: 0 0 11px; color: var(--ink); font-size: 16px; font-weight: 650; letter-spacing: -.32px; line-height: 1.35; }
.card h3, #content h3 { margin: 0 0 9px; color: var(--ink); font-size: 13px; font-weight: 650; letter-spacing: -.12px; }
.card p { color: var(--text); }
@media (hover: hover) and (pointer: fine) {
  #content > .card:hover, #content > .grid .card:hover { border-color: color-mix(in srgb, var(--green) 24%, var(--line)); box-shadow: 0 7px 20px rgb(38 48 38 / 4%); }
}
.grid .card { min-height: 116px; padding: 17px 18px; color: var(--muted); font-size: 11px; font-weight: 580; }
.metric { margin-top: 11px; color: var(--ink); font-size: clamp(26px, 2vw, 32px); font-weight: 650; letter-spacing: -1.2px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.grid .card:last-child .metric { color: var(--green); font-size: 20px; letter-spacing: -.5px; }
.section { margin-top: 22px; }
.section.card { margin-top: 0; }
.section.card > .row { justify-content: flex-start; flex-wrap: wrap; gap: 8px; border-bottom: 0; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-width: 0; padding: 13px 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row > :first-child { min-width: 0; }
.row p { margin: 6px 0; }
.muted, .empty { color: var(--muted); }
.muted { overflow-wrap: anywhere; font-size: 11px; line-height: 1.65; }
.empty { display: grid; min-height: 128px; place-items: center; padding: 27px 18px; border: 1px dashed var(--line); border-radius: var(--radius-md); background: color-mix(in srgb, var(--surface) 55%, transparent); text-align: center; font-size: 12px; }
.pill { display: inline-flex; min-height: 24px; align-items: center; justify-content: center; gap: 6px; padding: 3px 9px; border: 1px solid color-mix(in srgb, var(--green) 17%, var(--line)); border-radius: 50px; background: var(--green-soft); color: var(--green); font-size: 10px; font-weight: 620; line-height: 1.3; white-space: nowrap; }
.pill.danger, .danger { border-color: color-mix(in srgb, var(--red) 24%, var(--line)); background: var(--red-soft); color: var(--red); }
.pill.warning { border-color: color-mix(in srgb, var(--amber) 22%, var(--line)); background: var(--amber-soft); color: var(--amber); }
.pill.neutral { border-color: var(--line); background: var(--surface); color: var(--muted); }

.action { display: inline-flex; min-height: 37px; align-items: center; justify-content: center; gap: 7px; padding: 8px 14px; border: 1px solid var(--green); border-radius: 50px; background: var(--green); color: #fff; font-size: 11px; font-weight: 630; line-height: 1.3; text-decoration: none; transition: background-color .18s var(--ease-out), color .18s var(--ease-out), border-color .18s var(--ease-out), transform .18s var(--ease-out), box-shadow .18s var(--ease-out); }
.action:hover { border-color: var(--green-hover); background: var(--green-hover); }
.action:active { transform: scale(.98); }
.action:focus-visible, .nav-item:focus-visible, .mobile-nav-item:focus-visible, .icon-button:focus-visible, .connect-button:focus-visible, .disconnect-button:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.action.danger { border-color: var(--red); background: var(--red); color: #fff; }
.action.danger:hover { background: color-mix(in srgb, var(--red) 85%, #000); }

.approval-card { margin-bottom: 0; border-left: 3px solid var(--amber); }
.approval-card > .row { align-items: flex-start; }
.approval-card > .row > div:last-child { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.approval-card details { margin-top: 13px; padding-top: 11px; border-top: 1px solid var(--line); color: var(--text); }
#content details { color: var(--text); }
#content summary { width: fit-content; color: var(--green); cursor: pointer; font-size: 11px; font-weight: 620; }
#content summary:hover { text-decoration: underline; text-underline-offset: 3px; }
.approval-card pre, #content pre { max-height: 320px; overflow: auto; padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
#content code { color: var(--green); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; overflow-wrap: anywhere; }
#content blockquote { margin: 8px 0; padding: 8px 12px; border-left: 2px solid var(--green); background: var(--green-wash); color: var(--text); font-size: 11px; }
#content ul { padding-left: 19px; }
#content li { padding: 3px 0; color: var(--text); font-size: 12px; }
.artifact-entry { padding: 11px 0; border-top: 1px solid var(--line); }
.artifact-entry:first-of-type { border-top: 0; }
.artifact-row { align-items: flex-start; border: 0; }
.artifact-row > div:last-child { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.artifact-preview { margin: 10px 0 0; padding: 12px; border-radius: var(--radius-md); background: var(--surface); }
.artifact-preview-content { max-height: 28rem; overflow: auto; white-space: pre; }

#content label { display: flex; flex-direction: column; gap: 7px; margin: 13px 0; color: var(--text); font-size: 11px; font-weight: 600; }
#content input, #content textarea, #content select { display: block; width: 100%; min-height: 43px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); outline: none; background: var(--paper); color: var(--ink); font-size: 13px; transition: border-color .18s var(--ease-out), box-shadow .18s var(--ease-out), background-color .18s var(--ease-out); }
#content textarea { min-height: 104px; resize: vertical; line-height: 1.55; }
#content input::placeholder, #content textarea::placeholder { color: var(--muted); opacity: .8; }
#content input:focus, #content textarea:focus, #content select:focus { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
#content form { max-width: 620px; }
#content form .action { margin-top: 5px; }
#content details form { margin-top: 13px; }
#content table { width: 100%; border-collapse: separate; border-spacing: 0; color: var(--text); font-size: 11px; text-align: left; }
#content th { padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .85px; text-transform: uppercase; white-space: nowrap; }
#content td { max-width: 360px; padding: 13px 14px; border-bottom: 1px solid var(--line); font-size: 11px; overflow-wrap: anywhere; vertical-align: top; }
#content tbody tr:last-child td { border-bottom: 0; }
#content tbody tr:hover td { background: color-mix(in srgb, var(--green-soft) 28%, transparent); }
#content .card:has(> table), #content .card:has(> .table-wrap) { padding: 0; overflow: hidden; }
.table-wrap { width: 100%; overflow: auto; border-radius: inherit; scrollbar-color: var(--line) transparent; scrollbar-width: thin; }

.agent-card { border-left: 2px solid color-mix(in srgb, var(--green) 55%, var(--line)); }
.agent-card > .row { align-items: flex-start; border: 0; }
.agent-card h2 { margin-bottom: 4px; }
.agent-card > p { margin: 8px 0; color: var(--muted); font-size: 11px; }
.agent-card details { padding-top: 9px; border-top: 1px solid var(--line); }
.agent-card details[open] { margin-top: 12px; }
.workspace-footer { display: flex; justify-content: space-between; gap: 14px; margin-top: 42px; padding: 17px 2px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 8px; font-weight: 650; letter-spacing: 1.1px; }
.footer-dot { padding: 0 5px; color: var(--green); }
.mobile-dock { display: none; }
.welcome-card { display: flex; max-width: 760px; flex-direction: column; align-items: flex-start; gap: 13px; padding: clamp(22px, 3vw, 34px); }
.welcome-kicker { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: 9px; font-weight: 680; letter-spacing: 1.15px; }
.welcome-card h2 { margin: 5px 0 0; font-family: "Instrument Serif", Georgia, serif; font-size: clamp(27px, 3vw, 36px); font-weight: 400; letter-spacing: -.45px; }
.welcome-card > p { max-width: 590px; margin: 0; color: var(--text); font-size: 13px; line-height: 1.75; }
.welcome-details { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 3px; }
.welcome-details span { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 10px; }
.welcome-card .welcome-hint { margin-top: 5px; color: var(--muted); font-size: 11px; }
.welcome-hint strong { color: var(--green); font-weight: 650; }

@keyframes content-arrive {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes dock-arrive {
  from { opacity: 0; translate: 0 10px; }
  to { opacity: 1; translate: 0 0; }
}

@media (max-width: 1100px) {
  :root { --sidebar-width: 235px; }
  .sidebar { padding-inline: 14px; }
  .main { padding-inline: 26px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topbar { padding-inline: 26px; }
}

@media (min-width: 761px) and (max-width: 900px) {
  :root { --sidebar-width: 205px; }
  .sidebar { padding: 21px 11px 15px; }
  .workspace-switcher { min-height: 52px; margin: 18px 0 19px; padding: 8px; }
  .nav { gap: 17px; }
  .nav-item { min-height: 44px; gap: 9px; padding-inline: 9px; }
  .nav-item span:not(.nav-indicator) { font-size: 11px; }
  .sidebar-footnote { font-size: 14px; }
  .topbar { min-height: 66px; padding-inline: 20px; }
  .main { padding: 29px 20px 24px; }
  .page-heading h1 { font-size: 37px; }
}

@media (max-width: 760px) {
  .app-shell { display: block; min-height: 100vh; min-height: 100dvh; }
  .sidebar { display: none; }
  .workspace { min-height: 100vh; min-height: 100dvh; }
  .topbar { min-height: 62px; padding: 0 17px; }
  .topbar-mark { display: inline; }
  .topbar-context { gap: 9px; font-size: 8px; letter-spacing: 1.15px; }
  .topbar-separator, #section-label { display: none; }
  .topbar-actions { gap: 8px; }
  .connection-status { min-height: 27px; padding-inline: 8px; font-size: 9px; }
  .icon-button { width: 44px; height: 44px; flex-basis: 44px; }
  .connect-button, .disconnect-button { min-height: 44px; padding-inline: 11px; font-size: 10px; }
  .main { padding: 29px 17px calc(108px + env(safe-area-inset-bottom)); }
  .page-heading { align-items: flex-start; margin-bottom: 22px; }
  .page-heading h1 { font-size: 36px; }
  .page-heading-copy > p { max-width: 310px; font-size: 12px; }
  .page-heading-aside { display: none; }
  #content { gap: 12px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .grid .card { min-height: 104px; padding: 14px; }
  .metric { font-size: 26px; }
  .card { padding: 16px; border-radius: 15px; }
  #content table { min-width: 680px; }
  .table-wrap { -webkit-overflow-scrolling: touch; }
  .approval-card > .row, .artifact-row, .agent-card > .row { flex-direction: column; align-items: stretch; }
  .approval-card > .row > div:last-child, .artifact-row > div:last-child { justify-content: flex-start; }
  .row { gap: 10px; }
  .action { min-height: 40px; padding-inline: 13px; }
  #content label { margin: 12px 0; }
  #content input, #content textarea, #content select { min-height: 45px; font-size: 16px; }
  .workspace-footer { margin-top: 30px; flex-direction: column; gap: 5px; font-size: 7px; }
  .mobile-dock { position: fixed; z-index: 40; right: auto; bottom: max(10px, env(safe-area-inset-bottom)); left: 12px; display: flex; width: calc(100% - 24px); max-width: 480px; min-height: 66px; align-items: stretch; justify-content: space-around; gap: 2px; margin: 0; padding: 6px; transform: none; border: 1px solid color-mix(in srgb, var(--line) 82%, transparent); border-radius: 24px; background: color-mix(in srgb, var(--card) 94%, transparent); box-shadow: var(--shadow-dock); backdrop-filter: blur(18px) saturate(1.1); -webkit-backdrop-filter: blur(18px) saturate(1.1); animation: dock-arrive .45s .08s var(--ease-fluid) both; }
  .mobile-nav-item { display: flex; min-width: 0; min-height: 52px; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 5px 4px; border: 0; border-radius: 16px; background: transparent; color: var(--muted); font-size: 9px; font-weight: 560; line-height: 1.1; text-decoration: none; cursor: pointer; transition: background-color .18s var(--ease-out), color .18s var(--ease-out), transform .18s var(--ease-out); }
  .mobile-nav-item svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .mobile-nav-item.active { background: var(--green-soft); color: var(--green); }
  .mobile-nav-item:active { transform: scale(.96); }
  .mobile-more { position: relative; display: flex; min-width: 0; flex: 1; }
  .mobile-more > summary { list-style: none; }
  .mobile-more > summary::-webkit-details-marker { display: none; }
  .mobile-more[open] > summary { background: var(--green-soft); color: var(--green); }
  .mobile-more-panel { position: absolute; right: 0; bottom: calc(100% + 12px); display: flex; width: min(260px, calc(100vw - 32px)); max-height: min(68vh, 520px); flex-direction: column; gap: 3px; overflow: auto; padding: 12px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: var(--shadow-panel); animation: content-arrive .18s var(--ease-fluid) both; }
  .mobile-more-panel .nav-heading { margin: 8px 7px 5px; }
  .mobile-more-panel button { display: flex; min-height: 44px; align-items: center; padding: 8px 10px; border: 0; border-radius: 10px; background: transparent; color: var(--text); text-align: left; font-size: 12px; }
  .mobile-more-panel button:hover, .mobile-more-panel button.active { background: var(--green-soft); color: var(--green); }
}

@media (max-width: 420px) {
  .topbar { padding-inline: 12px; }
  .topbar-actions { gap: 6px; }
  .connection-status { gap: 6px; padding-inline: 7px; }
  .main { padding-inline: 13px; }
  .page-heading h1 { font-size: 34px; }
  .card { padding: 14px; }
  .grid .card { padding: 12px; }
  .grid .card:last-child .metric { font-size: 18px; }
  .metric { font-size: 24px; }
  .mobile-dock { right: auto; left: 8px; width: calc(100% - 16px); padding: 5px; }
  .mobile-nav-item { font-size: 8px; }
}

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

/* Single-owner operations surfaces */
.single-owner-mark { cursor: default; }
.single-owner-mark .workspace-chevron { display: none; }
.eyebrow { display: block; margin-bottom: 7px; color: var(--muted); font-size: 8px; font-weight: 750; letter-spacing: 1.35px; }
.section-title-row { display: flex; align-items: center; justify-content: space-between; gap: 13px; margin-bottom: 10px; }
.section-title-row h2 { margin: 0 !important; }
.section-title-row > :first-child { min-width: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; max-width: none !important; }
.form-grid .form-span { grid-column: 1 / -1; }
.form-grid label { min-width: 0; }
.form-grid .checkbox-label { display: flex !important; flex-direction: row !important; align-items: center; gap: 9px !important; align-self: end; min-height: 43px; }
.form-grid .checkbox-label input { width: 17px !important; min-height: 17px !important; height: 17px; margin: 0; accent-color: var(--green); }
.form-grid button:disabled, .action:disabled { cursor: not-allowed; opacity: .55; }
.notice { margin: 12px 0; padding: 12px 14px; border: 1px solid var(--line); border-left: 3px solid var(--green); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font-size: 11px; line-height: 1.65; }
.notice-warning { border-left-color: var(--amber); }
.action-secondary { border-color: var(--line); background: var(--surface); color: var(--text); }
.action-secondary:hover { border-color: var(--green); background: var(--green-soft); color: var(--green); }
.metric-note { display: block; margin-top: 7px; color: var(--muted); font-size: 9px; font-weight: 500; letter-spacing: 0; }
.overview-control { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.overview-control h2 { margin-bottom: 5px !important; }
.overview-control p { margin: 0; }
.capability-list { display: flex; flex-wrap: wrap; gap: 8px; }
.quota-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.quota-item { display: flex; flex-direction: column; gap: 5px; padding: 13px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); font-size: 11px; }
.quota-item span, .quota-item small { color: var(--muted); }
.quota-item small { font-size: 9px; line-height: 1.5; }
.agent-scopes { display: grid; gap: 7px; margin: 12px 0; padding-top: 11px; border-top: 1px solid var(--line); }
.agent-scopes span { color: var(--muted); font-size: 10px; line-height: 1.6; overflow-wrap: anywhere; }
.agent-scopes strong { display: inline-block; min-width: 56px; color: var(--text); }
.row-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.memory-list { display: flex; flex-direction: column; }
.memory-entry, .skill-entry, .evidence-entry { padding: 15px 0; border-top: 1px solid var(--line); }
.memory-entry:first-child, .skill-entry:first-child, .evidence-entry:first-child { border-top: 0; }
.memory-entry[hidden] { display: none; }
.memory-entry-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.memory-entry-head > div { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.memory-entry > p, .evidence-entry > p { margin: 10px 0; color: var(--text); font-size: 12px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.evidence-entry > a { color: var(--green); font-size: 11px; overflow-wrap: anywhere; }
.evidence-verify-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 0 13px; max-width: none !important; margin-top: 12px; }
.evidence-verify-form label { margin: 0 !important; }
.evidence-verify-form output { grid-column: 1 / -1; padding-top: 8px; color: var(--muted); font-size: 11px; }
.verification-output.is-supported { color: var(--green); }
.verification-output.is-unsupported { color: var(--red); }
#audit-rows tr[hidden] { display: none; }
.toast-region { position: fixed; z-index: 100; right: 22px; bottom: 22px; width: min(420px, calc(100vw - 32px)); pointer-events: none; }
.toast { padding: 13px 16px; border: 1px solid var(--line); border-left: 3px solid var(--green); border-radius: var(--radius-md); background: var(--card); color: var(--text); box-shadow: var(--shadow-panel); font-size: 12px; line-height: 1.5; animation: content-arrive .2s var(--ease-fluid) both; }
.toast-error { border-left-color: var(--red); }
.toast-success { border-left-color: var(--green); }

@media (max-width: 760px) {
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-grid .form-span { grid-column: auto; }
  .overview-control { align-items: flex-start; flex-direction: column; }
  .evidence-verify-form { grid-template-columns: minmax(0, 1fr); }
  .evidence-verify-form button { justify-self: start; }
  .memory-entry-head, .section-title-row { align-items: flex-start; }
  .section-title-row { flex-direction: column; }
  .toast-region { right: 12px; bottom: calc(88px + env(safe-area-inset-bottom)); }
}

.owner-dialog { width: min(520px, calc(100vw - 32px)); max-height: min(82vh, 680px); padding: 0; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); color: var(--ink); box-shadow: 0 24px 80px rgb(0 0 0 / 24%); }
.owner-dialog::backdrop { background: rgb(12 17 13 / 42%); backdrop-filter: blur(3px); }
.owner-dialog-form { max-width: none !important; padding: 24px; }
.owner-dialog-form h2 { margin: 0 0 9px !important; font-family: "Instrument Serif", Georgia, serif; font-size: 30px !important; font-weight: 400 !important; }
.owner-dialog-form > p { margin: 0 0 15px; color: var(--text); font-size: 12px; line-height: 1.65; }
.owner-dialog-form textarea { min-height: 110px; }
.owner-dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 19px; }
.runtime-signals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.runtime-signals > div { display: grid; grid-template-columns: 9px minmax(0, auto) 1fr; align-items: center; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); font-size: 10px; }
.runtime-signals > div > span:last-child { justify-self: end; color: var(--muted); text-align: right; }
.signal-dot { width: 7px; height: 7px; border-radius: 50%; }
.signal-good { background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.signal-unknown { background: var(--amber); box-shadow: 0 0 0 3px var(--amber-soft); }
.claim-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.claim-row:first-child { border-top: 0; }
.approval-filterbar { display: grid; grid-template-columns: minmax(0, 2fr) minmax(160px, 1fr); gap: 15px; }
.approval-filterbar label { margin: 0 !important; }
.approval-card[hidden] { display: none; }

@media (max-width: 760px) {
  .runtime-signals { grid-template-columns: minmax(0, 1fr); }
  .runtime-signals > div { grid-template-columns: 9px minmax(0, 1fr); }
  .runtime-signals > div > span:last-child { grid-column: 2; justify-self: start; text-align: left; }
  .claim-row { align-items: flex-start; flex-direction: column; }
  .approval-filterbar { grid-template-columns: minmax(0, 1fr); }
}

.provider-entry { padding: 10px 0; border-top: 1px solid var(--line); }
.provider-entry:first-child { border-top: 0; }
.research-results { margin-top: 15px; }
.research-result { padding: 14px 0; border-top: 1px solid var(--line); }
.research-result > a { color: var(--green); font-size: 11px; overflow-wrap: anywhere; }
.research-result > p { color: var(--text); font-size: 12px; line-height: 1.7; }
.research-result .section-title-row { align-items: flex-start; }
.research-result-fetch { margin-top: 10px; }
.research-content-preview { max-height: 430px !important; }
.research-fetch-result { margin-top: 13px; }
