/* Zavanto components. Requires tokens.css. Plain CSS classes, prefix zv-. */

/* Always show the scrollbar, so a page that scrolls and one that does not have the same width and the layout does
   not jump sideways when you switch between them (e.g. Dela and Hämta in SecureShare). Not scrollbar-gutter:
   that leaves an empty strip beside the header and footer. Overlay scrollbars (macOS, phones) are unaffected. */
html { overflow-y: scroll; }
body { margin: 0; font-family: var(--font-sans); background: var(--surface); color: var(--ink); font-size: 15px; line-height: 22px; }

/* Focus */
.zv-btn:focus-visible, .zv-input:focus, .zv-chip:focus-visible, .zv-stepper button:focus-visible, .zv-check input:focus-visible, .zv-dropzone:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Button */
.zv-btn { font: inherit; font-size: 16px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: var(--touch-min); padding: 0 var(--space-5); border-radius: var(--radius-sm); border: 1px solid var(--line-control); background: transparent; color: var(--ink); cursor: pointer; }
.zv-btn svg { width: 18px; height: 18px; }
.zv-btn-primary { min-height: var(--control-lg); padding: 0 30px; font-size: 17px; font-weight: 700; background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.zv-btn-ghost { border-color: transparent; color: var(--accent-ink); text-decoration: underline; padding: 0 var(--space-1); }
.zv-btn-done { border-color: var(--success); background: var(--success-soft); color: var(--success); }
.zv-btn:disabled { opacity: .5; cursor: not-allowed; }
.zv-btn:not(.zv-btn-primary):not(:disabled):hover { color: var(--ink); border-color: var(--ink-muted); }
.zv-btn-primary:not(:disabled):hover { color: var(--on-accent); filter: brightness(1.08); }
.zv-btn-ghost:hover { color: var(--ink); border-color: transparent; }

/* Field */
.zv-field { display: flex; flex-direction: column; gap: var(--space-2); }
.zv-label { font-size: 16px; line-height: 22px; font-weight: 600; }
.zv-label .zv-opt { font-weight: 400; color: var(--ink-muted); }
.zv-input { font: inherit; font-size: 15px; box-sizing: border-box; width: 100%; height: var(--control-md); padding: 0 14px; background: var(--surface-field); border: 1px solid var(--line-control); border-radius: var(--radius-sm); color: var(--ink); }
textarea.zv-input { height: auto; padding: 12px 14px; resize: vertical; }
.zv-input-mono { font-family: var(--font-mono); }
.zv-input::placeholder { color: var(--ink-muted); }
.zv-hint { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.zv-hint-warning { color: var(--warning); }
.zv-hint-error { color: var(--danger); }
.zv-input[aria-invalid="true"] { border-color: var(--danger); }

/* Checkbox option */
.zv-check { display: flex; align-items: flex-start; gap: var(--space-3); padding: 14px var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-field); cursor: pointer; }
.zv-check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); flex: 0 0 auto; }
.zv-check-text { display: flex; flex-direction: column; gap: var(--space-1); }
.zv-check-title { font-size: 15px; font-weight: 600; }

/* Card */
.zv-card { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-5); }
.zv-card-title { margin: 0; display: flex; align-items: center; gap: var(--space-3); font-size: 21px; line-height: 28px; font-weight: 700; }
.zv-step { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: var(--radius-full); background: var(--accent-soft); color: var(--accent-ink); font-size: 14px; font-weight: 700; flex: 0 0 auto; }

/* Notice */
.zv-notice { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-4) var(--space-5); border-radius: var(--radius-md); border: 1px solid; }
.zv-notice svg { width: 22px; height: 22px; flex: 0 0 auto; }
.zv-notice-text { display: flex; flex-direction: column; gap: var(--space-1); }
.zv-notice strong { font-size: 16px; }
.zv-notice-warning { background: var(--warning-soft); border-color: var(--warning-line); color: var(--warning); }
.zv-notice-warning .zv-notice-body { color: var(--ink); }
.zv-notice-success { background: var(--success-soft); border-color: var(--success); color: var(--success); }
.zv-notice-success .zv-notice-body { color: var(--ink); }
.zv-notice-danger { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); }
.zv-notice-danger .zv-notice-body { color: var(--ink); }

/* Choice chips */
.zv-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.zv-chip { font: inherit; font-size: 15px; font-weight: 500; min-height: var(--touch-min); padding: 0 var(--space-4); border-radius: var(--radius-full); border: 1px solid var(--line-control); background: var(--surface-field); color: var(--ink); cursor: pointer; }
.zv-chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); font-weight: 700; }

/* Stepper */
.zv-stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-control); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-field); }
.zv-stepper button { font: inherit; width: var(--control-md); height: var(--control-md); border: none; background: var(--surface-raised); color: var(--ink); font-size: 20px; cursor: pointer; }
.zv-stepper output { min-width: 56px; text-align: center; font-size: 17px; font-weight: 700; }

/* Dropzone + file list */
.zv-dropzone { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; padding: 26px var(--space-5); border: 2px dashed var(--line-control); border-radius: var(--radius-md); background: var(--surface-field); cursor: pointer; }
.zv-dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.zv-dropzone-icon { display: inline-flex; align-items: center; justify-content: center; width: var(--touch-min); height: var(--touch-min); border-radius: var(--radius-full); background: var(--accent-soft); color: var(--accent-ink); }
.zv-dropzone strong { font-size: 16px; }
.zv-dropzone .zv-link { color: var(--accent-ink); text-decoration: underline; }
.zv-files { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.zv-file { display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 14px; background: var(--surface-field); border-bottom: 1px solid var(--line); }
.zv-file:last-child { border-bottom: none; }
.zv-file-type { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent-ink); font-size: 11px; font-weight: 700; flex: 0 0 auto; }
.zv-file-meta { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.zv-file-name { font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zv-file-size { font-size: 13px; color: var(--ink-muted); }
.zv-icon-btn { font: inherit; display: inline-flex; align-items: center; justify-content: center; width: var(--touch-min); height: var(--touch-min); border: none; background: transparent; border-radius: var(--radius-sm); color: var(--ink-muted); cursor: pointer; }

/* App header */
.zv-header { background: var(--chrome); border-bottom: 1px solid var(--chrome-line); }
.zv-header-inner { max-width: var(--page-max); margin: 0 auto; box-sizing: border-box; padding: var(--space-3) var(--space-5); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); }
.zv-brand { display: flex; align-items: center; gap: 14px; color: var(--on-chrome); text-decoration: none; }
.zv-brand-divider { width: 1px; height: 22px; background: var(--chrome-line); }
.zv-product { display: flex; align-items: center; gap: var(--space-2); font-size: 18px; font-weight: 700; }
.zv-logo { display: block; width: 100px; height: 20px; }
.zv-nav { display: flex; align-items: center; gap: var(--space-1); }
.zv-nav a { display: flex; align-items: center; min-height: var(--touch-min); padding: 0 var(--space-4); border-radius: var(--radius-sm); color: var(--on-chrome-muted); font-weight: 600; text-decoration: none; }
.zv-nav a[aria-current="page"] { background: var(--chrome-active); color: var(--on-chrome); }
.zv-nav a:hover, .zv-nav .zv-icon-btn:hover { background: var(--chrome-active); color: var(--on-chrome); }
/* Language link: a globe and the other language's name, last in the menu before the theme button */
.zv-nav a.zv-lang { gap: 6px; padding: 0 var(--space-3); }
.zv-nav a.zv-lang svg { width: 18px; height: 18px; flex: 0 0 auto; }
.zv-brand:hover { color: var(--on-chrome); }
/* Two links in an app's header: the wordmark leads to the portal, the app's icon and name to the app's home page. */
.zv-brand a { display: flex; align-items: center; color: var(--on-chrome); text-decoration: none; border-radius: var(--radius-sm); }
.zv-brand a:hover { color: var(--on-chrome); }
/* Focus on graphite: accent is too dark against the light theme's chrome (2.8:1); focus-on-chrome is 8:1 and more. */
.zv-header a:focus-visible, .zv-header button:focus-visible, .zv-chrome-hero a:focus-visible, .zv-chrome-hero button:focus-visible { outline: 2px solid var(--focus-on-chrome); outline-offset: 2px; }
/* Skip to content: first in the header, shown only when it has focus (the first Tab). */
.zv-skip { position: absolute; left: var(--space-3); top: var(--space-3); z-index: 1000; transform: translateY(-200%); padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); background: var(--surface-raised); color: var(--ink); font-weight: 700; text-decoration: none; box-shadow: var(--shadow-md); }
.zv-skip:focus { transform: none; }
.zv-header .zv-skip:focus-visible { outline: 2px solid var(--focus-on-chrome); outline-offset: 2px; }
main:focus { outline: none; }

/* Logo on page surfaces (footer etc.): black in light, white in dark */
.zv-logo-on-light { display: block; }
.zv-logo-on-dark { display: none; }
[data-theme="dark"] .zv-logo-on-light { display: none; }
[data-theme="dark"] .zv-logo-on-dark { display: block; }
.zv-nav .zv-icon-btn { color: var(--on-chrome-muted); }
/* The app's icon in the header is a 30 px tile with an 18 px icon (AppIcon's own sizes start at 36 px). */
.zv-product .zv-app-icon { width: 30px; height: 30px; border-radius: 8px; }
.zv-product .zv-app-icon svg { width: 18px; height: 18px; }
/* Narrow phones: the wordmark, the app's icon and the longest app name in content/apps.json fit on one row at 320 px.
   The brand and the name may shrink, and the name breaks inside the word only as a last resort (large system text),
   so the header never makes the page scroll sideways. The menu wraps under the brand. See AppHeader.md. */
.zv-brand, .zv-product { min-width: 0; }
.zv-product { overflow-wrap: anywhere; }
@media (max-width: 400px) {
  .zv-header-inner { padding-left: var(--space-4); padding-right: var(--space-4); }
  .zv-brand { gap: var(--space-2); }
  .zv-header .zv-logo { width: 80px; height: 16px; }
  .zv-product { font-size: 15px; }
  .zv-nav { flex-wrap: wrap; justify-content: flex-end; gap: 0; }
  .zv-nav a { padding: 0 var(--space-3); }
}
@media (max-width: 340px) {
  .zv-brand { gap: 6px; }
  .zv-header .zv-logo { width: 72px; height: 14.4px; }
}

/* Disclosure: collapsed settings row showing current defaults */
.zv-disclosure { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.zv-disclosure-head { margin: 0; }
.zv-disclosure-toggle { font: inherit; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 14px; padding: 22px var(--space-6); border: none; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.zv-disclosure-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
.zv-disclosure-text { flex: 1 1 auto; display: flex; flex-direction: column; gap: var(--space-1); }
.zv-disclosure-title { font-size: 18px; font-weight: 700; }
.zv-disclosure-summary { font-size: 14px; color: var(--ink-muted); }
.zv-disclosure-action { font-size: 14px; font-weight: 600; color: var(--accent-ink); }
.zv-disclosure-chevron { width: 20px; height: 20px; color: var(--accent-ink); transition: transform .15s; }
.zv-disclosure-toggle[aria-expanded="true"] .zv-disclosure-chevron { transform: rotate(180deg); }
.zv-disclosure-panel { padding: var(--space-5) var(--space-6) var(--space-6); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 22px; }

/* Confirmation header */
.zv-done { display: flex; gap: var(--space-4); align-items: flex-start; }
.zv-done-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: var(--radius-full); background: var(--success-soft); color: var(--success); flex: 0 0 auto; }
.zv-done-title { margin: 0; font-size: 32px; line-height: 1.15; font-weight: 700; }
.zv-done-lead { margin: 6px 0 0; font-size: 17px; line-height: 1.5; color: var(--ink-muted); }

/* LinkCopy */
.zv-linkcopy { display: flex; flex-wrap: wrap; gap: 10px; }
.zv-linkcopy .zv-input { flex: 1 1 360px; min-width: 0; height: var(--control-lg); font-family: var(--font-mono); font-size: 14px; text-overflow: ellipsis; }

/* Summary facts */
.zv-facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--space-4); }
.zv-facts dt { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-muted); }
.zv-facts dd { margin: var(--space-1) 0 0; font-size: 16px; font-weight: 600; }

/* EmptyState */
.zv-empty { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 32px var(--space-6); display: flex; gap: var(--space-4); align-items: flex-start; }
.zv-empty-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: var(--radius-full); background: var(--surface-sunken); color: var(--ink-muted); flex: 0 0 auto; }
.zv-empty-body { display: flex; flex-direction: column; gap: var(--space-3); }
.zv-empty-title { margin: 0; font-size: 24px; font-weight: 700; }
.zv-empty-body p, .zv-empty-body ul { margin: 0; font-size: 15px; line-height: 1.5; }
.zv-empty-body ul { padding-left: var(--space-5); }

/* Promo */
.zv-promo { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding: 22px var(--space-5); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-raised); }
.zv-promo-icon { display: inline-flex; align-items: center; justify-content: center; width: var(--touch-min); height: var(--touch-min); border-radius: var(--radius-full); background: var(--accent-soft); color: var(--accent-ink); flex: 0 0 auto; }
.zv-promo-text { flex: 1 1 300px; display: flex; flex-direction: column; gap: var(--space-1); }
.zv-promo-title { margin: 0; font-size: 17px; font-weight: 700; }
.zv-promo-text p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-muted); }

/* Footer */
.zv-footer { border-top: 1px solid var(--line); background: var(--surface-sunken); }
.zv-footer-inner { max-width: var(--page-max); margin: 0 auto; box-sizing: border-box; padding: var(--space-7) var(--space-5) var(--space-5); display: flex; flex-direction: column; gap: var(--space-6); }
.zv-footer-row { display: flex; flex-wrap: wrap; gap: var(--space-6); justify-content: space-between; align-items: flex-start; }
.zv-footer-about { flex: 1 1 320px; display: flex; flex-direction: column; gap: var(--space-3); }
.zv-footer-about p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-muted); }
.zv-footer-about a { color: var(--accent-ink); font-weight: 600; }
.zv-footer-apps { flex: 0 1 300px; display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-5); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-field); }
.zv-footer-apps strong { font-size: 16px; }
.zv-footer-apps span { font-size: 14px; line-height: 1.5; color: var(--ink-muted); }
.zv-footer-apps .zv-btn { justify-content: space-between; padding: 0 var(--space-4); font-size: 15px; text-decoration: none; }
/* Footer v2: the shared links (content/footer.json) in one row between the top row and the legal line; wraps on narrow screens. */
.zv-footer-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 var(--space-5); }
.zv-footer-links a { display: inline-flex; align-items: center; min-height: var(--touch-min); font-size: 14px; font-weight: 600; color: var(--ink-muted); text-decoration: none; }
.zv-footer-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.zv-footer-links a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
.zv-footer-legal { margin: 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-muted); }
.zv-footer-legal a { color: var(--ink-muted); }
.zv-footer .zv-logo { width: 110px; height: 22px; }

/* ---------- Landing page ---------- */
.zv-section { max-width: var(--page-max); margin: 0 auto; box-sizing: border-box; padding: 0 var(--space-5); display: flex; flex-direction: column; gap: 32px; }
.zv-section-head { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.zv-heading { margin: 0; font-size: 30px; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
.zv-section-lead { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink-muted); }

/* Hero */
.zv-hero { max-width: var(--page-max); margin: 0 auto; box-sizing: border-box; padding: 0 var(--space-5); display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.zv-hero-text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.zv-hero-title { margin: 0; font-size: 48px; line-height: 1.08; font-weight: 800; letter-spacing: -0.02em; }
/* A long word in the heading ("Lösenordsgenerator:", "personuppgifter") is hyphenated or broken where it does not fit,
   instead of making the page scroll sideways: with a wide system font (DejaVu Sans on Linux) or larger text it is
   wider than a 320 px phone leaves. */
.zv-hero-title, .zv-chrome-hero-title { overflow-wrap: break-word; hyphens: auto; }
.zv-hero-lead { margin: 0; font-size: 19px; line-height: 1.6; color: var(--ink-muted); max-width: 560px; }
.zv-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-5); }
.zv-hero-actions a:not(.zv-btn) { color: var(--accent-ink); font-weight: 600; }
.zv-trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2) 22px; font-size: 14px; font-weight: 600; }
.zv-trust li { display: flex; align-items: center; gap: var(--space-2); }
.zv-trust svg { color: var(--success); width: 16px; height: 16px; flex: 0 0 auto; }
.zv-hero-visual { flex: 1 1 360px; min-width: 0; max-width: 460px; display: flex; flex-direction: column; gap: 14px; padding: var(--space-5); border-radius: var(--radius-lg); background: var(--surface-sunken); border: 1px solid var(--line); }
@media (max-width: 600px) {
  .zv-hero-title { font-size: 36px; }
  /* On phones the visual is only its first element, without the frame, so the steps stay close to the call to action. */
  .zv-hero { gap: var(--space-6); }
  .zv-hero-visual { padding: 0; background: none; border: none; border-radius: 0; max-width: none; }
  .zv-hero-visual > :not(:first-child) { display: none; }
}

/* Steps */
.zv-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 32px; }
.zv-steps li { flex: 1 1 220px; display: flex; flex-direction: column; gap: 10px; }
.zv-steps-num { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--radius-full); background: var(--accent); color: var(--on-accent); font-size: 16px; font-weight: 700; }
.zv-steps h3 { margin: 0; font-size: 18px; font-weight: 700; }
.zv-steps p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-muted); }

/* Feature grid */
.zv-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: var(--space-5); }
.zv-feature { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 26px; display: flex; flex-direction: column; gap: var(--space-3); }
.zv-feature-icon { display: inline-flex; align-items: center; justify-content: center; width: var(--touch-min); height: var(--touch-min); border-radius: var(--radius-full); background: var(--accent-soft); color: var(--accent-ink); }
.zv-feature h3 { margin: 0; font-size: 19px; font-weight: 700; }
.zv-feature p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-muted); }

/* Comparison */
.zv-compare { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 36px; display: flex; flex-direction: column; gap: var(--space-5); }
.zv-compare-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: var(--space-6); }
.zv-compare h3 { margin: 0 0 var(--space-3); font-size: 17px; font-weight: 700; color: var(--ink-muted); }
.zv-compare .zv-compare-ours h3 { color: var(--accent-ink); }
.zv-compare ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.5; }
.zv-compare li { display: flex; gap: 10px; }
.zv-compare li svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 3px; color: var(--danger); }
.zv-compare .zv-compare-ours li svg { color: var(--success); }

/* FAQ */
.zv-faq { border-top: 1px solid var(--line); }
.zv-faq details { border-bottom: 1px solid var(--line); }
.zv-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: var(--touch-min); padding: 18px var(--space-1); font-size: 17px; font-weight: 600; }
.zv-faq summary::-webkit-details-marker { display: none; }
.zv-faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.zv-faq summary svg { width: 20px; height: 20px; flex: 0 0 auto; color: var(--accent-ink); transition: transform .15s; }
.zv-faq details[open] summary svg { transform: rotate(180deg); }
.zv-faq p { margin: 0; padding: 0 var(--space-1) var(--space-5); font-size: 15px; line-height: 1.6; color: var(--ink-muted); max-width: 720px; }

/* CTA band */
.zv-cta { border-radius: var(--radius-lg); background: var(--chrome); color: var(--on-chrome); padding: 44px 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.zv-cta h2 { margin: 0; font-size: 28px; line-height: 1.2; font-weight: 700; }
.zv-cta p { margin: var(--space-2) 0 0; font-size: 16px; line-height: 1.6; color: var(--on-chrome-muted); max-width: 560px; }
.zv-cta { border: 1px solid var(--sheet-line); }

/* ---------- App portal ---------- */

/* ChromeHero: hero in graphite that continues from the header */
.zv-header-merged { background: var(--chrome-raised); border-bottom-color: var(--chrome-raised); }
.zv-chrome-hero { background: var(--chrome-raised); color: var(--on-chrome); }
.zv-chrome-hero-inner { max-width: var(--page-max); margin: 0 auto; box-sizing: border-box; padding: 56px var(--space-5) 152px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 48px; }
.zv-chrome-hero-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.zv-chrome-hero-title { margin: 0; font-size: clamp(34px, 3vw + 14px, 46px); line-height: 1.08; font-weight: 800; letter-spacing: -0.02em; color: var(--on-chrome); text-wrap: balance; }
.zv-chrome-hero-lead { margin: 0; font-size: 19px; line-height: 1.6; color: var(--on-chrome-muted); max-width: 560px; }
.zv-chrome-hero .zv-label { color: var(--on-chrome); }
.zv-chrome-hero .zv-trust li { color: var(--on-chrome-muted); }
.zv-chrome-hero .zv-trust svg { color: var(--on-chrome); }
.zv-hero-search { position: relative; max-width: 540px; }
.zv-hero-search .zv-input { height: 54px; padding: 0 52px 0 46px; font-size: 16px; background: var(--hero-field); border-color: var(--hero-field-line); color: var(--ink); }
.zv-hero-search .zv-input::-webkit-search-cancel-button { display: none; }
/* While the field is empty the clear button is hidden: the room kept for it goes to the placeholder, so a short example fits on a 320 px phone. */
.zv-hero-search .zv-input:placeholder-shown { padding-left: 42px; padding-right: 12px; }
.zv-hero-search-icon { position: absolute; left: 15px; top: 17px; width: 20px; height: 20px; color: var(--ink-muted); pointer-events: none; }
.zv-hero-search-clear { position: absolute; right: 5px; top: 5px; width: var(--touch-min); height: var(--touch-min); border: none; border-radius: var(--radius-sm); background: transparent; color: var(--ink-muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.zv-hero-search-clear:hover { color: var(--ink); }
.zv-hero-search-clear:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* IconCluster: the whole suite as decoration in the hero */
.zv-icon-cluster { display: grid; grid-template-columns: repeat(5, 56px); gap: 14px; padding-bottom: 16px; flex: 0 0 auto; }
.zv-icon-cluster .zv-app-icon:nth-child(5n+2), .zv-icon-cluster .zv-app-icon:nth-child(5n+4) { transform: translateY(16px); }
@media (max-width: 900px) { .zv-icon-cluster { display: none; } }

/* Sheet: a surface that overlaps the hero */
.zv-sheet-wrap { margin-top: -104px; position: relative; }
.zv-sheet { background: var(--surface); border: 1px solid var(--sheet-line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 36px; box-shadow: var(--shadow-lg); }
@media (max-width: 600px) { .zv-sheet { padding: var(--space-4); } }

/* AppIcon: filled tile in the app's category colour */
.zv-app-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: var(--cat-share); color: #ffffff; flex: 0 0 auto; box-shadow: var(--tile-ring); }
.zv-app-icon svg { width: 26px; height: 26px; }
.zv-app-icon-sm { width: 36px; height: 36px; border-radius: 10px; }
.zv-app-icon-sm svg { width: 18px; height: 18px; }
.zv-app-icon-lg { width: 56px; height: 56px; border-radius: 15px; }
.zv-cat-share { background: var(--cat-share); }
.zv-cat-fraud { background: var(--cat-fraud); }
.zv-cat-protect { background: var(--cat-protect); }
.zv-cat-service { background: var(--cat-service); }
.zv-chrome-hero .zv-cat-service { background: var(--cat-service-on-chrome); }

/* GroupHeader: group title with category dot and count */
.zv-group { display: flex; flex-direction: column; gap: 14px; }
.zv-group-head { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; }
/* The heading itself holds only the dot and the name; the count stands next to it, outside the heading. */
.zv-group-title { margin: 0; display: flex; align-items: center; gap: 10px; font-size: inherit; font-weight: inherit; }
.zv-group-dot { width: 10px; height: 10px; border-radius: var(--radius-full); flex: 0 0 auto; background: var(--cat-share); }
.zv-group-dot.zv-cat-fraud { background: var(--cat-fraud); }
.zv-group-dot.zv-cat-protect { background: var(--cat-protect); }
.zv-group-dot.zv-cat-service { background: var(--cat-service); }
.zv-group-count { font-weight: 500; color: var(--ink-muted); }

/* AppTile: the clickable card for one app */
.zv-app-grid { width: 100%; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); gap: var(--space-4); }
.zv-app-tile { text-decoration: none; color: var(--ink); background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 20px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-sm); transition: box-shadow .15s, transform .15s, border-color .15s, background-color .15s; }
.zv-app-tile:hover { color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-control); background: var(--card-hover); }
.zv-app-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.zv-app-tile-text { display: flex; flex-direction: column; gap: var(--space-1); }
.zv-app-tile-name { font-size: 13px; line-height: 18px; font-weight: 700; letter-spacing: .02em; color: var(--ink-muted); }
.zv-app-tile-desc { font-size: 16px; line-height: 23px; font-weight: 600; color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .zv-app-tile { transition: none; } .zv-app-tile:hover { transform: none; } }

/* Band: full-width tinted section, e.g. services in the portal */
.zv-band { background: var(--surface-sunken); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: var(--space-8) 0; }

.zv-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Tool header and tool shell (AppHeader.md, "Verktygsläge"): only for a mode you work in, never a start page.
   The shell fills the window exactly and never scrolls; only the work area's own panes scroll. */
html:has(.zv-tool-shell) { overflow: hidden; }
body:has(> .zv-tool-shell) { overflow: hidden; }
.zv-tool-shell { height: 100vh; height: 100dvh; overflow: hidden; display: flex; flex-direction: column; background: var(--surface); }
.zv-tool-main { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.zv-tool-status { flex: 0 0 auto; box-sizing: border-box; height: 28px; display: flex; align-items: center; gap: var(--space-2); padding: 0 var(--space-4); background: var(--surface-sunken); border-top: 1px solid var(--line); color: var(--ink-muted); font-size: 12px; line-height: 16px; white-space: nowrap; overflow: hidden; }
.zv-tool-status svg { width: 14px; height: 14px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.zv-tool-status-end { margin-left: auto; }
.zv-tool-status > span { overflow: hidden; text-overflow: ellipsis; }

/* Safe area (AppHeader.md, "Installerad app"): with viewport-fit=cover an installed app on a phone draws under the
   status bar, the notch and the home indicator. The tool row's graphite goes all the way up, the bottom row keeps
   clear of the home indicator, and in landscape both sides keep clear of the notch. Where the insets are 0 (a
   computer, Safari with its toolbar) nothing changes. The insets are variables so that a test can set them. */
:root { --zv-safe-top: env(safe-area-inset-top, 0px); --zv-safe-right: env(safe-area-inset-right, 0px); --zv-safe-bottom: env(safe-area-inset-bottom, 0px); --zv-safe-left: env(safe-area-inset-left, 0px); }
.zv-header-tool { padding-top: var(--zv-safe-top); }
.zv-tool-main { padding-left: var(--zv-safe-left); padding-right: var(--zv-safe-right); }
.zv-tool-status { height: calc(28px + var(--zv-safe-bottom)); padding: 0 calc(var(--space-4) + var(--zv-safe-right)) var(--zv-safe-bottom) calc(var(--space-4) + var(--zv-safe-left)); }
/* The app's own row at the bottom on a phone (a copy or check button): its padding goes in --zv-tool-safe-pad. */
.zv-tool-safe-bottom { padding-bottom: calc(var(--zv-tool-safe-pad, 0px) + var(--zv-safe-bottom)); }

.zv-header-tool { flex: 0 0 auto; border-bottom: none; position: relative; }
.zv-tool-bar { box-sizing: border-box; height: 44px; display: flex; align-items: center; gap: var(--space-4); padding: 0 calc(var(--space-3) + var(--zv-safe-right)) 0 calc(var(--space-4) + var(--zv-safe-left)); }
.zv-header-tool .zv-brand { gap: var(--space-3); flex: 0 1 auto; }
.zv-header-tool .zv-logo { width: 70px; height: 14px; }
.zv-header-tool .zv-brand-divider { height: 20px; }
.zv-header-tool .zv-product { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; }
.zv-header-tool .zv-product .zv-app-icon { width: 26px; height: 26px; border-radius: 7px; flex: 0 0 auto; }
.zv-header-tool .zv-product .zv-app-icon svg { width: 16px; height: 16px; }

/* The app's modes in the middle: a segmented button group (tabs or toggle buttons). */
.zv-tool-modes { margin: 0 auto; display: flex; gap: 2px; padding: 3px; border-radius: var(--radius-sm); background: var(--chrome-active); }
.zv-tool-modes button { font: inherit; font-size: 13px; line-height: 16px; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 14px; border: 0; border-radius: 6px; background: transparent; color: var(--on-chrome-muted); cursor: pointer; white-space: nowrap; }
.zv-tool-modes button svg { width: 15px; height: 15px; }
.zv-tool-modes button:hover { color: var(--on-chrome); }
.zv-tool-modes button[aria-selected="true"], .zv-tool-modes button[aria-pressed="true"], .zv-tool-modes button[aria-current="page"] { background: var(--on-chrome); color: var(--chrome); font-weight: 600; }
.zv-tool-modes-select { display: none; font: inherit; font-size: 13px; height: 34px; min-width: 0; padding: 0 var(--space-2); border: 1px solid var(--chrome-line); border-radius: var(--radius-sm); background: var(--chrome-active); color: var(--on-chrome); }
.zv-tool-modes-select:focus-visible { outline: 2px solid var(--focus-on-chrome); outline-offset: 2px; }

/* The app's buttons on the right, then the more menu. */
.zv-tool-actions { display: flex; align-items: center; gap: var(--space-1); flex: 0 0 auto; }
.zv-tool-btn { font: inherit; font-size: 13px; line-height: 16px; display: inline-flex; align-items: center; gap: 6px; height: 32px; min-width: 32px; justify-content: center; box-sizing: border-box; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; color: var(--on-chrome-muted); text-decoration: none; cursor: pointer; white-space: nowrap; }
.zv-tool-btn svg, .zv-tool-more svg { width: 16px; height: 16px; flex: 0 0 auto; }
.zv-tool-btn:hover, .zv-tool-more:hover, .zv-tool-more[aria-expanded="true"] { background: var(--chrome-active); color: var(--on-chrome); }
a.zv-tool-btn { color: var(--on-chrome); }
.zv-tool-icon { padding: 0; width: 32px; }
.zv-tool-more { font: inherit; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--on-chrome-muted); cursor: pointer; }
.zv-tool-more .zv-tool-more-narrow { display: none; }

/* The more menu: a popover (Escape and a click outside close it, the focus goes back to the button). */
.zv-tool-menu { position: fixed; inset: auto; top: calc(44px + var(--zv-safe-top)); right: calc(var(--space-3) + var(--zv-safe-right)); margin: 0; min-width: 240px; max-width: calc(100vw - 2 * var(--space-3)); max-height: calc(100dvh - 56px); overflow: auto; box-sizing: border-box; padding: var(--space-2); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-raised); color: var(--ink); box-shadow: var(--shadow-md); font-size: 14px; line-height: 20px; }
.zv-tool-menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.zv-tool-menu a, .zv-tool-menu button { font: inherit; display: flex; align-items: center; gap: var(--space-2); width: 100%; box-sizing: border-box; min-height: 40px; padding: 0 var(--space-3); border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--ink); text-align: left; text-decoration: none; cursor: pointer; }
.zv-tool-menu a:hover, .zv-tool-menu button:hover { background: var(--surface-sunken); }
.zv-tool-menu a:focus-visible, .zv-tool-menu button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.zv-tool-menu svg { width: 16px; height: 16px; flex: 0 0 auto; }
.zv-tool-menu-narrow { display: none; }
.zv-tool-menu .zv-logo { width: 80px; height: 16px; }

@media (max-width: 719.98px) {
  .zv-tool-bar { height: 48px; gap: var(--space-2); padding: 0 calc(var(--space-1) + var(--zv-safe-right)) 0 calc(var(--space-3) + var(--zv-safe-left)); }
  .zv-header-tool .zv-brand > a:first-child, .zv-header-tool .zv-brand-divider, .zv-tool-modes, .zv-tool-actions { display: none; }
  .zv-header-tool .zv-brand { min-width: 0; flex: 0 1 auto; }
  .zv-tool-modes-select { display: block; margin-left: auto; flex: 0 1 auto; }
  .zv-tool-more { width: 44px; height: 44px; }
  .zv-tool-more svg { width: 20px; height: 20px; }
  .zv-tool-more .zv-tool-more-wide { display: none; }
  .zv-tool-more .zv-tool-more-narrow { display: block; }
  .zv-tool-menu { top: calc(48px + var(--zv-safe-top)); right: calc(var(--space-1) + var(--zv-safe-right)); }
  .zv-tool-menu-narrow { display: block; }
  .zv-tool-menu-narrow + ul { border-top: 1px solid var(--line); margin-top: var(--space-1); padding-top: var(--space-1); }
  .zv-tool-menu-narrow ul { border-top: none; margin: 0; padding: 0; }
  .zv-tool-menu-narrow .zv-tool-menu-portal { background: var(--chrome); border-radius: var(--radius-sm); margin-bottom: var(--space-1); }
  .zv-tool-menu-narrow .zv-tool-menu-portal:hover { background: var(--chrome-active); }
  .zv-tool-status { display: none; }
  /* With no status bar the bottom is the app's own button row (.zv-tool-safe-bottom) or, without one, the work area. */
  .zv-tool-main:not(:has(.zv-tool-safe-bottom)) { padding-bottom: var(--zv-safe-bottom); }
}

/* Focus header (AppHeader.md, "Fokusläge"): a longer flow done once, such as a test. The same 44 px and colours as the
   tool header: the app's icon and name, the progress in the middle and a way out on the right. No menu, no footer, and
   the page scrolls as usual. */
.zv-header-focus { border-bottom: none; }
.zv-focus-bar { box-sizing: border-box; height: 44px; display: flex; align-items: center; gap: var(--space-4); padding: 0 var(--space-3) 0 var(--space-4); }
.zv-header-focus .zv-product { flex: 0 1 auto; min-width: 0; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; color: var(--on-chrome); text-decoration: none; border-radius: var(--radius-sm); }
.zv-header-focus .zv-product .zv-app-icon { width: 26px; height: 26px; border-radius: 7px; flex: 0 0 auto; }
.zv-header-focus .zv-product .zv-app-icon svg { width: 16px; height: 16px; }
.zv-focus-progress { flex: 1 1 auto; min-width: 0; max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; gap: 5px; }
.zv-focus-progress-text { display: flex; gap: var(--space-2); min-width: 0; font-size: 12px; line-height: 16px; color: var(--on-chrome); white-space: nowrap; }
.zv-focus-progress-text > span { overflow: hidden; text-overflow: ellipsis; }
.zv-focus-progress-text > span:first-child { flex: 0 0 auto; font-weight: 600; }
.zv-focus-progress-area { color: var(--on-chrome-muted); }
.zv-progress { height: 4px; border-radius: var(--radius-full); background: var(--chrome-active); overflow: hidden; }
.zv-progress-fill { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--focus-on-chrome); }
.zv-focus-leave { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 6px; color: var(--on-chrome); font-size: 13px; line-height: 16px; text-decoration: none; white-space: nowrap; }
.zv-focus-leave svg { width: 16px; height: 16px; flex: 0 0 auto; }
.zv-focus-leave:hover { background: var(--chrome-active); color: var(--on-chrome); }
@media (max-width: 479.98px) {
  .zv-focus-bar { gap: var(--space-3); padding: 0 var(--space-1) 0 var(--space-3); }
  .zv-header-focus .zv-product .zv-focus-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .zv-focus-progress-area { display: none; }
  .zv-focus-leave { padding: 0 var(--space-2); }
}

/* The way into the work mode (Tip.md): the fixed Work mode button by the tool, always there, and the tip after a
   finished action that points it out. The tip is a row in the flow, never a popup, a toast or fixed. */
.zv-work-link { font: inherit; font-size: 14px; line-height: 18px; font-weight: 600; display: inline-flex; align-items: center; gap: var(--space-2); flex: 0 0 auto; box-sizing: border-box; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-control); border-radius: var(--radius-sm); background: var(--surface-raised); color: var(--ink); text-decoration: none; white-space: nowrap; }
.zv-work-link svg { width: 16px; height: 16px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.zv-work-link:hover { border-color: var(--ink-muted); color: var(--ink); }
.zv-work-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.zv-tip { display: flex; align-items: center; gap: var(--space-3); padding: 6px 6px 6px var(--space-4); border: 1px solid var(--tip-line); border-radius: 10px; background: var(--tip-surface); color: var(--ink); }
.zv-tip[hidden] { display: none; }
.zv-tip-icon { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.zv-tip-body { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: var(--space-3); }
.zv-tip-text { margin: 0; font-size: 14px; line-height: 1.4; color: var(--ink); }
.zv-tip-text strong { font-weight: 600; }
.zv-tip-link { margin-left: auto; flex: 0 0 auto; box-sizing: border-box; display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--accent); border-radius: 7px; color: var(--accent-ink); font-size: 14px; line-height: 18px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.zv-tip-link:hover { background: var(--surface-raised); color: var(--accent-ink); }
.zv-tip-close { flex: 0 0 auto; width: var(--touch-min); height: var(--touch-min); display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 7px; background: transparent; color: var(--ink-muted); cursor: pointer; }
.zv-tip-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.zv-tip-close:hover { color: var(--ink); background: var(--surface-raised); }
.zv-tip-link:focus-visible, .zv-tip-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 639.98px) {
  .zv-tip { align-items: flex-start; gap: 10px; padding: var(--space-3) var(--space-1) var(--space-3) var(--space-3); }
  .zv-tip-icon { margin-top: 2px; }
  .zv-tip-body { flex-direction: column; align-items: flex-start; gap: var(--space-2); }
  .zv-tip-link { margin-left: 0; min-height: var(--touch-min); white-space: normal; }
}

/* Save the work mode (Tip.md, "Spara som app"): a small dialog above the status bar on a computer, a sheet from the
   bottom on a phone. A real <dialog> opened with showModal(). */
.zv-tool-status a { color: var(--accent-ink); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; border-radius: 4px; }
.zv-tool-status a:hover { text-decoration: underline; }
.zv-tool-status a:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.zv-install { position: fixed; inset: auto calc(var(--space-4) + var(--zv-safe-right)) calc(40px + var(--zv-safe-bottom)) auto; margin: 0; box-sizing: border-box; width: 380px; max-width: calc(100vw - 2 * var(--space-4)); max-height: calc(100dvh - 100px); overflow: auto; padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-raised); color: var(--ink); box-shadow: var(--shadow-md); }
.zv-install[open] { display: flex; flex-direction: column; gap: var(--space-3); }
.zv-install::backdrop { background: transparent; }
.zv-install-head { display: flex; align-items: center; gap: var(--space-2); }
.zv-install-head h2 { margin: 0; font-size: 15px; line-height: 20px; font-weight: 600; }
.zv-install-close { margin-left: auto; flex: 0 0 auto; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 7px; background: transparent; color: var(--ink-muted); cursor: pointer; }
.zv-install-close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.zv-install-close:hover { background: var(--surface-sunken); color: var(--ink); }
.zv-install-close:focus-visible, .zv-install-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.zv-install-part { display: flex; flex-direction: column; gap: var(--space-1); }
.zv-install-part + .zv-install-part { padding-top: var(--space-3); border-top: 1px solid var(--line); }
.zv-install-part h3 { margin: 0; font-size: 14px; line-height: 20px; font-weight: 600; }
.zv-install-part p, .zv-install-part ol { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-muted); }
.zv-install-part ol { padding-left: 20px; color: var(--ink); }
.zv-install-part ol svg { width: 15px; height: 15px; vertical-align: -2px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.zv-install-button { font: inherit; align-self: flex-start; margin-top: 6px; display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 14px; border: 0; border-radius: 7px; background: var(--accent); color: var(--on-accent); font-size: 14px; font-weight: 600; cursor: pointer; }
.zv-install-button[hidden], .zv-install [hidden] { display: none; }
.zv-install-note { margin: 0; font-size: 12px; line-height: 1.5; color: var(--ink-muted); }
.zv-install-narrow, .zv-install-ios { display: none; }
.zv-install[data-zv-ios] .zv-install-ios { display: flex; }
.zv-install[data-zv-ios] [data-zv-install-fallback] { display: none; }
@media (max-width: 719.98px) {
  .zv-install { inset: auto 0 0 0; width: 100%; max-width: 100%; max-height: 90dvh; padding: var(--space-3) calc(var(--space-5) + var(--zv-safe-right)) calc(28px + var(--zv-safe-bottom)) calc(var(--space-5) + var(--zv-safe-left)); border: 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; box-shadow: var(--shadow-lg); }
  .zv-install[open] { gap: 14px; }
  .zv-install::before { content: ""; align-self: center; width: 40px; height: 4px; border-radius: 2px; background: var(--line-control); }
  .zv-install::backdrop { background: rgba(22, 25, 27, .45); }
  .zv-install-head h2 { font-size: 18px; line-height: 24px; }
  .zv-install-close { width: var(--touch-min); height: var(--touch-min); }
  .zv-install-wide, .zv-install-bookmark { display: none; }
  .zv-install-narrow { display: inline; }
  .zv-install-ios { display: flex; }
  .zv-install-part p { font-size: 14px; }
  .zv-install-part ol { font-size: 15px; line-height: 1.6; }
  .zv-install-button { align-self: stretch; min-height: 48px; border-radius: 10px; font-size: 15px; }
}
@media (display-mode: standalone) { [data-zv-install-open] { display: none !important; } }

/* A side panel in the work mode under 720 px (guidelines.md, "Arbetsläge"): not a box in the flow, but opened with a
   button in the header of the pane it belongs to (.zv-tool-pane-btn), as a sheet from the bottom (.zv-tool-sheet, a
   real <dialog>) with the same safe area as zv-install. */
.zv-tool-pane-btn { font: inherit; font-size: 13px; line-height: 16px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; box-sizing: border-box; min-height: 36px; padding: 0 var(--space-3); border: 1px solid var(--line-control); border-radius: 7px; background: var(--surface-raised); color: var(--ink); cursor: pointer; white-space: nowrap; }
.zv-tool-pane-btn svg { width: 16px; height: 16px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.zv-tool-pane-btn:hover:not(:disabled) { border-color: var(--ink-muted); }
.zv-tool-pane-btn:disabled { opacity: .5; cursor: not-allowed; }
.zv-tool-pane-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.zv-tool-sheet { position: fixed; inset: auto 0 0 0; margin: 0; box-sizing: border-box; width: 100%; max-width: 100%; max-height: 85dvh; overflow: hidden; padding: var(--space-3) calc(var(--space-5) + var(--zv-safe-right)) calc(var(--space-5) + var(--zv-safe-bottom)) calc(var(--space-5) + var(--zv-safe-left)); border: 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--surface-raised); color: var(--ink); box-shadow: var(--shadow-lg); }
.zv-tool-sheet[open] { display: flex; flex-direction: column; gap: var(--space-3); }
.zv-tool-sheet::before { content: ""; flex: 0 0 auto; align-self: center; width: 40px; height: 4px; border-radius: 2px; background: var(--line-control); }
.zv-tool-sheet::backdrop { background: rgba(22, 25, 27, .45); }
.zv-tool-sheet-head { flex: 0 0 auto; display: flex; align-items: center; gap: var(--space-2); }
.zv-tool-sheet-head h2 { margin: 0; font-size: 18px; line-height: 24px; font-weight: 600; }
.zv-tool-sheet-close { margin-left: auto; flex: 0 0 auto; width: var(--touch-min); height: var(--touch-min); display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 7px; background: transparent; color: var(--ink-muted); cursor: pointer; }
.zv-tool-sheet-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.zv-tool-sheet-close:hover { background: var(--surface-sunken); color: var(--ink); }
.zv-tool-sheet-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.zv-tool-sheet-body { flex: 1 1 auto; min-height: 0; overflow: auto; }
@media (min-width: 720px) {
  .zv-tool-sheet { inset: auto calc(var(--space-4) + var(--zv-safe-right)) calc(40px + var(--zv-safe-bottom)) auto; width: 380px; max-width: calc(100vw - 2 * var(--space-4)); max-height: calc(100dvh - 100px); padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-md); }
  .zv-tool-sheet::before { display: none; }
  .zv-tool-sheet::backdrop { background: transparent; }
}

/* The ordinary frame with viewport-fit=cover (AppHeader.md, "Installerad app"): in landscape on a phone with a notch the
   header, the sections and the footer keep clear of it. Where the insets are 0 nothing changes. */
.zv-header-inner, .zv-section, .zv-footer-inner { padding-left: max(var(--space-5), var(--zv-safe-left)); padding-right: max(var(--space-5), var(--zv-safe-right)); }
.zv-footer-inner { padding-bottom: max(var(--space-5), var(--zv-safe-bottom)); }
@media (max-width: 400px) { .zv-header-inner { padding-left: max(var(--space-4), var(--zv-safe-left)); padding-right: max(var(--space-4), var(--zv-safe-right)); } }
