
/* Where the notice came from, under the meta row. Muted: it is provenance,
   not urgency, and it must not compete with the deadline beside it. */
/* ⚠️ THE ICON STRANDED ITSELF ON ITS OWN LINE. This is a wrapping flex row
   whose second item is a whole sentence, so at any width where the sentence
   does not fit beside the glyph the WHOLE span moved to the next line and
   left the icon sitting alone above it -- measured at 390px, where the
   provenance line is exactly the sentence a reader most needs. Giving the
   sentence `flex:1;min-width:0` makes it wrap INSIDE itself instead, so the
   icon keeps the first line company and the identifier still wraps after.
   `line-height` for the same reason as `.meta`: this sentence runs to two
   lines on a phone and inherited prose leading is not the right measure for
   a caption. */
.t-source{display:flex;gap:8px;align-items:baseline;flex-wrap:wrap;
  margin-top:10px;font-size:13.5px;line-height:1.5;
  color:hsl(var(--muted-foreground))}
/* ⚠️ THREE OF THESE CAN STACK -- provenance, freshness, lots -- and at the
   full 10px each they read as three unrelated notes bolted under the meta
   row rather than as one caption about where this tender came from and how
   current it is. Consecutive ones close up; the first still clears the meta
   row above it. */
.t-source + .t-source{margin-top:4px}
.t-source > span{flex:1 1 240px;min-width:0}
.t-source svg{width:14px;height:14px;flex:none;position:relative;top:2px}
.t-source b{color:hsl(var(--foreground));font-weight:600;
  font-variant-numeric:tabular-nums}

/* ---------- what the buyer was asked ----------
   A disclosure per entry, because the body is a whole letter -- reference
   number, date, question and answer -- and twelve of those open on a page is
   a wall. The first line is the buyer's own subject line and makes a good
   summary; `docrender` learned the same thing about tender documents. */
.qa{margin:0}
.qa details{border-top:1px solid hsl(var(--border));padding:2px 0}
.qa details:first-child{border-top:0}
.qa summary{cursor:pointer;list-style:none;display:flex;gap:12px;
  align-items:baseline;padding:12px 0;font-size:15px;line-height:1.5}
.qa summary::-webkit-details-marker{display:none}
.qa summary .when{flex:none;width:96px;font-size:13.5px;
  color:hsl(var(--muted-foreground));font-variant-numeric:tabular-nums}
.qa summary .gist{min-width:0;overflow-wrap:break-word}
.qa pre{margin:0 0 14px;padding:0 0 0 120px;white-space:pre-wrap;
  overflow-wrap:break-word;font-family:inherit;font-size:15px;
  line-height:1.7;color:hsl(var(--muted-foreground))}
@media (max-width:640px){
  .qa summary{flex-direction:column;gap:2px}
  .qa summary .when{width:auto}
  .qa pre{padding-left:0}
}

/* ---------- the yes, and what it unlocks ---------- */
/* A toggled-on control takes the ink the way a pressed key does -- the same
   device `.saved-on` and the rail's active item use. Not a state colour:
   deciding to bid is not a verdict on eligibility. */
/* ⚠️ `nowrap`, MEASURED. "Pripravljate ponudbo" is two words and 20
   characters, and without this it wrapped inside the button -- which made
   the decision control 72px tall beside a row of 44px ones and broke the
   only row on the page where the buttons are meant to read as siblings. */
.bid-on,.t-head .btn-primary{white-space:nowrap}
.bid-on{border-color:hsl(var(--primary) / .55);color:hsl(var(--primary));
  background:hsl(var(--primary) / .08)}
.bid-step{display:grid;grid-template-columns:26px minmax(0,1fr) auto;
  gap:0 14px;align-items:center;padding:14px 20px;
  border-top:1px solid hsl(var(--border))}
.bid-step:first-child{border-top:0}
.bid-mark{display:grid;place-items:center;width:24px;height:24px;
  border-radius:7px;background:hsl(var(--muted));
  color:hsl(var(--muted-foreground))}
.bid-mark svg{width:14px;height:14px;display:block}
.bid-what{min-width:0}
.bid-what b{display:block;font-size:15px;line-height:1.4}
.bid-what span{display:block;font-size:13.5px;line-height:1.5;margin-top:4px;
  color:hsl(var(--muted-foreground))}
/* ⚠️ DONE IS QUIETER, NOT GREEN. `CLAUDE.md` records four separate occasions
   where a four-state colour was borrowed as decoration and had to be
   reverted, and an item ticked off a preparation list is not MEET -- MEET is
   an answer about a statutory condition. So the difference is ink weight and
   the absence of a control, which is also the honest signal: there is
   nothing left to press. */
.bid-step.is-done .bid-what b{font-weight:400;
  color:hsl(var(--muted-foreground))}
.bid-act{display:flex;gap:8px;white-space:nowrap}
@media (max-width:640px){
  .bid-step{grid-template-columns:26px minmax(0,1fr);gap:6px 14px}
  .bid-act{grid-column:2}
}

/* ---------- how it ended ----------
   Facts in a row, each with the word for what it counted. Not tiles: a tile
   is the overview's object and `CLAUDE.md` records what happened the last
   time one was borrowed as a modifier. */
.outcome .o-head{font-size:11px;font-weight:600;letter-spacing:.09em;
  text-transform:uppercase;color:hsl(var(--muted-foreground));margin-bottom:14px}
.o-facts{display:flex;flex-wrap:wrap;gap:10px 32px}
.o-fact b{display:block;font-size:19px;font-weight:750;letter-spacing:-.02em;
  line-height:1.15;font-variant-numeric:tabular-nums}
.o-fact span{display:block;font-size:13.5px;color:hsl(var(--muted-foreground));
  margin-top:4px}
.o-buyer{margin:0;font-size:15px;line-height:1.6;
  color:hsl(var(--muted-foreground))}
/* The line divides two parts, so it needs something above it. Set on the
   sentence alone, an open tender's card opened with a blank strip and a rule
   over nothing (57px on a phone, the owner, 2026-11-03). */
.o-facts + .o-buyer{margin-top:20px;padding-top:16px;
  border-top:1px solid hsl(var(--border))}
.o-buyer b{color:hsl(var(--foreground));font-variant-numeric:tabular-nums}

/* ---------- the four states ---------- */
.q-chips{display:flex;gap:8px;flex-wrap:wrap;margin-left:auto}
.q-chip{display:inline-flex;align-items:center;gap:6px;font-size:11px;
  font-weight:600;border-radius:999px;padding:4px 12px;
  background:hsl(var(--muted));color:hsl(var(--muted-foreground))}
.q-chip svg{width:12px;height:12px;flex:none;display:block}
.q-chip.ok{color:hsl(var(--ok));background:hsl(var(--ok) / .1)}
.q-chip.warn{color:hsl(var(--warn));background:hsl(var(--warn) / .1)}
.q-chip.bad{color:hsl(var(--bad));background:hsl(var(--bad) / .1)}

/* ONE LINE UNTIL ASKED (`compact_row`, the owner's choice of 2026-10-29):
   the mark, the title and a chevron; the text, the quote and the source open
   under it, indented to the title. The way to fix a row sits outside the
   fold, so it is still one tap. */
.q-row{border-top:1px solid hsl(var(--border))}
.q-row:first-child{border-top:0}
.q-row summary{display:grid;grid-template-columns:30px minmax(0,1fr) 20px;
  gap:14px;align-items:center;padding:12px 20px;min-height:56px;
  list-style:none;cursor:pointer}
.q-row summary::-webkit-details-marker{display:none}
.q-t{font-size:15px;font-weight:600;line-height:1.35;min-width:0}
.q-t > span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
  overflow:hidden}
.q-row details[open] > summary .q-t > span{-webkit-line-clamp:unset;
  overflow:visible}
.q-t small{display:block;font-size:11px;font-weight:600;letter-spacing:.06em;
  text-transform:uppercase;color:hsl(var(--muted-foreground));margin-bottom:2px}
.q-c{display:grid;place-items:center;color:hsl(var(--muted-foreground))}
.q-c svg{width:18px;height:18px;transform:rotate(-90deg);
  transition:transform var(--t-tap, .15s) ease}
.q-row details[open] > summary .q-c svg{transform:none}
.q-row > details > .q-what{padding:0 20px 14px 64px}
.q-fixline{padding:0 20px 12px 64px}
.q-fixline .q-fix{margin-top:0}
.q-met-rows{border-top:1px solid hsl(var(--border))}
@media (hover:hover){.q-row summary:hover{background:hsl(var(--muted) / .5)}}
.q-row summary:active{background:hsl(var(--muted))}
.q-mark{width:26px;height:26px;border-radius:8px;display:grid;
  place-items:center;
  background:hsl(var(--muted));color:hsl(var(--muted-foreground))}
.q-mark svg{width:15px;height:15px;display:block}
/* A condition with no state for this firm keeps the column, not a grey box:
   its neighbours carry a mark and their text must line up. */
.q-mark:empty{background:none}
/* A list where no row can carry a mark has no column for one. »Kaj oddate in
   kam« reserved it for nothing, so all its text sat 44px right of the heading
   and of the card's own edge, like a stray tab (the owner, 2026-11-03). */
.q-row.bp summary{grid-template-columns:minmax(0,1fr) 20px}
.q-row.bp .q-mark{display:none}
.q-row.bp > details > .q-what{padding-left:20px}
.q-row.ok .q-mark{background:hsl(var(--ok) / .12);color:hsl(var(--ok))}
.q-row.warn .q-mark{background:hsl(var(--warn) / .12);color:hsl(var(--warn))}
.q-row.bad .q-mark{background:hsl(var(--bad) / .12);color:hsl(var(--bad))}
.q-what{min-width:0}
.q-what b{display:block;font-size:15px;letter-spacing:-.01em}
/* 3px put the requirement hard against its own heading, so a four-part entry
   -- name, requirement, why we say that, statute -- read as one paragraph
   with a bold first phrase rather than as four different KINDS of statement.
   The gaps now step: 6 to the requirement, 6 to the reason, 9 to the source,
   which is the order of how far each one is from the reader's question. */
.q-req{display:block;font-size:15px;line-height:1.55;margin-top:6px}
.q-why{display:block;font-size:13.5px;line-height:1.55;margin-top:6px;
  color:hsl(var(--muted-foreground))}
.q-do{display:block;font-size:13.5px;line-height:1.55;margin-top:8px;
  padding:8px 12px;border-radius:9px;background:hsl(var(--warn) / .08);
  color:hsl(var(--warn));font-weight:600}
/* The way to fix the thing the row just reported. Quiet -- it is a way out,
   not a call to action -- but it is a real control where there used to be a
   sentence. */
.q-fix{display:inline-block;margin-top:8px;font-size:13.5px;font-weight:600;
  line-height:1.4}
/* The open certificate voucher, under a certificate the firm does not hold
   (»Spodbude«, docs/28). A fact in ink, no state colour: money one may apply
   for is not a verdict about this tender. */
.q-grant{display:block;font-size:13.5px;line-height:1.55;margin-top:8px;
  color:hsl(var(--foreground))}
.req .q-grant{margin:0 0 12px}
.q-src{display:block;font-size:11px;margin-top:10px;
  color:hsl(var(--muted-foreground))}
@media (max-width:640px){
  .q-chips{margin:8px 0 0 0}
}
/* The same count in the header card, where the section it summarises starts
   below the fold. Off by default: above 900px the section head carries it
   150px further down, and the reader should meet it once. See `render`. */
.t-states{display:none}
@media (max-width:900px){
  .t-states{display:block;margin-top:16px;color:inherit}
  .t-states .q-chips{margin:0}
  .t-states + .t-states{margin-top:8px}
  .t-states-k{display:block;flex-basis:100%;font-size:13.5px;margin-bottom:6px;
    color:hsl(var(--muted-foreground))}
}
/* It jumps to the section it summarises -- the same "chip scrolls to its
   band" idiom the overview's contents strip already uses, so it is not a new
   thing to learn. A chip is 24px, which is fine to read and under the floor
   for something you aim at with a thumb, so the LINK grows rather than the
   chips: `align-content` keeps them at their own size inside it. */
@media (pointer:coarse) and (max-width:900px){
  .t-states{display:flex;flex-wrap:wrap;align-content:center;min-height:44px}
}

.t-head h1{font-size:22px;line-height:1.3;margin-bottom:6px}
/* The facts in one labelled box (owner's choice, 2026-10-29): the deadline
   across the top, value and region side by side, the activity in words
   underneath. Hairlines are the box's own background showing through a 1px
   gap, so a cell that wraps keeps every line straight. */
.t-buyer{font-size:15px;color:hsl(var(--muted-foreground));margin:0 0 16px}
.t-buyer a{color:inherit}
.t-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;
  margin:0 0 16px;background:hsl(var(--border));border:1px solid hsl(var(--border));
  border-radius:12px;overflow:hidden}
.t-facts > div{background:hsl(var(--card));padding:10px 12px;min-width:0}
.t-facts .t-wide{grid-column:1 / -1}
.t-facts dt{font-size:11px;letter-spacing:.06em;text-transform:uppercase;
  color:hsl(var(--muted-foreground));margin:0 0 2px}
.t-facts dd{margin:0;font-size:15px;font-weight:600;line-height:1.4;
  overflow-wrap:anywhere}
.t-facts dd i{font-style:normal;font-weight:400;color:hsl(var(--muted-foreground))}
.t-facts .pill{margin-left:4px}
.t-asked{display:block;margin-top:4px;font-weight:400;font-size:13.5px;
  color:hsl(var(--muted-foreground))}
.t-more{margin-top:16px;border-top:1px solid hsl(var(--border));padding-top:4px}
.t-more summary{font-size:15px;color:hsl(var(--primary));min-height:44px;
  display:flex;align-items:center;cursor:pointer}
.t-links{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 14px}
/* Two to a row on a phone, where one each stacked five 44px buttons. */
@media (max-width:640px){
  .t-links > *{flex:1 1 calc(50% - 4px);justify-content:center;
    padding-left:8px;padding-right:8px;text-align:center}
}
/* A link now, not a row of text: each one opens that file in the reader.
   `color:inherit` because a list of forty indigo filenames is a wall. */
.doc-row{display:flex;align-items:center;gap:14px;padding:12px 16px;
  border-bottom:1px solid hsl(var(--border));font-size:15px;color:inherit;
  transition:background .16s ease,color .16s ease}
.doc-row:last-child{border-bottom:0}

a.doc-row:focus-visible{outline:2px solid hsl(var(--primary));
  outline-offset:-2px}
.doc-row .name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap}
/* Lists inside the bridge blocks. Not cards: these are supporting facts
   for the decision, not things to click on. */
.ev-blockers{margin:0;padding:0 0 0 20px;font-size:15px;line-height:1.7}
.ev-blockers li{margin-bottom:4px;overflow-wrap:anywhere}
.ev-blockers li b{font-weight:650}
.req-quote{border-left:2px solid hsl(var(--primary) / .4);
  padding:6px 0 6px 12px;font-style:italic;font-size:15px;
  color:hsl(var(--muted-foreground));line-height:1.55;white-space:pre-wrap}
.req-cite{margin-top:10px;font-size:13.5px;color:hsl(var(--muted-foreground));
  display:flex;gap:6px 14px;flex-wrap:wrap;align-items:center}
/* A file name can be one long word, and it ran off a phone (2026-11-03). */
.req-cite span{min-width:0;overflow-wrap:anywhere}
/* What this condition means for this firm (`api/evidencecheck.py`), directly
   under the condition and in full ink, ABOVE the buyer's words: at the foot
   of the row, small and grey, under a quote and a source line, nobody could
   tell what it referred to (the owner, 2026-11-03, who chose this layout). */
.req .q-why{margin:0 0 12px;font-size:15px;color:hsl(var(--foreground))}
.req .q-do{margin:0 0 12px}
.req .q-what > .q-fix:first-child{margin:0 0 12px}

/* ---------- the buyer's own conditions section, verbatim ----------
   `api/conditions.py`. Set as a DOCUMENT, like the reading room: a touch of
   leading and a measure capped in px, because this is the buyer's prose and
   it is read, not scanned. `pre-wrap` keeps the paragraph breaks the text
   layer carries; they are the document's structure. No state colour: this
   block says what the buyer wrote, not whether the reader meets it. */
.cond-src{display:flex;flex-wrap:wrap;gap:4px 14px;align-items:baseline;
  margin:0 0 12px;font-size:13.5px;color:hsl(var(--muted-foreground))}
.cond-src b{color:hsl(var(--foreground));font-weight:600;
  overflow-wrap:anywhere}
.cond-text{margin:0;max-width:680px;font-size:15px;line-height:1.65;
  white-space:pre-wrap;overflow-wrap:break-word}
.cond-more{margin-top:4px}
.cond-more > summary{cursor:pointer;display:inline-flex;align-items:center;
  min-height:44px;font-size:15px;font-weight:600;color:hsl(var(--primary))}
.cond-more[open] > summary{margin-bottom:4px}
.cond-note{margin-top:12px;font-size:13.5px;color:hsl(var(--muted-foreground))}
/* The exclusion grounds in the buyer's words, folded under the statutory
   block. The summary is the whole affordance, so it gets the 44px target
   and the primary ink a link would have. */
.cond-fold{margin-top:12px}
.cond-fold > summary{cursor:pointer;display:flex;align-items:center;
  min-height:44px;font-size:15px;font-weight:600;color:hsl(var(--primary))}
.cond-fold[open] > summary{margin-bottom:8px}
.cond-lead{margin:0 0 14px;font-size:13.5px;color:hsl(var(--muted-foreground))}
/* The demands `api/demands.py` marks inside the buyer's text, and the lines
   above it. A neutral tint with an underline, never a state colour and never
   the browser's yellow: a mark says "this is a number to look at", not
   "you meet this". */
mark.dem{background:hsl(var(--muted));color:inherit;border-radius:3px;
  padding:0 2px;box-shadow:inset 0 -1px 0 hsl(var(--border))}
.dem-line{margin:0 0 10px;font-size:15px;line-height:1.6;overflow-wrap:anywhere}
.dem-line span{color:hsl(var(--muted-foreground))}
/* What a correction changed. Folded to one line under the header, because
   the exclusion grounds below it are the decision and on a phone they were
   already below the fold; the line carries the change most likely to alter a
   plan, so the fold costs nothing that matters. Ink only: a correction is a
   fact about the tender. */
.corr{margin-top:14px}
.corr > summary{cursor:pointer;display:flex;align-items:center;gap:12px;
  min-height:44px;font-size:15px;color:hsl(var(--muted-foreground))}
.corr > summary b{color:hsl(var(--foreground));font-weight:600}
/* The browser's own marker goes with `display:flex`, so the chevron is what
   says this opens -- the same drawing and motion as the reading room's. */
.corr > summary .fold-ico{width:16px;height:16px;flex:none;margin-left:auto;
  transition:transform .2s var(--ease-out)}
.corr[open] > summary .fold-ico{transform:rotate(180deg)}
.corr[open] > summary{margin-bottom:8px}
.corr-one + .corr-one{margin-top:16px;padding-top:14px;
  border-top:1px solid hsl(var(--border))}
.corr-facts{margin:0;padding:0;list-style:none;font-size:15px;line-height:1.6}
.corr-facts li{overflow-wrap:anywhere}
.corr-facts span{color:hsl(var(--muted-foreground))}
.corr-said{margin:10px 0 0;max-width:680px;font-size:15px;line-height:1.65;
  white-space:pre-wrap;overflow-wrap:break-word}
.corr-said span{color:hsl(var(--muted-foreground))}

/* ---------- what a bid hands in, part by part (`api/bidpapers.py`) ----------
   Inside a `compact_row`, so each e-JN part is one line until asked. Ink
   only: this is about the bid, not a verdict on the tender. */
.bp-list{margin:0;padding:0;list-style:none;font-size:15px;line-height:1.5}
.bp-list li{padding:8px 0;border-top:1px solid hsl(var(--border));
  overflow-wrap:anywhere}
.bp-list li:first-child{border-top:0}
.bp-if,.bp-held{display:block;margin-top:2px;font-size:13.5px;
  color:hsl(var(--muted-foreground))}
.bp-if{font-style:italic}
.bp-file{margin:12px 0 0;font-size:13.5px;font-weight:600;
  overflow-wrap:anywhere}
.bp-file:first-child{margin-top:0}
.bp-rule{margin:8px 0 0;max-width:680px;font-size:13.5px;line-height:1.55;
  color:hsl(var(--muted-foreground))}
/* The way to the filled copy, on its own line under the file or the form:
   beside the name it wrapped into the title on a phone. A text link, so on
   a coarse pointer it takes the 44px a finger needs. */
.bp-fill{display:block;margin-top:4px;font-size:13.5px;font-weight:600}
@media (pointer:coarse){.bp-fill{display:inline-flex;align-items:center;min-height:44px}}
.bp-fill:active{opacity:.6;transition-duration:var(--t-tap)}

/* ---------- the four tabs (docs/27) ----------
   With no script the nav is hidden and each panel is a stretch of the page
   under its own name; `TABS_JS` adds `.on`, shows the nav and one panel. The
   current tab takes the ink and a bar under it, the device the rail uses for
   where you are: a tab is a place, not a state. */
.t-tabnav{display:none}
.t-panel-h{font-size:19px;font-weight:650;letter-spacing:-.015em;
  margin:40px 0 0;padding:0 0 8px;border-bottom:2px solid hsl(var(--foreground))}
.t-tabs.on .t-tabnav{display:grid;grid-auto-flow:column;
  grid-auto-columns:minmax(0,1fr);margin-top:24px;
  border-bottom:1px solid hsl(var(--border))}
.t-tabs.on .t-panel-h{display:none}
.t-panel[hidden]{display:none}
.t-tab{display:flex;align-items:center;justify-content:center;min-height:48px;
  padding:0 8px;font-size:15px;font-weight:600;text-align:center;
  color:hsl(var(--muted-foreground));box-shadow:inset 0 -2px 0 transparent;
  transition:color var(--t-quick) var(--ease),box-shadow var(--t-quick) var(--ease)}
.t-tab[aria-selected="true"]{color:hsl(var(--foreground));
  box-shadow:inset 0 -2px 0 hsl(var(--foreground))}
.t-tab:focus-visible{outline:2px solid hsl(var(--primary));outline-offset:-2px}
/* Pressed, a tab DIMS, the text link's device (`views.CSS`): the open tab
   already wears the ink a closed one takes on, so a colour alone answered
   nothing there, and the pre-ship sweep presses the first tab, which is the
   open one. */
.t-tab:active{color:hsl(var(--foreground));opacity:.6;
  transition-duration:var(--t-tap)}
/* A caption that was a line in the header card, in its tab now. */
.t-line .t-source{margin-top:0}
.doc-row .doc-start,.doc-row .doc-from{flex:none;font-size:13.5px}
.doc-row .doc-from{color:hsl(var(--muted-foreground))}

/* ---------- the decision bar (docs/27) ----------
   Both states of a switch are in the markup and `data-on` shows one, so the
   script flips an attribute rather than rewriting a button. */
.t-decide{display:flex;justify-content:center;align-items:stretch;gap:8px}
.t-dec-f{margin:0;display:flex}
.t-dec,.t-go{white-space:nowrap}
.t-dec > span{display:inline-flex;align-items:center;gap:8px}
.t-dec[data-on="1"] > .w-off,.t-dec:not([data-on="1"]) > .w-on{display:none}
.t-decide svg{width:18px;height:18px;flex:none}
/* On a desk it rides the foot of the window while the page scrolls and comes
   to rest under the last tab's content; a pill, centred, so it never reaches
   the corner back-to-top lives in. */
@media (min-width:901px){
  .t-decide{position:sticky;bottom:16px;z-index:5;width:max-content;
    max-width:100%;margin:32px auto 0;padding:8px;border-radius:999px;
    background:hsl(var(--card));border:1px solid hsl(var(--border));
    box-shadow:var(--shadow-lg)}
  /* ⚠️ The toasts are bottom-centre of the window at 26px, so a reply to a
     press lay over the bar it came from, on its centre button, for up to ten
     seconds. They sit above it, clear of where it rests at the foot of the
     page as well (`.content`'s 56px), which is higher than where it sticks. */
  html:has(.t-decide) .toasts{bottom:130px}
}
/* ⚠️ ON A PHONE IT IS FIXED ABOVE THE TAB BAR, AND THE PAGE RESERVES IT. The
   tab bar is 62px, a border and the home indicator; the bar sits on that, and
   its foot is 16px because the assistant's raised circle comes 12px up out of
   the tab bar under the centre button. The page's own padding keeps the last
   row of every tab clear of both, and the toast and back-to-top move up past
   it. `tests/test_mobile.py` and `tests/test_tender_tabs.py` compare the
   numbers. */
@media (max-width:900px){
  .t-decide{position:fixed;left:0;right:0;
    bottom:calc(63px + env(safe-area-inset-bottom));z-index:58;
    padding:8px 12px 16px;background:hsl(var(--card));
    border-top:1px solid hsl(var(--border))}
  .t-decide > *{flex:1 1 0;min-width:0}
  .t-dec,.t-go{width:100%;height:64px;padding:4px;flex-direction:column;
    justify-content:center;gap:2px;white-space:normal;font-size:13.5px;
    line-height:1.25;text-align:center}
  .t-dec > span{flex-direction:column;gap:2px}
  .t-page.has-bar{padding-bottom:96px}
  html:has(.t-decide) .toasts{bottom:calc(168px + env(safe-area-inset-bottom))}
  html:has(.t-decide) .to-top{bottom:calc(168px + env(safe-area-inset-bottom))}
}
/* On paper the page is whole, as it is with no script: every panel under its
   own name. A printout of one tab would be a tender missing three quarters of
   itself with nothing to say so. The tabs and the bar are controls, and
   `theme.BASE` keeps controls off paper. */
@media print{
  .t-panel[hidden]{display:block !important}
  .t-tabs.on .t-panel-h{display:block}
  .t-tabnav,.t-decide{display:none !important}
  .t-page.has-bar{padding-bottom:0}
}
@media (hover:hover){
  .t-tab:hover{color:hsl(var(--foreground))}
  a.doc-row:hover{text-decoration:none;background:hsl(var(--muted) / .45)}
}
/* Pressed, a file row deepens like a list row (`views.CSS`, 2026-10-28). */
a.doc-row:active{background:hsl(var(--muted) / .8)}

/* ---------- the guided tour: the demo AND the application ---------- */
/* ⚠️ THE SAME BOX AS `.theme-toggle`, on purpose and not by coincidence.
   These two sit next to each other and are the bar's utility controls: 34px,
   9px radius, hairline, card ground, muted ink. Giving the tour its own
   geometry would put three different button shapes in a four-control bar.
   The one thing it does NOT copy is `.cop-open`'s fill -- see `launcher()`.
   Not re-declaring `.theme-toggle` itself: this sheet is injected after BASE
   and would silently win the cascade, which is the defect
   `tests/test_consistency.py` exists to catch. */
.tour-dock{position:fixed;right:16px;bottom:16px;z-index:80;display:flex;gap:8px;
  align-items:center}
.tour-card{position:fixed;right:16px;bottom:16px;z-index:81;
  width:min(370px,calc(100vw - 32px));
  background:hsl(var(--card));border:1px solid hsl(var(--border));border-radius:12px;
  box-shadow:var(--shadow-lg);padding:16px 20px}
.tour-card h3{font-size:17px;margin:0 0 6px}
.tour-card p{margin:0 0 8px;font-size:15px;line-height:1.55;
  color:hsl(var(--muted-foreground))}
.tour-card p b{color:hsl(var(--foreground))}
.tour-card .tour-of{font-size:11px;letter-spacing:.06em;text-transform:uppercase;
  color:hsl(var(--muted-foreground));font-weight:600;margin-bottom:4px;display:block}
.tour-card .tour-btns{display:flex;gap:8px;align-items:center;margin-top:12px}
/* ⚠️ `font-family:inherit`, BECAUSE A BUTTON DOES NOT INHERIT ONE. Chrome's
   UA stylesheet sets `font: 400 13.333px Arial` on `<button>`, and only
   controls carrying `.btn` are saved by its own inherit. Measured across 18
   rendered screens: this was Arial on 16 of them, nine instances each -- the
   only non-Inter text in the signed-in product. */
.tour-card .tour-btns .tour-skip{margin-left:auto;font-family:inherit;
  font-size:13.5px;
  color:hsl(var(--muted-foreground));background:none;border:0;cursor:pointer;
  text-decoration:none}
/* ⚠️ THE WAY OUT WAS 16px TALL, AND ON A PHONE IT IS THE ONLY ONE.
   `Nazaj` and `Naprej` carry `.btn`, which `theme.BASE` gives a 44px floor
   on a coarse pointer; this is a bare button and is excluded from that on
   purpose (`button.link` is a word in a sentence). Measured at 390px:
   73x16 against its two neighbours' 44. Escape closes the tour and a phone
   has no Escape, so a reader who wanted out had a 16px target or nothing. */
@media (pointer:coarse){
  .tour-card .tour-btns .tour-skip{min-height:44px;
    display:inline-flex;align-items:center}
}
/* The spotlight is an outline, never a full-page scrim: a scrim hides the
   screen the step is about, which is the one thing the visitor came to see.

   ⚠️ AND FOR A WHILE THAT COMMENT DESCRIBED SOMETHING THIS RULE DID NOT DO.
   It carried `box-shadow:0 0 0 9999px hsl(var(--foreground)/.10)`, and a
   9999px spread IS a full-page scrim -- the sentence above and the
   declaration under it disagreed, which `CLAUDE.md` names as its own defect
   shape. Reported by the user as the guided tour "switching to dark mode".
   Measured in light theme at 1024x740: the page ground went (247,247,248) to
   (223,224,225) and the white rail to (231,232,232), a 24-level wash over
   everything. The theme never changed -- `data-theme` stayed `light` -- but
   a near-black veil across the whole screen is indistinguishable from one.

   ⚠️ It also inverted with the theme, which is the deeper fault: the tint is
   `--foreground`, so in DARK mode the same rule paints a WHITE veil and
   lightens the page. A highlight must not be made of the ink colour.

   What replaces it is emphasis on the target instead of suppression of
   everything else: a bounded halo in `--primary`, which reads the same in
   both themes and touches nothing outside the element. */
.tour-lit{position:relative;z-index:2;outline:2px solid hsl(var(--primary));
  outline-offset:5px;border-radius:10px;
  box-shadow:0 0 0 6px hsl(var(--primary)/.14);
  /* ⚠️ THE ANCHOR IS USUALLY A WHOLE REGION, NOT A CONTROL, and on a phone
     that is the difference between a tour and a shrug. `feed` is the entire
     `.trow-list` and measured **4685px** tall on `/ujemanja`; `izjava` is the
     ten-question declaration at 1845px. Both are the right things to point
     at -- the step describes the region -- and both are far taller than an
     844px screen.
     `scrollIntoView` asked to centre, which centres the MIDDLE of that, so
     tour landed 1928px INTO the feed: rows with no heading, no first row and
     no context. The script asks for `start` now, and this is the room the
     sticky topbar needs (72px desktop, 64px phone) plus air, so the top of
     the described thing lands under the chrome rather than behind it. Same
     number as `.content [id]` in `views.CSS`, for the same reason. */
  scroll-margin-top:96px}
@media (max-width:900px){
  /* ⚠️ NOTHING FLOATS OVER THE CONTENT ON A PHONE. CLAUDE.md already made
     back-to-top `display:none` under 900px for this reason, and the tour
     dock walked straight into it: a pill sitting on the last band of the
     overview, on a 390px screen where every pixel is content. The bar at the
     top of every demo screen is already there, so the way in goes there. */
  .tour-dock{display:none}
  /* ⚠️ ABOVE THE TAB BAR, not on it. The card was written when the phone
     had no bottom navigation; adding one put 45px of card over it, so the
     tour covered the way out of the tour.
     ⚠️ AND THE NUMBER DRIFTED. This said "53px of bar plus a gap" and set
     72px, which was 53 + 19. The tabs went to 62px on 2026-08-31 (`CLAUDE.md`
     records the argument: 44 is the floor for a control you aim at ONCE, and
     these are tapped all evening), so the gap silently became 9px against a
     63px bar and the card read as resting on the navigation. 63 + 19. */
  .tour-card{right:8px;left:8px;width:auto;
    bottom:calc(82px + env(safe-area-inset-bottom))}
}

.demo-bar{background:hsl(var(--primary));color:hsl(var(--primary-foreground));
  padding:8px 0;font-size:13.5px}
.demo-bar .container{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.demo-bar b{font-weight:600}
.demo-bar span{opacity:.85}
.demo-bar a,.demo-bar button{color:inherit;font-weight:600;background:none;
  border:0;cursor:pointer;font-size:inherit;font-family:inherit}
.demo-bar a{margin-left:auto}
@media (max-width:900px){
  /* The bar is chrome on a screen that has 390px of it. Two lines, no
     third sentence, and the tour entry sits at the end of it. */
  .demo-bar{padding:8px 0;font-size:13.5px}
  .demo-bar .container{gap:4px 10px}
  .demo-bar .demo-long{display:none}
  /* ⚠️ THE FIRM'S NAME GOES, AND ONLY ON A PHONE. Measured at 390px: this
     strip wrapped to four lines and took ~105px off the top of EVERY
     signed-in screen -- on the one screen whose whole recent work was
     getting something actionable above the fold.
     What may not go is the claim: "izmišljeno podjetje" is the sentence that
     stops a visitor concluding the product invented a real profile, and it
     stays in full. The NAME is what goes, because it is redundant here --
     the greeting two lines below states it, and every screen carries it in
     the account chip. */
  .demo-bar .demo-firm{display:none}
  .demo-bar a{margin-left:0}
}
.demo-bar .demo-tour-link{font-weight:600;text-decoration:none}
@media (min-width:901px){.demo-bar .demo-tour-link{display:none}}
