/* 23 Nov · soft edges, every Creators tab (Mikky: "the way you made all line edges neater, add it to all pages").
   One source for the Overview treatment: white surfaces, a very light line, a whisper of shadow under outer panels.
   Loaded last. Works through the tokens, so every component that draws with border-subtle / border-default follows:
   tile strips, table rules, panes, drawers, settings rows, segmented toggles. Only lines and shadows change here. */

/* ── 1 · the line ──
   Same specificity trick as the theme block (html beats [data-theme]), so tokens derived on the same element
   (--card-border, --stat-rule, --badge-border, --nav-border …) resolve to the soft line too. */
html[data-theme="light"] {
  --se-line: color-mix(in oklab, var(--color-neutral-100) 55%, var(--color-neutral-50));      /* ≈ #EAEAEA, cards, panes, rules */
  --se-line-input: color-mix(in oklab, var(--color-neutral-200) 45%, var(--color-neutral-100)); /* ≈ #DBDBDB, controls keep their affordance */
  --se-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  --se-mark: var(--color-alpha-black-16);   /* the old default, kept for data marks that are not edges */
  --color-border-subtle: var(--se-line);
  --color-border-default: var(--se-line);
}

/* ── 2 · controls: a touch darker than cards so they still read as fields and buttons.
   "html" adds one type selector: enough to beat the base rule even in sheets app.js injects later (settings.css …),
   not enough to beat :hover / :focus-within / pressed rules, which still win. Focus rings stay border-focus. ── */
html :is(.search, .msel, .qf__b, .pt, .b--secondary, .chip, .sx-num:not(.sx-num--step)) { border-color: var(--se-line-input); }

/* ── 3 · outer panels: a whisper of shadow (tile strips, list + detail panes, cards) ── */
html :is(.dt--do-a, .queue, .detail, .tr-b__c) { box-shadow: var(--se-shadow); }

/* ── 4 · data marks keep their old weight (they are glyphs, not edges) ── */
html .pk__sq i { box-shadow: inset 0 0 0 1px var(--se-mark); }
html .pk__sq i.met { box-shadow: none; }
html .tda-bar.is-rule { box-shadow: inset 0 0 0 1px var(--se-mark); }

/* ── 5 · Overview: the strip and the card panel are one block (Mikky: "don't separate them", "close the gap").
   No border; the 1px grid gap shows the line through, so every divider is one hairline. The 1px margin between strip and
   panel is the single shared hairline (both rings fall on it); outer radius on the strip's top and the panel's bottom
   corners only; the drop shadow sits under the panel. ── */
.ov-pg .ov-strip.dt--do-a, .ov-pg .ovg { gap: 1px; border: 0; background: var(--se-line); overflow: hidden; box-shadow: 0 0 0 1px var(--se-line), var(--se-shadow); }
.ov-pg .ov-strip.dt--do-a { margin-bottom: 0; border-radius: var(--radius-sm) var(--radius-sm) 0 0; box-shadow: 0 0 0 1px var(--se-line); }
.ov-pg .ov-strip.dt--do-a + .ovg { margin-top: 1px; border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
.ov-pg .ovg > .ovc { border: 0; border-radius: 0; }
