
.pw-head{max-width:660px;margin-bottom:20px}
.pw-head h1{font-size:26px;line-height:1.25;letter-spacing:-.02em}
.pw-head p{margin-top:10px;font-size:17px;line-height:1.65;
  color:hsl(var(--muted-foreground))}
.pw-bar{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:24px}

.pw-doc{margin-bottom:24px}
.pw-doc h2{font-size:17px;letter-spacing:-.01em}
.pw-basis{font-size:13.5px;color:hsl(var(--muted-foreground));margin-top:4px}
.pw-tbl{width:100%;border-collapse:collapse;margin-top:12px;font-size:15px}
.pw-tbl th{text-align:left;font-weight:650;font-size:13.5px;text-transform:uppercase;
  letter-spacing:.02em;color:hsl(var(--muted-foreground));
  border-bottom:1px solid hsl(var(--border));padding:0 10px 8px 0}
.pw-tbl td{padding:8px 10px 8px 0;border-bottom:1px solid hsl(var(--border));
  vertical-align:top;line-height:1.5}
.pw-note{margin-top:10px;font-size:13.5px;line-height:1.6;
  color:hsl(var(--muted-foreground))}

/* The declaration is incomplete, said in ink rather than by a glyph the
   reader's operating system draws. Clay is ACT_FIRST and the meaning matches
   exactly -- something to do BEFORE signing, not a failure -- which is the
   same argument `.pw-gap` below makes for the same colour. Bordered on all
   sides rather than on the left, because this one is about the whole paper
   and `.pw-gap` is about a list of fields inside it.
   ⚠️ It must survive PRINTING: `print-color-adjust` keeps the fill, and the
   border and the bold ink carry it even in a printer that drops colour
   entirely. A warning that vanishes on paper is worse than none, on a page
   whose entire purpose is to be printed and signed. */
.pw-warn{margin-top:12px;padding:10px 14px;border-radius:9px;
  border:1px solid hsl(var(--warn));background:hsl(var(--warn) / .1);
  color:hsl(var(--warn));font-size:15px;font-weight:600;line-height:1.55;
  -webkit-print-color-adjust:exact;print-color-adjust:exact}

/* ⚠️ Clay, the ACT_FIRST colour, because an unfilled field is something to do
   before signing -- not a failure, and not decoration. This is the fifth time
   the palette has been reached for; here the meaning genuinely matches. */
.pw-gap{margin-top:12px;border-left:3px solid hsl(var(--warn));
  padding:10px 12px;background:hsl(var(--background));border-radius:var(--radius);
  font-size:13.5px;line-height:1.6}
.pw-gap b{display:block;margin-bottom:4px}

.pw-sign{margin-top:20px;display:flex;gap:40px;font-size:13.5px;
  color:hsl(var(--muted-foreground))}
.pw-sign div{flex:1;border-top:1px solid hsl(var(--border));padding-top:6px}
.pw-legal{margin-top:24px;font-size:13.5px;line-height:1.65;
  color:hsl(var(--muted-foreground));max-width:640px}

@media print{
  /* The chrome is not part of the document. */
  .rail, .topbar, .tabbar, .to-top, .cop-open, .cop-wrap, .pw-bar,
  .hm-top, .skip { display:none !important }
  .app-wrap, .content { display:block !important; padding:0 !important;
    margin:0 !important }
  .container{max-width:none !important;padding:0 !important}
  body{background:#fff !important;color:#000 !important}
  .card{border:0 !important;box-shadow:none !important;padding:0 !important}
  .pw-doc{page-break-inside:avoid;margin-bottom:32px}
  .pw-tbl th,.pw-tbl td{border-color:#999 !important;color:#000 !important}
  /* A scroll container prints only what is inside its box. */
  .scroll-x{overflow:visible !important}
  .pw-gap{border-left-color:#000 !important}
  /* Black ink and a black rule, so the incompleteness warning survives a
     printer that drops colour entirely. The tinted fill is kept by
     `print-color-adjust` where there IS colour; neither is relied on. */
  .pw-warn{border-color:#000 !important;color:#000 !important}
  a[href]:after{content:"" !important}
}

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

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

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

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

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