
/* Narrow cards, because letting one run to 1120px would put the picture and the
   name at opposite ends of a very wide card with nothing between them. On a wide
   window one such column sat against the menu with the rest of the window empty
   (the owner, 2026-11-03), so there it becomes two. Stacked they keep the reading
   order this page always had. */
.acct{max-width:620px}
.acct-col + .acct-col{margin-top:16px}
@media (min-width:1100px){
  .acct{max-width:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px;align-items:start}
  .acct-col + .acct-col{margin-top:0}
  .acct-col > :first-child{margin-top:0}
}
.acct-id{display:flex;gap:20px;align-items:center;flex-wrap:wrap}
/* The frame, at the one size this page draws it. `.avi` itself is sized by
   the caller so the topbar can draw the same thing at 28px. */
.acct-pic{width:96px;height:96px;border-radius:50%;overflow:hidden;flex:none;
  background:hsl(var(--muted));display:grid;place-items:center}
.acct-pic img,.acct-pic svg{width:100%;height:100%;display:block;
  object-fit:cover;border-radius:50%}
.acct-who{min-width:0}
.acct-who b{display:block;font-size:19px;line-height:1.3;letter-spacing:-.01em}
/* ⚠️ `overflow-wrap` and not `nowrap`. An address is the one string on this
   page a reader may need to read character by character to check it, so it
   must never be truncated with an ellipsis -- and some of them genuinely do
   not fit a phone. */
.acct-who span{display:block;margin-top:4px;font-size:15px;line-height:1.5;
  color:hsl(var(--muted-foreground));overflow-wrap:anywhere}
.acct-note{margin:6px 0 0;font-size:13.5px;line-height:1.5;
  color:hsl(var(--muted-foreground))}
.acct-pick{display:flex;gap:10px;align-items:center;flex-wrap:wrap;
  margin-top:16px}
/* A file input renders as an unstyleable OS control that matches nothing else
   on the page, so the real one is hidden and its own <label> is the button.
   The label is still the input's label, so a click and a keyboard both reach
   it and no script is involved. */
.acct-file{position:absolute;width:1px;height:1px;opacity:0;
  pointer-events:none}
.acct-file:focus-visible + label{outline:2px solid hsl(var(--primary));
  outline-offset:2px}
/* ⚠️ `nowrap`. "Izberite sliko" is two words and `.btn` is an inline-flex
   with a gap, so the icon took enough of the line to break the label in half
   and the button rendered two lines tall beside a one-line one next to it --
   the ragged-row defect `tender_card`'s one-action rule exists to prevent,
   arriving in a button. Same reason `.tag` needed it. */
.acct-pick label{cursor:pointer;white-space:nowrap}
/* The two ways out, on one row: back to the public site, and sign out. Space
   between rather than a gap, because they are opposite acts and reading them
   as a pair of buttons would invite hitting the wrong one. */
.acct-out{margin-top:16px}
.acct-out-row{display:flex;align-items:center;justify-content:space-between;
  gap:16px;flex-wrap:wrap}
.acct-out form{margin:0}
/* Signing out everywhere sits under the plain sign-out, below a hairline:
   the same act made larger, and rarer, so it reads as the second line of the
   same card rather than as a third button beside the first two. */
.acct-all{margin-top:16px;padding-top:16px;border-top:1px solid hsl(var(--border))}
.acct-all .acct-note{margin-bottom:12px}

/* The two folded cards: the password, and the way out. Closed by default:
   nobody arrives here for either often, and an open destructive control
   above the settings someone did come for is one they can hit by accident. */
.acct-fold{margin-top:16px}
.acct-fold summary{cursor:pointer;list-style:none;font-size:15px;
  font-weight:600;color:hsl(var(--muted-foreground))}
.acct-fold summary::-webkit-details-marker{display:none}
.acct-fold[open] summary{margin-bottom:10px;
  color:hsl(var(--foreground))}
.acct-pw-note{margin-bottom:14px}
.acct-gone{margin:6px 0 10px 20px;line-height:1.7;list-style:disc}
.acct-del{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap;
  margin-top:12px}
.acct-del .field{margin:0;flex:1 1 220px}
.acct-hap{margin-top:16px}
.acct-theme{margin-top:16px;display:flex;align-items:center;
  justify-content:space-between;gap:12px}
.acct-theme b{font-size:15px}
.acct-hap[hidden]{display:none}
.acct-switch{display:flex;gap:12px;align-items:flex-start;cursor:pointer}
/* No size on the box: Safari draws `switch` as its own switch, and a size
   meant for a checkbox would squash it. The whole label is the target. */
.acct-switch input{margin:4px 0 0;flex:none;
  accent-color:hsl(var(--pressed,var(--primary)))}
.acct-switch b{display:block;font-size:15px;line-height:1.4}
.acct-switch:active{opacity:.6}
/* The devices that sign in without a password: one card, a row each, the
   remove button at the row's end as on every other list here. */
.acct-keys-card{margin-top:16px}
.acct-keys-title{display:block;font-size:15px;line-height:1.4}
.acct-keys-card .alert{margin:12px 0 0}
.acct-keys{margin:12px 0 0;padding:0;list-style:none}
.acct-key{display:flex;align-items:center;justify-content:space-between;
  gap:12px;flex-wrap:wrap;padding:12px 0;border-top:1px solid hsl(var(--border))}
.acct-key-what{min-width:0}
.acct-key-what b{display:block;font-size:15px;line-height:1.4}
.acct-key-what .acct-note{display:block;margin:2px 0 0}
.acct-key-add{margin-top:12px}
.acct-key-add [hidden]{display:none}
.acct-key-add .field{max-width:320px}
.acct-key-add .btn svg{width:18px;height:18px;flex:none}
.acct-views{display:flex;flex-wrap:wrap;align-items:center;gap:12px;
  justify-content:space-between}
/* »Prejšnji videz«: one button that says its state the way a switch does.
   A real submit posting the EXACT look it sets (`routes_app.account_look`),
   so it needs no script; `aria-pressed` carries the state, and the knob
   draws it. Ink when on, like every pressed control (`--pressed`). */
.acct-look + .acct-views{margin-top:16px}
.acct-look button{display:flex;align-items:center;gap:12px;width:100%;
  min-height:44px;padding:0;border:0;background:none;font:inherit;
  color:inherit;text-align:left;cursor:pointer}
.acct-look button b{font-size:15px;line-height:1.4}
.acct-look button:active{opacity:.6}
.acct-knob{position:relative;flex:none;width:38px;height:22px;
  border-radius:999px;border:1px solid hsl(var(--border));
  background:hsl(var(--muted));
  transition:background var(--t-quick) var(--ease),
    border-color var(--t-quick) var(--ease)}
.acct-knob::after{content:"";position:absolute;top:2px;left:2px;width:16px;
  height:16px;border-radius:50%;background:hsl(var(--card));
  box-shadow:0 1px 2px hsl(var(--foreground) / .2);
  transition:transform var(--t-quick) var(--ease)}
.acct-look [aria-pressed="true"] .acct-knob{
  background:hsl(var(--pressed,var(--primary)));
  border-color:hsl(var(--pressed,var(--primary)))}
.acct-look [aria-pressed="true"] .acct-knob::after{transform:translateX(16px)}
.acct-links{display:flex;flex-wrap:wrap;align-items:center;gap:8px 20px;
  margin:16px 0;font-size:15px}

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