/* THE LOOK OF TEXT, ROUND 16 (Zibaldone Text, 2026-11-20). app/look.js sets the bids on <html>.
   Every colour, size, radius and type step is a token from the design system (design-system/tokens.css and
   RDS's sheet). Unlayered, so it wins over RDS's @layer components without raising specificity. */

/* ── The work surface is RDS's panel ────────────────────────────────────────────────────────────────
   Malte, 20 November 2026 kl. 22.19: "vi glemmer vores identitet ... RDS. Pills, altid løftet, cards, altid løftet".
   Before, Text's paper ran to the window's edge at the top, the right and the foot, round only on the left; RDS's
   panel (components/50-shell.css, §2zo) is the paper with air: 8 at the top and the right, 36 at the foot (8 and
   the band of 28 the status bar stands in), radius 12 on every corner, the ring --line-2, beside the sidebar with
   no air on its left. Inbox and the other apps draw it so; now Text does too. */
.window .main { margin: var(--space-8) var(--space-8) 36px 0; border-radius: var(--r-contain); box-shadow: 0 0 0 var(--px) var(--line-2); position: relative; }
.window[data-sidebar="open"] .main { border-radius: var(--r-contain); }
.window[data-sidebar="closed"] .main { margin-left: var(--space-8); }
.window .main { grid-template-rows: var(--bar-h) minmax(0, 1fr); }
/* the status bar stands in the band under the paper, on the ground (§2zo: "the status bar of 28 stands in the band") */
.window .main > .status[data-r="status-bar"] {
  --plane: var(--ground); --plane-hover: var(--ground-hover); --plane-selected: var(--ground-selected); --plane-selected-hover: var(--ground-selected-hover);
  --ring: var(--ring-ground); --ring-hover: var(--ring-ground-hover); --pill-rest: var(--raised);
  position: absolute; left: 0; right: 0; bottom: -36px; height: var(--row-28); padding: 0 var(--space-8); background: transparent;
}
/* the paper's corners clip what scrolls under them */
.window .main > .panes { border-radius: 0 0 var(--r-contain) var(--r-contain); overflow: clip; }

/* ── The right sidebar ───────────────────────────────────────────────────────────────────────────
   The right side is RDS's lifted card (card, the default; DESIGN §2ze and RAMTT-743): --raised, radius 10, the
   ring --line-3 and --e1, 8 from the paper's edges, its parts as lifted pills in the head. It needs no rule here.
   The bids below took the lift away and are kept behind ?bids only so the round can be seen again; they go
   against RDS (Malte, 22.19). */

/* A · Docked. The panel stands flush to the window's right edge on the ground, from under the top bar to the
   window's foot, as the sidebar on the left stands on the ground. A hairline is its edge; no card, no shadow.
   The status line ends where the panel begins. */
html[data-look-side="docked"] [data-r="page"][data-template="document"][data-side="open"] { overflow: visible; }
html[data-look-side="docked"] [data-r="page"][data-template="document"] > [data-part="side"][data-doc-rail] {
  --plane: var(--ground); --plane-hover: var(--ground-hover); --plane-selected: var(--ground-selected); --plane-selected-hover: var(--ground-selected-hover);
  --ring: var(--ring-ground); --ring-hover: var(--ring-ground-hover); --pill-rest: var(--raised);
  margin: 0; border-radius: 0; background: var(--ground); box-shadow: inset var(--px) 0 0 var(--line-2);
}
@media (min-width: 980px) {
  html[data-look-side="docked"] [data-r="page"][data-template="document"][data-side="open"] > [data-part="side"][data-doc-rail] { margin-bottom: calc(-1 * var(--row-28)); z-index: 3; }
  html[data-look-side="docked"] .window:has([data-r="page"][data-side="open"] > [data-doc-rail]:not([hidden])) .status[data-r="status-bar"] { margin-right: var(--panel-side); }
}

/* B · Strip. The same place on the ground, with the panel's words on a raised card inside it, 8 from the
   strip's edges: the ground says "panel", the card says "this is the document's". */
html[data-look-side="strip"] [data-r="page"][data-template="document"][data-side="open"] { overflow: visible; }
html[data-look-side="strip"] [data-r="page"][data-template="document"] > [data-part="side"][data-doc-rail] {
  margin: 0; padding: var(--space-8); border-radius: 0; background: var(--ground); box-shadow: inset var(--px) 0 0 var(--line-2); gap: 0;
}
html[data-look-side="strip"] [data-doc-rail] > [data-part="head"] { background: var(--raised); border-radius: var(--r-side) var(--r-side) 0 0; box-shadow: 0 0 0 var(--px) var(--line-3); }
html[data-look-side="strip"] [data-doc-rail] > [data-part="body"] { background: var(--raised); border-radius: 0 0 var(--r-side) var(--r-side); box-shadow: 0 0 0 var(--px) var(--line-3), var(--e1); }
@media (min-width: 980px) {
  html[data-look-side="strip"] [data-r="page"][data-template="document"][data-side="open"] > [data-part="side"][data-doc-rail] { margin-bottom: calc(-1 * var(--row-28)); z-index: 3; }
  html[data-look-side="strip"] .window:has([data-r="page"][data-side="open"] > [data-doc-rail]:not([hidden])) .status[data-r="status-bar"] { margin-right: var(--panel-side); }
}

/* C · Tray. The card keeps its place 8 from the edges, but sinks: the ground's colour, a hairline inside, no
   shadow. A tray beside the page rather than a sheet on it. */
html[data-look-side="tray"] [data-r="page"][data-template="document"] > [data-part="side"][data-doc-rail] {
  --plane: var(--ground); --plane-hover: var(--ground-hover); --plane-selected: var(--ground-selected); --plane-selected-hover: var(--ground-selected-hover);
  --ring: var(--ring-ground); --ring-hover: var(--ring-ground-hover); --pill-rest: var(--raised);
  background: var(--ground); box-shadow: inset 0 0 0 var(--px) var(--line-2);
}

/* the head of the panel on the ground: its hairline is the ground's */
html:is([data-look-side="docked"], [data-look-side="tray"]) [data-doc-rail] > [data-part="head"] { border-bottom-color: var(--line-2); }

/* ── History, in every bid ───────────────────────────────────────────────────────────────────────
   Before: ten things one under the other at three different gaps, a 44 high grey slab for one keystroke,
   and Export proof and Name this version as lone pills. Now three groups, each 16 in from the panel's
   edges, a hairline between them, the same heading in each, and every row on one line of 28. */
[data-doc-rail] [data-doc-faneblad="history"] { gap: 0; padding: 0 0 var(--space-96); }
[data-doc-faneblad="history"] > [data-writing] { gap: var(--space-8); margin: 0; padding: var(--space-16); box-shadow: inset 0 calc(-1 * var(--px)) 0 var(--line-2); }
[data-doc-faneblad="history"] [data-writing-head] { align-items: baseline; min-height: var(--lh-13); }
[data-doc-faneblad="history"] :is([data-writing-head] h3, [data-origin-panel] h4) { font-size: var(--fs-13); line-height: var(--lh-13); font-weight: var(--fw-550); color: var(--ink); }
[data-doc-faneblad="history"] [data-writing-count] { font-size: var(--fs-12); line-height: var(--lh-12); color: var(--ink-3); }
/* the strip: lower, and a bar is at most 6 wide, so one keystroke is a mark and not a slab */
[data-doc-faneblad="history"] [data-writing-strip] { height: var(--space-32); margin-top: var(--space-4); background: var(--well); border-radius: var(--r-value); }
[data-doc-faneblad="history"] [data-writing-bars] { inset: var(--space-6) var(--space-8); gap: var(--px); }
[data-doc-faneblad="history"] [data-writing-bar] { max-width: 6px; border-radius: 1px; }
[data-doc-faneblad="history"] [data-writing-head-line] { background: var(--accent); }
[data-doc-faneblad="history"] [data-writing-head-line]::before { background: var(--accent); }
[data-doc-faneblad="history"] [data-writing-ruler] { height: var(--lh-12); margin-top: 0; }
[data-doc-faneblad="history"] [data-writing-ruler] span { font-size: var(--fs-11, 11px); color: var(--ink-4); }
/* play, the moment in RDS's well and the speeds as RDS's lifted choice pills (a chosen pill keeps its ring and
   lift, §2zzb) on one row; Compare, a lifted button, at the start of the next */
[data-doc-faneblad="history"] [data-writing-controls] { gap: var(--space-4); min-height: var(--h-28); }
[data-doc-faneblad="history"] [data-writing-when] { background: var(--well); }
[data-doc-faneblad="history"] [data-writing-speed] [data-ui="choice-pill"] { min-width: var(--space-32); justify-content: center; }
[data-doc-faneblad="history"] [data-writing-controls] [data-writing-compare] { flex-basis: auto; margin-right: auto; }
/* where the text came from: the heading, a thin bar, the legend as rows, the switch, and the proof's state
   with Export on its row */
[data-doc-faneblad="history"] [data-origin-panel] { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--space-8) var(--space-8); margin-top: var(--space-16); }
[data-doc-faneblad="history"] [data-origin-panel] > * { grid-column: 1 / -1; margin: 0; }
[data-doc-faneblad="history"] [data-origin-bar] { height: var(--space-4); border-radius: var(--r-round); overflow: hidden; }
[data-doc-faneblad="history"] [data-origin-legend] { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; }
[data-doc-faneblad="history"] [data-origin-legend] > li { min-height: var(--h-28); align-items: center; }
[data-doc-faneblad="history"] [data-origin-panel] > [data-r="option"] { min-height: var(--h-28); }
[data-doc-faneblad="history"] [data-origin-panel] > [data-origin-status] { grid-column: 1; min-height: var(--h-28); display: flex; align-items: center; gap: var(--space-6); color: var(--ink-3); }
[data-doc-faneblad="history"] [data-origin-panel] > [data-origin-export] { grid-column: 2; }
/* the versions: Name this version at the head of the list, the day's label and the rows on the group's edge */
[data-doc-faneblad="history"] > [data-doc-historik] { padding: var(--space-12) var(--space-8) 0; }
[data-doc-faneblad="history"] > [data-doc-historik] > [data-r="toolbar"] { padding: 0 var(--space-8) var(--space-4); margin: 0; border: 0; box-shadow: none; }
[data-doc-faneblad="history"] [data-doc-versionsdag] { padding: var(--space-8) var(--space-8) var(--space-4); margin: 0; font-size: var(--fs-12); line-height: var(--lh-12); font-weight: var(--fw-500); color: var(--ink-3); }

/* ── The head of the sidebar: the z and the app's name ───────────────────────────────────────────
   Before (line): the z drawn as a line of 1.2 at 20 wide beside Text at 14 in 550. The name's stems are
   about 1.6 at that weight; the z's line is thinner than the letters next to it, so the mark looks faint
   and the word loud. Bud A's own rule (round 8): the line is at least 1.25, and the mark is a line from 16
   up or filled under. */

/* A · Filled. The z filled with ink, one of the mark's nine states in round 8; the weight of the black mark
   that stood here before, in bud A's rounded form. The name stays as RDS has it. */
html[data-look-head="filled"] .zt-mark > path:first-child { fill: currentColor; stroke-width: 1px; }
/* asleep, the closed eyes are cut out of the filled z in the ground's colour; the two small z's stay ink */
html[data-look-head="filled"] .zt-mark > .zt-sleep:not(.zt-z) { stroke: var(--ground); stroke-width: 1.2px !important; }
/* B · Even. The line and the word at the same weight: the z's line 1.6 (as the name's stems), the name at
   500, the z 22 wide so its inside keeps air. */
html[data-look-head="even"] [data-r="app-switcher"] > .zt-mark { width: 22px; }
html[data-look-head="even"] .zt-mark > path:first-child { stroke-width: 1.6px; }
html[data-look-head="even"] [data-r="app-switcher"] > [data-part="name"] { font-weight: var(--fw-500); }
/* C · Grandstander. The name in bud A's logo face, so the head is the logo's voice; the z a line of 1.6 as
   in B. At 15 the face is filled, as the wordmark is under 100 wide (round 8). */
@font-face { font-family: "Grandstander"; src: url("fonts/grandstander-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
html[data-look-head="grand"] [data-r="app-switcher"] > .zt-mark { width: 22px; }
html[data-look-head="grand"] .zt-mark > path:first-child { stroke-width: 1.6px; }
html[data-look-head="grand"] [data-r="app-switcher"] > [data-part="name"] { font-family: "Grandstander", var(--font); font-weight: 600; font-size: var(--fs-15, 15px); letter-spacing: .01em; position: relative; top: 1px; }

/* ── The review bar (only with ?bids in the address) ──────────────────────────────────────────── */
.look-bids {
  position: fixed; z-index: 50; left: 50%; bottom: var(--space-40); transform: translateX(-50%);
  display: flex; gap: var(--space-16); padding: var(--space-6) var(--space-8); border-radius: var(--r-round);
  background: var(--raised); box-shadow: var(--ring-raised), var(--e2); font-size: var(--fs-12); line-height: var(--lh-12);
}
.look-bids-group { display: flex; align-items: center; gap: var(--space-4); }
.look-bids-group > span { padding: 0 var(--space-4); color: var(--ink-3); }
.look-bids [aria-pressed="true"] { background: var(--raised-selected); color: var(--ink); }

/* fixes after the first look (round 16): the strip's card takes the strip's width, not the side's; the versions'
   list sits in its group (RDS's rail list pulls it 16 out) without the group's own hairline */
html[data-look-side="strip"] [data-doc-rail] > :not([data-part="handle"]) { width: 100%; }
[data-doc-faneblad="history"] > [data-doc-historik] > [data-r="list"] { margin: 0; padding-top: 0; }
[data-doc-faneblad="history"] [data-doc-versionsdag][data-r="list-group"] { box-shadow: none; }
[data-doc-faneblad="history"] [data-doc-historik] [data-r="list-row"] { margin: 0; padding: 0 var(--space-8); width: 100%; }

/* ── The window's other right panels in the same look ─────────────────────────────────────────────
   Document panel, Page setup, Writing style and Color theme are RDS's side panel (inspector, over) in
   .ws-panel-place at the panes' right edge (app/writing-style.css). They are the same right sidebar as
   Comments and History, so they take the same bid: one right sidebar in Text, whichever part is in it. */
html:is([data-look-side="docked"], [data-look-side="strip"]) .ws-panel-place { width: var(--panel-side); bottom: calc(-1 * var(--row-28)); background: var(--ground); box-shadow: inset var(--px) 0 0 var(--line-2); pointer-events: auto; }
html:is([data-look-side="docked"], [data-look-side="strip"]) .panes:has(> .ws-panel-place) { padding-right: var(--panel-side); }
html:is([data-look-side="docked"], [data-look-side="strip"]) .panes:has(> .ws-panel-place) > .section-line { right: calc(var(--panel-side) + var(--space-16)); }
html:is([data-look-side="docked"], [data-look-side="strip"]) .window:has(.ws-panel-place) .status[data-r="status-bar"] { margin-right: var(--panel-side); }
html[data-look-side="docked"] .ws-panel-place > [data-r="side-panel"] {
  --plane: var(--ground); --plane-hover: var(--ground-hover); --plane-selected: var(--ground-selected); --plane-selected-hover: var(--ground-selected-hover);
  --ring: var(--ring-ground); --ring-hover: var(--ring-ground-hover); --pill-rest: var(--raised);
  position: absolute; inset: 0; width: auto; max-width: none; height: auto; max-height: none; margin: 0; border-radius: 0; background: transparent; box-shadow: none;
}
html[data-look-side="strip"] .ws-panel-place > [data-r="side-panel"] { position: absolute; inset: var(--space-8); width: auto; max-width: none; height: auto; max-height: none; margin: 0; }
html[data-look-side="tray"] .ws-panel-place > [data-r="side-panel"] {
  --plane: var(--ground); --plane-hover: var(--ground-hover); --plane-selected: var(--ground-selected); --plane-selected-hover: var(--ground-selected-hover);
  --ring: var(--ring-ground); --ring-hover: var(--ring-ground-hover); --pill-rest: var(--raised);
  background: var(--ground); box-shadow: inset 0 0 0 var(--px) var(--line-2);
}
html[data-look-side="docked"] .ws-panel-place > [data-r="side-panel"] [data-part="head"] { border-bottom-color: var(--line-2); }

/* ── The parts inside the right sidebar ───────────────────────────────────────────────────────────── */
/* Comments: a new comment was a field in a card (two frames); now the card is the field */
[data-doc-rail] [data-r="margin-note"]:has(> [data-r="comment-box"]:first-child) { padding: var(--space-2); }
[data-doc-rail] [data-r="margin-note"] > [data-r="comment-box"]:first-child { border: 0; box-shadow: none; background: none; }
/* Links: the count under its heading, so neither is cut */
[data-doc-rail] [data-rel-head] { flex-direction: column; align-items: flex-start; gap: var(--space-2); }
[data-doc-rail] [data-rel-head] > h4 { white-space: nowrap; }
[data-doc-rail] [data-rel-status] { max-width: 100%; color: var(--ink-3); font-size: var(--fs-12); line-height: var(--lh-12); }

/* Proof in the panel: its own head said Proof under the tab that already says Proof; the count is the head */
[data-doc-rail] [data-proof][data-embedded] { padding-inline: 0; }
[data-doc-rail] [data-proof][data-embedded] > header { display: flex; align-items: center; gap: var(--space-8); }
[data-doc-rail] [data-proof][data-embedded] > header > :is(svg, span:first-of-type) { display: none; }
[data-doc-rail] [data-proof][data-embedded] > header > span:nth-of-type(2) { margin: 0 auto 0 0; color: var(--ink); font-weight: var(--fw-550); }
/* In Pages the desk under the sheets is the ground; the side's air takes the same ground, so the lifted card stands
   on the desk, not on a strip of paper beside it */
html[data-pages] [data-r="page"][data-template="document"] { background: var(--ground); }

/* ── The bubble takes the Dock's form ───────────────────────────────────────────────────────────────
   Malte, 22.22: "Se docken i inbox også". Inbox' bar for many at once is RDS's Dock form: a pill 44 high, buttons
   of 28 with 8 around them, every button lifted, the shadow of 2zzg in light and the ring in dark (DESIGN 2zzg,
   2zzj, 2zzk: "alt der kan trykkes på, skal være løftet også ... det skal være konsistent"). The bubble over chosen
   words is the same kind of floating bar, so it takes the same form. RDS's own format bar (radius 12, ghost buttons)
   is unchanged; that the format bar follows the Dock is a proposal for RDS. */
[data-document] [data-doc-boble][data-r="format-bar"] {
  --pill-rest: var(--raised);
  height: 44px; gap: var(--space-4); padding: 0 var(--space-8); border-radius: var(--r-press);
  background: var(--raised);
  box-shadow: 0 1px 2px -1px rgb(0 0 0 / .1), 0 4px 16px -2px rgb(0 0 0 / .08);
}
@supports (corner-shape: round) { [data-document] [data-doc-boble][data-r="format-bar"] { corner-shape: round; } }
[data-document] [data-doc-boble] [data-doc-boble-knap] {
  min-width: var(--h-28); height: var(--h-28); padding: 0 var(--space-6);
  background: var(--pill-rest); color: var(--ink-2);
  box-shadow: 0 0 0 var(--px) rgb(var(--ring-rgb) / var(--ring)), var(--e1);
}
[data-document] [data-doc-boble] [data-doc-boble-knap][aria-pressed="true"] { background: var(--pill-on); color: var(--ink); }
@media (hover: hover) {
  [data-document] [data-doc-boble] [data-doc-boble-knap]:hover { background: var(--plane-hover); color: var(--ink); box-shadow: 0 0 0 var(--px) rgb(var(--ring-rgb) / var(--ring-hover)), var(--e1); }
  [data-document] [data-doc-boble] [data-doc-boble-knap][aria-pressed="true"]:hover { background: var(--pill-on-hover); }
}
[data-document] [data-doc-boble] [data-doc-boble-skel] { margin: 0 var(--space-2); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) [data-document] [data-doc-boble][data-r="format-bar"] { --pill-rest: var(--raised-selected); --plane-hover: var(--raised-selected-hover); box-shadow: 0 0 0 var(--px) rgb(var(--ring-rgb) / var(--ring)), var(--e2); }
}
:root[data-theme="dark"] [data-document] [data-doc-boble][data-r="format-bar"] { --pill-rest: var(--raised-selected); --plane-hover: var(--raised-selected-hover); box-shadow: 0 0 0 var(--px) rgb(var(--ring-rgb) / var(--ring)), var(--e2); }

/* ── Inside the right side: one grammar for every tab ─────────────────────────────────────────────────
   Malte, 22.34: "Indholdet ser katastrofalt ud". Each tab had its own edges (16, 24, 28, 34), its own type (11, 12,
   13, 14 and a weight of 590) and its own buttons (ghost, sand, lifted). RDS's content parts of a right side
   (DESIGN RAMTT-757) give one grammar, and every tab now speaks it:
   - one edge: words start 16 from the card's edge; a row's hover pill starts 8 from it, so its words still start at 16
   - a group's head is 13/550 in ink, its count 12 in ink 3 and tabular, at the right
   - a row is 13 in ink, its line under or after it 12 in ink 3; a sentence is 12/1.5 in ink 2 (part 11)
   - groups are parted by a hairline that starts at the words (the lists from Claude, approved 20 November)
   - what can be pressed is lifted (2zzk); only a cross or a lone icon stays ghost, as in Inbox' dock */
[data-doc-rail] [role="tabpanel"]:not([hidden]) { gap: 0; padding: 0 0 var(--space-96); }
/* buttons with words in the side are RDS's lifted button (its fill, ring and --e1), never ghost */
[data-doc-rail] [data-r="button"][data-variant="ghost"]:not([data-icon-only]) { background-color: var(--pill-rest); }
[data-doc-rail] [data-r="button"][data-variant="ghost"]:not([data-icon-only])::after { box-shadow: 0 0 0 var(--px) rgb(var(--ring-rgb) / var(--ring)), var(--e1); }
[data-doc-rail] [data-r="button"][data-size="20"]:not([data-icon-only]) { --h: var(--h-24); --fs: var(--fs-12); --lh: var(--lh-12); --pad: var(--space-8); }

/* Outline: RDS's tree, its rows 8 in, a little air over the first */
[data-doc-faneblad="outline"] > nav { padding: var(--space-8) var(--space-8) 0; }

/* Comments: the new comment's field 16 from the edges, as the words of every other tab */
[data-doc-faneblad="comments"] [data-r="doc-margin"] > [data-part="track"] { padding: var(--space-12) var(--space-16) var(--space-24); }
[data-doc-faneblad="comments"] [data-r="doc-margin"] > [data-part="track"] > [data-r="margin-note"] { margin-inline: 0; }

/* Links: what links here is one group among others, so it is said in a line and gets no figure (bud A: a group
   in a panel that has something in it gets no figure); Related is the next group, under a hairline */
[data-doc-faneblad="links"] > [data-doc-tom] [data-r="empty"] { align-items: flex-start; text-align: left; padding: var(--space-16) var(--space-16) var(--space-12); gap: var(--space-2); }
[data-doc-faneblad="links"] > [data-doc-tom] [data-r="empty"] > [data-part="art"] { display: none; }
[data-doc-faneblad="links"] > [data-doc-tom] [data-r="empty"] > [data-part="title"] { margin: 0; font-size: var(--fs-13); line-height: var(--lh-13); font-weight: var(--fw-550); color: var(--ink); }
[data-doc-faneblad="links"] > [data-doc-tom] [data-r="empty"] > [data-part="text"] { margin: 0; max-width: none; font-size: var(--fs-12); line-height: 1.5; color: var(--ink-2); }
[data-doc-faneblad="links"] [data-related] { margin: 0 var(--space-16); padding: var(--space-16) 0 0; border: 0; box-shadow: inset 0 var(--px) 0 var(--line-2); }
[data-doc-faneblad="links"] [data-rel-head] { margin-top: var(--space-16); }
[data-doc-faneblad="links"] [data-rel-head] > h4 { font-size: var(--fs-13); line-height: var(--lh-13); font-weight: var(--fw-550); color: var(--ink); }
/* a hit is a row of the list, parted by a hairline, not a card: its document 13/550, the paragraph in three lines
   of 12/1.5 in ink 2, why it was found in ink 3, and Quote here as a lifted pill under it */
[data-doc-faneblad="links"] [data-rel-hits] { margin: var(--space-8) 0 0; }
[data-doc-faneblad="links"] [data-rel-hit][data-r="list-row"] { border-radius: 0; padding: var(--space-8) 0; box-shadow: inset 0 calc(-1 * var(--px)) 0 var(--line-2); background: none; }
[data-doc-faneblad="links"] [data-rel-hit][data-r="list-row"]:last-child { box-shadow: none; }
[data-doc-faneblad="links"] [data-rel-hit] > button[data-rel-open] { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-2) var(--space-8); width: calc(100% + var(--space-16)); margin: 0 calc(-1 * var(--space-8)); padding: var(--space-6) var(--space-8); border-radius: var(--r-row); text-align: left; }
@media (hover: hover) { [data-doc-faneblad="links"] [data-rel-hit] > button[data-rel-open]:hover { background: var(--plane-hover); } }
[data-doc-faneblad="links"] [data-rel-title] { font-size: var(--fs-13); line-height: var(--lh-13); font-weight: var(--fw-550); color: var(--ink); }
[data-doc-faneblad="links"] [data-rel-score] { align-self: center; width: var(--space-32); height: var(--space-4); border-radius: var(--r-round); background: var(--well); overflow: hidden; }
[data-doc-faneblad="links"] [data-rel-score] > i { height: 100%; background: var(--ink-3); border-radius: inherit; }
[data-doc-faneblad="links"] [data-rel-text] { grid-column: 1 / -1; font-size: var(--fs-12); line-height: 1.5; font-weight: var(--fw-400); color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
[data-doc-faneblad="links"] [data-rel-why] { grid-column: 1 / -1; font-size: var(--fs-12); line-height: var(--lh-12); color: var(--ink-3); }
[data-doc-faneblad="links"] [data-rel-actions] { padding: var(--space-4) 0 0; gap: var(--space-4); }

/* Proof: the same edge and head as the other tabs; a row's hover pill 8 in, its words at 16 */
[data-doc-rail] [data-proof][data-embedded] { padding: var(--space-12) var(--space-16) var(--space-16); }
[data-doc-rail] [data-proof] .proof-group-head { display: flex; align-items: baseline; justify-content: space-between; font-size: var(--fs-13); line-height: var(--lh-13); font-weight: var(--fw-550); color: var(--ink); }
[data-doc-rail] [data-proof] .proof-group-count { font-size: var(--fs-12); line-height: var(--lh-12); font-weight: var(--fw-400); color: var(--ink-3); font-variant-numeric: tabular-nums; }
[data-doc-rail] [data-proof] .proof-groups { margin-top: var(--space-8); }
[data-doc-rail] [data-proof] .proof-group + .proof-group { margin-top: var(--space-12); padding-top: var(--space-12); box-shadow: inset 0 var(--px) 0 var(--line-2); }
[data-doc-rail] [data-proof] .proof-list { margin: var(--space-4) calc(-1 * var(--space-8)) 0; }
[data-doc-rail] [data-proof] .proof-row { min-height: var(--h-28); padding: 0 var(--space-4) 0 var(--space-8); border-radius: var(--r-row); }
/* History, after the first look: the timeline lower and lighter, the origin bar a bar and not a line, the versions'
   dots on the edge of the words above them */
[data-doc-faneblad="history"] [data-writing-strip] { height: var(--space-24); }
[data-doc-faneblad="history"] [data-writing-bars] { inset: var(--space-4) var(--space-8); }
[data-doc-faneblad="history"] [data-origin-bar] { height: var(--space-6); }
[data-doc-faneblad="history"] [data-doc-historik] [data-r="list-row"] { padding-left: 0; }
[data-doc-faneblad="links"] [data-rel-score] > i { background: var(--ink-4); }
/* the Document panel's groups take the same head as the page side's: 13/550 in ink, the count 12 in ink 3 */
.ws-panel-place .doc-part-group > h3 { font-size: var(--fs-13); line-height: var(--lh-13); font-weight: var(--fw-550); color: var(--ink); }
.ws-panel-place .doc-part-group > h3 > span { font-size: var(--fs-12); font-weight: var(--fw-400); color: var(--ink-3); font-variant-numeric: tabular-nums; }
[data-doc-faneblad="history"] [data-origin-bar] > * { border-radius: 0; }
[data-doc-faneblad="links"] [data-rel-score] > i { border-radius: 0; }
