
/* --- page rhythm ---------------------------------------------------- */
/* Longhand, deliberately. As a shorthand this silently zeroed the horizontal
   padding of any element carrying BOTH classes -- `<div class="container page">`
   on the ops page put every card hard against the screen edge on a phone,
   because .page is injected after BASE and wins at equal specificity. Longhand
   sets only what it means to set, so the two classes compose instead of
   fighting. */
.page{padding-top:32px;padding-bottom:64px}
.page-title{display:flex;justify-content:space-between;align-items:flex-end;
  gap:16px;flex-wrap:wrap;margin-bottom:24px}
.page-title h1{font-size:26px;letter-spacing:-.03em}
.page-title p{color:hsl(var(--muted-foreground));font-size:15px;margin-top:6px}
.stack{display:flex;flex-direction:column;gap:10px}

/* A section is a labelled block of a page. One treatment, everywhere. */
.section{margin-top:32px}
/* ⚠️ GLASS, AND ONLY WHERE SOMETHING PASSES BEHIND IT (the owner, 2026-11-03: the
   sections "should be more clearly separated", then "glass on section heading
   first"). 13.5px grey capitals did not separate anything. On a laptop the heading
   stays under the top bar while its section scrolls beneath it, which is what the
   blur is for. On a phone it does not stick: with its counts it is 90px tall, and a
   sticky element with a backdrop-filter is what iOS Safari is known to drop
   mid-scroll, so there it is the same band without the blur. */
.section-head,.band-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap;
  margin-bottom:14px;padding:10px 14px;border-radius:14px;
  background:hsl(var(--card) / .62);border:1px solid hsl(var(--foreground) / .1);
  box-shadow:inset 0 1px 0 hsl(var(--foreground) / .06);
  -webkit-backdrop-filter:blur(18px) saturate(1.6);
  backdrop-filter:blur(18px) saturate(1.6)}
.section-head h2,.band-title{font-size:19px;line-height:1.25;
  font-weight:var(--section-weight,650);letter-spacing:-.02em;color:hsl(var(--foreground))}
@media (min-width:901px){
  .section > .section-head:first-child,.band > .band-head:first-child{
    position:sticky;top:72px;z-index:3}
  /* ⚠️ LARGER, AND IN THE DISPLAY FACE (the prototype's, 2026-11-06). 22 is
     the phone's page-title step; on a desk the page title is 26, so the two
     never stand at one size on one screen. */
  .section-head h2,.band-title{font-size:22px;letter-spacing:-.02em}
}
@media (prefers-reduced-transparency:reduce){
  .section-head,.band-head{background:hsl(var(--card));
    -webkit-backdrop-filter:none;backdrop-filter:none}
}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .section-head,.band-head{background:hsl(var(--card))}
}
/* ⚠️ ON A PHONE THE HEADING IS PLAIN TYPE, NOT A BAND (the prototype's,
   2026-11-06): the band stays on a desk, where a section scrolls behind it.
   There it never stuck, so its fill and border were a box around a word.
   After the two rules above, which would otherwise paint the fill back. */
@media (max-width:900px){
  .section-head,.band-head{-webkit-backdrop-filter:none;backdrop-filter:none;
    padding:0;margin-bottom:10px;border:0;border-radius:0;background:none;
    box-shadow:none}
}
.section-head .n{font-size:13.5px;font-weight:700;padding:1px 8px;
  border-radius:999px;background:hsl(var(--muted) / .9);
  color:hsl(var(--muted-foreground));font-variant-numeric:tabular-nums}
.section-head .note{margin-left:auto;font-size:13.5px;
  color:hsl(var(--muted-foreground))}

/* --- surfaces ------------------------------------------------------- */
/* `.card` (theme BASE) is the surface. `.pad` gives it the standard inset,
   instead of four copies of style="padding:24px" in the profile form. */
.card.pad{padding:24px}
.card.pad + .card.pad{margin-top:16px}
.card.pad > h2{font-size:15px;margin-bottom:6px}
.card.pad > h2 + .muted{font-size:15px;margin-bottom:14px}

/* A card carrying a status down its left edge. Dashboard rows and requirement
   blocks are both this. */
.card.edged{border-left-width:3px}
.card.edged.ok{border-left-color:hsl(var(--border))}
.card.edged.soon,.card.edged.info{border-left-color:hsl(var(--primary))}
.card.edged.warn{border-left-color:hsl(var(--warn))}
.card.edged.bad{border-left-color:hsl(var(--bad))}
.card.edged.mute{border-left-color:hsl(var(--muted-foreground))}
.card.edged.ink{border-left-color:hsl(var(--foreground))}
.card.edged.alt{border-left-color:hsl(var(--accent))}

/* --- callouts ------------------------------------------------------- */
/* One component. `.nudge` and `.notice-box` were the same thing with different
   padding and radius, and `.alert` was the same thing again sized for a form.
   Variants tint; they do not re-lay-out. */
.callout{display:flex;gap:16px;align-items:center;flex-wrap:wrap;
  padding:16px 20px;border-radius:calc(var(--radius) * 1.5);
  border:1px solid hsl(var(--primary) / .25);
  background:hsl(var(--primary) / .07);font-size:15px;line-height:1.6;
  margin-bottom:24px}
.callout > div:first-child{flex:1;min-width:220px}
.callout b{font-size:15px}
.callout .sub{display:block;margin-top:4px;font-size:15px;
  color:hsl(var(--muted-foreground))}
.callout.block{display:block}
.callout.ok{border-color:hsl(var(--ok) / .35);background:hsl(var(--ok) / .1)}
.callout.bad{border-color:hsl(var(--bad) / .35);background:hsl(var(--bad) / .1)}
.callout.warn{border-color:hsl(var(--warn) / .35);background:hsl(var(--warn) / .1)}
/* The progress bar is GONE, and deliberately. It was the only one in the
   product and it rendered a profile-completeness percentage on `/razpisi` --
   a bar filling toward 100% is the single most legible way to say "you are
   at 62% of something", which is the reading this product's first invariant
   exists to refuse. See `views._nudge`. */

/* --- metadata ------------------------------------------------------- */
/* Buyer / region / value / deadline. The dashboard row and the tender header
   state the same facts and now state them the same way. */
/* ⚠️ THE ROW GAP WAS 5px AND THIS BLOCK WRAPS CONSTANTLY. Six facts --
   buyer, region, CPV, value, bid deadline, question deadline -- do not fit
   on one line at any width, and on a phone the buyer name alone takes two.
   At 5px the wrapped rows very nearly touched, which is what the report
   "not enough spacing between the lines of text" was pointing at on the
   tender page. 9px against a 14px face separates the rows without turning
   a header into a list.
   `line-height` is stated rather than inherited: body's 1.65 is a PROSE
   measure, and on a wrapping label row it opens the lines up more than the
   gap between them -- so a buyer name that wraps looked further apart than
   two different facts, which is the relationship backwards. */
.meta{display:flex;flex-wrap:wrap;gap:10px 16px;font-size:15px;line-height:1.5;
  color:hsl(var(--muted-foreground));align-items:center}
.meta b{color:hsl(var(--foreground));font-weight:600}
/* ⚠️ `white-space:nowrap` and a sized icon, both learned the same day.
   A tag is a short label in a pill; letting it wrap turns it into a tall
   lumpy blob beside the flat tags next to it, which is exactly what the
   source tags did on first render ("Samo / TED", "TED / in / Portal").
   And `icon()` draws on a 24-box, so without a size here the glyph is twice
   the cap height of the word beside it and squeezes the text into wrapping. */
.tag{display:inline-flex;align-items:center;gap:6px;font-size:13.5px;
  padding:4px 10px;border-radius:999px;background:hsl(var(--primary) / .1);
  color:hsl(var(--primary));font-weight:600;white-space:nowrap}
.tag svg{width:13px;height:13px;flex:none}
.tag.mute{background:hsl(var(--muted) / .9);color:hsl(var(--muted-foreground))}

/* --- action rows ---------------------------------------------------- */
.actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
/* ⚠️ A ROW OF BUTTONS UNDER TEXT NEEDS ITS OWN GAP, because nothing above it
   brings one: `p{margin:0}` is the base rule, so every line of copy ends flush.
   Reported 2026-10-14 from the tender page, where four caption lines grew
   under the meta row over a month and the buttons ended up touching the last
   of them. Measured on every signed-in screen at 1280 and 390: three rows sat
   at 0px -- the tender header, its empty-state call to action, the save on
   /e-posta -- and two pages had hand-fixed the same thing with an inline 12px.
   On the primitive, so a row added tomorrow is spaced without anyone
   remembering. 18px is the gap the tender header was designed with, its meta
   row's margin; in block flow this collapses into any margin already above,
   so rows that were fine stay as they were.
   ⚠️ NOT in `.page-title`, where the row sits BESIDE the heading in a flex
   line and a top margin would push the buttons out of it. */
.actions:not(:first-child){margin-top:20px}
.page-title > .actions{margin-top:0}
.card.pad + .actions{margin-top:20px}
.actions .btn{font-size:15px;padding:10px 16px}
/* Small print: the note under a submit button, a picker hint, a privacy
   line. It was seven separate inline font sizes between 12.5px and 14px for
   what is one typographic role. */
.fine{font-size:13.5px;line-height:1.6;color:hsl(var(--muted-foreground));
  margin-top:12px}
.fine.mid{text-align:center}
/* ⚠️ `gap` WAS A CLASS WITH NO RULE. Ten elements carry it -- the mail
   preview and its frame on /e-posta, a card on /spremembe and /vsebina, three
   section heads -- and only `.fine.gap` below ever said what it means, so
   each sat flush against the block above it. Measured 2026-10-20 at 390px,
   reported as sections "not spaced out as they should be". */
.gap{margin-top:16px}
.fine.gap{margin-top:24px}
.back-link{display:inline-flex;align-items:center;gap:8px;font-size:15px;
  font-weight:500;color:hsl(var(--muted-foreground));margin-bottom:14px}
.back-link:hover{color:hsl(var(--primary));text-decoration:none}
.back-link i{font-style:normal;transition:transform var(--t-quick) var(--ease)}


/* --- skeletons -------------------------------------------------------
   Shown while a page is on its way, not as decoration. Every one of these
   is the SAME rectangle as the thing it stands in for -- `.card`'s border,
   radius and shadow, and a fixed height -- because a placeholder that is a
   different size from its content makes the real page jump when it lands,
   which is worse than showing nothing.

   `--sk-h` is the one height. A section overrides it if it genuinely needs
   to; nothing else may invent its own, or the skeleton stops being a
   consistent object and becomes a second, worse layout. */
.sk-page{--sk-h:104px}
.sk-block{height:var(--sk-h);border:1px solid hsl(var(--border));
  border-radius:calc(var(--radius) * 1.5);background:hsl(var(--card));
  box-shadow:var(--card-shadow,var(--shadow));position:relative;overflow:hidden}
.sk-grid{display:grid;gap:12px;margin-bottom:32px;
  grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:900px){.sk-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* ⚠️ It has to break the SAME WAY `.tiles` does, and it stopped doing so
   the moment `.tiles` went two-up on a phone. A skeleton that is one column
   while the content that lands is two makes the page jump exactly when it
   finishes loading -- which is the one moment a placeholder exists to
   prevent. There is no 520px rule here for the same reason there is no
   longer one there. */
@media (max-width:520px){.sk-grid{gap:10px}}
.sk-stack{display:grid;gap:12px;margin-bottom:24px}
.sk-head{height:13px;width:170px;border-radius:999px;margin:0 0 12px;
  background:hsl(var(--muted));position:relative;overflow:hidden}
.sk-title{height:26px;width:min(340px,70%);border-radius:999px;
  margin:0 0 10px;background:hsl(var(--muted));position:relative;
  overflow:hidden}
.sk-sub{height:13px;width:min(460px,90%);border-radius:999px;
  margin:0 0 24px;background:hsl(var(--muted));position:relative;
  overflow:hidden}

/* One shimmer, defined once, inherited by every piece above. */
.sk-block::after,.sk-head::after,.sk-title::after,.sk-sub::after{
  content:"";position:absolute;inset:0;transform:translateX(-100%);
  background:linear-gradient(90deg,transparent,
    hsl(var(--foreground) / .07),transparent);
  animation:sk-sweep 1.25s ease-in-out infinite}
@keyframes sk-sweep{to{transform:translateX(100%)}}

/* A shimmer is motion, and someone who asked for less of it gets a static
   placeholder rather than no placeholder. */
@media (prefers-reduced-motion:reduce){
  .sk-block::after,.sk-head::after,.sk-title::after,.sk-sub::after{
    animation:none}
}

/* --- empty states --------------------------------------------------- */
/* Here because two different pages render one. */
.empty-state{padding:48px 32px;text-align:center;
  border-radius:calc(var(--radius) * 1.5);
  border:1px dashed hsl(var(--border));background:hsl(var(--card) / .5)}
.empty-state h3{font-size:19px;margin-bottom:8px}
.empty-state p{color:hsl(var(--muted-foreground));max-width:440px;
  margin:0 auto 8px}
.empty-state .btn{margin-top:20px}

/* --- phones ----------------------------------------------------------
   The signed-in vocabulary's own mobile pass. The shared chrome's is in
   BASE; this is the layer the dashboard, profile and tender pages share. */
@media (max-width:560px){
  .page{padding-top:24px;padding-bottom:48px}
  .page-title h1{font-size:22px}
  .card.pad{padding:20px}
  .actions{gap:8px}
  .callout{padding:14px 16px;gap:12px}
  .empty-state{padding:40px 20px}
  /* ⚠️ The phone tightened the ROW gap to 4px, and the phone is where this
     block wraps to four or five rows. It is the one width that needed more
     air, not less. Only the column gap belongs here. */
  .meta{gap:10px 12px}
}
@media (pointer:coarse){
  /* Measured at 36px and 22px. These are the two controls that finish the
     profile form, so they are the last place to be stingy with a tap. */
  .actions .btn{font-size:15px;padding:12px 20px;min-height:44px}
  .actions a:not(.btn){min-height:44px;display:inline-flex;align-items:center}
  /* The tender page's "Nazaj na priložnosti" was 22px. */
  .back-link{min-height:44px;margin-bottom:8px}
}

/* --- focus ---------------------------------------------------------- */
/* Checkboxes and chips previously had no visible focus state at all, so the
   profile form could not be filled in by keyboard with any confidence. */
.chips label:focus-within{outline:2px solid hsl(var(--primary));
  outline-offset:1px}
/* ---------- universal search ---------- */
/* The trigger sits in the topbar and grows to fill it, because the box is
   the primary way around the product and a 200px field beside a status pill
   reads as a filter for whatever page you happen to be on. */
.find{display:flex;align-items:center;gap:10px;flex:1;min-width:0;
  max-width:420px;height:38px;padding:0 12px;cursor:text;
  border:1px solid hsl(var(--border));border-radius:10px;
  background:hsl(var(--card));color:hsl(var(--muted-foreground));
  font-family:inherit;font-weight:400;font-size:15px;line-height:1;
  text-align:left;
  transition:border-color var(--t-quick) var(--ease),box-shadow var(--t-quick) var(--ease)}

.find:focus-visible{outline:2px solid hsl(var(--primary));outline-offset:2px}
.find svg{width:16px;height:16px;flex:none;opacity:.72}
.find span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap}
/* ⚠️ THE SCRIM CATCHES THE CLICK THAT CLOSES, AND PAINTS NOTHING. It was
   `hsl(var(--foreground)/.42)`, and `--foreground` is the TEXT colour, so it
   flipped with the theme: a 42% dark dim in light mode and a 42% WHITE wash
   in dark, measured rgba(240,242,244,.42). Reported 2026-10-14 as "a weird
   white overlay, looks unprofessional", and transparent was the user's call.
   The palette's border and shadow already lift it off the page. */
.pal-scrim{position:fixed;inset:0;z-index:80;background:transparent;
  visibility:hidden}
.pal-scrim.on{visibility:visible}

/* Opening and closing are not the same motion: it arrives on a decelerating
   curve and leaves on an accelerating one, same rule as the mobile rail. */
.pal{position:fixed;z-index:81;left:50%;top:10vh;width:min(680px,calc(100% - 28px));
  transform:translate(-50%,-8px) scale(.985);opacity:0;visibility:hidden;
  background:hsl(var(--card));border:1px solid hsl(var(--border));
  border-radius:16px;box-shadow:var(--shadow-xl);overflow:hidden;
  transition:opacity .16s var(--ease-in),
             transform .16s var(--ease-in),visibility 0s .16s}
.pal.on{opacity:1;visibility:visible;transform:translate(-50%,0) scale(1);
  transition:opacity .26s var(--ease-out),
             transform .26s var(--ease-out)}

.pal-head{display:flex;align-items:center;gap:12px;padding:0 16px;
  border-bottom:1px solid hsl(var(--border))}
.pal-head svg{width:18px;height:18px;flex:none;color:hsl(var(--muted-foreground))}
/* ⚠️ NOT `font:400 17px/1 inherit`. `inherit` is not a valid family inside
   the `font` shorthand, so the WHOLE declaration was dropped and this input
   fell back to the browser default -- measured 13.3333px in Chrome, against
   16px for the same shorthand with a real family. iOS zooms the page in on
   any focused control under 16px and does not zoom back out, so one tap on
   the palette left the entire site enlarged for the rest of the visit. This
   input is on every signed-in screen.

   `tests/test_mobile.py` could not see it: its shorthand regex read
   `font:400 17px/1` as 40016px. That is fixed alongside this. */
/* ⚠️ AND SPLITTING THE SHORTHAND FIXED THE SIZE AND LOST THE FAMILY.
   Measured 2026-09-10 on a real render, signed in, at both widths: this
   input computes `font-family: Arial`. Chrome's UA sheet sets
   `font: 400 13.333px Arial` on every form control, `.btn` is saved by its
   own `font-family:inherit`, and a control that is not a `.btn` keeps
   Arial. So the box a reader types their search into has been in a
   different typeface from every word around it on every signed-in screen.
   The comment above claims parity with "the same shorthand with a real
   family" and that is not what shipped. */
.pal-head input{flex:1;min-width:0;border:0;outline:0;background:transparent;
  color:hsl(var(--foreground));font-family:inherit;font-weight:400;
  font-size:17px;line-height:1;padding:20px 0}
.pal-head input::placeholder{color:hsl(var(--muted-foreground))}
/* ⚠️ A BUTTON THAT SAYS WHAT IT DOES, in the product's type, everywhere.
   It was an inert `Esc` span once, which on a touch device left nothing in
   the dialog to close it with; then an `Esc` keycap on a keyboard and the
   word `Prekliči` on a phone. Since 2026-10-14 the keycaps are gone (see
   `views.search_trigger`) and the word serves both.
   ⚠️ LONGHANDS ONLY. `font:600 14px/1 inherit` is an INVALID shorthand --
   `inherit` is not a family the `font` shorthand accepts -- so the whole
   declaration was dropped once and the word rendered in an 11px monospace
   keycap face, reported 2026-09-10. 44px on a coarse pointer, where a thumb
   aims at it. */
.pal-head .esc{flex:none;font-family:inherit;font-weight:600;font-size:15px;
  line-height:1;letter-spacing:normal;padding:0 12px;min-height:34px;
  display:inline-flex;align-items:center;border-radius:999px;
  border:1px solid hsl(var(--border));color:hsl(var(--muted-foreground));
  background:none;cursor:pointer}
@media (pointer:coarse){
  .pal-head .esc{padding:0 14px;min-height:44px}
}

.pal-body{max-height:min(60vh,520px);overflow-y:auto;overscroll-behavior:contain;
  padding:6px}
.pal-group{padding:10px 10px 2px}
.pal-group h4{margin:0;font-family:inherit;font-weight:700;font-size:11px;
  line-height:1;letter-spacing:.1em;
  text-transform:uppercase;color:hsl(var(--muted-foreground))}
.pal-hit{display:flex;align-items:center;gap:12px;width:100%;
  padding:10px 10px;border-radius:10px;text-decoration:none;color:inherit;
  border:0;background:transparent;text-align:left;cursor:pointer}
.pal-hit:hover{text-decoration:none}
.pal-hit.on{background:hsl(var(--muted))}
.pal-hit .ico{flex:none;width:30px;height:30px;border-radius:8px;
  display:grid;place-items:center;background:hsl(var(--muted));
  color:hsl(var(--muted-foreground))}
.pal-hit.on .ico{background:hsl(var(--primary)/.12);color:hsl(var(--primary))}
.pal-hit .ico svg{width:15px;height:15px}
.pal-hit .txt{flex:1;min-width:0}
.pal-hit .txt b{display:block;font-family:inherit;font-weight:600;
  font-size:15px;line-height:1.35;overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap}
.pal-hit .txt span{display:block;font-family:inherit;font-weight:400;
  font-size:13.5px;line-height:1.45;
  color:hsl(var(--muted-foreground));overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap}
.pal-hit .tag{flex:none}
.pal-empty{padding:32px 20px;text-align:center;color:hsl(var(--muted-foreground));
  font-size:15px;line-height:1.6}
.pal-foot{display:flex;gap:16px;align-items:center;padding:10px 16px;
  border-top:1px solid hsl(var(--border));background:hsl(var(--muted)/.5);
  font-size:11px;color:hsl(var(--muted-foreground))}
.pal-foot b{font-weight:600}
.pal-foot .sp{margin-left:auto}
/* Nothing but the count lives here, so until a search runs the footer is an
   empty tinted band. Collapsed, never display:none: the count is a live
   region, and one that appears together with its first message is not
   announced. */
.pal-foot:has(> .sp:empty){padding:0;border-top:0;background:none}

@media (max-width:900px){
  /* The topbar sheds everything but the logo and the burger at this width,
     so the full field would have nowhere to go. It becomes the icon, which
     is what every phone app does with search anyway. */
  /* ⚠️ `flex:none` is the line that makes the other three do anything.
     The base rule is `flex:1`, i.e. `flex:1 1 0%`, so the box grows to fill
     whatever is left of the bar regardless of `width:38px` -- and with its
     label and its Ctrl-K hint hidden at this width, what it grew into was a
     ~200px empty rounded rectangle taking half the topbar of a 390px phone.
     The rule looked correct and did nothing. */
  /* 44px, not 38. This is the ONLY door to universal search on a phone,
     and the palette's own close button is already 44 -- so the control
     that opens it was smaller than the one that shuts it. */
  .find{flex:none;max-width:none;width:44px;height:44px;padding:0;
    justify-content:center}
  .find span{display:none}
  .pal{top:0;left:0;transform:translateY(-8px);width:100%;max-width:none;
    border-radius:0;border-left:0;border-right:0;border-top:0;
    /* ⚠️⚠️ `dvh` OWNS THE BROWSER TOOLBAR, THE SCRIPT OWNS THE KEYBOARD,
       AND UNTIL 2026-09-10 THE SCRIPT DID BOTH. Reported as "when we have
       the search open and scroll down, the screen kind of breaks."

       Two different things shrink what a phone can see and only one of them
       is visible to CSS. The address bar retracts AS YOU SCROLL, which is
       exactly `dvh`; the software keyboard is invisible to every CSS unit,
       which is what `--pal-h` is for. This rule was `height:var(--pal-h,
       100%)` with the script writing `--pal-h` on EVERY `visualViewport`
       resize, so it answered both.

       Measured: opening the search with the address bar showing and then
       scrolling stepped the visible height 754 -> 844 and produced SIX
       inline rewrites of a full-screen dialog's height, one per event,
       each reflowing the results list under the reader's thumb. And the
       failure mode when one of those events does not arrive is worse than
       the jank: the dialog stays at the old height and a band of the page
       behind shows under it, because nothing else is watching.

       `100dvh` needs no event and cannot miss one. `100vh` stays ABOVE it,
       never instead of it, for a browser that does not know dynamic units.
       The keyboard override is `[data-kbd]` below. */
    height:100vh;
    height:100dvh;
    display:flex;flex-direction:column}
  /* ⚠️ THE KEYBOARD OVERRIDE IS SCOPED TO THIS MEDIA BLOCK ON PURPOSE, so
     the script cannot resize a dialog that is not full-screen. The
     alternative was `matchMedia("(max-width:900px)")` in the script, which
     copies this breakpoint into a second place. The CSS owns the width. */
  .pal[data-kbd]{height:var(--pal-h)}
  .pal.on{transform:translateY(0)}
  .pal-body{max-height:none;flex:1}
}
@media (prefers-reduced-motion:reduce){
  .pal,.pal-scrim{transition-duration:.01ms}
}
/* ---------- right-click menu ---------- */
/* Fixed, because it is positioned from a pointer event in viewport
   coordinates. An absolutely positioned menu would resolve against whatever
   happens to be positioned up the tree -- the defect `tests/test_consistency`
   already guards for the theme toggle -- and land somewhere else entirely on
   a page that scrolls. */
.ctx{position:fixed;z-index:90;min-width:212px;max-width:280px;padding:6px;
  /* ⚠️ NEVER TALLER THAN THE WINDOW. Unbounded, a long menu on a short
     window ran off the bottom, and the page scroll that would have reached
     the rest closes the menu. Bounded, it scrolls inside itself, and
     `contain` stops that scroll handing over to the page at its end. */
  max-height:calc(100vh - 16px);max-height:calc(100dvh - 16px);
  overflow-y:auto;overscroll-behavior:contain;
  border:1px solid hsl(var(--border));border-radius:12px;
  /* ⚠️ `--shadow` is a whole shadow LIST, so `hsl(var(--shadow)/.20)` was
     invalid and the menu drew no shadow at all from the day it shipped; the
     same trap `.cop-panel` fell into. Measured 2026-10-20. */
  background:hsl(var(--card));box-shadow:var(--shadow-lg);
  font-family:inherit;font-weight:400;font-size:15px;line-height:1.4;
  opacity:0;transform:scale(.97);transform-origin:top left;
  visibility:hidden;pointer-events:none;
  transition:opacity .12s ease,transform var(--t-quick) var(--ease),visibility 0s .12s}
.ctx.on{opacity:1;transform:scale(1);visibility:visible;pointer-events:auto;
  transition:opacity .12s ease,transform var(--t-quick) var(--ease)}
/* The header names the record the pointer was on, so the menu cannot be
   mistaken for one about the page. It is absent for a page-only menu. */
.ctx-head{display:flex;flex-direction:column;gap:1px;
  padding:8px 10px 8px;margin-bottom:4px;
  border-bottom:1px solid hsl(var(--border))}
.ctx-kind{font-family:inherit;font-weight:600;font-size:11px;
  line-height:1.3;letter-spacing:.07em;
  text-transform:uppercase;color:hsl(var(--muted-foreground))}
.ctx-name{font-family:inherit;font-weight:600;font-size:13.5px;
  line-height:1.35;color:hsl(var(--foreground));
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ctx-item{display:flex;align-items:center;gap:10px;width:100%;
  padding:8px 10px;border:0;border-radius:8px;background:none;
  color:hsl(var(--foreground));font:inherit;text-align:left;cursor:pointer;
  text-decoration:none;transition:background var(--t-quick) var(--ease)}
.ctx-item svg{width:15px;height:15px;flex:none;opacity:.7}
.ctx-item span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap}
/* ⚠️ `.cur` is the KEYBOARD cursor and is ungated on purpose; `:hover` is
   behind `hover:hover` because a touch screen fakes a hover on tap and never
   takes it back, leaving a second item looking selected. */
.ctx-item.cur{background:hsl(var(--primary)/.09)}
@media (hover:hover){
  .ctx-item:hover{background:hsl(var(--primary)/.09)}
}
.ctx-item:focus-visible{outline:2px solid hsl(var(--primary));
  outline-offset:-2px}
.ctx-sep{height:1px;margin:6px 8px;background:hsl(var(--border))}
/* The row's own suggestions, from other sections (`api/facts.py`). Labelled
   as a group so a reader can tell "what this row knows" from "what you can
   do to any tender". Same ink as `.ctx-kind`: a label, not a state. */
.ctx-group{padding:6px 10px 4px;font-family:inherit;font-weight:600;
  font-size:11px;line-height:1.3;letter-spacing:.07em;
  text-transform:uppercase;color:hsl(var(--muted-foreground))}
/* A phone has no right-click. The menu is opened by a long press there, and
   at that size it is a sheet rather than a pinned box: a 212px panel pinned
   to a thumb-sized point is unreachable at the bottom of the screen.
   ⚠️ ALWAYS AT THE BOTTOM, OVER A SCRIM (2026-10-22). It was placed at the
   finger, so it opened mid-screen with the page live round it, and the tap
   that dismissed it also landed on whatever was underneath -- the next
   tender, opened by accident. Now it rises from the bottom edge above the
   tab bar, the way a phone's own action sheet does, and the scrim takes the
   dismissing tap. */
.ctx-scrim{display:none}
.ctx-grip{display:none}
@media (max-width:600px){
  /* The handle: a 40x5 pill on a full-width strip, because the thing a
     thumb grabs and the thing it sees may be different sizes (the ERP's
     `SheetGrip`). `touch-action:none` so dragging it never scrolls. */
  .ctx-grip{display:flex;align-items:center;justify-content:center;
    height:36px;margin:-6px -6px 0;cursor:grab;touch-action:none}
  .ctx-grip::before{content:"";width:40px;height:5px;border-radius:3px;
    background:hsl(var(--border))}
  .ctx{left:10px!important;right:10px;width:auto;max-width:none;
    min-width:0;transform-origin:bottom center;
    top:auto!important;bottom:calc(10px + env(safe-area-inset-bottom))}
  .ctx-scrim{display:block;position:fixed;inset:0;z-index:89;
    background:hsl(218 20% 5% / .55);opacity:0;visibility:hidden;
    transition:opacity .16s ease,visibility 0s linear .16s}
  .ctx-scrim.on{opacity:1;visibility:visible;transition:opacity .16s ease}
}
/* A finger, not a pointer: the same 44px every other control here holds. */
@media (pointer:coarse){
  .ctx-item{min-height:44px}
}
@media (prefers-reduced-motion:reduce){
  .ctx{transition:opacity .01s,visibility 0s .01s}
  .ctx-scrim,.ctx-scrim.on{transition:none}
}

/* ⚠️ A FILE PICKER IS A BUTTON AND THE NAME BESIDE IT, NEVER WIDER THAN ITS
   ROW (the owner, 2026-11-07, from a phone: picking a certificate's file was
   "so ugly", and it ran off the right side of the app). The browser draws
   its own grey box and "No file chosen"; its button is restyled as ours, the
   name after it is the muted line, and the whole control shrinks with its
   row and cuts the name rather than pushing the page wide. */
input[type=file]{max-width:100%;min-width:0;font-family:inherit;font-size:15px;
  color:hsl(var(--muted-foreground));overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap}
input[type=file]::file-selector-button{font-family:inherit;font-size:15px;
  font-weight:600;margin:0 12px 0 0;padding:0 16px;min-height:44px;
  border-radius:999px;border:1px solid hsl(var(--border));
  background:hsl(var(--card));color:hsl(var(--foreground));cursor:pointer}
input[type=file]::file-selector-button:active{transform:scale(.96)}
@media (pointer:coarse){
  input[type=file],input[type=file]::file-selector-button{font-size:17px}
}
.field{margin-bottom:16px}
.field label{display:block;font-size:15px;font-weight:600;margin-bottom:6px}
.field .hint{font-weight:400;color:hsl(var(--muted-foreground));font-size:13.5px}
.field input,.field select,.field textarea{width:100%;font:inherit;font-size:15px;
  padding:12px 14px;border-radius:var(--radius);
  border:1px solid hsl(var(--border));background:hsl(var(--card));
  color:hsl(var(--foreground));
  transition:border-color var(--t-quick) var(--ease),box-shadow var(--t-quick) var(--ease)}
.field textarea{min-height:74px;resize:vertical}
.field input:focus,.field select:focus,.field textarea:focus{
  outline:2px solid hsl(var(--primary));outline-offset:-1px;
  border-color:transparent}
.field .err{color:hsl(var(--bad));font-size:13.5px;margin-top:6px}
.field input.bad,.field select.bad,.field textarea.bad{
  border-color:hsl(var(--bad))}
.two-up{display:grid;grid-template-columns:1fr 1fr;gap:12px}

/* 16px is not a taste decision. Safari on iOS zooms the whole page in when a
   focused field is under 16px, and it does not zoom back out on blur -- so
   tapping the first field of the profile form left the user scrolled sideways
   through every field after it. Every control in the form vocabulary was
   15px, so this hit registration, login, password reset, the waitlist and the
   profile alike.

   Keyed on POINTER, not width. The zoom is a property of the device, not of
   the window: an iPhone held sideways is 844px wide and would miss a 560px
   breakpoint entirely, and an iPad misses it in both orientations. Desktop
   keeps 15px, where the behaviour does not exist. */
@media (pointer:coarse){
  .field input,.field select,.field textarea{font-size:17px;padding:12px 14px}
  .field{margin-bottom:16px}
}
@media (max-width:560px){.two-up{grid-template-columns:1fr}}
@media (max-width:520px){.two-up{grid-template-columns:1fr}}

/* Form-sized callout: a validation message sits between two fields and must
   not push them apart the way the page-level `.callout` would. */
.alert{padding:14px 16px;border-radius:var(--radius);margin-bottom:20px;
  font-size:15px;line-height:1.55;border:1px solid;
  background:hsl(var(--primary) / .08);border-color:hsl(var(--primary) / .3)}
.alert.ok{background:hsl(var(--ok) / .1);border-color:hsl(var(--ok) / .35)}
.alert.err{background:hsl(var(--bad) / .1);border-color:hsl(var(--bad) / .35)}

/* SPEAK IT INSTEAD OF TYPING IT. The control `theme.DICTATE_JS` inserts after
   any field carrying `data-dictate`; see that script for why it is only ever
   inserted where a microphone can actually open.

   ⚠️ A SIBLING, NEVER A WRAPPER, and that is a layout decision rather than a
   convenience. Every search form in this product is a flex row whose input
   takes `flex:1` -- `.cop-foot`, `.ask-form`, `.res-form`, `.dt-form`,
   `.log-find` -- so wrapping the input would move the flex item one level out
   and leave five `flex:1` declarations that read as correct and do nothing,
   which is the shape `CLAUDE.md` names repeatedly. As a sibling the button is
   simply the next item in the row, and inside a block `.field` it falls under
   the box, which is an ordinary place for a control.

   44px on every pointer. The floor for a control aimed at once, and this one
   is aimed at while holding a phone in the other hand. */
.dict-btn{width:44px;height:44px;flex:none;display:inline-flex;
  align-items:center;justify-content:center;cursor:pointer;
  border-radius:var(--radius);border:1px solid hsl(var(--border));
  background:hsl(var(--card));color:hsl(var(--muted-foreground));
  transition:background var(--t-quick) var(--ease),
    color var(--t-quick) var(--ease),border-color var(--t-quick) var(--ease),
    transform .22s var(--spring,cubic-bezier(.2,.9,.3,1.4))}
.dict-btn:active{transform:scale(.9);transition-duration:var(--t-tap)}
.dict-btn svg{width:19px;height:19px}
/* ⚠️ GATED. A touch screen has no hover so it fakes one: tapping applies
   `:hover` and leaves it applied, so a mic tapped once would keep a lit
   border for the rest of the visit and read as still selected. `CLAUDE.md`
   records this for `.glow:hover` and the scan in `tests/test_mobile.py`
   caught it here before it shipped -- on the one control in the product most
   likely to be tapped rather than pointed at. */
@media (hover:hover){
  .dict-btn:hover{color:hsl(var(--foreground));
    border-color:hsl(var(--primary) / .45)}
}
/* ⚠️ ON IS NOT A STATE. `CLAUDE.md` counts six occasions where the four-state
   palette was borrowed as decoration; an open microphone is not ACT_FIRST. It
   takes the ink the way a pressed key does, which is the device the rail's
   active item and the save toggle already use. */
.dict-btn[aria-pressed=true]{background:hsl(var(--pressed,var(--primary)));
  color:hsl(var(--pressed-foreground,0 0% 100%));
  border-color:hsl(var(--pressed,var(--primary)))}
/* The ring is the only thing on the screen that says a MICROPHONE IS OPEN,
   which is worth an animation on a surface that otherwise has almost none. */
.dict-btn[aria-pressed=true]{animation:dictPulse 1.6s ease-out infinite}
@keyframes dictPulse{
  0%{box-shadow:0 0 0 0 hsl(var(--primary) / .45)}
  70%{box-shadow:0 0 0 9px hsl(var(--primary) / 0)}
  100%{box-shadow:0 0 0 0 hsl(var(--primary) / 0)}
}
/* Inside a block field the button follows the box rather than sitting on it. */
.field .dict-btn{margin-top:8px}
@media (prefers-reduced-motion:reduce){
  .dict-btn[aria-pressed=true]{animation:none;
    box-shadow:0 0 0 3px hsl(var(--primary) / .35)}
}

/* ---------- auth ---------- */
.auth-wrap{min-height:calc(100vh - 64px);min-height:calc(100dvh - 64px);
  display:grid;place-items:center;
  padding:48px 20px 80px;position:relative;overflow:hidden}
/* The blob is gone. A 640px circle at `filter:blur(120px)` behind a login
   form is the same object the mobile hero had to lose -- a permanent
   full-viewport gaussian for a wash of colour nobody came to look at -- and
   with the palette now neutral it was tinting the sign-in screen for no
   reason at all. Sign-in is a form on paper. */
.auth-card{position:relative;width:100%;max-width:430px;padding:32px 32px;
  background:hsl(var(--card));border:1px solid hsl(var(--border));
  border-radius:calc(var(--radius) * 2);box-shadow:var(--shadow-lg)}
.auth-card h1{font-size:26px;letter-spacing:-.03em;margin-bottom:8px}
.auth-card .sub{color:hsl(var(--muted-foreground));font-size:15px;
  margin-bottom:24px}
.auth-alt{margin-top:20px;padding-top:20px;border-top:1px solid hsl(var(--border));
  font-size:15px;color:hsl(var(--muted-foreground));text-align:center}

/* ---------- signing in without a password (`api/passkeys.py`) ---------- */
/* In the INSTALLED app the sign-in screen is the app's own first screen:
   the website's header goes and the mark sits in the card. In a browser
   tab nothing here applies. */
.auth-mark{display:none}
@media (display-mode:standalone){
  .auth-head{display:none}
  .auth-wrap{min-height:100vh;min-height:100dvh}
  .auth-mark{display:flex;justify-content:center;margin:0 0 24px}
}
/* The size of the glyph is on the rule, never at the call site. */
.pk-known .btn svg,.pk-other .btn svg{width:22px;height:22px;flex:none}
/* »Prijava z geslom ›«, under the one button: a link in weight, a button in
   reach, 44px tall on a phone. The chevron is drawn pointing down, so it
   turns to point onward. */
.pk-switch{display:flex;align-items:center;justify-content:center;gap:4px;
  width:100%;min-height:44px;margin-top:12px;padding:0;border:0;
  background:none;font:inherit;font-size:15px;cursor:pointer;
  color:hsl(var(--muted-foreground))}
.pk-switch svg{width:14px;height:14px;transform:rotate(-90deg)}
@media (hover:hover){.pk-switch:hover{color:hsl(var(--foreground))}}
/* The two screens drawn around one button read as one object, centred, as
   the owner chose them: the greeting on a known device, and the step. */
.auth-card:has([data-pk-known]:not([hidden])) h1,
.auth-card:has(.pk-step) h1,
.auth-card:has(.pk-step) .sub{text-align:center}
.pk-or{display:flex;align-items:center;gap:12px;margin:20px 0;
  font-size:13.5px;color:hsl(var(--muted-foreground))}
.pk-or::before,.pk-or::after{content:"";flex:1;height:1px;
  background:hsl(var(--border))}
/* The step after a password sign-in. Ink, never a state colour: this is
   about the account, and the four-state palette is about tenders. */
.pk-step{text-align:center}
.pk-glyph{display:grid;place-items:center;width:64px;height:64px;
  margin:0 auto 20px;border-radius:50%;background:hsl(var(--muted));
  color:hsl(var(--primary))}
.pk-glyph svg{width:32px;height:32px}
.pk-skip{display:flex;align-items:center;justify-content:center;
  min-height:44px;margin-top:8px;font-size:15px;
  color:hsl(var(--muted-foreground))}
.pk-done{margin:0 0 8px;font-size:17px;line-height:1.5}

/* ---------- CPV picker ---------- */
/* Was six collapsible trades holding a curated 50-code construction list.
   Since ingest widened to every Slovenian tender that list can no longer
   describe most users -- a caterer is not in division 45 -- so this is a
   combobox over the full ~9,450-code vocabulary, searched server-side.
   Shipping the vocabulary to the browser would be ~570 KB on a 36 KB page. */
/* The filters are one tap away at every width, and open while one is set: a
   collapsed bar over a narrowed list is a screen that lies about how much it
   holds. A class, not a <details>: a closed <details> hides its children in the
   UA shadow tree, and with no script this bar is simply the whole bar. */
.filter-toggle{display:none}
/* The search and the button that opened the rest keep their place when it opens. */
.filters.foldable input[type="search"],.filters.foldable .dict-btn{order:-2}
.filters.foldable.folded
  > *:not(input[type="search"]):not(.filter-toggle):not(.dict-btn){
  display:none}
.filters.foldable .filter-toggle{display:inline-flex;align-items:center;gap:8px;
  order:-1;min-height:44px;padding:0 14px;cursor:pointer;font:inherit;font-size:15px;
  font-weight:600;color:hsl(var(--foreground));background:hsl(var(--card));
  border:1px solid hsl(var(--border));border-radius:var(--chip-radius,10px)}
.filter-toggle::after{content:"";width:8px;height:8px;flex:none;
  border-right:2px solid currentColor;border-bottom:2px solid currentColor;
  transform:rotate(45deg);margin-top:-4px}
.filters:not(.folded) .filter-toggle::after{transform:rotate(-135deg);
  margin-top:2px}

.cpv{position:relative}
/* ⚠️ ON A PHONE THE SEARCH BOX COMES FIRST. Measured at 390px with six codes
   chosen: the chips block is 381px tall and the box that searches for the
   NEXT code sat at y=1815, below every code already picked. The control you
   came to use was a screen and a half under the record of what you did
   before. On a desktop the chips are two short rows and the box is at 172px,
   which is why nobody saw it.
   `order` rather than reordering the markup: the chips must still come first
   in the DOM, because they are the current value of the field and a screen
   reader should meet them before the control that adds to them. */
@media (max-width:760px){
  .cpv{display:flex;flex-direction:column}
  .cpv-box{order:-1;margin-bottom:12px}
  .cpv-results{order:-1}
}
/* IMPORTANT: the ROW gap is bigger than the column gap, and it has to be.
   A CPV label is a whole phrase, so a chosen chip is not a pill on one line --
   measured, the longest of these wraps to 57px tall while its neighbours are
   36px. A 7px gutter is right between two short pills side by side and far
   too tight between stacked blocks of that height: they read as touching.
   Columns keep 8px; rows get 10px. */
.cpv-chips{display:flex;flex-wrap:wrap;gap:10px 8px;margin-bottom:14px}
.cpv-chips:empty{display:none}
/* A chosen code is outlined in ink on a light tint, as every chosen chip
   is (`.chips`); the fallbacks are the old navy tint. Its corner stays 14px:
   a CPV phrase wraps to three lines, and a 999px corner on that is a
   lozenge. */
.chip-sel{display:inline-flex;align-items:center;gap:8px;font-size:15px;
  padding:8px 10px 8px 14px;border-radius:14px;font-weight:600;
  border:1.5px solid hsl(var(--chosen-ink,var(--primary) / .35));
  background:hsl(var(--chosen-tint,var(--primary) / .1));
  color:hsl(var(--chosen-ink,var(--primary)));
  /* CPV labels are whole phrases, not words. Left on one line the longest of
     them ran 433px wide inside a 350px phone. */
  max-width:100%;min-width:0}
/* A wrapped phrase needs leading. Without this the label inherited the
   chip's own tight line box and the second and third lines sat on top of
   each other inside a pill that was already cramped. */
.chip-sel .lb{overflow-wrap:anywhere;min-width:0;line-height:1.4}
.chip-sel code{font-family:var(--font-mono);
  font-size:11px;opacity:.75;font-weight:500}
/* `font-family:inherit` for the same reason as `.tour-skip`: a `<button>`
   takes Chrome's UA Arial unless something says otherwise, and this one
   carries no `.btn`. */
.chip-sel button{border:0;background:none;cursor:pointer;padding:0;
  font-family:inherit;
  width:19px;height:19px;border-radius:50%;line-height:1;font-size:15px;
  color:inherit;display:grid;place-items:center;flex:none;
  transition:background var(--t-quick) var(--ease)}

.chip-sel button:focus-visible{outline:2px solid hsl(var(--primary));
  outline-offset:1px}
.cpv-box{display:flex;align-items:center;gap:10px;padding:0 14px;
  border:1px solid hsl(var(--border));border-radius:var(--radius);
  background:hsl(var(--card))}
.cpv-box:focus-within{outline:2px solid hsl(var(--primary));
  outline-offset:-1px;border-color:transparent}
.cpv-box svg{flex:none;color:hsl(var(--muted-foreground))}
.cpv-box input{flex:1;border:0;outline:0;background:none;font:inherit;
  font-size:15px;padding:12px 0;color:hsl(var(--foreground))}
.cpv-spin{width:14px;height:14px;border-radius:50%;flex:none;
  border:2px solid hsl(var(--border));border-top-color:hsl(var(--primary));
  animation:cpvspin .6s linear infinite;visibility:hidden}
.cpv.busy .cpv-spin{visibility:visible}
@keyframes cpvspin{to{transform:rotate(360deg)}}
.cpv-results{position:absolute;left:0;right:0;top:calc(100% + 5px);z-index:30;
  max-height:322px;overflow-y:auto;background:hsl(var(--card));
  border:1px solid hsl(var(--border));border-radius:calc(var(--radius) * 1.5);
  box-shadow:var(--shadow-lg);padding:6px}
.cpv-results[hidden]{display:none}
/* ⚠️ EACH BLOCK ON THE PAGE IS ITS OWN STACKING LAYER. The entrance
   animation on `.content .container > *` leaves a transform on every direct
   child, and a transform makes a stacking context, so the list's z-index
   counts only inside its own block: on `/dokazila` the next section's heading
   painted straight across the open results. On `/profil` every card sits in
   one form, which is why nobody saw it there. The block holding an OPEN list
   is lifted above its neighbours for as long as the list is open. */
.content .container > :has(.cpv-results:not([hidden])){position:relative;z-index:31}
.cpv-opt{display:flex;gap:12px;align-items:baseline;width:100%;text-align:left;
  padding:10px 12px;border:0;background:none;font:inherit;font-size:15px;
  cursor:pointer;border-radius:var(--radius);color:hsl(var(--foreground))}
.cpv-opt.on{background:hsl(var(--primary) / .1)}
.cpv-opt code{font-family:var(--font-mono);
  font-size:11px;color:hsl(var(--muted-foreground));flex:none;
  font-variant-numeric:tabular-nums}
.cpv-opt .lb{flex:1;line-height:1.35}
.cpv-note{padding:10px 12px;font-size:13.5px;line-height:1.5;
  color:hsl(var(--muted-foreground))}
.cpv-note b{color:hsl(var(--foreground))}
.cpv-empty{padding:16px 12px;font-size:15px;
  color:hsl(var(--muted-foreground));text-align:center}
.cpv-raw{width:100%;font:inherit;font-size:15px;padding:12px 14px;
  border-radius:var(--radius);border:1px solid hsl(var(--border));
  background:hsl(var(--card));color:hsl(var(--foreground))}
/* Announced to screen readers, never shown. Not display:none -- that is not
   read out either. */
.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;
  overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* ---------- describe yourself, get CPV codes ---------- */
.describe{margin-bottom:0}
.describe .callout{margin-top:12px}
.describe textarea{width:100%;font:inherit;font-size:15px;padding:12px 14px;
  border:1px solid hsl(var(--border));border-radius:var(--radius);
  background:hsl(var(--card));color:hsl(var(--foreground));resize:vertical}
.describe textarea:focus,.describe input:focus{
  outline:2px solid hsl(var(--primary));outline-offset:-1px}
.describe-row{display:flex;gap:10px;margin-top:10px;flex-wrap:wrap}
.describe-row input{flex:1 1 220px;min-width:0;font:inherit;font-size:15px;
  padding:10px 14px;border:1px solid hsl(var(--border));
  border-radius:var(--radius);background:hsl(var(--card));
  color:hsl(var(--foreground))}
.sug-list{display:flex;flex-direction:column;gap:8px;margin-top:12px;width:100%}
.sug{display:flex;gap:12px;align-items:flex-start;padding:10px 12px;
  border:1px solid hsl(var(--border));border-radius:var(--radius);
  background:hsl(var(--card));cursor:pointer}
.sug:has(input:checked){border-color:hsl(var(--primary));
  background:hsl(var(--primary) / .07)}
.sug input{accent-color:hsl(var(--primary));margin:2px 0 0}
.sug-what{min-width:0}
.sug-what b{display:block;font-size:15px;font-weight:500;line-height:1.35}
/* The words that produced the suggestion. This is the whole reason the
   feature is allowed to exist: a proposal the reader cannot interrogate is a
   guess wearing a confident face. */
.sug-what span{display:block;margin-top:2px;font-size:13.5px;
  color:hsl(var(--muted-foreground));overflow-wrap:anywhere}
@media (pointer:coarse){
  .describe textarea,.describe-row input{font-size:17px}
  .sug{min-height:44px}
}

/* ---------- region chips ---------- */
/* Twelve NUTS-3 regions. Small and closed, so these stay plain checkboxes --
   a search box over twelve items would be worse than the twelve items. */
.chips{display:flex;flex-wrap:wrap;gap:8px}
/* ⚠️ A CHOSEN CHIP IS OUTLINED IN INK ON A LIGHT TINT, NOT FILLED BLACK
   (the owner, 2026-11-07, from a phone: editing showed "a weird black
   background with white text"). It took the whole ink for one day; a page
   of twelve regions with three chosen read as three black slabs. Its tick
   is the ink one. The fallbacks are the old navy tint. */
.chips label{display:inline-flex;gap:8px;align-items:center;font-size:15px;
  padding:8px 12px;border:1px solid hsl(var(--border));border-radius:999px;
  cursor:pointer;background:hsl(var(--card));
  transition:border-color var(--t-quick) var(--ease),
    background var(--t-quick) var(--ease),color var(--t-quick) var(--ease)}
.chips label:has(input:checked){border-color:hsl(var(--chosen-ink,var(--primary)));
  box-shadow:inset 0 0 0 .5px hsl(var(--chosen-ink,var(--primary)));
  background:hsl(var(--chosen-tint,var(--primary) / .1));
  color:hsl(var(--chosen-ink,var(--primary)));font-weight:600}
.chips input{accent-color:hsl(var(--chosen-ink,var(--primary)));margin:0}

@media (max-width:560px){
  .chips{gap:8px}
  .cpv-results{max-height:52vh}
}
/* Touch sizing keys on the pointer, not the window -- see theme.FORMS. */
@media (pointer:coarse){
  /* The region picker is twelve of these in a row. At 38px they were the
     smallest repeated target in the product. */
  .chips label{min-height:44px;padding:0 14px}
  .chips input{width:18px;height:18px}
  /* The CPV search is the one control the whole picker hangs off, and it was
     the last 15px field left -- iOS would zoom the page in the moment someone
     started typing a trade. */
  .cpv-box input{font-size:17px;padding:14px 0}
  /* A results list you scroll with a thumb, not a mouse. */
  .cpv-opt{padding:12px 12px;font-size:15px}
}
/* ---------- the tender list: a ledger row, not a card ----------
 *
 * ⚠️ THE ROWS ARE IN ONE SURFACE NOW, AND THE COLUMN IS WHAT DOES THE WORK.
 *
 * `docs/11-ui-dashboard-research.md` §2.1, written after the brief "it looks
 * a bit still". The diagnosis there is not that nothing moves -- the motion
 * tokens were already right -- it is that a card carrying six facts is a
 * table's content wearing a card's clothes.
 *
 * The eye reads a list by running down ONE COLUMN at a time -- date, then
 * title, then value -- and stops at the row that breaks the pattern. That
 * only works if each fact is in the same place on every row and the rows are
 * the same height. A card puts the facts at the same RELATIVE place and then
 * separates them with 12px of shadowed chrome, so the column never forms.
 * This codebase had already learned the height half of it three times (the
 * two-line title reserve, the one-line meta, the `.why` reserve); the row
 * finishes the thought.
 *
 * Not a <table> either, and that was checked: Slovenian titles and buyer
 * names are long ("DRUŽBA ZA AVTOCESTE V REPUBLIKI SLOVENIJI D.D."), 390px
 * exists, and a true table has nowhere to put the ladder's rungs. This is
 * what Polaris calls a resource list and Linear simply calls the list --
 * which is `.row-list` + `.row`, the primitive the overview has used since
 * it was built. So this promotes that primitive to the feed rather than
 * inventing anything.
 *
 * MEASURED IN CHROME on a seeded feed of twenty rows, before and after --
 * not arithmetic on the CSS, which is what §2.1 says its own numbers are and
 * warns against trusting:
 *
 *                    before                        after
 *   /razpisi  1280   141-144px   2,859px total     82-83px   1,659px  -42%
 *   /razpisi   390   224-227px   4,519px           144-161   3,011px  -33%
 *   /ujemanja 1280   3 heights   3,600px           116-117   2,339px  -35%
 *   /ujemanja  390   6 heights   5,437px           3 heights 4,951px   -9%
 *
 * The heights are the finding as much as the totals. On the desktop feed
 * every row is now the same height and the value column shares one right
 * edge (measured: x1181 on all twenty) and the title one left edge (x399).
 * ⚠️ The phone matches list is the one that stays ragged -- three heights,
 * not one -- because the rungs must all be printed and four of them wrap
 * differently from one on a 259px column. Six heights to three is real and
 * it is not the whole way.
 *
 * ⚠️ 80px is deliberately looser than Linear's ~40 or Polaris's ~48. Those
 * are one line for someone who does this all day; this is two facts per cell,
 * in a language whose nouns are German-length, for someone doing it tired at
 * 22:00. Denser than a card, looser than a spreadsheet.
 *
 * ⚠️ THE DEADLINE IS INK SINCE 2026-11-06 (the owner, docs/27 step 6). The
 * research argued the four-state hues should come off the deadline -- a date
 * is a fact, and the palette reserves burgundy for "you do not meet this" --
 * and said it was the user's call; the row first kept the colour on the WHEN
 * text, the form `.row` uses on the overview. The owner has decided: the WHEN
 * text is ink and its WEIGHT is the urgency (`--due-*`), and the old colours
 * survive only as the old look's fallbacks (`theme.OLD_LOOK`).
 */
/* ⚠️ THE LIST IS A SIZE CONTAINER, so a row can ask how wide the LIST is
   rather than how wide the screen is. The side menu takes 248px of the
   screen, so at 901-1100px the list is as narrow as a phone's while every
   media query here still believed it was a desktop. See `_STACKED_ROW`. */
.trow-list{border:1px solid hsl(var(--border));
  border-radius:calc(var(--radius) * 1.5);background:hsl(var(--card));
  box-shadow:var(--card-shadow,var(--shadow));overflow:hidden;--t-act:44px;
  container:trows / inline-size;position:relative}
/* Two actions on the matches list. Set on the LIST, not the row: every row
   on one screen must share the same track widths or the numbers in column 3
   stop sharing a right edge, which is the whole point of the column.
   ⚠️ A NUMBER, not `max-content`. `max-content` measured 173px of a 343px
   phone row -- the worded "Ni za nas" -- and left the title 143px, which is
   about nine characters a line. Both actions are 44px targets, so the track
   is arithmetic: 44 + 4 + 44. */
.trow-list.acts2{--t-act:92px}
.trow{display:grid;
  grid-template-columns:96px minmax(0,1fr) 128px var(--t-act,44px);
  gap:0 16px;align-items:center;min-height:90px;padding:12px 16px;
  border-top:1px solid hsl(var(--border));color:inherit;position:relative;
  transition:background var(--t-quick) var(--ease),
             box-shadow var(--t-quick) var(--ease)}
.trow:first-child{border-top:0}
/* A row swiped on a phone (`theme.ROW_JS`). `pan-y` hands a vertical drag to
   the page and keeps a sideways one for the row; `pinch-zoom` stays, or a
   reader could not zoom with a finger on a row. While it moves the row takes
   the list's own ground, or what is behind it would show through the
   pressed tint. */
@media (pointer:coarse){
  .trow[data-tw-kind]{touch-action:pan-y pinch-zoom}
}
.trow.swiping,.trow.swiping:active{background:hsl(var(--card));z-index:2}
/* Behind it: what letting go will do, on the muted ground, taking the ink
   once it will. Ink, never a state colour: hiding a tender is not FAIL and
   saving one is not MEET. */
.trow-under{position:absolute;left:0;right:0;z-index:1;display:flex;
  align-items:center;padding:0 20px;overflow:hidden;
  background:hsl(var(--muted));color:hsl(var(--muted-foreground));
  transition:background var(--t-quick) var(--ease),
             color var(--t-quick) var(--ease)}
.trow-under.go-l{justify-content:flex-end}
.trow-under.ready{background:hsl(var(--primary));
  color:hsl(var(--primary-foreground))}
.u-say{display:flex;align-items:center;gap:8px;white-space:nowrap;
  font-weight:600}
.u-say svg{width:20px;height:20px;flex:none}
/* Put back by Undo. */
.trow.arriving{animation:trow-back .3s var(--ease-out)}
@keyframes trow-back{from{opacity:0}}
@media (prefers-reduced-motion:reduce){ .trow.arriving{animation:none} }
/* The archive door's wrapper is there to be redrawn, not to be a box: its
   links stay items of the actions row. */
[data-live="door"]{display:contents}
/* The rungs take a third text line, so the matches list is one step taller.
   Uniform WITHIN a screen, which is the rule; the two screens differ. */
.trow.rungs{min-height:112px}

/* Column 1 -- when. The list is already sorted by deadline, so the order is
   itself an urgency signal and the column only has to be legible. */
/* ⚠️ THE FIGURE LEADS, AND THE UNIT AND THE DATE SIT UNDER IT (the
   prototype's list row, 2026-11-07): the days left in the display face on a
   line of its own, then "dni" and the date on the line under it -- one line
   where there is room, two where there is not (a phone's narrow column, a
   long unit). "čez" is dropped because the figure says it. `views.days_left`
   writes one string for both looks and `theme.OLD_LOOK` sets the 15px line
   back. The display face has one weight, so the UNIT carries the urgency.
   ⚠️ `b` IS `display:contents`, so the figure, the unit, the date and "Rok za
   prijavo" are items of ONE wrapping line box and the unit can share the
   date's line. Its colour and weight still reach the unit by inheritance,
   which is how near reads heavier.
   ⚠️ 26 + 20 + 20 with "Rok za prijavo": the 66px a two-line title and its
   meta already take, so no row on a desk grows. */
.trow .t-when{font-variant-numeric:tabular-nums;min-width:0;display:flex;
  flex-wrap:wrap;align-items:baseline;column-gap:6px}
.trow .t-when b{display:contents;font-size:15px;font-weight:600}
.trow .t-when .t-n{flex:0 0 100%;font-family:var(--font-display,inherit);
  font-synthesis:none;font-size:30px;line-height:26px;letter-spacing:-.05em;
  font-weight:var(--figure-weight,600);
  white-space:nowrap}
.trow .t-when .t-pre{display:none}
.trow .t-when .t-u{font-size:13.5px;line-height:20px;white-space:nowrap;
  color:hsl(var(--muted-foreground))}
.trow.t-bad .t-when .t-u,.trow.t-warn .t-when .t-u{color:inherit}
.trow .t-when time{font-size:13.5px;line-height:20px;
  color:hsl(var(--muted-foreground));white-space:nowrap}
.trow .t-when .dl-kind{flex:0 0 100%}
/* "Rok za prijavo": the date is when to APPLY, not to bid. A third line, in
   the date's own size, and only on the rows it is true of -- an ordinary bid
   deadline is never labelled. Weight, not a state colour: what kind of date
   this is says nothing about the reader. See `views.deadline_note`. */
.dl-kind{display:block;font-size:13.5px;line-height:20px;font-weight:600;
  color:hsl(var(--muted-foreground));white-space:nowrap}
/* Ink, and urgency is weight (the owner, 2026-11-06); burgundy means only
   "you do not meet this". Each fallback is what the old look painted. */
.trow.t-bad .t-when b{color:hsl(var(--due-ink,var(--bad)));
  font-weight:var(--due-heavy,600)}
.trow.t-warn .t-when b{color:hsl(var(--due-ink,var(--warn)));
  font-weight:var(--due-heavier,600)}
.trow.t-soon .t-when b{color:hsl(var(--due-ink,var(--primary)))}
.trow.t-past .t-when b{color:hsl(var(--due-past,var(--bad)))}
/* Column 2 -- what. */
/* ⚠️ TWO LINES, ALWAYS. Measured on a seeded feed at 1280px: titles ran one,
   two or three lines -- 22px, 43px, 65px -- and with the meta line sometimes
   absent the twenty cards came out at TEN different heights between 149px and
   248px. A list whose rows differ in height for an invisible reason does not
   scan, which is the same argument that took two buttons off this row; the
   buttons were only ever a third of it.

   Reserved as well as capped, so a one-line title does not shrink its row.
   The clamp is VISUAL only -- the full title stays in the DOM, so the link's
   accessible name, find-in-page and copy all still get the whole thing, and
   the tender page carries it in full.

   ⚠️ `min-height` IN PIXELS, not `em`. The reserve has to be exactly two
   line boxes of the type actually set -- 2 × 22px -- and an `em` reserve
   computed against a different line-height is how a row ends up 3px taller
   than the one above it for no visible reason. */
.trow .t-what{min-width:0}
.trow .t-what h3{margin:0;font-size:15px;font-weight:500;line-height:22px;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
  overflow:hidden}
.trow .t-what h3 a{color:inherit}
/* ⚠️ ONE LINE, and this was the real driver -- I fixed the title first and
   was wrong about which mattered. Measured on the seeded feed: the title ran
   22/43/65px, but buyer + region + value ran 22/50/72px, a FIFTY pixel spread,
   because the meta line is `flex-wrap` and Slovenian buyer names are long
   ("DRUZBA ZA AVTOCESTE V REPUBLIKI SLOVENIJI D.D.").

   So it stops wrapping. The buyer takes the room and truncates, because it is
   both the longest and the one a reader scans for; region and provenance are
   short and keep their own width. The full name is still in the DOM and on
   the tender page. */
/* ⚠️ `min-width:0` ON THE FLEX CHILD ITSELF, AT EVERY WIDTH. A flex item
   defaults to `min-width:auto`, which refuses to shrink below its content --
   so the ellipsis below could never fire and a long buyer name pushed the row
   wider than the column. This line lived only inside the 760px block, so the
   phone was correct and the desktop was not: measured at 1280, roughly one
   card in five overflowed, `Ni za nas` landed at x1616, and /razpisi carried
   258-470px of horizontal page scroll. 93 of 405 open tenders have a buyer
   name long enough to trigger it. */
/* ⚠️ QUIET WORDS, NOT PILLS. The card carried up to five pill shapes on one
   object -- `.pill`, `.tag`, `.tag.mute`, `.chip`, `.eyebrow` -- which was
   the noisiest single thing on the feed, and Linear's own refresh removed
   exactly this class of treatment. Provenance keeps its icon and its one
   definition (`provenance.of`); the box around it goes. */
/* ⚠️ `height`, not `min-height`. Measured in Chrome at 1280: the rows came
   back at 82px AND 83px, and the odd pixel was the provenance icon -- a 13px
   glyph on `vertical-align:-2px` grows a 16px line box to 17. A one-pixel
   step is invisible on one row and is exactly the ragged rhythm this whole
   change exists to remove. The line is one line by contract, so it is given
   the height of one. */
/* ⚠️⚠️ WHAT DOES NOT FIT IS HIDDEN WHOLE, LAST FIRST, AND THE BUYER KEEPS
   ITS SHARE. Until 2026-10-21 only the buyer could shrink: every tag after it
   was `flex:none`, so a long line squeezed the buyer to NOTHING and then cut
   the last tag mid-word ("TED in Porta"). Measured with production's rows,
   nearly all of which say "z dokumentacijo": the buyer vanished from half the
   rows on an iPad, and from every construction row once the kind of work
   joined the line.

   So the line WRAPS, into a second line the 20px box never shows. The buyer
   claims 10em before anything else is placed (`flex-basis`, capped by its own
   length, so a short name claims only itself); the tags then take their
   places in source order, and the first one that does not fit goes to the
   hidden line with everything after it. The order in `tender_card` is
   therefore the priority -- region, source, lots, documents, and the kind of
   work last, because the owner chose that the trade gives way. Then the buyer
   grows into whatever the line has left. A tag is shown whole or not at all;
   nothing is cut mid-word.

   ⚠️ A REGION IS CAPPED AT 12em. A tender in four regions lists four names,
   and uncapped they would push the source off the line -- and the source is
   the claim this product is built on. The tender page has the full list.

   ⚠️ SINCE 2026-11-07 THE LINE IS THREE FACTS: buyer, region, source (the
   prototype's row). Lots, the kind of work and the source's icon left it, so
   on the wide row nothing is hidden any more; the mechanism stays for the
   stacked row, where the region gives way (`_STACKED_ROW`). The buyer's claim
   went from 10em to 8em with them: still over the 96px the pre-ship sweep
   holds a buyer to, and on a phone it leaves the source its room. */
.trow .t-meta{display:flex;gap:0 8px;margin-top:2px;font-size:13.5px;
  line-height:20px;height:20px;color:hsl(var(--muted-foreground));
  flex-wrap:wrap;align-content:flex-start;white-space:nowrap;min-width:0;
  overflow:hidden}
.trow .t-meta > :first-child{flex:1 1 8em;max-width:max-content;
  overflow:hidden;text-overflow:ellipsis;min-width:0}
.trow .t-meta > * + *{flex:none}
.trow .t-meta > .t-region{max-width:12em;overflow:hidden;
  text-overflow:ellipsis}
.trow .t-meta > * + *::before{content:"·";margin-right:8px}
/* The value has its own column on the wide row and no place on a phone; a
   stacked list 600-879px wide shows it here (below `CSS`'s two doors). */
.trow .t-meta > .t-val{display:none}
/* A saved tender on a touch row (`_TOUCH_ROW` shows it): a small bookmark in
   the corner the actions had. Ink, not a state colour -- saving is the
   reader's decision, not a verdict on the tender. It takes no tap: the row
   under it opens the tender. */
.trow .t-mark{display:none;position:absolute;top:12px;right:8px;
  color:hsl(var(--foreground));pointer-events:none}
.trow .t-mark svg{display:block;width:16px;height:16px}

/* Column 3 -- figures, right-aligned and tabular so the digits line up down
   the list. See `_row_eur`. */
.trow .t-figs{justify-self:end;text-align:right;
  font-variant-numeric:tabular-nums}
.trow .t-figs b{display:block;font-size:15px;font-weight:600;line-height:22px;
  white-space:nowrap}

/* Column 4 -- the actions. On a fine pointer they rest invisible and come up
   on hover or focus; on a coarse pointer they are always there, because a
   hover-only control does not exist on a phone.
   ⚠️ A SAVED ROW SHOWS ITS FILLED BOOKMARK AT REST. Being saved is a fact
   about the row, not a hover state, so `:has(.saved-on)` pins it on. */
.trow .t-act{display:flex;gap:4px;justify-content:flex-end;opacity:0;
  transition:opacity var(--t-quick) var(--ease)}
.trow:hover .t-act,.trow:focus-within .t-act,
.trow .t-act:has(.saved-on){opacity:1}
@media (pointer:coarse){.trow .t-act{opacity:1}}
.trow .t-act:empty{display:none}
/* ⚠️ THE SAVE TOGGLE IS AN ICON HERE AND "Ni za nas" IS NOT, and the split
   is not squeamishness. §2.1 puts both in column 4 as 44px icon buttons. A
   bookmark is a save affordance every reader already knows, and this product
   draws the same one in the rail and on the tender page, so dropping the
   word costs nothing an `aria-label` does not carry. The dismiss is the
   opposite case: the only icon that reads as "not this one" is a cross,
   which reads as DESTROY -- and `dismiss_button`'s own docstring exists to
   say the row is archived, restorable and deliberately not `btn-danger`.
   An icon that contradicts the control is worse than a wide column. */
.trow .t-act .btn-icon{width:44px;height:44px;padding:0;
  display:inline-flex;align-items:center;justify-content:center;gap:0}
/* ⚠️ THE SIZE HAS TO LIVE HERE, NOT AT THE CALL SITE. `icon()` emits a bare
   `<svg viewBox="0 0 24 24">` with no width or height, so its size comes
   entirely from CSS -- and an SVG with a viewBox and no intrinsic size fills
   whatever box it is given. `save_button` happened to pass `cls='star'`,
   which is 15px; `dismiss_button` passed no class at all, so both its
   branches drew a 42px glyph edge to edge inside a 44px button. Measured on
   every match row at 1280 and 390, on `/ujemanja` and `?skrito=1`: the two
   buttons of one pair, at 15px and 42px. A rule that depends on each caller
   remembering an argument is a rule that is one call site from being wrong. */
.trow .t-act .btn-icon svg{width:15px;height:15px;flex:none;margin:0}
.trow .t-act .btn{white-space:nowrap}
/* Why this tender is where it is: the rungs, as a third text line under the
   meta. Quiet -- it is provenance, not a headline, and it must not out-shout
   the title. */
/* ⚠️ Two lines RESERVED, not capped. Every rung that fired has to be
   printed -- that is what makes this a ladder rather than a score, and a
   reader who disagrees needs to see which rung to argue with -- so nothing
   here may be hidden. But a row with four rungs one step taller than a row
   with one puts the best-matched tenders at a different rhythm from the rest
   of the list, for a reason that reads as noise.

   So the box is always two lines and the rungs fill as many as they need.
   Four is the most the ladder can produce that wraps; a fifth would grow the
   row, which is the honest failure -- it does not hide the rung.

   ⚠️ TWO, not the research's one. §2.1 costs the rungs at a single 16px line
   and lands on a 96px row; measured against real rung wording -- "referenca v
   isti skupini", "naročnik, za katerega ste že delali" -- four of them do not
   fit 510px and wrap. Reserving one line and letting it grow would put the
   ragged-height defect back on the screen the ladder exists for. 112px, and
   still 42% shorter than the card it replaces.

   ⚠️ SUPERSEDED 2026-10-27, by the owner: ONE line now, the strongest rung
   and "in še N", and the rest in a fold under it. Ten lines a tender on a
   phone made the list tiring to read. Every rung is still printed -- in the
   fold, in ladder order -- so the reader who disagrees can still find the
   one to argue with; what changed is that it takes a tap. One line also ends
   the wrapping problem the reserve above existed for.

   The summary sits ABOVE the stretched title link (z-index 2 against its 1),
   or tapping the fold would open the tender instead. On a touch screen its
   hit area grows by 8px each way with a negative margin, so the target is
   36px and the row does not move. */
.why{margin:2px 0 0;font-size:13.5px;line-height:20px;
  color:hsl(var(--muted-foreground));min-height:20px;min-width:0}
.why > summary{list-style:none;cursor:pointer;display:flex;align-items:center;
  gap:0 12px;position:relative;z-index:2;width:max-content;max-width:100%}
.why > summary::-webkit-details-marker{display:none}
/* Block, not flex: an ellipsis is drawn only on a block's own text, and as
   a flex row the long rung was cut mid-word with no "..." to say so. */
.why-top{display:block;min-width:0;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.why-top::before{display:inline-block;vertical-align:middle;margin-right:6px}
.why-more{display:inline-flex;align-items:center;gap:4px;flex:none;
  color:hsl(var(--primary));font-weight:600;white-space:nowrap}
.why-more .fold-ico{width:14px;height:14px;flex:none;
  transition:transform .2s var(--ease-out)}
.why[open] .why-more .fold-ico{transform:rotate(180deg)}
.why ul{list-style:none;margin:2px 0 0;padding:0;display:flex;
  flex-direction:column}
.why ul li{display:flex;align-items:center;gap:6px}
/* ⚠️ The dot is the muted ink since 2026-11-06 (`--rung`): it was MEET's
   teal-slate, and a rung is a fact about the order, not a state of the
   tender -- the owner's rule that colour means only the four states. The
   fallback is the old look's teal. */
.why-top::before,.why ul li::before{content:"";width:5px;height:5px;
  border-radius:50%;flex:none;background:hsl(var(--rung,var(--ok)) / .7)}
@media (pointer:coarse){
  .why > summary{padding-block:8px;margin-block:-8px}
}
/* Every rung is a reason this tender SUITS the firm, so they all read the
   same. Nothing here counts against a tender: de-ranking one is a bid
   decision, and this product does not make those. */

/* The phone row. Both the Polaris IndexTable and Plane simplify the small
   row rather than shrinking it, and that is what this does: the days left in
   a narrow column of their own, the title and its one line of facts beside
   them, and the actions at the top right where a thumb reaches. One
   definition (`_STACKED_ROW`), two doors: a phone's screen, and a list
   narrower than 880px however wide the screen is. Below 880 the four columns
   leave the title under 470px, and the line under it cannot hold a buyer, a
   region and a source. */
@media (max-width:560px){
  .trow{--t-act:44px;
    grid-template-columns:68px minmax(0,1fr) var(--t-act,44px);
    gap:0 12px;min-height:0;padding:12px 14px}
  .trow .t-when .t-n{font-size:25px;line-height:24px}
  .trow .t-when .t-u,.trow .t-when time{line-height:18px}
  .trow .t-when .dl-kind{line-height:18px;white-space:normal}
  /* A date in another year carries it ("1. dec. 2030", 77px): in a 68px
     column it may wrap, or it reaches the title (the owner, 2026-11-08). */
  .trow .t-when time{white-space:normal}
  .trow .t-figs{display:none}
  .trow .t-meta > .t-src{order:1}
  .trow .t-meta > .t-region{order:2;flex:1 1 4em;max-width:max-content}
  .trow .t-meta > .t-val{order:3}
  .trow .t-act{flex-direction:column;align-self:start}
}
@container trows (max-width:879px){
  .trow{--t-act:44px;
    grid-template-columns:68px minmax(0,1fr) var(--t-act,44px);
    gap:0 12px;min-height:0;padding:12px 14px}
  .trow .t-when .t-n{font-size:25px;line-height:24px}
  .trow .t-when .t-u,.trow .t-when time{line-height:18px}
  .trow .t-when .dl-kind{line-height:18px;white-space:normal}
  /* A date in another year carries it ("1. dec. 2030", 77px): in a 68px
     column it may wrap, or it reaches the title (the owner, 2026-11-08). */
  .trow .t-when time{white-space:normal}
  .trow .t-figs{display:none}
  .trow .t-meta > .t-src{order:1}
  .trow .t-meta > .t-region{order:2;flex:1 1 4em;max-width:max-content}
  .trow .t-meta > .t-val{order:3}
  .trow .t-act{flex-direction:column;align-self:start}
}
@container trows (min-width:600px) and (max-width:879px){
  .trow .t-meta > .t-val{display:block}
}
/* A touch row: no buttons, a mark for a saved tender. See `_TOUCH_ROW`; the
   stacked half comes after it, through the same two doors as the stacked
   row, so a phone gets the phone's columns and an iPad on its side the wide
   row's. */
@media (pointer:coarse){
  .trow{grid-template-columns:96px minmax(0,1fr) 128px}
  article.trow .t-act{position:absolute;width:1px;height:1px;margin:-1px;
    padding:0;
    overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
  .trow-list:not([data-drop-unsaved]) .trow:has(.t-act .saved-on) .t-mark{
    display:block}
}
@media (pointer:coarse) and (max-width:560px){
  .trow{grid-template-columns:68px minmax(0,1fr)}
  .trow .t-what h3{padding-right:20px}
}
@container trows (max-width:879px){@media (pointer:coarse){
  .trow{grid-template-columns:68px minmax(0,1fr)}
  .trow .t-what h3{padding-right:20px}
}}
.alert-act{margin-top:12px}
.alert-act .btn{font-size:15px;padding:10px 16px}
/* ---------- the firm's own papers ---------- */
/* Attached to an evidence row rather than pooled: the certificate belongs ON
   the certificate. Quiet by default -- three tables of rows must not become
   three tables of forms. */
.ev-files{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:center;
  margin-top:8px}
.ev-file{display:inline-flex;align-items:center;gap:6px;font-size:13.5px;
  background:hsl(var(--muted) / .7);border-radius:999px;padding:4px 4px 4px 10px}
.ev-file a{display:inline-flex;align-items:center;gap:6px;color:inherit;
  max-width:230px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ev-file svg{width:13px;height:13px;flex:none;
  color:hsl(var(--muted-foreground))}
.ev-file-n{color:hsl(var(--muted-foreground));font-variant-numeric:tabular-nums}
/* A file we could not extract text from. Muted ink and a dotted underline
   that says "there is more here on hover", NOT a state colour: burgundy
   means you do not meet a requirement and clay means act before bidding,
   and neither is what an unparseable PDF is. Inherits its size. */
.ev-unread{border-bottom:1px dotted hsl(var(--border));cursor:help}
/* The attached certificate states a different expiry from the form.
   Muted ink and a dotted underline, never a state colour: burgundy means
   you do not meet a requirement and clay means act before bidding, and a
   discrepancy between a paper and a form is neither. The quote sits in
   the title, because a Slovenian page should show the sentence rather
   than assert a date. */
/* The contents strip at the top of the overview. Chips rather than a list:
   it has to fit on one line at 390px without becoming a second navigation,
   and it scrolls sideways in its own track rather than wrapping into three
   rows of furniture above the thing it indexes. */
/* ⚠️ It scrolls sideways and said so with nothing at all. Measured on the
   demo at 375px: the strip is 343px wide over 942px of chips, so 599px sat
   off the right edge looking like a truncated last word rather than like
   more content. The fade is a mask, so it costs no height -- which matters
   on the one screen this session spent its effort shortening -- and it
   disappears on its own once the strip fits. */
.jumps{display:flex;gap:6px;overflow-x:auto;margin:0 0 20px;padding-bottom:2px;
  scrollbar-width:none;
  -webkit-mask-image:linear-gradient(to right,#000 calc(100% - 28px),transparent);
  mask-image:linear-gradient(to right,#000 calc(100% - 28px),transparent)}
.jumps::-webkit-scrollbar{display:none}
.jump{flex:none;font-size:13.5px;line-height:1;padding:8px 12px;border-radius:999px;
  border:1px solid hsl(var(--border));color:hsl(var(--muted-foreground));
  background:hsl(var(--card));white-space:nowrap;text-decoration:none;
  transition:border-color var(--t-tap),color var(--t-tap),transform .22s var(--spring,cubic-bezier(.2,.9,.3,1.4))}
/* Gated: a touch screen fakes hover on tap and leaves it applied, so an
   ungated rule turns the chip you last pressed into a permanently
   highlighted one. */
@media (hover:hover){
  .jump:hover{border-color:hsl(var(--primary));color:hsl(var(--primary))}
}
/* A band the reader opens. The summary keeps the band heading's weight so a
   closed section still reads as a section, not as a control. */
.fold-band{margin-bottom:14px;border-top:1px solid hsl(var(--border));
  padding-top:12px}
.fold-band>summary{cursor:pointer;list-style:none;display:flex;align-items:center;
  gap:8px;color:hsl(var(--foreground))}
.fold-band>summary::-webkit-details-marker{display:none}
.fold-band>summary::after{content:"";width:7px;height:7px;margin-left:2px;
  border-right:1.6px solid hsl(var(--muted-foreground));
  border-bottom:1.6px solid hsl(var(--muted-foreground));
  transform:rotate(45deg) translateY(-2px);transition:transform var(--t-tap)}
.fold-band[open]>summary::after{transform:rotate(225deg) translateY(-1px)}
.fold-band>summary .band-title{margin:0}
.fold-band .band{border-top:0;padding-top:8px}
/* What hiding has taught, and the groups excluded because of it. */
.excl-acts{display:flex;gap:8px;flex-wrap:wrap}
.inline-form{display:inline}
.excl-list ul{list-style:none;margin:8px 0 0;padding:0;display:flex;
  flex-direction:column;gap:6px}
.excl-list li{display:flex;align-items:center;justify-content:space-between;
  gap:10px;flex-wrap:wrap}
/* Accepting the date a certificate states: one tap beside the note. */
.ev-accept{display:inline-block;margin:4px 0 0}
/* The tax number and the button that fills the rest from the register. */
.tax-find{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap}
/* `> div` is the field's own box: `.field` itself is `theme.FORMS`'s. */
.tax-find > div{flex:1 1 200px;min-width:0}
.tax-find > .btn{margin-bottom:16px}
.reg-note{margin:-4px 0 16px}
/* A paper instead of typing (`api/scan.py`): a quiet line, never a step.
   The label is the control; with script the file box hides inside it and
   choosing a file sends it, without script the box and its button show. */
.scan-line{display:flex;align-items:center;gap:10px;flex-wrap:wrap;
  margin:-6px 0 14px}
/* The -6px above tucks the line under a field's own bottom margin, which is
   right on /profil and was wrong under the references list on /dokazila:
   there it pulled the text into the card's edge, reported 2026-10-20 as
   text lying over a section. Clear of the card above, close to the form it
   fills below. */
.scan-line.scan-ref{margin:20px 0 8px}
.scan-pick{position:relative;display:inline-flex;align-items:center;
  min-height:44px;cursor:pointer;color:hsl(var(--primary));font-size:15px}
html.js .scan-pick input{position:absolute;inset:0;width:100%;height:100%;
  opacity:0;cursor:pointer}
.scan-pick:focus-within{outline:2px solid hsl(var(--primary));
  outline-offset:2px;border-radius:6px}
html.js .scan-send{display:none}
.scan-note{margin:-4px 0 16px}
/* One firm per row, its name first and its number under it: centred in a
   button, a long school name and its number wrapped into two ragged
   columns at 390px. */
.scan-firms{display:grid;gap:8px;margin-top:10px}
.scan-pick-firm{flex-direction:column;align-items:flex-start;text-align:left;
  gap:2px;width:100%}
.scan-pick-firm .muted{font-weight:400;font-size:13.5px}
/* `.hint` is styled inside `.field` (theme.FORMS), and these forms are not
   built of `.field`s, so every hint on /dokazila rendered as body text --
   the upload sizes, and the line a read value came from, as loud as the
   value itself. */
.ev-add .hint{display:block;margin-top:6px;font-size:13.5px;line-height:20px;
  color:hsl(var(--muted-foreground));overflow-wrap:anywhere}
/* The profile's optional company details: a tap target, not a heading. */
.co-more{margin:4px 0 0}
.co-more>summary{min-height:44px;font-weight:600}
.co-more>summary .muted{font-weight:400}
.ev-paper{display:block;margin-top:4px;color:hsl(var(--muted-foreground));
  border-bottom:1px dotted hsl(var(--border));cursor:help;width:fit-content}
/* Asking takes a line of its own. Squeezed into the end of the pill, the
   question wrapped to three lines in 141px on a 390px phone and ran 11px
   past its row. */
.ev-file:has(> .del.asking){flex:1 1 100%;flex-wrap:wrap;
  border-radius:var(--radius);padding:6px 6px 6px 10px}
.ev-file > .del.asking{flex-basis:100%}
/* Small, quiet, and only loud on hover -- it destroys a file. */
.btn-x{border:0;background:none;cursor:pointer;font:inherit;font-size:17px;
  line-height:1;padding:2px 6px;border-radius:999px;
  color:hsl(var(--muted-foreground));
  transition:color var(--t-quick) var(--ease),
             background var(--t-quick) var(--ease)}
.ev-attach summary{display:inline-flex;align-items:center;gap:6px;
  cursor:pointer;font-size:13.5px;font-weight:600;color:hsl(var(--primary));
  list-style:none}
.ev-attach summary::-webkit-details-marker{display:none}
.ev-attach summary svg{width:13px;height:13px;flex:none}
.ev-attach[open]{flex:1 1 100%}
.ev-attach form{display:flex;flex-wrap:wrap;gap:8px;align-items:center;
  margin-top:10px;padding:12px 12px;border-radius:var(--radius);
  background:hsl(var(--muted) / .55)}
/* ⚠️ 16px ON A TOUCH SCREEN. Safari zooms the page in when a focused
   control is under 16px and does not zoom back out, so one tap on a file
   picker leaves the whole site enlarged for the rest of the visit. */
.ev-attach input[type=file]{flex:1 1 220px;min-width:0;font-size:13.5px}
@media (pointer:coarse){
  .ev-attach input[type=file],.ev-add input[type=file]{font-size:17px}
  /* It was 23x23 on a phone, half the 44px a thumb needs, on the one control
     in the pill that deletes something. It asks first, so a miss cost
     nothing; it still took two or three tries to hit. The pill grows with
     it, which on a touch screen is the right trade. */
  .btn-x{min-width:44px;min-height:44px}
}
.ev-attach input[type=text]{flex:1 1 160px;min-width:0}
@media (hover:hover){
  .btn-x:hover{color:hsl(var(--bad));background:hsl(var(--bad) / .12)}
}

/* ---------- app shell: rail + content ---------- */
/* ⚠️ `dvh` after `vh`, not instead of it. On iOS Safari `100vh` is the
   viewport with the URL bar HIDDEN, so a 100vh box is taller than what you
   can actually see and the bottom of it sits under the browser chrome. The
   `vh` line stays first as the fallback for anything that does not know
   `dvh`; the second line wins where it is supported. */
/* ⚠️ `--ease` USED TO BE DECLARED HERE, on `.app-wrap`, with a comment
   saying it was "one curve for the signed-in half". It was one curve for
   the signed-in half and nothing else could reach it -- so `theme.BASE`,
   `theme.FORMS` and the landing page each hand-wrote their own, which is
   how the product ended up with eight. The scale now lives in
   `theme.TOKENS` beside the colours, where CLAUDE.md says tokens live, and
   this curve is `--ease-out`: the decelerating one, for anything arriving
   or settling. */
/* ⚠️ `--rail-w` IS FOR THE BACKDROP, AND THE RAIL KEEPS ITS OWN LITERAL.
   The tidy version has both read one value. It is not taken here, and the
   reason is about what could be VERIFIED rather than about what is likely:
   the rail's width is transitioned over 320ms on purpose -- `CLAUDE.md`
   records that collapse being built precisely because the rail used to just
   be narrow on the next frame -- and a custom property does not interpolate,
   so making the rail's width come through `var()` risks trading that motion
   away. Headless Chrome cannot settle the question: under
   `--virtual-time-budget` a transitioned property reads back at its START
   value however long the probe waits, which is a trap `CLAUDE.md` already
   names and which cost an hour here before it was recognised.

   So the number stays written twice, and a test fails if the two ever
   disagree -- derived by a guard rather than by the cascade. Measured with
   transitions disabled: expanded rail 248 / backdrop 248, collapsed rail 62
   / backdrop 62. */
/* Tabular digits for the whole signed-in app: it is a page of figures read in
   columns (deadlines, values, counts), and Figtree's default digits are
   proportional, so a column of them did not line up. Measured 2026-10-28 over
   every page: 152 figures under 24 selectors without it. See `theme.BASE`. */
.app-wrap{--rail-w:248px;font-variant-numeric:tabular-nums;
  display:flex;min-height:100vh;min-height:100dvh;align-items:stretch}
/* `overflow-x:hidden` is what lets the labels animate on opacity and
   transform alone: they keep their width and the narrowing rail cuts
   them off, instead of `max-width` re-wrapping the text on every
   frame. */
/* ⚠️ The rail's gap and its items' padding round DOWN on the spacing scale
   (2026-10-28): rounded up from 22 and 9, the rail grew about 34px and hid
   "Skrči" under the edge of a 900px-tall screen. */
.rail{width:248px;flex:none;display:flex;flex-direction:column;gap:20px;
  overflow-x:hidden;
  padding:20px 14px 16px;border-right:1px solid hsl(var(--border));
  background:hsl(var(--card));position:sticky;top:0;height:100vh;height:100dvh;
  overflow-y:auto}
/* A rail taller than the window scrolls; nothing in it may be squeezed. */
.rail > *{flex-shrink:0}

/* ⚠️ THE RAIL'S SURFACE MUST NOT DEPEND ON A VIEWPORT UNIT BEING RIGHT.
   Reported 2026-09-10 from an iPad: scrolled to the bottom, the menu's white
   panel stopped roughly 155px above the bottom of the screen and the page
   ground showed under it. The rule is `height:100dvh`, which is correct and
   which Chrome honours exactly -- measured at 1024x740 on four screens, the
   band under the rail is 0px. Safari on that device evidently had a smaller
   number than the area it was painting, and `.app-wrap`'s `min-height` uses
   the same unit, so both fell short together.

   Rather than guess at which unit that device believes, this stops the
   VISIBLE surface depending on any of them. A `position:fixed` box is laid
   out against the visual viewport and is re-anchored by the browser itself
   when the viewport changes, so it covers the column whatever `dvh` reports.
   It is not clipped by the rail's `overflow-y`, because a fixed box's
   containing block is the viewport and nothing here transforms.

   ⚠️ Desktop only. Below 900px the rail is an off-canvas drawer, and a
   permanent white stripe down the left edge of a phone is a worse bug than
   the one this fixes.

   ⚠️ It also carries the border, so the hairline continues to the bottom of
   the screen instead of stopping with the panel. Where the rail's own box
   covers it the two coincide exactly. The 320ms collapse is the one
   compromise: a custom property does not interpolate, so during that
   animation the strip BELOW the rail's own box is already at its new width
   while the rail is still sliding. Brief, and only in a region that used to
   be blank. */
@media (min-width:901px){
  .rail::before{content:"";position:fixed;top:0;bottom:0;left:0;
    width:var(--rail-w);
    background:hsl(var(--card));
    border-right:1px solid hsl(var(--border));
    z-index:-1;pointer-events:none}
}
.rail-brand{display:flex;align-items:center;gap:10px;padding:4px 4px 0;
  font-weight:700;font-size:17px;letter-spacing:-.028em;
  color:hsl(var(--foreground))}
.rail-brand:hover{text-decoration:none}
.rail-brand .mark{width:26px;height:26px;border-radius:8px;flex:none;
  display:grid;place-items:center;color:#fff;
  /* Flat ink. It was `linear-gradient(135deg, indigo, violet)` with a
     coloured drop shadow and an inset white gloss along the top edge -- the
     signature gradient out of the Base44 bundle, a lit-plastic button
     highlight, and between them the single most recognisable "assembled from
     a starter kit" object on the page. A mark does not need a light source. */
  background:hsl(var(--primary))}
.rail-brand .mark svg{width:15px;height:15px;display:block}
.rail-brand b{font-weight:800}
/* The phone's logo in the top bar (shown under 900px, where the rail is a
   drawer). The rail's own mark, at the rail's own size. */
.tb-brand{display:none;align-items:center;gap:8px;font-size:17px;font-weight:700;
  letter-spacing:-.028em;color:hsl(var(--foreground));text-decoration:none;
  margin-right:auto}
.tb-brand b{font-weight:800}
.tb-brand .mark{width:26px;height:26px;border-radius:8px;flex:none;display:grid;
  place-items:center;color:#fff;background:hsl(var(--primary))}
.tb-brand .mark svg{width:15px;height:15px;display:block}
.rail-more > summary{display:flex;align-items:center;gap:6px;cursor:pointer;
  list-style:none;padding:8px;min-height:36px;font-size:13.5px;font-weight:600;
  color:hsl(var(--muted-foreground));border-radius:10px;white-space:nowrap}
.rail-more > summary::-webkit-details-marker{display:none}
.rail-more > summary::after{content:"";width:7px;height:7px;margin:-3px 0 0 4px;
  border-right:2px solid currentColor;border-bottom:2px solid currentColor;
  transform:rotate(45deg)}
.rail-more[open] > summary::after{transform:rotate(225deg);margin-top:2px}
:root[data-rail="tight"] .app-wrap .rail-more{display:none}
.rail-group nav{display:flex;flex-direction:column;gap:2px}
/* ⚠️ `padding-left:8px` IS ARITHMETIC, NOT TASTE. The rail collapses to
   62px and centres its items, and centring always puts the icon's
   centre at 31px whatever the padding is. So the EXPANDED state has to
   land on 31 too, or the icon slides sideways for the whole 320ms:
   rail padding-left 14 + item padding-left 8 + half a 18px icon = 31.
   With that, collapsing moves the icon by zero pixels and the only
   thing a reader watches is the labels going. */
.rail-group a{position:relative;display:flex;align-items:center;gap:12px;
  padding:8px 8px;border-radius:10px;font-size:15px;font-weight:600;
  color:hsl(var(--muted-foreground));transition:background var(--t-quick) var(--ease),
  color var(--t-quick) var(--ease)}
/* The marker for where you are. A tint alone is easy to miss against a card
   background at a glance; a bar on the edge is the thing the eye finds. */
.rail-group a.on::before{content:"";position:absolute;left:-14px;top:50%;
  transform:translateY(-50%);width:3px;height:20px;border-radius:0 3px 3px 0;
  background:hsl(var(--primary))}

.rail-group a .ico{width:18px;height:18px;flex:none;
  color:hsl(var(--muted-foreground));transition:color var(--t-quick) var(--ease)}
.rail-group a:hover .ico{color:hsl(var(--foreground))}
.rail-group a.on .ico{color:hsl(var(--primary))}
.rail-group a .dot{width:6px;height:6px;border-radius:50%;flex:none;
  background:hsl(var(--muted-foreground) / .45);transition:background var(--t-quick) var(--ease)}

/* Active is a tint plus a filled dot, not a gradient slab: this is a reading
   surface and a saturated bar in the corner of the eye competes with the
   tender titles, which are the thing worth looking at. */
.rail-group a.on{background:hsl(var(--primary) / .12);
  color:hsl(var(--primary));font-weight:700}
.rail-group a.on .dot{background:hsl(var(--primary))}
.rail-foot{margin-top:auto;padding:12px 4px 0;
  border-top:1px solid hsl(var(--border))}
.rail-collapse{display:grid;place-items:center;width:34px;height:34px;flex:none;
  padding:0;border:0;background:none;cursor:pointer;
  color:hsl(var(--muted-foreground));border-radius:9px}

.rail-collapse svg{width:15px;height:15px;flex:none;
  transition:transform .22s var(--ease-out)}

/* Collapsed: icons-only at 62px. The labels go, the dots stay and grow into
   the icon, and the active bar is what still says where you are. */
:root[data-rail="tight"] .app-wrap{--rail-w:62px}
:root[data-rail="tight"] .app-wrap .rail{width:62px;padding-left:8px;padding-right:8px}
/* The label is a wrapped span, not a bare text node: nothing can hide a bare
   text node, which is the same trap the wordmark hit.

   ⚠️ And it is NOT `display:none` any more. `display` is not animatable --
   the same rule the mobile drawer had to learn -- so the rail did not
   collapse, it was simply narrow on the next frame while five labels
   vanished at once. The labels now keep their box and lose their WIDTH,
   behind `overflow:hidden`; the two block-level ones lose their height and
   their margins the same way. Every frame of the 320ms is then a real
   frame, and the content column, being `flex:1`, follows on its own.

   The declarations that MOVE live under `.anim`, which is added in a
   `requestAnimationFrame` after the remembered state has been applied.
   Without that gate, someone who prefers the rail collapsed would watch it
   animate shut on every single page load. */
/* Composited only. `max-width:0` made the browser re-lay-out and re-wrap
   the words on every frame of the collapse, which is most of what read
   as wobble; the rail's own `overflow-x:hidden` does the clipping now. */
:root[data-rail="tight"] .app-wrap .rail-brand span:last-child,
:root[data-rail="tight"] .app-wrap .rail-group a .lbl{opacity:0;transform:translateX(-6px)}
.rail-brand span:last-child,.rail-group a .lbl{
  max-width:190px;overflow:hidden;white-space:nowrap}
/* Neither `justify-content` nor `gap` animates, so both used to SNAP
   while the padding beside them slid -- the icon jumped, then drifted.
   The item keeps its layout; the icon is already at the rail's centre by
   the arithmetic above, so there is nothing left to move. */
:root[data-rail="tight"] .app-wrap .rail-group a{padding-left:14px;padding-right:14px}
/* Collapsed, the icon IS the navigation. It grows a little and keeps the
   full-strength colour, because at 62px there is no label to lean on. */
/* ⚠️ The icon used to grow 18 -> 21px DURING the collapse, while the row
   was also re-padding and the label was being clipped. Three things
   moving an 18px glyph at once is exactly the wobble. One size. */
:root[data-rail="tight"] .app-wrap .rail-group a{color:hsl(var(--foreground))}

:root[data-rail="tight"] .app-wrap .rail-group a.on::before{left:-8px}
:root[data-rail="tight"] .app-wrap .rail-brand{padding:4px 10px 0}
:root[data-rail="tight"] .app-wrap .rail-collapse svg{transform:rotate(180deg)}

/* ---------- the collapse, in motion ----------
 * One curve and one duration for the whole rail, because this is one object
 * changing size -- unlike the drawer, where arriving and leaving are
 * different acts and get different curves.
 *
 * The text fades faster than the box moves and, on the way out, with a small
 * delay on the way IN, so what you watch is a rail narrowing rather than a
 * half-clipped word being squeezed. */
/* ⚠️ PADDING TOO, ON THE SAME CURVE AS THE ITEMS' PADDING. The rail's own
   padding goes 14px to 8px while each item's goes 8px to 14px, which keeps
   the icons at one x in both states -- but only if both move together. The
   rail's snapped and the items' eased, so on every click the icons and the
   logo jumped 6px sideways and drifted back for 320ms (measured 2026-10-20,
   reported as jitter). Same duration and curve, the sum is constant on
   every frame and they do not move at all. */
.app-wrap.anim .rail{transition:width var(--t-move) var(--ease-out),
  padding var(--t-move) var(--ease-out)}
/* ⚠️ TWO ANIMATED PROPERTIES, DOWN FROM EIGHT.
 *
 * Reported 2026-09-01 as "a bit too wobbly". It was: the rail animated
 * `width` and `padding`, the labels `max-width`, the group headings
 * `max-height` and `margin`, each nav item `padding` and `gap`, the icons
 * `width` and `height`, the active marker `left`, and the build number
 * `font-size` -- all at once, all forcing layout, on text that was being
 * re-wrapped and re-shaped while it moved. Nine glyph-level reflows a frame
 * does not read as one object narrowing; it reads as things wobbling.
 *
 * What is left is `width` on the rail (the actual change) and `max-height` on
 * the two group headings (a real height collapse with no composited
 * equivalent). Everything else is `opacity` and `transform`, which the
 * compositor runs without touching layout, or does not move at all -- the
 * icons are one size and sit at the rail's centre line in BOTH states, so
 * they are still.
 */
.app-wrap.anim .rail-brand span:last-child,
.app-wrap.anim .rail-group a .lbl{
  transition:opacity var(--t-quick) var(--ease),
             transform var(--t-move) var(--ease-out)}
/* The nav item keeps its colours on the shared hover speed and its padding on
   the rail's, so the two edges of the row travel with the rail rather than
   arriving early. */
.app-wrap.anim .rail-group a{
  transition:background var(--t-quick) var(--ease),
             color var(--t-quick) var(--ease),
             padding var(--t-move) var(--ease-out)}
.app-wrap.anim .rail-group a.on::before{
  transition:left var(--t-move) var(--ease-out)}
.app-wrap.anim .rail-brand,.app-wrap.anim .rail-collapse{transition:padding var(--t-move) var(--ease-out)}
@media (prefers-reduced-motion:reduce){
  .app-wrap.anim .rail,.app-wrap.anim .rail *{transition-duration:.01ms}
}

/* ---------- a page arriving ----------
 * The signed-in screens had no entrance at all: the landing page fades its
 * sections in on scroll and the app simply appeared, fully formed, which is
 * most of what reads as stale next to it.
 *
 * It is deliberately short and deliberately shallow -- 8px and 320ms, with
 * the stagger capped at four steps and 120ms total. An entrance you can time
 * is an entrance that is in the way, and this is a reading surface: the
 * tender you came for must not arrive late.
 *
 * ⚠️ `both` fill, so the final frame is `transform:none` rather than a
 * transform that lingers. A transform on an ancestor makes it the containing
 * block for `position:fixed` children, which would strand `.to-top` -- it
 * lives outside this column, but the sticky `.doc-fold` is inside it and
 * would otherwise resolve against a moving box for the whole animation. */
@keyframes app-in{from{opacity:0;transform:translateY(8px)}
  to{opacity:1;transform:none}}
.content .container > *{animation:app-in .32s var(--ease-out) both}
/* ⚠️ ONE PAGE INTO THE NEXT, NOT A BLANK SCREEN BETWEEN THEM (2026-10-29):
   where the browser has cross-document view transitions it holds the old
   page until the new one is ready.
   ⚠️ AND A MOVE, NOT A DISSOLVE (the owner, 2026-11-07: the crossfade and
   the title gliding into the heading felt "almost PowerPoint slides"; asked
   for "a satisfying animation but not too long"). A step deeper slides the
   new page in from the right over the old one, which gives way a little to
   the left and darkens; back is the same move reversed. A tab, a form or
   anything else fades through: the old page goes in 90ms and the new one
   settles in from 98.5%. Which move is the head's `pagereveal`. The bars
   are named and do not animate, so they stand still while the page under
   them moves. A page that arrives this way skips its own entrance
   (`html.vt`).
   ⚠️ THE TOP BAR STANDS STILL TOO, AND A TAB IS A FADE WITH NO SCALE
   (2026-11-08, the owner: "the transitions are really bad still"). Measured
   frame by frame in Chrome: the top bar (search, Pomočnik) faded out and
   back with the page on every section change, and the whole page, chrome
   ground included, shrank to 98.5% while the old one still showed through
   it. Now the bar is named with the rail and the tab bar, the old page is
   gone in 100ms, and the new one only fades: its blocks rise into place
   with their own entrance (`app-in`), which a tab move keeps (`vt-tab`).
   A scale on the root moves the bars' ground and the page's edges with it;
   rising blocks move only the content. */
::view-transition-old(root){animation:vt-out .1s var(--ease-in) both}
::view-transition-new(root){animation:vt-in .2s var(--ease-out) 90ms both}
html:active-view-transition-type(push)::view-transition-old(root){
  animation:vt-push-old .32s var(--ease-out) both}
html:active-view-transition-type(push)::view-transition-new(root){
  animation:vt-push-new .32s var(--ease-out) both}
html:active-view-transition-type(pop)::view-transition-old(root){z-index:1;
  animation:vt-pop-old .3s var(--ease-out) both}
html:active-view-transition-type(pop)::view-transition-new(root){
  animation:vt-pop-new .3s var(--ease-out) both}
@keyframes vt-out{to{opacity:0}}
@keyframes vt-in{from{opacity:0}}
@keyframes vt-push-old{to{transform:translateX(-24%);filter:brightness(.9)}}
@keyframes vt-push-new{from{transform:translateX(100%)}}
@keyframes vt-pop-old{to{transform:translateX(100%)}}
@keyframes vt-pop-new{from{transform:translateX(-24%);filter:brightness(.9)}}
.tabbar{view-transition-name:tw-tabbar}
.rail{view-transition-name:tw-rail}
.topbar{view-transition-name:tw-topbar}
/* ⚠️ THE BARS SHOW THE OLD PAGE'S PICTURE, NOT THE NEW ONE (2026-11-08).
   They showed the new page's, and that picture is sometimes not ready:
   measured on a phone over sixteen tab switches, the tab bar vanished and
   then came back as a smear for up to 300ms on two to four of them, on the
   production code as well. The old picture is taken when the old page
   leaves, crisp, and already lights the tapped item (`CHROME_JS` lights it
   on the tap), so it is the right one to hold; the live bar takes over when
   the transition ends. A page that had no such bar shows the new one. */
::view-transition-group(tw-tabbar),::view-transition-group(tw-rail),
::view-transition-group(tw-topbar),
::view-transition-old(tw-tabbar),::view-transition-old(tw-rail),
::view-transition-old(tw-topbar),
::view-transition-new(tw-tabbar),::view-transition-new(tw-rail),
::view-transition-new(tw-topbar){animation:none}
::view-transition-new(tw-tabbar),::view-transition-new(tw-rail),
::view-transition-new(tw-topbar){opacity:0}
::view-transition-new(tw-tabbar):only-child,::view-transition-new(tw-rail):only-child,
::view-transition-new(tw-topbar):only-child{opacity:1}
html.vt:not(.vt-tab) .content .container > *{animation:none}
.content .container > *:nth-child(2){animation-delay:.04s}
.content .container > *:nth-child(3){animation-delay:.08s}
.content .container > *:nth-child(4){animation-delay:.12s}
.content .container > *:nth-child(n+5){animation-delay:.12s}

/* ---------- the small controls ----------
 * Every one of these changed its background, its border or its ink on hover
 * and did it in a single frame. `.btn` has had a curve and a ripple since
 * the first commit; these are the controls that were never given one, which
 * is why the app felt harder-edged than its own buttons. */
.rail-collapse,.row,.doc-item,.srow,.pg,.decl-opt,.cpv-opt,
.chip-sel button,a.sys,
.to-site,.skip-setup,.saved-on,.dismiss,.btn-danger,.decl-fold > summary,
.doc-fold > summary,.chips label,.filters .chip,.scan-pick,label.tick,
.filter-toggle{
  transition:background var(--t-quick) var(--ease),border-color var(--t-quick) var(--ease),color var(--t-quick) var(--ease),
    box-shadow var(--t-quick) var(--ease),transform .22s var(--spring,cubic-bezier(.2,.9,.3,1.4)),
    opacity var(--t-quick) var(--ease)}
a.tile{transition:border-color var(--t-quick) var(--ease),
  box-shadow var(--t-quick) var(--ease),
  transform var(--t-quick) var(--ease-out)}
@media (hover:hover){
  a.tile:hover{transform:translateY(-2px);box-shadow:var(--shadow-lg)}
}
/* ⚠️ THE BIGGEST CLICK TARGETS IN THE PRODUCT, and neither answered a press.
   A tender row is the object this whole screen exists to let someone open,
   and pressing it did nothing at all until the next page painted -- which on
   a slow query is long enough to wonder whether the click registered and
   press again.

   Same language as `.btn`: answer in `--t-tap` so it reads as received
   rather than considered. ⚠️ The TILE compresses and the ROW does not. A
   tile is a free-standing surface with room around it, so a 0.6% scale reads
   as a press; a row is hairlined against its neighbours inside one bordered
   list, and scaling it drags those hairlines with it and shows the list's
   own background through the gap. The row deepens instead, which is the
   device `.row` on the overview already uses for hover. */
a.tile:active{transform:scale(.994);transition-duration:var(--t-tap)}
.trow:active{background:hsl(var(--muted) / .8);
  transition-duration:var(--t-tap)}
@media (prefers-reduced-motion:reduce){
  a.tile:active{transform:none}
}
/* ⚠️ THE PRESS REACHES EVERY CONTROL IN THE APP (2026-10-28, asked for with
   the haptics: "more satisfying button presses inside the app"). Measured
   first at 390px with touch, holding each control in its pressed state:
   `.btn`, the topbar and the rows answered, and the tab bar -- the five
   things a phone taps all evening -- the choice chips, the folds, the
   overview's figures and tasks, the small icon buttons and the text links
   answered with nothing at all. Three devices, one per shape, in `--t-tap`
   and out on the same spring as `.btn`:
     * SQUEEZE what is small and stands alone: a chip, an icon, a tab's glyph;
     * DEEPEN a row or a block inside a list, which cannot scale without
       dragging its hairlines (the `.trow` argument above);
     * DIM a text link, which is how a phone answers a link anyway.
   `scripts/sweep.mjs` holds it: on a phone, a control that changes nothing
   when pressed fails the ship. */
.chips label:active,.filters .chip:active,.decl-opt:active,.scan-pick:active,
label.tick:active,.cpv-opt:active{transform:scale(.96);
  transition-duration:var(--t-tap)}
.chip-sel button:active{transform:scale(.85);transition-duration:var(--t-tap)}
.jump:active{transform:scale(.95);transition-duration:var(--t-tap)}
/* A switch is small and stands alone (`mail_switch`): its track squeezes. */
.sw:active{transform:scale(.96);transition-duration:var(--t-tap)}
.row:active,.doc-item:active,.srow:active{background:hsl(var(--muted) / .8)}
/* The open file already wears a tint, so its press goes one step deeper. */
.doc-item.on:active{background:hsl(var(--primary) / .18)}
.filter-toggle:active{opacity:.6;transition-duration:var(--t-tap)}
.content summary:active{opacity:.6}
.content a:not([class]):active,a.more:active,a.back-link:active,a.pg:active,
a.q-fix:active,a.t-states:active,a.note:active,a.to-site:active,
a.pa-fact:active{opacity:.55}
@media (prefers-reduced-motion:reduce){
  .chips label:active,.filters .chip:active,.decl-opt:active,
  .scan-pick:active,label.tick:active,.cpv-opt:active{transform:none;
    opacity:.6}
  .sw:active{transform:none;opacity:.6}
}
/* A disclosure that snaps open is the one place a fade is worth the frames:
   the height cannot be animated without a measured max-height, and a wrong
   one clips a forty-file list. The content fades and rises into place while
   the box jumps, which is enough to read as opening. */
@keyframes fold-in{from{opacity:0;transform:translateY(-4px)}
  to{opacity:1;transform:none}}
.doc-fold[open] > .doc-list,.decl-fold[open] > form{
  animation:fold-in .22s var(--ease-out) both}
@media (prefers-reduced-motion:reduce){
  .content .container > *,.doc-fold[open] > .doc-list,
  .decl-fold[open] > form{animation:none}
  a.tile:hover{transform:none}
}

.main{flex:1;min-width:0;display:flex;flex-direction:column}
/* The topbar is a TRACK, not a bar.
 *
 * It used to be an opaque strip -- `--background` at 85% with a hairline
 * under it -- which on paper this close to white read as a white bar laid
 * across the page, and it cut the ground off at the top of every signed-in
 * screen. Meanwhile the landing header dissolved into the page and gathered
 * itself into a floating pill on scroll. Same product, two pieces of chrome,
 * and the signed-in half was the flatter one.
 *
 * So: nothing at the top. No fill, no border, no blur -- `--background` runs
 * unbroken from the top of the window down through the content, and the only
 * things on the track are the controls. Once you move it lifts off and
 * becomes a pill: translucent, blurred, bordered, drawn in from both edges.
 *
 * ⚠️ The fill goes on `.tb-inner`, NEVER on `.topbar`. `.topbar` is the
 * sticky element and spans the full column; a background there is a bar
 * again, and a radius on it would round the corners of a full-width strip
 * rather than produce a pill. (The pill itself went on 2026-08-31: see the
 * block below.) */
/* ⚠️ SAFE AREAS, BECAUSE THE VIEWPORT IS `viewport-fit=cover`.
 *
 * Installed to a home screen the app runs in `display:standalone`, and the
 * page paints under the home indicator and, on a phone held sideways, beside
 * the notch. The status bar is OPAQUE since 2026-10-13 (`theme.head` says why:
 * translucent cost a 59pt dead band at the bottom of a Dynamic Island iPhone),
 * so iOS reports a top inset of 0 in portrait and the `max()` below falls
 * back to the ordinary padding. Without these the last row of a list sits
 * beneath the swipe bar -- one of the things that make an installed web app
 * read as a web page someone bookmarked.
 *
 * `env()` is 0 in a normal browser tab and on every desktop, so these cost
 * nothing anywhere else. `max()` keeps the existing padding as the floor. */
/* ⚠️ NO PILL AND NO MOTION IN THE DASHBOARD. Changed 2026-08-31, by the
   user, deliberately: "the header in the dashboard does not need to
   translate into a header pill or to animate inside of the dashboard".
   It was a track whose inner element gathered into a glass pill past
   scrollY 12 -- height, radius, padding, fill, border and a 20px
   backdrop-filter all transitioning together. That belongs to the LANDING
   page, where the header is part of the argument and a visitor scrolls it
   once. Inside the application the bar is chrome above a list somebody
   scrolls all evening, and chrome that rearranges itself while you read is
   movement that says nothing.
   The `scrolled` class still lands, because `::before` still has to stop the
   content showing through the track. Only the pill went. */
.topbar{position:sticky;top:0;z-index:40;flex:none;
  padding:max(12px, env(safe-area-inset-top)) 22px 8px}
/* ⚠️ The page ground, extended into the track and faded out under it.
 *
 * Without this the content scrolls THROUGH the gaps around the pill: a 10px
 * band above it, and the 8px down each side where the pill has drawn in past
 * the content column. Card edges and fragments of headings sliding through
 * those gaps is not a subtle flaw -- it is what "the whole thing looks buggy
 * on mobile" was, because a phone has no width to spare and the gaps land
 * right where the eye is.
 *
 * It is still the BACKGROUND, which is the whole point of the change: the
 * header shows the page's own colour and simply stops showing the page's own
 * text. The gradient reaches transparent below the pill so there is no edge
 * to see, and it is the thing `.tb-inner` blurs, so the glass reads against
 * paper rather than against a moving paragraph. */
/* ⚠️ SOLID TO THE BAR'S EDGE, AND THE FADE BELOW IT (2026-10-27). The fade
   began at 62% of the bar while that was the PILL's job; with the pill gone
   the controls sit in the lower half themselves, and on an iPhone the search
   field and the rows showed through between them. Now the ground is solid
   for the whole bar and fades over 14px under it, outside its box, where
   there is nothing to tap. */
.topbar::before{content:"";position:absolute;inset:0 0 -14px;z-index:-1;
  pointer-events:none;opacity:0;transition:opacity .24s ease;
  background:linear-gradient(hsl(var(--background)) calc(100% - 14px),
    hsl(var(--background) / 0))}
.topbar.scrolled::before{opacity:1}
/* ⚠️ THE STICKY BAR SITS ON WHATEVER AN IN-PAGE ANCHOR JUMPS TO.
 *
 * Reported 2026-09-04 about the calendar: clicking a day scrolls down "just
 * enough to hide the day you clicked". Measured on `/koledar`, and it is
 * worse than partly -- the date heading lands at **y=0**, and the bar
 * occupies 0..72 on a desktop and 0..64 on a phone, so all 43px of the
 * heading a reader just aimed at is behind it. They scroll back up to find
 * out where they landed, which is the whole cost of a jump that does not
 * clear its own chrome.
 *
 * DERIVED, not a list of anchors. The calendar is only the one that got
 * reported; `#t-{id}` is where every save and every dismiss redirects, and
 * `#vsebina` is the skip link a keyboard reader uses first. Naming those
 * four is how the fifth ships broken -- so the rule is every id inside the
 * scrolling content, which is what an anchor target can be.
 *
 * A FLOOR, not a matched value: 96px clears the 72px bar with air to see the
 * heading is a heading, and keeps clearing it if the bar gains a pixel.
 * `tour.py` picked the same number against the landing header. */
.content [id]{scroll-margin-top:96px}
/* A section's own heading stays below the bar on a laptop; an anchor clears both. */
@media (min-width:901px){.content [id]{scroll-margin-top:136px}}
/* One height, one padding, no radius and no fill, scrolled or not. The row
   is a row; the ground behind it is `.topbar::before`, which is the part
   that was ever doing real work. */
.tb-inner{display:flex;align-items:center;gap:14px;height:52px;padding:0 4px}
.topbar .who{margin-left:auto;display:flex;align-items:center;gap:10px;
  font-size:13.5px;color:hsl(var(--muted-foreground))}
/* The intake indicator. A link now, not a label: the obvious thing to do
   when a status says something is wrong is to click it.

   State is carried by SHAPE as well as colour, because this is a 7px dot in
   a topbar and that is precisely the sort of object that vanishes for a
   red-green colourblind reader. Filled = running, hollow ring = late,
   filled with a cross-bar = stopped, hollow grey = unknown. */
.sys{display:inline-flex;align-items:center;gap:8px;font-size:13.5px;
  color:hsl(var(--muted-foreground));padding:6px 12px;border-radius:999px;
  border:1px solid hsl(var(--border));background:hsl(var(--card));
  transition:border-color var(--t-quick) var(--ease),color var(--t-quick) var(--ease)}

a.sys:focus-visible{outline:2px solid hsl(var(--primary));outline-offset:2px}
.sys i{width:8px;height:8px;border-radius:50%;flex:none;display:block;
  position:relative;background:hsl(var(--muted-foreground))}
.sys.ok i{background:hsl(var(--ok))}
.sys.degraded i{background:transparent;
  box-shadow:inset 0 0 0 2px hsl(var(--warn))}
/* ⚠️ The words stay ink (the owner, 2026-11-09: the red pill "is using a
   weird color"). The dot says how bad, by colour and by shape; the pill
   around it is the same neutral chip in every state. */
.sys.degraded{color:hsl(var(--foreground))}
.sys.broken i{background:hsl(var(--bad))}
/* The cross-bar. Shape, so "stopped" survives greyscale. */
.sys.broken i::after{content:"";position:absolute;left:1px;right:1px;
  top:3px;height:2px;background:hsl(var(--card));border-radius:1px}
.sys.broken{color:hsl(var(--foreground))}
.sys.unknown i{background:transparent;
  box-shadow:inset 0 0 0 2px hsl(var(--muted-foreground) / .6)}
/* A pill on two lines is never right, at any width: it stands out of the bar.
   If the words do not fit, the rule below takes them away instead. */
.sys span{white-space:nowrap}
/* ⚠️ 1100px, NOT 900. Below 1100 the side menu leaves the bar about 600px,
   and measured 2026-10-21 at 901px the search box was 26px wide -- an empty
   rectangle -- while "Zajem ne teče" wrapped onto two lines and stood 3px out
   of the bar. That label is longest exactly when the intake is in trouble,
   which is when it is read. So between the phone and 1100px the bar sheds
   what the phone already sheds: the pill's words and the account's name.
   Both stay one tap away -- the pill is the link to /stanje and the picture
   is the link to /racun -- and the search box gets the room back (234px at
   901, which holds its whole label). */
@media (max-width:1100px){
  /* The label is the first thing to go, and it goes early: at this width
     the bar has to hold a status, a way home and a menu, and "Zajem teče"
     is the least load-bearing of the three -- the dot already says it, and
     the whole thing is a link to the page that says it properly.
     It keeps a 40px tap target rather than shrinking to the dot. */
  .sys span{display:none}
  .sys{padding:0;width:40px;height:40px;justify-content:center;
    border-radius:12px;flex:none}
}
/* Back to the public site.
   The rail brand goes to /app, and the app had no way out at all -- once you
   signed in, the landing page was unreachable without editing the URL. Small
   and quiet on purpose: it is an exit, not a call to action. */
.to-site{display:inline-flex;align-items:center;gap:6px;font-size:13.5px;
  color:hsl(var(--muted-foreground));padding:6px 12px 6px 8px;
  border-radius:999px;border:1px solid transparent;white-space:nowrap;
  transition:color var(--t-quick) var(--ease),border-color var(--t-quick) var(--ease),background var(--t-quick) var(--ease)}
.to-site svg{width:15px;height:15px;flex:none}

.to-site:focus-visible{outline:2px solid hsl(var(--primary));outline-offset:2px}
/* ⚠️ NO PHONE RULE HIDES THE WORDS. One did -- "the chevron alone still reads
   as 'out of here'" -- from when this link was a corner of the header. It has
   lived only on /racun since, beside the sign-out, so on a phone that card
   showed a lone chevron at one end and "Odjava" at the other, reported
   2026-10-20 as a misaligned sign-out button. */
/* 14, not 26. The topbar grew from a 60px bar to a 72px track when it became
   a pill, and leaving this alone would have pushed every page down 12px. The
   distance from the top of the window to the first heading is unchanged. */
.content{padding:14px 22px calc(56px + env(safe-area-inset-bottom));flex:1}
/* On a wide window 22px beside the menu read as touching it (the owner,
   2026-11-03). The bar moves with the content, so the two keep one left edge. */
@media (min-width:1100px){
  .content,.topbar{padding-left:32px;padding-right:32px}
}

/* ---------- the phone's tab bar ---------- */
/* Desktop has the rail, permanently open, so a tab bar there would be a
   second navigation for the same eight screens. This exists only where the
   rail is a drawer. */
.tabbar{display:none}
.more-links{display:none}
.back-link.phone-back{display:none}
@media (max-width:900px){
  .back-link.phone-back{display:inline-flex}
  .more-links{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;margin:0 0 14px}
  .more-links::-webkit-scrollbar{display:none}
  .more-links a{flex:none;display:inline-flex;align-items:center;min-height:44px;padding:0 14px;
    border:1px solid hsl(var(--border));border-radius:99px;font-size:15px;font-weight:600;
    color:hsl(var(--foreground))}
}
@media (max-width:900px){
  .tabbar{display:grid;grid-template-columns:repeat(5,1fr);
    position:fixed;left:0;right:0;bottom:0;z-index:60;
    background:hsl(var(--card) / .92);backdrop-filter:blur(14px);
    border-top:1px solid hsl(var(--border));
    padding-bottom:env(safe-area-inset-bottom)}
  /* 44px is the tap target the rest of this product holds to, and the label
     under the icon is what stops five similar glyphs being a guessing game
     -- the same argument that put icons in the collapsed rail. */
  /* ⚠️ 62px, not 52. Reported as "a bit small" on a real phone: 52 clears
     the 44px floor on paper, but the floor is the MINIMUM for a control you
     aim at once, and these are the five things somebody taps all evening.
     The icon grew with it -- a 20px glyph in a 62px box reads as a small
     target regardless of what the box measures. */
  .tabbar .tab{display:flex;flex-direction:column;align-items:center;
    justify-content:center;gap:4px;min-height:62px;padding:10px 2px 8px;
    background:none;border:0;cursor:pointer;font-family:inherit;
    color:hsl(var(--muted-foreground));font-size:11px;font-weight:600;
    letter-spacing:.01em;text-align:center;line-height:1.2}
  .tabbar .tab svg{width:23px;height:23px;transition:transform .22s var(--spring,cubic-bezier(.2,.9,.3,1.4))}
  /* ⚠️ WHERE YOU ARE IS A SHAPE, NOT A SHADE (the owner, 2026-11-07: "you
     don't know which section you have selected ... the difference in
     contrast is not noticeable"). The current tab's icon sits in a pill of
     its own, the way a phone's own tab bars mark it, and its word is in
     full ink and heavier. The assistant's circle keeps its own fill. */
  .tabbar .tab:not(.tab-ai) svg{padding:4px 16px;margin:-4px 0;
    box-sizing:content-box;border-radius:999px;
    transition:transform .22s var(--spring,cubic-bezier(.2,.9,.3,1.4)),
      background .2s var(--ease-out)}
  .tabbar .tab:not(.tab-ai)[aria-current="page"] svg{
    background:hsl(var(--foreground) / .1)}
  .tabbar .tab{position:relative;z-index:1;-webkit-tap-highlight-color:transparent}
  .tabbar .tab:active svg{transform:scale(.84);transition-duration:var(--t-tap)}
  .tabbar .tab:not([aria-current="page"]):active{color:hsl(var(--foreground))}
  /* Ink, not a fill: the bar is chrome and the current screen is a fact
     about where you are, not a state of the tender kind. */
  .tabbar .tab[aria-current="page"]{color:hsl(var(--pressed,var(--primary)));
    font-weight:750}
  /* The assistant, raised and filled in the middle of the bar: the one filled
     control there, as it is in the topbar on a desktop. It follows the main
     button, so it is ink since 2026-11-06. */
  .tabbar .tab-ai svg{width:24px;height:24px;padding:12px;box-sizing:content-box;
    border-radius:999px;margin-top:-24px;background:hsl(var(--action,var(--primary)));
    color:hsl(var(--action-foreground,var(--primary-foreground)));
    box-shadow:var(--shadow-lg)}
  .tabbar .tab-ai:active svg{transform:scale(.92)}
  /* Both are in the tab bar here. */
  .tb-inner .find,.tb-inner .cop-open{display:none}
  /* The content has to clear the bar, or the last row of every list sits
     under it. Set on the `padding` shorthand further down, because a
     shorthand there would reset a longhand here. */
  /* The burger in the topbar would now be the second control opening the
     same drawer, in the corner this bar exists to avoid reaching for. */
  .rail-toggle{display:none!important}
}
.content .container{max-width:1180px;padding:0}

/* The rail becomes a drawer on a phone.
 *
 * It SLIDES now. The old version toggled `display:none` to `display:flex`,
 * and display is not an animatable property -- the panel simply appeared,
 * which reads as a glitch rather than as a menu. So it stays in the layout
 * and moves on `transform`, which the compositor can do at 60fps without
 * touching layout.
 *
 * Off-screen it is `visibility:hidden`, not merely translated away. A panel
 * that is only moved is still focusable and still read by a screen reader,
 * so tabbing would walk into an invisible menu. The `visibility 0s .32s`
 * delay on the closed state holds it visible for the length of the slide out
 * and then hides it; opening drops the delay so it appears at once.
 *
 * From the RIGHT, because the button that opens it is bottom-right under a
 * thumb. A panel that flies in from the opposite side to the control that
 * summoned it is the kind of small wrongness people feel and cannot name. */
/* The menu button.
 *
 * Bars that morph into a cross rather than a glyph that swaps for a
 * different glyph. Three transforms, and it says the same control closes
 * what it opened -- an X appearing from nowhere does not.
 *
 * It lives in the topbar, at the right-hand end, where the theme control
 * sits on a desktop. That is deliberate: the bar is sticky, so a menu button
 * inside it travels with it, and a control that floats separately from the
 * chrome it belongs to reads as a different thing bolted on. */
.rail-toggle{display:none}
.rail-toggle .bars{display:block;position:relative;width:18px;height:12px}
.rail-toggle .bars i{position:absolute;left:0;width:100%;height:2px;
  border-radius:2px;background:currentColor;
  transition:transform .3s cubic-bezier(.2,.9,.3,1.3),opacity .18s ease}
.rail-toggle .bars i:nth-child(1){top:0}
.rail-toggle .bars i:nth-child(2){top:5px}
.rail-toggle .bars i:nth-child(3){top:10px}
.rail-toggle[aria-expanded="true"]{background:hsl(var(--pressed,var(--primary)));
  border-color:hsl(var(--pressed,var(--primary)));
  color:hsl(var(--pressed-foreground,var(--primary-foreground)))}
.rail-toggle[aria-expanded="true"] .bars i:nth-child(1){
  transform:translateY(5px) rotate(45deg)}
.rail-toggle[aria-expanded="true"] .bars i:nth-child(2){opacity:0;
  transform:scaleX(.3)}
.rail-toggle[aria-expanded="true"] .bars i:nth-child(3){
  transform:translateY(-5px) rotate(-45deg)}
/* Scrolling the page behind an open drawer is the single most common way a
   mobile menu feels broken: you swipe expecting the menu to move and the
   content underneath slides away instead. */
html.rail-open,html.rail-open body{overflow:hidden}
/* Who you are and two small controls, one row, at every width. */
.rail-foot{display:flex;align-items:center;gap:4px}
.rail-foot .me{display:flex;align-items:center;gap:10px;flex:1;min-width:0;
  color:hsl(var(--foreground));font-size:13.5px;padding:4px 6px;
  border-radius:10px;min-height:44px;
  transition:background var(--t-quick) var(--ease)}
.rail-foot .me span{min-width:0;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap}
.rail-foot .me img,.rail-foot .me svg.avi{width:24px;height:24px;flex:none;
  border-radius:50%;display:block;object-fit:cover}
@media (hover:hover){
  .rail-foot .me:hover{background:hsl(var(--muted));text-decoration:none}
}
/* The address is not confirmed yet (`confirm_dot`): a dot where the account
   is, in ink, because it is about the account and not a tender's state. */
.nudge{display:inline-block;flex:none;width:8px;height:8px;border-radius:50%;
  background:hsl(var(--primary));margin-left:4px;vertical-align:4px}
.rail-foot .me .nudge{margin-left:auto}
:root[data-rail="tight"] .app-wrap .rail-foot{flex-direction:column}
:root[data-rail="tight"] .app-wrap .rail-foot .me{flex:none;padding:4px}
:root[data-rail="tight"] .app-wrap .rail-foot .me span{display:none}
@media (prefers-reduced-motion:reduce){
  .rail-toggle .bars i{transition-duration:.01ms}
}
@media (max-width:900px){
  .app-wrap{display:block}
  /* Opening and closing are NOT the same motion, and using one curve for
     both is what makes a drawer feel cheap.

     Coming in it decelerates over 380ms: the panel is arriving somewhere and
     should settle rather than stop. Going out it accelerates over 240ms,
     because a dismissal that takes as long as an arrival feels like the
     interface is arguing with you. The asymmetry is the whole trick. */
  .rail{position:fixed;inset:0 0 0 auto;width:min(320px,88vw);z-index:70;
    display:flex;visibility:hidden;transform:translateX(100%);
    border-right:0;border-left:1px solid hsl(var(--border));
    box-shadow:var(--shadow-xl);overflow-y:auto;
    /* ⚠️ No `will-change`. It held a compositor layer for the drawer's whole
       lifetime -- on the phone, permanently, for an element that is closed
       almost all of the time. A transform transition promotes the element
       while it runs anyway, which is the moment the hint was for. If a first
       open ever feels rough, the fix is to set it on pointerdown and drop it
       on transitionend, not to hold a layer all day. */
    transition:transform .24s cubic-bezier(.4,0,.9,.4),
               visibility 0s linear .24s}
  .rail.open{visibility:visible;transform:none;
    transition:transform .38s cubic-bezier(.16,.84,.36,1)}
  /* A collapsed rail is a desktop preference and must not follow the drawer
     to a phone -- `.tight` is remembered in localStorage, so without this a
     62px drawer slid in with no labels in it. */
  :root[data-rail="tight"] .app-wrap .rail{width:min(300px,86vw);padding-left:14px;
    padding-right:14px}
  :root[data-rail="tight"] .app-wrap .rail-brand span:last-child,
  :root[data-rail="tight"] .app-wrap .rail-group a .lbl{max-width:190px;opacity:1}
  :root[data-rail="tight"] .app-wrap .rail-more{display:block}
  :root[data-rail="tight"] .app-wrap .rail-foot{flex-direction:row}
  :root[data-rail="tight"] .app-wrap .rail-foot .me{flex:1;padding:4px 6px}
  :root[data-rail="tight"] .app-wrap .rail-foot .me span{display:inline}
  :root[data-rail="tight"] .app-wrap .rail-group a{justify-content:flex-start;padding:8px 12px;
    gap:12px}
  /* The scrim leads on the way in and lags on the way out, so the panel
     always has something behind it and never appears to float over bare
     content for a frame. */
  .rail-scrim{position:fixed;inset:0;z-index:69;
    background:hsl(218 20% 5% / .55);
    -webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);
    opacity:0;visibility:hidden;
    transition:opacity .26s ease,visibility 0s linear .26s}
  .rail-scrim.open{opacity:1;visibility:visible;
    transition:opacity .32s ease}

  /* The links arrive just after the panel does, one at a time. Staggering
     the individual links rather than the two groups is most of what makes
     this read as a menu opening rather than a panel appearing -- the eye
     follows the sequence down the list instead of being handed the finished
     thing.

     The delays start at 80ms, which is roughly where the panel has stopped
     moving. Anything earlier and the two motions fight; much later and it
     reads as lag. */
  .rail.open .rail-group h3{animation:rail-in .3s both .06s}
  .rail.open .rail-group a{animation:rail-in .34s both}
  .rail.open .rail-group a:nth-child(1){animation-delay:.08s}
  .rail.open .rail-group a:nth-child(2){animation-delay:.12s}
  .rail.open .rail-group a:nth-child(3){animation-delay:.16s}
  .rail.open .rail-group a:nth-child(4){animation-delay:.20s}
  .rail.open .rail-group a:nth-child(5){animation-delay:.24s}
  .rail.open .rail-group:nth-of-type(2) a{animation-delay:.26s}
  .rail.open .rail-foot{animation:rail-in .3s both .3s}
  .rail-toggle{display:grid;place-items:center;width:42px;height:42px;
    flex:none;border-radius:12px;border:1px solid hsl(var(--border));
    background:hsl(var(--card));color:hsl(var(--foreground));cursor:pointer;
    padding:0;
    transition:background var(--t-quick) var(--ease),border-color var(--t-quick) var(--ease),color var(--t-quick) var(--ease)}
  /* ⚠️ The BOTTOM value clears the tab bar, and it is set here rather than
     only in the earlier 900px block because this rule uses the `padding`
     SHORTHAND. A shorthand resets every side, so it silently beat the
     longhand `padding-bottom` above it and left 48px against a 53px bar --
     the last row of every list sat under the navigation. Measured in a
     390px frame: padBottom 48 vs tabbar height 53. */
  .content{padding:10px max(16px, env(safe-area-inset-left))
    calc(86px + env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-right))}
  /* ⚠️ NOTHING about the geometry changes on a phone, and that is the fix
     for the stutter.

     The desktop pill animates `padding` on the track and `height` on the
     inner, which is a layout on every frame -- and it does it while a 20px
     `backdrop-filter` re-rasterises across the full width, which is a fresh
     GPU pass on every frame. Either alone is affordable. The pair, on a
     phone, is the jank: the pill arrived in visible steps rather than
     smoothly, on the one gesture every visitor performs first.

     So on mobile the pill arrives by changing COLOUR, not size. Same track
     padding in both states, same height, and the transition lists only
     properties that paint: no layout, and the blur is rasterised once per
     state rather than once per frame. The blur itself drops from 20px to
     14px, because blur cost scales with radius and a phone is doing this
     over the full screen width. */
  /* The phone keeps its own padding and a shorter row. Everything that used
     to undo the pill here went with the pill itself: there is nothing left
     to override, because the desktop no longer builds one. */
  .topbar{padding:max(10px, env(safe-area-inset-top)) 14px 6px}
  .tb-inner{height:48px;padding:0 6px 0 10px;gap:10px}
  /* ⚠️ ON A PHONE THE BAR IS PAINTED AND ENDS IN A LINE, NOT A FADE
     (2026-10-28, reported from an iPhone as a blur on the dashboard). The
     ground hung 14px below the bar and faded out there, so every row
     dissolved into the bar on its way under it, which on a phone reads as
     a blur. And it was the PSEUDO-ELEMENT that painted: Safari on iOS 26
     tints its status-bar area from the background of a sticky element
     touching the top edge, and `.topbar` itself had none, so Safari blurred
     what scrolled under it as well. The bar is the page ground at rest too
     -- the ground is one flat colour here, so there is no seam -- and
     `::before` becomes a hairline along its bottom edge, shown once
     something has scrolled under it. */
  .topbar{background:hsl(var(--background))}
  .topbar::before{inset:auto 0 0;height:1px;background:hsl(var(--border))}
  /* The tab bar carries the search and the assistant here, so unless there is
     bad news to report the bar over the content has nothing to hold.
     ⚠️ BUT IT STAYS AS A STRIP OF GROUND (the owner, 2026-11-07, from an
     iPhone: "a weird effect on top of the page which makes the whole upper
     text seem foggy"). Hidden, it left nothing sticky at the top edge, and
     Safari blurs whatever scrolls under its status bar when nothing there
     has a ground of its own (the 2026-10-28 finding above); the page's
     heading also began under the clock. Now it is the safe area's height
     in the page's own colour, with no line and nothing in it. */
  /* ⚠️ THE LOGO IS ON EVERY PHONE SCREEN (the owner, 2026-11-09: "we don't
     see the logo of the app anywhere"). The bar used to be hidden with no bad
     news to report, which left a phone with no sign of whose app it was.
     It holds the logo, and the intake alarm when there is one. */
  .tb-brand{display:flex}
  /* Everything in the right-hand group lives in the tab bar here, so the
     alarm is the bar's right edge. */
  .topbar .who{display:none}
  .sys span{display:inline}
  .sys{width:auto;height:auto;min-height:40px;padding:0 12px}
  /* ⚠️ THE FOOT STAYS ON SCREEN. Measured at 375x667 with the drawer open:
     its content is 893px in a 667px box, so the theme control (678), the
     site link (722) and the account with the only sign-out a phone has
     (776) were ALL below the fold. The panel scrolls, but nothing said so,
     and "log me out" is not a thing to go hunting for.
     Sticky rather than shorter: the nav list above it is the full rail and
     every destination in it earns its place. */
  .rail-foot{position:sticky;bottom:0;background:hsl(var(--card));
    padding-bottom:max(10px, env(safe-area-inset-bottom))}
  .rail-collapse{display:none}
  .rail-brand{display:none}
  .rail{gap:14px;padding-top:12px;padding-bottom:0}
  .rail-group nav{gap:0}
  .rail-group a{min-height:44px}
}
/* A short slide, not a long one. 10px is enough for the eye to register a
   direction; 20px starts to look like the row is being thrown in. */
@keyframes rail-in{from{opacity:0;transform:translateX(10px)}
  to{opacity:1;transform:none}}
/* Someone who asked for less motion gets the panel, not the journey. */
@media (prefers-reduced-motion:reduce){
  .rail,.rail.open,.rail-scrim,.rail-scrim.open{transition-duration:.01ms}
  .rail.open .rail-group h3,
  .rail.open .rail-group a,
  .rail.open .rail-foot{animation:none}
}
@media (pointer:coarse){
  .band-head .more{min-height:44px;
    display:inline-flex;align-items:center}
}
@media (pointer:coarse){
  .rail-group a{min-height:44px}
  /* Removing a chosen CPV code was a 19px circle. */
  .chip-sel button{width:30px;height:30px;font-size:19px}
  .chip-sel{padding:6px 6px 6px 12px}
  .rail-toggle{width:44px;height:44px}
}

/* ---------- overview ---------- */
.greet{margin-bottom:24px}
.greet h1{font-size:26px;letter-spacing:-.03em}
.greet .sub{margin-top:6px;display:flex;align-items:center;gap:10px;
  flex-wrap:wrap;font-size:15px;color:hsl(var(--muted-foreground))}
.greet .flag{display:inline-flex;align-items:center;gap:8px;font-size:13.5px;
  font-weight:600;padding:4px 12px;border-radius:999px;
  background:hsl(var(--bad) / .12);color:hsl(var(--bad))}
.greet .flag i{width:6px;height:6px;border-radius:50%;background:currentColor}

/* Label above, number below -- the ERP's tiles read that way and it is the
   right order: the label says what you are about to be told. */
/* ONE RECTANGLE, everywhere on this screen.
 *
 * `auto-fit` with six tiles was the bug. At most content widths it fitted
 * four or five per row and then stretched the orphans across the remainder,
 * so the same kind of number arrived in three different sized boxes on one
 * screen -- and the widest tile, which reads as the most important, was
 * whichever one happened to be last. A fixed column count means every tile
 * is the same rectangle at every breakpoint, and the row simply rewraps.
 *
 * `minmax(0,1fr)` rather than `1fr`: a bare 1fr floors at the content's
 * min-width, so one long label would push its column wider than the rest and
 * reintroduce exactly the inequality this is here to remove.
 *
 * The border, radius and shadow below are `.card`'s, deliberately. A tile, a
 * band and a tender card are the same surface at different sizes; the tiles
 * and bands were flat while every card was raised, which made the overview
 * look like a different product from the screens it links to. */
.tiles{display:grid;gap:12px;margin-bottom:32px;
  grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:900px){.tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* ⚠️ TWO across, not one. At one per row the three tiles are full-width
   boxes ~115px tall, so the overview spent ~370px -- most of a phone's first
   screen -- on three two-digit numbers before the reader reached anything
   they could act on. A tile is a label and a number; 175px is plenty for
   both, and a long label wrapping to two lines is what `minmax(0,1fr)` is
   for. The box gets shorter too: 104px of min-height was sized for a desktop
   row. */
/* ⚠️ THREE TILES IN A TWO-COLUMN GRID LEAVES AN ORPHAN. Measured at 390px:
   the third tile sat alone with an empty half-row beside it, which reads as
   a missing tile rather than as a layout. The last one spans when it would
   otherwise be alone.

   ⚠️ AND THE EXCLUSION NAMED A CLASS THAT DOES NOT EXIST. This read
   `.tiles:not(.ctx)` while the country strip is `.tiles.nat` -- `ctx`
   appears nowhere in this file -- so the scoping the comment promised was
   not in force at all. It was harmless only by arithmetic: that strip has
   FOUR tiles, and `:last-child:nth-child(odd)` cannot match an even one. Add
   a fifth country number and the last one would have spanned the full width,
   on the one row this page deliberately renders at the weight of context.
   `CLAUDE.md` records "a comment that asserts a property the code does not
   have" as its own defect shape; this is that, in CSS.
   `tests/test_overview_shape.py` now derives the exclusion from the classes
   the markup actually uses. */
@media (max-width:900px){
  .tiles:not(.nat) > :last-child:nth-child(odd){grid-column:1 / -1}
}
@media (max-width:520px){
  .tiles{gap:10px}
  .tile{min-height:82px;padding:12px 14px 14px}
  .tile b{font-size:25px;margin-top:8px}
  .tile span{font-size:11px;letter-spacing:.09em}
}
.tile{padding:16px 16px 16px;display:flex;flex-direction:column;
  justify-content:space-between;min-height:104px;color:inherit;
  border-radius:calc(var(--radius) * 1.5);border:1px solid hsl(var(--border));
  background:hsl(var(--card));box-shadow:var(--card-shadow,var(--shadow));
  transition:border-color var(--t-quick) var(--ease)}

/* ⚠️ Two lines reserved, for the same reason as the card title. "Odprtih
   razpisov v Sloveniji" wraps and "Ujemanja" does not, so the seven tiles on
   this screen rendered at 104px and 114px -- the same primitive at two sizes,
   which is the exact defect the `auto-fit` grid caused and which this file
   already fixed once through a different door. */
.tile span{display:block;font-size:11px;font-weight:800;letter-spacing:.11em;
  text-transform:uppercase;color:hsl(var(--muted-foreground));
  line-height:1.45;min-height:2.9em}
/* ⚠️ THE COLOUR MEANS "THIS IS YOURS", and that is the whole licence for
   it. Asked for 2026-08-31: the dashboard read like one big spreadsheet.
   It did, because every figure on it was the same near-black on the same
   white, so "35 tenders match YOU" and "549 tenders exist in Slovenia"
   carried identical weight and the page's own argument -- yours at full
   weight, the country at the weight of context -- survived only in the
   font size.

   `--primary` and nothing else. NOT a state colour: teal-slate, clay and
   burgundy are the four-state vocabulary, and CLAUDE.md records four
   separate times that borrowing one as decoration had to be reverted. The
   nationwide strip below keeps the plain ink, so the contrast between the
   two blocks is now visible rather than merely stated. */
.tile b{display:block;margin-top:10px;font-size:30px;font-weight:700;
  line-height:1;letter-spacing:-.03em;font-variant-numeric:tabular-nums;
  color:hsl(var(--primary))}
/* A tile that is a link should say so on approach. Gated, because a touch
   screen fakes hover and leaves it applied. */
@media (hover:hover){
  a.tile:hover{border-color:hsl(var(--primary) / .5)}
}
/* Ink since 2026-11-06 (the owner: a deadline is ink), clay under the old
   look. "2 saved tenders are closing" is a count of deadlines, and the
   four-state palette is about tenders the firm does or does not meet. */
.tile.due b{color:hsl(var(--due-ink,var(--warn)))}

.band{margin-bottom:24px}
/* A task looks different from a note. Six identical bands meant the page's
   own ordering rule -- do this, then know this -- was invisible. The edge is
   the same device `.card.edged` already uses, so it is not a new idiom. */
.band.task .row-list{border-left:3px solid hsl(var(--warn) / .55)}
.band.task .band-title{color:hsl(var(--foreground))}
.band-n{font-size:11px;font-weight:600;color:hsl(var(--muted-foreground));
  font-variant-numeric:tabular-nums;letter-spacing:0}
/* ⚠️ SECTION RHYTHM IS A RULE, NOT SIX TYPED LITERALS.
   `style="margin-top:26px"` was hand-written onto six section heads across
   three screens -- and the seventh, the FIRST head of each run, never got one.
   That is the hand-written-list defect in its spacing form, and the symptom is
   what was reported: on `/dokazila` the empty-state box rendered welded to the
   form beneath it, two surfaces of slightly different value touching with no
   seam, reading as one shape that changes colour halfway down.
   Adjacency derives it instead, so a section added tomorrow is spaced without
   anyone remembering to type a number. A first child has no preceding sibling,
   so it correctly gets nothing; sibling margins collapse, so a block that
   already carries its own gap (`.decl-fold` 22px) cannot be doubled. */
* + .band-head, * + .section-head{margin-top:32px}
.row-list + .card, .fine + .card, .card + .card{margin-top:14px}
.band-head .more{margin-left:auto;font-size:13.5px}

/* A row, not a card. Five cards would out-shout the tiles above them --
   but the CONTAINER is the same rectangle as a tile and as a card, down to
   the shadow (`--card-shadow`: none since 2026-11-06, as `.card`'s). The
   rows differ inside it; the box they sit in does not. */
.row-list{border:1px solid hsl(var(--border));border-radius:calc(var(--radius)*1.5);
  background:hsl(var(--card));box-shadow:var(--card-shadow,var(--shadow));overflow:hidden}
/* Two columns, not three. The third held a right-aligned arrow that sat
   800px from the title it belonged to on a 1280px screen -- a long run of
   dead space pointing at a row that is already entirely a link, and one
   more thing for the eye to travel to for nothing. */
/* Three columns: when, what, and the meta pushed to the far edge. See `_row`
   for why the third one exists. `auto` rather than a fixed width so a short
   meta does not reserve space it will not use, and `max-content` on the
   title keeps the two text columns from fighting over a long buyer name. */
/* ⚠️ The third track is `minmax(0,300px)`, NOT `auto`. With `auto` the
   column sizes to its content and a percentage max-width on the child then
   resolves against that same content box -- circular, so it settled tiny and
   clipped "2. sep. 2026" to "2. sep. 20…". A stated track gives the column a
   width to be a percentage of. */
.row{display:grid;grid-template-columns:96px minmax(0,1fr) minmax(0,300px);
  gap:2px 16px;
  padding:14px 16px;border-top:1px solid hsl(var(--border));color:inherit;
  align-items:center;
  /* The hover was an instant background swap -- the one interaction a
     reader performs hundreds of times an evening, with no easing on it at
     all. Background and the inset rule below are both cheap to paint. */
  transition:background var(--t-quick) var(--ease),
             box-shadow var(--t-quick) var(--ease)}
.row:first-child{border-top:0}

.row .when{font-size:13.5px;font-weight:600;
  color:hsl(var(--muted-foreground));font-variant-numeric:tabular-nums}
.row .what{min-width:0}
/* ⚠️ ONE LINE ON A DESKTOP, TWO ON A PHONE, AND THIS IS WHERE EVERY RAGGED
   ROW CAME FROM. Measured in Chrome before the clamp: the overview's rows
   took SIX distinct heights at 1258px (46-84px) and THIRTEEN at 390px, from
   70px to 522px. A single row 522px tall is 62% of a phone screen, and the
   reason is only that a long tender title wrapped freely while its
   neighbour's did not.
   `.rmeta` next door has been clipped to one line since it was written, and
   the comment there states the rule this now applies to the title as well:
   a column whose rows are different heights for a reason the reader cannot
   see is the spreadsheet complaint, one level down. The feed settled the
   same argument with the ledger row.
   Nothing is lost -- the full string is on the element's own `title`. */
.row .what b{display:block;font-size:15px;font-weight:500;line-height:1.35;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* ⚠️ ONE LINE, ELLIPSISED. Right-aligning it without this was worse than
   the two-line row it replaced: "ELEKTRO MARIBOR, podjetje za distribucijo
   električne energije, d.d." wrapped to three ragged right-aligned lines and
   took the row to 74px while its neighbour stayed at 48px. A column whose
   rows are different heights for a reason the reader cannot see is the
   spreadsheet complaint again, one level down.
   The full text is on the row's `title`, so nothing is actually lost. */
.row .rmeta{justify-self:end;text-align:right;font-size:13.5px;
  color:hsl(var(--muted-foreground));line-height:1.4;
  max-width:100%;white-space:nowrap;overflow:hidden;
  text-overflow:ellipsis;font-variant-numeric:tabular-nums}
/* Below this there is no spare width to push anything into, so the meta goes
   back under the title where it started. */
@media (max-width:760px){
  .row{grid-template-columns:96px minmax(0,1fr)}
  .row .rmeta{grid-column:2;justify-self:start;text-align:left;max-width:none;
    margin-top:2px}
}
/* Urgency, on the same scale as a tender card, and NOTHING else. See
   `_row`. `soon` takes the primary rather than a state colour: two weeks out
   is a note, not a verdict. */
.row.t-bad .when{color:hsl(var(--due-ink,var(--bad)));
  font-weight:var(--due-heavy,600)}
.row.t-warn .when{color:hsl(var(--due-ink,var(--warn)));
  font-weight:var(--due-heavier,600)}
.row.t-soon .when{color:hsl(var(--due-ink,var(--primary)))}
.row.t-past .when{color:hsl(var(--due-past,var(--bad)))}
/* Saved is a shape, not a colour. Same bookmark as the rail and the save
   button, so the three cannot drift into meaning different things. */
.row .what b svg{width:13px;height:13px;flex:none;margin-right:8px;
  vertical-align:-1px;color:hsl(var(--muted-foreground))}
/* ⚠️ ONE COLUMN HERE, BECAUSE `auto` WAS EATING THE ROW. This read
   `grid-template-columns:1fr auto` with the meta in the second track, and
   `.rmeta` carries `white-space:nowrap` from the base rule and
   `max-width:none` from the 760px block -- so a long buyer name sized the
   `auto` track to its full unwrapped width and left the title whatever
   remained. Measured on the demo at 375px:

       row 0   title 137px   meta 158px
       row 2   title  20px   meta 275px
       row 3   title   0px   meta 589px   <- in a 339px row

   A title rendered at ZERO pixels. It was invisible before the title was
   clamped only because it wrapped instead, which is what produced the 522px
   rows -- the same root cause showing as height rather than width.

   Below 560px there is no width to put a second column in. Everything
   stacks: when, then title, then meta. */
@media (max-width:560px){
  .row{grid-template-columns:minmax(0,1fr);gap:4px}
  .row .when{grid-column:1}
  .row .rmeta{grid-column:1;justify-self:start;text-align:left;max-width:100%}
  /* Two lines rather than one: the column is about 343px here and a
     Slovenian tender title rarely fits in one. Two is still a FIXED
     ceiling, which is what makes the rows scan. */
  .row .what b{white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;
    -webkit-line-clamp:2;line-clamp:2;overflow:hidden}
}

/* ---------- the whole row is the target ---------- */
/* A "stretched link": the heading's anchor grows an invisible overlay across
   the row, so a click anywhere opens the tender while the accessible name
   stays the tender's title. Everything genuinely separate -- the save form,
   the dismiss form -- is lifted above that overlay and keeps working.

   The alternative, wrapping the row in one anchor, cannot be used: the row
   contains a <form>, and a form inside an anchor is invalid HTML that
   browsers recover from unpredictably, usually by eating the click. */
.trow h3 a.stretch::after{content:"";position:absolute;inset:0;z-index:1}
.trow h3 a.stretch{text-decoration:none;color:inherit}

/* ⚠️ Gated, like every other hover here: on a touch screen `:hover` stays
   on the row last tapped, so coming back to the list left that one title
   blue among black ones (seen on an iPhone, 2026-10-27). */
@media (hover:hover){
  .trow:hover h3 a.stretch{color:hsl(var(--primary))}
}
/* `:focus-visible` on the stretched link has to show on the ROW, or the
   focus ring is drawn around a heading while the click target is the whole
   row. ⚠️ `outline-offset` is NEGATIVE here where the card used +2: a row is
   flush against its neighbours inside `overflow:hidden`, so an outset ring
   is clipped on three sides and reads as a broken box. */
.trow:has(a.stretch:focus-visible){outline:2px solid hsl(var(--primary));
  outline-offset:-2px}
.trow .t-act,.trow .save-form{position:relative;z-index:2}

/* ---------- save toggle ---------- */
.save-form{display:inline}
@media (pointer:coarse){
  /* .btn-sm is 37px, which is the right size for a mouse and not for a
     thumb. Twenty of these render per page of results. */
  .save-form .btn,.list-tools .btn{min-height:44px}
}
/* ⚠️ "On" is not a state. This was clay -- `--warn`, which the palette
   reserves for ACT_FIRST, "you cannot bid yet" -- and it was applied to two
   toggles that are simply switched on: a saved tender and a monitor that
   mails you. Neither is something to act on, and this was the third place
   the four-state vocabulary had been borrowed as decoration.

   A toggled-on control reads as on the way a pressed key does: it takes the
   ink instead of sitting in outline. Same device as the rail's active item,
   which never needed a state colour either. */
.saved-on{border-color:hsl(var(--primary) / .45);
  background:hsl(var(--primary) / .09);color:hsl(var(--primary));font-weight:600}

/* Quiet. Saying "not this one" is the commonest thing a reader will do on
   this list and the least interesting, so it must not compete with the title
   next to it -- and it is not destructive, so it is not `btn-danger` either.
   Nothing is deleted: the row stays and `/ujemanja?skrito=1` lists it. */
.dismiss{color:hsl(var(--muted-foreground));border-color:transparent;
  box-shadow:none}


/* A destructive action does not get the same weight as the way in.
   `Izbriši` sat beside `Odpri` in an identical ghost button on the monitors
   list and three times on the evidence page -- same size, same border, same
   ink -- so the row offered "open this" and "destroy this" as equal choices.
   It stays a real, reachable control and stops advertising. */
.btn-danger{border-color:transparent;background:none;
  color:hsl(var(--muted-foreground));box-shadow:none}

/* A delete that asks first, in place (`del_form`). Without script the first
   button submits, which is the one-tap delete this replaced: worse, never
   broken. No state colour on the question: it is a question, and the
   palette's burgundy means "you do not meet this". */
.del{display:inline-flex;align-items:center;flex-wrap:wrap;gap:6px}
.del-q{display:none;align-items:center;flex-wrap:wrap;gap:6px}
.del-q > span{font-size:13.5px;font-weight:600}
.del.asking > [data-del-open]{display:none}
.del.asking > .del-q{display:inline-flex}

/* A BOOKMARK, filled when saved and outlined when not. It was a star glyph,
   which contradicted the rail -- where the same destination is drawn as a
   bookmark precisely because a star reads as a rating and this product does
   not rate tenders. Two drawings of one idea, disagreeing about what the
   idea was. */
.star{width:15px;height:15px;flex:none;margin-right:8px}

/* ---------- list tools ---------- */
.list-tools{display:flex;align-items:center;justify-content:space-between;
  gap:12px;margin:-8px 0 16px;font-size:13.5px;flex-wrap:wrap}
/* The list being fetched again as the reader types (`theme.LIVE_LIST_JS`),
   dimmed only once that takes a moment. */
.live-list{transition:opacity var(--t-quick) var(--ease)}
.live-list[aria-busy=true]{opacity:.55}

/* ---------- award history ---------- */
.scroll-x{overflow-x:auto}
table.awards{width:100%;border-collapse:collapse;font-size:13.5px;margin-top:12px}
table.awards th{text-align:left;font-size:11px;text-transform:uppercase;
  letter-spacing:.05em;color:hsl(var(--muted-foreground));font-weight:700;
  padding:0 12px 8px 0;white-space:nowrap}
table.awards td{padding:8px 12px 8px 0;border-top:1px solid hsl(var(--border));
  vertical-align:top}
table.awards .num{text-align:right;font-variant-numeric:tabular-nums;
  white-space:nowrap}

/* The previous overview's vocabulary -- `.stat-grid`, `.stat-tile`, `.mini`,
   `.two-col` -- was removed here, dead since the overview was rebuilt on the
   rail layout. Deleted rather than left: `.mini` set `border-radius:
   var(--radius)` where every live surface uses `calc(var(--radius) * 1.5)`,
   so it was a second, smaller rectangle waiting for someone to find it in
   the stylesheet and reuse it. */

/* ---------- browse filters ---------- */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.list-head{align-items:center;flex-wrap:wrap;gap:12px 20px}
/* One control for a choice of one: the list's tabs, the account's choice of
   view. ⚠️ PILL CHIPS SINCE 2026-11-06 (the prototype's `.segs .chip`): it was
   a segmented track with the current one lifted on a card, and a row of
   pills is the same choice the filters make, so one shape now means "pick
   one". The current one takes the ink, the way a pressed key does, and never
   a state colour. The old track is `theme.OLD_LOOK`'s.
   `font-family:inherit`: a bare <button> takes Arial from the UA sheet. */
.seg{display:inline-flex;gap:6px;padding:0;border-radius:0;margin:0;
  background:none}
.seg a,.seg button{display:inline-flex;align-items:center;min-height:36px;
  padding:0 14px;border:1px solid hsl(var(--border));
  border-radius:var(--chip-radius,8px);background:hsl(var(--card));
  cursor:pointer;font-family:inherit;font-size:15px;font-weight:600;
  white-space:nowrap;color:hsl(var(--foreground));
  transition:background var(--t-quick) var(--ease),color var(--t-quick) var(--ease),
    border-color var(--t-quick) var(--ease),
    transform .22s var(--spring,cubic-bezier(.2,.9,.3,1.4))}
.seg [aria-current="page"]{background:hsl(var(--pressed,var(--card)));
  color:hsl(var(--pressed-foreground,var(--foreground)));
  border-color:hsl(var(--pressed,var(--card)));box-shadow:none}
.seg a:active,.seg button:active{transform:scale(.95);
  transition-duration:var(--t-tap)}
.seg a:focus-visible,.seg button:focus-visible{outline:2px solid hsl(var(--primary));
  outline-offset:1px}
@media (hover:hover){
  .seg a:not([aria-current]):hover,.seg button:not([aria-current]):hover{
    color:hsl(var(--foreground));text-decoration:none;
    border-color:hsl(var(--muted-foreground) / .5)}
}
@media (pointer:coarse){
  .seg a,.seg button{min-height:44px}
}
.list-acts{display:inline-flex;align-items:center;gap:16px;white-space:nowrap}
.list-acts .save-form{margin:0}
/* Measured 2026-11-07 at 390px with touch: the three were 22px tall, and
   »CSV« 27px wide 16px from its neighbour. The box grows, the words stay. */
@media (pointer:coarse){
  .list-acts > a,.list-acts .link-btn{display:inline-flex;align-items:center;
    min-height:44px;min-width:44px}
  .list-acts{gap:12px}
}
.link-btn{background:none;border:0;padding:0;cursor:pointer;font:inherit;
  color:hsl(var(--primary))}
.link-btn:active{opacity:.6}
.filters{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:20px;
  align-items:center}
.filters input[type=search],.filters select{font:inherit;font-size:15px;
  padding:10px 12px;border:1px solid hsl(var(--border));
  border-radius:var(--radius);background:hsl(var(--card));
  color:hsl(var(--foreground))}
.filters input[type=search]{flex:1 1 240px;min-width:0}
.filters input[type=search]:focus,.filters select:focus{
  outline:2px solid hsl(var(--primary));outline-offset:-1px}
/* ⚠️ THE FILTERS ARE CHIPS (the prototype's, 2026-11-06): a <select> is a pill
   like the checkbox chips beside it, and one that narrows the list takes the
   ink the way a checked chip does, so the bar itself says which filters are
   on. The ORDER is not a filter, so the sort never takes it. `option:checked`
   is the live selectedness, so a choice the live list applies without a
   reload (`theme.LIVE_LIST_JS`) is drawn at once. The options keep the
   card's ground: a popup that inherited the ink would be the whole list in
   reverse. Every fallback is the field this was. */
.filters select{border-radius:var(--chip-radius,var(--radius))}
.filters select:not([name="sort"]):has(option:checked:not([value=""])){
  background:hsl(var(--pressed,var(--card)));
  color:hsl(var(--pressed-foreground,var(--foreground)));
  border-color:hsl(var(--pressed,var(--border)))}
.filters select>option{background:hsl(var(--card));color:hsl(var(--foreground))}
/* A pill, and the chosen one takes the ink (the prototype's, 2026-11-06). */
.filters .chip{display:inline-flex;align-items:center;gap:8px;font-size:13.5px;
  padding:10px 14px;border:1px solid hsl(var(--border));
  border-radius:var(--chip-radius,var(--radius));background:hsl(var(--card));
  cursor:pointer;white-space:nowrap}
.filters .chip:has(input:checked){border-color:hsl(var(--pressed,var(--primary)));
  color:hsl(var(--pressed-foreground,var(--primary)));
  background:hsl(var(--pressed,var(--primary) / .08))}
.filters .chip input{accent-color:hsl(var(--primary));margin:0}
.filters .chip:has(input:checked) input{
  accent-color:hsl(var(--pressed-foreground,var(--primary)))}
@media (pointer:coarse){
  /* ⚠️ `.row2 input` as well, and it is the one that mattered.

     The coarse rule covered `input[type=search]` only, so the two text boxes
     in the second row of the filter bar -- "Izpusti" and "Naročnik", on
     /razpisi, which is the screen this product points at -- stayed at 14px.
     Safari on iOS zooms the page in when a focused field is under 16px and
     does NOT zoom back out afterwards, so tapping either one left the whole
     site enlarged and scrolled sideways for the rest of the visit. That is
     not a form bug, it is what makes a site feel broken. */
  .filters input[type=search],.filters .row2 input,
  .filters select{font-size:17px;padding:12px}
  .filters .chip{min-height:44px}
}
@media (max-width:560px){
  .filters{gap:8px}
  .filters.foldable input[type="search"]{flex:1 1 120px}
  .filters select{flex:1 1 140px}
  .filters .btn{width:100%}
  /* ⚠️ The second row is a flat run of label, input, label, input, button,
     and at 390px it wrapped wherever it happened to run out of room: the
     "Naročnik" label ended up stranded on the end of the previous line, half
     outside the container, with its own field on the line below. A label
     that is not next to its field is not a label.
     Each field takes a full line here, so every label sits directly above
     the thing it names. `flex-basis:100%` rather than a stacked grid,
     because the markup is one flat sequence and this needs no change to
     it. */
  .filters .row2{gap:6px 10px}
  .filters .row2 input{flex:1 1 100%;min-width:0}
  .filters .row2 .lbl{flex:1 1 100%;margin-top:4px}
}

/* ---------- document reading room ---------- */
/* Two panes: the file list, and one file open beside it. Below 900px the
   frame goes under the list rather than beside it, because a PDF in a 320px
   column is not a preview of anything. */
.docs{display:grid;grid-template-columns:290px minmax(0,1fr);gap:16px;
  align-items:start}
/* ⚠️ The panes are PLACED, not left to source order, and leaving them to it
   is what made the reading room unreadable. `.doc-stage` comes FIRST in the
   markup on purpose -- below 900px the document has to arrive before the
   file list -- and a grid fills its columns in source order, so on a desktop
   the document took the 290px column and the file list took the rest.
   Measured on a 1440px window before this: stage 290px, list 827px, and the
   text pane wrapping at 44 characters to a line. Two rules, no markup
   change, and the phone layout below is a flex column where `grid-column`
   does nothing. */
.doc-fold{grid-column:1;grid-row:1}
.doc-stage{grid-column:2;grid-row:1}
/* The list follows you down a forty-page document rather than scrolling away
   at the top of it. Desktop only: below 900px it is a fold under the file. */
@media (min-width:901px){.doc-fold{position:sticky;top:84px}}
@media (max-width:900px){.docs{grid-template-columns:minmax(0,1fr)}}

.doc-list{border:1px solid hsl(var(--border));
  border-radius:calc(var(--radius) * 1.5);background:hsl(var(--card));
  box-shadow:var(--card-shadow,var(--shadow));overflow:hidden;max-height:78vh;overflow-y:auto}
.doc-item{display:block;padding:12px 14px;color:inherit;
  border-top:1px solid hsl(var(--border))}
.doc-item:first-child{border-top:0}

/* Which publication the files below are from, where a tender's list spans
   a correction and the original. Shared by the reading room and the tender
   page, so it lives here, on the sheet both load. Ink, not a state colour:
   an earlier publication is a fact about the files, not a verdict. */
.doc-group{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 10px;
  padding:10px 16px;font-size:13.5px;line-height:1.4;
  color:hsl(var(--muted-foreground));background:hsl(var(--muted) / .35)}
.doc-group b{color:hsl(var(--foreground));font-weight:600}
/* The reading room's role filter and the file to read first. Ink only: a
   role is what a file is for, not a verdict on it. */
.role-filter{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 14px}
.doc-start{color:hsl(var(--foreground));font-weight:600}
.doc-item.on{background:hsl(var(--primary) / .1);
  box-shadow:inset 3px 0 0 hsl(var(--primary))}
.doc-item .fn{display:block;font-size:13.5px;font-weight:600;line-height:1.35;
  overflow-wrap:anywhere}
.doc-item .sub{display:block;margin-top:4px;font-size:11px;
  color:hsl(var(--muted-foreground))}
.doc-item.off .fn{color:hsl(var(--muted-foreground))}

.doc-stage{border:1px solid hsl(var(--border));
  border-radius:calc(var(--radius) * 1.5);background:hsl(var(--card));
  box-shadow:var(--card-shadow,var(--shadow));overflow:hidden;min-width:0}
.doc-stage header{display:flex;gap:12px;align-items:center;flex-wrap:wrap;
  padding:12px 14px;border-bottom:1px solid hsl(var(--border))}
.doc-stage header b{font-size:15px;overflow-wrap:anywhere;min-width:0;flex:1}
.doc-stage iframe{display:block;width:100%;height:74vh;border:0;
  background:hsl(var(--muted) / .3)}
/* A document, not a listing.
 *
 * `<pre>` defaults to monospace, and monospace is wrong for what this
 * actually holds: `extract/text.py` returns one paragraph per line and
 * tables as `a | b | c`, so there is no column alignment to preserve and the
 * face bought nothing while costing about a third of the characters that fit
 * on a line. `pre-wrap` stays -- those line breaks ARE the document's
 * paragraph structure -- and `overflow-wrap` drops from `anywhere` to
 * `break-word`, because `anywhere` breaks Slovenian words mid-syllable at
 * any width it likes.
 *
 * The measure is capped by the padding rather than by `max-width`, so the
 * text column centres in the pane and the scrollbar stays on the pane's own
 * edge. ⚠️ In px, not `ch`: `ch` is the advance of the digit zero, which in
 * a proportional face is about 9.2px against an average character of 7.3, so
 * `82ch` measured 754px and set 110 characters to a line -- a third wider
 * than it asked for. 600px is about 82 characters, which is a document; the
 * full 827px pane is about 113, which is scanning. */
/* The note above the text shares the text's measure, or it reads as a label
   on the pane rather than as the first line of the document. One custom
   property so the two cannot drift. */
.doc-stage{--doc-gutter:max(24px,calc((100% - 600px) / 2))}
.doc-note{margin:0;padding:18px var(--doc-gutter) 0}
.doc-text{margin:0;padding:24px var(--doc-gutter);
  max-height:74vh;min-height:340px;overflow:auto;
  font-family:inherit;font-size:15px;line-height:1.72;
  white-space:pre-wrap;overflow-wrap:break-word;tab-size:4;-moz-tab-size:4}
/* ---------- a Word or Excel file, drawn ----------
 * Same measure and same gutter as `.doc-text`, so switching between a file
 * we could draw and one we could only read does not move the column.
 *
 * It is set as a DOCUMENT, not as the app: the type is a touch larger and
 * the leading longer than a dashboard would use, because what is on this
 * screen is forty pages of statute and the reader is looking for two
 * paragraphs in it. The headings carry the navigation -- they are the whole
 * reason this beats the flat text it replaced -- so they get space above
 * them and none of the app's tight card rhythm. */
.doc-doc{padding:26px max(24px,calc((100% - 600px) / 2));
  max-height:74vh;min-height:340px;overflow:auto;font-size:15px;
  line-height:1.72;overflow-wrap:break-word}
.doc-doc > *:first-child{margin-top:0}
.doc-doc p{margin:0 0 12px}
.doc-doc h3,.doc-doc h4,.doc-doc h5,.doc-doc h6{margin:24px 0 10px;
  line-height:1.3;letter-spacing:-.014em}
.doc-doc h3{font-size:19px}
.doc-doc h4{font-size:17px}
.doc-doc h5,.doc-doc h6{font-size:15px;color:hsl(var(--muted-foreground))}
.doc-doc strong{font-weight:700}
.doc-doc .doc-li{margin:0 0 8px;padding-left:16px;position:relative}
.doc-doc .doc-li::before{content:"";position:absolute;left:2px;top:.62em;
  width:4px;height:4px;border-radius:50%;
  background:hsl(var(--muted-foreground) / .75)}
.doc-doc .doc-more{font-size:13.5px;color:hsl(var(--muted-foreground));
  margin:6px 0 16px}
/* ⚠️ A tender's tables are wider than any column you give them -- a bill of
   quantities is eight columns -- so the table scrolls inside its own box and
   the page never does. Without the wrapper the whole reading pane gains a
   horizontal scrollbar and every paragraph on it starts moving sideways. */
.doc-tw{overflow-x:auto;margin:0 0 16px;
  border:1px solid hsl(var(--border));border-radius:10px}
.doc-doc table{border-collapse:collapse;width:100%;font-size:13.5px;
  line-height:1.55}
.doc-doc td{border:1px solid hsl(var(--border));padding:8px 12px;
  vertical-align:top;min-width:80px}
/* The first row of a Slovenian conditions table is nearly always its header,
   and the file rarely says so in a way python-docx can read. Weighting the
   first row is a typographic guess and it is the right one far more often
   than not; it claims nothing the document did not say. */
.doc-doc tr:first-child td{background:hsl(var(--muted) / .5);font-weight:600}
@media (max-width:900px){
  .doc-doc{max-height:70vh;min-height:0;padding:20px;font-size:15px}
}
.doc-none{padding:48px 24px;text-align:center}
.doc-none p{color:hsl(var(--muted-foreground));max-width:420px;
  margin:8px auto 0;font-size:15px;line-height:1.6}
/* On a phone the document comes FIRST and the list folds away.
   Before this the list lost its height cap and the frame went under it, so a
   forty-file pack put the document about two screens below the fold: you
   could see the list or you could scroll, but you could not read. */
@media (max-width:900px){
  /* ⚠️ `stretch`, or the grid's `align-items:start` above carries over:
     in a flex COLUMN it means "do not fill the width", so the document
     pane took its longest line (599px) and laid a 390px phone out 615px
     wide, cutting the text off at the right edge. Measured 2026-10-20. */
  .docs{display:flex;flex-direction:column;align-items:stretch}
  /* ⚠️ The order goes on the FOLD, not on the list inside it. `.doc-list`
     stopped being a child of `.docs` when the disclosure was wrapped around
     it, so `order:2` there matched an element that is not a flex item and
     did nothing at all -- and the fold, at the default `order:0`, sat ABOVE
     the document, which is the arrangement this block exists to prevent. */
  .doc-stage{order:1}
  .doc-fold{order:2}
  .doc-list{max-height:none}
  .doc-stage iframe{height:70vh;min-height:380px}
  .doc-stage{--doc-gutter:20px}
  .doc-text{max-height:70vh;min-height:0}
}

/* The list as a disclosure. `<details>` rather than a script, so it works
   with none: the summary is a real control and the state is the browser's. */
.doc-fold{border:0;background:transparent;padding:0;margin:0}
.doc-fold > summary{display:none}
@media (max-width:900px){
  .doc-fold > summary{display:flex;align-items:center;gap:10px;
    padding:14px 16px;margin-top:12px;cursor:pointer;list-style:none;
    border:1px solid hsl(var(--border));border-radius:12px;
    background:hsl(var(--card));font-size:15px;font-weight:600}
  .doc-fold > summary::-webkit-details-marker{display:none}
  /* One chevron, rotated. It was the characters U+25BE and U+25B4 swapped
     for each other, so the only caret in the product that was not a stroke
     was also the only one that could not animate. */
  .doc-fold > summary .fold-ico{width:15px;height:15px;flex:none;
    margin-left:auto;color:hsl(var(--muted-foreground));
    transition:transform .2s var(--ease-out)}
  .doc-fold[open] > summary .fold-ico{transform:rotate(180deg)}
  .doc-fold[open] > summary{margin-bottom:10px}
}

/* iOS Safari renders a PDF in an iframe as a single non-scrolling page, so
   the frame alone is not a way to read a forty-page document on a phone.
   The escape hatch is a real link, shown only where the problem exists. */
.doc-escape{display:none}
@media (max-width:900px){
  .doc-escape{display:block;padding:12px 14px;text-align:center;font-size:13.5px;
    border-top:1px solid hsl(var(--border))}
}

/* The setup checklist. One rectangle like everything else, and the rows
   are the same shape as a band row so the screen does not gain a new
   vocabulary for its first-run state. */
.setup{border:1px solid hsl(var(--border));border-radius:calc(var(--radius) * 1.5);
  background:hsl(var(--card));box-shadow:var(--card-shadow,var(--shadow));overflow:hidden;
  margin-bottom:24px}
.su-head{padding:16px 20px;border-bottom:1px solid hsl(var(--border));
  background:hsl(var(--muted) / .45)}
.su-head b{font-size:15px;letter-spacing:-.01em}
.su-head span{display:block;font-size:13.5px;margin-top:4px;
  color:hsl(var(--muted-foreground))}
.su-row{display:grid;grid-template-columns:26px minmax(0,1fr) auto auto;
  gap:14px;align-items:center;padding:14px 20px;
  border-top:1px solid hsl(var(--border))}
.su-row:first-of-type{border-top:0}
.su-mark{width:22px;height:22px;border-radius:50%;display:grid;
  place-items:center;font-size:13.5px;font-weight:700;
  background:hsl(var(--ok) / .14);color:hsl(var(--ok))}
.su-mark svg{width:12px;height:12px;display:block}
.su-mark.todo{background:transparent;
  box-shadow:inset 0 0 0 2px hsl(var(--border))}
.su-what{min-width:0}
.su-what b{display:block;font-size:15px;letter-spacing:-.01em}
.su-row.done .su-what b{color:hsl(var(--muted-foreground));font-weight:500}
.su-sub{display:block;font-size:13.5px;line-height:1.55;margin-top:2px;
  color:hsl(var(--muted-foreground))}
.su-min{font-size:11px;color:hsl(var(--muted-foreground));white-space:nowrap}
@media (max-width:640px){
  .su-row{grid-template-columns:26px minmax(0,1fr);gap:10px}
  .su-row .btn{grid-column:2}
  .su-min{grid-column:2;margin-top:-6px}
}

/* The one sentence on the overview that is about the reader. Larger than
   the metadata line above it, because it is the answer and that is the
   label. */
.greet .lead{margin-top:10px;font-size:17px;line-height:1.6;
  color:hsl(var(--foreground));max-width:62ch}
/* The counts inside the sentence, so the answer is scannable without
   reading it. Same one accent as the tiles. */
.greet .lead b{color:hsl(var(--primary));font-weight:700;
  font-variant-numeric:tabular-nums}

/* Slovenia-wide numbers, at the weight of context. Same rectangle, smaller
   type: they used to sit in identical boxes beside the reader's own, where a
   bigger nationwide number simply won. */
/* ⚠️ CONTEXT, NOT CARDS -- and it was rendering the other way round.
   Measured on the seeded overview: the reader's three tiles came out at
   104px and the four nationwide ones at 109px, so the numbers that are
   explicitly "not about you" were the biggest objects on the screen. The
   copy underneath even says so out loud.

   They are a strip now: no border, no shadow, no card surface, label beside
   the figure instead of above it. Four fewer card-shaped boxes on a screen
   that stacks seven of them, which is most of what made it read as one
   thing repeated. `.card`'s rectangle is still the only rectangle -- this
   simply stops being one. */
.tiles.nat{gap:0;opacity:.86;border-top:1px solid hsl(var(--border));
  border-bottom:1px solid hsl(var(--border))}
.tiles.nat .tile{flex-direction:row;align-items:baseline;gap:10px;
  min-height:0;padding:12px 16px 12px 0;border:0;border-radius:0;
  background:none;box-shadow:none}
.tiles.nat .tile span{min-height:0;flex:1;font-size:11px;font-weight:600;
  letter-spacing:.02em;text-transform:none}
/* Plain ink, deliberately: these are not the reader's numbers, and the
   colour on this screen is reserved for the ones that are. */
.tiles.nat .tile b{font-size:19px;margin-top:0;flex:none;
  color:hsl(var(--foreground))}

/* ---------- the exclusion-ground declaration ---------- */
.decl-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 20px;
  padding:12px 20px;border-top:1px solid hsl(var(--border));align-items:center}
/* The fold. Ten questions at three lines each is ~970px of statute above the
   evidence library this page is named after; once answered, it is finished
   permanently and does not need to be scrolled past ever again. */
.decl-fold{margin-bottom:24px}
.decl-fold > summary{display:flex;align-items:center;gap:14px;cursor:pointer;
  list-style:none;padding:14px 16px;border-radius:calc(var(--radius) * 1.5);
  border:1px solid hsl(var(--border));background:hsl(var(--card));
  box-shadow:var(--card-shadow,var(--shadow))}
.decl-fold > summary::-webkit-details-marker{display:none}

.decl-fold > summary:focus-visible{outline:2px solid hsl(var(--primary));
  outline-offset:2px}
.decl-sum{min-width:0;flex:1}
/* ⚠️ The CHILD `b`, not any descendant. `note` bolds the words "Ni znano"
   inside its own sentence -- that is the whole point of the sentence -- and
   `.decl-sum b` caught that too, so the summary rendered a 17px block-level
   "Ni znano" on its own line in the middle of a fine-print paragraph. */
.decl-sum > b{display:block;font-size:17px;letter-spacing:-.016em}
.decl-sum .fine{display:block;margin-top:4px}
.decl-fold > summary .fold-ico{width:16px;height:16px;flex:none;
  color:hsl(var(--muted-foreground));
  transition:transform .2s var(--ease-out)}
.decl-fold[open] > summary .fold-ico{transform:rotate(180deg)}
.decl-fold[open] > summary{border-bottom-left-radius:0;
  border-bottom-right-radius:0;margin-bottom:-1px}
.decl-fold > form{margin-top:0}
.decl-fold[open] .decl{border-top-left-radius:0;border-top-right-radius:0}
.decl-row:first-child{border-top:0}
.decl-q b{display:block;font-size:15px;letter-spacing:-.01em}
.decl-q span{display:block;font-size:13.5px;line-height:1.55;margin-top:4px;
  color:hsl(var(--muted-foreground))}
.decl-a{display:flex;gap:8px;flex:none}
.decl-opt{display:inline-flex;align-items:center;gap:8px;cursor:pointer;
  padding:10px 16px;border-radius:10px;font-size:15px;font-weight:600;
  border:1px solid hsl(var(--border));background:hsl(var(--card));
  min-width:74px;justify-content:center}
.decl-opt input{accent-color:hsl(var(--primary));margin:0}
.decl-opt.on{border-color:hsl(var(--ok));background:hsl(var(--ok) / .1);
  color:hsl(var(--ok))}
.decl-opt.bad.on{border-color:hsl(var(--warn));background:hsl(var(--warn) / .1);
  color:hsl(var(--warn))}
@media (max-width:640px){
  .decl-row{grid-template-columns:1fr}
  .decl-a{width:100%}
  .decl-opt{flex:1}
}

/* ---------- evidence library ---------- */
.ev-row{display:grid;grid-template-columns:1fr auto;gap:6px 16px;
  padding:14px 16px;border-top:1px solid hsl(var(--border));align-items:start}
.ev-row:first-child{border-top:0}
.ev-what{min-width:0}
.ev-what b{display:block;font-size:15px;font-weight:500;line-height:1.35;
  overflow-wrap:anywhere}
.ev-what .sub{display:block;margin-top:4px;font-size:13.5px;
  color:hsl(var(--muted-foreground));overflow-wrap:anywhere}
.ev-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.ev-side{display:flex;align-items:center;gap:10px;flex:none}
.ev-side .btn{padding:6px 12px;font-size:13.5px}
/* Expiry is the only thing on this screen that changes on its own, so it is
   the only thing allowed to shout. Shape as well as colour, same rule as the
   four states. */
.ev-when{display:inline-flex;align-items:center;gap:6px;font-size:13.5px;
  font-weight:600;padding:4px 10px;border-radius:999px;white-space:nowrap;
  background:hsl(var(--muted) / .8);color:hsl(var(--muted-foreground))}
/* Ink and weight since 2026-11-06, like every other date: lapsing soon is
   heavier, lapsed the heaviest (a lapsed paper is still the firm's to
   renew, so it is not muted the way a passed tender is). */
.ev-when.soon{background:hsl(var(--due-tint,var(--warn) / .13));
  color:hsl(var(--due-ink,var(--warn)));font-weight:var(--due-heavier,600)}
.ev-when.gone{background:hsl(var(--due-tint,var(--bad) / .13));
  color:hsl(var(--due-ink,var(--bad)));font-weight:var(--due-heavy,600)}
.ev-add{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;
  padding:16px}
/* A row's own form (`reference_edit` and its siblings): a word that opens
   it, then the add form's fields on a muted ground inside the row. */
.ev-edit{margin-top:8px}
.ev-edit > summary{display:inline-flex;align-items:center;min-height:32px;
  cursor:pointer;list-style:none;font-size:13.5px;font-weight:600;
  color:hsl(var(--primary))}
.ev-edit > summary::-webkit-details-marker{display:none}
.ev-edit[open] > summary{color:hsl(var(--foreground))}
.ev-change{margin-top:8px;padding:14px;border-radius:var(--radius);
  background:hsl(var(--muted) / .55)}
.ev-add .wide{grid-column:1/-1}
.ev-add label{display:block;font-size:13.5px;font-weight:600;
  margin-bottom:6px;color:hsl(var(--muted-foreground))}
.ev-add input,.ev-add select,.ev-add textarea{width:100%;font:inherit;
  font-size:15px;padding:10px 12px;border:1px solid hsl(var(--border));
  border-radius:var(--radius);background:hsl(var(--card));
  color:hsl(var(--foreground))}
.ev-add input:focus,.ev-add select:focus,.ev-add textarea:focus{
  outline:2px solid hsl(var(--primary));outline-offset:-1px}
.ev-add .tick{display:flex;align-items:center;gap:8px;font-size:15px;
  font-weight:400;color:hsl(var(--foreground))}
.ev-add .tick input{width:auto;accent-color:hsl(var(--primary))}
/* The code search draws its own box (`.cpv-box`), so the form's field rule
   above must not draw a second one inside it, nor a second focus ring. */
.ev-add .cpv-box input{border:0;border-radius:0;background:none;padding:12px 0}
.ev-add .cpv-box input:focus{outline:0}
@media (max-width:640px){
  .ev-add{grid-template-columns:minmax(0,1fr)}
  .ev-row{grid-template-columns:minmax(0,1fr)}
  .ev-side{justify-content:flex-start;flex-wrap:wrap}
  /* Beside the expiry pill the question wrapped and left "Obdrži" on a
     line of its own under it; asked, it takes the column's whole width. */
  .ev-side > .del.asking{flex-basis:100%}
  /* Stacked under the row, a ghost button's own padding set its word 11px
     in from everything above it, reported 2026-10-20 as misaligned. Only
     when it leads the line: after an expiry pill it keeps its gap. */
  .ev-side > .del:first-child > .btn-ghost{margin-left:-11px}
}
@media (pointer:coarse){
  .ev-add input,.ev-add select,.ev-add textarea{font-size:17px}
  .ev-edit > summary{min-height:44px}
}

/* ---------- intake status ---------- */
/* Same rectangle as every other section: this reuses `.row-list`, and only
   the inside of a row is new. */
.srow{display:grid;grid-template-columns:1fr auto auto 110px;gap:6px 20px;
  padding:14px 16px;border-top:1px solid hsl(var(--border));align-items:center}
.srow:first-child{border-top:0}
.s-what{min-width:0}
.s-what b{display:block;font-size:15px;font-weight:500;line-height:1.35}
.s-what span{display:block;margin-top:2px;font-size:13.5px;
  color:hsl(var(--muted-foreground));overflow-wrap:anywhere}
.s-what.wide{grid-column:span 1}
.s-num{text-align:right}
.s-num b{display:block;font-size:17px;font-variant-numeric:tabular-nums;
  letter-spacing:-.02em}
.s-num span{display:block;font-size:11px;text-transform:uppercase;
  letter-spacing:.08em;color:hsl(var(--muted-foreground))}
.s-state{text-align:right}
.st{display:inline-flex;align-items:center;gap:8px;font-size:13.5px;
  font-weight:600;color:hsl(var(--muted-foreground))}
.st i{width:8px;height:8px;border-radius:50%;flex:none;position:relative;
  background:hsl(var(--muted-foreground))}
.st-ok{color:hsl(var(--ok))}
.st-ok i{background:hsl(var(--ok))}
.st-degraded{color:hsl(var(--warn))}
.st-degraded i{background:transparent;box-shadow:inset 0 0 0 2px hsl(var(--warn))}
.st-broken{color:hsl(var(--bad))}
.st-broken i{background:hsl(var(--bad))}
.st-broken i::after{content:"";position:absolute;left:1px;right:1px;top:3px;
  height:2px;background:hsl(var(--card));border-radius:1px}
.st-unknown i{background:transparent;
  box-shadow:inset 0 0 0 2px hsl(var(--muted-foreground) / .6)}
@media (max-width:640px){
  .srow{grid-template-columns:1fr auto;gap:4px 12px}
  .s-what.wide{grid-column:1/-1}
}

/* ---------- saved searches ---------- */
/* The filter bar now carries two rows: what to find, then what to leave out
   and who to watch. Splitting them is not decoration -- an exclusion box
   sitting beside the search box reads as a second search box, and people
   type into it expecting more results. */
.filters .row2{display:flex;flex-wrap:wrap;gap:10px;width:100%;
  align-items:center;padding-top:2px}
.filters .row2 input{font:inherit;font-size:15px;padding:10px 12px;
  border:1px solid hsl(var(--border));border-radius:var(--radius);
  background:hsl(var(--card));color:hsl(var(--foreground));flex:1 1 200px;
  min-width:0}
.filters .row2 input:focus{outline:2px solid hsl(var(--primary));
  outline-offset:-1px}
.filters .row2 .lbl{font-size:13.5px;color:hsl(var(--muted-foreground));
  letter-spacing:.02em;white-space:nowrap}

.monitor{display:flex;gap:16px;align-items:flex-start;justify-content:space-between;
  flex-wrap:wrap}
.monitor .what{min-width:0;flex:1 1 320px}
.monitor h3{margin:0 0 4px;font-size:17px;letter-spacing:-.01em}
.monitor .crit{font-size:13.5px;color:hsl(var(--muted-foreground));
  overflow-wrap:anywhere}
.monitor .nums{display:flex;gap:20px;align-items:baseline;margin-top:10px}
.monitor .nums b{font-size:19px;font-variant-numeric:tabular-nums;
  letter-spacing:-.02em}
.monitor .nums span{font-size:13.5px;color:hsl(var(--muted-foreground));
  display:block}
.monitor .ops{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
/* The switch (`mail_switch`), drawn once here for Iskalniki, the agents and
   Spodbude's mail row: a track with a knob that slides. */
.sw{display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:0 6px;
  border:0;background:none;font:inherit;font-size:15px;font-weight:600;
  color:hsl(var(--foreground));cursor:pointer;
  transition:transform var(--t-quick,.16s) var(--spring,cubic-bezier(.2,.9,.3,1.4))}
.sw-track{flex:none;position:relative;width:46px;height:28px;border-radius:999px;
  background:hsl(var(--muted-foreground) / .35);
  transition:background var(--t-quick,.16s) ease}
.sw-track::before{content:"";position:absolute;top:3px;left:3px;width:22px;
  height:22px;border-radius:50%;background:#fff;
  box-shadow:0 1px 3px rgba(0,0,0,.25);
  transition:transform .22s var(--spring,cubic-bezier(.2,.9,.3,1.4))}
[aria-checked=true] > .sw-track{background:hsl(var(--action,var(--primary)))}
[aria-checked=true] > .sw-track::before{transform:translateX(18px)}
.monitor form{display:inline}
@media (max-width:560px){
  .monitor .ops{width:100%}
  .monitor .ops .btn{flex:1 1 auto}
}

/* ---------- pager ---------- */
.pager{display:flex;align-items:center;justify-content:center;gap:14px;
  margin-top:24px;flex-wrap:wrap}
.pg,.pg-off{display:inline-flex;align-items:center;min-height:40px;
  padding:0 14px;border-radius:var(--chip-radius,var(--radius));
  font-size:15px;font-weight:600;
  border:1px solid hsl(var(--border))}
.pg{color:hsl(var(--primary));background:hsl(var(--card))}

.pg-off{color:hsl(var(--muted-foreground));opacity:.5}
.pg-now{font-size:13.5px;color:hsl(var(--muted-foreground));
  font-variant-numeric:tabular-nums}
@media (pointer:coarse){.pg,.pg-off{min-height:44px}}
.skip-setup{font-size:15px;color:hsl(var(--muted-foreground));font-weight:500}
.skip-setup:hover{color:hsl(var(--primary))}

.confirm-strip{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;
  margin:0 0 20px;padding:12px 16px;border:1px solid hsl(var(--border));
  border-radius:var(--radius);background:hsl(var(--card));box-shadow:var(--shadow)}
.confirm-strip p{margin:0;flex:1 1 300px;font-size:15px;line-height:1.5}
.confirm-strip b{overflow-wrap:anywhere}
.confirm-strip form{margin:0}

/* ⚠️ On the column, never its blocks: each block holds its entrance's end
   state (`app-in`, `both`), and a held animation value beats any other
   declaration, so a block told to fade would not. */
/* ⚠️ FAST OUT OF THE GATE (measured 2026-11-08): the browser freezes the old
   page the moment the next one answers, a tenth of a second after the tap on
   a quick server, and an exit that eases in had barely begun by then. It
   moves at once and is all but gone in that tenth. */
html.leaving .content .container{transition:opacity .16s var(--ease-out),
  transform .2s var(--ease-out)}

/* The content slides toward the tab tapped, as a phone's own app does. A
   step deeper keeps the slide over it; the old page gives way at the tap. */
html.leaving[data-dir="r"] .content .container{opacity:0;transform:translateX(-4%)}
html.leaving[data-dir="l"] .content .container{opacity:0;transform:translateX(4%)}
html.leaving[data-dir="n"] .content .container{opacity:0}
html.leaving[data-dir="push"] .content .container{opacity:.55;transform:translateX(-5%)}
html:active-view-transition-type(tab)::view-transition-old(root){
  animation:mv-gone .14s var(--ease-in) both}
html:active-view-transition-type(tab)::view-transition-new(root){
  animation:mv-from-r .44s var(--ease-out) both}
html:active-view-transition-type(to-left)::view-transition-new(root){
  animation-name:mv-from-l}
html.vt .content .container > *{animation:none}
@keyframes mv-gone{to{opacity:0}}
@keyframes mv-from-r{from{opacity:0;transform:translateX(10%)}}
@keyframes mv-from-l{from{opacity:0;transform:translateX(-10%)}}
@media (prefers-reduced-motion:reduce){
  html.leaving .content .container{opacity:1 !important;transform:none !important;
    transition:none}
}

.cpv-opt[aria-selected="true"] .lb::after{content:"";display:inline-block;width:11px;height:11px;margin-left:8px;vertical-align:-1px;background:hsl(var(--primary));-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4.6%2012.4l4.9%204.9%209.9-10.8%22%2F%3E%3C%2Fsvg%3E") no-repeat center/contain;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4.6%2012.4l4.9%204.9%209.9-10.8%22%2F%3E%3C%2Fsvg%3E") no-repeat center/contain}

@media (hover:hover){
  .chip-sel button:hover{background:hsl(var(--pressed-foreground,var(--primary)) / .22)}
  .cpv-opt:hover{background:hsl(var(--primary) / .1)}
  .rail-group a:hover{text-decoration:none;color:hsl(var(--foreground)); background:hsl(var(--muted) / .55)}
  .rail-group a:hover .dot{background:hsl(var(--muted-foreground))}
  .rail-collapse:hover{background:hsl(var(--muted) / .55); color:hsl(var(--foreground))}
  a.sys:hover{text-decoration:none;color:hsl(var(--foreground)); border-color:hsl(var(--muted-foreground) / .5)}
  .to-site:hover{text-decoration:none;color:hsl(var(--foreground)); border-color:hsl(var(--border));background:hsl(var(--card))}
  a.tile:hover{text-decoration:none;border-color:hsl(var(--primary) / .5)}
  /* A background wash alone is very quiet on a list of thirty rows -- it was
     hard to tell which line the pointer was actually on. The inset rule is
     the same device the rail's active item uses, and it is NEUTRAL: a state
     colour here would be the fifth time this palette got borrowed as
     decoration. */
  .row:hover{text-decoration:none;background:hsl(var(--muted) / .55);
    box-shadow:inset 2px 0 0 hsl(var(--muted-foreground) / .5)}
  .row:hover .when{color:hsl(var(--foreground))}
  /* Same device as `.row` above -- the list is one surface now, so the
     row cannot have a border of its own to tint. */
  .trow:hover{text-decoration:none;background:hsl(var(--muted) / .55);
    box-shadow:inset 2px 0 0 hsl(var(--muted-foreground) / .5)}
  .saved-on:hover{border-color:hsl(var(--primary) / .7)}
  .dismiss:hover{color:hsl(var(--foreground)); border-color:hsl(var(--border));background:hsl(var(--card))}
  .btn-danger:hover{color:hsl(var(--bad)); border-color:hsl(var(--bad) / .4);background:hsl(var(--bad) / .07)}
  .doc-item:hover{text-decoration:none;background:hsl(var(--muted) / .45)}
  .decl-fold > summary:hover{border-color:hsl(var(--muted-foreground) / .45)}
  .pg:hover{text-decoration:none;border-color:hsl(var(--primary))}
}

.b-contact{list-style:none;margin:0;padding:0;display:grid;gap:6px;
  font-size:15px;line-height:1.5;overflow-wrap:anywhere}
.b-contact li{margin:0}
@media (max-width:899px) and (prefers-color-scheme: dark){
  :root:not([data-theme="light"]):not([data-look="prej"]) .main{--tw-sky:linear-gradient(to bottom,hsl(221 57% 12%) 0,hsl(221 57% 12% / 0) 110px) 0 0 / 100% 420px no-repeat,radial-gradient(140% 360px at 100% 0%,#1d3a66 0%,hsl(221 57% 12%) 55%,hsl(var(--background)) 100%) 0 0 / 100% 420px no-repeat,hsl(var(--background));background:var(--tw-sky)}
  :root:not([data-theme="light"]):not([data-look="prej"]) .main .topbar{background:var(--tw-sky)}
  :root:not([data-theme="light"]):not([data-look="prej"]) .main:has(.dn){--dn-sky:var(--tw-sky)}
}
@media (max-width:899px){
  :root[data-theme="dark"]:not([data-look="prej"]) .main{--tw-sky:linear-gradient(to bottom,hsl(221 57% 12%) 0,hsl(221 57% 12% / 0) 110px) 0 0 / 100% 420px no-repeat,radial-gradient(140% 360px at 100% 0%,#1d3a66 0%,hsl(221 57% 12%) 55%,hsl(var(--background)) 100%) 0 0 / 100% 420px no-repeat,hsl(var(--background));background:var(--tw-sky)}
  :root[data-theme="dark"]:not([data-look="prej"]) .main .topbar{background:var(--tw-sky)}
  :root[data-theme="dark"]:not([data-look="prej"]) .main:has(.dn){--dn-sky:var(--tw-sky)}
}

/* 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 walkthrough ---------- */
.tour-hero{padding:48px 0 10px}
.tour-hero .tour-eyebrow{font-size:13.5px;letter-spacing:.14em;text-transform:uppercase;
  color:hsl(var(--muted-foreground));font-weight:600}
.tour-hero h1{font-size:clamp(30px,5vw,48px);line-height:1.15;margin:12px 0 0;
  max-width:18ch;letter-spacing:-.015em}
.tour-hero .tour-lede{margin-top:20px;max-width:62ch;font-size:17px;line-height:1.65;
  color:hsl(var(--muted-foreground))}
.tour-note{margin-top:24px;max-width:62ch}

.tour-layout{display:grid;grid-template-columns:224px minmax(0,1fr);gap:40px;
  align-items:start;padding:32px 0 64px}
.tour-idx{position:sticky;top:92px}
.tour-idx h2{font-size:11px;letter-spacing:.13em;text-transform:uppercase;
  color:hsl(var(--muted-foreground));font-weight:600;margin:0 0 8px}
.tour-idx ol+h2{margin-top:24px}
.tour-idx ol{list-style:none;margin:0;padding:0;display:flex;
  flex-direction:column;gap:2px}
/* `font-family:inherit` for the same reason as `.tour-skip` below: this is a
   `<button>` without `.btn`, so Chrome's UA Arial stood. Nine of them plus
   the nine `<i>` numerals inside, which is why `/predstavitev` was the last
   screen in the product with any non-Inter text on it. */
.tour-idx button{width:100%;display:flex;gap:10px;align-items:baseline;text-align:left;
  cursor:pointer;background:none;border:0;padding:8px 10px;border-radius:7px;
  font-family:inherit;
  line-height:1.35;color:hsl(var(--muted-foreground));font-size:15px;
  transition:background .18s ease,color .18s ease}
/* ⚠️ Gated. A touch screen has no hover so it fakes one: tapping a step
   applies :hover and LEAVES it applied, so the index would show two
   highlighted steps -- the one you tapped and the one aria-current marks --
   in a list whose whole job is saying where you are. */
@media (hover:hover){
  .tour-idx button:hover{background:hsl(var(--muted));color:hsl(var(--foreground))}
}
.tour-idx button[aria-current="true"]{background:hsl(var(--primary)/.1);
  color:hsl(var(--foreground));font-weight:600}
.tour-idx button i{font-style:normal;font-variant-numeric:tabular-nums;
  opacity:.65;flex:none;width:14px}

/* ⚠️ The header is sticky, so a jump to #korak-... lands the step's own
   heading UNDERNEATH it. `scroll-margin-top` fixes the browser's native
   anchor jump as well as the scripted one, which a JS offset cannot. */
.tour-step{display:none;scroll-margin-top:96px}
.tour-step[data-on]{display:block;
  animation:tour-rise .34s cubic-bezier(.22,.7,.3,1) both}
@keyframes tour-rise{
  from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.tour-head{display:flex;gap:12px;align-items:baseline;flex-wrap:wrap}
.tour-step h2{font-size:clamp(22px,3.2vw,30px);line-height:1.2;
  margin:4px 0 0;max-width:24ch}
.tour-step .tour-lead{margin-top:10px;max-width:64ch;color:hsl(var(--muted-foreground))}
.tour-r{font-family:var(--font-mono);font-size:.9em;
  background:hsl(var(--muted));border:1px solid hsl(var(--border));
  padding:1px 6px;border-radius:5px;white-space:nowrap}

/* the frame. A browser, drawn quietly: the point is what is inside it. */
.tour-frame{margin-top:24px;border:1px solid hsl(var(--border));border-radius:12px;
  overflow:hidden;background:hsl(var(--background));box-shadow:var(--shadow-lg)}
.tour-chrome{display:flex;align-items:center;gap:10px;padding:10px 12px;
  background:hsl(var(--muted));border-bottom:1px solid hsl(var(--border))}
.tour-chrome span{flex:1;min-width:0;
  font-family:var(--font-mono);
  font-size:11px;color:hsl(var(--muted-foreground));background:hsl(var(--card));
  border:1px solid hsl(var(--border));border-radius:99px;padding:4px 12px;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tour-chrome i{width:9px;height:9px;border-radius:99px;
  background:hsl(var(--border));flex:none}
.tour-glass{overflow-x:auto;padding:20px}
/* Measured at 390px: the frame is 373 wide onto 640 of screen, and the
   page body itself does not scroll (375 = 375). The screen scrolling
   inside its own frame is the right arrangement; a reader with no
   scrollbar has no way to know it, so say so where it is true. */
.tour-swipe{display:none}
.tour-screen{min-width:600px}
.tour-screen h1{font-size:26px;line-height:1.25;margin:0 0 4px}
.tour-h{font-size:15px;margin:0 0 6px}
.tour-gap{margin-top:16px}
.tour-p{margin-top:10px}
.tour-ctx{margin-top:10px;opacity:.85}
.tour-when{display:flex;gap:10px;align-items:center;margin-bottom:8px}
.tour-tags{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}

/* profile */
.tour-cpvs{display:flex;flex-direction:column;gap:8px;margin-top:10px}
.tour-cpv{display:flex;gap:10px;align-items:baseline;cursor:pointer}
.tour-cpv span{display:flex;gap:10px;align-items:baseline;flex-wrap:wrap}
.tour-cpv b{font-variant-numeric:tabular-nums}

/* declaration */
.tour-decl{padding:14px 16px}
.tour-decl summary{cursor:pointer;display:flex;gap:10px;align-items:baseline;
  flex-wrap:wrap;justify-content:space-between}
.tour-qs{margin-top:12px;display:flex;flex-direction:column}
.tour-q{display:flex;gap:14px;align-items:flex-start;justify-content:space-between;
  padding:10px 0;border-top:1px solid hsl(var(--border))}
.tour-q b{display:block}
.tour-q .fine{display:block}
.tour-ans{flex:none;font-size:13.5px;font-weight:600;padding:4px 10px;
  border-radius:99px;
  border:1px solid hsl(var(--border));background:hsl(var(--muted))}
.tour-ans.on{color:hsl(var(--warn));border-color:hsl(var(--warn)/.4)}
.tour-ans.none{color:hsl(var(--muted-foreground));font-weight:500}

/* ladder */
.tour-ladder summary{cursor:pointer}
.tour-rungs{margin:10px 0 0;padding:0 0 0 4px;list-style:none;
  display:flex;flex-direction:column;gap:4px;font-size:15px}
.tour-rungs b{font-variant-numeric:tabular-nums;color:hsl(var(--muted-foreground))}

/* documents */
.tour-docs{display:grid;grid-template-columns:270px minmax(0,1fr);gap:14px}
.tour-doclist{overflow:hidden}
.tour-docpane h3{font-size:15px;margin:16px 0 6px}
.tour-docpane p{margin:0 0 8px;line-height:1.6}
.tour-table{width:100%;border-collapse:collapse;font-size:15px;margin:8px 0 4px}
.tour-table th,.tour-table td{border:1px solid hsl(var(--border));padding:8px 10px;
  text-align:left;vertical-align:top}
.tour-table th{background:hsl(var(--muted));font-weight:600}

/* monitors */
.tour-mon{display:flex;gap:16px;align-items:flex-start;justify-content:space-between;
  flex-wrap:wrap}
.tour-mon-side{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.tour-url{font-family:var(--font-mono);
  word-break:break-all;margin-top:4px}

/* the mail, in its own document */
.tour-mail{background:hsl(var(--muted));border-radius:10px;padding:10px;min-width:600px}
.tour-mail iframe{width:100%;height:620px;border:0;border-radius:6px;background:#fff;
  display:block}

/* notes */
.tour-notes{margin-top:20px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;list-style:none;padding:0}
.tour-notes li{display:flex;gap:12px;padding:14px 16px;background:hsl(var(--card));
  border:1px solid hsl(var(--border));border-radius:9px;line-height:1.55;font-size:15px}
.tour-notes b{color:hsl(var(--foreground))}
.tour-notes i{flex:none;width:19px;height:19px;border-radius:99px;margin-top:2px;
  background:hsl(var(--primary));color:hsl(var(--primary-foreground));
  font-style:normal;font-size:11px;font-weight:600;display:grid;place-items:center;
  font-variant-numeric:tabular-nums}

.tour-nav{display:flex;align-items:center;gap:12px;margin-top:24px;padding-top:20px;
  border-top:1px solid hsl(var(--border))}
.tour-nav .tour-count{margin-left:auto;font-variant-numeric:tabular-nums;
  color:hsl(var(--muted-foreground));font-size:13.5px}

.tour-key{display:flex;gap:8px;flex-wrap:wrap;margin-top:20px}
.tour-key span{display:inline-flex;align-items:center;gap:6px;font-size:13.5px;
  font-weight:600;padding:6px 12px;border-radius:99px;background:hsl(var(--card));
  border:1px solid hsl(var(--border))}
.tour-key svg{width:13px;height:13px}
.tour-key .ok svg{color:hsl(var(--ok))}
.tour-key .warn svg{color:hsl(var(--warn))}
.tour-key .bad svg{color:hsl(var(--bad))}
.tour-key .mute svg{color:hsl(var(--muted-foreground))}

@media (max-width:980px){
  .tour-layout{grid-template-columns:minmax(0,1fr);gap:20px}
  .tour-idx{position:static}
  .tour-idx ol{flex-direction:row;overflow-x:auto;gap:6px;padding-bottom:6px}
  .tour-idx button{width:auto;white-space:nowrap;border:1px solid hsl(var(--border))}
  .tour-notes{grid-template-columns:minmax(0,1fr)}
  .tour-docs{grid-template-columns:minmax(0,1fr)}
  .tour-swipe{display:block;margin-top:8px}
}
@media (prefers-reduced-motion:reduce){
  .tour-step[data-on]{animation:none}
}
