/* Project Intent — workspace design system. No external assets or font requests. */
:root {
  color-scheme: light;
  --ink: #242632;
  --muted: #6c7082;
  --line: #e4e6ee;
  --surface: #fff;
  --canvas: #f4f5f9;
  --accent: #6955e8;
  --accent-soft: #efecff;
  --green: #187652;
  --amber: #986022;
  --red: #b84052;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow: 0 14px 44px -18px #20213626, 0 1px 3px #20213608;
  --font-ui: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 400 1rem/1.5 var(--font-ui); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .48; }
button, a, input, select, textarea, summary { touch-action: manipulation; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid #9988f5; outline-offset: 4px; }
button { transition: background-color .18s, color .18s, border-color .18s, box-shadow .25s, transform .25s var(--ease); }
button:not(:disabled):active { transform: translateY(1px); }
input, textarea, select { min-width: 0; }
svg.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 18px; border-radius: 8px; background: var(--ink); color: white; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.demo-banner { min-height: 36px; padding: 8px 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #f0eef9; border-bottom: 1px solid #e4e0f4; color: #5b5480; font-size: .75rem; }
.banner-identity { display: inline-flex; align-items: center; gap: 7px; font-weight: 650; }
.banner-identity .icon { width: 14px; height: 14px; }
.banner-note { color: #6a647e; }
.banner-version { font-size: .75rem; font-family: ui-monospace, SFMono-Regular, monospace; letter-spacing: .055em; color: #746f88; }
.topbar { min-height: 76px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; padding: 14px 28px; background: var(--surface); border-bottom: 1px solid var(--line); position: relative; z-index: 10; }
.brand { color: #282835; text-decoration: none; font-size: 1rem; font-weight: 700; letter-spacing: -.035em; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #f3edff; background: #242334; box-shadow: inset 0 0 0 1px #ffffff14; font: italic 26px Georgia, serif; }
.codename { font-size: .75rem; font-weight: 550; letter-spacing: .03em; padding: 3px 7px; border: 1px solid var(--line); color: var(--muted); border-radius: 6px; }
.view-switch { position: relative; isolation: isolate; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border: 1px solid #edeef4; background: #f4f5f8; border-radius: 12px; }
.view-switch::before { content: ""; position: absolute; z-index: -1; width: calc(50% - 4px); top: 4px; bottom: 4px; left: 4px; border-radius: 8px; background: #fff; box-shadow: 0 1px 4px #21213318; transition: transform .32s var(--ease); }
.view-switch[data-active="control"]::before { transform: translateX(100%); }
.view-button { min-height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 6px 16px; border: 0; border-radius: 8px; background: transparent; color: #77788a; font-size: .875rem; font-weight: 550; white-space: nowrap; }
.view-button.active { color: #403c5e; }
.view-button:not(.active):hover { color: #29263d; }
.secondary-button, .primary-button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--line); background: #fff; border-radius: 10px; color: #4a4c5d; font-size: .875rem; font-weight: 600; white-space: nowrap; }
.secondary-button:hover { border-color: #c8c9d5; background: #fafafe; }
.primary-button { background: var(--accent); color: white; border-color: #614edb; box-shadow: 0 3px 9px #6854e52b, inset 0 1px #ffffff26; }
.primary-button:hover { background: #5c47d5; box-shadow: 0 5px 16px #6854e540; transform: translateY(-1px); }
.refresh-button { justify-self: end; }
.refresh-button.is-refreshing .icon { animation: spin 1s linear infinite; }
.app-shell { height: calc(100svh - 113px); min-height: 640px; display: grid; grid-template-columns: 186px minmax(0, 1fr) 424px; transition: grid-template-columns .32s var(--ease); overflow: hidden; }
.runtime-shell:has(.operator-panel.closed) { grid-template-columns: 186px minmax(0, 1fr) 0; }
.sidebar { padding: 26px 16px 24px; border-right: 1px solid var(--line); background: #fafbfe; display: flex; flex-direction: column; min-width: 0; }
.workspace-pill { display: flex; gap: 9px; align-items: center; margin-bottom: 40px; }
.workspace-logo { flex-shrink: 0; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: #756295; background: #e9e2f5; font-size: .875rem; font-weight: 700; }
.workspace-pill strong { display: block; font-size: .875rem; font-weight: 650; letter-spacing: -.02em; }
.workspace-pill small { display: block; font-size: .75rem; color: var(--muted); margin-top: 1px; }
.nav-label { margin: 0 10px 12px; color: #818493; font-size: .75rem; font-weight: 600; letter-spacing: .09em; }
.nav-item { display: flex; align-items: center; gap: 10px; min-height: 42px; border-radius: 9px; padding: 10px; text-decoration: none; color: #625b91; font-size: .875rem; }
.nav-item.active { background: #eae6fa; box-shadow: inset 0 0 0 1px #e1dcf7; font-weight: 600; }
.sidebar-bottom { margin-top: auto; padding-top: 32px; }
.sidebar-copy { margin: 0 5px 24px; }
.sidebar-copy > .icon { color: #817899; margin-bottom: 10px; }
.sidebar-copy strong { display: block; color: #535164; font-size: .875rem; font-weight: 600; }
.sidebar-copy p { font-size: .75rem; line-height: 1.7; color: #818092; margin: 6px 0 0; }
.operator-launch { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; border: 1px solid #dcd6f4; border-radius: 10px; background: #f1edff; color: #614ca8; font-size: .875rem; font-weight: 600; }
.operator-launch:hover { background: #e9e1ff; border-color: #c5b8ed; }
kbd { font: 500 .75rem var(--font-ui); opacity: .7; white-space: nowrap; }
.operator-launch kbd { margin-left: auto; }
.workspace { min-width: 0; padding: 32px clamp(20px, 2.3vw, 40px); overflow: auto; scrollbar-width: thin; scrollbar-color: #d4d3df transparent; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.eyebrow { font-size: .75rem; font-weight: 650; letter-spacing: .075em; line-height: 1.5; color: #8a879b; margin: 0 0 12px; }
.eyebrow span { margin: 0 5px; color: #bab6ca; }
.page-heading h1 { margin: 0 0 12px; font-size: clamp(1.875rem, 2.4vw, 2.5rem); letter-spacing: -.055em; line-height: 1.14; font-weight: 650; }
.page-heading h1 span { color: #878096; }
.page-heading p:last-child { max-width: 360px; margin: 0; font-size: .875rem; color: var(--muted); line-height: 1.7; }
.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.metric-card { min-width: 0; padding: 18px 16px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 2px 3px #22233903; display: flex; flex-direction: column; align-items: flex-start; }
.metric-heading { width: 100%; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; color: #898598; }
.metric-heading p { margin: 0; font-size: .875rem; line-height: 1.5; color: #757284; }
.metric-heading .icon { width: 16px; height: 16px; margin-top: 2px; }
.metric-card > strong { display: inline-block; font-size: 1.875rem; line-height: 1.3; letter-spacing: -.05em; font-weight: 600; margin: 12px 0 4px; font-variant-numeric: tabular-nums; }
.metric-card small { font-size: .75rem; color: #858294; line-height: 1.5; }
.metric-card .policy-label { font-size: 1.5rem; color: #75698c; }
.policy-card[data-enabled="true"] .policy-label { color: #367f68; }
.policy-card[data-enabled="false"] .policy-label { color: #a16c38; }
.table-card { margin-bottom: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 15px; overflow: hidden; box-shadow: 0 3px 8px #22233903; }
.table-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 19px 20px 17px; }
.table-tools h2 { margin: 0 0 3px; font-size: .9375rem; font-weight: 650; letter-spacing: -.02em; }
.table-tools p { margin: 0; color: #858293; font-size: .75rem; }
.sandbox-label { font-size: .75rem; padding: 4px 7px; color: #848093; border: 1px solid #e9e7ee; border-radius: 5px; white-space: nowrap; letter-spacing: .015em; }
.table-wrap { overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .875rem; }
th { padding: 11px 18px; color: #8c899a; background: #fbfbfd; border-block: 1px solid #eeedf3; font-size: .75rem; font-weight: 550; white-space: nowrap; }
td { padding: 15px 18px; border-bottom: 1px solid #f0eff5; color: #6f6b7e; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background-color .2s; }
tbody tr:hover { background: #faf9fe; }
td strong { font-weight: 550; color: #4b475d; }
.account { display: flex; align-items: center; gap: 10px; }
.account strong { display: block; white-space: nowrap; }
.account small { display: block; color: #928b9d; font-size: .75rem; margin-top: 3px; }
.account-avatar { display: grid; place-items: center; flex: 0 0 auto; width: 32px; height: 32px; border-radius: 10px; background: #eee9f8; color: #8b75ad; font-size: .75rem; font-weight: 650; }
.record-id { display: block; margin-top: 5px; color: #9691a4; font: .75rem/1.5 ui-monospace, SFMono-Regular, monospace; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.health { display: inline-block; padding: 3px 8px; font-size: .75rem; line-height: 1.6; border-radius: 6px; font-weight: 500; text-transform: capitalize; background: #f0edf7; color: #746881; white-space: nowrap; }
.health.healthy { color: #378169; background: #ecf6f0; }
.health.pending { background: #fff4e7; color: #a37741; }
.health.revoked { background: #f0f0f4; color: #8b8598; }
.tag-chip { display: inline-block; margin: 2px; padding: 3px 7px; border-radius: 5px; background: #f0ecfc; color: #8268ab; font-size: .75rem; }
.text-button, .ledger-row button { border: 0; padding: 6px 7px; color: #7a68a4; background: transparent; border-radius: 6px; font-size: .875rem; white-space: nowrap; }
.text-button:hover, .ledger-row button:hover { background: #f0eafb; color: #5d40a4; }
.empty-state { padding: 32px 20px; text-align: center; color: #8a839a; line-height: 1.8; font-size: .875rem; }
.empty-state strong { color: #736a85; font-weight: 500; }
.empty-state .empty-symbol { display: grid; place-items: center; width: 40px; height: 40px; background: #f4f0fa; color: #a995c4; border-radius: 12px; margin: 0 auto 12px; }
.workspace-note { display: flex; align-items: flex-start; gap: 8px; color: #9690a3; font-size: .75rem; line-height: 1.8; margin: 20px 0 4px; }
.workspace-note .icon { width: 14px; height: 14px; margin-top: 4px; }
.value-card { border: 1px solid #e7e1f1; border-radius: 12px; background: #f1eef7; margin-top: 20px; }
.value-card summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; list-style: none; cursor: pointer; padding: 16px; font-size: .875rem; color: #7d708f; }
.value-card summary::-webkit-details-marker { display: none; }
.value-card summary > span { display: flex; align-items: center; gap: 10px; }
.value-card summary strong { font-weight: 550; }
.details-affordance { font-size: .75rem; white-space: nowrap; }
.details-affordance .icon { width: 14px; transition: transform .25s var(--ease); }
.value-card[open] .details-affordance .icon { transform: rotate(45deg); }
.value-content { padding: 0 16px 16px; }
.value-content > p { font-size: .875rem; color: #80728c; line-height: 1.7; margin: 0 0 16px; }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.proof-grid > div { padding: 12px; border: 1px solid #e5ddee; background: #ffffff80; border-radius: 8px; }
.proof-grid strong { display: block; font: .75rem ui-monospace, SFMono-Regular, monospace; color: #9d8ab3; margin-bottom: 8px; }
.proof-grid span { display: block; font-size: .875rem; color: #6b5c7c; }
.proof-grid small { display: block; font-size: .75rem; color: #95849f; margin-top: 4px; }
.control-view { min-height: calc(100svh - 113px); padding: 40px max(24px, 5vw) 60px; background: var(--canvas); }
.control-hero, .control-metrics, .control-grid { max-width: 1220px; margin-inline: auto; }
.control-hero { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 30px; }
.control-hero h1 { font-size: clamp(1.875rem, 3vw, 2.5rem); line-height: 1.2; letter-spacing: -.05em; font-weight: 600; margin: 0 0 10px; }
.control-hero p:last-child { color: var(--muted); font-size: .875rem; margin: 0; }
.control-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.control-metrics article, .panel { border: 1px solid var(--line); border-radius: 15px; background: #fff; padding: 22px; box-shadow: 0 2px 6px #22233903; }
.control-metrics p { color: var(--muted); font-size: .875rem; margin: 0 0 12px; }
.control-metrics strong { font-size: 2rem; font-weight: 600; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.control-metrics .small-metric { font-size: 1.4rem; letter-spacing: -.02em; }
.control-metrics small { display: block; font-size: .75rem; line-height: 1.6; margin-top: 6px; color: #85808f; }
.control-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; }
.activity-panel, .proof-panel { grid-column: 1 / -1; }
.panel-heading { margin-bottom: 18px; }
.panel-heading h2 { font-size: 1rem; font-weight: 600; letter-spacing: -.015em; margin: 0; }
.panel-heading .eyebrow { margin-bottom: 6px; }
.ledger-row { display: flex; align-items: center; gap: 12px; border-top: 1px solid #eeedf4; padding: 16px 0; }
.ledger-row > div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ledger-row strong { display: block; font-size: .875rem; font-weight: 550; }
.ledger-row small { display: block; font-size: .75rem; color: #8a8295; margin-top: 5px; }
.ledger-row code { font-size: .75rem; }
.activity-symbol, .check { display: grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; border-radius: 9px; font-size: .875rem; background: #edf5f0; color: #50967a; }
.activity-symbol.denied { background: #fcf0f1; color: #b87580; }
.check-row { display: flex; align-items: flex-start; gap: 12px; padding: 14px 0; border-top: 1px solid #efedf4; }
.check-row strong { display: block; font-size: .875rem; font-weight: 550; }
.check-row small { display: block; color: #8a8295; margin-top: 3px; font-size: .75rem; }
.control-note { margin: 18px 0 0; color: #928498; font-size: .75rem; line-height: 1.8; }
.proof-checklist { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.proof-checklist > div { display: flex; gap: 12px; }
.proof-checklist > div > span { font: .75rem ui-monospace, SFMono-Regular, monospace; color: #ae99c1; margin-top: 4px; }
.proof-checklist p { margin: 0; }
.proof-checklist strong { display: block; font-size: .875rem; font-weight: 550; }
.proof-checklist small { display: block; font-size: .75rem; color: #95859c; margin-top: 5px; }
.toast { position: fixed; z-index: 50; bottom: 24px; left: 50%; width: max-content; max-width: min(500px, calc(100vw - 32px)); transform: translate(-50%, 16px); opacity: 0; pointer-events: none; padding: 14px 20px; border-radius: 12px; background: #262233; border: 1px solid #494056; box-shadow: 0 12px 40px #17122330; color: #e7def2; font-size: .875rem; line-height: 1.6; transition: opacity .25s, transform .3s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.connection-error { padding: 14px 28px; border-bottom: 1px solid #efd6d1; color: #945b52; background: #fff1ed; font-size: .875rem; }
.connection-error a { color: inherit; text-decoration: underline; }

@keyframes enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes metric-flash { from { color: var(--accent); transform: translateY(-3px); } to { transform: translateY(0); } }
.workspace > *, .control-hero, .control-metrics, .control-grid { animation: enter .55s var(--ease) both; }
.workspace > :nth-child(2) { animation-delay: .04s; }
.workspace > :nth-child(3) { animation-delay: .08s; }
.workspace > :nth-child(4) { animation-delay: .12s; }
.workspace > :nth-child(5) { animation-delay: .16s; }
.metric-updated { animation: metric-flash .5s var(--ease); }

@media (min-width: 1600px) { .app-shell { grid-template-columns: 212px minmax(0, 1fr) 462px; } .runtime-shell:has(.operator-panel.closed) { grid-template-columns: 212px minmax(0, 1fr) 0; } .workspace { padding: 40px; } }
@media (max-width: 1220px) { .app-shell { grid-template-columns: 164px minmax(0, 1fr) 392px; } .runtime-shell:has(.operator-panel.closed) { grid-template-columns: 164px minmax(0, 1fr) 0; } .workspace { padding: 26px 20px; } .sidebar { padding-inline: 12px; } .operator-launch kbd { display: none; } .metric-grid { gap: 8px; } .metric-card { padding: 16px 12px; } .metric-heading .icon { display: none; } .page-heading { flex-wrap: wrap; } .page-heading h1 br { display: none; } .page-heading h1 span::before { content: " "; } .details-affordance { font-size: 0; } }
@media (max-width: 1060px) { .sidebar { display: none; } .app-shell { grid-template-columns: minmax(0, 1fr) 388px; } .runtime-shell:has(.operator-panel.closed) { grid-template-columns: minmax(0, 1fr) 0; } .banner-version { display: none; } .codename { display: none; } .metric-heading p { font-size: .875rem; } .control-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } .proof-checklist { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 780px) {
  .topbar { grid-template-columns: 1fr auto; padding: 14px 18px; gap: 14px; }
  .view-switch { grid-row: 2; grid-column: 1 / -1; }
  .topbar .refresh-button { grid-row: 1; grid-column: 2; }
  .demo-banner { padding: 9px 18px; font-size: .75rem; }
  .banner-note { display: none; }
  .app-shell, .runtime-shell:has(.operator-panel.closed) { display: flex; flex-direction: column; height: auto; min-height: 0; overflow: visible; }
  .workspace { order: 2; padding: 26px 18px; overflow: visible; }
  .page-heading { flex-wrap: nowrap; gap: 12px; }
  .page-heading h1 { font-size: 1.875rem; }
  .page-heading h1 br { display: block; }
  .page-heading h1 span::before { content: none; }
  .metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .metric-card small { font-size: .75rem; }
  .metric-card > strong { font-size: 1.625rem; }
  .metric-card .policy-label { font-size: 1.25rem; }
  .control-view { padding: 28px 18px 40px; }
  .control-hero { flex-wrap: wrap; }
  .control-grid { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .sandbox-label { white-space: normal; text-align: right; }
  .table-tools { padding: 17px 16px; }
  th, td { padding: 12px 16px; }
}
@media (max-width: 420px) { .page-heading { flex-wrap: wrap; } .metric-grid { grid-template-columns: 1fr; } .metric-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; } .metric-card > strong { grid-column: 2; grid-row: 1 / 3; margin: 0; } .metric-heading .icon { display: none; } .metric-card small { grid-column: 1; } .control-metrics, .proof-checklist { grid-template-columns: 1fr; } .view-button { padding-inline: 10px; } }

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