/* ==========================================================================
   admin/css/office-pro.css — THE OFFICE, PRO (27 Oct 2026)

   The owner, 27 Oct: "then also update super outdated client dashboard/admin
   dashboard theme, pro experience", in a brief that asks for "such quality
   like ur TRILLIONAIRE ALREADY". docs/design/UNIVERSE.md, "The dashboards":

     · the black frame;
     · a floating dark island for the menu (280px, as before), each section
       led by its mark (the product marks where a section is one: Inbox,
       Clients, Money; drawn to match for the rest, admin/img/marks);
     · the work on the light sheet (#F4F4F2), the content on white cards;
     · tables of 44px rows, hairlines, sticky heads, right-aligned figures in
       tabular digits; a state is a small pill with a dot;
     · big Inter Tight figures under a small label; the greeting in the serif;
     · Jump to… (⌘K) a command palette in the island's style;
     · lime #C8F031 only as a fill or a light: on the sheet it sits behind
       black (the one action), on the island it may be a dot or a stroke.

   HOW IT IS BUILT. office.css draws every surface from its --o-* tokens and
   this file mostly re-points them: the roots (the frame, the island, what
   floats over the page in the island's style: the palette, a toast) keep
   the dark set, and the stage (.ofc-main) and the dialogs that belong to it
   take the light one. What office.css wrote as a literal (a white title, a
   white chosen tab) is answered below by name.

   IMPROVE, DON'T REMOVE (rule 6). Every rule here is under
   html:not([data-theme="classic"]): <html data-theme="classic"> brings the
   whole dark two-tone Office back exactly as it was, office.css untouched.

   Loaded last on every Office page (office.html, client.html, ads.html,
   ebay.html, social.html, workstation.html, changes.html, onboarding.html,
   client-health.html, watch.html). The Cloudflare record is frozen while
   Project A is paused (rule 27) and keeps the classic look.
   ========================================================================== */

/* ── 0. THE FRAME AND THE ISLAND: THE DARK SET, ON THE ROOTS ─────────────── */
html:not([data-theme="classic"]) :is(#office, #ads, #ebay) {
  --o-frame:  var(--u-frame);
  --o-chrome: var(--u-night);
  --o-bg:     var(--u-night);
  --o-panel:  var(--u-night);
  --o-inset:  var(--tk-grey-15);
  --o-raised: var(--tk-grey-14);
  --o-line:   var(--tk-grey-1a);
  --o-line-2: var(--u-night-line);
  --o-line-3: #3C3C3C;
  --o-text:   var(--tk-grey-f2);
  --o-dim:    #B5B5B5;
  --o-faint:  var(--tk-grey-8e);
  --o-rail-w: 17.5rem;
  --o-ease:   var(--u-ease);
  background: var(--u-frame);
}
html:not([data-theme="classic"]) body:has(:is(#office, #ads, #ebay)) { background: var(--u-frame); }

/* ── 1. THE STAGE: THE LIGHT SET ────────────────────────────────────────── */
/* On the stage and on what is opened from it over the page: the compose
   window, the stage picker, the day picker. Every name a sheet reads for
   "the ground" or "the ink" is set again here, where it is resolved: a
   custom property is computed where it is declared, so the roots' dark
   --app-text would reach the stage already dark. */
/* .ofc-drawer too (2 Nov): a drawer opened outside the stage (Social's Move to… and Settings) took the light sheet's
   white and kept the dark Office's greys, its close at 2.05:1 (social-desk-check). The dark side already lists it. */
html:not([data-theme="classic"]) :is(#office, #ads, #ebay) :is(.ofc-main, .ofc-compose-dlg, .ofc-stagepick, .ofc-daypick, .ofc-clientview__menu, .ofc-drawer) {
  color-scheme: light;
  --o-bg:          var(--u-sheet);
  --o-bg-2:        var(--u-sheet);
  --o-panel:       var(--u-card);
  --o-plane:       var(--u-card);
  --o-plane-edge:  #E8E8E5;
  --o-plane-hover: #FAFAF8;
  --o-inset:       #F6F6F4;
  --o-raised:      var(--u-card);
  --o-sunk:        var(--u-sheet);
  --o-hover:       rgba(10, 10, 10, 0.04);
  --o-press:       rgba(10, 10, 10, 0.07);
  --o-line:        #EDEDEA;
  --o-line-2:      var(--tk-warm-e2);
  --o-line-3:      var(--u-edge);
  --o-line-4:      var(--u-edge-hi);
  --o-text:        var(--u-ink);
  --o-strong:      var(--u-ink);
  --o-ink:         var(--u-ink);
  --o-dim:         var(--u-ink-2);
  --o-dim-2:       var(--tk-grey-4a);
  --o-faint:       var(--u-ink-3);
  --o-accent:      var(--u-ink);
  --o-accent-hi:   var(--u-ink);
  --o-accent-deep: var(--u-lime);
  --o-accent-wash: var(--tk-ink-a050);
  --o-on-accent:   var(--u-ink);
  --o-link:        var(--u-ink);
  --o-link-hi:     var(--tk-black);
  /* STATE ON LIGHT. INK for words (each over 4.5:1 on white and on its own
     wash), MARK for a dot, BG for a pill's ground. */
  --o-ok:          #0E7A47;   /* 5.39:1 on a card, 4.88:1 on its wash */
  --o-ok-mark:     var(--u-ok);
  --o-ok-bg:       #E9F7EF;
  --o-green-ink:   #0E7A47;
  --o-warn:        #E3A008;   /* needs attention: a mark */
  --o-warn-ink:    #8A5A00;   /* 5.93:1 on a card, 5.46:1 on its wash */
  --o-warn-bg:     #FFF5DB;
  --o-bad:         #B93A12;   /* 5.71:1 on a card, 5.10:1 on its wash */
  --o-bad-mark:    var(--u-warn);
  --o-bad-bg:      #FFEFE8;
  --o-neutral:     var(--u-edge);
  --o-depth:       var(--u-lift);
  --o-r:           var(--u-r-control);
  --o-r-sm:        var(--u-r-chip);
  --o-r-lg:        var(--u-r-card);
  /* What other sheets call the ground and the ink. */
  --paper:      var(--u-sheet);
  --paper-2:    var(--u-sheet);
  --paper-3:    #EDEDEA;
  --in-bg:      var(--u-sheet);
  --app-bg:     var(--u-sheet);
  --app-surface: var(--u-card);
  --app-raised: #F6F6F4;
  --app-text:   var(--u-ink);
  --app-mute:   var(--u-ink-3);
  --app-line:   #EDEDEA;
  --app-accent: var(--u-ink);
  --ink:        var(--u-ink);
  --stone:      var(--u-ink-3);
  --bone-mute:  var(--u-ink-3);
  --bone-line:  var(--tk-warm-e2);
  --teal:       var(--u-lime-2);
  --teal-soft:  var(--u-lime);
  --ok:         #0E7A47;
  --bad:        #B93A12;
  --attn:       #8A5A00;
  /* A client's record (office-home.css, office-client.css). */
  --of-bg:        var(--u-sheet);
  --of-surface:   var(--u-card);
  --of-raised:    #F6F6F4;
  --of-well:      #F6F6F4;
  --of-chrome:    var(--u-card);
  --of-hair:      #EDEDEA;
  --of-hair-2:    var(--tk-warm-e2);
  --of-hair-3:    var(--u-edge);
  --of-text-hi:   var(--u-ink);
  --of-text:      var(--tk-grey-1a);
  --of-text-2:    var(--u-ink-2);
  --of-muted:     var(--tk-grey-4a);
  --of-muted-2:   #5A5A57;
  --of-muted-3:   var(--u-ink-3);
  --of-attn:      #8A5A00;
  --of-attn-ink:  #8A5A00;
  /* Focus on light: the home's light sheet's own lit edge, near-black with
     one pixel of halo (assets/home.css, tools/focus-check.mjs). */
  --focus-edge: var(--tk-grey-0a);
  --focus-halo: var(--tk-black-a160);
  color: var(--u-ink);
}
/* ...its colours, not its corners: a drawer keeps the corners of where it opens (6px controls off the stage, as the
   Office's Set up billing drawer is held, office-screens-check), as it did before it joined the light set. */
html:not([data-theme="classic"]) :is(#office, #ads, #ebay) .ofc-drawer { --o-r: inherit; --o-r-sm: inherit; --o-r-lg: inherit; }

/* ── 2. THE FRAME ON A DESK: AN ISLAND AND A SHEET IN THE BLACK ──────────── */
@media (min-width: 62.0625rem) {
  html:not([data-theme="classic"]) :is(#office, #ads, #ebay) { gap: 12px; padding: 12px; }
  html:not([data-theme="classic"]) :is(#office, #ads, #ebay) .ofc-rail {
    border: 1px solid var(--u-night-line);
    border-radius: var(--u-r-sheet);
    background: var(--u-night);
    box-shadow: inset 0 1px 0 var(--tk-white-a050);
  }
  html:not([data-theme="classic"]) :is(#office, #ads, #ebay) .ofc-main {
    border: 0;
    border-radius: var(--u-r-sheet);
  }
}
html:not([data-theme="classic"]) :is(#office, #ads, #ebay) .ofc-main { background: var(--u-sheet); }

/* THE SHEET'S GRAPH PAPER (the sign-in's spark: "calm graph paper"), in ink
   at a breath, behind the work and only in the gutters and a short page's
   room, as the dark ground was. */
html:not([data-theme="classic"]) #office .ofc-main::before {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M.5 0V32M0 .5H32' fill='none' stroke='%230A0A0A' stroke-opacity='.045' stroke-width='1' shape-rendering='crispEdges'/%3E%3C/svg%3E") 0 0 / 32px 32px repeat;
}

/* ── 3. THE ISLAND ──────────────────────────────────────────────────────── */
html:not([data-theme="classic"]) .ofc-rail { color: var(--tk-grey-f2); }
html:not([data-theme="classic"]) .ofc-rail__brand {
  gap: 12px;
  padding: 20px 20px 16px;
  border-bottom: 0;
}
html:not([data-theme="classic"]) .ofc-rail .ofc-logo { width: 30px; height: 30px; filter: brightness(0) invert(1); }
html:not([data-theme="classic"]) .ofc-rail .ofc-rail__name { gap: 1px; }
html:not([data-theme="classic"]) .ofc-rail .ofc-rail__name b { font: 600 1.0625rem/1.05 var(--display); letter-spacing: -0.02em; color: var(--tk-white); }
html:not([data-theme="classic"]) .ofc-rail .ofc-rail__name span { font: 500 0.75rem/1.2 var(--body); color: var(--tk-grey-8e); }
html:not([data-theme="classic"]) .ofc-rail__nav { padding: 8px 12px 16px; }

/* A section: its mark, its name. */
html:not([data-theme="classic"]) :is(.ofc-sec__h, .ofc-side__a--top) {
  gap: 12px;
  min-height: 44px;
  padding: 0 12px 0 8px;
  border-radius: var(--u-r-control);
  font: 500 0.9375rem/1.2 var(--body);
  letter-spacing: -0.006em;
  color: #D9D9D9;
  transition: background-color .18s var(--u-ease), color .18s var(--u-ease);
}
html:not([data-theme="classic"]) :is(.ofc-sec__h, .ofc-side__a--top):hover { background: var(--tk-grey-15); color: var(--tk-white); }
html:not([data-theme="classic"]) .ofc-sec { margin-top: 2px; }

/* THE MARK: the family's glass tile, 28px, before the name. Drawn by the
   stylesheet so the menu's markup (tools/office-rail.mjs) is unchanged and
   the classic icon stays in it, standing down here. */
html:not([data-theme="classic"]) :is(.ofc-sec__h, .ofc-side__a--top) > .ofc-i { display: none; }
html:not([data-theme="classic"]) :is(.ofc-sec__h, .ofc-side__a--top)::after {
  content: "";
  order: -1;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--mk) center / 28px 28px no-repeat;
  /* A light under the glass, on the section you are in. */
  box-shadow: 0 0 0 1px var(--tk-white-a060);
}
html:not([data-theme="classic"]) .ofc-side__a--top::after { --mk: url("/admin/img/marks/dashboard.svg"); }
/* FEATURES (2 Nov 2026), the owner's one row of its own: three rising columns under the bar they reach for. */
html:not([data-theme="classic"]) #ofc-side-features.ofc-side__a--top::after { --mk: url("/admin/img/marks/features.svg"); }
/* CLOTHING (11 Nov 2026), the owner's one row of its own: a crewneck, its flag tag lit at the hip. */
html:not([data-theme="classic"]) #ofc-side-clothing.ofc-side__a--top::after { --mk: url("/admin/img/marks/clothing.svg"); }
html:not([data-theme="classic"]) .ofc-sec[data-sec="inbox"] > .ofc-sec__h::after { --mk: url("/assets/tools/msg.svg"); }
html:not([data-theme="classic"]) .ofc-sec[data-sec="clients"] > .ofc-sec__h::after { --mk: url("/assets/tools/crm.svg"); }
/* SALES (the sales engine, the owner's alone): the "found" tile, for the businesses it finds. */
html:not([data-theme="classic"]) .ofc-sec[data-sec="sales"] > .ofc-sec__h::after { --mk: url("/assets/tools/found.svg"); }
html:not([data-theme="classic"]) .ofc-sec[data-sec="money"] > .ofc-sec__h::after { --mk: url("/assets/tools/money.svg"); }
html:not([data-theme="classic"]) .ofc-sec[data-sec="channels"] > .ofc-sec__h::after { --mk: url("/admin/img/marks/channels.svg"); }
html:not([data-theme="classic"]) .ofc-sec[data-sec="beta"] > .ofc-sec__h::after { --mk: url("/admin/img/marks/beta.svg"); }
html:not([data-theme="classic"]) .ofc-sec[data-sec="system"] > .ofc-sec__h::after { --mk: url("/admin/img/marks/system.svg"); }

/* The section you are in: its name in full white, its mark lit from under. */
html:not([data-theme="classic"]) .ofc-sec:has([aria-current="page"]) > .ofc-sec__h,
html:not([data-theme="classic"]) .ofc-side__a--top:is(.is-on, [aria-current="page"]) {
  color: var(--tk-white);
  font-weight: 600;
}
html:not([data-theme="classic"]) .ofc-side__a--top:is(.is-on, [aria-current="page"]) { background: var(--tk-grey-16); box-shadow: inset 0 0 0 1px var(--tk-grey-22); }
html:not([data-theme="classic"]) .ofc-side__a--top:is(.is-on, [aria-current="page"])::before { display: none; }
html:not([data-theme="classic"]) .ofc-sec:has([aria-current="page"]) > .ofc-sec__h::after,
html:not([data-theme="classic"]) .ofc-side__a--top:is(.is-on, [aria-current="page"])::after {
  box-shadow: 0 0 0 1px var(--tk-lime-a550), 0 6px 18px -6px rgba(200, 240, 49, 0.45);
}

/* Its pages: under the name, on a guide line from the mark's middle. */
html:not([data-theme="classic"]) .ofc-sec__pages {
  gap: 1px;
  margin: 2px 0 12px 20px;
  padding-left: 16px;
  border-left: 1px solid var(--tk-grey-22);
}
html:not([data-theme="classic"]) .ofc-sec__pages .ofc-side__a {
  min-height: 34px;
  padding: 0 12px 0 12px;
  border-radius: var(--tk-r-lg);
  font: 450 0.84375rem/1.2 var(--body);
  color: var(--tk-grey-a8);
}
html:not([data-theme="classic"]) .ofc-sec__pages .ofc-side__a:hover { background: var(--tk-grey-14); color: var(--tk-white); }
html:not([data-theme="classic"]) .ofc-sec__pages .ofc-side__a:is(.is-on, [aria-current="page"]) {
  background: var(--tk-grey-17);
  box-shadow: inset 0 0 0 1px var(--tk-grey-23);
  color: var(--tk-white);
  font-weight: 550;
}
/* The page you are on: a point of lime on the guide line, the system's light. */
html:not([data-theme="classic"]) .ofc-sec__pages .ofc-side__a:is(.is-on, [aria-current="page"])::before {
  left: -21px;
  top: 50%;
  bottom: auto;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--u-lime);
  box-shadow: 0 0 0 3px var(--u-night), 0 0 10px 1px var(--tk-lime-a550);
}
/* Counts: tabular, quiet; one that needs someone keeps its amber point. */
html:not([data-theme="classic"]) .ofc-rail :is(.ofc-side__n, .ofc-sec__n) { font: 500 0.75rem/1 var(--body); font-variant-numeric: tabular-nums; color: var(--tk-grey-8e); }
html:not([data-theme="classic"]) .ofc-rail :is(.ofc-side__n, .ofc-sec__n).is-hot { color: var(--tk-attn); }

/* Who is signed in, and the way out. */
html:not([data-theme="classic"]) .ofc-rail__foot { padding: 16px 16px 16px; border-top: 1px solid var(--tk-grey-1a); }
html:not([data-theme="classic"]) .ofc-me { gap: 12px; }
html:not([data-theme="classic"]) .ofc-me__mark {
  width: 32px; height: 32px;
  background: var(--tk-grey-1c);
  border: 1px solid var(--tk-grey-2a);
  color: var(--tk-grey-f2);
  font: 600 0.75rem/1 var(--display);
}
html:not([data-theme="classic"]) .ofc-me__id b { font: 550 0.84375rem/1.25 var(--body); color: var(--tk-grey-f2); }
html:not([data-theme="classic"]) .ofc-me__id span { font: 450 0.75rem/1.2 var(--body); color: var(--tk-grey-8e); }
html:not([data-theme="classic"]) .ofc-rail__foot .ofc-quiet { color: #B5B5B5; }
html:not([data-theme="classic"]) .ofc-rail__foot .ofc-quiet:hover:not(:disabled) { background: var(--tk-grey-16); color: var(--tk-white); }

/* ── 4. THE HEADER, ON THE SHEET ────────────────────────────────────────── */
html:not([data-theme="classic"]) #office .ofc-top,
html:not([data-theme="classic"]) :is(#ads, #ebay) .ofc-top {
  min-height: 88px;
  padding: 24px clamp(1rem, 2.4vw, 2.25rem) 16px;
  background: var(--u-sheet);
  border-bottom: 1px solid transparent;
}
html:not([data-theme="classic"]) #office .ofc-top__where h1,
html:not([data-theme="classic"]) :is(#ads, #ebay) .ofc-head h1 {
  font: 400 1.875rem/1.1 var(--display);
  letter-spacing: -0.028em;
  color: var(--u-ink);
}
html:not([data-theme="classic"]) #office .ofc-top__where p:not(.oc-crumbline) { margin-top: 8px; font-size: 0.84375rem; color: var(--u-ink-3); }
html:not([data-theme="classic"]) #office .ofc-top__acts { gap: 8px; }
html:not([data-theme="classic"]) #office .ofc-top :is(.ofc-ghost, .ofc-jump, .ofc-fresh, .ofc-primary) { min-height: 36px; }

/* JUMP TO…: a search field's shape, and the key that opens it. */
html:not([data-theme="classic"]) #office .ofc-jump {
  gap: 12px;
  padding: 0 8px 0 12px;
  border: 1px solid var(--tk-line-2);
  border-radius: var(--u-r-control);
  background: var(--u-card);
  color: var(--u-ink-3);
  font: 450 0.84375rem/1 var(--body);
  box-shadow: 0 1px 2px var(--tk-black-a040);
  transition: border-color .18s var(--u-ease), box-shadow .18s var(--u-ease);
}
html:not([data-theme="classic"]) #office .ofc-jump::before {
  content: "";
  flex: none;
  width: 14px; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Ccircle cx='6' cy='6' r='4.5' fill='none' stroke='%236B6B6B' stroke-width='1.5'/%3E%3Cpath d='M9.4 9.4 12.5 12.5' stroke='%236B6B6B' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
}
html:not([data-theme="classic"]) #office .ofc-jump > span { margin-right: auto; }
html:not([data-theme="classic"]) #office .ofc-jump:hover { border-color: #BDBDB8; background: var(--u-card); color: var(--u-ink-2); }
html:not([data-theme="classic"]) #office .ofc-jump kbd {
  padding: 4px 8px;
  border: 1px solid var(--tk-warm-e2);
  border-radius: var(--tk-r-sm);
  background: var(--u-sheet);
  color: var(--u-ink-3);
  font: 550 0.6875rem/1 var(--body);
}
@media (min-width: 80rem) { html:not([data-theme="classic"]) #office .ofc-jump { min-width: 15rem; } }
html:not([data-theme="classic"]) #office .ofc-fresh { color: var(--u-ink-3); }
html:not([data-theme="classic"]) #office .ofc-fresh .ofc-i { color: var(--u-ink-3); }

/* THE SAMPLE SWITCH, ON: a black chip with the system's light in it. */
html:not([data-theme="classic"]) :is(#office, #ads, #ebay) .ofc-sample-t[aria-pressed="true"] {
  gap: 8px;
  border-color: var(--u-ink);
  background: var(--u-ink);
  color: var(--tk-white);
}
html:not([data-theme="classic"]) :is(#office, #ads, #ebay) .ofc-sample-t[aria-pressed="true"]::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--u-lime);
  box-shadow: 0 0 8px 1px rgba(200, 240, 49, 0.6);
}
html:not([data-theme="classic"]) :is(#office, #ads, #ebay) .ofc-sample-t[aria-pressed="true"]:hover:not(:disabled) { background: var(--tk-grey-22); border-color: var(--tk-grey-22); color: var(--tk-white); }

/* The bell: a square control; its count a black box, amber when it is a failure. */
html:not([data-theme="classic"]) #office .ofc-bell__b { min-width: 36px; }
/* Its place is held at its own width while it reads, so nothing beside it moves when it shows (office-bell.mjs). */
html:not([data-theme="classic"]) #office .ofc-bell.is-coming { min-width: 36px; }
html:not([data-theme="classic"]) #office .ofc-bell__n { border-color: var(--u-sheet); background: var(--u-ink); color: var(--tk-white); }
html:not([data-theme="classic"]) #office .ofc-bell__n[data-tone="attn"] { background: var(--u-lime); color: var(--u-ink); }
html:not([data-theme="classic"]) #office .ofc-bell__panel,
html:not([data-theme="classic"]) #office .ofc-clientview__menu {
  border: 1px solid var(--tk-warm-e2);
  border-radius: var(--u-r-card);
  background: var(--u-card);
  box-shadow: 0 1px 2px var(--tk-black-a060), 0 24px 48px -16px rgba(0, 0, 0, 0.22);
}
html:not([data-theme="classic"]) #office .ofc-bell__a:hover { background: #F6F6F4; }

/* ── 5. CONTROLS ON THE SHEET ───────────────────────────────────────────── */
html:not([data-theme="classic"]) :is(#office, #ads, #ebay) :is(.ofc-main, .ofc-compose-dlg, .ofc-stagepick, .ofc-daypick) :is(.ofc-primary, .ofc-ghost, .ofc-quiet) {
  border-radius: var(--u-r-control);
  font: 550 0.84375rem/1 var(--body);
  letter-spacing: -0.003em;
  transition: background-color .18s var(--u-ease), border-color .18s var(--u-ease), color .18s var(--u-ease), box-shadow .18s var(--u-ease);
}
/* THE ONE ACTION: lime, and black on it (15.05:1). Its edge is a breath of
   black, so the fill holds its shape on white. */
html:not([data-theme="classic"]) :is(#office, #ads, #ebay) :is(.ofc-main, .ofc-compose-dlg, .ofc-stagepick, .ofc-daypick) .ofc-primary {
  border: 1px solid rgba(10, 10, 10, 0.14);
  background: var(--u-lime);
  color: var(--u-ink);
  font-weight: 650;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
html:not([data-theme="classic"]) :is(#office, #ads, #ebay) :is(.ofc-main, .ofc-compose-dlg, .ofc-stagepick, .ofc-daypick) .ofc-primary:hover:not(:disabled) { background: var(--u-lime-2); }
html:not([data-theme="classic"]) :is(#office, #ads, #ebay) :is(.ofc-main, .ofc-compose-dlg, .ofc-stagepick, .ofc-daypick) .ofc-primary:active:not(:disabled) { background: var(--u-lime-3); }
html:not([data-theme="classic"]) :is(#office, #ads, #ebay) :is(.ofc-main, .ofc-compose-dlg, .ofc-stagepick, .ofc-daypick) .ofc-primary:disabled {
  border-color: var(--tk-warm-e2); background: #EDEDEA; color: var(--u-ink-3); box-shadow: none;
}
html:not([data-theme="classic"]) :is(#office, #ads, #ebay) :is(.ofc-main, .ofc-compose-dlg, .ofc-stagepick, .ofc-daypick) .ofc-ghost {
  border: 1px solid #D6D6D2;
  background: var(--u-card);
  color: var(--u-ink);
  box-shadow: 0 1px 2px var(--tk-black-a040);
}
html:not([data-theme="classic"]) :is(#office, #ads, #ebay) :is(.ofc-main, .ofc-compose-dlg, .ofc-stagepick, .ofc-daypick) .ofc-ghost:hover:not(:disabled) { border-color: #A9A9A4; background: var(--u-card); color: var(--u-ink); }
html:not([data-theme="classic"]) :is(#office, #ads, #ebay) :is(.ofc-main, .ofc-compose-dlg, .ofc-stagepick, .ofc-daypick) .ofc-quiet { color: var(--u-ink-2); }
html:not([data-theme="classic"]) :is(#office, #ads, #ebay) :is(.ofc-main, .ofc-compose-dlg, .ofc-stagepick, .ofc-daypick) .ofc-quiet:hover:not(:disabled) { background: var(--tk-ink-a050); color: var(--u-ink); }
/* The page's own action: its "+" drawn, in the label's ink. */
html:not([data-theme="classic"]) #office .ofc-pageact::before { font-weight: 400; }

/* FIELDS: white, a 3:1 edge (3.38:1 on a card), the near-black lit edge in use. */
html:not([data-theme="classic"]) :is(#office, #ads, #ebay) :is(.ofc-main, .ofc-compose-dlg, .ofc-stagepick) :is(.ofc-input, .ofc-filter, .ofc-fields input, .ofc-fields select, .ofc-fields textarea):not(.ofc-day__native) {
  min-height: 36px;
  border-color: #C2C2BD;
  border-radius: var(--tk-r-lg);
  background-color: var(--u-card);
  color: var(--u-ink);
  font-weight: 450;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}
html:not([data-theme="classic"]) :is(#office, #ads, #ebay) :is(.ofc-main, .ofc-compose-dlg, .ofc-stagepick) :is(.ofc-input, .ofc-filter, .ofc-fields input, .ofc-fields select, .ofc-fields textarea):hover { border-color: var(--u-edge); }
html:not([data-theme="classic"]) :is(#office, #ads, #ebay) :is(.ofc-main, .ofc-compose-dlg, .ofc-stagepick) :is(.ofc-input, .ofc-filter, .ofc-fields input, .ofc-fields select):focus { border-color: var(--focus-edge); }
html:not([data-theme="classic"]) :is(#office, #ads, #ebay) .ofc-main :is(.ofc-fields label) { color: var(--u-ink-2); font-weight: 550; }
html:not([data-theme="classic"]) :is(#office, #ads, #ebay) .ofc-main select:not([multiple]):not([size]) {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%233A3A3A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* THE MODE SWITCH (List · Pipeline): a segmented control, the chosen face white and lifted. */
html:not([data-theme="classic"]) :is(#office, #ads, #ebay) .ofc-main .ofc-mode { padding: 4px; border: 0; border-radius: var(--u-r-control); background: #EAEAE6; }
html:not([data-theme="classic"]) :is(#office, #ads, #ebay) .ofc-main .ofc-mode__b { min-height: 28px; border-radius: var(--tk-r-md); color: var(--u-ink-2); font: 550 0.78125rem/1 var(--body); }
html:not([data-theme="classic"]) :is(#office, #ads, #ebay) .ofc-main .ofc-mode__b[aria-pressed="true"] { background: var(--u-card); color: var(--u-ink); box-shadow: 0 1px 2px var(--tk-black-a100), 0 0 0 1px var(--tk-black-a040); }

/* TABS: the chosen view underlined in ink, the rest in the quiet ink. */
html:not([data-theme="classic"]) :is(#office, #ads, #ebay) .ofc-main .ofc-addr { gap: 0 1.5rem; border-bottom-color: #E8E8E5; }
html:not([data-theme="classic"]) :is(#office, #ads, #ebay) .ofc-main .ofc-addr__b { padding: 12px 0 12px; color: var(--u-ink-3); font-weight: 500; }
html:not([data-theme="classic"]) :is(#office, #ads, #ebay) .ofc-main .ofc-addr__b:hover { color: var(--u-ink); }
html:not([data-theme="classic"]) :is(#office, #ads, #ebay) .ofc-main .ofc-addr__b.is-on { border-bottom-color: var(--u-ink); color: var(--u-ink); font-weight: 600; }
html:not([data-theme="classic"]) :is(#office, #ads, #ebay) .ofc-main .ofc-addr__n { color: var(--u-ink-3); }
html:not([data-theme="classic"]) :is(#office, #ads, #ebay) .ofc-main .ofc-addr__b.is-on .ofc-addr__n { color: var(--u-ink-2); }

/* Filter chips ("Waiting for a reply 3"): chips, the pressed one black. */
html:not([data-theme="classic"]) #office .ofc-main .ofc-crm__chip { border-color: var(--tk-line-2); background: var(--u-card); color: var(--u-ink-2); border-radius: var(--u-r-chip); }
html:not([data-theme="classic"]) #office .ofc-main .ofc-crm__chip:hover { border-color: #A9A9A4; color: var(--u-ink); }
html:not([data-theme="classic"]) #office .ofc-main .ofc-crm__chip[aria-pressed="true"] { border-color: var(--u-ink); background: var(--u-ink); color: var(--tk-white); }
html:not([data-theme="classic"]) :is(#office, #ads, #ebay) .ofc-main :is(.ofc-q__star, .ofc-lead__star)[aria-pressed="true"] { color: var(--u-ink); }
html:not([data-theme="classic"]) :is(#office, #ads, #ebay) .ofc-main .ofc-q__act:hover { color: var(--u-ink); }

/* Words that were white because the ground was black. */
html:not([data-theme="classic"]) :is(#office, #ads, #ebay) .ofc-main :is(.ofc-linkish:hover, .ofc-req__link:hover, .ofc-infra-link:hover) { color: var(--u-ink); }
html:not([data-theme="classic"]) #office .ofc-main :is(.ofc-lines, .ofc-table) td > a:not([class]):hover { color: var(--u-ink); }
html:not([data-theme="classic"]) #office .ofc-main .ofc-sub a:not([class]):hover { color: var(--u-ink); }
html:not([data-theme="classic"]) #office .ofc-main .oh-link:hover { color: var(--u-ink); }
html:not([data-theme="classic"]) :is(#office, #ads, #ebay) .ofc-main .ofc-infra-link { color: var(--u-ink-2); border-bottom-color: #BDBDB8; }
html:not([data-theme="classic"]) :is(#office, #ads, #ebay) .ofc-main :is(.ofc-req.is-target, #ofc-inv-body tr.is-target, #ofc-plans-body tr.is-target, #ofc-jb-body tr.is-target) { box-shadow: inset 3px 0 0 var(--u-ink); }

/* ── 6. CARDS ON THE SHEET ──────────────────────────────────────────────── */
html:not([data-theme="classic"]) #office .ofc-view .ofc-card,
html:not([data-theme="classic"]) #office .oh-sec {
  padding: 24px var(--o-pad-x) 24px;
  border: 1px solid #ECECE9;
  border-radius: var(--u-r-card);
  background: var(--u-card);
  box-shadow: var(--u-lift);
}
html:not([data-theme="classic"]) #office .ofc-view .ofc-grid { gap: 16px; }
html:not([data-theme="classic"]) #office .ofc-scroll { padding: 8px clamp(1rem, 2.4vw, 2.25rem) 48px; }
html:not([data-theme="classic"]) #office .ofc-card h2:not(.ofc-mail__h, .ofc-lead__h, .ofc-sr) { color: var(--u-ink); letter-spacing: -0.015em; }
html:not([data-theme="classic"]) #office .ofc-card--muted { border-style: dashed; border-color: #D6D6D2; box-shadow: none; background: transparent; }

/* ── 7. FIGURES ─────────────────────────────────────────────────────────── */
/* A figure: a small label in capitals above, the number big and light. */
html:not([data-theme="classic"]) #office .ofc-view > .ofc-stats { gap: 16px; margin-bottom: 16px; }
html:not([data-theme="classic"]) #office .ofc-view > .ofc-stats > .ofc-stat {
  padding: 20px 24px 20px;
  border: 1px solid #ECECE9;
  border-radius: var(--u-r-card);
  background: var(--u-card);
  box-shadow: var(--u-lift);
}
html:not([data-theme="classic"]) #office .ofc-main .ofc-stat__k {
  font: 550 0.6875rem/1.2 var(--body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--u-ink-3);
}
html:not([data-theme="classic"]) #office .ofc-main .ofc-stat__n,
html:not([data-theme="classic"]) #office .ofc-main .ofc-stat--hero .ofc-stat__n {
  margin-top: 12px;
  font: 300 2.5rem/1 var(--display);
  letter-spacing: -0.035em;
  color: var(--u-ink);
}
html:not([data-theme="classic"]) #office .ofc-main .ofc-stat__s { margin-top: 8px; font-size: 0.8125rem; color: var(--u-ink-3); }
/* The hero keeps its state in its dot and its figure's ink. */
html:not([data-theme="classic"]) #office .ofc-main .ofc-stat--hero .ofc-stat__k { color: var(--o-warn-ink); }
html:not([data-theme="classic"]) #office .ofc-main .ofc-stat--hero .ofc-stat__n { color: var(--o-warn-ink); }
html:not([data-theme="classic"]) #office .ofc-main .ofc-stat--hero.is-clear :is(.ofc-stat__k) { color: var(--u-ink-3); }
html:not([data-theme="classic"]) #office .ofc-main .ofc-stat--hero.is-clear .ofc-stat__n { color: var(--o-ok); }
html:not([data-theme="classic"]) #office .ofc-main #ofc-inv-lede:not(.is-clear):not(.is-unknown) :is(.ofc-stat__k, .ofc-stat__n) { color: var(--o-bad); }

/* ── 8. TABLES ──────────────────────────────────────────────────────────── */
html:not([data-theme="classic"]) #office .ofc-card :is(.ofc-table, .ofc-lines) th {
  height: 40px;
  background: var(--u-card);
  border-bottom: 1px solid #E8E8E5;
  font: 550 0.75rem/1.2 var(--body);
  letter-spacing: 0;
  color: var(--u-ink-3);
}
html:not([data-theme="classic"]) #office .ofc-card :is(.ofc-table, .ofc-lines) td { border-bottom-color: #F0F0ED; color: var(--u-ink-2); }
html:not([data-theme="classic"]) #office .ofc-card :is(.ofc-table, .ofc-lines) tbody tr:hover td { background: #FAFAF8; color: var(--u-ink); }
html:not([data-theme="classic"]) #office .ofc-card :is(.ofc-table, .ofc-lines) td:first-child > a:not(.ofc-linkish) { color: var(--u-ink); font-weight: 600; }
html:not([data-theme="classic"]) #office .ofc-card :is(.ofc-table, .ofc-lines) :is(td, th).num { font-variant-numeric: tabular-nums; }
html:not([data-theme="classic"]) #office .ofc-card :is(.ofc-table, .ofc-lines) td :is(a.ofc-linkish, .ofc-rowlink) { color: var(--u-ink-3); }
html:not([data-theme="classic"]) #office .ofc-card :is(.ofc-table, .ofc-lines) tr:hover td :is(a.ofc-linkish, .ofc-rowlink),
html:not([data-theme="classic"]) #office .ofc-card :is(.ofc-table, .ofc-lines) td :is(a.ofc-linkish, .ofc-rowlink):focus-visible { color: var(--u-ink); text-decoration-color: var(--u-ink-3); }
/* STICKY HEADS where a table is drawn whole: its wrap stops being a scroller
   (which a sticky head sticks inside), and the head holds under the header
   as the page scrolls. Below 1280px a wide table still scrolls on its own. */
@media (min-width: 80rem) {
  html:not([data-theme="classic"]) #office .ofc-card .ofc-tablewrap { overflow: visible; }
  html:not([data-theme="classic"]) #office .ofc-card :is(.ofc-table, .ofc-lines) thead th { position: sticky; top: 0; z-index: 2; }
}

/* ── 9. A STATE IS A PILL WITH A DOT ────────────────────────────────────── */
html:not([data-theme="classic"]) #office .ofc-main .ofc-st,
html:not([data-theme="classic"]) #office .ofc-main .ofc-lines td > .ofc-inv__st,
html:not([data-theme="classic"]) #office .ofc-main .ofc-plan__st {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 22px;
  padding: 0 8px 0 8px;
  border-radius: var(--u-r-chip);
  background: #F0F0EE;
  color: var(--u-ink-2);
  font: 550 0.75rem/1.2 var(--body);
  white-space: nowrap;
}
html:not([data-theme="classic"]) #office .ofc-main .ofc-st::before,
html:not([data-theme="classic"]) #office .ofc-main .ofc-lines td > .ofc-inv__st::before,
html:not([data-theme="classic"]) #office .ofc-main .ofc-plan__st::before { width: 6px; height: 6px; }
html:not([data-theme="classic"]) #office .ofc-main .ofc-st[data-tone="ok"],
html:not([data-theme="classic"]) #office .ofc-main .ofc-lines tr[data-state="paid"] td > .ofc-inv__st,
html:not([data-theme="classic"]) #office .ofc-main .ofc-plan__st[data-state="confirmed"] { background: var(--o-ok-bg); color: var(--o-ok); }
html:not([data-theme="classic"]) #office .ofc-main .ofc-st[data-tone="attn"],
html:not([data-theme="classic"]) #office .ofc-main .ofc-lines td.is-unpriced > .ofc-inv__st,
html:not([data-theme="classic"]) #office .ofc-main .ofc-plan__st:is(.ofc-plan__st--warn, .ofc-plan__st--attn) { background: var(--o-warn-bg); color: var(--o-warn-ink); }
html:not([data-theme="classic"]) #office .ofc-main .ofc-st[data-tone="bad"],
html:not([data-theme="classic"]) #office .ofc-main .ofc-lines td.is-overdue > .ofc-inv__st,
html:not([data-theme="classic"]) #office .ofc-main .ofc-plan__st--bad { background: var(--o-bad-bg); color: var(--o-bad); }
html:not([data-theme="classic"]) #office .ofc-main .ofc-plan__st:is(.ofc-plan__st--bad, .ofc-plan__st--warn, .ofc-plan__st--attn)::before { background: currentColor; border-color: currentColor; }
html:not([data-theme="classic"]) #office .ofc-main .ofc-plan__st--bad::before { background: var(--o-bad-mark); border-color: var(--o-bad-mark); }

/* ── 10. THE SAMPLE LINE: QUIET, ON THE SHEET ───────────────────────────── */
html:not([data-theme="classic"]) :is(#office, #ads, #ebay) .ofc-sample-banner {
  gap: 0 12px;
  margin: 0 0 16px;
  padding: 4px 4px 4px 4px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--u-ink-3);
  font: 450 0.8125rem/1.4 var(--body);
}
html:not([data-theme="classic"]) :is(#office, #ads, #ebay) .ofc-sample-banner strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 4px;
  padding: 4px 8px 4px 8px;
  border-radius: var(--u-r-chip);
  background: var(--u-ink);
  color: var(--tk-white);
  font: 600 0.75rem/1.2 var(--body);
}
html:not([data-theme="classic"]) :is(#office, #ads, #ebay) .ofc-sample-banner strong::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--u-lime);
}
html:not([data-theme="classic"]) :is(#office, #ads, #ebay) .ofc-sample-banner > span:first-child { padding-left: 0; }
html:not([data-theme="classic"]) :is(#office, #ads, #ebay) .ofc-sample-banner > span:first-child::before { display: none; }
html:not([data-theme="classic"]) :is(#office, #ads, #ebay) .ofc-sample-banner .ofc-sample-banner__off { color: var(--u-ink-2); text-decoration-color: #BDBDB8; }
html:not([data-theme="classic"]) :is(#office, #ads, #ebay) .ofc-sample-banner .ofc-sample-banner__off:hover { color: var(--u-ink); text-decoration-color: var(--u-ink); }

/* ── 11. BANNERS ────────────────────────────────────────────────────────── */
html:not([data-theme="classic"]) #office .ofc-main :is(#ofc-boot, #ofc-stale) { border-radius: var(--u-r-control); }

/* ── 12. DRAWERS: A SHEET THAT FLOATS IN FROM THE RIGHT ─────────────────── */
html:not([data-theme="classic"]) #office dialog.ofc-drawer {
  border: 1px solid var(--tk-warm-e2);
  background: var(--u-card);
  color: var(--u-ink);
  box-shadow: 0 30px 80px -20px var(--tk-black-a450);
}
/* At the right edge, its whole height, as before; the side it opens from is the sheet's curve. */
@media (min-width: 40.0625rem) {
  html:not([data-theme="classic"]) #office dialog.ofc-drawer {
    border-right: 0;
    border-radius: var(--u-r-sheet) 0 0 var(--u-r-sheet);
  }
}
html:not([data-theme="classic"]) #office dialog.ofc-drawer::backdrop { background: rgba(5, 5, 5, 0.42); }
html:not([data-theme="classic"]) #office .ofc-drawer__head { min-height: 72px; padding: 0 16px 0 28px; border-bottom-color: #EDEDEA; }
html:not([data-theme="classic"]) #office .ofc-drawer__head h2 { font: 400 1.375rem/1.15 var(--display); letter-spacing: -0.022em; }
html:not([data-theme="classic"]) #office .ofc-drawer__body { padding: 24px 28px 32px; }

/* ── 13. THE COMMAND PALETTE, IN THE ISLAND'S STYLE ─────────────────────── */
html:not([data-theme="classic"]) .ofc-palette {
  width: min(40rem, calc(100vw - 2rem));
  margin: 14vh auto auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--tk-grey-26);
  border-radius: var(--u-r-sheet);
  background: var(--u-night);
  color: var(--tk-grey-f2);
  box-shadow: inset 0 1px 0 var(--tk-white-a060), 0 40px 100px -20px var(--tk-black-a800);
  --focus-edge: var(--tk-grey-8e);
  --focus-halo: var(--tk-white-a140);
}
html:not([data-theme="classic"]) .ofc-palette::backdrop { background: rgba(5, 5, 5, 0.5); }
html:not([data-theme="classic"]) .ofc-palette input {
  min-height: 60px;
  padding: 0 20px 0 52px;
  border: 0;
  border-bottom: 1px solid var(--tk-grey-1e);
  border-radius: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Ccircle cx='7.8' cy='7.8' r='5.8' fill='none' stroke='%23A3A3A3' stroke-width='1.6'/%3E%3Cpath d='M12.2 12.2 16 16' stroke='%23A3A3A3' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") 20px center / 18px 18px no-repeat transparent;
  color: var(--tk-white);
  font: 400 1.0625rem/1 var(--body);
  letter-spacing: -0.005em;
}
html:not([data-theme="classic"]) .ofc-palette input::placeholder { color: var(--tk-grey-8e); }
html:not([data-theme="classic"]) .ofc-palette input:focus { outline: 0; border-color: var(--tk-grey-1e); box-shadow: none; }
html:not([data-theme="classic"]) .ofc-palette ul { margin: 0; padding: 8px; gap: 2px; max-height: min(56vh, 30rem); }
html:not([data-theme="classic"]) .ofc-palette li {
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--u-r-control);
  font: 500 0.875rem/1.3 var(--body);
  color: var(--tk-grey-e6);
}
html:not([data-theme="classic"]) .ofc-palette li > span { color: var(--tk-grey-f2); }
html:not([data-theme="classic"]) .ofc-palette li em { color: var(--tk-grey-8e); font-weight: 450; }
html:not([data-theme="classic"]) .ofc-palette li:hover { background: var(--tk-grey-12); }
html:not([data-theme="classic"]) .ofc-palette li.is-on { position: relative; background: var(--tk-grey-19); box-shadow: inset 0 0 0 1px var(--tk-grey-26); }
html:not([data-theme="classic"]) .ofc-palette li.is-on::after {
  content: "\21B5";
  margin-left: auto;
  padding: 4px 8px;
  border: 1px solid var(--tk-grey-2e);
  border-radius: var(--tk-r-sm);
  color: #B5B5B5;
  font: 500 0.75rem/1 var(--body);
}
html:not([data-theme="classic"]) .ofc-palette li.is-gap { margin-top: 12px; }
html:not([data-theme="classic"]) .ofc-palette li.is-gap::before { top: -6px; left: 12px; right: 12px; border-top-color: var(--tk-grey-1c); }
html:not([data-theme="classic"]) .ofc-palette__kind {
  min-width: 4.75rem;
  color: var(--tk-grey-8e);
  font: 500 0.75rem/1 var(--body);
}
/* A section, in the list, is led by the system's light. */
html:not([data-theme="classic"]) .ofc-palette li:not(:has(> .ofc-palette__kind)):not(.ofc-palette__none)::before {
  content: "";
  flex: none;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--tk-grey-3a);
}
html:not([data-theme="classic"]) .ofc-palette li.is-on:not(:has(> .ofc-palette__kind))::before { background: var(--u-lime); box-shadow: 0 0 8px 1px var(--tk-lime-a550); }
html:not([data-theme="classic"]) .ofc-palette li.is-gap:not(:has(> .ofc-palette__kind))::before { position: static; border: 0; }
html:not([data-theme="classic"]) .ofc-palette__note { margin: 0; padding: 12px 20px 12px; border-top: 1px solid var(--tk-grey-1a); color: var(--tk-grey-8e); font-size: 0.75rem; }
html:not([data-theme="classic"]) .ofc-palette__keys {
  display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px 16px 12px;
  border-top: 1px solid var(--tk-grey-1a); color: var(--tk-grey-8e); font: 450 0.75rem/1 var(--body);
}
html:not([data-theme="classic"]) .ofc-palette__keys kbd {
  min-width: 20px; padding: 4px 4px; border: 1px solid var(--tk-grey-2a); border-radius: var(--tk-r-sm); background: var(--tk-grey-12);
  color: #B5B5B5; font: 500 0.6875rem/1 var(--body); text-align: center;
}
html:not([data-theme="classic"]) .ofc-palette__keys span + kbd { margin-left: 12px; }
.ofc-palette__keys { display: none; }
html:not([data-theme="classic"]) .ofc-palette__keys { display: flex; }

/* ── 14. TOASTS: IN THE ISLAND'S STYLE, OVER THE SHEET ──────────────────── */
html:not([data-theme="classic"]) #office .ofc-toast {
  border-color: var(--tk-grey-26);
  border-radius: var(--u-r-card);
  background: var(--u-night);
  box-shadow: inset 0 1px 0 var(--tk-white-a060), 0 24px 56px -16px var(--tk-black-a600);
}
html:not([data-theme="classic"]) #office .ofc-toast__dot { background: var(--u-lime); box-shadow: 0 0 8px 1px rgba(200, 240, 49, 0.5); }

/* ── 15. THE COMPOSE WINDOW, THE PICKERS ────────────────────────────────── */
html:not([data-theme="classic"]) #office .ofc-compose-dlg {
  border-color: var(--tk-warm-e2);
  border-radius: var(--u-r-sheet);
  background: var(--u-card);
  color: var(--u-ink);
  box-shadow: 0 40px 100px -24px var(--tk-black-a500);
}
html:not([data-theme="classic"]) #office .ofc-compose-dlg::backdrop { background: rgba(5, 5, 5, 0.42); }
html:not([data-theme="classic"]) #office :is(.ofc-stagepick, .ofc-daypick) {
  border-color: var(--tk-warm-e2);
  border-radius: var(--u-r-control);
  background: var(--u-card);
  color: var(--u-ink);
  box-shadow: 0 1px 2px var(--tk-black-a060), 0 24px 48px -16px rgba(0, 0, 0, 0.25);
}
html:not([data-theme="classic"]) #office :is(.ofc-stagepick, .ofc-daypick)::backdrop { background: rgba(5, 5, 5, 0.3); }
html:not([data-theme="classic"]) #office .ofc-stagepick .ofc-stagepick__q[aria-pressed="true"] { border-color: var(--u-ink); color: var(--u-ink); }
html:not([data-theme="classic"]) #office .ofc-stagepick .ofc-stagepick__done { background: var(--u-lime); color: var(--u-ink); }
html:not([data-theme="classic"]) #office .ofc-daypick__day[aria-selected="true"] { background: var(--u-ink); color: var(--tk-white); }

/* ── 16. THE PHONE ──────────────────────────────────────────────────────── */
@media (max-width: 62rem) {
  html:not([data-theme="classic"]) :is(#office, #ads, #ebay) { background: var(--u-sheet); }
  html:not([data-theme="classic"]) :where(html:not([data-phone-nav="bar"])) .ofc-phonebar {
    border-bottom: 1px solid var(--tk-grey-1a);
    background: var(--u-night);
    color: var(--tk-grey-f2);
  }
  html:not([data-theme="classic"]) .ofc-phonebar .ofc-logo { filter: brightness(0) invert(1); }
  html:not([data-theme="classic"]) .ofc-phonebar .ofc-rail__name b { font: 600 1rem/1 var(--display); letter-spacing: -0.02em; color: var(--tk-white); }
  html:not([data-theme="classic"]) .ofc-phonebar .ofc-rail__name span { color: var(--tk-grey-8e); }
  html:not([data-theme="classic"]) .ofc-menu-btn { color: var(--tk-grey-f2); }
  html:not([data-theme="classic"]) .ofc-menu-btn.has-news::after { background: var(--u-lime); box-shadow: 0 0 0 2px var(--u-night); }
  html:not([data-theme="classic"]) .ofc-menu-btn.has-news.is-hot::after { background: var(--tk-attn); }
  html:not([data-theme="classic"]) :where(html:not([data-phone-nav="bar"])) .ofc-rail:popover-open {
    border-color: var(--u-night-line);
    border-radius: var(--u-r-sheet);
    background: var(--u-night);
    box-shadow: inset 0 1px 0 var(--tk-white-a050), 0 30px 80px -20px rgba(0, 0, 0, 0.7);
  }
  html:not([data-theme="classic"]) :where(html:not([data-phone-nav="bar"])) .ofc-rail::backdrop { background: rgba(5, 5, 5, 0.55); }
  html:not([data-theme="classic"]) #office .ofc-top { min-height: 0; padding: 16px 16px 12px; }
  html:not([data-theme="classic"]) #office .ofc-top__where h1 { font-size: 1.75rem; }
}
/* A page's own name stays whole on the smallest phones, as before (MOON-13). */
@media (max-width: 40rem) { html:not([data-theme="classic"]) #office .ofc-top__where h1 { font-size: 1.5rem; } }
@media (max-width: 22.5rem) { html:not([data-theme="classic"]) #office .ofc-top__where h1 { font-size: 1.25rem; } }
/* BETWEEN A LAPTOP AND A DESK (62 to 80rem) the header's controls share a
   708px stage at 1024: Jump to… is its words alone there, and the row may
   take a second line at its end rather than run past the sheet. */
@media (min-width: 62.0625rem) and (max-width: 79.99rem) {
  html:not([data-theme="classic"]) #office .ofc-jump kbd,
  html:not([data-theme="classic"]) #office .ofc-jump::before { display: none; }
  html:not([data-theme="classic"]) #office .ofc-jump { padding: 0 12px; }
  html:not([data-theme="classic"]) #office .ofc-top__acts { flex-wrap: wrap; justify-content: flex-end; row-gap: 8px; }
  /* ...and it can: the row was as wide as its controls (flex: none), so with the light/dark switch in it (2 Nov) it ran
     from 329px to 1070px in a 1024px window instead of taking its second line (office-sample-check, 2 Nov). */
  html:not([data-theme="classic"]) #office .ofc-top__acts { max-width: 100%; }
}
@media (max-width: 40rem) {
  html:not([data-theme="classic"]) #office .ofc-view .ofc-card,
  html:not([data-theme="classic"]) #office .oh-sec { padding: 20px 16px 20px; border-radius: var(--u-r-card); }
  html:not([data-theme="classic"]) #office .ofc-scroll { padding: 4px 12px 32px; }
  html:not([data-theme="classic"]) #office .ofc-main .ofc-stat__n,
  html:not([data-theme="classic"]) #office .ofc-main .ofc-stat--hero .ofc-stat__n { font-size: 1.875rem; }
  html:not([data-theme="classic"]) #office .ofc-view > .ofc-stats > .ofc-stat { padding: 16px 16px 16px; }
}

/* ── 16b. THE DASHBOARD: THE GREETING, THE MONEY'S HISTORY ─────────────── */
/* One line in the serif, on the sheet, before the work. */
html:not([data-theme="classic"]) #office .oh-hello { margin: 2px 0 20px; }
html:not([data-theme="classic"]) #office .oh-hello__line {
  margin: 0;
  font: 400 2.375rem/1.05 var(--u-serif);
  letter-spacing: -0.012em;
  color: var(--u-ink);
}
@media (max-width: 40rem) { html:not([data-theme="classic"]) #office .oh-hello__line { font-size: 1.875rem; } }
/* A SPARKLINE: a line in ink over a lime field, its last month a point. */
html:not([data-theme="classic"]) #office :is(.oh-spark, .ofc-spark) { display: block; flex: none; overflow: visible; }
html:not([data-theme="classic"]) #office :is(.oh-spark__area, .ofc-spark__area) { fill: var(--u-lime); fill-opacity: 0.42; stroke: none; }
html:not([data-theme="classic"]) #office :is(.oh-spark__line, .ofc-spark__line) { fill: none; stroke: var(--u-ink); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
html:not([data-theme="classic"]) #office :is(.oh-spark__dot, .ofc-spark__dot) { fill: var(--u-ink); stroke: var(--u-lime); stroke-width: 2; paint-order: stroke; }
/* Baseline, not centre (17 Nov): a centred row took its baseline from the line's foot, so the figure sat 9px above its
   own label; on the baseline it reads on the label's line, as every other Money row does, and the line stays put. */
html:not([data-theme="classic"]) #office .oh-kv__r.has-spark dd { display: flex; align-items: baseline; justify-content: flex-end; gap: 16px; }
/* The Invoices view's Collected: the line at the tile's top right. */
html:not([data-theme="classic"]) #office .ofc-view > .ofc-stats > .ofc-stat:has(> .ofc-spark) { position: relative; }
html:not([data-theme="classic"]) #office .ofc-stat > .ofc-spark { position: absolute; top: 18px; right: 20px; }
/* The classic Office draws neither. */
html[data-theme="classic"] #office :is(.oh-hello, .oh-spark, .ofc-spark) { display: none; }

/* ── 16c. WHAT THE FIRST PASS SAW ───────────────────────────────────────── */
/* A mark's colour used for words is the state's ink on the sheet. */
html:not([data-theme="classic"]) #office .ofc-main :is(.ofc-board__attn--attn, .ofc-plan__st--attn) { color: var(--o-warn-ink); }
/* Figures fill their row: three tiles are a third each, not three and a hole. */
@media (min-width: 40.0625rem) { html:not([data-theme="classic"]) #office .ofc-view > .ofc-stats { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); } }
/* The bell's count: black; a failed payment's, the warn fill under black. */
html:not([data-theme="classic"]) #office .ofc-top .ofc-bell__n[data-tone="attn"] { background: var(--u-warn); color: var(--u-ink); }
/* THE SAMPLE SWITCH, ON, over the controls' rule above it. */
html:not([data-theme="classic"]) :is(#office, #ads, #ebay) .ofc-main .ofc-sample-t[aria-pressed="true"] {
  border-color: var(--u-ink); background: var(--u-ink); color: var(--tk-white); box-shadow: none;
  /* On its own black, focus lights the dark ground's grey edge: a near-black one would not be seen. */
  --focus-edge: var(--tk-grey-8e);
  --focus-halo: var(--tk-white-a140);
}
html:not([data-theme="classic"]) :is(#office, #ads, #ebay) .ofc-main .ofc-sample-t[aria-pressed="true"]:hover:not(:disabled) { border-color: var(--tk-grey-26); background: var(--tk-grey-26); color: var(--tk-white); }

/* ── 16d. THE PHONE, AGAIN ──────────────────────────────────────────────── */
@media (max-width: 62rem) {
  /* The page is the sheet from edge to edge, the strip at its top the island's black. */
  html:not([data-theme="classic"]) body:has(:is(#office, #ads, #ebay)) { background: var(--u-sheet); }
}
@media (max-width: 40rem) {
  /* The page's own action is its "+" alone in the header (OF-07), over the controls' type above. */
  html:not([data-theme="classic"]) #office .ofc-main .ofc-top__acts > .ofc-pageact { width: 40px; min-width: 40px; padding: 0; font-size: 0; }
  html:not([data-theme="classic"]) #office .ofc-main .ofc-top__acts > .ofc-pageact::before { margin: 0; font-size: 1.25rem; font-weight: 400; line-height: 1; }
}

/* ── 16e. A CLIENT'S RECORD AND A PROJECT'S PAGE (client.html) ─────────── */
/* Its sheet of money is a white card's own, in the card's inks. */
html:not([data-theme="classic"]) #office.oc-shell .ofc-main {
  --of-paper:       var(--u-card);
  --of-paper-ink:   var(--u-ink);
  --of-paper-ink-2: var(--tk-grey-4a);
  --of-paper-ink-3: var(--u-ink-3);
  --of-paper-hair:  #EDEDEA;
  --of-paper-rule:  #CFCFCB;
  --of-attn-ink:    #8A5A00;
  --of-attn-rgb:    138 90 0;
}
/* The header's crumb is the page's title, set as every page's is. */
html:not([data-theme="classic"]) .oc-shell .ofc-top__where .oc-crumbline { font: 400 1.875rem/1.1 var(--display); letter-spacing: -0.028em; color: var(--u-ink); }
/* The sample's line, quiet on the sheet, as the Office's. Solid, since it stays put. */
html:not([data-theme="classic"]) .oc-shell .of-preview {
  padding: 8px 4px 12px;
  border-bottom: 1px solid #E8E8E5;
  background: var(--u-sheet);
  color: var(--u-ink-2);
  font: 500 0.8125rem/1.3 var(--body);
}
html:not([data-theme="classic"]) .oc-shell .of-preview::before {
  content: "";
  flex: none;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--u-ink);
  box-shadow: 0 0 0 4px var(--u-lime);
  margin: 0 4px 0 8px;
}
html:not([data-theme="classic"]) .oc-shell .of-preview__x { color: var(--u-ink); text-decoration-color: #BDBDB8; }
/* The name, big and light; the line under it. */
html:not([data-theme="classic"]) .oc-shell .oc-head__n { color: var(--u-ink); font-weight: 300; }
html:not([data-theme="classic"]) .oc-shell .oc-head__l { color: var(--u-ink-2); }
html:not([data-theme="classic"]) .oc-who__a:hover { color: var(--u-ink); }
/* The moves: the one that matters lime under black, the rest white with an edge. */
html:not([data-theme="classic"]) .oc-shell .oc-btn { border-color: #D6D6D2; border-radius: var(--u-r-control); background: var(--u-card); color: var(--u-ink); box-shadow: 0 1px 2px var(--tk-black-a040); }
html:not([data-theme="classic"]) .oc-shell .oc-btn:hover { border-color: #A9A9A4; background: var(--u-card); color: var(--u-ink); }
html:not([data-theme="classic"]) .oc-shell .oc-btn--primary { border-color: rgba(10, 10, 10, 0.14); background: var(--u-lime); color: var(--u-ink); font-weight: 650; }
html:not([data-theme="classic"]) .oc-shell .oc-btn--primary:hover { border-color: rgba(10, 10, 10, 0.14); background: var(--u-lime-2); color: var(--u-ink); }
html:not([data-theme="classic"]) .oc-shell .oc-btn--quiet { border-color: transparent; background: transparent; box-shadow: none; color: var(--u-ink-2); }
html:not([data-theme="classic"]) .oc-shell .oc-btn--quiet:hover { border-color: transparent; background: transparent; color: var(--u-ink); }
html:not([data-theme="classic"]) .oc-shell .oc-btn[aria-expanded="true"] { border-color: var(--u-ink); }
/* The facts: tiles of the Office's figures, the label small above. */
html:not([data-theme="classic"]) .oc-shell .oc-fact { padding: 16px 20px; border-color: #ECECE9; border-radius: var(--u-r-card); }
html:not([data-theme="classic"]) .oc-shell .oc-fact__k { font: 550 0.6875rem/1.2 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--u-ink-3); }
html:not([data-theme="classic"]) .oc-shell .oc-fact__v { margin-top: 8px; font: 400 1rem/1.35 var(--body); color: var(--u-ink); }
html:not([data-theme="classic"]) .oc-shell .oc-fact__v[data-attn="1"] { color: var(--o-warn-ink); }
@media (max-width: 40rem) { html:not([data-theme="classic"]) .oc-shell .oc-fact__v { font-size: 0.9375rem; } }
/* Panels: white cards, as every Office page's. */
html:not([data-theme="classic"]) .oc-shell :is(.oc-side, .oc-col > .of-band, .oc-col > .oc-sides > .oc-side) { border-color: #ECECE9; border-radius: var(--u-r-card); }
html:not([data-theme="classic"]) .oc-shell .oc-r-eng .of-ms li[data-s="current"]::before { background: var(--u-ink); border-color: var(--u-ink); box-shadow: 0 0 0 3px var(--u-lime); }
html:not([data-theme="classic"]) .ow__add:hover { color: var(--u-ink); }
html:not([data-theme="classic"]) .oc-ref a:hover { color: var(--u-ink); }

/* ── 16f. THE OTHER OFFICE PAGES: WORDS THAT WERE WHITE ON BLACK ────────── */
html:not([data-theme="classic"]) #office .ofc-main :is(.so-net--tiktok .so-net__name, .so-net__who, .so-as__name, .so-label, .so-declare a:hover,
  .sw-summary, .sw-inc__host, .sw-fix__t, .sw-site__host) { color: var(--u-ink); }
html:not([data-theme="classic"]) #office .ofc-main .so-film:has(input:checked) { border-color: var(--u-ink); }
/* A switch that is on: the lime under its black knob (lime behind black, the one way it sits on the sheet). */
html:not([data-theme="classic"]) #office .ofc-main .so-switch[aria-checked="true"] { border-color: rgba(10, 10, 10, 0.14); background: var(--u-lime); }
html:not([data-theme="classic"]) #office .ofc-main .so-switch[aria-checked="true"] .so-switch__knob { background: var(--u-ink); }
html:not([data-theme="classic"]) #office .ofc-main :is(.sd-b__a[aria-current="page"], .sd-sug__b[aria-pressed="true"], .sd-m[aria-pressed="true"]) { border-color: var(--u-ink); color: var(--u-ink); }
html:not([data-theme="classic"]) #office .ofc-main :is(.sd-plat input, .sw-form__c input) { accent-color: var(--u-ink); }
html:not([data-theme="classic"]) #office .ofc-main .sd-up__bar::-webkit-progress-value { background: var(--u-ink); }
html:not([data-theme="classic"]) #office .ofc-main .sd-up__bar::-moz-progress-bar { background: var(--u-ink); }
html:not([data-theme="classic"]) #office .ofc-main .st-kit[aria-pressed="true"] { border-color: var(--u-ink); color: var(--u-ink); }
html:not([data-theme="classic"]) #office .ofc-main .st-kit[aria-pressed="true"]::before { border-color: var(--u-ink); }
html:not([data-theme="classic"]) #office .ofc-main .st-pair__code { color: var(--u-ink); }
html:not([data-theme="classic"]) #office .ofc-main .ofc-ref__move.is-armed { color: var(--u-ink); }

/* One figure alone is a tile, not a banner across the page. */
@media (min-width: 40.0625rem) {
  html:not([data-theme="classic"]) #office .ofc-view > .ofc-stats:not(:has(> .ofc-stat:not([hidden]) ~ .ofc-stat:not([hidden]))) > .ofc-stat { max-width: 24rem; }
}

/* ── 16g. THE COMPOSE WINDOW'S FIELDS, AND THE PHONE'S MENU ─────────────── */
html:not([data-theme="classic"]) #office .ofc-compose-dlg :is(.ofc-compose input, .ofc-compose textarea, .ofc-compose select) {
  border: 1px solid #C2C2BD;
  border-radius: var(--tk-r-lg);
  background-color: var(--u-card);
  color: var(--u-ink);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}
html:not([data-theme="classic"]) #office .ofc-compose-dlg :is(.ofc-compose input, .ofc-compose textarea, .ofc-compose select):hover { border-color: var(--u-edge); }
html:not([data-theme="classic"]) #office .ofc-compose-dlg .ofc-compose label { color: var(--u-ink-2); font-weight: 550; }
html:not([data-theme="classic"]) #office .ofc-compose__head { padding: 20px 24px 16px; }
html:not([data-theme="classic"]) #office .ofc-compose__title b { font: 400 1.375rem/1.15 var(--display); letter-spacing: -0.022em; }
@media (max-width: 62rem) {
  /* Opened, the menu's rows are the desk's: the mark at the same place in every one. */
  html:not([data-theme="classic"]) .ofc-rail:popover-open :is(.ofc-sec__h, .ofc-side__a--top) { padding: 0 12px 0 8px; border-radius: var(--u-r-control); }
  html:not([data-theme="classic"]) .ofc-rail:popover-open .ofc-sec__pages .ofc-side__a { padding: 0 12px; border-radius: var(--tk-r-lg); }
  html:not([data-theme="classic"]) .ofc-rail:popover-open .ofc-sec__pages .ofc-side__a:is(.is-on, [aria-current="page"]) { background: var(--tk-grey-17); box-shadow: inset 0 0 0 1px var(--tk-grey-23); }
  html:not([data-theme="classic"]) .ofc-rail:popover-open .ofc-sec__pages .ofc-side__a:is(.is-on, [aria-current="page"])::before { left: -21px; }
}

/* ── 16h. WHAT THE CHECKS SAW ──────────────────────────────────────────── */
/* Ads' small buttons are the ghost's, in its words and edge (2026-10-16). */
html:not([data-theme="classic"]) #ads .ofc-main .ads-mini { border-color: #D6D6D2; border-radius: var(--u-r-chip); background: var(--u-card); color: var(--u-ink); font-weight: 550; }
html:not([data-theme="classic"]) #ads .ofc-main .ads-mini:hover:not(:disabled) { border-color: #A9A9A4; background: var(--u-card); color: var(--u-ink); }
html:not([data-theme="classic"]) #ads .ofc-main .ads-find { border-color: var(--tk-line-2); border-radius: var(--u-r-control); background: var(--u-card); color: var(--u-ink-2); }
@media (max-width: 40rem) {
  /* On a phone the switch's black is the whole of "on": its light stands down, for the row's room. */
  html:not([data-theme="classic"]) :is(#office, #ads, #ebay) .ofc-main .ofc-sample-t[aria-pressed="true"]::before { display: none; }
  /* A fact's words keep the tile's room, as before. */
  html:not([data-theme="classic"]) .oc-shell .oc-fact { padding: 12px 16px; }
}
@media (max-width: 22.5rem) {
  html:not([data-theme="classic"]) #office .ofc-scroll { padding-left: 8px; padding-right: 8px; }
}
/* A phone's card is as wide as the screen allows: a long state ("Partly used · $35.50 left") takes a second line
   in its pill rather than push the card past the screen's edge. */
@media (max-width: 40rem) {
  html:not([data-theme="classic"]) #office .ofc-main .is-cards :is(.ofc-st, .ofc-inv__st, .ofc-plan__st) { white-space: normal; }
}

/* ── 16i. A QUOTE, AS THEY WILL READ IT, IN THE OFFICE ───────────────────── */
/* quote.css draws the document dark for the client's account and is not
   changed here: in the Office's light drawer it is a white sheet of paper on
   the sheet's grey, in the card's inks (ink 19.8:1, the quiet ink 5.33:1). */
html:not([data-theme="classic"]) #office .ofc-main .qd {
  --qd-ink:  var(--u-ink);
  --qd-dim:  var(--u-ink-3);
  /* Tokens, so the dark switch turns the hairlines too (they stayed light on the dark card: 2 Nov). */
  --qd-line: var(--u-line);
  border-color: var(--u-line);
  border-radius: var(--u-r-card);
  background: var(--u-card);
  box-shadow: var(--u-lift);
}
html:not([data-theme="classic"]) #office .ofc-main .qd__total { color: var(--u-ink); }
html:not([data-theme="classic"]) #office .ofc-main .qd__state--accepted { color: var(--o-ok); }
html:not([data-theme="classic"]) #office .ofc-main .qd__state:is(.qd__state--expired, .qd__state--withdrawn, .qd__state--replaced) { color: var(--u-ink-3); }
html:not([data-theme="classic"]) #office .ofc-main .qd__sig-paid { color: var(--o-ok); }
html:not([data-theme="classic"]) #office dialog.ofc-drawer--quote .ofc-qq__side { padding: 20px; border-radius: var(--u-r-card); background: var(--u-sheet); }

/* ── 16j. ADS ON A PHONE, AND THE SIGN-IN'S ROWS ───────────────────────── */
@media (max-width: 40rem) {
  /* Ads' own create is its "+" alone on a phone, as every Office page's is (OF-07); its words stay its name. */
  html:not([data-theme="classic"]) #ads .ofc-main :is(.ofc-pageact, .ads-new__page) { width: 40px; min-width: 40px; padding: 0; font-size: 0; }
  html:not([data-theme="classic"]) #ads .ofc-main :is(.ofc-pageact, .ads-new__page)::before { margin: 0; font-size: 1.25rem; font-weight: 400; line-height: 1; }
}
/* The last of Your sign-in's rows draws no rule against its card's edge. */
html:not([data-theme="classic"]) #office .ofc-sf-rows > .ofc-sf-row:not(:has(~ :not([hidden]))) { border-bottom: 0; }

/* ── 16k. WHAT THE LOADING AND HOVER WALKS SAW ──────────────────────────── */
/* The bell's place is held at the bell's own width, so nothing beside it moves when it is drawn. */
html:not([data-theme="classic"]) #office .ofc-bell.is-coming { min-width: 36px; }
/* A home link pointed at goes to the ink, not to white on the white card. */
html:not([data-theme="classic"]) #office .ofc-main .oh-link:hover { color: var(--u-ink); }

/* ── 17. FORCED COLOURS ─────────────────────────────────────────────────── */
/* A contrast theme draws its own colours: the marks are pictures and stay,
   the pills keep a frame, the island and the sheet keep an edge. */
@media (forced-colors: active) {
  html:not([data-theme="classic"]) #office .ofc-main :is(.ofc-st, .ofc-inv__st, .ofc-plan__st) { border: 1px solid CanvasText; }
  html:not([data-theme="classic"]) :is(#office, #ads, #ebay) .ofc-rail { border: 1px solid CanvasText; }
  html:not([data-theme="classic"]) .ofc-palette li.is-on { forced-color-adjust: none; background: Highlight; color: HighlightText; }
  html:not([data-theme="classic"]) .ofc-palette li.is-on :is(span, em, b) { color: HighlightText; }
  /* Where you are, in the theme's own Highlight (office.css), its words the Highlight's text. */
  html:not([data-theme="classic"]) :is(.ofc-sec:has([aria-current="page"]) > .ofc-sec__h, .ofc-side__a:is(.is-on, [aria-current="page"]), .ofc-side__a--top:is(.is-on, [aria-current="page"])) { forced-color-adjust: none; background: Highlight; color: HighlightText; box-shadow: none; }
  html:not([data-theme="classic"]) :is(.ofc-sec:has([aria-current="page"]) > .ofc-sec__h, .ofc-side__a:is(.is-on, [aria-current="page"]), .ofc-side__a--top:is(.is-on, [aria-current="page"])) :is(.ofc-side__n, .ofc-sec__n, .ofc-side__t, .ofc-sec__t) { color: HighlightText; }
}

/* ── 18. MOTION ─────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html:not([data-theme="classic"]) :is(.ofc-sec__h, .ofc-side__a--top, .ofc-jump, .ofc-primary, .ofc-ghost, .ofc-quiet) { transition: none; }
}
@media print {
  html:not([data-theme="classic"]) :is(#office, #ads, #ebay) .ofc-main { background: var(--tk-white); }
  html:not([data-theme="classic"]) #office .ofc-main::before { display: none; }
  html:not([data-theme="classic"]) #office :is(.ofc-view .ofc-card, .oh-sec, .ofc-view > .ofc-stats > .ofc-stat) { box-shadow: none; }
}
