:root {
  --bg: #f7f8fa;
  --panel: #fff;
  --panel-soft: #f7f8fa;
  --text: #25292e;
  --muted: #7b818b;
  --line: #e8eaee;
  --brand: #e93952;
  --brand-dark: #bd2b43;
  --soft: #fdf0f2;
  --green: #238475;
  --green-bg: #eaf5f1;
  --shadow: none;
  color-scheme: light;
}
body { background: var(--bg); font-size: 14px; font-weight: 400; }
h1, h2, h3, b, strong { font-weight: 600; }
h1 { font-size: 27px; }
h2 { font-size: 18px; }
.app-shell { display: grid; grid-template-columns: 216px minmax(0, 1fr); grid-template-rows: 64px minmax(0, 1fr); grid-template-areas: "sidebar header" "sidebar content"; min-height: 100vh; }
.workspace-sidebar { grid-area: sidebar; position: sticky; top: 0; height: 100vh; border-right: 1px solid var(--line); background: var(--panel); z-index: 10; }
.nav-tabs { display: flex; flex-direction: column; flex-wrap: nowrap; height: 100%; padding: 0 16px 18px; margin: 0; border: 0; border-radius: 0; gap: 0; box-shadow: none; overflow-y: auto; }
.nav-tabs a { display: flex; align-items: center; flex-shrink: 0; gap: 11px; min-height: 42px; padding: 10px 12px; margin: 3px 0; border: 0; border-radius: 6px; font-size: 13px; font-weight: 500; color: #777d86; text-align: left; }
.nav-tabs svg { width: 18px; height: 18px; flex-shrink: 0; }
.nav-tabs a:hover { background: #f6f7f9; color: var(--text); }
.nav-tabs a.active { color: var(--brand-dark); background: var(--soft); font-weight: 600; }
.nav-tabs a.workspace-logo { padding: 0 8px; height: 64px; margin: 0 -2px 22px; color: var(--text); gap: 8px; }
.workspace-logo b { font-size: 18px; white-space: nowrap; }
.workspace-logo small { color: var(--muted); font-size: 10px; border: 1px solid var(--line); border-radius: 4px; padding: 0 3px; }
.workspace-logomark { position: relative; display: grid; place-items: center; width: 27px; height: 27px; background: var(--brand); color: white; border-radius: 7px; font-size: 22px; font-weight: 700; }
.workspace-logomark > span { width: 4px; height: 4px; border-radius: 1px; background: white; position: absolute; right: 5px; bottom: 6px; }
.workspace-account { display: flex; gap: 10px; align-items: center; padding: 12px 8px; border-block: 1px solid var(--line); margin-bottom: 24px; }
.account-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0; background: #f2eee9; color: #8a7260; font-size: 16px; }
.workspace-account > div { min-width: 0; flex: 1; }
.workspace-account b { display: block; font-size: 13px; }
.workspace-account small { color: #989da5; font-size: 11px; }
.account-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.nav-group-label { padding: 0 12px 8px; font-size: 10px; color: #a0a5ac; }
.management-label { padding-top: 32px; }
.workspace-side-status { display: flex; align-items: center; gap: 8px; padding: 14px 6px 0; margin-top: auto; color: var(--muted); font-size: 11px; }
.workspace-side-status a { padding: 0; min-height: 20px; margin-left: auto; }
.workspace-side-status svg { width: 14px; height: 14px; }
.topbar { grid-area: header; position: sticky; top: 0; height: 64px; padding: 0 32px; display: flex; flex-direction: row; align-items: center; justify-content: space-between; background: #fff; backdrop-filter: none; border-bottom: 1px solid var(--line); z-index: 8; }
.workspace-breadcrumb { display: flex; align-items: center; gap: 12px; font-size: 12px; min-width: 0; }
.workspace-breadcrumb a { color: #9196a0; text-decoration: none; }
.workspace-breadcrumb > svg { width: 13px; height: 13px; color: #b2b6bf; }
.workspace-breadcrumb b { color: #4e5560; white-space: nowrap; }
.header-tools { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.workspace-updated { color: #969ca5; font-size: 11px; }
.icon-btn { display: inline-flex; justify-content: center; align-items: center; width: 32px; height: 32px; min-width: 32px; padding: 0; border: 1px solid var(--line); background: #fff; border-radius: 6px; color: #737c88; cursor: pointer; text-decoration: none; }
.icon-btn:hover { color: var(--text); background: var(--panel-soft); }
.icon-btn svg { width: 15px; height: 15px; }
.ai-assistant { display: flex; }
.ai-fab { display: flex; align-items: center; gap: 6px; padding: 6px 10px; height: 32px; color: #737c88; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 11px; font-weight: 500; }
.ai-fab svg { width: 15px; height: 15px; }
main { grid-area: content; min-width: 0; width: 100%; max-width: 1440px; margin: 0 auto; padding: 28px 32px 36px; }
#app { min-width: 0; }
.ops-heading { padding: 0; margin-bottom: 24px; align-items: center; }
.ops-heading h1 { font-size: 27px; margin: 6px 0 8px; }
.ops-heading .note { font-size: 12px; }
.workspace-eyebrow { font-size: 11px; color: #969ba5; }
.workspace-eyebrow > span { padding: 0 6px; color: #c1c4ca; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 34px; padding: 8px 14px; border-radius: 6px; font-size: 12px; font-weight: 500; box-shadow: none; }
.btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.btn.ghost { background: white; color: #646e7c; border-color: #e3e6eb; }
.btn.secondary { background: #fff; color: var(--brand-dark); border: 1px solid #e9d7dc; }
.tag { background: transparent; color: #9299a2; font-size: 10px; font-weight: 500; padding: 0; border-radius: 0; }
.pill { padding: 3px 8px; font-size: 10px; font-weight: 500; border-radius: 4px; background: #f6f7f9; border-color: transparent; white-space: nowrap; }
.pill.danger-pill, .danger-pill { background: #fff4e8; color: #a6783b; }
.pill.ok-pill { color: var(--green); background: var(--green-bg); }
.workspace-metrics { padding: 18px 0 20px; border-block: 1px solid var(--line); }
.workspace-metrics-caption { display: flex; justify-content: space-between; color: #707a87; font-size: 11px; margin-bottom: 16px; }
.workspace-metrics-caption small { font-size: 10px; color: #aaaeb6; }
.workspace-metric-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.workspace-metric-grid > div { padding: 0 20px; border-right: 1px solid var(--line); }
.workspace-metric-grid > div:first-child { padding-left: 0; }
.workspace-metric-grid > div:last-child { border: 0; }
.workspace-metric-grid span { display: flex; gap: 8px; align-items: center; color: #8b929c; font-size: 11px; }
.workspace-metric-grid small { font-size: 9px; color: #bec2c9; }
.workspace-metric-grid strong { display: block; color: #333a44; font-size: 25px; margin-top: 9px; font-variant-numeric: tabular-nums; line-height: 1.2; }
.ops-pipeline { margin: 24px 0 26px; border: 0; gap: 0; }
.ops-pipeline li { border: 0; min-width: 0; position: relative; }
.ops-pipeline li:not(:last-child)::after { content: ""; height: 1px; width: 18px; background: #dce1e8; position: absolute; right: 12px; top: 12px; }
.ops-pipeline a { padding: 0 30px 0 0; gap: 5px; }
.ops-pipeline a:hover { background: transparent; }
.ops-pipeline span { color: #9aa2ae; font-size: 10px; }
.ops-pipeline strong { font-size: 11px; color: #626d7c; font-weight: 500; }
.workspace-daily-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); border-block: 1px solid var(--line); }
.ops-focus { display: flex; flex-direction: column; gap: 18px; padding: 22px 26px 22px 0; border-bottom: 0; }
.workspace-section-label { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 26px; }
.workspace-section-label > span:first-child { display: flex; gap: 7px; align-items: center; color: #667282; font-size: 11px; }
.workspace-section-label svg { width: 14px; height: 14px; color: #8b96a6; }
.workspace-section-label small { color: #a0a7b2; font-size: 10px; }
.workspace-topic-kind { font-size: 10px; color: var(--green); }
.ops-focus h2 { font-size: 21px; line-height: 1.5; margin: 6px 0 10px; max-width: 480px; }
.ops-focus p { font-size: 12px; line-height: 1.8; margin-bottom: 22px; max-width: 470px; }
.workspace-focus-actions { display: flex; align-items: center; gap: 16px; }
.workspace-focus-actions > span { font-size: 10px; color: #a3a9b2; }
.workspace-gate-progress { display: flex; gap: 9px; align-items: center; font-size: 10px; color: #a1a8b1; margin-top: 6px; }
.workspace-gate-progress progress { width: 96px; height: 3px; appearance: none; border: 0; background: #e4e8ed; border-radius: 3px; }
.workspace-gate-progress progress::-webkit-progress-bar { background: #e4e8ed; border-radius: 3px; }
.workspace-gate-progress progress::-webkit-progress-value { background: #71a99a; border-radius: 3px; }
.workspace-gate-progress progress::-moz-progress-bar { background: #71a99a; }
.workspace-gate-progress b { font-weight: 400; color: #8c939f; }
.workspace-tasks { min-width: 0; padding: 22px 0 22px 26px; border-left: 1px solid var(--line); }
.workspace-tasks > a { display: grid; grid-template-columns: 26px minmax(0, 1fr) 12px; gap: 10px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.workspace-tasks > a:last-child { border: 0; padding-bottom: 0; }
.workspace-tasks > a > svg:first-child { width: 17px; height: 17px; color: #7b8c9b; }
.workspace-tasks > a > svg:last-child { width: 12px; height: 12px; color: #aab1ba; }
.workspace-tasks b { font-size: 12px; color: #505b6a; }
.workspace-tasks p { font-size: 11px; color: #9aa1ad; margin-top: 5px; overflow-wrap: anywhere; }
.workspace-queue-section { padding: 25px 0 0; }
.workspace-queue-section .section-row { align-items: center; }
.workspace-queue-section h2 { font-size: 16px; margin-bottom: 6px; }
.workspace-queue-section h2 small { font-size: 10px; color: #9da6b3; background: #e9edf2; padding: 1px 5px; margin-left: 7px; border-radius: 3px; vertical-align: middle; }
.workspace-queue-section .note { font-size: 11px; }
.workspace-text-link { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; text-decoration: none; color: #838f9f; }
.workspace-text-link svg { width: 13px; height: 13px; }
.workspace-queue-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 0 14px; }
.workspace-segments { display: inline-flex; padding: 3px; background: #eceff3; border-radius: 5px; gap: 2px; }
.workspace-segments button { border: 0; padding: 5px 11px; border-radius: 3px; background: transparent; color: #959daa; font-size: 11px; cursor: pointer; white-space: nowrap; }
.workspace-segments button.active { background: #fff; color: #535e6d; box-shadow: 0 1px 2px #1d27350a; }
.workspace-search { width: 190px; position: relative; }
.workspace-search svg { position: absolute; left: 9px; top: 9px; width: 13px; height: 13px; color: #a1aab7; }
.workspace-search input { width: 100%; height: 31px; border: 1px solid #e3e7ed; border-radius: 5px; background: transparent; color: #647283; padding: 6px 10px 6px 29px; font-size: 11px; }
.workspace-queue-heading, .workspace-queue-section .ops-queue article { display: grid; grid-template-columns: minmax(0, 1fr) 100px 50px; gap: 16px; align-items: center; }
.workspace-queue-heading { border-block: 1px solid var(--line); padding: 10px 8px; font-size: 10px; color: #9aa2ae; background: #f1f3f6; }
.workspace-queue-section .ops-queue article { padding: 18px 8px; }
.workspace-queue-section .ops-queue article[hidden], [hidden] { display: none !important; }
.workspace-queue-topic { display: flex; gap: 11px; min-width: 0; align-items: center; }
.workspace-file-icon { display: grid; place-items: center; width: 32px; height: 36px; border: 1px solid #e3e8ef; background: #f2f5f8; border-radius: 4px; color: #8a9bb0; flex-shrink: 0; }
.workspace-file-icon svg { width: 15px; height: 15px; }
.workspace-queue-topic h3 { font-size: 12px; line-height: 1.6; }
.workspace-queue-topic h3 a { text-decoration: none; }
.workspace-queue-topic p { color: #a1a8b3; font-size: 10px !important; }
.ops-two { gap: 32px; padding: 22px 0; }
.ops-two h2 { font-size: 13px; margin-bottom: 9px; }
.ops-two p { font-size: 11px; line-height: 1.9; color: #8993a1; }
.ops-two a { font-size: 11px; color: #7e8da0; }
.ops-local { padding: 12px 0; margin: 0; font-size: 10px; border-top: 0; }
.ops-local > span { display: flex; gap: 6px; align-items: center; }
.ops-local > span svg { width: 12px; height: 12px; }
.ops-local .toolbar { gap: 7px; }
.ops-feedback:empty { display: none; }
.ops-diagnostics { margin-top: 0; }
.ops-diagnostics > summary { font-size: 11px; color: #8e98a6; font-weight: 400; }
.hero h1 { font-size: 25px; }
.hero .note { font-size: 12px; }
.panel h2 { font-size: 18px; }
.panel .card { box-shadow: none; }
.ops-editor { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 24px; gap: 28px; }
.ops-editor h2 { font-size: 16px; }
.ops-editor textarea, .ops-editor input { border-color: #e1e5eb; border-radius: 5px; line-height: 1.7; font-size: 12px; }
.ops-editor textarea.ops-body { min-height: 680px; padding: 22px; font-size: 13px; line-height: 2; background: #fff; }
.field-label { font-size: 11px; color: #7e8998; scroll-margin-top: 90px; }
.field-label select { font-size: 12px; padding: 10px 12px; }
.ops-editor .check-stack { font-size: 12px; }
.ops-editor .check-stack label { display: flex; gap: 6px; font-size: 11px; }
.ops-editor aside { padding-left: 28px; }
.ops-editor aside > .note { font-size: 11px; line-height: 1.8; }
.ops-gates > div { font-size: 10px; }
.ops-gates b { font-size: 10px; }
.ops-form, .ops-review-windows { margin-top: 18px; }
.ops-post .tag { white-space: nowrap; }
.auth-card { box-shadow: 0 12px 35px #20283206; border-color: #e5e8ed; }
.auth-card h1 { font-size: 22px; }
.workspace-brand-profile { display: flex; gap: 16px; align-items: center; border-block: 1px solid var(--line); padding: 24px 0; }
.workspace-brand-profile .account-avatar { width: 48px; height: 48px; font-size: 22px; }
.workspace-brand-profile h2 { margin-bottom: 6px; }
.workspace-brand-details { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; padding: 28px 0; }
.workspace-brand-details dl { margin: 0; }
.workspace-brand-details dl > div { padding-bottom: 24px; }
.workspace-brand-details dt { font-size: 11px; color: #9ba3af; margin-bottom: 8px; }
.workspace-brand-details dd { margin: 0; font-size: 13px; color: #566271; line-height: 1.9; }
.workspace-brand-details h2 { font-size: 14px; }
.workspace-brand-details ul { list-style: none; padding: 12px 0 0; margin: 0; }
.workspace-brand-details li { display: flex; align-items: center; gap: 9px; padding: 11px 0; font-size: 12px; color: #7b8797; border-bottom: 1px solid var(--line); }
.workspace-brand-details li svg { width: 13px; height: 13px; color: #a6afbb; }
@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 190px minmax(0, 1fr); }
  main { padding-inline: 24px; }
  .topbar { padding-inline: 24px; }
  .workspace-updated { display: none; }
  .workspace-daily-grid { grid-template-columns: minmax(0, 1fr); }
  .ops-focus { padding-right: 0; }
  .workspace-tasks { padding: 20px 0; border-left: 0; border-top: 1px solid var(--line); }
  .workspace-tasks > a { padding: 14px 0; }
  .ops-editor { grid-template-columns: minmax(0, 1fr); }
  .ops-editor aside { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .app-shell { display: flex; flex-direction: column; }
  .workspace-sidebar { position: sticky; top: 56px; height: auto; order: 1; width: 100%; border-right: 0; border-bottom: 1px solid var(--line); }
  .nav-tabs { flex-direction: row; align-items: center; overflow-x: auto; padding: 7px 16px; scrollbar-width: none; gap: 4px; }
  .nav-tabs::-webkit-scrollbar { display: none; }
  .workspace-links, .workspace-management { display: flex; gap: 4px; }
  .nav-tabs a { min-height: 34px; margin: 0; padding: 7px 10px; font-size: 11px; gap: 6px; white-space: nowrap; flex: 0 0 auto; }
  .nav-tabs svg { width: 14px; height: 14px; }
  .nav-tabs .workspace-logo, .workspace-account, .nav-group-label, .workspace-side-status { display: none; }
  .topbar { order: 0; height: 56px; padding: 0 16px; gap: 8px; flex-direction: row; }
  .workspace-breadcrumb { gap: 6px; font-size: 11px; }
  .workspace-breadcrumb a { max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .header-tools { gap: 6px; }
  .ai-fab { width: 30px; padding: 0; justify-content: center; }
  .ai-fab span { display: none; }
  main { order: 2; width: 100%; padding: 23px 18px 32px; margin: 0; }
  .ops-heading { align-items: start; gap: 16px; margin-bottom: 20px; }
  .ops-heading h1 { font-size: 24px; }
  .workspace-plan-link { font-size: 10px; padding: 7px 9px; min-height: 32px; }
  .workspace-metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 18px; }
  .workspace-metric-grid > div { padding-inline: 12px; }
  .workspace-metric-grid > div:nth-child(3) { border-right: 0; }
  .workspace-metric-grid > div:nth-child(4) { padding-left: 0; }
  .workspace-metric-grid strong { font-size: 22px; }
  .ops-pipeline { display: flex; overflow-x: auto; padding-bottom: 4px; margin: 20px 0; gap: 0; }
  .ops-pipeline li { flex: 0 0 116px; border-bottom: 0; }
  .ops-pipeline a { padding-right: 16px; }
  .ops-pipeline li:not(:last-child)::after { right: 10px; width: 12px; }
  .ops-focus { padding: 20px 0; gap: 16px; }
  .ops-focus h2 { font-size: 20px; }
  .workspace-focus-actions { gap: 12px; flex-wrap: wrap; }
  .workspace-queue-section .section-row { align-items: start; }
  .workspace-text-link { flex-shrink: 0; font-size: 10px; }
  .workspace-queue-tools { align-items: stretch; flex-wrap: wrap; }
  .workspace-search { width: 100%; }
  .workspace-queue-heading, .workspace-queue-section .ops-queue article { grid-template-columns: minmax(0, 1fr) 65px 30px; gap: 8px; }
  .workspace-queue-section .ops-queue article > div { grid-column: auto; }
  .workspace-file-icon { display: none; }
  .workspace-queue-topic h3 { font-size: 11px; }
  .workspace-queue-section .icon-btn { width: 28px; height: 28px; min-width: 28px; }
  .workspace-queue-section .pill { font-size: 9px; padding: 3px 5px; }
  .ops-two { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .workspace-brand-details { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .hero h1 { font-size: 23px; }
  .ops-editor textarea.ops-body { min-height: 540px; padding: 16px; }
  .ops-editor .section-row { align-items: center; }
  .ops-editor h2 { margin-bottom: 12px; }
  .ops-editor .toolbar { gap: 6px; flex-wrap: wrap; }
  .ops-editor .toolbar .btn { padding: 8px 10px; font-size: 11px; }
  .field-label { scroll-margin-top: 130px; }
}
