:root {
  --ops-ink: #171914;
  --ops-ink-soft: #22261f;
  --ops-paper: #f2efe7;
  --ops-card: #fcfbf7;
  --ops-card-muted: #e9e7de;
  --ops-line: rgba(23, 25, 20, .13);
  --ops-line-strong: rgba(23, 25, 20, .23);
  --ops-muted: #696d65;
  --ops-sage: #dce8cf;
  --ops-sage-strong: #88a276;
  --ops-gold: #a8804c;
  --ops-red: #91473e;
  --ops-radius: 20px;
  --ops-shadow: 0 22px 65px rgba(20, 24, 19, .09);
}

.ops-hero-editor { padding:24px; }
.ops-hero-default { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); gap:24px; align-items:start; }
.ops-hero-default > img { display:block; width:100%; height:auto; aspect-ratio:3/2; object-fit:cover; border-radius:16px; background:var(--ops-card-muted); }
.ops-hero-editor h3 { font-family:var(--serif); font-size:2rem; font-weight:400; margin:0 0 10px; }
.ops-hero-editor p { color:var(--ops-muted); }
.ops-hero-editor label { display:grid; gap:8px; font-size:.9375rem; }
.ops-hero-editor input:not([type=checkbox]),.ops-hero-editor select { width:100%; min-width:0; min-height:48px; padding:10px 12px; border:1px solid var(--ops-line-strong); border-radius:12px; background:var(--ops-card); color:var(--ops-ink); }
.ops-hero-editor .ops-hero-check { display:flex; align-items:center; gap:10px; min-height:44px; margin-top:12px; }
.ops-hero-editor input[type=checkbox] { width:20px; height:20px; accent-color:var(--ops-ink); flex-shrink:0; }
.ops-hero-settings { display:grid; grid-template-columns:2fr 1fr; gap:16px; margin:28px 0; padding:24px 0; border-top:1px solid var(--ops-line); border-bottom:1px solid var(--ops-line); }
.ops-hero-source-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.ops-hero-source { min-width:0; border:1px solid var(--ops-line); border-radius:14px; padding:10px; }
.ops-hero-source-copy { display:grid; gap:10px; }
.ops-hero-source img { width:100%; aspect-ratio:3/2; object-fit:cover; border-radius:8px; }
.ops-hero-source-copy > span { min-width:0; overflow-wrap:anywhere; }
.ops-hero-source small { display:block; color:var(--ops-muted); margin-top:4px; }
.ops-hero-publish { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-top:24px; padding-top:20px; border-top:1px solid var(--ops-line); }
.ops-hero-publish p { margin:0; font-size:.9375rem; }
.ops-hero-publish .is-error { color:var(--ops-red); }
.ops-hero-publish button { flex-shrink:0; min-height:48px; padding:12px 20px; border:0; border-radius:999px; background:var(--ops-ink); color:white; }
.ops-hero-editor :is(button,input,select):focus-visible { outline:2px solid var(--ops-gold); outline-offset:3px; }
@media(max-width:1100px) { .ops-hero-source-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:640px) { .ops-hero-editor { padding:16px; } .ops-hero-default,.ops-hero-settings { grid-template-columns:minmax(0,1fr); } .ops-hero-publish { align-items:stretch; flex-direction:column; } .ops-hero-source-grid { grid-template-columns:minmax(0,1fr); } .ops-hero-editor input,.ops-hero-editor select { font-size:16px; } }

html { background: var(--ops-paper); }
body { background: var(--ops-paper); color: var(--ops-ink); font-size: 16px; line-height: 1.45; text-rendering: optimizeLegibility; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
.ops-shell { min-height: 100vh; }
.eyebrow { margin: 0 0 12px; color: var(--ops-muted); font: 700 11px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; }

/* Navigation */
.ops-sidebar { width: 276px; padding: 22px 16px 18px; background: var(--ops-ink); border-right: 1px solid rgba(255, 255, 255, .06); scrollbar-color: #495048 transparent; }
.ops-wordmark { padding: 2px 10px 20px; }
.ops-wordmark a { color: #fff; }
.ops-wordmark .wordmark-context { color: #979e97; font: 600 10px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.command-state { margin: 0 2px 12px; padding: 12px 13px; border: 1px solid rgba(255, 255, 255, .07); border-radius: 14px; background: rgba(255, 255, 255, .045); }
.command-state strong { font-size: 12px; }
.command-state small { color: #929991; font-size: 11px; }
.ops-sidebar nav { display: grid; gap: 2px; }
.ops-sidebar nav p { margin: 15px 11px 6px; color: #6f776f; font-size: 10px; letter-spacing: .16em; }
.ops-sidebar nav button { min-height: 42px; padding: 9px 11px; border-radius: 12px; grid-template-columns: 18px 1fr auto; gap: 10px; color: #aeb4ae; font-size: 13px; font-weight: 600; transition: background .18s ease, color .18s ease, transform .18s ease; }
.ops-sidebar nav > a { min-height: 42px; padding: 9px 11px; border-radius: 12px; display: grid; grid-template-columns: 18px 1fr; align-items: center; gap: 10px; color: #aeb4ae; font-size: 13px; font-weight: 600; text-decoration: none; }
.ops-sidebar nav > a:hover, .ops-sidebar nav > a:focus-visible { color: #fff; background: rgba(255,255,255,.085); }
.ops-sidebar nav button:hover { transform: translateX(2px); }
.ops-sidebar nav button:hover, .ops-sidebar nav button.active { color: #fff; background: rgba(255, 255, 255, .085); }
.ops-sidebar nav button.active { box-shadow: inset 2px 0 0 var(--ops-sage-strong); }
.nav-glyph { width: 15px !important; height: 15px; border: 1px solid currentColor; border-radius: 50%; opacity: .72; position: relative; }
.nav-glyph::after { content: ""; width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.operator-identity { padding: 14px 8px 0; }
.operator-identity strong { font-size: 12px; }
.operator-identity small { font-size: 10px; }
.operator-identity > button { font-size: 10px; }
.sidebar-legal { margin: 0 8px; font-size: 10px; }

/* Page frame */
.ops-main { margin-left: 276px; }
.ops-header { height: 78px; padding: 0 clamp(22px, 3vw, 48px); background: rgba(242, 239, 231, .9); border-bottom-color: var(--ops-line); backdrop-filter: blur(18px) saturate(140%); }
.ops-header > div:first-of-type p { font-size: 10px; }
.ops-header h1 { font: 650 24px/1.2 var(--sans); letter-spacing: -.025em; }
.header-actions > a { font-size: 10px; }
.live-pill { padding: 10px 13px; border-radius: 999px; background: rgba(255, 255, 255, .72); font-size: 10px; }
.ops-content { max-width: 1540px; margin: 0 auto; padding: 38px clamp(22px, 3vw, 48px) 100px; }
.hero-line, .section-lead { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); align-items: end; gap: 56px; margin-bottom: 32px; }
.hero-line { padding: 18px 0 8px; }
.hero-line h2 { margin: 0; font: clamp(48px, 5.6vw, 76px)/.92 var(--serif); letter-spacing: -.055em; }
.section-lead h2 { margin: 0; font: 650 clamp(28px, 3vw, 36px)/1.15 var(--sans); letter-spacing: -.035em; }
.section-lead > p, .section-lead > div:last-child, .hero-line > p { max-width: 480px; margin: 0; color: var(--ops-muted); font-size: 15px; line-height: 1.65; }
.section-lead > div:last-child > p { margin: 0; }
.section-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.primary-action, .secondary-action { min-height: 44px; padding: 0 18px; border: 1px solid var(--ops-ink); border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.primary-action { background: var(--ops-ink); color: #fff; }
.secondary-action { background: transparent; color: var(--ops-ink); }
.primary-action:hover { background: #2a2d27; }
.secondary-action:hover { background: #fff; }

/* Business overview */
.metric-grid { gap: 12px; margin-bottom: 12px; }
.metric, .panel, .plan-card, .commercial-metrics article, .finance-metrics article { border: 1px solid var(--ops-line); border-radius: var(--ops-radius); background: var(--ops-card); }
.metric { min-height: 172px; padding: 22px; }
.metric.dark { color: #fff; background: var(--ops-ink); border-color: var(--ops-ink); }
.metric.accent { background: var(--ops-sage); }
.metric p, .metric small { font-size: 12px; }
.metric p { font-weight: 700; letter-spacing: .03em; text-transform: none; }
.metric strong { margin: auto 0 8px; font-size: clamp(34px, 3vw, 48px); }
.business-strip { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0 0 12px; overflow: hidden; border: 1px solid var(--ops-line); border-radius: var(--ops-radius); background: var(--ops-card); }
.business-strip > div { min-height: 94px; padding: 18px 20px; border-right: 1px solid var(--ops-line); }
.business-strip > div:last-child { border-right: 0; }
.business-strip span, .business-strip strong { display: block; }
.business-strip span { color: var(--ops-muted); font-size: 11px; }
.business-strip strong { margin-top: 12px; font: 25px/1 var(--serif); }
.overview-grid { gap: 12px; margin-bottom: 12px; }
.panel { padding: 24px; }
.panel-head { gap: 24px; border-bottom-color: var(--ops-line); }
.panel-head h3, .workspace-intro h3, .table-heading h3 { font: 650 20px/1.25 var(--sans); }
.panel-head > p, .panel-head > span, .workspace-intro p { color: var(--ops-muted); font-size: 12px; line-height: 1.55; }
.panel-head button { font-size: 11px; }
.assurance-panel dt { font-size: 13px; }
.assurance-panel dd { font-size: 22px; }
.chart-column strong { font-size: 12px; }
.chart-column small { font-size: 10px; }
.recent-panel { margin-top: 0; }
.compact-row strong { font-size: 13px; }
.compact-row small { font-size: 11px; }

/* Forms and data tables */
.filter-bar { gap: 10px; margin-bottom: 12px; }
.filter-bar input, .filter-bar select, .branch-picker select, .inline-create input, .inline-create select, .ops-dialog input, .ops-dialog select, .ops-dialog textarea { min-height: 46px; padding: 11px 13px; border: 1px solid var(--ops-line-strong); border-radius: 12px; background: #fff; color: var(--ops-ink); font-size: 14px; }
.filter-bar button, .inline-create button { min-height: 46px; padding: 0 17px; border-radius: 12px; font-size: 12px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.inline-create label, .ops-dialog label, .economics-lab label { gap: 7px; color: var(--ops-muted); font-size: 11px; font-weight: 700; letter-spacing: .05em; }
.table-panel { padding: 0; overflow: hidden; }
.table-heading { padding: 21px 24px; }
table { min-width: 880px; }
th, td { padding: 15px 18px; border-bottom-color: var(--ops-line); }
th { background: rgba(23, 25, 20, .025); color: var(--ops-muted); font-size: 10px; }
td { font-size: 13px; }
td small { margin-top: 4px; font-size: 11px; }
tbody tr { transition: background .16s ease; }
tbody tr:hover { background: rgba(220, 232, 207, .2); }
.table-footer { font-size: 12px; }
.row-open, .text-button { color: inherit; font-size: 12px; font-weight: 700; text-decoration: none; }
.row-open { padding: 8px 11px; border: 1px solid var(--ops-line); border-radius: 999px; background: transparent; }
.state { padding: 6px 9px; font-size: 11px; }
.empty-state { font-size: 13px; }
.catalog-columns { gap: 12px; }
.catalog-row strong { font-size: 13px; }
.catalog-row small { font-size: 11px; }

/* Plans, margins, entitlements */
.commercial-metrics, .finance-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; background: transparent; color: var(--ops-ink); }
.commercial-metrics article, .finance-metrics article { min-height: 112px; padding: 19px; }
.commercial-metrics article span, .finance-metrics article span { display: block; color: var(--ops-muted); font-size: 11px; }
.commercial-metrics article strong, .finance-metrics article strong { display: block; margin-top: 20px; font: 30px/1 var(--serif); }
.finance-metrics article.dark { color: #fff; background: var(--ops-ink); border-color: var(--ops-ink); }
.finance-metrics article.dark span { color: #a8aea7; }
.commercial-workspace { padding: 0; overflow: hidden; }
.workspace-tabs { display: flex; gap: 4px; padding: 8px; border-bottom: 1px solid var(--ops-line); background: rgba(23, 25, 20, .025); }
.workspace-tabs button { min-height: 42px; padding: 0 17px; border: 0; border-radius: 11px; background: transparent; color: var(--ops-muted); font-size: 12px; font-weight: 700; }
.workspace-tabs button:hover { color: var(--ops-ink); background: rgba(255, 255, 255, .6); }
.workspace-tabs button.active { color: #fff; background: var(--ops-ink); }
.workspace-view { padding: 25px; }
.workspace-view[hidden] { display: none !important; }
.workspace-intro { display: grid; grid-template-columns: 1fr minmax(280px, .7fr); align-items: end; gap: 42px; margin-bottom: 22px; }
.workspace-intro h3, .workspace-intro p { margin: 0; }
.workspace-intro > div:last-child .secondary-action { margin-top: 14px; }
.commercial-plan-list { display: grid; gap: 12px; }
.commercial-plan { overflow: hidden; border: 1px solid var(--ops-line); border-radius: 17px; background: #fff; }
.commercial-plan > header { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; padding: 20px; background: rgba(23, 25, 20, .025); }
.commercial-plan h4 { margin: 0 0 6px; font: 650 22px/1.2 var(--sans); }
.commercial-plan header p:not(.eyebrow) { margin: 0; color: var(--ops-muted); font-size: 13px; }
.commercial-plan header small { display: block; margin-top: 8px; color: var(--ops-muted); font-size: 11px; }
.plan-state-button { padding: 8px 12px; border: 1px solid var(--ops-line); border-radius: 999px; background: #fff; font-size: 11px; font-weight: 700; }
.commercial-version-list { padding: 0 20px 16px; }
.commercial-version { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: 16px; margin-top: 10px; padding: 14px 15px; border: 1px solid var(--ops-line); border-radius: 13px; background: var(--ops-card); }
.commercial-version.current { box-shadow: inset 3px 0 0 var(--ops-gold); }
.commercial-version strong { display: block; font-size: 13px; }
.commercial-version small { display: block; margin-top: 4px; color: var(--ops-muted); font-size: 11px; }
.commercial-version button { padding: 8px 11px; border: 1px solid var(--ops-line); border-radius: 999px; background: #fff; color: var(--ops-ink); font-size: 11px; }
.commercial-list { border: 1px solid var(--ops-line); border-radius: 16px; background: #fff; }
.commercial-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 18px; min-height: 76px; padding: 15px 17px; border-bottom: 1px solid var(--ops-line); }
.commercial-row:last-child { border-bottom: 0; }
.commercial-row strong, .commercial-row small, .commercial-row em { display: block; }
.commercial-row strong { font-size: 13px; }
.commercial-row small { margin-top: 3px; color: var(--ops-muted); font-size: 11px; }
.commercial-row em { margin-top: 5px; color: #8a8d86; font-size: 10px; font-style: normal; }
.commercial-row > span { font-size: 12px; font-weight: 700; }
.cost-studio { display: grid; grid-template-columns: minmax(300px, .85fr) minmax(440px, 1.15fr); gap: 12px; }
.economics-lab { padding: 20px; border-radius: 16px; background: var(--ops-ink); color: #fff; }
.economics-lab form { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin: 0; }
.economics-lab label { color: #aeb4ad; }
.economics-lab input, .economics-lab select { min-height: 44px; padding: 0 11px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 11px; background: #262a24; color: #fff; font-size: 13px; }
.economics-lab form button { grid-column: 1 / -1; min-height: 45px; border: 0; border-radius: 11px; background: var(--ops-sage); color: var(--ops-ink); font-size: 12px; font-weight: 800; }
.economics-result { margin-top: 14px; padding: 16px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 13px; background: #20231e; }
.economics-result > p { margin: 0; color: #aeb3ae; font-size: 12px; }
.economics-result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; overflow: hidden; border-radius: 11px; background: rgba(255, 255, 255, .11); }
.economics-result-grid div { padding: 13px; background: #20231e; }
.economics-result-grid span { color: #aeb3ae; font-size: 10px; }
.economics-result-grid strong { display: block; margin-top: 7px; font: 20px var(--serif); }
.economics-warnings { margin: 13px 0 0; color: #e1bd8d; font-size: 11px; }
.finance-table { margin-top: 12px; }

/* Usage */
.usage-filter { grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) auto; }
.usage-location-list { display: grid; gap: 9px; margin-top: 18px; }
.usage-location { overflow: hidden; border: 1px solid var(--ops-line); border-radius: 15px; background: #fff; }
.usage-location summary { display: grid; grid-template-columns: minmax(180px, 1fr) auto auto; gap: 22px; align-items: center; padding: 16px; list-style: none; cursor: pointer; }
.usage-location summary::-webkit-details-marker { display: none; }
.usage-location summary strong, .usage-location summary small { display: block; }
.usage-location summary strong { font-size: 13px; }
.usage-location summary small { margin-top: 4px; color: var(--ops-muted); font-size: 11px; }
.usage-location summary > span { font: 600 18px var(--sans); }
.usage-meters { padding: 0 16px 16px; display: grid; gap: 6px; }
.usage-meter { display: grid; grid-template-columns: minmax(150px, 1fr) 2fr auto; gap: 16px; align-items: center; padding: 12px 0; border-top: 1px solid var(--ops-line); }
.usage-meter strong { font-size: 12px; }
.usage-meter small { display: block; margin-top: 3px; color: var(--ops-muted); font-size: 10px; }
.usage-track { height: 7px; overflow: hidden; border-radius: 999px; background: #e6e5df; }
.usage-track i { display: block; height: 100%; border-radius: inherit; background: #78936b; }
.usage-track i.warning { background: #c58b43; }
.usage-track i.over { background: var(--ops-red); }
.usage-meter > span { min-width: 96px; text-align: right; font-size: 11px; }

/* Drawers, dialogs, feedback */
.tenant-drawer { width: min(680px, 100vw); background: var(--ops-paper); }
.tenant-drawer > header { background: rgba(242, 239, 231, .94); }
.tenant-drawer > header, .drawer-body { padding-left: 30px; padding-right: 30px; }
.tenant-drawer h2 { font-size: 40px; }
.drawer-metrics article, .branch-control { border-radius: 14px; }
.drawer-metrics span { font-size: 10px; }
.drawer-metrics strong { font-size: 26px; }
.drawer-section h3 { font-size: 23px; }
.drawer-section dt, .drawer-section dd { font-size: 12px; }
.drawer-actions button { min-height: 43px; border-radius: 10px; font-size: 12px; }
.ops-dialog { border-radius: 24px; background: var(--ops-card); padding: 30px; }
.ops-dialog h2 { font-size: 38px; }
.ops-dialog > p:not(.eyebrow) { font-size: 14px; }
.ops-dialog {max-height:calc(100dvh - 24px);overflow-y:auto;overscroll-behavior:contain}
.ops-dialog .dialog-feedback {margin:12px 0 0;padding:14px;border:1px solid var(--ops-line);border-radius:14px;background:var(--ops-card-muted);color:var(--ops-ink);font-size:14px;line-height:1.5}
body:has(dialog[open]) {overflow:hidden}
.ops-dialog form > button { min-height: 46px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: 0; text-transform: none; }
.commercial-dialog { width: min(760px, calc(100vw - 2rem)); }
.commercial-entitlement-editor { display: grid; gap: 7px; max-height: 310px; overflow: auto; }
.commercial-entitlement { display: grid; grid-template-columns: 1fr auto minmax(145px, .55fr); gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--ops-line); border-radius: 11px; }
.commercial-entitlement strong { display: block; font-size: 12px; }
.commercial-entitlement[hidden] { display: none; }
.commercial-entitlement small { display: block; color: var(--ops-muted); font-size: 10px; }
.commercial-entitlement .entitlement-on { display: flex; align-items: center; gap: 6px; text-transform: none; letter-spacing: 0; }
.commercial-entitlement .entitlement-on input { width: auto; min-height: 0; }
.commercial-entitlement .entitlement-value { min-height: 38px; padding: 8px 10px; }
.email-contract-terms { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 12px; margin: 2px 0 0; padding: 12px; border: 1px solid var(--ops-line); border-radius: 10px; }
.email-contract-terms legend { padding: 0 5px; font: 600 11px/1.4 var(--sans); }
.email-contract-terms label { display: grid; gap: 6px; font-size: 10px; }
.email-contract-terms p { grid-column: 1 / -1; margin: 0; color: var(--ops-muted); font-size: 11px; line-height: 1.5; }
.contract-branches { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.contract-branches label { display: flex; align-items: center; gap: 9px; padding: 12px; border: 1px solid var(--ops-line); border-radius: 11px; text-transform: none; letter-spacing: 0; }
.contract-branches input { width: auto; min-height: 0; }
.commercial-dialog label:has(> input[name="is_active"]) { display: flex; align-items: center; gap: 9px; text-transform: none; letter-spacing: 0; }
.commercial-dialog input[type="checkbox"] { width: 16px; height: 16px; min-height: 0; padding: 0; accent-color: var(--ops-gold); flex-shrink: 0; }
[data-feature-requirements] { max-height: 260px; overflow: auto; overscroll-behavior: contain; }
[data-feature-requirements] label[hidden] { display: none; }
.quote-result { margin-top: 18px; padding: 18px; border-radius: 15px; background: #edf0e8; }
.quote-breakdown { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quote-breakdown div { padding: 12px; border-radius: 10px; background: rgba(255, 255, 255, .7); }
.quote-breakdown span { font-size: 10px; }
.quote-breakdown strong { display: block; margin-top: 6px; font: 20px var(--serif); }
.quote-result button { width: 100%; margin-top: 12px; padding: 13px; border: 0; border-radius: 999px; background: var(--ops-ink); color: #fff; font-weight: 700; }
.ops-toast { border-radius: 16px; box-shadow: var(--ops-shadow); }
.ops-toast p { font-size: 12px; }
.platform-bottom-nav { display: none; }

@media (max-width: 1250px) {
  .business-strip { grid-template-columns: repeat(3, 1fr); }
  .business-strip > div:nth-child(3) { border-right: 0; }
  .business-strip > div:nth-child(-n+3) { border-bottom: 1px solid var(--ops-line); }
  .commercial-metrics, .finance-metrics { grid-template-columns: repeat(3, 1fr); }
  .cost-studio { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .hero-line, .section-lead { grid-template-columns: 1fr; gap: 22px; }
  .section-lead > p, .section-lead > div:last-child, .hero-line > p { max-width: 620px; }
  .workspace-intro { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 800px) {
  .ops-sidebar { width: min(330px, 86vw); }
  .ops-main { margin-left: 0; }
  .ops-content { padding: 25px 16px 106px; }
  .ops-header { height: 68px; padding: 0 16px; }
  .ops-header h1 { font-size: 22px; }
  .hero-line { padding-top: 6px; }
  .hero-line h2 { font-size: clamp(43px, 13vw, 64px); }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric { min-height: 145px; }
  .business-strip { grid-template-columns: 1fr 1fr; }
  .business-strip > div, .business-strip > div:nth-child(3) { border-right: 1px solid var(--ops-line); border-bottom: 1px solid var(--ops-line); }
  .business-strip > div:nth-child(2n) { border-right: 0; }
  .business-strip > div:last-child { border-bottom: 0; }
  .commercial-metrics, .finance-metrics { grid-template-columns: 1fr 1fr; }
  .workspace-tabs { overflow-x: auto; }
  .workspace-tabs button { flex: 0 0 auto; }
  .workspace-view { padding: 18px; }
  .usage-filter { grid-template-columns: 1fr; }
  .usage-location summary { grid-template-columns: 1fr auto; }
  .usage-location summary .state { display: none; }
  .usage-meter { grid-template-columns: 1fr auto; }
  .usage-track { grid-column: 1 / -1; grid-row: 2; }
  .platform-bottom-nav { position: fixed; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); z-index: 42; display: grid; grid-template-columns: repeat(5, 1fr); min-height: 62px; padding: 7px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 21px; background: rgba(23, 25, 20, .95); color: #fff; box-shadow: 0 18px 45px rgba(0, 0, 0, .25); backdrop-filter: blur(18px); }
  .platform-bottom-nav button { display: grid; place-items: center; gap: 3px; border: 0; border-radius: 13px; background: transparent; color: #a0a6a0; font-size: 10px; }
  .platform-bottom-nav button.active { color: #fff; background: rgba(255, 255, 255, .1); }
  .platform-bottom-nav button span { width: 13px; height: 13px; border: 1px solid currentColor; border-radius: 50%; }
}

@media (max-width: 540px) {
  .metric-grid, .commercial-metrics, .finance-metrics { grid-template-columns: 1fr 1fr; }
  .metric { min-height: 134px; padding: 17px; }
  .metric strong { font-size: 32px; }
  .commercial-metrics article, .finance-metrics article { min-height: 100px; padding: 15px; }
  .commercial-metrics article strong, .finance-metrics article strong { margin-top: 16px; font-size: 25px; }
  .business-strip > div { min-height: 84px; padding: 15px; }
  .panel { padding: 18px; }
  .commercial-plan > header { grid-template-columns: 1fr; }
  .plan-state-button { justify-self: start; }
  .commercial-version { grid-template-columns: 1fr auto; }
  .commercial-version button { grid-column: 1 / -1; width: 100%; }
  .commercial-row { grid-template-columns: 1fr auto; }
  .commercial-row .row-open { grid-column: 1 / -1; width: 100%; }
  .economics-lab form, .economics-result-grid, .contract-branches, .quote-breakdown { grid-template-columns: 1fr; }
  .ops-dialog { padding: 25px 19px; }
  .commercial-entitlement { grid-template-columns: 1fr auto; }
  .commercial-entitlement .entitlement-value { grid-column: 1 / -1; }
  .drawer-metrics { grid-template-columns: 1fr 1fr; }
}

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