
/* A rail down the left with a dot per event. The rail is what makes this
   read as one timeline rather than as a table of rows that happen to be in
   order; the dot carries the state, and it is deliberately NOT the four-state
   palette, which describes a requirement and not a backup job. */
.log-day{margin-top:24px}
.log-day:first-child{margin-top:6px}
.log-date{font-size:13.5px;font-weight:700;letter-spacing:.09em;
  text-transform:uppercase;color:hsl(var(--muted-foreground));
  padding:0 0 10px 2px}
.log-list{position:relative;padding-left:24px}
.log-list::before{content:"";position:absolute;left:6px;top:6px;bottom:6px;
  width:1px;background:hsl(var(--border))}
.log-row{position:relative;display:grid;grid-template-columns:58px 1fr;
  gap:14px;padding:10px 0;align-items:baseline}
.log-row::before{content:"";position:absolute;left:-23px;top:15px;width:9px;
  height:9px;border-radius:50%;background:hsl(var(--card));
  box-shadow:0 0 0 2px hsl(var(--border))}
.log-row.s-ok::before{box-shadow:0 0 0 2px hsl(var(--ok))}
.log-row.s-warn::before{box-shadow:0 0 0 2px hsl(var(--warn))}
.log-row.s-bad::before{background:hsl(var(--bad));
  box-shadow:0 0 0 2px hsl(var(--bad))}
.log-time{font-size:13.5px;color:hsl(var(--muted-foreground));
  font-variant-numeric:tabular-nums}
.log-what{min-width:0}
.log-what b{font-weight:600;font-size:15px;letter-spacing:-.01em}
.log-what a{color:inherit;text-decoration:none}
/* No hover underline; see theme.BASE. The row is the link. */
.log-what a:hover{color:hsl(var(--primary))}
.log-what .said{display:block;font-size:13.5px;line-height:1.55;
  color:hsl(var(--muted-foreground));margin-top:2px;overflow-wrap:anywhere}
.log-who{display:inline-block;font-size:11px;font-weight:600;
  border-radius:999px;padding:2px 8px;margin-right:8px;vertical-align:1px;
  background:hsl(var(--muted));color:hsl(var(--muted-foreground))}
.log-who.is-person{background:hsl(var(--primary)/.10);color:hsl(var(--primary))}

.scope{display:inline-flex;gap:4px;padding:4px;border-radius:999px;
  background:hsl(var(--muted));margin-left:auto}
/* ⚠️ LONGHANDS. `inherit` is not a valid font-family, and inside the `font:`
   SHORTHAND it makes the whole declaration invalid, so the browser drops the
   size and the weight with it. Measured on the rendered page: this asked for
   12.5px/600 and computed 16px/400. */
.scope a{font-weight:600;font-size:13.5px;line-height:1;
  color:hsl(var(--muted-foreground));
  padding:8px 14px;border-radius:999px;text-decoration:none;
  transition:transform .22s var(--spring,cubic-bezier(.2,.9,.3,1.4))}
/* A segment squeezes like a chip (`views.CSS`, the press for every control). */
.scope a:active{transform:scale(.95);transition-duration:var(--t-tap)}
.scope a.on{background:hsl(var(--card));color:hsl(var(--foreground));
  box-shadow:0 1px 3px hsl(var(--foreground)/.10)}

/* The search bar. One row on a desktop, stacked on a phone, and the field is
   16px because anything smaller makes iOS zoom the page in on focus and never
   zoom back out -- which reads as the site being broken rather than as a form
   bug. `theme.BASE` sets that floor for `input[type=search]` under
   `pointer:coarse`; this is the same rule stated where the control lives. */
.log-find{display:flex;gap:8px;align-items:center;flex-wrap:wrap;
  margin:0 0 20px}
.log-find input[type=search]{flex:1 1 320px;min-width:0;min-height:38px;
  padding:8px 14px;border-radius:9px;font-size:15px;
  border:1px solid hsl(var(--border));background:hsl(var(--card));
  color:hsl(var(--foreground))}
.log-find input[type=search]:focus-visible{outline:2px solid hsl(var(--primary));
  outline-offset:1px}

@media (max-width:640px){
  .log-row{grid-template-columns:1fr;gap:2px}
  .log-time{order:2;font-size:13.5px}
  .scope{margin:12px 0 0 0;width:100%}
  .scope a{flex:1;text-align:center}
  .log-find input[type=search]{flex:1 1 100%;font-size:17px}
}

/* ---------- 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}}
