/* =============================================================
   OAKLEY'S FARM OPS CONSOLE
   BB-OAK-2026-001 · Production stylesheet
   Namespace: .ofc-*  ·  PostgreSQL 17 · PHP 8.x
   -------------------------------------------------------------
   Token block + component layer lifted verbatim from the signed
   brand guidelines (ops-console-brand.html, v1.0 May 2026).
   Do not hand-edit token values here - they are the brand
   contract. App layout (.ofc-app*) added below the component
   layer for the real Console shell.
   ============================================================= */

/* ---- 1. DESIGN TOKENS (brand contract - verbatim) ---------- */
:root {
  /* Sidebar chrome - olive/cream supersedes the outdated brand-file
     value (#1F1812). Confirmed correct by Paul, 18 May 2026.
     Note back into ops-console-brand.html + SSD so the spec matches. */
  --ofc-chrome: #2F3D26; --ofc-chrome-soft: #3A4A30; --ofc-chrome-recess: #212B1B;
  --ofc-thead: #241E17; --ofc-thead-edge: #160F0A; --ofc-thead-text: #EDE6D6;
  --ofc-canvas: #FBF8F1; --ofc-card: #FFFFFF; --ofc-card-alt: #F2EDDF;
  --ofc-divider: #EFEBE0; --ofc-border: #E5DFD2; --ofc-border-strong: #C9C2B0;
  --ofc-text-primary: #1F1812; --ofc-text-secondary: #5C5547;
  --ofc-text-tertiary: #7A7363; --ofc-text-muted: #A39B86;
  --ofc-text-on-chrome: #F1EAD8; --ofc-text-on-chrome-muted: rgba(241,234,216,0.55);
  --ofc-nav-accent: #C9A875; /* active nav-item right-edge marker (on chrome) */
  --ofc-meadow: #1F4D34; --ofc-meadow-hover: #2A6244; --ofc-meadow-deep: #163A27;
  --ofc-meadow-tint: rgba(31,77,52,0.08); --ofc-meadow-line: rgba(31,77,52,0.22);
  --ofc-meadow-focus: rgba(31,77,52,0.35);
  --ofc-info: #1E5B8E; --ofc-info-tint: rgba(30,91,142,0.10);
  --ofc-success: #5C7A3A; --ofc-success-tint: rgba(92,122,58,0.10);
  --ofc-warning: #B8761A; --ofc-warning-tint: rgba(184,118,26,0.12);
  --ofc-critical: #8E3A24; --ofc-critical-tint: rgba(142,58,36,0.10);
  --ofc-display: 'Libre Baskerville', Georgia, serif;
  --ofc-sans: 'Manrope', -apple-system, sans-serif;
  --ofc-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  --ofc-r-xs: 3px; --ofc-r-sm: 6px; --ofc-r-md: 8px; --ofc-r-lg: 12px; --ofc-r-xl: 16px; --ofc-r-pill: 999px;
  --ofc-shadow-xs: 0 1px 2px rgba(31,24,18,0.04);
  --ofc-shadow-sm: 0 1px 3px rgba(31,24,18,0.05), 0 1px 2px rgba(31,24,18,0.04);
  --ofc-shadow-md: 0 4px 12px rgba(31,24,18,0.06), 0 2px 4px rgba(31,24,18,0.04);
  --ofc-shadow-lg: 0 12px 28px rgba(31,24,18,0.08);
  --ofc-shadow-modal: 0 24px 56px rgba(31,24,18,0.18);
}

html { scroll-behavior: smooth; }
body { font-family: var(--ofc-sans); font-size: 15px; line-height: 1.55; color: var(--ofc-text-primary); background: var(--ofc-canvas); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ofc-meadow-focus); outline-offset: 2px; }

/* ---- 2. COMPONENT LAYER (brand contract - verbatim) -------- */
.ofc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; height: 38px; font-family: var(--ofc-sans); font-size: 13.5px; font-weight: 600; border-radius: var(--ofc-r-sm); border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: background 0.15s, border-color 0.15s, color 0.15s; letter-spacing: 0.01em; white-space: nowrap; }
.ofc-btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.ofc-btn--primary { background: var(--ofc-meadow); color: var(--ofc-text-on-chrome); border-color: var(--ofc-meadow); }
@media (hover: hover) { .ofc-btn--primary:hover { background: var(--ofc-meadow-hover); border-color: var(--ofc-meadow-hover); } }
.ofc-btn--secondary { background: var(--ofc-card); color: var(--ofc-text-primary); border-color: var(--ofc-border-strong); }
@media (hover: hover) { .ofc-btn--secondary:hover { background: var(--ofc-card-alt); border-color: var(--ofc-text-secondary); } }
.ofc-btn--ghost { background: transparent; color: var(--ofc-text-primary); }
@media (hover: hover) { .ofc-btn--ghost:hover { background: var(--ofc-card-alt); } }
.ofc-btn--soft { background: var(--ofc-card-alt); color: var(--ofc-text-primary); border-color: var(--ofc-border-strong); font-weight: 600; }
@media (hover: hover) { .ofc-btn--soft:hover { background: var(--ofc-meadow); color: #fff; border-color: var(--ofc-meadow); } }
.ofc-btn--danger { background: var(--ofc-card); color: var(--ofc-critical); border-color: var(--ofc-critical); font-weight: 600; }
@media (hover: hover) { .ofc-btn--danger:hover { background: var(--ofc-critical); color: #fff; border-color: var(--ofc-critical); } }
.ofc-btn--destructive { background: var(--ofc-critical); color: #FFF; border-color: var(--ofc-critical); }
@media (hover: hover) { .ofc-btn--destructive:hover { background: #6F2D1C; border-color: #6F2D1C; } }
.ofc-btn--icon { padding: 0; width: 38px; }
.ofc-btn--sm { height: 30px; font-size: 12.5px; padding: 0 12px; }
.ofc-btn--sm svg { width: 13px; height: 13px; }
.ofc-btn--sm.ofc-btn--icon { width: 30px; }
.ofc-btn--lg { height: 46px; font-size: 14.5px; padding: 0 22px; }
.ofc-btn--lg.ofc-btn--icon { width: 46px; }
.ofc-btn:disabled, .ofc-btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; pointer-events: none; }
.ofc-btn:focus-visible { outline: 2px solid var(--ofc-meadow-focus); outline-offset: 2px; }
.ofc-field { display: flex; flex-direction: column; gap: 6px; }
.ofc-field__label { font-size: 12.5px; font-weight: 600; }
.ofc-field__hint { font-size: 12px; color: var(--ofc-text-tertiary); }
.ofc-fieldhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; flex-wrap: wrap; }
.ofc-fieldhead .ofc-field__label { margin: 0; }
.ofc-tmpl-group { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.ofc-tmpl-btn { font-family: var(--ofc-sans); font-size: 11.5px; font-weight: 600; color: var(--ofc-meadow); background: var(--ofc-meadow-tint); border: 1px solid var(--ofc-meadow-line); border-radius: var(--ofc-r-sm); padding: 3px 10px; cursor: pointer; transition: background 0.15s, color 0.15s; }
@media (hover: hover) { .ofc-tmpl-btn:hover { background: var(--ofc-meadow); color: var(--ofc-text-on-chrome); } }
.ofc-tmpl-btn:focus-visible { outline: 2px solid var(--ofc-meadow-focus); outline-offset: 1px; }
.ofc-catgroup { margin-bottom: 28px; }
.ofc-catgroup__title { font-family: var(--ofc-display); font-size: 16px; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.ofc-catgroup__count { font-family: var(--ofc-mono); font-size: 12px; font-weight: 700; color: var(--ofc-text-secondary); background: #ffffff; border: 1px solid var(--ofc-border); border-radius: var(--ofc-r-pill); padding: 2px 9px; font-variant-numeric: tabular-nums; }
.ofc-catgroup__hint { font-size: 12px; color: var(--ofc-text-tertiary); margin: 2px 0 10px; }
.ofc-draghandle { width: 34px; color: var(--ofc-text-muted); cursor: grab; text-align: center; }
.ofc-draghandle svg { width: 16px; height: 16px; vertical-align: middle; }
.ofc-catrow[draggable="true"] { cursor: default; }
.ofc-catrow.is-dragging { opacity: 0.4; }
.ofc-catrow.is-drop-target td { box-shadow: inset 0 2px 0 var(--ofc-nav-accent); }
.ofc-stkstate { font-size: 12.5px; font-weight: 500; padding: 10px 12px; border-radius: var(--ofc-r-sm); border: 1px solid transparent; margin: 4px 0 18px; }
.ofc-stkstate.is-ok { color: #2f5d3a; background: rgba(127,176,105,0.14); border-color: rgba(127,176,105,0.4); }
.ofc-stkstate.is-new { color: #7a5a1f; background: rgba(201,168,117,0.16); border-color: rgba(201,168,117,0.45); }
.ofc-modetabs { display: inline-flex; gap: 2px; background: var(--ofc-card-alt); border: 1px solid var(--ofc-border); border-radius: var(--ofc-r-sm); padding: 3px; margin-bottom: 14px; }
.ofc-modetab { display: inline-flex; align-items: center; gap: 7px; font-family: var(--ofc-sans); font-size: 13px; font-weight: 600; color: var(--ofc-text-secondary); background: transparent; border: 0; border-radius: calc(var(--ofc-r-sm) - 3px); padding: 7px 16px; cursor: pointer; transition: background 0.14s, color 0.14s; }
.ofc-modetab.is-on { background: var(--ofc-meadow); color: #fff; }
@media (hover: hover) { .ofc-modetab:not(.is-on):hover { color: var(--ofc-text-primary); } }
.ofc-modetab__n { font-size: 11px; font-weight: 700; background: var(--ofc-nav-accent); color: #1f1810; border-radius: var(--ofc-r-pill); padding: 1px 7px; }
.ofc-modetab.is-on .ofc-modetab__n { background: rgba(255,255,255,0.28); color: #fff; }
.ofc-movewrap { margin-top: 32px; }
.ofc-movehead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.ofc-movedelta { font-family: var(--ofc-mono); font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--ofc-text-secondary); }
.ofc-movedelta.is-up { color: #2f5d3a; }
.ofc-movedelta.is-down { color: #b5462f; }
.ofc-histfilters { background: var(--ofc-card); border: 1px solid var(--ofc-border); border-radius: var(--ofc-r-lg); padding: 16px 18px; margin-bottom: 14px; }
.ofc-histfilters__row { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; }
.ofc-histfilters__row + .ofc-histfilters__row { margin-top: 12px; }
.ofc-histf { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 150px; }
.ofc-histf > span { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ofc-text-tertiary); }
.ofc-histf--actions { flex-direction: row; align-items: center; gap: 8px; min-width: auto; flex: 0 0 auto; }
.ofc-histmeta { font-size: 12.5px; color: var(--ofc-text-tertiary); margin-bottom: 12px; }
.ofc-pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 20px; }
.ofc-pager__info { font-size: 12.5px; color: var(--ofc-text-secondary); font-weight: 600; }
.ofc-gallery { display: flex; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.ofc-gallery__ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--ofc-text-muted); background: var(--ofc-card-alt); border: 1.5px dashed var(--ofc-border-strong); border-radius: var(--ofc-r-md); }
.ofc-gallery__primary { width: 220px; height: 220px; flex-shrink: 0; }
.ofc-gallery__primary svg { width: 38px; height: 38px; }
.ofc-gallery__primary span { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.ofc-gallery__thumbs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; flex: 1; min-width: 200px; align-content: start; }
.ofc-gallery__thumb { aspect-ratio: 1; min-height: 0; }
.ofc-gallery__thumb svg { width: 22px; height: 22px; }
.ofc-gallery__foot { font-size: 12px; color: var(--ofc-text-tertiary); margin-top: 12px; text-wrap: balance; }
.ofc-thumbcell { display: inline-flex; align-items: center; gap: 11px; }
.ofc-thumbph { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex-shrink: 0; color: var(--ofc-text-muted); background: var(--ofc-card-alt); border: 1px dashed var(--ofc-border-strong); border-radius: var(--ofc-r-xs); }
.ofc-thumbph svg { width: 16px; height: 16px; }
@media (max-width: 768px) {
  .ofc-gallery__primary { width: 100%; height: 180px; }
  .ofc-gallery__thumbs { min-width: 0; }
}
@media (max-width: 768px) {
  .ofc-histf { min-width: calc(50% - 7px); }
  .ofc-histf--actions { min-width: 100%; }
}
.ofc-back { display: inline-flex; align-items: center; gap: 7px; font-family: var(--ofc-sans); font-size: 12.5px; font-weight: 600; color: var(--ofc-text-secondary); text-decoration: none; padding: 7px 13px 7px 10px; margin-bottom: 18px; background: var(--ofc-card); border: 1px solid var(--ofc-border); border-radius: var(--ofc-r-pill); transition: border-color 0.14s, color 0.14s, transform 0.14s; }
.ofc-back svg { width: 14px; height: 14px; }
@media (hover: hover) { .ofc-back:hover { color: var(--ofc-text-primary); border-color: var(--ofc-border-strong); transform: translateX(-2px); } }
.ofc-back:focus-visible { outline: 2px solid var(--ofc-meadow-focus); outline-offset: 2px; }
.ofc-slugchip { display: inline-flex; align-items: center; gap: 6px; font-family: var(--ofc-mono); font-size: 12px; color: var(--ofc-text-secondary); background: var(--ofc-card-alt); border: 1px solid var(--ofc-border); padding: 4px 11px; border-radius: var(--ofc-r-pill); }
.ofc-slugchip svg { width: 13px; height: 13px; color: var(--ofc-text-tertiary); flex-shrink: 0; }
.ofc-slugchip__base { color: var(--ofc-text-tertiary); }
.ofc-slugchip__slug { color: var(--ofc-text-primary); font-weight: 600; }
.ofc-field__error { font-size: 12px; color: var(--ofc-critical); font-weight: 500; }
.ofc-formsec { background: var(--ofc-card); border: 1px solid var(--ofc-border); border-radius: var(--ofc-r-lg); padding: 24px; margin-bottom: 20px; }
.ofc-formsec__title { font-family: var(--ofc-display); font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.ofc-formsec__note { font-size: 12.5px; color: var(--ofc-text-tertiary); margin-bottom: 18px; text-wrap: balance; }
.ofc-formsec__title + .ofc-formgrid { margin-top: 16px; }
.ofc-formgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.ofc-formgrid .ofc-field--wide { grid-column: span 1; }
.ofc-formgrid .ofc-field--full { grid-column: 1 / -1; }
.ofc-checkbox { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.ofc-checkbox input { width: 17px; height: 17px; accent-color: var(--ofc-meadow); cursor: pointer; flex-shrink: 0; }
.ofc-typegrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ofc-typecard { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 1.5px solid var(--ofc-border); border-radius: var(--ofc-r-md); cursor: pointer; font-size: 13.5px; font-weight: 600; transition: border-color 0.15s, background 0.15s; }
.ofc-typecard input { accent-color: var(--ofc-meadow); width: 16px; height: 16px; flex-shrink: 0; }
.ofc-typecard.is-on { border-color: var(--ofc-meadow); background: var(--ofc-meadow-tint); }
@media (hover: hover) { .ofc-typecard:hover { border-color: var(--ofc-border-strong); } }
.ofc-allergens { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 14px; }
.ofc-nutgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .ofc-typegrid { grid-template-columns: repeat(2, 1fr); } .ofc-allergens { grid-template-columns: repeat(3, 1fr); } .ofc-nutgrid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .ofc-typegrid { grid-template-columns: 1fr; } .ofc-allergens { grid-template-columns: repeat(2, 1fr); } .ofc-nutgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .ofc-formgrid { grid-template-columns: 1fr; } .ofc-formsec { padding: 16px; } }
.ofc-editor { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 24px; align-items: start; }
.ofc-editor__main { min-width: 0; }
.ofc-editor__rail { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 16px; }
.ofc-rail-card { background: var(--ofc-card); border: 1px solid var(--ofc-border); border-radius: var(--ofc-r-lg); padding: 18px; }
.ofc-rail-card__title { font-family: var(--ofc-display); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ofc-text-tertiary); margin-bottom: 14px; }
.ofc-rail-card__note { font-size: 11.5px; color: var(--ofc-text-tertiary); margin-top: 12px; line-height: 1.5; text-wrap: balance; }
.ofc-checklist { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.ofc-checklist li { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--ofc-text-tertiary); }
.ofc-checklist__dot { width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid var(--ofc-border-strong); flex-shrink: 0; position: relative; transition: background 0.15s, border-color 0.15s; }
.ofc-checklist li.is-ok { color: var(--ofc-text-primary); }
.ofc-checklist li.is-ok .ofc-checklist__dot { background: var(--ofc-meadow); border-color: var(--ofc-meadow); }
.ofc-checklist li.is-ok .ofc-checklist__dot::after { content: ""; position: absolute; left: 4px; top: 1.5px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ofc-rail-meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 12.5px; }
.ofc-rail-meta dt { color: var(--ofc-text-tertiary); }
.ofc-rail-meta dd { text-align: right; font-weight: 500; }
@media (max-width: 1024px) {
  .ofc-editor { grid-template-columns: 1fr; }
  .ofc-editor__rail { position: static; order: -1; }
}
.ofc-prof { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 24px; align-items: start; }
.ofc-prof__main { min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.ofc-prof__header { background: var(--ofc-card); border: 1px solid var(--ofc-border); border-radius: var(--ofc-r-lg); padding: 24px; }
.ofc-prof__eyebrow { font-family: var(--ofc-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ofc-text-tertiary); margin-bottom: 8px; }
.ofc-prof__title { font-family: var(--ofc-display); font-size: 24px; font-weight: 700; line-height: 1.2; text-wrap: balance; margin-bottom: 10px; }
.ofc-prof__sub { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ofc-codechip { font-family: var(--ofc-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.04em; color: var(--ofc-text-secondary); background: var(--ofc-card-alt); border: 1px solid var(--ofc-border); padding: 3px 9px; border-radius: var(--ofc-r-xs); }
.ofc-catsum { display: flex; align-items: stretch; gap: 0; background: var(--ofc-chrome); border-radius: var(--ofc-r-lg); overflow: hidden; margin-bottom: 16px; box-shadow: var(--ofc-shadow-sm); }
.ofc-catsum__lead { display: flex; align-items: center; gap: 16px; padding: 22px 28px; background: var(--ofc-chrome-recess); border-right: 3px solid var(--ofc-nav-accent); }
.ofc-catsum__big { font-family: var(--ofc-mono); font-size: 44px; font-weight: 700; line-height: 1; color: var(--ofc-text-on-chrome); font-variant-numeric: tabular-nums; }
.ofc-catsum__leadlabel { font-size: 12px; line-height: 1.3; color: var(--ofc-text-on-chrome-muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.ofc-catsum__split { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 18px 28px; }
.ofc-catsum__row { display: flex; gap: 24px; }
.ofc-catsum__cell { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ofc-text-on-chrome-muted); }
.ofc-catsum__cell b { color: var(--ofc-text-on-chrome); font-size: 15px; font-variant-numeric: tabular-nums; }
.ofc-catsum__dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.ofc-catsum__dot--active { background: #7FB069; }
.ofc-catsum__dot--draft { background: var(--ofc-nav-accent); }
.ofc-catsum__types { display: flex; gap: 10px; padding-top: 12px; border-top: 1px solid rgba(241,234,216,0.12); flex-wrap: wrap; }
.ofc-typepill { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; color: var(--ofc-text-on-chrome); background: rgba(241,234,216,0.08); border: 1px solid rgba(241,234,216,0.16); border-radius: var(--ofc-r-pill); padding: 5px 13px 5px 6px; }
.ofc-typepill__n { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; font-family: var(--ofc-mono); font-size: 13px; font-weight: 700; color: var(--ofc-chrome-recess); background: var(--ofc-nav-accent); border-radius: var(--ofc-r-pill); font-variant-numeric: tabular-nums; }
.ofc-catsum__type { display: flex; flex-direction: column; gap: 3px; }
.ofc-catsum__tn { font-family: var(--ofc-mono); font-size: 18px; font-weight: 700; color: var(--ofc-text-on-chrome); line-height: 1; font-variant-numeric: tabular-nums; }
.ofc-catsum__tl { font-size: 11px; color: var(--ofc-text-on-chrome-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.ofc-filterbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.ofc-filterbar__search { position: relative; flex: 1 1 240px; display: flex; align-items: center; }
.ofc-filterbar__search svg { position: absolute; left: 11px; width: 15px; height: 15px; color: var(--ofc-text-tertiary); pointer-events: none; }
.ofc-filterbar__search input { width: 100%; height: 38px; padding: 0 12px 0 34px; background: var(--ofc-card); border: 1px solid var(--ofc-border-strong); border-radius: var(--ofc-r-sm); font-family: var(--ofc-sans); font-size: 13.5px; color: var(--ofc-text-primary); }
.ofc-filterbar__search input:focus { outline: none; border-color: var(--ofc-meadow); box-shadow: 0 0 0 3px var(--ofc-meadow-tint); }
.ofc-filterbar__group { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.ofc-filterbar__sel { width: auto; min-width: 130px; height: 38px; }
.ofc-table--clickable tbody tr { cursor: pointer; transition: background 0.12s; }
@media (hover: hover) { .ofc-table--clickable tbody tr:hover { background: var(--ofc-card-alt); } }
.ofc-table--clickable [data-noclick] { cursor: default; }
.ofc-typecard.is-locked { opacity: 0.45; cursor: not-allowed; }
.ofc-typecard.is-locked input { cursor: not-allowed; }
@media (max-width: 768px) {
  .ofc-catsum { flex-direction: column; }
  .ofc-catsum__lead { border-right: none; border-bottom: 3px solid var(--ofc-nav-accent); }
  .ofc-catsum__types { gap: 18px; flex-wrap: wrap; }
  .ofc-filterbar__group { width: 100%; }
  .ofc-filterbar__sel { flex: 1; min-width: 0; }
}
.ofc-prof__soon { opacity: 0.85; }
.ofc-prof__placeholder { margin-top: 14px; padding: 24px; text-align: center; font-size: 12.5px; color: var(--ofc-text-tertiary); background: var(--ofc-card-alt); border: 1px dashed var(--ofc-border-strong); border-radius: var(--ofc-r-md); }
@media (max-width: 1024px) {
  .ofc-prof { grid-template-columns: 1fr; }
  .ofc-prof .ofc-editor__rail { position: static; order: -1; }
}
.ofc-input, .ofc-textarea, .ofc-select { width: 100%; height: 38px; padding: 0 12px; background: var(--ofc-card); border: 1px solid var(--ofc-border-strong); border-radius: var(--ofc-r-sm); font-family: var(--ofc-sans); font-size: 13.5px; color: var(--ofc-text-primary); transition: border-color 0.15s, box-shadow 0.15s; }
.ofc-textarea { min-height: 96px; padding: 10px 12px; resize: vertical; line-height: 1.5; height: auto; }
.ofc-input::placeholder, .ofc-textarea::placeholder { color: var(--ofc-text-muted); }
.ofc-input:focus, .ofc-textarea:focus, .ofc-select:focus { outline: none; border-color: var(--ofc-meadow); box-shadow: 0 0 0 3px var(--ofc-meadow-tint); }
.ofc-input[aria-invalid="true"] { border-color: var(--ofc-critical); }
.ofc-toggle { position: relative; display: inline-flex; align-items: center; cursor: pointer; gap: 10px; user-select: none; font-size: 13.5px; }
.ofc-toggle__track { position: relative; width: 38px; height: 22px; background: var(--ofc-border-strong); border-radius: var(--ofc-r-pill); transition: background 0.2s; flex-shrink: 0; }
.ofc-toggle__track::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; background: #FFF; border-radius: 50%; box-shadow: 0 1px 2px rgba(31,24,18,0.2); transition: transform 0.2s; }
.ofc-toggle.is-on .ofc-toggle__track { background: var(--ofc-meadow); }
.ofc-toggle.is-on .ofc-toggle__track::after { transform: translateX(16px); }
.ofc-toggle input:checked ~ .ofc-toggle__track { background: var(--ofc-meadow); }
.ofc-toggle input:checked ~ .ofc-toggle__track::after { transform: translateX(16px); }
.ofc-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.ofc-toggle--lg .ofc-toggle__track { width: 50px; height: 28px; }
.ofc-toggle--lg .ofc-toggle__track::after { width: 24px; height: 24px; }
.ofc-toggle--lg input:checked ~ .ofc-toggle__track::after { transform: translateX(22px); }
.ofc-eposbox { display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: var(--ofc-card-alt); border: 1.5px solid var(--ofc-border-strong); border-radius: var(--ofc-r-lg); transition: border-color 0.18s, background 0.18s; }
.ofc-eposbox.is-on { border-color: var(--ofc-meadow); background: rgba(31,77,52,0.05); }
.ofc-eposbox__icon { display: grid; place-items: center; width: 46px; height: 46px; flex-shrink: 0; border-radius: var(--ofc-r-md); background: var(--ofc-card); border: 1px solid var(--ofc-border); color: var(--ofc-text-tertiary); transition: color 0.18s, border-color 0.18s; }
.ofc-eposbox.is-on .ofc-eposbox__icon { color: var(--ofc-meadow); border-color: var(--ofc-meadow); }
.ofc-eposbox__icon svg { width: 24px; height: 24px; }
.ofc-eposbox__body { flex: 1; min-width: 0; }
.ofc-eposbox__title { font-size: 15px; font-weight: 600; color: var(--ofc-text-primary); }
.ofc-eposbox__sub { font-size: 12.5px; color: var(--ofc-text-tertiary); margin-top: 3px; text-wrap: balance; }
.ofc-eposbox--compact { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px 16px; }
.ofc-eposbox--compact .ofc-eposbox__icon { display: none; }
.ofc-eposbox--compact .ofc-eposbox__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ofc-eposbox--compact .ofc-eposbox__body { flex: 1; min-width: 0; }
.ofc-cattree { max-height: 420px; overflow-y: auto; }
.ofc-catrow--child td { background: var(--ofc-card-alt); }
.ofc-catrow--child .ofc-table__primary { font-weight: 400; }
.ofc-tax__check--child { padding-left: 20px; }
.ofc-tax__check--child span { color: var(--ofc-text-secondary); }
.ofc-check, .ofc-radio { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13.5px; user-select: none; }
.ofc-check__box { width: 18px; height: 18px; border: 1.5px solid var(--ofc-border-strong); border-radius: var(--ofc-r-xs); display: grid; place-items: center; transition: background 0.15s, border-color 0.15s; flex-shrink: 0; }
.ofc-check__box svg { width: 12px; height: 12px; color: #FFF; opacity: 0; }
.ofc-check.is-on .ofc-check__box { background: var(--ofc-meadow); border-color: var(--ofc-meadow); }
.ofc-check.is-on .ofc-check__box svg { opacity: 1; }
.ofc-radio__box { width: 18px; height: 18px; border: 1.5px solid var(--ofc-border-strong); border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.ofc-radio__box::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ofc-meadow); transform: scale(0); transition: transform 0.15s; }
.ofc-radio.is-on .ofc-radio__box { border-color: var(--ofc-meadow); }
.ofc-radio.is-on .ofc-radio__box::after { transform: scale(1); }
.ofc-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--ofc-r-pill); font-family: var(--ofc-sans); font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em; border: 1px solid transparent; line-height: 1.4; }
.ofc-pill--neutral { background: var(--ofc-card-alt); color: var(--ofc-text-secondary); border-color: var(--ofc-border); }
.ofc-pill--info { background: var(--ofc-info-tint); color: var(--ofc-info); }
.ofc-pill--success { background: var(--ofc-success-tint); color: var(--ofc-success); }
.ofc-pill--warning { background: var(--ofc-warning-tint); color: var(--ofc-warning); }
.ofc-pill--critical { background: var(--ofc-critical-tint); color: var(--ofc-critical); }
.ofc-pill--meadow { background: var(--ofc-meadow-tint); color: var(--ofc-meadow); }
.ofc-badge { display: inline-flex; align-items: center; padding: 1px 6px; border-radius: var(--ofc-r-xs); font-family: var(--ofc-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.04em; background: var(--ofc-card-alt); color: var(--ofc-text-secondary); border: 1px solid var(--ofc-border); line-height: 1.5; }
.ofc-badge--count { background: var(--ofc-critical); color: #FFF; border-color: var(--ofc-critical); }
.ofc-table-wrap { background: var(--ofc-card); border: 1px solid var(--ofc-border); border-radius: var(--ofc-r-lg); overflow: hidden; }
.ofc-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ofc-table thead tr { background: var(--ofc-thead); }
.ofc-table th { font-family: var(--ofc-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ofc-thead-text); text-align: left; padding: 13px 16px; border-bottom: 2px solid var(--ofc-thead-edge); background: var(--ofc-thead); }
.ofc-table thead th:first-child { border-top-left-radius: var(--ofc-r-sm); }
.ofc-table thead th:last-child { border-top-right-radius: var(--ofc-r-sm); }
.ofc-table th[aria-sort] { cursor: pointer; user-select: none; }
.ofc-table th[aria-sort] svg { width: 11px; height: 11px; vertical-align: -1px; margin-left: 4px; opacity: 0.6; }
.ofc-table td { padding: 12px 16px; border-bottom: 1px solid var(--ofc-divider); vertical-align: middle; }
.ofc-table tr:last-child td { border-bottom: none; }
@media (hover: hover) { .ofc-table tbody tr:hover { background: var(--ofc-card-alt); cursor: pointer; } }
.ofc-table__num { font-family: var(--ofc-mono); font-weight: 500; font-variant-numeric: tabular-nums; }
.ofc-th-sort { cursor: pointer; user-select: none; position: relative; padding-right: 22px; }
.ofc-th-sort::after { content: ""; position: absolute; right: 8px; top: 50%; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; opacity: 0.25; transform: translateY(-50%); border-top: 5px solid currentColor; }
.ofc-th-sort.is-asc::after { border-top: 0; border-bottom: 5px solid currentColor; opacity: 0.9; }
.ofc-th-sort.is-desc::after { opacity: 0.9; }
@media (hover: hover) { .ofc-th-sort:hover { color: var(--ofc-nav-accent); } }
.ofc-th-sort:focus-visible { outline: 2px solid var(--ofc-nav-accent); outline-offset: -2px; }
.ofc-table__primary { font-weight: 600; }
.ofc-table__sub { font-size: 12px; color: var(--ofc-text-tertiary); margin-top: 2px; }
.ofc-stat-card { background: var(--ofc-card); border: 1px solid var(--ofc-border); border-radius: var(--ofc-r-lg); padding: 20px 22px; }
.ofc-stat-card__label { font-family: var(--ofc-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ofc-text-tertiary); margin-bottom: 10px; }
.ofc-stat-card__value { font-family: var(--ofc-mono); font-size: 32px; font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.ofc-stat-card__trend { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ofc-stat-card__trend--up { color: var(--ofc-success); }
.ofc-stat-card__trend--down { color: var(--ofc-critical); }
.ofc-stat-card__trend svg { width: 12px; height: 12px; }
.ofc-stat-card__foot { font-size: 11.5px; color: var(--ofc-text-tertiary); margin-top: 4px; }
.ofc-toast { display: flex; gap: 12px; padding: 14px 16px; background: var(--ofc-card); border: 1px solid var(--ofc-border); border-radius: var(--ofc-r-md); box-shadow: var(--ofc-shadow-md); align-items: flex-start; max-width: 380px; }
.ofc-toast__icon { flex-shrink: 0; width: 18px; height: 18px; display: grid; place-items: center; margin-top: 1px; }
.ofc-toast__icon svg { width: 18px; height: 18px; }
.ofc-toast--info { border-left: 3px solid var(--ofc-info); }
.ofc-toast--info .ofc-toast__icon { color: var(--ofc-info); }
.ofc-toast--success { border-left: 3px solid var(--ofc-success); }
/* .ofc-flash - the post-action message 33 views already render.
   Was never defined, so flashes appeared as bare text; now it IS
   the designed toast, upgrading every page at once (NAV/UI-01). */
.ofc-flash { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; background: var(--ofc-card); border: 1px solid var(--ofc-border); border-left: 3px solid var(--ofc-success); border-radius: var(--ofc-r-md); box-shadow: var(--ofc-shadow-md); margin-bottom: 18px; font-size: 13.5px; font-weight: 600; color: var(--ofc-text-primary); }
.ofc-flash::before { content: ''; width: 18px; height: 18px; flex: none; margin-top: 1px; background: var(--ofc-success); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; }
.ofc-toast--success .ofc-toast__icon { color: var(--ofc-success); }
.ofc-toast--warning { border-left: 3px solid var(--ofc-warning); }
.ofc-toast--warning .ofc-toast__icon { color: var(--ofc-warning); }
.ofc-toast--critical { border-left: 3px solid var(--ofc-critical); }
.ofc-toast--critical .ofc-toast__icon { color: var(--ofc-critical); }
.ofc-toast__body { flex: 1; min-width: 0; }
.ofc-toast__title { font-size: 13.5px; font-weight: 600; margin-bottom: 2px; }
.ofc-toast__msg { font-size: 12.5px; color: var(--ofc-text-secondary); line-height: 1.45; }
.ofc-toast__dismiss { background: none; border: none; padding: 2px; cursor: pointer; color: var(--ofc-text-tertiary); }
.ofc-toast__dismiss svg { width: 14px; height: 14px; }
.ofc-tabs { display: inline-flex; background: var(--ofc-card-alt); border: 1px solid var(--ofc-border); border-radius: var(--ofc-r-md); padding: 3px; gap: 2px; }
.ofc-tabs__item { padding: 6px 14px; font-size: 13px; font-weight: 600; color: var(--ofc-text-secondary); border-radius: var(--ofc-r-xs); cursor: pointer; background: transparent; border: none; font-family: inherit; transition: background 0.15s, color 0.15s; }
.ofc-tabs__item.is-active { background: var(--ofc-card); color: var(--ofc-text-primary); box-shadow: var(--ofc-shadow-xs); }
.ofc-tabs-underline { display: flex; gap: 24px; border-bottom: 1px solid var(--ofc-border); }
.ofc-tabs-underline__item { padding: 12px 0; font-size: 13.5px; font-weight: 600; color: var(--ofc-text-tertiary); background: none; border: none; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; font-family: inherit; }
.ofc-tabs-underline__item.is-active { color: var(--ofc-text-primary); border-bottom-color: var(--ofc-meadow); }
.ofc-modal-shell { background: rgba(31,24,18,0.35); border-radius: var(--ofc-r-md); padding: 32px; display: grid; place-items: center; }
.ofc-modal { background: var(--ofc-card); border-radius: var(--ofc-r-lg); box-shadow: var(--ofc-shadow-modal); width: 100%; max-width: 420px; overflow: hidden; }
.ofc-modal__head { padding: 20px 24px; border-bottom: 1px solid var(--ofc-divider); display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.ofc-modal__title { font-family: var(--ofc-display); font-size: 17px; font-weight: 700; }
.ofc-modal__close { background: none; border: none; cursor: pointer; color: var(--ofc-text-tertiary); padding: 2px; }
.ofc-modal__close svg { width: 16px; height: 16px; }
.ofc-modal__body { padding: 20px 24px; font-size: 13.5px; line-height: 1.55; color: var(--ofc-text-secondary); }
.ofc-modal__foot { padding: 16px 24px; background: var(--ofc-card-alt); border-top: 1px solid var(--ofc-divider); display: flex; justify-content: flex-end; gap: 8px; }
.ofc-modal-overlay { position: fixed; inset: 0; background: rgba(31,24,18,0.45); display: none; align-items: center; justify-content: center; padding: 24px 20px; z-index: 80; overflow-y: auto; }
.ofc-modal-overlay.is-open { display: flex; }
.ofc-modal-overlay .ofc-modal { max-width: 520px; margin: auto; }
.ofc-modal-overlay .ofc-modal--sm { max-width: 420px; }
.ofc-tax__group { margin-bottom: 18px; }
.ofc-tax__label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ofc-text-tertiary); margin-bottom: 8px; }
.ofc-tax__hint { font-size: 12px; color: var(--ofc-text-tertiary); margin: 0 0 8px; }
.ofc-tax__checks { display: flex; flex-direction: column; gap: 6px; max-height: 220px; overflow-y: auto; margin-bottom: 10px; }
.ofc-tax__check { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.ofc-tax__check input { width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--ofc-meadow); }
.ofc-tax__add { display: flex; gap: 6px; margin-top: 8px; align-items: stretch; }
.ofc-tax__add .ofc-input--sm { flex: 1; min-width: 0; }
.ofc-tax__add .ofc-btn--sm { height: auto; align-self: stretch; }
.ofc-input--sm { padding: 7px 10px; font-size: 13px; }
.ofc-tax__msg { font-size: 12.5px; padding: 8px 12px; border-radius: var(--ofc-r-sm); margin-bottom: 14px; }
.ofc-tax__msg.is-ok { background: rgba(92,122,58,0.14); color: var(--ofc-success); }
.ofc-tax__msg.is-err { background: rgba(142,58,36,0.12); color: var(--ofc-critical); }
.ofc-segmented { display: flex; width: 100%; gap: 0; border: 1px solid var(--ofc-border-strong); border-radius: var(--ofc-r-sm); overflow: hidden; }
.ofc-seg { position: relative; flex: 1 1 50%; }
.ofc-seg input { position: absolute; opacity: 0; pointer-events: none; }
.ofc-seg span { display: block; text-align: center; padding: 9px 16px; font-size: 13px; font-weight: 600; color: var(--ofc-text-secondary); cursor: pointer; background: var(--ofc-card); }
.ofc-seg + .ofc-seg span { border-left: 1px solid var(--ofc-border-strong); }
.ofc-seg.is-on span { background: var(--ofc-meadow); color: #fff; }
.ofc-modal-overlay .ofc-modal__formwrap { padding: 4px 24px 24px; }
@media (max-width: 768px) { .ofc-modal-overlay { padding: 20px 12px; } }
@media (prefers-reduced-motion: no-preference) { .ofc-modal-overlay.is-open .ofc-modal { animation: ofcModalIn 0.16s ease-out; } }
@keyframes ofcModalIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.ofc-skeleton { background: linear-gradient(90deg, var(--ofc-card-alt) 0%, var(--ofc-divider) 50%, var(--ofc-card-alt) 100%); background-size: 200% 100%; border-radius: var(--ofc-r-sm); animation: ofcSkel 1.4s ease-in-out infinite; height: 14px; }
@keyframes ofcSkel { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.ofc-spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--ofc-meadow-line); border-top-color: var(--ofc-meadow); animation: ofcSpin 0.8s linear infinite; }
@keyframes ofcSpin { to { transform: rotate(360deg); } }
.ofc-progress { width: 100%; height: 6px; background: var(--ofc-divider); border-radius: var(--ofc-r-pill); overflow: hidden; }
.ofc-progress__fill { height: 100%; background: var(--ofc-meadow); border-radius: var(--ofc-r-pill); transition: width 0.4s ease; }
.ofc-empty { text-align: center; padding: 40px 24px; background: var(--ofc-card); border: 1px dashed var(--ofc-border-strong); border-radius: var(--ofc-r-lg); }
.ofc-empty__icon { width: 48px; height: 48px; border-radius: 50%; background: var(--ofc-meadow-tint); color: var(--ofc-meadow); display: grid; place-items: center; margin: 0 auto 14px; }
.ofc-empty__icon svg { width: 22px; height: 22px; }
.ofc-empty__title { font-family: var(--ofc-display); font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.ofc-empty__msg { font-size: 13.5px; color: var(--ofc-text-secondary); margin-bottom: 16px; max-width: 320px; margin: 0 auto 16px; line-height: 1.5; }
.ofc-search { position: relative; max-width: 360px; }
.ofc-search__input { width: 100%; height: 38px; padding: 0 12px 0 38px; background: var(--ofc-card); border: 1px solid var(--ofc-border-strong); border-radius: var(--ofc-r-sm); font-size: 13.5px; font-family: var(--ofc-sans); }
.ofc-search__input::placeholder { color: var(--ofc-text-muted); }
.ofc-search__input:focus { outline: none; border-color: var(--ofc-meadow); box-shadow: 0 0 0 3px var(--ofc-meadow-tint); }
.ofc-search__icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--ofc-text-tertiary); pointer-events: none; }
.ofc-search__kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-family: var(--ofc-mono); font-size: 10px; color: var(--ofc-text-tertiary); background: var(--ofc-card-alt); padding: 2px 6px; border: 1px solid var(--ofc-border); border-radius: var(--ofc-r-xs); pointer-events: none; }
.ofc-dropdown { background: var(--ofc-card); border: 1px solid var(--ofc-border); border-radius: var(--ofc-r-md); box-shadow: var(--ofc-shadow-md); padding: 4px; min-width: 200px; font-size: 13.5px; }
.ofc-dropdown__item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--ofc-r-xs); cursor: pointer; }
.ofc-dropdown__item svg { width: 14px; height: 14px; color: var(--ofc-text-tertiary); }
@media (hover: hover) { .ofc-dropdown__item:hover { background: var(--ofc-card-alt); } }
.ofc-dropdown__item--danger { color: var(--ofc-critical); }
.ofc-dropdown__item--danger svg { color: var(--ofc-critical); }
.ofc-dropdown__divider { height: 1px; background: var(--ofc-divider); margin: 4px 0; }
.ofc-tooltip { display: inline-block; background: var(--ofc-chrome); color: var(--ofc-text-on-chrome); padding: 6px 10px; border-radius: var(--ofc-r-sm); font-size: 12px; font-weight: 500; box-shadow: var(--ofc-shadow-md); position: relative; }
.ofc-tooltip::after { content: ''; position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%) rotate(45deg); width: 8px; height: 8px; background: var(--ofc-chrome); }
.ofc-pagination { display: inline-flex; align-items: center; gap: 4px; font-family: var(--ofc-mono); font-size: 12.5px; }
.ofc-pagination__btn { width: 32px; height: 32px; border-radius: var(--ofc-r-sm); background: var(--ofc-card); border: 1px solid var(--ofc-border); color: var(--ofc-text-secondary); cursor: pointer; display: grid; place-items: center; font-family: inherit; }
.ofc-pagination__btn svg { width: 13px; height: 13px; }
.ofc-pagination__btn.is-active { background: var(--ofc-meadow); color: var(--ofc-text-on-chrome); border-color: var(--ofc-meadow); }
.ofc-pagination__ellipsis { padding: 0 6px; color: var(--ofc-text-tertiary); }
.ofc-stepper { display: flex; align-items: center; gap: 0; flex-wrap: wrap; }
.ofc-stepper__step { display: flex; align-items: center; gap: 10px; }
.ofc-stepper__num { width: 28px; height: 28px; border-radius: 50%; background: var(--ofc-card-alt); border: 1px solid var(--ofc-border-strong); color: var(--ofc-text-tertiary); display: grid; place-items: center; font-family: var(--ofc-mono); font-size: 11.5px; font-weight: 600; flex-shrink: 0; }
.ofc-stepper__step.is-active .ofc-stepper__num, .ofc-stepper__step.is-done .ofc-stepper__num { background: var(--ofc-meadow); color: var(--ofc-text-on-chrome); border-color: var(--ofc-meadow); }
.ofc-stepper__label { font-size: 12.5px; font-weight: 600; color: var(--ofc-text-tertiary); white-space: nowrap; }
.ofc-stepper__step.is-active .ofc-stepper__label, .ofc-stepper__step.is-done .ofc-stepper__label { color: var(--ofc-text-primary); }
.ofc-stepper__line { flex: 1; height: 1px; background: var(--ofc-border-strong); margin: 0 12px; min-width: 24px; }
.ofc-stepper__line.is-done { background: var(--ofc-meadow); }
.ofc-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--ofc-meadow); color: var(--ofc-text-on-chrome); display: grid; place-items: center; font-family: var(--ofc-sans); font-size: 12px; font-weight: 700; flex-shrink: 0; }
.ofc-activity { list-style: none; padding: 0; margin: 0; }
.ofc-activity__item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--ofc-divider); }
.ofc-activity__item:last-child { border-bottom: none; }
.ofc-activity__dot { width: 28px; height: 28px; border-radius: 50%; background: var(--ofc-card-alt); border: 1px solid var(--ofc-border); display: grid; place-items: center; flex-shrink: 0; color: var(--ofc-text-tertiary); }
.ofc-activity__dot svg { width: 13px; height: 13px; }
.ofc-activity__dot--success { background: var(--ofc-success-tint); border-color: var(--ofc-success); color: var(--ofc-success); }
.ofc-activity__dot--warning { background: var(--ofc-warning-tint); border-color: var(--ofc-warning); color: var(--ofc-warning); }
.ofc-activity__dot--info { background: var(--ofc-info-tint); border-color: var(--ofc-info); color: var(--ofc-info); }
.ofc-activity__body { flex: 1; min-width: 0; }
.ofc-activity__title { font-size: 13.5px; font-weight: 500; margin-bottom: 2px; }
.ofc-activity__title strong { font-weight: 700; }
.ofc-activity__meta { font-family: var(--ofc-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ofc-text-tertiary); }
.ofc-accordion { border: 1px solid var(--ofc-border); border-radius: var(--ofc-r-md); background: var(--ofc-card); overflow: hidden; }
.ofc-accordion__item { border-bottom: 1px solid var(--ofc-divider); }
.ofc-accordion__item:last-child { border-bottom: none; }
.ofc-accordion__btn { width: 100%; background: none; border: none; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; font-family: inherit; font-size: 14px; font-weight: 600; color: var(--ofc-text-primary); cursor: pointer; text-align: left; }
.ofc-accordion__btn svg { width: 14px; height: 14px; color: var(--ofc-text-tertiary); transition: transform 0.2s; }
.ofc-accordion__item.is-open .ofc-accordion__btn svg { transform: rotate(180deg); }
.ofc-accordion__panel { padding: 0 18px 18px; font-size: 13.5px; color: var(--ofc-text-secondary); line-height: 1.55; display: none; }
.ofc-accordion__item.is-open .ofc-accordion__panel { display: block; }

/* Component-level mobile adjustments (brand component layer) */
@media (max-width: 768px) {
  .ofc-btn { font-size: 12.5px; }
  .ofc-table th, .ofc-table td { padding: 10px 12px; font-size: 12.5px; }
  .ofc-table th { font-size: 10px; }
  .ofc-toast { max-width: 100%; }
  .ofc-table-wrap { border: none; background: transparent; border-radius: 0; }
  .ofc-table thead { display: none; }
  .ofc-table tr { display: block; background: var(--ofc-card); border: 1px solid var(--ofc-border); border-radius: var(--ofc-r-md); margin-bottom: 10px; padding: 12px 14px; }
  .ofc-table td { display: flex; padding: 6px 0; border: none; justify-content: space-between; align-items: center; gap: 12px; }
  .ofc-table td::before { content: attr(data-label); font-family: var(--ofc-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ofc-text-tertiary); font-weight: 600; }
  .ofc-table td:first-child { border-bottom: 1px solid var(--ofc-divider); padding-bottom: 10px; margin-bottom: 6px; }
  .ofc-stat-card { padding: 14px 16px; }
  .ofc-stat-card__value { font-size: 24px; }
  .ofc-activity__item { gap: 10px; }
  .ofc-activity__title { font-size: 12.5px; }
}

/* ---- 3. APP SHELL (Console layout - built to brand mock) --- */
.ofc-app { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.ofc-app__sidebar { background: var(--ofc-chrome); color: var(--ofc-text-on-chrome); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow: hidden; padding: 0; border-right: 1px solid rgba(255,255,255,0.05); }
.ofc-app__brand { display: flex; flex-direction: column; gap: 4px; padding: 20px 18px 16px; margin: 0; border-bottom: 1px solid rgba(255,255,255,0.08); flex-shrink: 0; }
.ofc-app__brand-name { font-family: var(--ofc-display); font-weight: 700; font-size: 19px; line-height: 1.1; letter-spacing: 0.01em; color: var(--ofc-text-on-chrome); text-transform: uppercase; white-space: nowrap; }
.ofc-app__brand-sub { font-size: 10px; font-weight: 600; letter-spacing: 0.13em; color: rgba(241,234,216,0.5); text-transform: uppercase; }
.ofc-app__nav { display: flex; flex-direction: column; flex: 1; overflow-y: auto; padding: 10px 0; min-height: 0; scrollbar-width: thin; scrollbar-color: rgba(241,234,216,0.14) transparent; }
.ofc-app__nav::-webkit-scrollbar { width: 8px; }
.ofc-app__nav::-webkit-scrollbar-thumb { background: rgba(241,234,216,0.14); border-radius: 4px; }
.ofc-app__nav-group { padding: 0; }
.ofc-app__userbar { flex-shrink: 0; display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-top: 1px solid rgba(255,255,255,0.08); background: var(--ofc-chrome); }
.ofc-app__userbar-id { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; text-decoration: none; color: inherit; padding: 6px 8px; border-radius: 6px; transition: background 0.15s; }
@media (hover: hover) { .ofc-app__userbar-id:hover { background: rgba(241,234,216,0.06); } }
.ofc-app__userbar-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--ofc-text-on-chrome); color: var(--ofc-chrome); display: grid; place-items: center; font-family: var(--ofc-display); font-weight: 700; font-size: 12px; flex-shrink: 0; }
.ofc-app__userbar-name { font-size: 12.5px; font-weight: 600; color: var(--ofc-text-on-chrome); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ofc-app__userbar-out { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 6px; color: rgba(241,234,216,0.6); flex-shrink: 0; transition: background 0.15s, color 0.15s; }
.ofc-app__userbar-out svg { width: 16px; height: 16px; }
@media (hover: hover) { .ofc-app__userbar-out:hover { background: rgba(241,234,216,0.06); color: var(--ofc-text-on-chrome); } }
.ofc-app__nav-title { font-size: 9px; font-weight: 700; letter-spacing: 0.14em; color: rgba(241,234,216,0.38); margin: 18px 0 6px; padding: 0 16px; text-transform: uppercase; }
.ofc-app__nav-title:first-child { margin-top: 4px; }
.ofc-app__nav-item { position: relative; display: flex; align-items: center; gap: 10px; padding: 9px 16px; font-size: 12px; font-weight: 500; line-height: 1; color: rgba(241,234,216,0.7); text-decoration: none; min-height: 44px; overflow: hidden; transition: color 0.15s, background 0.15s; }
.ofc-app__nav-item svg { width: 14px; height: 14px; flex-shrink: 0; }
.ofc-app__nav-item > span { flex: 1; min-width: 0; font-size: 13px; font-weight: 500; line-height: 1.2; }
@media (hover: hover) { .ofc-app__nav-item:hover { color: var(--ofc-text-on-chrome); background: rgba(241,234,216,0.06); } }
.ofc-app__nav-item.is-active { background: rgba(241,234,216,0.1); color: var(--ofc-text-on-chrome); font-weight: 600; border-radius: 0; }
.ofc-app__nav-item.is-active::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 3px; background: var(--ofc-nav-accent); }
.ofc-app__nav-badge { margin-left: auto; background: var(--ofc-meadow); color: #fff; font-size: 9px; padding: 2px 6px; border-radius: 8px; font-weight: 700; }

/* Accordion nav (collapse-down, one open at a time) */
.ofc-nav-acc__btn { width: 100%; background: none; border: none; font-family: inherit; font-size: 12px; font-weight: 500; text-align: left; cursor: pointer; }
.ofc-nav-acc__chev { width: 13px !important; height: 13px !important; margin-left: auto; flex-shrink: 0; transition: transform 0.18s ease; }
.ofc-nav-acc__spacer { width: 13px; flex-shrink: 0; margin-left: auto; }
.ofc-nav-acc.is-open > .ofc-nav-acc__btn .ofc-nav-acc__chev { transform: rotate(180deg); }
.ofc-nav-acc__panel { display: none; }
.ofc-nav-acc.is-open > .ofc-nav-acc__panel { display: block; }
/* Option B: open sub-list = recessed dark panel + tan left spine */
.ofc-nav-acc__panel { position: relative; background: var(--ofc-chrome-recess); }
.ofc-nav-acc__panel::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: rgba(201,168,117,0.4); }
.ofc-nav-sub { font-size: 12px; color: rgba(241,234,216,0.62); padding-left: 22px; min-height: 40px; }
.ofc-nav-sub > span { flex: 1; min-width: 0; font-size: 12px; }
.ofc-nav-sub__mark { width: 14px !important; height: 14px !important; flex-shrink: 0; opacity: 0.5; }
.ofc-nav-sub.is-active .ofc-nav-sub__mark { opacity: 1; }
.ofc-app__nav-item.is-disabled { opacity: 0.38; cursor: default; }
@media (hover: hover) { .ofc-app__nav-item.is-disabled:hover { background: none; color: rgba(241,234,216,0.7); } }
@media (prefers-reduced-motion: reduce) { .ofc-nav-acc__chev { transition: none; } }
.ofc-app__main { display: flex; flex-direction: column; min-width: 0; min-height: 100vh; }
.ofc-app__header { background: var(--ofc-card); border-bottom: 1px solid var(--ofc-border); display: flex; flex-direction: column; position: sticky; top: 0; z-index: 20; }
.ofc-app__topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 28px; border-bottom: 1px solid var(--ofc-divider); min-height: 52px; }
.ofc-app__topbar-l { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ofc-app__topbar-r { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.ofc-crumbs { display: flex; align-items: center; gap: 6px; min-width: 0; flex-wrap: nowrap; overflow: hidden; }
.ofc-crumbs__item { font-size: 12.5px; font-weight: 500; color: var(--ofc-text-tertiary); text-decoration: none; white-space: nowrap; transition: color 0.15s; }
.ofc-crumbs__item:not(.ofc-crumbs__item--current):hover { color: var(--ofc-text-primary); }
.ofc-crumbs__item--current { color: var(--ofc-text-primary); font-weight: 600; }
.ofc-crumbs__sep { width: 13px; height: 13px; color: var(--ofc-text-muted); flex-shrink: 0; }
.ofc-app__search { position: relative; display: flex; align-items: center; }
.ofc-app__search svg { position: absolute; left: 11px; width: 15px; height: 15px; color: var(--ofc-text-tertiary); pointer-events: none; }
.ofc-app__search input { width: 240px; height: 36px; padding: 0 34px 0 34px; background: var(--ofc-card-alt); border: 1px solid var(--ofc-border); border-radius: var(--ofc-r-sm); font-family: var(--ofc-sans); font-size: 13px; color: var(--ofc-text-primary); transition: border-color 0.15s, background 0.15s; }
.ofc-app__search input::placeholder { color: var(--ofc-text-muted); }
.ofc-app__search input:focus { outline: none; border-color: var(--ofc-meadow); background: var(--ofc-card); }
.ofc-app__search input:disabled { cursor: not-allowed; opacity: 0.7; }
.ofc-app__search-kbd { position: absolute; right: 9px; font-family: var(--ofc-mono); font-size: 10px; color: var(--ofc-text-tertiary); background: var(--ofc-card); padding: 2px 6px; border: 1px solid var(--ofc-border); border-radius: var(--ofc-r-xs); pointer-events: none; }
.ofc-app__iconbtn { position: relative; width: 36px; height: 36px; display: grid; place-items: center; background: none; border: 1px solid transparent; border-radius: var(--ofc-r-sm); color: var(--ofc-text-secondary); cursor: pointer; transition: background 0.15s, color 0.15s; }
.ofc-app__iconbtn svg { width: 18px; height: 18px; }
.ofc-app__iconbtn:disabled { cursor: not-allowed; }
@media (hover: hover) { .ofc-app__iconbtn:not(:disabled):hover { background: var(--ofc-card-alt); color: var(--ofc-text-primary); } }
.ofc-app__iconbtn-dot { position: absolute; top: 7px; right: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--ofc-meadow); border: 1.5px solid var(--ofc-card); }
.ofc-app__contextbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 28px; min-height: 64px; }
.ofc-app__context-l { display: flex; align-items: center; gap: 14px; min-width: 0; }
.ofc-app__title { font-family: var(--ofc-display); font-size: 22px; font-weight: 700; letter-spacing: -0.005em; line-height: 1.2; text-wrap: balance; }
.ofc-app__meta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.ofc-app__actions { display: flex; gap: 8px; flex-shrink: 0; }
.ofc-app__body { padding: 28px; flex: 1; }
.ofc-app__footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 28px; border-top: 1px solid var(--ofc-border); background: var(--ofc-card); flex-shrink: 0; }
.ofc-app__footer-copy { font-size: 12px; color: var(--ofc-text-tertiary); }
.ofc-app__footer-pill { font-size: 11px; font-weight: 600; letter-spacing: 0.02em; color: var(--ofc-text-secondary); background: var(--ofc-card-alt); border: 1px solid var(--ofc-border); padding: 5px 12px; border-radius: var(--ofc-r-pill); white-space: nowrap; text-decoration: none; transition: border-color 0.15s, color 0.15s; }
@media (hover: hover) { .ofc-app__footer-pill:hover { color: var(--ofc-text-primary); border-color: var(--ofc-border-strong); } }
.ofc-app__burger { display: none; background: none; border: none; color: var(--ofc-text-primary); padding: 8px; cursor: pointer; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.ofc-app__burger svg { width: 22px; height: 22px; }
.ofc-app__scrim { display: none; }

/* Page furniture */
.ofc-page-lede { font-size: 16px; line-height: 1.7; color: var(--ofc-text-secondary); max-width: 680px; text-wrap: balance; margin-bottom: 24px; }
.ofc-page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.ofc-page-title { font-family: var(--ofc-display); font-size: 24px; font-weight: 700; line-height: 1.2; margin: 0 0 6px; color: var(--ofc-text-primary); text-wrap: balance; }
.ofc-page-sub { font-size: 14px; line-height: 1.6; color: var(--ofc-text-tertiary); margin: 0; max-width: 680px; text-wrap: balance; }
@media (max-width: 768px) { .ofc-page-head { margin-bottom: 20px; } .ofc-page-title { font-size: 20px; } }
.ofc-grid { display: grid; gap: 16px; }
.ofc-grid--stats { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.ofc-section-title { font-family: var(--ofc-display); font-size: 18px; font-weight: 700; margin: 32px 0 14px; }
.ofc-section-title:first-child { margin-top: 0; }

/* ---- 4. RESPONSIVE (320 / 375 / 768 / 1024 / 1280 / 1480) -- */
@media (max-width: 1024px) {
  .ofc-app { grid-template-columns: 1fr; }
  .ofc-app__sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 256px; max-width: 84vw; z-index: 60; transform: translateX(-100%); transition: transform 0.22s ease; }
  .ofc-app.is-nav-open .ofc-app__sidebar { transform: translateX(0); }
  .ofc-app.is-nav-open .ofc-app__scrim { display: block; position: fixed; inset: 0; background: rgba(31,24,18,0.45); z-index: 55; }
  .ofc-app__burger { display: inline-flex; }
  .ofc-app__topbar { padding: 8px 16px; }
  .ofc-app__contextbar { padding: 14px 16px; }
  .ofc-app__body { padding: 16px; } .ofc-app__footer { padding: 14px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .ofc-app__sidebar { transition: none; }
}
@media (max-width: 768px) {
  .ofc-app__topbar { padding: 8px 16px; }
  .ofc-app__contextbar { padding: 14px 16px; flex-wrap: wrap; }
  .ofc-app__title { font-size: 19px; }
  .ofc-app__search input { width: 150px; }
  .ofc-app__search-kbd { display: none; }
  .ofc-app__body { padding: 16px; } .ofc-app__footer { padding: 14px 16px; }
  .ofc-grid { gap: 12px; }
}
@media (max-width: 375px) {
  .ofc-app__topbar { padding: 8px 12px; }
  .ofc-app__contextbar { padding: 12px 12px; }
  .ofc-app__body { padding: 12px; } .ofc-app__footer { padding: 12px; flex-direction: column; gap: 8px; align-items: flex-start; }
  .ofc-app__title { font-size: 18px; }
  .ofc-app__search { display: none; }
  .ofc-crumbs__item:not(.ofc-crumbs__item--current) { display: none; }
  .ofc-crumbs__sep { display: none; }
  .ofc-app__actions .ofc-btn span { display: none; }
  .ofc-app__actions .ofc-btn { padding: 0; width: 38px; }
}

/* ============ Orders: single-order view ============ */
.ofc-card-section { background: var(--ofc-card); border: 1px solid var(--ofc-border); border-radius: var(--ofc-r-lg); }
.ofc-card-section__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--ofc-divider); }
.ofc-card-section__title { font-family: var(--ofc-display); font-size: 16px; font-weight: 700; margin: 0; }
.ofc-card-section__meta { font-size: 12px; color: var(--ofc-text-tertiary); }
.ofc-fq-count { font-family: var(--ofc-mono); font-size: 12px; font-weight: 700; background: #fff; border: 1px solid var(--ofc-border); padding: 2px 9px; border-radius: var(--ofc-r-pill); font-variant-numeric: tabular-nums; }
.ofc-card-section__body { padding: 16px 20px; }

.ofc-order-line { display: grid; grid-template-columns: 1fr auto auto auto; gap: 14px; padding: 12px 0; border-top: 1px solid var(--ofc-divider); align-items: center; }
.ofc-order-line:first-of-type { border-top: 0; padding-top: 4px; }
.ofc-order-line__title { font-weight: 600; font-size: 13.5px; }
.ofc-order-line__sub { font-size: 11.5px; color: var(--ofc-text-tertiary); margin-top: 2px; }
.ofc-order-line__qty, .ofc-order-line__price { font-family: var(--ofc-mono); font-variant-numeric: tabular-nums; font-size: 13px; color: var(--ofc-text-secondary); }
.ofc-order-line__total { font-family: var(--ofc-mono); font-variant-numeric: tabular-nums; font-weight: 700; font-size: 14px; min-width: 70px; text-align: right; }

.ofc-suborder-link { display: flex; align-items: center; padding: 12px 14px; background: var(--ofc-card-alt); border: 1px solid var(--ofc-border); border-radius: 6px; text-decoration: none; color: var(--ofc-text-primary); margin-bottom: 8px; font-size: 13px; }
.ofc-suborder-link:last-child { margin-bottom: 0; }
@media (hover: hover) { .ofc-suborder-link:hover { border-color: var(--ofc-meadow); } }

.ofc-timeline { list-style: none; margin: 0; padding: 0; }
.ofc-timeline li { display: flex; gap: 14px; padding: 8px 0; position: relative; }
.ofc-timeline li:not(:last-child)::before { content: ""; position: absolute; left: 4.5px; top: 22px; width: 1px; height: calc(100% - 8px); background: var(--ofc-border); }
.ofc-timeline__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ofc-meadow); flex-shrink: 0; margin-top: 7px; box-shadow: 0 0 0 3px var(--ofc-meadow-tint); position: relative; z-index: 1; }
.ofc-timeline__main { font-size: 13px; font-weight: 600; }
.ofc-timeline__sub { font-size: 11.5px; color: var(--ofc-text-tertiary); margin-top: 2px; }

.ofc-rail-card__title { font-family: var(--ofc-display); font-size: 14px; font-weight: 700; margin: 0 0 12px; }
.ofc-rail-meta { display: grid; grid-template-columns: 90px 1fr; gap: 6px 12px; font-size: 13px; margin: 0; }
.ofc-rail-meta dt { color: var(--ofc-text-tertiary); }
.ofc-rail-meta dd { margin: 0; word-break: break-word; }
.ofc-rail-totals { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.ofc-rail-totals > div { display: flex; justify-content: space-between; }
.ofc-rail-totals__grand { padding-top: 8px; border-top: 1px solid var(--ofc-divider); margin-top: 4px; font-size: 14px; }

/* ============ Orders: refund full-page surface ============ */
.ofc-refund-grid { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 20px; align-items: start; }
@media (max-width: 900px) { .ofc-refund-grid { grid-template-columns: 1fr; } }
.ofc-rf-sticky { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 900px) { .ofc-rf-sticky { position: static; } }

.ofc-refund-line { display: grid; grid-template-columns: 22px 1fr 160px 90px; gap: 14px; padding: 12px 0; border-top: 1px solid var(--ofc-divider); align-items: center; }
.ofc-refund-line:first-of-type { border-top: 0; padding-top: 4px; }
.ofc-rf-chk { width: 18px; height: 18px; cursor: pointer; }
.ofc-rf-qty { width: 100%; height: 34px; padding: 0 8px; background: var(--ofc-card); border: 1px solid var(--ofc-border-strong); border-radius: var(--ofc-r-sm); font-family: var(--ofc-mono); font-size: 13px; text-align: right; }
.ofc-rf-qty:disabled { background: var(--ofc-card-alt); color: var(--ofc-text-muted); cursor: not-allowed; }
.ofc-rf-linetotal { font-family: var(--ofc-mono); font-variant-numeric: tabular-nums; font-weight: 700; font-size: 14px; text-align: right; color: var(--ofc-text-muted); text-decoration: line-through; }
.ofc-refund-policy { background: var(--ofc-warning-tint); color: var(--ofc-warning); border-left: 3px solid var(--ofc-warning); padding: 6px 10px; font-size: 11.5px; border-radius: 4px; margin: 2px 0 8px 36px; }

.ofc-fate-picker { display: flex; flex-direction: column; gap: 8px; }
.ofc-fate-opt { display: block; padding: 12px 14px; border: 1px solid var(--ofc-border-strong); border-radius: var(--ofc-r-sm); cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.ofc-fate-opt.is-on { border-color: var(--ofc-meadow); background: var(--ofc-meadow-tint); }
@media (hover: hover) { .ofc-fate-opt:hover { border-color: var(--ofc-border-strong); background: var(--ofc-card-alt); } .ofc-fate-opt.is-on:hover { background: var(--ofc-meadow-tint); } }
.ofc-fate-opt__title { font-weight: 600; font-size: 13.5px; }
.ofc-fate-opt__sub { font-size: 12px; color: var(--ofc-text-tertiary); margin-top: 3px; }

/* ============ Orders: pack screen ============ */
.ofc-pack-grid { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 20px; align-items: start; }
@media (max-width: 900px) { .ofc-pack-grid { grid-template-columns: 1fr; } }
.ofc-pk-sticky { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 900px) { .ofc-pk-sticky { position: static; } }

.ofc-pack-progress { background: var(--ofc-card); border: 1px solid var(--ofc-border); border-radius: var(--ofc-r-lg); padding: 14px 18px; margin-bottom: 16px; }
.ofc-pack-progress__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ofc-pack-progress__title { font-weight: 700; font-size: 14px; }
.ofc-pack-progress__count { font-family: var(--ofc-mono); font-size: 13px; color: var(--ofc-text-secondary); font-variant-numeric: tabular-nums; }
.ofc-pack-progress__bar { height: 8px; background: var(--ofc-card-alt); border-radius: var(--ofc-r-pill); overflow: hidden; }
.ofc-pack-progress__fill { height: 100%; background: var(--ofc-meadow); transition: width 0.2s ease; border-radius: var(--ofc-r-pill); }

.ofc-pack-line { background: var(--ofc-card); border: 1px solid var(--ofc-border); border-radius: var(--ofc-r-lg); margin-bottom: 12px; overflow: hidden; transition: border-color 0.15s; }
.ofc-pack-line:has(.ofc-pk-tick:checked) { border-color: var(--ofc-success); }
.ofc-pack-line__head { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; padding: 14px 18px; align-items: center; }
.ofc-pack-line__check { position: relative; cursor: pointer; }
.ofc-pack-line__check input { position: absolute; opacity: 0; cursor: pointer; }
.ofc-pack-line__check span { display: grid; place-items: center; width: 26px; height: 26px; border: 2px solid var(--ofc-border-strong); border-radius: 50%; background: var(--ofc-card); transition: all 0.12s; }
.ofc-pack-line__check input:checked + span { background: var(--ofc-success); border-color: var(--ofc-success); }
.ofc-pack-line__check input:checked + span::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); margin-top: -2px; }
.ofc-pack-line__title { font-weight: 600; font-size: 14px; }
.ofc-pack-line__sub { font-size: 11.5px; color: var(--ofc-text-tertiary); margin-top: 2px; }
.ofc-pack-line__price { font-family: var(--ofc-mono); font-variant-numeric: tabular-nums; text-align: right; min-width: 90px; }
.ofc-pack-line__price__live { font-weight: 700; font-size: 15px; }
.ofc-pack-line__price__est { font-size: 11px; color: var(--ofc-text-tertiary); font-weight: 400; margin-top: 1px; }
.ofc-pack-line__body { padding: 14px 18px 16px 58px; border-top: 1px solid var(--ofc-divider); background: var(--ofc-card); }
.ofc-pack-line:has(.ofc-pk-tick:checked) .ofc-pack-line__body { background: rgba(92,122,58,0.04); }

.ofc-pk-row { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: center; margin-bottom: 10px; }
.ofc-pk-row:last-child { margin-bottom: 0; }
.ofc-pk-row__label { font-size: 11px; color: var(--ofc-text-tertiary); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; }
.ofc-pk-row__value { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ofc-pk-rate { font-size: 12px; color: var(--ofc-text-muted); }

.ofc-kg-input { display: inline-flex; align-items: center; background: var(--ofc-card); border: 1px solid var(--ofc-border-strong); border-radius: var(--ofc-r-sm); overflow: hidden; }
.ofc-kg-input input { width: 100px; padding: 8px 10px; border: 0; font-family: var(--ofc-mono); font-size: 16px; font-weight: 600; text-align: right; background: transparent; }
.ofc-kg-input input:focus { outline: none; }
.ofc-kg-input__unit { padding: 8px 12px; background: var(--ofc-card-alt); border-left: 1px solid var(--ofc-border); font-family: var(--ofc-mono); font-size: 13px; color: var(--ofc-text-secondary); }

.ofc-pk-batch { padding: 8px 10px; border: 1px solid var(--ofc-border-strong); border-radius: var(--ofc-r-sm); background: var(--ofc-card); font-family: var(--ofc-sans); font-size: 13px; min-width: 240px; }

.ofc-pk-delta { padding: 4px 8px; border-radius: var(--ofc-r-sm); font-size: 12px; font-weight: 600; font-family: var(--ofc-mono); display: inline-block; }
.ofc-pk-delta.is-up   { background: var(--ofc-warning-tint); color: var(--ofc-warning); }
.ofc-pk-delta.is-down { background: var(--ofc-success-tint); color: var(--ofc-success); }

.ofc-pk-adj { background: var(--ofc-card-alt); border: 1px solid var(--ofc-border); border-radius: var(--ofc-r-sm); padding: 14px; margin-top: 14px; }
.ofc-pk-adj.is-charge { background: var(--ofc-warning-tint); border-color: rgba(184,118,26,0.3); }
.ofc-pk-adj.is-refund { background: var(--ofc-success-tint); border-color: rgba(92,122,58,0.3); }
.ofc-pk-adj__lbl    { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ofc-text-tertiary); font-weight: 700; }
.ofc-pk-adj.is-charge .ofc-pk-adj__lbl, .ofc-pk-adj.is-refund .ofc-pk-adj__lbl { color: inherit; }
.ofc-pk-adj__amount { font-family: var(--ofc-mono); font-size: 22px; font-weight: 700; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.ofc-pk-adj__sub    { font-size: 11.5px; color: var(--ofc-text-secondary); }
.ofc-pk-adj.is-charge .ofc-pk-adj__sub, .ofc-pk-adj.is-refund .ofc-pk-adj__sub { color: inherit; opacity: 0.9; }

/* ============ Quantity stepper (refund + future uses) ============ */
.ofc-qty-stepper__row { display: flex; align-items: stretch; border: 1px solid var(--ofc-border-strong); border-radius: var(--ofc-r-sm); background: var(--ofc-card); overflow: hidden; }
.ofc-qty-stepper__btn { background: var(--ofc-card-alt); border: 0; padding: 0; width: 36px; cursor: pointer; display: grid; place-items: center; color: var(--ofc-text-primary); transition: background 0.12s, color 0.12s; }
.ofc-qty-stepper__btn[disabled] { background: transparent; color: var(--ofc-text-muted); cursor: not-allowed; }
@media (hover: hover) { .ofc-qty-stepper__btn:not([disabled]):hover { background: var(--ofc-meadow); color: #fff; } }
.ofc-qty-stepper__btn svg { width: 16px; height: 16px; }
.ofc-qty-stepper__row .ofc-rf-qty { flex: 1; min-width: 0; width: auto; border: 0; border-left: 1px solid var(--ofc-border); border-right: 1px solid var(--ofc-border); border-radius: 0; background: transparent; text-align: center; padding: 0 4px; font-family: var(--ofc-mono); font-size: 14px; font-weight: 600; height: 36px; line-height: 36px; -moz-appearance: textfield; }
.ofc-qty-stepper__row .ofc-rf-qty::-webkit-inner-spin-button, .ofc-qty-stepper__row .ofc-rf-qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.ofc-qty-stepper__row .ofc-rf-qty:disabled { background: var(--ofc-card-alt); color: var(--ofc-text-muted); }

/* ============ Order creation: channel picker ============ */
.ofc-channel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; max-width: 1100px; }
.ofc-channel-tile { background: var(--ofc-card); border: 1px solid var(--ofc-border); border-radius: var(--ofc-r-lg); padding: 24px; display: flex; flex-direction: column; min-height: 240px; }
.ofc-channel-tile.is-action { border-color: var(--ofc-meadow); box-shadow: 0 0 0 1px var(--ofc-meadow); }
.ofc-channel-tile__icon { color: var(--ofc-meadow); margin-bottom: 14px; }
.ofc-channel-tile.is-info .ofc-channel-tile__icon { color: var(--ofc-text-tertiary); }
.ofc-channel-tile__title { font-family: var(--ofc-display); font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.ofc-channel-tile__sub { font-size: 13px; color: var(--ofc-text-secondary); margin: 0 0 18px; line-height: 1.5; flex: 1; }
.ofc-channel-tile__foot { display: flex; gap: 8px; }

/* ============ Order creation: phone form ============ */
.ofc-search-results { position: absolute; top: 100%; left: 0; right: 0; background: var(--ofc-card); border: 1px solid var(--ofc-border-strong); border-radius: var(--ofc-r-sm); margin-top: 4px; max-height: 320px; overflow-y: auto; z-index: 20; box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.ofc-search-result { display: flex; align-items: center; gap: 12px; padding: 10px 12px; cursor: pointer; border-bottom: 1px solid var(--ofc-divider); }
.ofc-search-result:last-child { border-bottom: 0; }
@media (hover: hover) { .ofc-search-result:hover { background: var(--ofc-meadow-tint); } }

.ofc-method-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px; }
.ofc-method-opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--ofc-border-strong); border-radius: var(--ofc-r-sm); cursor: pointer; transition: border-color 0.12s, background 0.12s; color: var(--ofc-text-primary); }
.ofc-method-opt > svg { color: var(--ofc-text-tertiary); flex-shrink: 0; }
.ofc-method-opt.is-on { border-color: var(--ofc-meadow); background: var(--ofc-meadow-tint); }
.ofc-method-opt.is-on > svg { color: var(--ofc-meadow); }
@media (hover: hover) { .ofc-method-opt:not(.is-on):hover { background: var(--ofc-card-alt); } }
.ofc-method-opt__title { font-weight: 600; font-size: 13.5px; }
.ofc-method-opt__sub { font-size: 11.5px; color: var(--ofc-text-tertiary); margin-top: 2px; }

.ofc-basket-brand { background: var(--ofc-card-alt); border: 1px solid var(--ofc-border); border-radius: var(--ofc-r-sm); padding: 10px 12px; margin-bottom: 10px; }
.ofc-basket-brand:last-child { margin-bottom: 0; }
.ofc-basket-brand__head { margin-bottom: 8px; }
.ofc-basket-line { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--ofc-divider); }
.ofc-basket-brand .ofc-basket-line:first-of-type { border-top: 0; padding-top: 4px; }
.ofc-basket-line__byweight { display: flex; flex-direction: column; gap: 2px; width: 130px; }
.ofc-btn-icon { background: transparent; border: 0; padding: 6px; border-radius: var(--ofc-r-sm); cursor: pointer; color: var(--ofc-text-tertiary); display: grid; place-items: center; }
@media (hover: hover) { .ofc-btn-icon:hover { background: var(--ofc-critical-tint); color: var(--ofc-critical); } }

.ofc-input { padding: 8px 10px; border: 1px solid var(--ofc-border-strong); border-radius: var(--ofc-r-sm); background: var(--ofc-card); font-family: var(--ofc-sans); font-size: 13px; width: 100%; }
.ofc-input:focus { outline: none; border-color: var(--ofc-meadow); }
.ofc-new-cust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ofc-new-cust-grid label { display: block; }
.ofc-new-cust-grid label > span { display: block; font-size: 11px; color: var(--ofc-text-tertiary); margin-bottom: 3px; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }

/* ============ Single order: header actions ============ */
.ofc-order-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--ofc-divider); }

/* ============ Phone form: pick tabs ============ */
.ofc-pick-tabs { display: flex; gap: 4px; background: var(--ofc-card-alt); border: 1px solid var(--ofc-border); border-radius: var(--ofc-r-sm); padding: 4px; margin-bottom: 12px; width: fit-content; }
.ofc-pick-tab { background: transparent; border: 0; padding: 8px 14px; font-family: var(--ofc-sans); font-size: 13px; font-weight: 600; color: var(--ofc-text-secondary); border-radius: var(--ofc-r-sm); cursor: pointer; display: flex; align-items: center; gap: 6px; }
.ofc-pick-tab.is-on { background: var(--ofc-meadow); color: #fff; }
@media (hover: hover) { .ofc-pick-tab:not(.is-on):hover { background: #fff; } }
.ofc-pick-tab svg { width: 14px; height: 14px; }

/* ============ Phone form: browse mode ============ */
.ofc-browse { background: var(--ofc-card-alt); border: 1px solid var(--ofc-border); border-radius: var(--ofc-r-sm); overflow: hidden; }
.ofc-browse__filters { display: flex; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--ofc-border); flex-wrap: wrap; }
.ofc-browse__filters .ofc-select { max-width: 200px; }
.ofc-browse__layout { display: grid; grid-template-columns: 220px 1fr; min-height: 480px; }
@media (max-width: 900px) { .ofc-browse__layout { grid-template-columns: 1fr; } }
.ofc-browse__cats { background: var(--ofc-card); border-right: 1px solid var(--ofc-border); padding: 8px; overflow-y: auto; max-height: 580px; }
.ofc-browse__cat { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 8px 10px; background: transparent; border: 0; border-radius: var(--ofc-r-sm); cursor: pointer; font-family: var(--ofc-sans); font-size: 13px; color: var(--ofc-text-primary); text-align: left; gap: 8px; margin-bottom: 2px; }
.ofc-browse__cat.is-on { background: var(--ofc-meadow); color: #fff; font-weight: 600; }
@media (hover: hover) { .ofc-browse__cat:not(.is-on):hover { background: var(--ofc-card-alt); } }
.ofc-browse__cat__count { font-family: var(--ofc-mono); font-size: 11px; color: var(--ofc-text-tertiary); }
.ofc-browse__cat.is-on .ofc-browse__cat__count { color: rgba(255,255,255,0.7); }
.ofc-browse__cat__group { padding: 9px 12px; margin: 10px 0 6px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ofc-text-on-chrome); font-weight: 800; background: var(--ofc-chrome); border-radius: var(--ofc-r-sm); }
.ofc-browse__cat__group:first-child { margin-top: 0; }
.ofc-browse__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: start; align-items: start; gap: 10px; padding: 12px; overflow-y: auto; max-height: 580px; }
@media (max-width: 900px) { .ofc-browse__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .ofc-browse__grid { grid-template-columns: 1fr; } }

.ofc-prod-card { background: var(--ofc-card); border: 1px solid var(--ofc-border); border-radius: var(--ofc-r-sm); padding: 12px; cursor: pointer; transition: border-color 0.12s, box-shadow 0.12s; }
@media (hover: hover) { .ofc-prod-card:not(.is-open):hover { border-color: var(--ofc-meadow); } }
.ofc-prod-card.is-open { border-color: var(--ofc-meadow); box-shadow: 0 0 0 1px var(--ofc-meadow); cursor: default; }
.ofc-prod-card__head { display: flex; align-items: flex-start; gap: 10px; }
.ofc-prod-card__thumb { width: 40px; height: 40px; background: var(--ofc-card-alt); border-radius: var(--ofc-r-sm); display: grid; place-items: center; color: var(--ofc-text-tertiary); flex-shrink: 0; }
.ofc-prod-card__title { font-weight: 600; font-size: 13px; line-height: 1.3; }
.ofc-prod-card__price { margin-top: 10px; font-family: var(--ofc-mono); font-weight: 700; font-size: 14px; }
.ofc-prod-card__variants { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--ofc-divider); display: flex; flex-direction: column; gap: 6px; }
.ofc-prod-card__variant { display: flex; align-items: center; gap: 8px; padding: 6px; background: var(--ofc-card-alt); border-radius: var(--ofc-r-sm); }
.ofc-prod-card__add.is-just-added { background: var(--ofc-success) !important; }

/* ============ Pack screen: weight input with unit toggle ============ */
.ofc-weight-input { display: inline-flex; align-items: center; gap: 6px; }
.ofc-pk-weight-display { width: 92px; padding: 6px 10px; border: 1px solid var(--ofc-border-strong); border-radius: var(--ofc-r-sm); background: var(--ofc-card); font-family: var(--ofc-mono); font-size: 15px; font-weight: 700; text-align: right; color: var(--ofc-text-primary); -moz-appearance: textfield; height: 34px; }
.ofc-pk-weight-display::-webkit-inner-spin-button, .ofc-pk-weight-display::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.ofc-pk-weight-display:focus { outline: none; border-color: var(--ofc-meadow); box-shadow: 0 0 0 1px var(--ofc-meadow); }
.ofc-weight-unit-toggle { display: inline-flex; gap: 2px; padding: 2px; background: var(--ofc-card-alt); border-radius: var(--ofc-r-sm); height: 26px; }
.ofc-weight-unit { background: transparent; border: 0; padding: 0 9px; font-family: var(--ofc-sans); font-size: 11px; font-weight: 600; color: var(--ofc-text-tertiary); cursor: pointer; border-radius: 3px; transition: background 0.12s, color 0.12s; height: 22px; line-height: 22px; }
.ofc-weight-unit.is-on { background: var(--ofc-card); color: var(--ofc-text-primary); box-shadow: 0 1px 2px rgba(0,0,0,0.06); }
@media (hover: hover) { .ofc-weight-unit:not(.is-on):hover { color: var(--ofc-text-primary); } }

/* ============ Phone form: address block ============ */
.ofc-addr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ofc-addr-grid label { display: block; }
.ofc-addr-grid label > span { display: block; font-size: 11px; color: var(--ofc-text-tertiary); margin-bottom: 3px; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }
.ofc-addr-grid textarea.ofc-input { resize: vertical; font-family: var(--ofc-sans); }
@media (max-width: 700px) { .ofc-addr-grid { grid-template-columns: 1fr; } .ofc-addr-grid label[style*="span 2"] { grid-column: span 1 !important; } }

.ofc-addr-card { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--ofc-card); border: 1px solid var(--ofc-border-strong); border-radius: var(--ofc-r-sm); cursor: pointer; transition: border-color 0.12s, background 0.12s; font-family: var(--ofc-sans); }
@media (hover: hover) { .ofc-addr-card:hover { border-color: var(--ofc-meadow); background: var(--ofc-meadow-tint); } }
.ofc-addr-card--new { background: var(--ofc-card-alt); border-style: dashed; justify-content: center; color: var(--ofc-text-secondary); }
@media (hover: hover) { .ofc-addr-card--new:hover { color: var(--ofc-meadow); } }

/* ============ Collection queue: aligned columns across slots ============ */
.ofc-table--collection { table-layout: fixed; width: 100%; }
.ofc-table--collection td, .ofc-table--collection th { overflow: hidden; text-overflow: ellipsis; }
.ofc-table--collection td > div { overflow: hidden; text-overflow: ellipsis; }

/* ============ Order view: refund / cancel banners ============ */
.ofc-order-banner { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; border-radius: var(--ofc-r-lg); margin-bottom: 0; border: 1px solid; }
.ofc-order-banner__icon { flex-shrink: 0; margin-top: 2px; }
.ofc-order-banner__title { font-family: var(--ofc-display); font-size: 16px; font-weight: 700; line-height: 1.3; }
.ofc-order-banner__sub { font-size: 13px; line-height: 1.5; margin-top: 4px; opacity: 0.85; }
.ofc-order-banner--refunded { background: var(--ofc-critical-tint); border-color: rgba(166,53,43,0.35); color: var(--ofc-critical); }
.ofc-order-banner--cancelled { background: var(--ofc-card-alt); border-color: var(--ofc-border-strong); color: var(--ofc-text-secondary); }
.ofc-order-banner--partial { background: var(--ofc-warning-tint); border-color: rgba(199,114,33,0.35); color: var(--ofc-warning); }

/* Greyed-out header treatment when order is in a terminal state. */
.ofc-prof__header.is-terminal .ofc-prof__title { color: var(--ofc-text-muted); }
.ofc-prof__header.is-terminal .ofc-prof__eyebrow { color: var(--ofc-text-muted); }

/* ============ Pack screen: auto-save indicator ============ */
.ofc-pk-save-status { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: var(--ofc-r-pill); background: var(--ofc-success-tint); color: var(--ofc-success); font-size: 12px; font-weight: 600; line-height: 1; }
.ofc-pk-save-status[data-state="saving"] { background: var(--ofc-card-alt); color: var(--ofc-text-secondary); }
.ofc-pk-save-status[data-state="saving"] svg { animation: ofc-spin 0.8s linear infinite; }
.ofc-pk-save-status[data-state="error"] { background: var(--ofc-critical-tint); color: var(--ofc-critical); }
@keyframes ofc-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ============ Order view: group order rail card ============ */
.ofc-rail-card--group { border-left: 3px solid var(--ofc-meadow); }
.ofc-suborder-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid rgba(92,122,58,0.25); border-radius: var(--ofc-r-sm); text-decoration: none; color: var(--ofc-text-primary); background: var(--ofc-meadow-tint); transition: border-color 0.12s, background 0.12s, transform 0.06s; }
@media (hover: hover) { .ofc-suborder-row:hover { border-color: var(--ofc-meadow); background: rgba(92,122,58,0.18); } }
.ofc-suborder-row:active { transform: translateY(1px); }
/* Pills inside a green sub-order row need a white backing so they remain
   legible against the tinted parent. The semantic colour drops to the
   text + 1px border. */
.ofc-suborder-row .ofc-pill { background: var(--ofc-card) !important; border: 1px solid currentColor; }

/* ============ Refund visual treatment (rows + line items) ============ */
.ofc-table--clickable tr.is-refunded { background: rgba(166,53,43,0.04); }
.ofc-table--clickable tr.is-refunded td { color: var(--ofc-text-secondary); }
.ofc-table--clickable tr.is-partial-refund { background: rgba(199,114,33,0.04); }
@media (hover: hover) {
  .ofc-table--clickable tr.is-refunded:hover { background: rgba(166,53,43,0.08); }
  .ofc-table--clickable tr.is-partial-refund:hover { background: rgba(199,114,33,0.08); }
}

.ofc-order-line.is-refunded,
.ofc-order-line.is-partial-refund { padding: 14px 14px 14px 11px; margin-top: 4px; border-top: 0; border-radius: var(--ofc-r-sm); }
.ofc-order-line.is-refunded:first-of-type,
.ofc-order-line.is-partial-refund:first-of-type { padding-top: 14px; }
.ofc-order-line.is-refunded { background: rgba(166,53,43,0.05); border-left: 3px solid var(--ofc-critical); }
.ofc-order-line.is-refunded .ofc-order-line__title,
.ofc-order-line.is-refunded .ofc-order-line__price,
.ofc-order-line.is-refunded .ofc-order-line__total { color: var(--ofc-text-secondary); }
.ofc-order-line.is-partial-refund { background: rgba(199,114,33,0.05); border-left: 3px solid var(--ofc-warning); }

/* Live/demo data lens (Option D, approved 28 Jul): quiet control,
   loud environment. The button switches; the amber strip under the
   topbar is the state - you cannot be in Demo without the page
   saying so. Rendered only on mode-aware pages. */
.ofc-dm-btn { font-family: var(--ofc-mono); font-size: 11px; font-weight: 700;
  letter-spacing: .06em; border: 1px solid var(--ofc-border-strong);
  background: var(--ofc-card); color: var(--ofc-text-secondary); border-radius: 6px;
  padding: 8px 12px; min-height: 36px; cursor: pointer; white-space: nowrap; }
@media (hover: hover) { .ofc-dm-btn:hover { border-color: var(--ofc-warning); color: var(--ofc-warning); } }
.ofc-dm-strip { display: flex; align-items: center; gap: 10px;
  background: var(--ofc-warning-tint); border-bottom: 1px solid var(--ofc-warning);
  padding: 7px 20px; font-size: 12.5px; color: var(--ofc-text-primary); }
.ofc-dm-strip b { font-family: var(--ofc-mono); font-size: 11px; letter-spacing: .06em;
  color: var(--ofc-warning); flex: none; }
@media (max-width: 700px) { .ofc-dm-strip { font-size: 12px; padding: 6px 12px; } .ofc-dm-btn { padding: 8px 10px; } }

/* ===== EVT-UI-01: event summary + edit (Claude Design mocks) ===== */
@media (max-width: 900px) { .ev-hero { grid-template-columns: 1fr !important; } .ev-hero-img { width: 100% !important; min-height: 150px; } .ev-sched-grid { grid-template-columns: 1fr 1fr !important; } .ev-tier-meta { grid-template-columns: 1fr 1fr !important; } }
@media (max-width: 768px) { .ev-actions { width: 100%; } .ev-actions .ofc-btn { flex: 1 1 auto; } }
@media (max-width: 640px) { .ev-settings { grid-template-columns: 1fr !important; } }
@media (max-width: 520px) { .ev-sched-grid { grid-template-columns: 1fr !important; } .ev-tier-head { grid-template-columns: auto 1fr auto !important; } .ev-tier-head .ev-tier-price { grid-column: 2 / -1; } }
@media (max-width: 1024px) { .ev-rail-sections { display: flex; flex-wrap: wrap; gap: 6px 14px; } .ev-rail-sections li { width: auto; } }
.ev-day { display: inline-flex; align-items: center; justify-content: center; min-width: 52px; min-height: 44px; padding: 0 14px; font-size: 13px; font-weight: 600; color: var(--ofc-text-secondary); background: var(--ofc-card); border: 1px solid var(--ofc-border-strong); border-radius: var(--ofc-r-pill); cursor: pointer; user-select: none; }
.ev-day input { position: absolute; opacity: 0; width: 0; height: 0; }
.ev-day.is-on { color: #fff; background: var(--ofc-meadow); border-color: var(--ofc-meadow); font-weight: 700; }
