/* ==========================================================================
   THE OFFICE IN THE POSTS' LOOK (2 Nov 2026; the owner, 1–2 Nov: the sign-in
   and the client's account were put in "the posts' look" at his ask, and "the
   Office in the posts' look" is the next item on his list; "clean and refine").

   The same finish as the account (admin/css/account-posts.css), on the
   Office's own frame, which stays as the owner chose it: the black frame, the
   280px island of places at the left, the work on its sheet. What changes:
     the island   glossy black: its top lit, its edge a breath of light
     the sheet    white at its head, the posts' dot grid fading from the middle
     the head     every page's name light, large and tight; what it holds the
                  serif line. Where the page greets (the Dashboard) its name
                  is the posts' pill with one lit point and the greeting is
                  the light line, as the account's Overview has it; a client's
                  record takes its eyebrow as the pill
     the cards    deeper soft light, 22px corners, no hairline (their names
                  keep the Office's one section heading, Inter Tight 650 16px)
     the action   the lime fill, black words, an ink edge and a lime light
     the states   the account's pill: round, a dot, the body face at 12.5px

   Within the Office's own rules (tools/office-ink.mjs, office-check's 4px
   rhythm): no gradient fill (the sheet's light and the island's gloss are
   solid colour through a mask, as the sheet's graph paper always was), no hue
   but the lime and the states, nothing faded, every space on the 4px grid.

   Loaded after office-pro.css and before the dark side (office-dark.css,
   mode-switch.css), as account-posts.css is before account-dark.css: the dark
   side written by tools/dark-side.mjs from this file's light colours comes
   after it and wins in the dark. The rules below that name the dark mode say
   what the generator cannot (a light through a mask, a black pill).

   ?posts=off (theme-first.js; the classic look sets it too) is the Office as
   it was the day before: every rule here is under
   html:not([data-theme="classic"]):not([data-posts="off"]).
   Look only: no structure, route, word or behaviour moves.
   ========================================================================== */

/* ── 0. THE TOKENS: the cards' light deepens wherever the stage reads it ─── */
/* office-pro.css draws every card's light from --u-lift (--o-depth on the stage); dark, mode-switch.css sets its own.
   The account's, with its deepest light reaching 28px under a card rather than 45: the Office's work scrolls in its own
   box under the header, and a longer light, cut at that box's top edge, drew a grey shelf under the page's name. */
html:not([data-theme="classic"]):not([data-posts="off"]) {
  --u-lift: 0 0 0 1px rgba(10, 10, 10, 0.04), 0 1px 0 var(--tk-white-a900) inset, 0 2px 4px var(--tk-ink-a050), 0 18px 40px -20px rgba(10, 10, 10, 0.28), 0 36px 64px -40px rgba(10, 10, 10, 0.24);
  --u-lift-hi: 0 0 0 1px var(--tk-ink-a060), 0 1px 0 var(--tk-white-a900) inset, 0 4px 8px var(--tk-ink-a060), 0 28px 60px -24px rgba(10, 10, 10, 0.36), 0 60px 100px -50px var(--tk-ink-a300);
}

/* ── 1. THE ISLAND: glossy black ─────────────────────────────────────────── */
/* The account's island is a gradient from #1A1A1A at its head to #0A0A0A; here the same light is a solid white at a
   breath under a mask, laid between the island's black and its places, so nothing in it moves or changes colour. */
@media (min-width: 62.0625rem) {
  html:not([data-theme="classic"]):not([data-posts="off"]) :is(#office, #ads, #ebay) .ofc-rail {
    position: relative;
    isolation: isolate;
    border-color: var(--tk-black);
    background: var(--tk-grey-0a);
    box-shadow: inset 0 1px 0 var(--tk-white-a090), inset 0 0 0 1px var(--tk-white-a040), 0 40px 80px -40px var(--tk-black);
  }
}
html:not([data-theme="classic"]):not([data-posts="off"]) .ofc-rail:popover-open {
  isolation: isolate;
  border-color: var(--tk-black);
  background: var(--tk-grey-0a);
  box-shadow: inset 0 1px 0 var(--tk-white-a090), inset 0 0 0 1px var(--tk-white-a040), 0 30px 80px -20px var(--tk-black);
}
@media (min-width: 62.0625rem) {
  html:not([data-theme="classic"]):not([data-posts="off"]) :is(#office, #ads, #ebay) .ofc-rail::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    pointer-events: none;
    background: var(--tk-white-a070);
    -webkit-mask-image: linear-gradient(to bottom, var(--tk-black) 0, transparent 240px);
    mask-image: linear-gradient(to bottom, var(--tk-black) 0, transparent 240px);
  }
}
html:not([data-theme="classic"]):not([data-posts="off"]) .ofc-rail:popover-open::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background: var(--tk-white-a070);
  -webkit-mask-image: linear-gradient(to bottom, var(--tk-black) 0, transparent 240px);
  mask-image: linear-gradient(to bottom, var(--tk-black) 0, transparent 240px);
}

/* ── 2. THE SHEET: white at its head, the posts' dot grid fading from the middle ── */
/* The graph paper (office-pro.css) gives way to the posts' grid of dots, 32px apart, brightest behind the page's head
   and gone by the work's middle; under it, the sheet's own white light at the head (account-posts.css's, as a mask). */
html:not([data-theme="classic"]):not([data-posts="off"]) #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%3Ccircle cx='16' cy='16' r='1.3' fill='%230A0A0A' fill-opacity='.09'/%3E%3C/svg%3E") 0 0 / 32px 32px repeat;
  -webkit-mask-image: radial-gradient(64% 420px at 50% 150px, var(--tk-black) 12%, transparent 80%);
  mask-image: radial-gradient(64% 420px at 50% 150px, var(--tk-black) 12%, transparent 80%);
  -webkit-mask-composite: source-over;
  mask-composite: add;
}
@media (min-width: 62.0625rem) {
  html:not([data-theme="classic"]):not([data-posts="off"]) #office .ofc-main::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    border-radius: inherit;
    pointer-events: none;
    background: var(--tk-white);
    -webkit-mask-image: radial-gradient(80% 560px at 50% 0, var(--tk-black) 0%, transparent 100%);
    mask-image: radial-gradient(80% 560px at 50% 0, var(--tk-black) 0%, transparent 100%);
  }
  /* The header stands on the sheet's light: nothing scrolls under it at a desk (the work scrolls in its own box). */
  html:not([data-theme="classic"]):not([data-posts="off"]) #office .ofc-top { padding-bottom: 12px; background: transparent; }
  /* That box's top edge is soft: a card's light, cut there as the work scrolls under the header, drew a hard grey
     shelf across the sheet. The work fades in over 12px (a scroller's edge, a mask); at rest nothing is in it (4px of
     the header's foot moved to the box's head, so nothing on the page moves), and a sticky table head's words sit
     below it. */
  html:not([data-theme="classic"]):not([data-posts="off"]) #office .ofc-scroll {
    padding-top: 12px;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, var(--tk-black) 12px);
    mask-image: linear-gradient(to bottom, transparent 0, var(--tk-black) 12px);
  }
}

/* ── 3. THE HEAD: the page's name light and tight; what it holds, the serif ── */
html:not([data-theme="classic"]):not([data-posts="off"]) #office .ofc-top__where h1,
html:not([data-theme="classic"]):not([data-posts="off"]) :is(#ads, #ebay) .ofc-head h1 {
  font: 300 clamp(2.25rem, 3vw, 2.875rem)/1.05 var(--display);
  letter-spacing: -0.045em;
  color: var(--u-ink);
  /* Its letters whole in its own box (3 Nov): the line is 1.05, under the face's own height, and where the name is one
     line with an ellipsis the box clips, so the feet of a q, p or g were cut by 2.6px at 1440 (social-desk-check,
     office-health). The box is 0.1em deeper each way and gives it back outside, so nothing moves. */
  padding-block: 0.1em;
  margin-block: -0.1em;
}
html:not([data-theme="classic"]):not([data-posts="off"]) #office .ofc-top__where p:not(.oc-crumbline) {
  margin-top: 8px;
  font: 400 1.0625rem/1.4 var(--u-serif);
  letter-spacing: -0.005em;
  color: var(--u-ink-2);
}
@media (min-width: 80rem) {
  /* The name's own row holds its larger line (it was 34px, centred). */
  html:not([data-theme="classic"]):not([data-posts="off"]) #office .ofc-top__where h1 { min-height: 40px; max-width: min(44%, 28rem); }
}
@media (max-width: 62rem) {
  html:not([data-theme="classic"]):not([data-posts="off"]) #office .ofc-top__where h1 { font-size: 1.875rem; letter-spacing: -0.04em; }
  html:not([data-theme="classic"]):not([data-posts="off"]) #office .ofc-top__where p:not(.oc-crumbline) { margin-top: 4px; font-size: 1rem; }
}
/* A page's own name stays whole on the smallest phones, as before (MOON-13): office-pro.css's sizes, the light weight. */
@media (max-width: 40rem) { html:not([data-theme="classic"]):not([data-posts="off"]) #office .ofc-top__where h1 { font-size: 1.5rem; } }
@media (max-width: 22.5rem) { html:not([data-theme="classic"]):not([data-posts="off"]) #office .ofc-top__where h1 { font-size: 1.25rem; } }

/* THE DASHBOARD, AS THE ACCOUNT'S OVERVIEW: where the page greets, its name is the posts' pill with one lit point and the
   greeting is the light line. Only while the greeting is on the screen; any other view keeps its name as the line. On
   a phone the header's row has no room for a pill beside its controls (94px at 390), so the name stays the line there. */
@media (min-width: 40.0625rem) {
  html:not([data-theme="classic"]):not([data-posts="off"]) #office:has(.ofc-view[data-view="dashboard"]:not([hidden]) #ofc-home:not([hidden]) > .oh-hello) .ofc-top__where h1 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: max-content;
    max-width: 100%;
    min-height: 0;
    margin: 4px 0 8px;
    padding: 8px 16px 8px 12px;
    border-radius: var(--tk-r-pill);
    background: var(--tk-grey-0a);
    color: var(--tk-grey-f4);
    font: 500 0.6875rem/1 var(--body);
    letter-spacing: 0.2em;
    text-transform: uppercase;
  }
  html:not([data-theme="classic"]):not([data-posts="off"]) #office:has(.ofc-view[data-view="dashboard"]:not([hidden]) #ofc-home:not([hidden]) > .oh-hello) .ofc-top__where h1::before {
    content: "";
    flex: none;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--u-lime);
    box-shadow: 0 0 10px var(--tk-lime-a900);
  }
}
html:not([data-theme="classic"]):not([data-posts="off"]) #office .oh-hello { margin: 4px 0 24px; }
html:not([data-theme="classic"]):not([data-posts="off"]) #office .oh-hello__line {
  font: 300 clamp(2.5rem, 4vw, 3.5rem)/1 var(--display);
  letter-spacing: -0.05em;
  color: var(--u-ink);
}
@media (max-width: 40rem) { html:not([data-theme="classic"]):not([data-posts="off"]) #office .oh-hello__line { font-size: 2.5rem; } }

/* A CLIENT'S RECORD: its eyebrow (who they are to us, since when) is the pill, in the words' own case; the name the
   light line at the posts' size; the sentence under it the serif. The header's crumb is light, as every name is. */
html:not([data-theme="classic"]):not([data-posts="off"]) .oc-shell .ofc-top__where .oc-crumbline { font-weight: 300; letter-spacing: -0.04em; }
html:not([data-theme="classic"]):not([data-posts="off"]) .oc-shell .oc-head__k {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 4px;
  width: max-content;
  max-width: 100%;
  margin: 0 0 4px;
  padding: 8px 16px 8px 12px;
  border-radius: var(--tk-r-pill);
  background: var(--tk-grey-0a);
  color: var(--tk-grey-f4);
  font: 500 0.75rem/1.2 var(--body);
  letter-spacing: 0.01em;
}
html:not([data-theme="classic"]):not([data-posts="off"]) .oc-shell .oc-head__k[data-lead="1"] { color: var(--tk-grey-f4); }
html:not([data-theme="classic"]):not([data-posts="off"]) .oc-shell .oc-head__k :is(span, time) { color: inherit; }
html:not([data-theme="classic"]):not([data-posts="off"]) .oc-shell .oc-head__dot { margin-right: 4px; background: var(--u-lime); box-shadow: 0 0 10px var(--tk-lime-a900); }
html:not([data-theme="classic"]):not([data-posts="off"]) .oc-shell .oc-head__dot[data-tone="idle"] { background: transparent; border-color: rgba(255, 255, 255, 0.72); box-shadow: none; }
html:not([data-theme="classic"]):not([data-posts="off"]) .oc-shell .oc-head__n {
  margin-top: 16px;
  font: 300 clamp(2.75rem, 4.4vw, 4rem)/1 var(--display);
  letter-spacing: -0.05em;
  color: var(--u-ink);
}
html:not([data-theme="classic"]):not([data-posts="off"]) .oc-shell .oc-head__l {
  margin-top: 12px;
  font: 400 clamp(1.0625rem, 1.35vw, 1.25rem)/1.4 var(--u-serif);
  letter-spacing: -0.005em;
  color: var(--u-ink-2);
}
@media (max-width: 40rem) {
  html:not([data-theme="classic"]):not([data-posts="off"]) .oc-shell .oc-head__n { font-size: 2.25rem; letter-spacing: -0.04em; }
}

/* ── 4. THE CARDS: the posts' plates, deeper light, rounder, no hairline ── */
html:not([data-theme="classic"]):not([data-posts="off"]) #office .ofc-view .ofc-card,
html:not([data-theme="classic"]):not([data-posts="off"]) #office .oh-sec,
html:not([data-theme="classic"]):not([data-posts="off"]) #office .ofc-view > .ofc-stats > .ofc-stat,
html:not([data-theme="classic"]):not([data-posts="off"]) .oc-shell :is(.oc-side, .oc-col > .of-band, .oc-col > .oc-sides > .oc-side, .oc-fact) {
  border-color: transparent;
  border-radius: var(--tk-r-2xl);
}
@media (max-width: 40rem) {
  html:not([data-theme="classic"]):not([data-posts="off"]) #office .ofc-view .ofc-card,
  html:not([data-theme="classic"]):not([data-posts="off"]) #office .oh-sec,
  html:not([data-theme="classic"]):not([data-posts="off"]) .oc-shell :is(.oc-side, .oc-col > .of-band, .oc-col > .oc-sides > .oc-side) { border-radius: var(--tk-r-2xl); }
}
/* A figure: the posts' light numerals, tighter. */
html:not([data-theme="classic"]):not([data-posts="off"]) #office .ofc-main .ofc-stat__n,
html:not([data-theme="classic"]):not([data-posts="off"]) #office .ofc-main .ofc-stat--hero .ofc-stat__n { letter-spacing: -0.045em; }

/* THE FEATURES PAGE (features.html): its two panels and its five figures were drawn flat on the sheet; they take the
   plates every other Office page has. */
html:not([data-theme="classic"]):not([data-posts="off"]) #office.ft-page .ft-stats { gap: 16px; padding: 0; border-bottom: 0; }
html:not([data-theme="classic"]):not([data-posts="off"]) #office.ft-page .ft-stats > .ofc-stat,
html:not([data-theme="classic"]):not([data-posts="off"]) #office.ft-page :is(#ft-next-card, #ft-list-card) {
  border: 1px solid transparent;
  border-radius: var(--tk-r-2xl);
  background: var(--u-card);
  box-shadow: var(--u-lift);
}
html:not([data-theme="classic"]):not([data-posts="off"]) #office.ft-page .ft-stats > .ofc-stat { padding: 20px 24px; }
html:not([data-theme="classic"]):not([data-posts="off"]) #office.ft-page :is(#ft-next-card, #ft-list-card) { padding: 24px var(--o-pad-x); --o-bg: var(--u-card); }
@media (max-width: 40rem) {
  html:not([data-theme="classic"]):not([data-posts="off"]) #office.ft-page .ft-stats { gap: 12px; }
  html:not([data-theme="classic"]):not([data-posts="off"]) #office.ft-page .ft-stats > .ofc-stat { padding: 16px; }
  html:not([data-theme="classic"]):not([data-posts="off"]) #office.ft-page :is(#ft-next-card, #ft-list-card) { padding: 20px 16px; }
}

/* ── 5. THE ONE ACTION: the lime fill, black words, an ink edge, a lime light under it ── */
html:not([data-theme="classic"]):not([data-posts="off"]) :is(#office, #ads, #ebay) :is(.ofc-main, .ofc-compose-dlg, .ofc-stagepick, .ofc-daypick) .ofc-primary:not(:disabled),
html:not([data-theme="classic"]):not([data-posts="off"]) .oc-shell .oc-btn--primary {
  border-color: rgba(10, 10, 10, 0.85);
  background: var(--u-lime);
  color: var(--tk-grey-0a);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 10px 24px -12px rgba(200, 240, 49, 0.95), 0 2px 4px rgba(10, 10, 10, 0.1);
}
html:not([data-theme="classic"]):not([data-posts="off"]) :is(#office, #ads, #ebay) :is(.ofc-main, .ofc-compose-dlg, .ofc-stagepick, .ofc-daypick) .ofc-primary:hover:not(:disabled),
html:not([data-theme="classic"]):not([data-posts="off"]) .oc-shell .oc-btn--primary:hover {
  border-color: rgba(10, 10, 10, 0.85);
  background: var(--u-lime-2);
  color: var(--tk-grey-0a);
}

/* ── 6. A STATE: the account's pill, round, its dot, the body face at 12.5px ── */
html:not([data-theme="classic"]):not([data-posts="off"]) #office .ofc-main .ofc-st,
html:not([data-theme="classic"]):not([data-posts="off"]) #office .ofc-main .ofc-lines td > .ofc-inv__st,
html:not([data-theme="classic"]):not([data-posts="off"]) #office .ofc-main .ofc-plan__st {
  padding: 0 12px 0 8px;
  border-radius: var(--tk-r-pill);
  font: 500 0.78125rem/1.35 var(--body);
}

/* THE SAMPLE'S WORD: the posts' pill, its point lit. */
html:not([data-theme="classic"]):not([data-posts="off"]) :is(#office, #ads, #ebay) .ofc-sample-banner strong {
  padding: 4px 12px 4px 8px;
  border-radius: var(--tk-r-pill);
  background: var(--tk-grey-0a);
  color: var(--tk-grey-f4);
  font-weight: 500;
}
html:not([data-theme="classic"]):not([data-posts="off"]) :is(#office, #ads, #ebay) .ofc-sample-banner strong::before { box-shadow: 0 0 8px var(--tk-lime-a900); }

/* ══ THE DARK SIDE (mode-switch.mjs): what tools/dark-side.mjs cannot write from the light rules above ═══════════════
   The sheet: the posts' black (mode-switch.css), a little light at its head, the dot grid in white. The pills: black
   would sink into the dark sheet, so a raised grey with a hairline, as the account's dark pill. */
@media screen {
  html:not([data-theme="classic"])[data-mode="dark"]:not([data-posts="off"]) body #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%3Ccircle cx='16' cy='16' r='1.3' fill='%23FFFFFF' fill-opacity='.08'/%3E%3C/svg%3E") 0 0 / 32px 32px repeat;
  }
  html:not([data-theme="classic"])[data-mode="dark"]:not([data-posts="off"]) body #office .ofc-main::after { background: var(--tk-white-a040); }
  html:not([data-theme="classic"])[data-mode="dark"]:not([data-posts="off"]) body .oc-shell .oc-head__k,
  html:not([data-theme="classic"])[data-mode="dark"]:not([data-posts="off"]) body :is(#office, #ads, #ebay) .ofc-sample-banner strong {
    background: var(--tk-white-a060);
    box-shadow: inset 0 0 0 1px var(--tk-white-a160);
    color: var(--tk-grey-f4);
  }
  /* The lime's light, on the dark: a glow, not a shadow. */
  html:not([data-theme="classic"])[data-mode="dark"]:not([data-posts="off"]) body :is(#office, #ads, #ebay) :is(.ofc-main, .ofc-compose-dlg, .ofc-stagepick, .ofc-daypick) .ofc-primary:not(:disabled),
  html:not([data-theme="classic"])[data-mode="dark"]:not([data-posts="off"]) body .oc-shell .oc-btn--primary {
    border-color: var(--tk-black);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 12px 30px -14px var(--tk-lime-a550);
  }
}
@media screen and (min-width: 40.0625rem) {
  html:not([data-theme="classic"])[data-mode="dark"]:not([data-posts="off"]) body #office:has(.ofc-view[data-view="dashboard"]:not([hidden]) #ofc-home:not([hidden]) > .oh-hello) .ofc-top__where h1 {
    background: var(--tk-white-a060);
    box-shadow: inset 0 0 0 1px var(--tk-white-a160);
    color: var(--tk-grey-f4);
  }
}

/* ── STILL, THE SYSTEM'S OWN COLOURS, AND PAPER ── */
@media (forced-colors: active) {
  html:not([data-theme="classic"]):not([data-posts="off"]) #office .ofc-main::after,
  html:not([data-theme="classic"]):not([data-posts="off"]) .ofc-rail::before { display: none; }
  html:not([data-theme="classic"]):not([data-posts="off"]) :is(.oc-shell .oc-head__k, .ofc-sample-banner strong) { border: 1px solid CanvasText; }
  html:not([data-theme="classic"]):not([data-posts="off"]) #office .ofc-top__where h1::before { forced-color-adjust: none; background: Highlight; box-shadow: none; }
}
@media (forced-colors: active) and (min-width: 40.0625rem) {
  html:not([data-theme="classic"]):not([data-posts="off"]) #office:has(.ofc-view[data-view="dashboard"]:not([hidden]) #ofc-home:not([hidden]) > .oh-hello) .ofc-top__where h1 { border: 1px solid CanvasText; }
}
@media print {
  html:not([data-theme="classic"]):not([data-posts="off"]) #office .ofc-main::after,
  html:not([data-theme="classic"]):not([data-posts="off"]) .ofc-rail::before { display: none; }
}
