:root {
  color-scheme: light;
  --blue: #1859d1;
  --blue-dark: #1044ac;
  --blue-soft: #edf4ff;
  --ink: #18263b;
  --muted: #627188;
  --line: #e3e9f1;
  --surface: #fff;
  --canvas: #f7f9fc;
  --green: #277455;
  --amber: #88601b;
  --red: #ad3b39;
  --radius: 8px;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
[data-public-only] { display: none; }
html[data-public-demo="true"] [data-public-only]:not([hidden]) { display: block; }
html[data-public-demo="true"] [data-local-only],
html[data-public-demo="true"] #welcome,
html[data-public-demo="true"] [data-open-prompt],
html[data-public-demo="true"] #prompt-dialog { display: none !important; }
.public-safety { margin-bottom: 18px; }
.public-safety .helper { margin-top: 6px; }
body { margin: 0; }
body.modal-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .48; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
button, a, input, select, textarea, [tabindex] { outline-offset: 4px; }
:focus-visible { outline: 3px solid #6499f0; }
button { color: inherit; }
button, input, select, textarea { border-radius: 6px; }
input, select, textarea { max-width: 100%; color: var(--ink); background: #fff; border: 1px solid #ced8e6; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea { padding: 10px 12px; min-height: 42px; }
input::placeholder, textarea::placeholder { color: #78869a; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--blue); width: 17px; height: 17px; flex: 0 0 17px; margin: 2px 0; }
textarea { resize: vertical; line-height: 1.7; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); }
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: 29px; line-height: 1.35; letter-spacing: -1.1px; font-weight: 730; }
h2 { font-size: 17px; line-height: 1.45; letter-spacing: -.4px; }
h3 { font-size: 15px; line-height: 1.5; letter-spacing: -.2px; }
ul { padding-left: 20px; }
small { font-size: 12px; }
.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; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 19px; height: 19px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; left: 16px; top: -70px; padding: 10px 18px; background: #fff; border: 2px solid var(--blue); z-index: 100; }
.skip-link:focus { top: 10px; }
.simulation-strip { min-height: 33px; padding: 7px 20px; background: #eef3fa; border-bottom: 1px solid #dfe7f3; color: #4b6485; font-size: 11px; letter-spacing: .1px; display: flex; justify-content: center; align-items: center; gap: 8px; position: sticky; top: 0; z-index: 20; }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); flex-shrink: 0; }
.status-dot.is-stale { background: var(--amber); }
.eyebrow { font-size: 10px; font-weight: 750; letter-spacing: 1.8px; color: var(--blue); margin-bottom: 9px; }
.brand-mark { width: 35px; height: 35px; display: inline-grid; place-items: center; background: var(--blue); color: #fff; font-size: 22px; font-weight: 800; font-style: italic; border-radius: 7px; flex-shrink: 0; }
.demo-label { font-size: 9px; font-weight: 700; letter-spacing: .6px; line-height: 1.5; border: 1px solid #d1dff2; padding: 2px 5px; border-radius: 3px; color: #5677a5; white-space: nowrap; }
.button { border: 1px solid transparent; min-height: 42px; padding: 10px 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 650; font-size: 13px; line-height: 1.5; text-decoration: none; white-space: nowrap; transition: background-color .15s, border-color .15s, box-shadow .15s; }
.button-primary { color: #fff; background: var(--blue); border-color: var(--blue); box-shadow: 0 2px 3px #1859d10b; }
.button-primary:hover:not(:disabled) { background: var(--blue-dark); border-color: var(--blue-dark); }
.button-secondary { color: #40516b; background: #fff; border-color: #d9e1ed; }
.button-secondary:hover:not(:disabled) { background: #f7faff; border-color: #b6c9e5; }
.button-small { min-height: 35px; padding: 7px 11px; font-size: 12px; }
.button-small .icon { width: 16px; height: 16px; }
.text-button { border: 0; background: none; color: var(--blue); display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 5px 2px; font-size: 12px; font-weight: 600; line-height: 1.5; text-decoration: none; }
.text-button:hover:not(:disabled) { text-decoration: underline; text-underline-offset: 4px; }
.text-button .icon { width: 15px; height: 15px; }
.text-button.muted { color: var(--muted); }
.icon-button { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); background: #fff; flex-shrink: 0; }
.icon-button:hover { background: var(--canvas); }
.helper { font-size: 12px; color: var(--muted); line-height: 1.65; }
.notice { padding: 12px 15px; border: 1px solid var(--line); border-radius: 6px; font-size: 12px; line-height: 1.75; overflow-wrap: anywhere; }
.notice-info { color: #3d6090; background: #f3f7fe; border-color: #dde8f9; }
.notice-error { color: #923736; background: #fff6f5; border-color: #eed7d4; }
.notice-warning { color: #785821; background: #fffbf2; border-color: #efe0bb; }
#global-error, #session-warning { margin-bottom: 18px; }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 220px; padding: 36px 24px; border: 1px dashed #d7e1ee; border-radius: var(--radius); background: #fff; grid-column: 1 / -1; }
.empty-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 9px; background: #f0f5fc; color: #7090b9; margin-bottom: 15px; }
.empty-state h3 { margin-bottom: 6px; }
.empty-state p { max-width: 390px; font-size: 12px; color: var(--muted); }
.empty-state .button, .empty-state .text-button { margin-top: 17px; }
.welcome { max-width: 720px; padding: 45px 24px 28px; margin: 0 auto; }
.welcome-brand { display: flex; align-items: center; gap: 12px; justify-content: center; margin-bottom: 30px; }
.welcome-brand strong, .sidebar-brand strong { display: block; font-size: 12px; letter-spacing: .8px; line-height: 1.4; }
.welcome-brand > div > span { font-size: 12px; display: flex; align-items: center; gap: 8px; margin-top: 3px; color: var(--muted); }
.welcome-card { background: #fff; padding: 42px 44px 26px; border: 1px solid #dee6f0; border-radius: 12px; box-shadow: 0 12px 50px #254f8810, 0 2px 5px #254f8804; }
.welcome-card > .eyebrow { margin-bottom: 18px; }
.welcome h1 { font-size: 37px; letter-spacing: -1.5px; line-height: 1.4; }
.welcome-intro { color: var(--muted); font-size: 14px; line-height: 1.85; margin-top: 17px; }
.welcome-divider { height: 1px; background: var(--line); margin: 30px 0 24px; }
.welcome .section-heading h2 { font-size: 15px; }
.role-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0 12px; }
.role-card { padding: 20px 17px; border: 1px solid #dce4ee; text-align: left; background: #fff; border-radius: 7px; position: relative; }
.role-card:hover:not(:disabled) { background: #f7faff; border-color: #87ade6; box-shadow: 0 0 0 1px #87ade6; }
.role-card .role-icon { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 7px; background: var(--blue-soft); color: var(--blue); margin-bottom: 14px; }
.role-card strong { display: block; font-size: 14px; margin-bottom: 5px; }
.role-card p { font-size: 11px; color: var(--muted); }
.role-card > .icon { position: absolute; right: 15px; top: 26px; color: #8b9bb2; width: 16px; }
.welcome-footnote { display: flex; align-items: flex-start; gap: 9px; margin-top: 23px; padding-top: 19px; border-top: 1px solid var(--line); font-size: 11px; line-height: 1.75; color: var(--muted); }
.welcome-footnote .icon { width: 15px; height: 15px; margin-top: 2px; }
.welcome-caption { text-align: center; margin-top: 24px; font-size: 9px; font-weight: 650; color: #8190a3; letter-spacing: 1.5px; }
.welcome-caption span { margin-left: 19px; }
#welcome-error { margin: 12px 0; }
.app-shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: calc(100vh - 33px); }
.sidebar { background: #fff; border-right: 1px solid var(--line); position: sticky; top: 33px; height: calc(100dvh - 33px); padding: 27px 17px 23px; display: flex; flex-direction: column; }
.sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 0 7px; }
.sidebar-brand strong { font-size: 10px; letter-spacing: .7px; }
.sidebar-brand > div > span { font-size: 12px; color: var(--muted); }
.sidebar-brand .brand-mark { width: 32px; height: 32px; font-size: 20px; }
.workspace-label { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 6px; margin: 29px 0; padding: 10px 9px; background: #fafbfd; }
.workspace-initial { width: 27px; height: 28px; display: grid; place-items: center; background: #e9eef7; border: 1px solid #e1e7f0; font-size: 11px; color: #516882; font-weight: 700; border-radius: 4px; }
.workspace-label strong { display: block; font-size: 11px; line-height: 1.5; }
.workspace-label small { display: block; font-size: 9px; color: var(--muted); }
.workspace-label .demo-label { margin-left: auto; font-size: 8px; padding: 1px 3px; }
.nav-label { color: #7e8c9f; font-size: 9px; letter-spacing: 1.6px; font-weight: 700; padding: 0 12px; margin-bottom: 9px; }
.primary-nav { display: flex; flex-direction: column; gap: 5px; }
.nav-item { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; min-height: 44px; padding: 11px 12px; color: #5b6c84; font-size: 13px; font-weight: 550; border: 1px solid transparent; background: transparent; }
.nav-item:hover { background: #f5f8fc; }
.nav-item.is-active { background: var(--blue-soft); color: var(--blue); font-weight: 700; }
.nav-item .icon { width: 18px; height: 18px; }
.nav-count { margin-left: auto; min-width: 19px; padding: 1px 5px; border-radius: 4px; background: #edf1f6; color: #60718a; font-size: 10px; line-height: 1.6; text-align: center; }
.nav-item.is-active .nav-count { background: #dce9ff; color: var(--blue); }
.sidebar-bottom { margin-top: auto; padding: 23px 10px 0; }
.bridge-label { display: flex; align-items: center; gap: 7px; font-size: 10px; font-weight: 600; color: #50617a; }
.sidebar-bottom p { font-size: 11px; line-height: 1.9; color: #7a879b; margin: 10px 0 11px; }
.sidebar-bottom .text-button { font-size: 10px; }
.main-shell { min-width: 0; }
.top-header { min-height: 75px; padding: 15px 34px; border-bottom: 1px solid var(--line); background: #ffffffed; display: flex; gap: 14px; align-items: center; justify-content: space-between; }
.breadcrumb { display: flex; gap: 11px; align-items: center; font-size: 11px; color: #7b889a; white-space: nowrap; }
.breadcrumb strong { color: #43536c; font-weight: 600; }
.breadcrumb > span { color: #bbc5d2; }
.header-actions { display: flex; gap: 17px; align-items: center; }
.actor-chip { display: flex; align-items: center; gap: 8px; padding-left: 17px; border-left: 1px solid var(--line); }
.actor-avatar { width: 29px; height: 29px; display: grid; place-items: center; background: #edf2fa; border: 1px solid #e1e8f3; color: #577299; font-size: 11px; font-weight: 700; border-radius: 50%; }
.actor-chip strong { display: block; font-size: 11px; line-height: 1.5; }
.actor-chip small { display: block; font-size: 9px; color: var(--muted); }
.header-actions > .text-button { font-size: 10px; }
.main-content { max-width: 1530px; padding: 0 34px; margin: 0 auto; min-width: 0; }
.sync-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 10px; color: #76859a; padding: 15px 0 22px; min-height: 56px; }
.sync-bar > div { display: flex; gap: 7px; align-items: center; }
.sync-bar .status-dot { width: 5px; height: 5px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 27px; }
.page-heading > div > p:last-child { color: var(--muted); font-size: 12px; margin-top: 10px; line-height: 1.75; }
.page-heading .eyebrow { margin-bottom: 6px; }
.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 23px; }
.metric-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 19px 20px 17px; }
.metric-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #64758c; font-size: 12px; }
.metric-heading .icon { color: #96a9c4; width: 18px; height: 18px; }
.metric-value { font-size: 31px; line-height: 1.35; letter-spacing: -1px; font-weight: 720; margin: 12px 0 5px; font-variant-numeric: tabular-nums; }
.metric-value small { font-size: 12px; font-weight: 500; letter-spacing: 0; color: #8492a5; margin-left: 5px; }
.metric-note { color: #7a8799; font-size: 10px; }
.bridge-banner { display: flex; align-items: center; gap: 14px; padding: 17px 20px; background: #eef4fc; border: 1px solid #dde8f7; border-radius: var(--radius); margin-bottom: 27px; }
.banner-icon { color: var(--blue); width: 35px; height: 35px; display: grid; place-items: center; background: #fff; border: 1px solid #dfebfb; border-radius: 7px; flex-shrink: 0; }
.bridge-banner strong { font-size: 12px; color: #345580; }
.bridge-banner p { color: #6e83a0; font-size: 11px; line-height: 1.65; margin-top: 3px; }
.bridge-banner > .button { margin-left: auto; flex-shrink: 0; }
.section-heading { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 17px; }
.section-heading p { margin-top: 5px; font-size: 11px; color: var(--muted); }
.section-heading.compact { margin-bottom: 0; }
.heading-count { font-size: 12px; font-weight: 650; color: #7a8da7; margin-left: 6px; }
.request-section-heading { margin-top: 5px; margin-bottom: 16px; }
.segmented-control { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 7px; background: #eff3f8; width: fit-content; margin-bottom: 18px; max-width: 100%; flex-wrap: wrap; }
.segment-button { border: 1px solid transparent; background: none; padding: 6px 11px; border-radius: 4px; color: #687a92; font-size: 11px; font-weight: 600; display: inline-flex; gap: 8px; align-items: center; }
.segment-button.is-active { color: var(--blue); background: #fff; border-color: #e0e6ef; box-shadow: 0 1px 2px #304b7010; }
.segment-button span { opacity: .75; font-size: 10px; }
.request-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.request-card { border: 1px solid var(--line); background: #fff; border-radius: var(--radius); padding: 20px; min-width: 0; display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s; }
.request-card:hover { border-color: #aec5e5; box-shadow: 0 4px 14px #254f8808; }
.card-topline { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.record-id { font-size: 10px; color: #8291a4; letter-spacing: .2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; max-width: 170px; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; padding: 3px 7px; border-radius: 4px; background: #f0f3f7; color: #62718a; font-weight: 600; white-space: nowrap; border: 1px solid #e5eaf1; }
.badge-blue { background: #edf4ff; color: #3869b3; border-color: #dde9fb; }
.badge-green { background: #edf7f1; color: #3b7c59; border-color: #dcece2; }
.badge-amber { background: #fff7e9; color: var(--amber); border-color: #f0e4ca; }
.badge-red { background: #fff1f0; color: var(--red); border-color: #f2dbd8; }
.card-title-button { display: block; border: 0; background: none; padding: 0; text-align: left; font-size: 15px; font-weight: 700; line-height: 1.65; letter-spacing: -.35px; overflow-wrap: anywhere; }
.card-title-button:hover { color: var(--blue); }
.card-excerpt { color: #758299; font-size: 11px; line-height: 1.8; margin: 8px 0 18px; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 39px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: auto; font-size: 10px; color: #79899d; padding-bottom: 14px; }
.card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.card-meta .icon { width: 13px; height: 13px; }
.card-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid #edf0f5; padding-top: 13px; font-size: 10px; color: #64758f; }
.card-footer .text-button { font-size: 10px; }
.assignee { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pending-section { margin-bottom: 27px; }
.operation-list { display: grid; gap: 9px; }
.operation-card { display: flex; align-items: flex-start; gap: 12px; padding: 14px 17px; border: 1px solid #e6e2d9; background: #fffdfa; border-radius: 6px; }
.operation-card.is-verified { background: #fbfdfc; border-color: var(--line); }
.operation-card.is-conflict { background: #fff9f8; border-color: #eddbd8; }
.operation-main { min-width: 0; flex: 1; }
.operation-title { font-size: 12px; font-weight: 650; overflow-wrap: anywhere; }
.operation-meta { display: flex; flex-wrap: wrap; gap: 3px 13px; font-size: 10px; color: #7e8b9d; margin-top: 4px; overflow-wrap: anywhere; }
.operation-note { font-size: 10px; color: #937346; margin-top: 4px; }
.operation-card.is-conflict .operation-note { color: #a84e44; }
.operation-card.is-verified .operation-note { color: #58806a; }
.operation-card > .badge { flex-shrink: 0; margin-top: 1px; }
.content-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 22px; }
.card-heading { padding: 22px 23px 17px; display: flex; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--line); }
.card-heading h2 { font-size: 15px; }
.card-heading p { font-size: 11px; color: var(--muted); margin-top: 6px; }
.evidence-toolbar { padding: 20px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.search-field { position: relative; flex: 1; max-width: 460px; }
.search-field > .icon { position: absolute; left: 12px; top: 12px; width: 17px; height: 17px; color: #8c9bb0; }
.search-field input { width: 100%; padding-left: 38px !important; font-size: 12px; background: #fcfdff; }
.filter-field { display: flex; gap: 10px; align-items: center; }
.filter-field label { color: var(--muted); font-size: 11px; white-space: nowrap; }
.filter-field select { font-size: 12px; min-width: 130px; }
.selection-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 20px; background: #f8fafd; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 11px; color: #6b7d96; }
.selection-bar > div { display: flex; align-items: center; gap: 14px; }
#selection-count { padding: 0 5px; background: #ffffff26; border-radius: 3px; }
.evidence-row { padding: 18px 21px; display: flex; gap: 13px; align-items: flex-start; border-bottom: 1px solid #edf1f6; }
.evidence-row:last-child { border-bottom: 0; }
.evidence-row.is-selected { background: #f6f9ff; }
.evidence-row > input { margin-top: 5px; }
.evidence-main { flex: 1; min-width: 0; }
.evidence-title { font-size: 13px; font-weight: 650; cursor: pointer; overflow-wrap: anywhere; line-height: 1.7; }
.evidence-subline { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 10px; font-size: 10px; color: #7c8ca2; margin-top: 6px; overflow-wrap: anywhere; }
.evidence-subline .record-id { max-width: 230px; }
.evidence-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.evidence-row > .text-button { margin-top: 2px; flex-shrink: 0; font-size: 10px; }
.evidence-list > .empty-state { border: 0; border-radius: 0; }
.evidence-footnote { margin-top: -8px; }
#review-role-note { margin-bottom: 24px; }
.production-boundary { display: flex; gap: 15px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); background: #f0f3f7; padding: 20px; margin-top: 26px; }
.production-boundary > .icon { color: #8696ac; }
.production-boundary strong { font-size: 12px; color: #546680; }
.production-boundary p { font-size: 11px; color: #78869b; margin-top: 5px; }
.production-boundary > .button { margin-left: auto; }
.workflow-steps { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 24px; }
.workflow-steps > div { position: relative; padding: 19px 20px 19px 60px; border-right: 1px solid var(--line); }
.workflow-steps > div:last-child { border-right: 0; }
.workflow-steps span { position: absolute; left: 20px; top: 20px; font-size: 11px; font-weight: 750; color: #7192bf; border-bottom: 2px solid #d7e5f7; padding-bottom: 4px; }
.workflow-steps strong { display: block; font-size: 12px; }
.workflow-steps small { display: block; color: #7e8ea4; font-size: 10px; margin-top: 4px; }
.full-operation-list { padding: 18px 22px 22px; }
.full-operation-list > .empty-state { min-height: 160px; }
.execution-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.snapshot-list, .collection-list { padding: 8px 23px 16px; }
.snapshot-row, .collection-row { display: flex; justify-content: space-between; gap: 15px; padding: 14px 0; border-bottom: 1px solid #edf1f6; }
.snapshot-row:last-child, .collection-row:last-child { border-bottom: 0; }
.snapshot-row strong, .collection-row dt { font-size: 12px; font-weight: 550; }
.snapshot-row time { display: block; font-size: 10px; color: #7b8ca2; margin-top: 2px; }
.snapshot-row .text-button { font-size: 10px; }
.collection-list dl { margin: 0; }
.collection-row dd { font-size: 13px; font-weight: 700; margin: 0; font-variant-numeric: tabular-nums; }
.collection-row.is-plan { color: #75859b; }
.collection-row.is-plan dd { font-weight: 500; }
.boundary-card { border: 1px solid #dce6f4; border-radius: var(--radius); background: #f0f5fc; padding: 24px; }
.boundary-card h2 { font-size: 15px; }
.boundary-card ul { font-size: 11px; line-height: 1.95; color: #637894; margin: 13px 0 10px; }
.page-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 20px 0 25px; display: flex; justify-content: space-between; gap: 16px; color: #8593a7; font-size: 9px; }
.dialog { padding: 0; border: 1px solid #d9e1ec; border-radius: 11px; width: min(680px, calc(100% - 32px)); max-height: calc(100dvh - 50px); color: var(--ink); box-shadow: 0 30px 110px #122b4e33; overflow: auto; background: #fff; }
.dialog::backdrop { background: #162d4d66; backdrop-filter: blur(3px); }
.dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 23px 27px 20px; border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 2; }
.dialog-header h2 { font-size: 19px; overflow-wrap: anywhere; }
.dialog-header .eyebrow { font-size: 9px; margin-bottom: 5px; }
.dialog-body { padding: 24px 27px; }
.dialog-body > .notice { margin-bottom: 22px; }
.dialog-footer { padding: 16px 27px; background: #f8fafd; border-top: 1px solid var(--line); display: flex; gap: 15px; align-items: center; justify-content: space-between; }
.dialog-footer > div { display: flex; gap: 8px; }
.dialog-footer > .helper { font-size: 10px; }
.field { margin-bottom: 22px; }
.field > label, .field-heading label, .dialog-body > label { font-size: 12px; font-weight: 650; display: block; margin-bottom: 8px; }
.field-heading { display: flex; align-items: baseline; gap: 10px; justify-content: space-between; }
.field input:not([type="radio"]):not([type="checkbox"]), .field textarea { display: block; width: 100%; font-size: 13px; }
.required { font-size: 9px; color: #7c8ba1; margin-left: 5px; font-weight: 450; }
.character-count { color: #8a97aa; font-size: 10px; }
.evidence-picker { border: 0; margin: 0 0 17px; padding: 0; min-width: 0; }
.evidence-picker legend { font-size: 12px; font-weight: 650; margin-bottom: 6px; }
.picker-list { max-height: 246px; overflow-y: auto; border: 1px solid var(--line); border-radius: 6px; margin: 11px 0 6px; }
.picker-row { display: flex; align-items: flex-start; gap: 10px; padding: 11px 13px; border-bottom: 1px solid #edf1f6; cursor: pointer; }
.picker-row:last-child { border-bottom: 0; }
.picker-row:has(input:checked) { background: #f1f6ff; }
.picker-row strong { display: block; font-size: 11px; font-weight: 550; overflow-wrap: anywhere; }
.picker-row small { display: block; font-size: 9px; color: #7c8ca2; overflow-wrap: anywhere; }
.picker-list > .helper { padding: 18px; }
.unavailable-selection { padding: 8px 13px; color: var(--red); font-size: 11px; background: #fff7f6; }
.detail-dialog { width: min(870px, calc(100% - 32px)); }
.detail-topline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.detail-topline .text-button { margin-left: auto; }
.detail-properties { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 22px; padding: 17px; border: 1px solid var(--line); border-radius: 6px; background: #f9fbfe; }
.detail-properties dt { font-size: 10px; color: #8493a8; margin-bottom: 4px; }
.detail-properties dd { margin: 0; font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.detail-section { margin-bottom: 25px; }
.detail-section > h3 { margin-bottom: 11px; }
.instructions-text { font-size: 12px; line-height: 1.85; color: #61728a; white-space: pre-wrap; overflow-wrap: anywhere; }
.draft-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.version-control { display: flex; gap: 7px; align-items: center; }
.version-control label { font-size: 10px; color: #7b8da4; }
.version-control select { min-height: 32px; padding: 4px 28px 4px 9px; font-size: 11px; }
.draft-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; font-size: 10px; color: #7588a1; margin: 0 0 11px; }
.draft-body { white-space: pre-wrap; overflow-wrap: anywhere; word-break: normal; font-family: inherit; font-size: 12px; line-height: 1.95; border: 1px solid var(--line); border-radius: 6px; background: #fafcfe; padding: 21px; max-height: 430px; overflow: auto; margin: 0; }
.hash-line { margin-top: 9px; font-size: 9px; color: #8090a7; overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.reference-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.reference-list li { display: flex; align-items: center; justify-content: space-between; gap: 13px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 5px; font-size: 11px; overflow-wrap: anywhere; }
.reference-list li > div { min-width: 0; }
.reference-list small { display: block; color: #7c8da5; font-size: 9px; overflow-wrap: anywhere; }
.reference-list .text-button { white-space: nowrap; flex-shrink: 0; font-size: 10px; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline-item { position: relative; margin-left: 5px; padding: 0 0 19px 21px; border-left: 1px solid #dfe7f2; }
.timeline-item::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 2px solid #fff; background: #91aed6; position: absolute; left: -4px; top: 6px; }
.timeline-item:last-child { padding-bottom: 0; border-left-color: transparent; }
.timeline-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 11px; }
.timeline-comment { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; color: #667991; margin-top: 7px; line-height: 1.85; }
.timeline-meta { margin-top: 5px; font-size: 9px; color: #8191a7; overflow-wrap: anywhere; }
.review-form-section { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 6px; }
.review-form-section > .helper { margin: -4px 0 17px; }
.decision-options { border: 0; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.decision-options legend { font-size: 12px; font-weight: 650; margin-bottom: 9px; }
.decision-options label { border: 1px solid var(--line); border-radius: 5px; padding: 10px 12px; display: flex; align-items: center; gap: 7px; font-size: 11px; cursor: pointer; }
.decision-options label:has(input:checked) { background: #f0f6ff; border-color: #a9c6ef; color: var(--blue); }
.form-actions { display: flex; justify-content: flex-end; margin-top: 17px; }
#review-form-error { margin-top: 15px; }
#detail-update-note .text-button { display: block; margin-top: 5px; }
.detail-production { padding-top: 18px; margin-top: 22px; border-top: 1px solid var(--line); display: flex; gap: 13px; align-items: center; }
.detail-production .helper { font-size: 10px; }
.prompt-text { display: block; width: 100%; font-size: 12px; margin: 0 0 10px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: #f9fbfe; }
.compact-dialog { width: min(460px, calc(100% - 32px)); }
.compact-dialog .dialog-body > p { font-size: 13px; line-height: 1.8; }
.compact-dialog .dialog-body > .helper { font-size: 11px; margin-top: 12px; }
#logout-error { margin-top: 17px; margin-bottom: 0; }
.toast-region { position: fixed; bottom: 24px; right: 24px; z-index: 40; display: grid; gap: 10px; width: min(410px, calc(100vw - 32px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: flex-start; gap: 11px; padding: 17px; background: #fff; border: 1px solid #cad9ee; border-left: 3px solid var(--blue); box-shadow: 0 8px 30px #1832551c; border-radius: 7px; animation: toast-in .2s ease-out; }
.toast > div { flex: 1; }
.toast strong { font-size: 12px; }
.toast p { font-size: 11px; color: #70819a; margin-top: 4px; }
.toast .icon-button { border: 0; width: 24px; height: 24px; }
.toast-error { border-left-color: var(--red); }
@keyframes toast-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 1550px) {
  .main-content { padding: 0 45px; }
  .top-header { padding-left: 45px; padding-right: 45px; }
  .request-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  .app-shell { grid-template-columns: 210px minmax(0, 1fr); }
  .sidebar { padding-left: 12px; padding-right: 12px; }
  .main-content { padding: 0 24px; }
  .top-header { padding: 14px 24px; }
  .breadcrumb { display: none; }
  .header-actions { width: 100%; justify-content: flex-end; }
  .request-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-card { padding: 15px; }
  .metric-heading { font-size: 11px; }
  .metric-heading .icon { display: none; }
  .bridge-banner { flex-wrap: wrap; }
  .bridge-banner > div:nth-child(2) { flex: 1; }
  .bridge-banner > .button { margin-left: 49px; }
  .execution-columns { grid-template-columns: 1fr; gap: 0; }
  .production-boundary { flex-wrap: wrap; }
  .production-boundary > div { flex: 1; }
  .workflow-steps > div { padding: 17px 13px; }
  .workflow-steps span { position: static; display: inline-block; margin-bottom: 9px; }
}
@media (max-width: 800px) {
  :root { font-size: 13px; }
  .simulation-strip { font-size: 10px; padding: 7px 8px; min-height: 31px; }
  .app-shell { display: block; }
  .sidebar { height: auto; position: sticky; top: 31px; z-index: 15; display: block; padding: 11px 16px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar-brand { padding: 0 0 10px; }
  .sidebar-brand .brand-mark { width: 27px; height: 27px; font-size: 18px; }
  .sidebar-brand > div { display: flex; align-items: center; gap: 12px; }
  .sidebar-brand strong { font-size: 9px; }
  .sidebar-brand > div > span { font-size: 11px; }
  .workspace-label, .nav-label, .sidebar-bottom { display: none; }
  .primary-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding-bottom: 9px; }
  .nav-item { justify-content: center; padding: 9px 5px; min-height: 38px; gap: 6px; font-size: 11px; white-space: nowrap; }
  .nav-item .icon { width: 15px; height: 15px; }
  .nav-count { margin-left: 0; min-width: 15px; padding: 0 4px; font-size: 9px; }
  .top-header { min-height: 62px; padding: 12px 20px; }
  .header-actions { gap: 12px; justify-content: space-between; }
  .actor-chip { padding-left: 12px; margin-left: auto; }
  .actor-chip strong { font-size: 10px; }
  .actor-chip small { font-size: 9px; }
  .actor-avatar { width: 26px; height: 26px; }
  .main-content { padding: 0 20px; }
  .sync-bar { font-size: 9px; align-items: flex-start; padding: 14px 0 19px; }
  .sync-bar > span { text-align: right; }
  h1 { font-size: 25px; }
  .page-heading { align-items: flex-start; margin-bottom: 22px; }
  .page-heading > .button { margin-top: 20px; }
  .page-heading > div > p:last-child { max-width: 440px; font-size: 11px; }
  .metrics-grid { gap: 10px; }
  .metric-card { padding: 14px; }
  .metric-value { font-size: 27px; }
  .metric-note { font-size: 9px; }
  .bridge-banner > .button { margin-left: auto; }
  .request-card { padding: 17px; }
  .evidence-toolbar { padding: 16px; }
  .selection-bar { padding: 11px 16px; }
  .evidence-row { padding: 16px; }
  .dialog { max-height: calc(100dvh - 28px); }
  .dialog-header { padding: 20px; }
  .dialog-body { padding: 21px 20px; }
  .dialog-footer { padding: 15px 20px; }
  .page-footer { margin-top: 30px; }
}
@media (max-width: 540px) {
  .welcome { padding: 30px 16px 20px; }
  .welcome-brand { margin-bottom: 23px; }
  .welcome-card { padding: 30px 24px 22px; }
  .welcome h1 { font-size: 30px; }
  .welcome-intro { font-size: 12px; }
  .welcome-divider { margin: 23px 0; }
  .role-choices { grid-template-columns: 1fr; gap: 9px; }
  .role-card { padding: 15px 42px 15px 61px; min-height: 77px; }
  .role-card .role-icon { position: absolute; left: 14px; top: 20px; width: 32px; height: 32px; }
  .role-card strong { font-size: 13px; }
  .role-card > .icon { top: 29px; }
  .welcome-caption { font-size: 8px; letter-spacing: .9px; }
  .welcome-caption span { margin-left: 12px; }
  .desktop-break { display: none; }
  .sidebar { padding-left: 10px; padding-right: 10px; }
  .nav-item { font-size: 10px; gap: 5px; }
  .nav-item .icon { width: 14px; height: 14px; }
  .nav-count { display: none; }
  .top-header { padding: 11px 15px; }
  .header-actions { gap: 9px; flex-wrap: wrap; }
  #refresh-state { font-size: 10px; padding: 7px 8px; }
  #refresh-state .icon { width: 13px; }
  .actor-chip { gap: 5px; padding-left: 8px; }
  .actor-avatar { display: none; }
  .header-actions > .text-button { font-size: 9px; }
  .main-content { padding: 0 16px; }
  .sync-bar { flex-direction: column; gap: 4px; }
  .sync-bar > span { text-align: left; padding-left: 12px; }
  .page-heading { flex-wrap: wrap; gap: 15px; }
  .page-heading > .button { margin-top: 0; }
  .page-heading > div > p:last-child { margin-top: 8px; }
  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-heading .icon { display: block; width: 15px; }
  .metric-value { margin-top: 8px; font-size: 28px; }
  .bridge-banner { padding: 15px; gap: 10px; }
  .banner-icon { display: none; }
  .bridge-banner > div:nth-child(2) { flex-basis: 100%; }
  .bridge-banner > .button { margin-left: 0; }
  .bridge-banner strong { font-size: 11px; }
  .bridge-banner p { font-size: 10px; }
  .request-grid { grid-template-columns: 1fr; }
  .request-card { padding: 18px; }
  .segmented-control { gap: 2px; }
  .segment-button { font-size: 10px; padding: 6px 7px; gap: 4px; }
  .section-heading { gap: 10px; }
  .section-heading h2 { font-size: 15px; }
  .section-heading .text-button { font-size: 10px; }
  .operation-card { padding: 12px; gap: 8px; }
  .operation-title { font-size: 11px; }
  .operation-card > .badge { font-size: 9px; padding: 3px 5px; }
  .evidence-toolbar { flex-wrap: wrap; gap: 11px; }
  .search-field { min-width: 100%; max-width: none; }
  .filter-field { width: 100%; justify-content: space-between; }
  .filter-field select { flex: 1; max-width: 220px; }
  .selection-bar { flex-wrap: wrap; gap: 9px; }
  .selection-bar > div { width: 100%; justify-content: space-between; }
  .evidence-row { gap: 10px; flex-wrap: wrap; }
  .evidence-row > .text-button { margin-left: 27px; }
  .evidence-main { flex-basis: calc(100% - 30px); }
  .evidence-title { font-size: 12px; }
  .workflow-steps { grid-template-columns: 1fr; }
  .workflow-steps > div { border-right: 0; border-bottom: 1px solid var(--line); padding: 15px 15px 15px 55px; }
  .workflow-steps > div:last-child { border-bottom: 0; }
  .workflow-steps span { position: absolute; left: 17px; top: 17px; }
  .card-heading { padding: 19px 18px 15px; }
  .full-operation-list { padding: 14px; }
  .snapshot-list, .collection-list { padding-left: 18px; padding-right: 18px; }
  .production-boundary { padding: 17px; gap: 10px; }
  .production-boundary > .button { margin-left: 29px; }
  .boundary-card { padding: 20px; }
  .page-footer { flex-direction: column; gap: 5px; font-size: 9px; }
  .dialog { width: calc(100% - 20px); border-radius: 8px; }
  .dialog-header, .dialog-body { padding: 19px 17px; }
  .dialog-header h2 { font-size: 17px; }
  .dialog-footer { padding: 14px 17px; flex-wrap: wrap; gap: 8px; }
  .dialog-footer > .helper { width: 100%; }
  .dialog-footer > div { width: 100%; justify-content: flex-end; }
  .dialog-footer .button { font-size: 11px; padding: 9px 12px; }
  .detail-properties { grid-template-columns: 1fr 1fr; padding: 14px; }
  .draft-heading { flex-wrap: wrap; }
  .draft-body { padding: 16px; font-size: 11px; }
  .decision-options { flex-direction: column; }
  .detail-production { flex-direction: column; align-items: flex-start; }
  .toast-region { bottom: 16px; right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
