/* ==========================================================================
   Workago – design system v3 "Montáž"
   Light, airy and precise: navy ink on a pale blue-grey ground, white cards
   with soft shadows, a real map of Central Europe. Workers get a warm soft
   orange, firms a royal blue; the audience switch animates every accent.
   One family: Archivo (variable weight + width), self-hosted.
   ========================================================================== */

/* ---------------------------------------------------------------- Fonts */
@font-face { font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url(../fonts/archivo-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url(../fonts/archivo-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* ---------------------------------------------------------------- Tokens */
@property --accent { syntax: "<color>"; inherits: true; initial-value: #f2762f; }
@property --accent-strong { syntax: "<color>"; inherits: true; initial-value: #e5631b; }
@property --accent-text { syntax: "<color>"; inherits: true; initial-value: #b64a12; }
@property --on-accent { syntax: "<color>"; inherits: true; initial-value: #ffffff; }
@property --accent-soft { syntax: "<color>"; inherits: true; initial-value: #fde6d8; }
@property --accent-tint { syntax: "<color>"; inherits: true; initial-value: #fff5ee; }

:root {
  /* surfaces */
  --bg: #f4f7fb;
  --bg-2: #eaf0f8;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --ink: #0f1d3a;
  --ink-2: #1e2b47;
  --ink-3: #35425e;
  --muted: #526079;
  --subtle: #636d83;
  --faint: #9aa3b6;
  --line: #e3e8f1;
  --line-2: #cfd7e4;
  --navy-tint: #eef2fa;

  /* audience accent – workers: warm soft orange (white text on it, owner's choice in round 5) */
  --accent: #f2762f;
  --accent-strong: #e5631b;
  --accent-text: #b64a12;
  --on-accent: #ffffff;
  --accent-soft: #fde6d8;
  --accent-tint: #fff5ee;
  --orange: #f2762f;
  --blue: #2453e6;

  --success: #16804f;
  --success-soft: #e2f4ea;
  --warning: #8f5400;
  --warning-soft: #fdf0d9;
  --danger: #c2361f;
  --danger-soft: #fce6e2;
  --info: #2453e6;
  --info-soft: #e6edfd;

  /* type */
  --f: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --t-display: clamp(2.25rem, 1.3rem + 2.7vw, 3.55rem);
  --t-h1: clamp(1.95rem, 1.35rem + 1.9vw, 3.05rem);
  --t-h2: clamp(1.6rem, 1.22rem + 1.2vw, 2.4rem);
  --t-h3: clamp(1.12rem, 1.04rem + .3vw, 1.32rem);
  --t-lead: clamp(1.04rem, .98rem + .3vw, 1.2rem);
  --t-small: .875rem;
  --t-label: .7rem;

  /* shape */
  --r-xs: 6px;
  --r-sm: 8px;
  --r: 12px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-ctl: 10px;
  --r-panel: 14px;
  --r-tag: 6px;

  --sh-1: 0 1px 2px rgba(15, 29, 58, .05);
  --sh-2: 0 1px 2px rgba(15, 29, 58, .04), 0 10px 28px -12px rgba(15, 29, 58, .16);
  --sh-3: 0 2px 6px rgba(15, 29, 58, .05), 0 22px 46px -16px rgba(15, 29, 58, .26);

  /* motion */
  --ease: cubic-bezier(.2, 0, 0, 1);
  --ease-io: cubic-bezier(.6, 0, .2, 1);
  --d-1: 160ms;
  --d-2: 280ms;
  --d-3: 520ms;

  --container: 1240px;
  --gutter: clamp(16px, 3.6vw, 40px);
  --header-h: 72px;

  /* fluid spacing – grows with the viewport like the type scale (phone → large monitor) */
  --grid-gap: clamp(16px, .6rem + .85vw, 30px);   /* between cards in grids and dashboards */
  --card-pad: clamp(18px, .75rem + .7vw, 28px);    /* inside cards, tiles and list items */
  --stack-gap: clamp(20px, .9rem + 1.15vw, 38px);    /* between blocks of one page section */
  --app-pad: clamp(18px, .5rem + 2.5vw, 60px);    /* account area: page padding */
  --app-max: clamp(1180px, 78vw, 1720px);          /* account area: content width on big monitors */

  color-scheme: light;
  accent-color: var(--accent);
  transition: --accent var(--d-3) var(--ease), --accent-strong var(--d-3) var(--ease), --accent-text var(--d-3) var(--ease),
    --on-accent var(--d-3) var(--ease), --accent-soft var(--d-3) var(--ease), --accent-tint var(--d-3) var(--ease);
}

/* firms: royal blue */
[data-aud="firms"], .aud-firms {
  --accent: #2453e6;
  --accent-strong: #1c44c8;
  --accent-text: #1f4bd8;
  --on-accent: #ffffff;
  --accent-soft: #e6edfd;
  --accent-tint: #f3f6ff;
}
.aud-workers {
  --accent: #f2762f;
  --accent-strong: #e5631b;
  --accent-text: #b64a12;
  --on-accent: #ffffff;
  --accent-soft: #fde6d8;
  --accent-tint: #fff5ee;
}

/* ---------------------------------------------------------------- Reset & browser surfaces */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--f);
  font-size: 1rem;
  line-height: 1.55;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  caret-color: var(--accent-strong);
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, h5, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
::selection { background: color-mix(in oklab, var(--accent) 30%, white); color: var(--ink); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
* { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: var(--faint); }
::-webkit-scrollbar-track { background: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 1000; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); }
.skip-link:focus { top: 12px; }

/* ---------------------------------------------------------------- Icons */
.i { width: 1.15em; height: 1.15em; flex: none; stroke-width: 1.8; display: inline-block; vertical-align: -0.18em; }
.i--sm { width: 16px; height: 16px; }
.i--lg { width: 24px; height: 24px; }
.i--xl { width: 32px; height: 32px; stroke-width: 1.5; }
.ico-tile { width: 44px; height: 44px; flex: none; border-radius: var(--r); display: grid; place-items: center; background: var(--accent-tint); color: var(--accent-text); border: 1px solid color-mix(in oklab, var(--accent) 16%, transparent); }
.ico-tile .i { width: 22px; height: 22px; }
.ico-tile--sm { width: 36px; height: 36px; border-radius: 10px; }
.ico-tile--sm .i { width: 18px; height: 18px; }
.ico-round { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--accent-tint); color: var(--accent-text); }
.ico-round .i { width: 20px; height: 20px; }

/* ---------------------------------------------------------------- Typography */
h1, h2, h3, .h1, .h2, .h3, .h4, .display {
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--ink);
  text-wrap: balance;
}
.display { font-size: var(--t-display); line-height: 1.02; letter-spacing: -0.036em; }
h1, .h1 { font-size: var(--t-h1); }
h2, .h2 { font-size: var(--t-h2); }
h3, .h3 { font-size: var(--t-h3); letter-spacing: -0.015em; line-height: 1.2; font-weight: 750; }
.h4 { font-size: 1.05rem; letter-spacing: -0.01em; line-height: 1.3; font-weight: 750; }
.lead { font-size: var(--t-lead); line-height: 1.6; color: var(--muted); max-width: 60ch; text-wrap: pretty; }
p { text-wrap: pretty; }
.muted { color: var(--muted); }
.subtle { color: var(--subtle); }
.small { font-size: var(--t-small); }
.xs { font-size: .78rem; }
.num, .tnum, .mono { font-variant-numeric: tabular-nums; }
.caps, .label-caps, .eyebrow { font-size: var(--t-label); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; line-height: 1.2; color: var(--subtle); }
.accent { color: var(--accent-text); }
.prose { max-width: 70ch; color: var(--ink-2); }
.prose > * + * { margin-top: .9em; }
.prose h2 { font-size: 1.45rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.15rem; margin-top: 1.5em; }
.prose ul { padding-left: 1.2em; list-style: disc; }
.prose ol { padding-left: 1.2em; list-style: decimal; }
.prose li + li { margin-top: .35em; }
.prose a { color: var(--accent-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose li::marker { color: var(--accent); }
.prose strong { font-weight: 650; color: var(--ink); }

/* ---------------------------------------------------------------- Layout */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(860px + var(--gutter) * 2); }
.container--tight { max-width: calc(560px + var(--gutter) * 2); }
.container--wide { max-width: calc(1440px + var(--gutter) * 2); }
.section { padding-block: clamp(60px, 7.5vw, 112px); position: relative; }
.section--sm { padding-block: clamp(44px, 5.4vw, 76px); }
.section--line { border-top: 1px solid var(--line); }
.section--panel { background: var(--surface); border-block: 1px solid var(--line); }
.section--first { padding-top: clamp(32px, 3.8vw, 56px); }
a.hero__status { transition: border-color var(--d-1), box-shadow var(--d-2) var(--ease); }
a.hero__status:hover { border-color: var(--line-2); box-shadow: var(--sh-2); }
.section-head { display: grid; gap: 10px; margin-bottom: clamp(24px, 3.2vw, 40px); max-width: 760px; }
.section-head p { color: var(--muted); max-width: 62ch; font-size: 1.04rem; }
.section-head--split { max-width: none; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 16px 40px; }
@media (max-width: 760px) { .section-head--split { grid-template-columns: minmax(0, 1fr); } }
.stack { display: flex; flex-direction: column; gap: var(--gap, 16px); }
.row { display: flex; align-items: center; gap: var(--gap, 12px); flex-wrap: wrap; }
.between { justify-content: space-between; }
.grid { display: grid; gap: var(--gap, 20px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1020px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }
.dark { background: var(--ink); color: #fff; --line: rgba(255, 255, 255, .12); --line-2: rgba(255, 255, 255, .22); --muted: rgba(255, 255, 255, .74); --subtle: rgba(255, 255, 255, .62); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-2); padding: clamp(22px, 3.2vw, 40px); }
.lift { position: relative; z-index: 4; margin-top: clamp(-64px, -5vw, -40px); }

/* ---------------------------------------------------------------- Buttons */
.btn {
  --btn-bg: var(--ink); --btn-fg: #fff; --btn-bd: var(--btn-bg);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 0 20px; border-radius: var(--r-ctl);
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bd);
  font-weight: 650; font-size: .95rem; letter-spacing: -0.005em; line-height: 1; white-space: nowrap;
  transition: background-color var(--d-1) var(--ease), color var(--d-1), border-color var(--d-1), box-shadow var(--d-2) var(--ease), transform var(--d-1) var(--ease);
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn:active { transform: translateY(1px); }
.btn .i { transition: transform var(--d-2) var(--ease); }
.btn:hover .i--move { transform: translateX(3px); }
.btn:hover .i--move-up { transform: translate(2px, -2px); }
.btn--ink:hover, .btn:not([class*="btn--"]):hover { --btn-bg: var(--ink-3); }
.btn--accent { --btn-bg: var(--accent); --btn-fg: var(--on-accent); box-shadow: 0 1px 2px rgba(15, 29, 58, .08), 0 8px 18px -10px color-mix(in oklab, var(--accent) 90%, transparent); }
.btn--accent:hover { --btn-bg: var(--accent-strong); box-shadow: 0 1px 2px rgba(15, 29, 58, .08), 0 12px 24px -10px color-mix(in oklab, var(--accent) 95%, transparent); }
.btn--outline { --btn-bg: var(--surface); --btn-fg: var(--ink); --btn-bd: var(--line-2); box-shadow: var(--sh-1); }
.btn--outline:hover { --btn-bd: var(--ink-3); }
.dark .btn--outline { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .3); box-shadow: none; }
.dark .btn--outline:hover { --btn-bd: #fff; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink-2); --btn-bd: transparent; padding-inline: 12px; }
.btn--ghost:hover { --btn-bg: color-mix(in oklab, var(--ink) 6%, transparent); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); }
.btn--light:hover { --btn-bg: var(--surface-2); }
.btn--soft { --btn-bg: var(--accent-tint); --btn-fg: var(--accent-text); --btn-bd: color-mix(in oklab, var(--accent) 22%, transparent); }
.btn--soft:hover { --btn-bg: var(--accent-soft); }
.btn--danger { --btn-bg: var(--danger); --btn-fg: #fff; }
.btn--danger-ghost { --btn-bg: transparent; --btn-fg: var(--danger); --btn-bd: color-mix(in oklab, var(--danger) 35%, transparent); }
.btn--danger-ghost:hover { --btn-bg: var(--danger-soft); }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: .875rem; gap: 7px; border-radius: 9px; }
.btn--xs { min-height: 30px; padding: 0 10px; font-size: .8rem; gap: 6px; border-radius: 7px; }
.btn--lg { min-height: 54px; padding: 0 26px; font-size: 1rem; border-radius: 12px; }
.btn--block { width: 100%; }
.btn--icon { width: 44px; min-height: 44px; padding: 0; }
.btn--icon.btn--sm { width: 38px; min-height: 38px; }
.btn--icon.btn--xs { width: 30px; }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }
.btn.is-loading { pointer-events: none; color: transparent; }
.btn.is-loading::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; border: 2px solid var(--btn-fg); border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 5px; transition: text-underline-offset var(--d-2) var(--ease), color var(--d-1); }
.link:hover { text-underline-offset: 3px; color: var(--accent-text); }
.link-quiet { color: var(--muted); text-decoration: underline; text-decoration-color: var(--line-2); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color var(--d-1), text-decoration-color var(--d-1); }
.link-quiet:hover { color: var(--ink); text-decoration-color: currentColor; }

/* ---------------------------------------------------------------- Logo */
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.42rem; letter-spacing: -0.045em; line-height: 1; color: var(--ink); }
.logo__mark { width: 34px; height: 34px; flex: none; margin-left: -3px; }
.logo__mark .m-w { stroke: currentColor; }
.logo__mark .m-tick { stroke: var(--accent); transition: stroke 200ms ease; }
.dark .logo { color: #fff; }

/* ---------------------------------------------------------------- Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in oklab, var(--surface) 92%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.site-header.is-scrolled { box-shadow: 0 8px 22px -18px rgba(15, 29, 58, .45); }
.site-header__bar { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-header__left { display: flex; align-items: center; gap: 28px; min-width: 0; }
.site-header__right { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.site-header__sep { width: 1px; height: 22px; background: var(--line); margin-inline: 8px; }
.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a { position: relative; white-space: nowrap; padding: 8px 12px; border-radius: 8px; font-size: .95rem; font-weight: 550; color: var(--ink-2); transition: background-color var(--d-1), color var(--d-1); }
.site-nav a:hover { background: var(--surface-2); color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 650; }
.site-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--accent); }
.nav-toggle { display: none; }
@media (max-width: 1440px) { .site-nav a { padding-inline: 9px; } .site-nav a[aria-current="page"]::after { left: 9px; right: 9px; } .site-header__left { gap: 20px; } }
@media (max-width: 1360px) {
  .site-nav, .site-header__right .hide-md { display: none; }
  .nav-toggle { display: inline-flex; }
}@media (max-width: 760px) {
  :root { --header-h: 62px; }
  .site-header__bar .aud-switch { display: none; }
  .site-header__right .hide-sm { display: none; }
}
.aud-strip { display: none; padding: 0 0 10px; }
@media (max-width: 760px) { .aud-strip { display: block; } .aud-strip .aud-switch { display: flex; width: 100%; } .aud-strip .aud-switch a { flex: 1; } }

/* Audience switch: rounded pill, the active side carries the accent */
.aud-switch { position: relative; display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); isolation: isolate; }
.aud-switch a {
  position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 18px; border-radius: 999px;
  font-size: .92rem; font-weight: 600; color: var(--muted); white-space: nowrap;
  transition: color var(--d-2) var(--ease);
}
.aud-switch a:hover { color: var(--ink); }
.aud-switch a .i { width: 18px; height: 18px; }
.aud-switch a[aria-current="true"] { color: var(--on-accent); }
.aud-switch__pill {
  position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; border-radius: 999px;
  background: var(--accent); box-shadow: 0 1px 2px rgba(15, 29, 58, .12), 0 6px 14px -8px color-mix(in oklab, var(--accent) 90%, transparent);
  width: var(--pill-w, 50%); transform: translateX(var(--pill-x, 0));
  transition: transform var(--d-3) var(--ease), width var(--d-3) var(--ease), background-color var(--d-3) var(--ease);
}
.no-js .aud-switch a[aria-current="true"] { background: var(--accent); }

/* Language menu (only SK live) */
.lang { position: relative; }
.lang > summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-size: .9rem; font-weight: 650; color: var(--ink-2); cursor: pointer; transition: border-color var(--d-1); }
.lang > summary::-webkit-details-marker { display: none; }
.lang > summary:hover { border-color: var(--line-2); }
.lang > summary .i { width: 16px; height: 16px; color: var(--subtle); }
.lang > summary .flag { width: 20px; height: 14px; }
.lang__menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 220px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-3); display: grid; gap: 2px; }
.lang[open] .lang__menu { animation: drop-in var(--d-2) var(--ease); }
.lang__item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; font-size: .9rem; color: var(--ink-2); }
.lang__item > .i { margin-left: auto; }
.lang__item[aria-current="true"] { background: var(--accent-tint); color: var(--ink); font-weight: 650; }
.lang__item[aria-disabled="true"] { color: var(--subtle); cursor: default; }
a.lang__item:hover { background: var(--surface-2); color: var(--ink); }
.lang__item small { margin-left: auto; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }
@keyframes drop-in { from { opacity: 0; transform: translateY(-4px); } }

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 300; pointer-events: none; } /* above chat bubble, cookie bar, toasts */
.drawer__scrim { position: absolute; inset: 0; background: rgba(15, 29, 58, .4); opacity: 0; transition: opacity var(--d-2); }
.drawer__panel:focus { outline: none; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(400px, 100%);
  background: var(--surface); padding: 16px var(--gutter) 28px; display: flex; flex-direction: column; gap: 24px;
  transform: translateX(100%); transition: transform var(--d-3) var(--ease); overflow-y: auto;
}
.drawer.is-open { pointer-events: auto; }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__nav { display: grid; }
.drawer__nav a { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.12rem; font-weight: 700; color: var(--ink); }
.drawer__nav a .i { color: var(--subtle); }

/* ---------------------------------------------------------------- Toasts */
.toasts { position: fixed; z-index: 120; right: 16px; top: calc(var(--header-h) + 12px); display: grid; gap: 8px; width: min(400px, calc(100% - 32px)); }
.toast {
  display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; border-radius: var(--r);
  background: var(--ink); color: #fff; box-shadow: var(--sh-3); font-size: .92rem; line-height: 1.45;
  animation: toast-in var(--d-3) var(--ease) both;
}
.toast .i { margin-top: 1px; }
.toast--success .i { color: #6fd8a3; }
.toast--error .i { color: #ff9a86; }
.toast--info .i { color: #9db5ff; }
.toast button { margin-left: auto; opacity: .65; color: inherit; }
.toast button:hover { opacity: 1; }
.toast.is-leaving { animation: toast-out var(--d-2) var(--ease-io) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(16px); } }

/* ---------------------------------------------------------------- Board (labelled card used across the app) */
.board { position: relative; display: grid; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); overflow: hidden; box-shadow: var(--sh-1); }
.board__band {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 40px; padding: 8px 16px;
  background: var(--accent-tint); color: var(--accent-text); border-bottom: 1px solid color-mix(in oklab, var(--accent) 14%, var(--line));
  font-size: var(--t-label); font-weight: 750; text-transform: uppercase; letter-spacing: .09em; line-height: 1.2;
}
.board__band > span { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.board__band .i { width: 16px; height: 16px; stroke-width: 2; }
.board__band .flag { box-shadow: 0 0 0 1px rgba(15, 29, 58, .12); }
.board__band--ink { background: var(--ink); color: #fff; border-bottom-color: var(--ink); }
.board__band--quiet { background: var(--surface-2); color: var(--subtle); border-bottom-color: var(--line); }
.board__band--muted { background: var(--bg-2); color: var(--muted); }
.board__body { display: grid; gap: 12px; padding: 16px; align-content: start; }
.board__title { font-size: 1.04rem; font-weight: 750; letter-spacing: -0.01em; line-height: 1.3; color: var(--ink); text-wrap: balance; }
.board__title a::after { content: ""; position: absolute; inset: 0; }
.board__company { display: flex; align-items: center; gap: 6px; font-size: .86rem; color: var(--muted); min-width: 0; }
.board__company span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board__rows { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; font-size: .92rem; align-items: baseline; }
.board__rows dt { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--subtle); }
.board__rows dd { font-weight: 600; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.board__rows dd .flag { display: inline-block; vertical-align: -1px; margin-right: 6px; }
.board__rows--rule { gap: 0 16px; }
.board__rows--rule dt, .board__rows--rule dd { padding-block: 8px; border-top: 1px solid var(--line); }
.board__rows--rule dt:first-of-type, .board__rows--rule dd:first-of-type { border-top: 0; padding-top: 0; }
.board__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--surface-2); font-size: .84rem; color: var(--subtle); }
a.board, .board--link { transition: border-color var(--d-1), box-shadow var(--d-2) var(--ease), transform var(--d-2) var(--ease); }
a.board:hover, .board--link:hover { border-color: var(--line-2); box-shadow: var(--sh-2); }
.rate { font-weight: 750; font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.rate--accent { color: var(--accent-text); }

/* ---------------------------------------------------------------- Facts, badges, tags */
.fact { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: .8rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.fact .i { width: 14px; height: 14px; color: var(--subtle); }
.fact--accent { background: var(--accent-tint); border-color: color-mix(in oklab, var(--accent) 20%, transparent); color: var(--accent-text); }
.fact--accent .i { color: var(--accent-text); }
a.fact:hover { border-color: var(--line-2); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 650; line-height: 1.5; white-space: nowrap; background: var(--bg-2); color: var(--ink-2); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--success { background: var(--success-soft); color: var(--success); }
.badge--warning { background: var(--warning-soft); color: var(--warning); }
.badge--danger { background: var(--danger-soft); color: var(--danger); }
.badge--info { background: var(--info-soft); color: var(--info); }
.badge--muted, .badge--neutral { background: var(--bg-2); color: var(--muted); }
.badge--accent { background: var(--accent); color: var(--on-accent); }
.badge--new { background: var(--accent); color: var(--on-accent); font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; }
.badge--new::before, .badge--plain::before { display: none; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: var(--r-tag); font-size: .78rem; font-weight: 550; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.tag--accent { background: var(--accent-tint); border-color: transparent; color: var(--accent-text); }
.verified { display: inline-flex; align-items: center; gap: 4px; color: var(--success); font-size: .8rem; font-weight: 650; white-space: nowrap; }
.verified .i { width: 15px; height: 15px; }
.count-pill { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-size: .7rem; font-weight: 750; font-variant-numeric: tabular-nums; }

/* Avatar & logo tile */
.avatar { --size: 40px; width: var(--size); height: var(--size); flex: none; border-radius: 50%; display: inline-grid; place-items: center; overflow: hidden;
  background: hsl(var(--h, 215) 40% 90%); color: hsl(var(--h, 215) 45% 26%); font-weight: 750; font-size: calc(var(--size) * .38); letter-spacing: -0.01em; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--xs { --size: 26px; }
.avatar--sm { --size: 32px; }
.avatar--md { --size: 42px; }
.avatar--lg { --size: 64px; }
.avatar--xl { --size: 96px; }
.avatar--sq { border-radius: 12px; }
.logo-tile { width: 42px; height: 42px; border-radius: var(--r-ctl); display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; flex: none; font-weight: 750; font-size: .9rem; color: var(--ink-2); }
.logo-tile img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.logo-tile--sm { width: 30px; height: 30px; border-radius: 8px; font-size: .72rem; }

/* Flags (CSS only) */
.flag { display: inline-block; width: 18px; height: 13px; border-radius: 2px; flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); background: var(--bg-2); vertical-align: -1px; }
.flag--de { background: linear-gradient(#111 0 33.3%, #dd1d1d 0 66.6%, #ffce00 0); }
.flag--at { background: linear-gradient(#ed2939 0 33.3%, #fff 0 66.6%, #ed2939 0); }
.flag--sk { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 900 600'%3E%3Crect width='900' height='600' fill='%23ee1c25'/%3E%3Crect width='900' height='400' fill='%230b4ea2'/%3E%3Crect width='900' height='200' fill='%23fff'/%3E%3Cpath d='M190 130H410V320C410 410 350 458 300 480C250 458 190 410 190 320Z' fill='%23ee1c25' stroke='%23fff' stroke-width='26'/%3E%3Cpath d='M287 175h26v215h-26zM240 222h120v26H240zM222 278h156v28H222z' fill='%23fff'/%3E%3Cpath d='M203 392q37-52 77-20q20-28 40 0q40-32 77 20q-25 50-97 78q-72-28-97-78z' fill='%230b4ea2'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.flag--cz { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 900 600' preserveAspectRatio='none'%3E%3Crect width='900' height='600' fill='%23d7141a'/%3E%3Crect width='900' height='300' fill='%23fff'/%3E%3Cpath d='M0 0L450 300L0 600Z' fill='%2311457e'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.flag--pl { background: linear-gradient(#fff 0 50%, #dc143c 0); }
.flag--nl { background: linear-gradient(#ae1c28 0 33.3%, #fff 0 66.6%, #21468b 0); }
.flag--hu { background: linear-gradient(#ce2939 0 33.3%, #fff 0 66.6%, #477050 0); }
.flag--be { background: linear-gradient(90deg, #111 0 33.3%, #fdda24 0 66.6%, #ef3340 0); }
.flag--fr { background: linear-gradient(90deg, #0055a4 0 33.3%, #fff 0 66.6%, #ef4135 0); }
.flag--it { background: linear-gradient(90deg, #008c45 0 33.3%, #fff 0 66.6%, #cd212a 0); }
.flag--ch { background: #da291c; }
.flag--lu { background: linear-gradient(#ed2939 0 33.3%, #fff 0 66.6%, #00a1de 0); }
.flag--dk { background: linear-gradient(90deg, transparent 30%, #fff 30% 42%, transparent 42%), linear-gradient(transparent 42%, #fff 42% 58%, transparent 58%), #c8102e; }
.flag--se { background: linear-gradient(90deg, transparent 30%, #fecc00 30% 42%, transparent 42%), linear-gradient(transparent 42%, #fecc00 42% 58%, transparent 58%), #006aa7; }
.flag--no { background: linear-gradient(90deg, transparent 30%, #00205b 30% 42%, transparent 42%), linear-gradient(transparent 42%, #00205b 42% 58%, transparent 58%), #ba0c2f; }

/* ---------------------------------------------------------------- Cards (generic panel) */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); padding: clamp(18px, 2.2vw, 24px); box-shadow: var(--sh-1); }
.card--flat { background: transparent; box-shadow: none; }
.card--soft { background: var(--surface-2); box-shadow: none; }
.card--pad-lg { padding: clamp(22px, 3vw, 36px); }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.card__title { font-size: 1.06rem; font-weight: 750; letter-spacing: -0.01em; line-height: 1.25; color: var(--ink); }
.card--link { transition: border-color var(--d-1), box-shadow var(--d-2) var(--ease), transform var(--d-2) var(--ease); }
.card--link:hover { border-color: var(--line-2); box-shadow: var(--sh-2); }

/* ---------------------------------------------------------------- Job tile (landing + lists) */
.job-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--grid-gap); }
@media (max-width: 1100px) { .job-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .job-tiles { grid-template-columns: minmax(0, 1fr); } }
.job-tile { position: relative; display: grid; gap: 16px; align-content: start; padding: var(--card-pad); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--sh-1); transition: border-color var(--d-1), box-shadow var(--d-2) var(--ease), transform var(--d-2) var(--ease); }
.job-tile:hover { border-color: var(--line-2); box-shadow: var(--sh-2); transform: translateY(-2px); }
.job-tile__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: start; }
.job-tile__title { font-size: 1.04rem; font-weight: 750; line-height: 1.3; color: var(--ink); letter-spacing: -0.01em; }
.job-tile__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.job-tile__place { display: flex; align-items: center; gap: 7px; margin-top: 5px; font-size: .88rem; color: var(--muted); }
.job-tile__place strong { color: var(--ink-2); font-weight: 600; }
.job-tile__side { display: grid; justify-items: end; gap: 10px; }
.job-tile__go { color: var(--faint); transition: transform var(--d-2) var(--ease), color var(--d-1); }
.job-tile:hover .job-tile__go { color: var(--ink); transform: translateX(3px); }
.job-tile__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .88rem; color: var(--ink-2); }
.job-tile__meta > span { display: inline-flex; align-items: center; gap: 7px; }
.job-tile__meta .i { width: 17px; height: 17px; color: var(--subtle); }
.job-tile__meta .rate { font-size: .94rem; }
.job-tile__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.job-tile__company { display: flex; align-items: center; gap: 6px; min-height: 42px; font-size: .84rem; color: var(--subtle); border-top: 1px solid var(--line); padding-top: 14px; margin-top: auto; align-self: end; }
.job-tile__firm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-3); font-weight: 600; }
.job-tile__when { margin-left: auto; white-space: nowrap; }
.job-tile { grid-template-rows: auto auto auto 1fr; }

/* Firm hidden from guests: "Overená firma" + a small unlock pill (→ registration, back to the job) */
.is-locked { display: inline-flex; align-items: center; gap: 6px; }
.is-locked .i { width: 14px; height: 14px; color: var(--subtle); }
.firm-unlock {
  position: relative; z-index: 2; margin-left: auto; display: inline-flex; align-items: center; gap: 5px; flex: none;
  padding: 4px 10px 4px 8px; border-radius: 999px; background: var(--accent-tint); color: var(--accent-text);
  border: 1px solid color-mix(in oklab, var(--accent) 24%, transparent); font-size: .76rem; font-weight: 700; line-height: 1.3; white-space: nowrap;
  transition: background-color var(--d-1), border-color var(--d-1);
}
.firm-unlock:hover { background: var(--accent-soft); border-color: color-mix(in oklab, var(--accent) 40%, transparent); }
.firm-unlock .i { width: 13px; height: 13px; }
.firm-locked { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px 14px; align-items: center; padding: 14px 16px; border-radius: var(--r); background: var(--accent-tint); border: 1px dashed color-mix(in oklab, var(--accent) 38%, transparent); }
.firm-locked__icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--surface); color: var(--accent-text); border: 1px solid color-mix(in oklab, var(--accent) 20%, transparent); }
.firm-locked__icon .i { width: 18px; height: 18px; }
.firm-locked__text { display: grid; gap: 2px; min-width: 0; }
.firm-locked__text strong { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--ink); font-weight: 700; }
.firm-locked__text > span { font-size: .87rem; color: var(--muted); }
.firm-locked__actions { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 760px) { .firm-locked { grid-template-columns: auto minmax(0, 1fr); } .firm-locked__actions { grid-column: 1 / -1; } }

/* Legacy job card (profession pages, similar jobs) = job tile */
.job-card { position: relative; display: grid; align-content: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--sh-1); transition: border-color var(--d-1), box-shadow var(--d-2) var(--ease); }
.job-card:hover { border-color: var(--line-2); box-shadow: var(--sh-2); }
.job-card__save { position: relative; z-index: 2; }
.job-card__title { font-size: 1.04rem; font-weight: 750; line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); }
.job-card__title a::after { content: ""; position: absolute; inset: 0; }
.job-card__facts { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------------------------------------------------------------- Worker tile (database preview) */
.worker-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--grid-gap); }
@media (max-width: 1100px) { .worker-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .worker-tiles { grid-template-columns: minmax(0, 1fr); } }
.worker-tile { position: relative; display: grid; grid-template-rows: auto auto auto 1fr; gap: 16px; padding: var(--card-pad); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--sh-1); transition: border-color var(--d-1), box-shadow var(--d-2) var(--ease); }
.worker-tile:hover { border-color: var(--line-2); box-shadow: var(--sh-2); }
.worker-tile__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.worker-tile__who { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: center; }
.worker-tile__avatar { grid-row: span 2; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 1.15rem; font-weight: 800; color: hsl(var(--h, 215) 42% 30%); background: hsl(var(--h, 215) 48% 91%); }
.worker-tile__name { display: flex; align-items: center; gap: 7px; font-size: 1.06rem; font-weight: 750; color: var(--ink); line-height: 1.2; min-width: 0; }
.worker-tile__name .i { width: 14px; height: 14px; color: var(--faint); }
.worker-tile__role { font-size: .88rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.worker-tile__rate { display: flex; align-items: baseline; gap: 6px; font-size: .88rem; color: var(--subtle); }
.worker-tile__rate strong { font-size: 1.55rem; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.worker-tile__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-block: 12px; border-block: 1px solid var(--line); text-align: center; font-size: .8rem; color: var(--ink-2); }
.worker-tile__facts span { display: grid; justify-items: center; gap: 4px; min-width: 0; }
.worker-tile__facts .i { width: 17px; height: 17px; color: var(--subtle); }
.worker-tile__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; align-self: end; }
.worker-tile__facts .flag { width: 20px; height: 14px; margin-block: 1px 2px; }
.worker-tile__tags { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.worker-tile__rate strong.worker-tile__rate--deal { font-size: 1.12rem; font-weight: 750; color: var(--ink-3); letter-spacing: -0.01em; }
.worker-tile__facts span:last-child { text-wrap: balance; line-height: 1.3; }
.worker-tile__foot .btn { flex: none; }

/* Public worker database */
.db-count { font-size: .95rem; color: var(--muted); white-space: nowrap; }
.db-count strong { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; margin-right: 4px; }
.search-panel.search-panel--db { grid-template-columns: repeat(4, minmax(0, 1fr)) auto; }
@media (max-width: 1020px) { .search-panel.search-panel--db { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 4px; } .search-panel--db .search-panel__field::before { display: none; } .search-panel--db .search-panel__field { background: var(--surface-2); margin: 2px; } .search-panel--db > .btn { grid-column: 1 / -1; margin-left: 0; } }
.chipbar.chipbar--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-block: 20px 22px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.chipbar--scroll::-webkit-scrollbar { display: none; }
.chipbar--scroll .i { width: 16px; height: 16px; color: var(--subtle); }
.chipbar--scroll a[aria-current="true"] .i { color: inherit; }
.db-cta { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px 20px; align-items: center; margin: clamp(6px, 1vw, 14px) 0 clamp(28px, 3.4vw, 44px); padding: clamp(18px, .9rem + .6vw, 26px) clamp(18px, 1rem + .8vw, 30px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--sh-1); }
.db-cta strong { font-size: 1.02rem; color: var(--ink); }
.db-cta p { color: var(--muted); font-size: .92rem; margin-top: 2px; max-width: 70ch; }
.db-cta__actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 860px) { .db-cta { grid-template-columns: auto minmax(0, 1fr); } .db-cta__actions { grid-column: 1 / -1; } }

/* ---------------------------------------------------------------- Hero */
.hero { position: relative; overflow: clip; isolation: isolate; background: linear-gradient(180deg, #f8fafd 0%, var(--bg) 70%); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 0; background: radial-gradient(60% 70% at 78% 40%, color-mix(in oklab, var(--accent) 7%, transparent), transparent 70%); pointer-events: none; transition: background var(--d-3); }
.hero__inner { position: relative; z-index: 3; min-height: clamp(600px, 50vw, 740px); display: grid; align-content: center; padding-block: clamp(36px, 5vw, 72px) clamp(64px, 8vw, 112px); pointer-events: none; }
.hero__inner > * { pointer-events: auto; }
.hero__copy { max-width: 660px; display: grid; gap: 24px; }
.hero__copy > .search-panel { margin-top: clamp(6px, .8vw, 14px); }
.hero__copy > .hero__features { margin-top: 4px; }
.hero__status { justify-self: start; display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.hero__status .ico-round { width: 28px; height: 28px; }
.hero__status .ico-round .i { width: 16px; height: 16px; }
.hero__status b { font-variant-numeric: tabular-nums; }
.hero__title { font-size: var(--t-display); font-weight: 850; line-height: 1.02; letter-spacing: -0.04em; color: var(--ink); }
.hero__title .line { display: block; }
.hero__title .line--accent { color: var(--accent-strong); }
@media (min-width: 1021px) { .hero__title .line { white-space: nowrap; } }
.hero__lead { font-size: var(--t-lead); line-height: 1.6; color: var(--muted); max-width: 54ch; }
.hero__features { display: grid; grid-template-columns: repeat(3, minmax(0, auto)); justify-content: start; gap: 18px 28px; }
.hero__feature { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; align-items: center; }
.hero__feature .ico-round { grid-row: span 2; }
.hero__feature strong { font-size: .94rem; font-weight: 700; color: var(--ink); line-height: 1.25; }
.hero__feature span { font-size: .84rem; color: var(--subtle); line-height: 1.3; }
@media (max-width: 640px) { .hero__features { grid-template-columns: minmax(0, 1fr); gap: 12px; } }

/* Map stage: real map bleeding off the right edge, fading under the copy */
.hero__map { position: absolute; z-index: 1; top: 0; bottom: 0; right: 0; width: min(62vw, 1080px); pointer-events: none; }
.map-stage { position: absolute; top: 50%; left: -11%; width: 136%; aspect-ratio: var(--map-ar, 1.546); transform: translateY(-50%); }
.map-layer { position: absolute; inset: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 18%, rgba(0,0,0,.4) 26%, #000 38%), linear-gradient(180deg, transparent 4%, #000 16%, #000 84%, transparent 96%);
  mask-image: linear-gradient(90deg, transparent 18%, rgba(0,0,0,.4) 26%, #000 38%), linear-gradient(180deg, transparent 4%, #000 16%, #000 84%, transparent 96%);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.map-base { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; user-select: none; }
.map-tint { position: absolute; inset: 0; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; pointer-events: none; transition: background-color var(--d-3) var(--ease); }
.map-tint--work { background: color-mix(in oklab, var(--accent) 9%, transparent); }
.map-tint--home { background: color-mix(in oklab, var(--ink) 8%, transparent); }
.map-routes { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.map-route { fill: none; stroke: color-mix(in oklab, var(--ink) 30%, transparent); stroke-width: 1.4; stroke-dasharray: 3 6; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.map-route--live { stroke: var(--accent-strong); stroke-width: 2; stroke-dasharray: 6 7; animation: route-flow 1.8s linear infinite; }
[data-aud="firms"] .map-route--live { animation-direction: reverse; }
@keyframes route-flow { to { stroke-dashoffset: -26; } }
.map-labels { position: absolute; inset: 0; }
.map-country { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); font-size: .7rem; font-weight: 750; letter-spacing: .2em; text-transform: uppercase; color: color-mix(in oklab, var(--ink) 46%, transparent); white-space: nowrap; text-shadow: 0 0 4px var(--surface), 0 0 4px var(--surface); }
.map-city { position: absolute; left: var(--x); top: var(--y); width: 0; height: 0; }
.map-city::before { content: ""; position: absolute; left: -3.5px; top: -3.5px; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); box-shadow: 0 0 0 2px var(--surface); }
.map-city--home::before { left: -5px; top: -5px; width: 10px; height: 10px; background: var(--ink); }
.map-city > span { position: absolute; left: 9px; top: -9px; font-size: .78rem; font-weight: 650; line-height: 18px; color: var(--ink-2); white-space: nowrap; text-shadow: 0 0 3px var(--surface), 0 0 3px var(--surface), 0 0 3px var(--surface); }
.map-city--home > span { font-weight: 750; color: var(--ink); }
.map-city--below > span { top: 4px; }
.map-city--left > span { left: auto; right: 9px; }
@media (max-width: 1020px) {
  .hero__inner { min-height: 0; padding-bottom: 8px; }
  .hero__map { position: relative; width: auto; height: auto; aspect-ratio: 1.15; overflow: hidden; margin-top: -8px; }
  .map-stage { width: 190%; left: -62%; }
  /* the stage is taller than the box (overflow hidden) – only ~15–85 % of it is visible, so the fades sit inside that band */
  .map-layer { -webkit-mask-image: linear-gradient(180deg, transparent 15%, rgba(0,0,0,.5) 22%, #000 32%, #000 74%, rgba(0,0,0,.5) 80%, transparent 86%); mask-image: linear-gradient(180deg, transparent 15%, rgba(0,0,0,.5) 22%, #000 32%, #000 74%, rgba(0,0,0,.5) 80%, transparent 86%); }
}

/* Map markers and floating cards */
.pin { position: absolute; left: var(--x); top: var(--y); width: 0; height: 0; z-index: 2; pointer-events: auto; }
.pin__dot { position: absolute; left: -8px; top: -8px; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--surface), 0 2px 6px rgba(15, 29, 58, .3); }
.pin__dot::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; background: color-mix(in oklab, var(--accent) 30%, transparent); z-index: -1; }
.pin__card { position: absolute; left: -10px; bottom: var(--post, 16px); }
.pin--left .pin__card { left: auto; right: -10px; }
.map-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; width: clamp(220px, 18vw, 262px); padding: 10px 12px 10px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--sh-3); text-align: left; color: var(--ink-2); transition: box-shadow var(--d-2) var(--ease), border-color var(--d-1); }
a.map-card:hover { border-color: var(--line-2); box-shadow: 0 2px 6px rgba(15, 29, 58, .06), 0 28px 50px -16px rgba(15, 29, 58, .32); }
.map-card__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-tint); color: var(--accent-text); border: 1px solid color-mix(in oklab, var(--accent) 16%, transparent); }
.map-card__icon .i { width: 22px; height: 22px; }
.map-card__body { display: grid; gap: 2px; min-width: 0; }
.map-card__title { font-size: .98rem; font-weight: 750; color: var(--ink); line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-card__meta { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.map-card__rate { font-size: .86rem; font-weight: 750; color: var(--ink); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-card__go { width: 18px; height: 18px; color: var(--faint); }
@media (prefers-reduced-motion: no-preference) {
  .js .pin__dot { animation: pin-drop var(--d-3) var(--ease) both; animation-delay: calc(var(--n, 0) * 140ms + 200ms); }
  .js .pin__card { animation: card-up var(--d-3) var(--ease) both; animation-delay: calc(var(--n, 0) * 140ms + 420ms); }
}
@keyframes pin-drop { from { opacity: 0; transform: scale(.4); } }
@keyframes card-up { from { opacity: 0; transform: translateY(10px); } }
@media (max-width: 1280px) { .pin[data-n="2"] { display: none; } }
@media (max-width: 1020px) { .pin__card { display: none; } }

/* Mobile: the floating cards move below the map as a swipeable row */
.hero__cards { display: none; }
@media (max-width: 1020px) {
  .hero__cards { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 80%); gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding-bottom: 28px; margin-top: -48px; position: relative; z-index: 3; scrollbar-width: none; }
  .hero__cards::-webkit-scrollbar { display: none; }
  .hero__cards > .map-card { width: auto; scroll-snap-align: start; }
}

/* Search panel (hero + listing) */
.search-panel { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.15fr) minmax(0, .95fr) auto; align-items: stretch; gap: 0; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--sh-2); }
.search-panel__field { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; row-gap: 3px; align-content: center; padding: 9px 14px; min-width: 0; cursor: text; border-radius: 12px; transition: background-color var(--d-1); }
.search-panel__field + .search-panel__field::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 1px; background: var(--line); }
.search-panel__field:hover { background: var(--surface-2); }
.search-panel__field:focus-within { background: var(--accent-tint); }
.search-panel__field > .i { grid-column: 1; grid-row: 1 / span 2; align-self: center; width: 20px; height: 20px; color: var(--subtle); }
.search-panel__field > span, .search-panel__field > input, .search-panel__field > select { grid-column: 2; }
.search-panel__field:not(:has(> .i)) { column-gap: 0; }
.search-panel__field > span { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--subtle); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-panel__field input, .search-panel__field select { width: 100%; min-width: 0; border: 0; background: transparent; padding: 2px 0; font-size: 1rem; font-weight: 600; color: var(--ink); outline: none; -webkit-appearance: none; appearance: none; }
.search-panel__field select { cursor: pointer; padding-right: 22px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%23526079' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right center / 16px no-repeat; }
.search-panel__field input::placeholder { color: var(--faint); font-weight: 500; }
.search-panel__field--unit::after { content: attr(data-unit); position: absolute; right: 14px; bottom: 11px; font-size: .88rem; font-weight: 600; color: var(--subtle); pointer-events: none; }
.search-panel__field--unit input { padding-right: 34px; }
.search-panel > .btn { min-height: 56px; margin-left: 6px; border-radius: 12px; padding-inline: 24px; font-size: 1rem; }
.search-panel--ico { grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr) auto; }
.search-panel--two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
.search-panel--ico input { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
@media (max-width: 680px) {
  .search-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 4px; }
  .search-panel__field:first-child { grid-column: 1 / -1; }
  .search-panel__field + .search-panel__field::before { display: none; }
  .search-panel__field { background: var(--surface-2); }
  .search-panel__field:nth-child(2) { margin-right: 2px; }
  .search-panel__field:nth-child(3) { margin-left: 2px; }
  .search-panel > .btn { grid-column: 1 / -1; margin-left: 0; min-height: 50px; }
  .search-panel--ico .search-panel__field:first-child, .search-panel--two .search-panel__field:first-child { grid-column: auto; margin-right: 2px; }
  .search-panel--two .search-panel__field:nth-child(2) { margin-left: 2px; margin-right: 0; }
  .search-panel--ico .search-panel__field:nth-child(2) { margin-left: 2px; margin-right: 0; }
}

/* ---------------------------------------------------------------- Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.step { position: relative; display: grid; align-content: start; gap: 10px; padding: clamp(20px, 2.4vw, 28px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.panel .step { background: var(--surface-2); border-color: transparent; }
.step__num { display: flex; align-items: center; gap: 10px; }
.step__num b { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: .95rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.step h3 { font-size: 1.14rem; }
.step p { color: var(--muted); font-size: .95rem; }
.step__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- Trades index */
.trades { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 960px) { .trades { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .trades { grid-template-columns: minmax(0, 1fr); } }
.trade { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px 10px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: border-color var(--d-1), box-shadow var(--d-2) var(--ease); }
.trade:hover { border-color: var(--line-2); box-shadow: var(--sh-2); }
.trade .ico { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-tint); color: var(--accent-text); flex: none; transition: background-color var(--d-1), color var(--d-1); }
.trade .ico .i { width: 20px; height: 20px; }
.trade:hover .ico { background: var(--accent); color: var(--on-accent); }
.trade__name { font-weight: 650; color: var(--ink); flex: 1; min-width: 0; }
.trade__count { font-size: .84rem; font-weight: 600; color: var(--subtle); font-variant-numeric: tabular-nums; white-space: nowrap; }
.trade__count b { color: var(--ink); }
.trade .i--arrow { color: var(--faint); transition: transform var(--d-2) var(--ease), color var(--d-1); }
.trade:hover .i--arrow { transform: translateX(3px); color: var(--ink); }
.prof-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.prof-tile { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: border-color var(--d-1), box-shadow var(--d-2); }
.prof-tile:hover { border-color: var(--line-2); box-shadow: var(--sh-2); }
.prof-tile .ico { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-tint); color: var(--accent-text); flex: none; }
.prof-tile__name { font-weight: 650; line-height: 1.25; color: var(--ink); }
.prof-tile__count { font-size: .8rem; color: var(--subtle); font-variant-numeric: tabular-nums; }
.prof-tile .i--arrow { margin-left: auto; color: var(--faint); transition: transform var(--d-2) var(--ease); }
.prof-tile:hover .i--arrow { transform: translateX(3px); color: var(--ink); }

/* ---------------------------------------------------------------- Credits / pricing */
.pricing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
@media (max-width: 960px) { .pricing { grid-template-columns: minmax(0, 1fr); } }
.pricing .board__body { gap: 14px; padding: 20px; }
.price-card { display: grid; gap: 14px; align-content: start; padding: clamp(20px, 2.4vw, 28px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.price-card h3 { font-size: 1.12rem; }
.price-card--accent { border-color: color-mix(in oklab, var(--accent) 40%, var(--line)); box-shadow: 0 0 0 1px color-mix(in oklab, var(--accent) 22%, transparent), var(--sh-2); background: linear-gradient(180deg, var(--accent-tint), var(--surface) 46%); }
.price-card > .btn { justify-self: start; margin-top: 4px; }
.price-card__rows { display: grid; }
.price-card__rows > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding-block: 10px; border-top: 1px solid var(--line); font-size: .93rem; }
.price-card__rows > div:first-child { border-top: 0; padding-top: 0; }
.price-card__rows dt { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--subtle); padding-top: 3px; }
.price-card__rows dd { font-weight: 600; color: var(--ink); }
.pricing__big { font-size: clamp(2rem, 1.5rem + 1.6vw, 2.8rem); font-weight: 850; letter-spacing: -0.035em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.pricing__big small { font-size: 1rem; font-weight: 650; letter-spacing: 0; color: var(--muted); margin-left: 6px; }
.price-card__sub { display: block; margin-top: 2px; font-size: .84rem; font-weight: 600; color: var(--muted); }
.starter-figures { display: grid; gap: 10px; }
.pricing__big--rate { font-size: clamp(1.6rem, 1.25rem + 1.1vw, 2.15rem); }
.pricing__big--rate small { display: block; margin: 6px 0 0; }
.check-list { display: grid; gap: 9px; font-size: .94rem; }
.check-list li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; }
.check-list .i { width: 18px; height: 18px; margin-top: 2px; color: var(--success); stroke-width: 2.2; }

/* ---------------------------------------------------------------- FAQ */
.faq { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(28px, 5vw, 80px); }
@media (max-width: 900px) { .faq { grid-template-columns: minmax(0, 1fr); } }
.faq__intro { display: grid; gap: 14px; align-content: start; }
.faq__intro p { color: var(--muted); }
.faq__list { display: grid; gap: 8px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: border-color var(--d-1), box-shadow var(--d-2); }
.faq details[open] { border-color: var(--line-2); box-shadow: var(--sh-1); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 16px 18px; font-size: 1.02rem; font-weight: 700; color: var(--ink); line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { position: relative; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); transition: background-color var(--d-2), border-color var(--d-2); }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.6px; background: currentColor; transform: translate(-50%, -50%); transition: transform var(--d-2) var(--ease); }
.faq summary .pm::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] summary .pm { background: var(--accent); border-color: transparent; color: var(--on-accent); }
.faq details[open] summary .pm::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__answer { padding: 0 64px 18px 18px; color: var(--muted); max-width: 72ch; }
.faq__answer p + p { margin-top: .7em; }
details.anim[open] .faq__answer { animation: fade-down var(--d-2) var(--ease); }
@keyframes fade-down { from { opacity: 0; transform: translateY(-4px); } }

/* ---------------------------------------------------------------- Closing panel */
.closing { padding-block: clamp(20px, 3vw, 40px) clamp(48px, 6vw, 80px); }
.closing__card { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 40px; align-items: center; padding: clamp(26px, 4vw, 48px); border-radius: var(--r-lg); background: var(--ink); color: #fff; isolation: isolate; }
.closing__card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 120% at 100% 0%, color-mix(in oklab, var(--accent) 34%, transparent), transparent 70%); }
.closing h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); color: #fff; }
.closing p { color: rgba(255, 255, 255, .74); margin-top: 8px; max-width: 60ch; }
.closing .btn--outline { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .32); box-shadow: none; }
.closing .btn--outline:hover { --btn-bd: #fff; }
@media (max-width: 760px) { .closing__card { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding-top: clamp(40px, 5vw, 64px); padding-bottom: 24px; margin-top: clamp(40px, 5vw, 72px); }
main:has(> .closing:last-child) + .site-footer, .page-search .site-footer { margin-top: 0; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 32px 28px; }
@media (max-width: 1020px) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-footer__brand { grid-column: span 2; } }
.site-footer h4 { font-size: var(--t-label); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--subtle); margin-bottom: 14px; }
.site-footer ul { display: grid; gap: 9px; font-size: .93rem; }
.site-footer a { color: var(--ink-2); transition: color var(--d-1); }
.site-footer ul a:hover { color: var(--accent-text); }
.site-footer__brand p { color: var(--muted); max-width: 38ch; margin-top: 14px; font-size: .93rem; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: clamp(32px, 4vw, 48px); padding-top: 18px; border-top: 1px solid var(--line); color: var(--subtle); font-size: .84rem; }
.page-app .site-footer { display: none; }

/* ---------------------------------------------------------------- Forms */
.form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .form-row, .form-row--3 { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 7px; min-width: 0; align-content: start; }
.field > label, .label { font-size: .88rem; font-weight: 650; color: var(--ink-2); display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.label .opt, .field > label .opt { font-weight: 500; color: var(--subtle); font-size: .78rem; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border-radius: var(--r-ctl);
  background: var(--surface); border: 1px solid var(--line-2); color: var(--ink);
  font-size: 1rem; line-height: 1.4; outline: none;
  transition: border-color var(--d-1), box-shadow var(--d-1), background-color var(--d-1);
  -webkit-appearance: none; appearance: none;
}
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--faint); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent-strong); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 18%, transparent); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--danger); }
.input:disabled, .input[readonly] { background: var(--surface-2); color: var(--muted); }
.textarea { min-height: 120px; resize: vertical; }
.select { padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%23526079' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 17px; cursor: pointer; }
/* Dropdown lists: Chrome/Edge 135+ let us style the open list (padding, rounded panel, highlighted choice).
   Other browsers keep their native list. The closed field keeps its own look (chevron is the background image). */
@supports (appearance: base-select) {
  select:not([multiple]):not([size]), select:not([multiple]):not([size])::picker(select) { appearance: base-select; }
  select:not([multiple]):not([size]) { display: inline-flex; align-items: center; white-space: nowrap; overflow: hidden; }
  select::picker-icon { display: none; }
  .sort-select { min-width: 172px; } /* keeps the toolbar from shifting when a longer option is picked */
  select::picker(select) {
    margin-block: 6px; padding: 6px; min-width: anchor-size(width); max-height: min(380px, 60dvh); overflow-y: auto;
    border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--surface); color: var(--ink-2); box-shadow: var(--sh-3);
  }
  select option { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; font-size: .95rem; font-weight: 500; line-height: 1.35; white-space: normal; cursor: pointer; transition: background-color var(--d-1); }
  select option::checkmark { order: 1; margin-left: auto; color: var(--accent-text); }
  select option:hover, select option:focus-visible { background: var(--surface-2); color: var(--ink); outline: none; }
  select option:checked { background: var(--accent-tint); color: var(--accent-text); font-weight: 650; }
  select option:disabled { color: var(--faint); cursor: default; }
}
.input-group { position: relative; display: flex; align-items: center; }
.input-group > .input { padding-right: 46px; }
.input-group .input--lead { padding-left: 42px; }
.input-group > .i { position: absolute; left: 14px; color: var(--subtle); pointer-events: none; width: 18px; height: 18px; }
.input-group__btn { position: absolute; right: 6px; width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); transition: background-color var(--d-1), color var(--d-1); }
.input-group__btn:hover { background: var(--surface-2); color: var(--ink); }
.input-group__suffix { position: absolute; right: 14px; font-size: .9rem; font-weight: 600; color: var(--subtle); pointer-events: none; }
.input-group--action > .input { padding-right: 116px; }
.input-group--action .input-group__btn { width: auto; min-width: 100px; padding: 0 14px; gap: 6px; display: inline-flex; align-items: center; justify-content: center; background: var(--ink); color: #fff; font-size: .86rem; font-weight: 700; }
.input-group--action .input-group__btn:hover { background: var(--ink-3); color: #fff; }
.input-group--action .input-group__btn.is-loading { color: transparent; }
.input-group--action .input-group__btn.is-loading::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; border: 2px solid #fff; border-right-color: transparent; animation: spin .7s linear infinite; }
.hint { font-size: .8rem; color: var(--subtle); }
.field-error { font-size: .82rem; color: var(--danger); display: flex; gap: 6px; align-items: center; font-weight: 550; }
.form-error { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: var(--r-ctl); background: var(--danger-soft); color: var(--danger); font-size: .92rem; font-weight: 550; }
/* sticky save bar of long forms (profile, company, job) – a full-width bottom bar on phones */
.form-actions { position: sticky; bottom: 12px; z-index: 5; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.form-actions .btn--accent { box-shadow: var(--sh-3); }
.form-actions .btn--outline { background: var(--surface); }
@media (max-width: 680px) {
  .form-actions { bottom: 0; margin-inline: calc(var(--app-pad) * -1); padding: 10px var(--app-pad) calc(10px + env(safe-area-inset-bottom)); background: color-mix(in oklab, var(--surface) 94%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
  .form-actions .btn { flex: 1; min-height: 48px; }
  .form-actions .btn--accent { box-shadow: none; }
}
/* job form: the less common trades fold away */
.prof-more > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; padding: 10px 4px 4px; font-size: .88rem; font-weight: 650; color: var(--accent-text); cursor: pointer; }
.prof-more > summary::-webkit-details-marker { display: none; }
.prof-more > summary .i { transition: transform var(--d-2) var(--ease); }
.prof-more[open] > summary .i { transform: rotate(180deg); }
.prof-more > .prof-picker { margin-top: 8px; }
.fieldset { display: grid; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--surface-2); }
.fieldset__legend { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: var(--t-label); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--subtle); }

/* Checkbox / radio / switch */
.check { position: relative; display: flex; align-items: flex-start; gap: 11px; cursor: pointer; font-size: .94rem; line-height: 1.45; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box { width: 20px; height: 20px; flex: none; margin-top: 1px; border-radius: 6px; border: 1.5px solid var(--line-2); background: var(--surface); display: grid; place-items: center; transition: background-color var(--d-1), border-color var(--d-1); }
.check__box::after { content: ""; width: 12px; height: 12px; background: var(--on-accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; transform: scale(0); transition: transform var(--d-1) var(--ease); }
.check:hover .check__box { border-color: var(--ink-3); }
.check input:checked + .check__box { background: var(--accent); border-color: var(--accent); }
.check input:checked + .check__box::after { transform: scale(1); }
.check input:focus-visible + .check__box { outline: 2px solid var(--accent-strong); outline-offset: 2px; }
.check input[type="radio"] + .check__box { border-radius: 50%; }
.switch { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track { width: 42px; height: 24px; border-radius: 12px; background: var(--line-2); position: relative; flex: none; transition: background-color var(--d-2); }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform var(--d-2) var(--ease); }
.switch input:checked + .switch__track { background: var(--accent); }
.switch input:checked + .switch__track::after { transform: translateX(18px); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--accent-strong); outline-offset: 2px; }

/* Selectable chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: .88rem; font-weight: 600; color: var(--ink-2); transition: background-color var(--d-1), border-color var(--d-1), color var(--d-1); user-select: none; }
.chip span .i { width: 16px; height: 16px; color: var(--subtle); }
.chip:hover span { border-color: var(--ink-3); }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.chip input:checked + span .i { color: inherit; }
.chip input:focus-visible + span { outline: 2px solid var(--accent-strong); outline-offset: 2px; }
a.chip-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: .88rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; transition: border-color var(--d-1), background-color var(--d-1); }
a.chip-pill:hover { border-color: var(--ink-3); }
a.chip-pill[aria-current="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
a.chip-pill .n { font-size: .76rem; color: var(--subtle); font-variant-numeric: tabular-nums; }
a.chip-pill[aria-current="true"] .n { color: inherit; opacity: .8; }

/* Option cards (radio cards) */
.option-cards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.option-card { position: relative; cursor: pointer; }
.option-card input { position: absolute; opacity: 0; }
.option-card__body { display: grid; gap: 4px; height: 100%; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--surface); transition: border-color var(--d-1), box-shadow var(--d-1), background-color var(--d-1); }
.option-card__body strong { font-weight: 700; display: flex; align-items: center; gap: 8px; color: var(--ink); }
.option-card__body span { color: var(--muted); font-size: .86rem; }
.option-card:hover .option-card__body { border-color: var(--ink-3); }
.option-card input:checked + .option-card__body { border-color: var(--accent-strong); box-shadow: inset 0 0 0 1px var(--accent-strong); background: var(--accent-tint); }
.option-card input:focus-visible + .option-card__body { outline: 2px solid var(--accent-strong); outline-offset: 2px; }

/* File drop */
.dropzone { position: relative; display: grid; place-items: center; gap: 6px; padding: 24px; border-radius: var(--r-panel); border: 1.5px dashed var(--line-2); background: var(--surface-2); text-align: center; color: var(--muted); font-size: .9rem; transition: border-color var(--d-1), background-color var(--d-1); }
.dropzone:hover, .dropzone.is-over { border-color: var(--accent-strong); background: var(--accent-tint); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone .i { width: 26px; height: 26px; color: var(--ink-2); }
.dropzone--sm { display: flex; align-items: center; justify-content: flex-start; gap: 10px; padding: 14px 16px; text-align: left; }
.dropzone--sm .i { width: 20px; height: 20px; color: var(--subtle); }
.dropzone--sm [data-file-label] { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropzone.has-files { border-style: solid; border-color: color-mix(in oklab, var(--accent) 45%, transparent); background: var(--accent-tint); color: var(--ink); font-weight: 600; }
.dropzone.has-files .i { color: var(--accent-text); }

/* Password strength */
.strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.strength span { height: 4px; border-radius: 2px; background: var(--line); transition: background-color var(--d-2); }
.strength[data-score="1"] span:nth-child(-n+1) { background: var(--danger); }
.strength[data-score="2"] span:nth-child(-n+2) { background: var(--warning); }
.strength[data-score="3"] span:nth-child(-n+3) { background: #3f9a63; }
.strength[data-score="4"] span { background: var(--success); }

/* ---------------------------------------------------------------- Auth layout (form left, live map panel right, inset) */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(400px, 43%); background: var(--surface); }
@media (max-width: 960px) { .auth { grid-template-columns: minmax(0, 1fr); } .auth__side { display: none !important; } }
.auth__main { display: flex; flex-direction: column; padding: 18px clamp(18px, 2.4vw, 32px) 22px; }
.auth__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: auto; }
.auth__body { width: 100%; max-width: 580px; margin: 32px auto; display: grid; gap: 24px; }
.auth__body--wide { max-width: 700px; }
.auth__body h1 { font-size: clamp(1.8rem, 1.4rem + 1.3vw, 2.5rem); }
.auth__foot { margin-top: auto; font-size: .82rem; color: var(--subtle); text-align: center; }
.auth__side { position: sticky; top: 12px; height: calc(100vh - 24px); height: calc(100dvh - 24px); margin: 12px 12px 12px 0; border-radius: 24px; background: #0c1320; color: #fff; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(28px, 3.4vw, 48px); isolation: isolate; }
.auth__side .map-stage { position: absolute; top: 42%; left: -36%; width: 175%; }
.auth__side .map-layer { -webkit-mask-image: linear-gradient(180deg, #000 52%, transparent 80%); mask-image: linear-gradient(180deg, #000 52%, transparent 80%); }
.auth__side .map-tint--work { background: color-mix(in oklab, var(--accent) 22%, transparent); }
.auth__side .map-tint--home { background: rgba(255, 255, 255, .08); }
.auth__side .map-route { stroke: rgba(255, 255, 255, .25); }
.auth__side .map-route--live { stroke: var(--accent); }
.auth__side .map-country { color: rgba(255, 255, 255, .42); text-shadow: none; }
.auth__side .map-city::before { background: rgba(255, 255, 255, .8); box-shadow: 0 0 0 2px #0c1320; }
.auth__side .map-city--home::before { background: #fff; }
.auth__side .map-city > span { color: rgba(255, 255, 255, .88); text-shadow: 0 0 3px #0c1320, 0 0 3px #0c1320; }
.auth__side .pin__dot { box-shadow: 0 0 0 3px #0c1320; }
.auth__quote { position: relative; z-index: 2; display: grid; gap: 14px; max-width: 480px; }
.auth__quote blockquote { font-size: clamp(1.4rem, 1.1rem + .9vw, 1.95rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; }
.auth__quote .row { color: rgba(255, 255, 255, .76); font-size: .88rem; }
.auth__quote .row .i { color: var(--accent); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--subtle); font-size: var(--t-label); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Wizard */
.wizard-head { display: grid; gap: 10px; }
.wizard-steps { display: flex; gap: 6px; }
.wizard-steps span { flex: 1; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; position: relative; }
.wizard-steps span::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform var(--d-3) var(--ease); }
.wizard-steps span.is-done::after, .wizard-steps span.is-active::after { transform: scaleX(1); }
.wizard-pane { display: none; }
.wizard-pane.is-active { display: grid; gap: 20px; animation: pane-in var(--d-3) var(--ease); }
.no-js .wizard-pane { display: grid; gap: 20px; }
@keyframes pane-in { from { opacity: 0; transform: translateX(10px); } }
.wizard-nav { display: flex; justify-content: space-between; gap: 12px; }

/* Choice tiles on /registracia */
.choice { display: grid; gap: 12px; }
.choice a { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 18px 20px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line-2); transition: border-color var(--d-1), box-shadow var(--d-2) var(--ease); }
.choice a:hover { border-color: var(--accent-strong); box-shadow: var(--sh-2); }
.choice .ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-tint); color: var(--accent-text); }
.choice strong { font-size: 1.15rem; font-weight: 750; display: block; line-height: 1.2; color: var(--ink); }
.choice small { color: var(--muted); font-size: .88rem; display: block; margin-top: 3px; }

/* Company lookup (IČO) */
.lookup { position: relative; display: grid; gap: 10px; }
.lookup__status { display: flex; align-items: center; gap: 8px; font-size: .86rem; min-height: 20px; color: var(--muted); }
.lookup__status.is-ok { color: var(--success); font-weight: 600; }
.lookup__status.is-error { color: var(--danger); font-weight: 600; }
.lookup__result { display: grid; gap: 3px; padding: 12px 14px; border-radius: var(--r-ctl); background: var(--success-soft); border: 1px solid color-mix(in oklab, var(--success) 25%, transparent); animation: pane-in var(--d-3) var(--ease); }
.lookup__result strong { font-size: 1rem; }
.lookup__result span { color: var(--ink-2); font-size: .88rem; }
.is-filled { animation: filled 1.2s var(--ease); }
@keyframes filled { 0% { background-color: var(--accent-soft); } 100% { background-color: var(--surface); } }

/* ---------------------------------------------------------------- Page head, breadcrumbs */
.page-head { padding-top: clamp(32px, 4.4vw, 60px); padding-bottom: clamp(24px, 3.2vw, 42px); display: grid; gap: 16px; }
.page-head h1 { max-width: 22ch; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; font-size: .84rem; color: var(--subtle); }
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumbs .i { width: 14px; height: 14px; }

/* ---------------------------------------------------------------- Search: filter bar + master-detail */
.filterbar { position: sticky; top: var(--header-h); z-index: 30; background: color-mix(in oklab, var(--bg) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.filterbar__inner { display: flex; align-items: center; gap: 14px; padding-block: clamp(14px, .55rem + .55vw, 22px); }
.filterbar .search-panel { flex: 1; box-shadow: var(--sh-1); }
.filterbar .search-panel__field { padding-block: 8px; }
.filterbar .search-panel > .btn { min-height: 48px; }
.filterbar__tools { display: flex; align-items: center; gap: 8px; flex: none; }
@media (max-width: 1020px) {
  .filterbar { position: static; }
  .filterbar__inner { flex-wrap: wrap; }
  .filterbar__tools { width: 100%; justify-content: space-between; }
  .sort-form { flex: 1; min-width: 0; justify-content: flex-end; }
  .sort-select { width: 100%; max-width: 220px; min-width: 0; }
}
.seg { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.seg a, .seg button { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 9px; font-size: .88rem; font-weight: 650; color: var(--muted); transition: background-color var(--d-1), color var(--d-1); }
.seg a:hover, .seg button:hover { color: var(--ink); }
.seg [aria-current="true"], .seg [aria-pressed="true"] { background: var(--accent-tint); color: var(--accent-text); }
.seg .i { width: 17px; height: 17px; }
.sort-select { min-height: 48px; width: auto; padding-block: 6px; font-size: .9rem; font-weight: 600; box-shadow: var(--sh-1); border-color: var(--line); }
.sort-form { display: flex; align-items: center; gap: 6px; }
.chipbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-block: clamp(24px, 1.2rem + .9vw, 40px) clamp(16px, .9rem + .5vw, 26px); }
.results-title { font-size: 1.2rem; letter-spacing: -0.015em; margin-right: 6px; }
.chipbar__count { font-size: .92rem; color: var(--muted); margin-right: 6px; }
.chipbar__count strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.chipbar a.active-chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px 5px 12px; border-radius: 999px; background: var(--accent-tint); color: var(--accent-text); border: 1px solid color-mix(in oklab, var(--accent) 22%, transparent); font-size: .82rem; font-weight: 650; }
.chipbar a.active-chip .i { width: 14px; height: 14px; opacity: .75; }
.chipbar a.active-chip:hover .i { opacity: 1; }
.chipbar .clear { font-size: .84rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; margin-left: 4px; }
.alert-cta .board__body { gap: 8px; }

/* Archive: a grid of cards; opening one morphs the grid into a list column + detail pane (app.js FLIP).
   The list column is exactly one grid column wide, so cards keep their size and only travel. */
.md { --md-gap: var(--grid-gap); display: grid; grid-template-columns: minmax(0, 1fr); column-gap: var(--md-gap); align-items: start; padding-bottom: clamp(40px, 5vw, 72px); }
/* grid: every card in a row is as tall as the tallest one (facts sit on the bottom line); list column: natural height */
.md__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--md-gap); align-content: start; align-items: stretch; }
.md.is-open .md__list { align-items: start; }
.md__list > :not(.md-item) { grid-column: 1 / -1; }
.md__pane { display: none; position: sticky; z-index: 2; top: calc(var(--header-h) + var(--filterbar-h, 80px) + 14px); height: calc(100dvh - var(--header-h) - var(--filterbar-h, 80px) - 30px); min-height: 420px; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-3); overflow: hidden; }
.md.is-open { grid-template-columns: calc((100% - 2 * var(--md-gap)) / 3) minmax(0, 1fr); }
.md.is-open .md__list { grid-template-columns: minmax(0, 1fr); }
.md.is-open .md__pane { display: flex; }
.md__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scroll-behavior: smooth; }
.md__body.is-loading > * { opacity: .4; transition: opacity var(--d-1); }
.md__pane .detail__band { padding-right: 64px; }
.md__close { position: absolute; z-index: 5; top: 7px; right: 8px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); transition: background-color var(--d-1), transform var(--d-2) var(--ease), box-shadow var(--d-2) var(--ease); }
.md__close:hover { background: var(--ink); color: #fff; border-color: var(--ink); transform: rotate(90deg); }
.md__close:active { transform: rotate(90deg) scale(.92); }
.md__close .i { width: 18px; height: 18px; }
.md__skeleton { display: grid; gap: 14px; padding: 22px; }
.md__skeleton span { display: block; height: 14px; border-radius: 7px; background: linear-gradient(90deg, var(--bg-2) 0%, var(--surface-2) 50%, var(--bg-2) 100%) 0 0 / 200% 100%; animation: shimmer 1.2s linear infinite; }
.md__skeleton span:nth-child(1) { height: 30px; width: 70%; }
.md__skeleton span:nth-child(2) { width: 40%; }
.md__skeleton span:nth-child(3) { height: 120px; border-radius: var(--r); }
.md__skeleton span:nth-child(4) { width: 85%; }
.md__skeleton span:nth-child(5) { width: 60%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.md.is-animating .md-item { pointer-events: none; }
.md.is-animating .md__list { position: relative; z-index: 1; }
@media (max-width: 1020px) {
  .md, .md.is-open { grid-template-columns: minmax(0, 1fr); }
  .md__list, .md.is-open .md__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md__pane, .md.is-open .md__pane { display: none; }
  .md .md-item[aria-current="true"] { border-color: var(--line); box-shadow: var(--sh-1); background: var(--surface); }
}
@media (max-width: 680px) { .md__list, .md.is-open .md__list { grid-template-columns: minmax(0, 1fr); } }

.alert-strip { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px 16px; align-items: center; margin-top: 8px; padding: 16px 18px; border-radius: var(--r-md); background: var(--surface); border: 1px dashed var(--line-2); }
.alert-strip strong { color: var(--ink); }
.alert-strip p { font-size: .9rem; color: var(--muted); }
.md.is-open .alert-strip { grid-template-columns: auto minmax(0, 1fr); }
.md.is-open .alert-strip .btn { grid-column: 1 / -1; justify-self: start; }
@media (max-width: 680px) { .alert-strip { grid-template-columns: auto minmax(0, 1fr); } .alert-strip .btn { grid-column: 1 / -1; justify-self: start; } }

.md-item { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto auto 1fr; gap: 6px 16px; padding: var(--card-pad); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--sh-1); transition: border-color var(--d-1), box-shadow var(--d-2) var(--ease), background-color var(--d-1); }
.md-item:hover { border-color: var(--line-2); box-shadow: var(--sh-2); }
.md-item[aria-current="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--sh-2); background: var(--accent-tint); }
.md-item > .ico-tile, .md-item--person > .avatar { grid-row: span 4; }
.md-item__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.md-item__trade { display: inline-flex; align-items: center; gap: 6px; font-size: .7rem; font-weight: 750; text-transform: uppercase; letter-spacing: .09em; color: var(--accent-text); min-width: 0; }
.md-item__trade span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.md-item__trade .i { width: 14px; height: 14px; }
.md-item__time { font-size: .76rem; color: var(--subtle); white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.md-item__title { font-size: 1.02rem; font-weight: 750; line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); }
.md__list .md-item:not(.md-item--person) .md-item__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.md-item__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.md-item__company { display: flex; align-items: center; gap: 6px; min-height: 26px; font-size: .85rem; color: var(--muted); min-width: 0; }
.md-item__company > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.md-item__facts { display: flex; flex-wrap: wrap; align-items: center; align-self: end; gap: 6px 16px; font-size: .87rem; color: var(--ink-2); margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.md-item--person .md-item__facts { border-top: 0; padding-top: 0; }
/* job cards: the facts line runs under the icon too (full width, less wrapping); free height collects above it */
.md-item:not(.md-item--person) { grid-template-rows: auto auto 1fr auto; }
.md-item:not(.md-item--person) > .ico-tile { grid-row: 1 / span 3; }
.md-item:not(.md-item--person) .md-item__facts { grid-column: 1 / -1; }
.md-item:not(.md-item--person) .md-item__company { align-self: start; }
/* the 2-line title reserve only matters when cards sit side by side */
.md.is-open .md__list .md-item .md-item__title { min-height: 0; }
@media (max-width: 680px) { .md__list .md-item:not(.md-item--person) .md-item__title { min-height: 0; } }
.md-item__company.is-locked > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.md-item__company.is-locked .i { width: 14px; height: 14px; color: var(--subtle); }
.md-item__facts > span { display: inline-flex; align-items: center; gap: 6px; }
.md-item__facts .i { width: 15px; height: 15px; color: var(--subtle); }
.md-item__facts .rate { font-size: .95rem; }

.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 24px; }
.pagination a, .pagination span { min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px; display: inline-grid; place-items: center; border: 1px solid var(--line); background: var(--surface); font-size: .9rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.pagination a:hover { border-color: var(--line-2); }
.pagination [aria-current="page"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

/* legacy listing pieces still used by some pages */
.listing { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 1020px) { .listing { grid-template-columns: minmax(0, 1fr); } }
.filters { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 20px; }
@media (max-width: 1020px) { .filters { position: static; } .filters[data-collapsible]:not(.is-open) .filters__body { display: none; } }
.filters__toggle { display: none; }
@media (max-width: 1020px) { .filters__toggle { display: inline-flex; } }
.filters__body { display: grid; gap: 20px; }
.filter-group { display: grid; gap: 8px; }
.filter-group__title { font-size: var(--t-label); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--subtle); }
.filter-list { display: grid; gap: 2px; max-height: 320px; overflow: auto; }
.filter-list a, .filter-list label { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 10px; border-radius: 8px; font-size: .9rem; cursor: pointer; transition: background-color var(--d-1); }
.filter-list a:hover, .filter-list label:hover { background: var(--surface); }
.filter-list a[aria-current="true"] { background: var(--accent-tint); color: var(--accent-text); font-weight: 650; }
.filter-list .count { font-size: .76rem; color: var(--subtle); font-variant-numeric: tabular-nums; }
.result-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; color: var(--muted); font-size: .9rem; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.active-filters a { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px 4px 12px; border-radius: 999px; background: var(--accent-tint); color: var(--accent-text); font-size: .8rem; }
.job-list { display: grid; gap: 14px; }
.job-list--grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
@media (max-width: 400px) { .job-list--grid { grid-template-columns: minmax(0, 1fr); } }

.empty { display: grid; justify-items: center; text-align: center; gap: 12px; padding: clamp(36px, 5vw, 64px) 24px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); color: var(--muted); background: color-mix(in oklab, var(--surface) 60%, transparent); }
.empty__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--accent-tint); color: var(--accent-text); }
.empty__icon .i { width: 26px; height: 26px; }
.empty h3 { color: var(--ink); font-size: 1.2rem; }
.empty p { max-width: 46ch; }

/* ---------------------------------------------------------------- Map search view (MapLibre) */
.mapview { display: grid; grid-template-columns: minmax(330px, 410px) minmax(0, 1fr); gap: 0; height: calc(100dvh - var(--header-h) - var(--filterbar-h, 80px)); min-height: 540px; border-top: 1px solid var(--line); }
.mapview__list { overflow-y: auto; padding: 14px; display: grid; gap: 10px; align-content: start; background: var(--bg); border-right: 1px solid var(--line); }
.mapview__map { position: relative; background: #dfe8f3; }
.mapview__map #jobs-map { position: absolute; inset: 0; }
.mapview__note { position: absolute; z-index: 2; left: 12px; bottom: 12px; padding: 6px 10px; border-radius: 8px; background: rgba(255, 255, 255, .92); box-shadow: var(--sh-1); font-size: .76rem; color: var(--muted); }
@media (max-width: 1020px) { .mapview { grid-template-columns: minmax(0, 1fr); grid-template-rows: 60vh auto; height: auto; } .mapview__map { grid-row: 1; } .mapview__list { border-right: 0; } }
.maplibregl-map { font-family: var(--f) !important; }
.maplibregl-ctrl-group { border-radius: 10px !important; box-shadow: var(--sh-2) !important; overflow: hidden; }
.maplibregl-ctrl-attrib { font-size: 10px !important; }
.maplibregl-popup-content { padding: 0 !important; border-radius: var(--r-md) !important; box-shadow: var(--sh-3) !important; overflow: hidden; }
.maplibregl-popup-close-button { width: 28px; height: 28px; font-size: 18px; color: var(--subtle); z-index: 2; }
.maplibregl-popup-tip { display: none; }
.maplibregl-ctrl-group button { width: 34px !important; height: 34px !important; }
.maplibregl-popup { z-index: 5; }
.map-marker { position: relative; width: 44px; height: 52px; cursor: pointer; }
.map-marker__pin { position: absolute; left: 4px; top: 2px; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border-radius: 50% 50% 50% 6px; transform: rotate(-45deg); transform-origin: center; background: var(--accent); border: 3px solid #fff; box-shadow: 0 8px 16px -6px rgba(15, 29, 58, .5); cursor: pointer; transition: background-color var(--d-1), transform var(--d-2) var(--ease); }
.map-marker__pin:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.map-marker__icon { display: grid; place-items: center; transform: rotate(45deg); color: var(--on-accent); }
.map-marker__icon .i { width: 17px; height: 17px; stroke-width: 2.2; }
.map-marker::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 14px; height: 5px; margin-left: -7px; border-radius: 50%; background: rgba(15, 29, 58, .22); filter: blur(1px); }
.map-marker__count { position: absolute; top: -4px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: .7rem; font-weight: 800; border: 2px solid #fff; font-variant-numeric: tabular-nums; pointer-events: none; }
.map-marker:hover .map-marker__pin, .map-marker.is-hover .map-marker__pin, .map-marker.is-active .map-marker__pin { background: var(--ink); transform: rotate(-45deg) scale(1.08); }
.map-marker:hover .map-marker__icon, .map-marker.is-hover .map-marker__icon, .map-marker.is-active .map-marker__icon { color: #fff; }
.map-marker.is-hover, .map-marker.is-active { z-index: 3; }
.map-label { font-size: .74rem; font-weight: 650; color: var(--ink-3); white-space: nowrap; pointer-events: none; text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff; display: none; }
.map-label::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: var(--ink-3); vertical-align: 1px; box-shadow: 0 0 0 2px #fff; }
.map-label--major, .is-near .map-label, .map-label--country { display: block; }
.map-label--major { font-weight: 700; color: var(--ink-2); }
.map-label--country { font-size: .68rem; font-weight: 750; letter-spacing: .2em; text-transform: uppercase; color: color-mix(in oklab, var(--ink) 42%, transparent); }
.map-label--country::before { display: none; }
.map-pop { display: grid; width: 320px; max-width: calc(100vw - 40px); }
.map-pop__head { display: flex; align-items: center; gap: 8px; padding: 12px 40px 10px 14px; border-bottom: 1px solid var(--line); font-size: .84rem; font-weight: 650; color: var(--ink-2); }
.map-pop__head b { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-tint); color: var(--accent-text); font-size: .74rem; }
.map-pop__list { display: grid; max-height: 330px; overflow-y: auto; overscroll-behavior: contain; }
.map-pop__job { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px 12px; align-items: start; padding: 12px 14px; color: var(--ink-2); transition: background-color var(--d-1); }
.map-pop__job + .map-pop__job { border-top: 1px solid var(--line); }
.map-pop__job:hover, .map-pop__job.is-current { background: var(--accent-tint); }
.map-pop__job .ico-tile { grid-row: span 3; width: 40px; height: 40px; }
.map-pop__job .ico-tile .i { width: 19px; height: 19px; }
.map-pop__title { font-weight: 750; color: var(--ink); line-height: 1.25; font-size: .94rem; }
.map-pop__meta { font-size: .8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-pop__facts { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .8rem; color: var(--subtle); }
.map-pop__rate { font-weight: 750; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- Job detail (pane + full page) */
.detail { display: grid; }
.detail__band { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 10px 22px; background: color-mix(in oklab, var(--accent-tint) 92%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--accent-text); border-bottom: 1px solid color-mix(in oklab, var(--accent) 14%, var(--line)); font-size: var(--t-label); font-weight: 750; text-transform: uppercase; letter-spacing: .09em; }
.detail__band > span { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.detail__band .i { width: 16px; height: 16px; }
.detail__band .flag { box-shadow: 0 0 0 1px rgba(15, 29, 58, .12); }
.detail__head { display: grid; gap: 16px; padding: 22px 22px 20px; border-bottom: 1px solid var(--line); }
.detail__title { font-size: clamp(1.45rem, 1.2rem + .9vw, 2rem); line-height: 1.15; }
.detail__company { display: flex; align-items: center; gap: 10px; min-width: 0; flex-wrap: wrap; }
.detail__company strong { font-weight: 700; color: var(--ink); }
.detail__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.detail__section { display: grid; gap: 10px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.detail__section:last-child { border-bottom: 0; }
.detail__section h2 { font-size: 1.05rem; letter-spacing: -0.01em; }
.detail .prose { font-size: .97rem; }
.detail .prose ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.detail .prose ul li { position: relative; padding-left: 26px; }
.detail .prose ul li::before { content: ""; position: absolute; left: 0; top: .2em; width: 16px; height: 16px; border-radius: 50%; background: var(--accent-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b64a12' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat; }
[data-aud="firms"] .detail .prose ul li::before, .aud-firms .detail .prose ul li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f4bd8' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }

.spec { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.spec > div { min-width: 0; padding: 12px 14px; display: grid; gap: 4px; align-content: start; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); }
.spec dt { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--subtle); display: flex; align-items: center; gap: 6px; }
.spec dt .i { width: 14px; height: 14px; }
.spec dd { font-weight: 650; font-size: .97rem; color: var(--ink); display: flex; align-items: center; gap: 7px; min-width: 0; overflow-wrap: anywhere; }
.spec dd.rate { font-size: 1.12rem; color: var(--accent-text); }

.job-page { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(20px, 3vw, 36px); align-items: start; padding-bottom: 48px; }
@media (max-width: 1020px) { .job-page { grid-template-columns: minmax(0, 1fr); } }
.job-page__main { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-1); }
.job-page__main .detail__band { position: static; }
.job-page__main .detail__head { padding: clamp(20px, 3vw, 32px); }
.job-page__main .detail__title { font-size: var(--t-h1); }
.app-job .job-page__main .detail__title { font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2.3rem); }
.job-page__main .detail__section { padding: 22px clamp(20px, 3vw, 32px); }
.job-page__main .detail__section h2 { font-size: 1.18rem; }
.job-detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(24px, 3vw, 44px); align-items: start; }
@media (max-width: 1020px) { .job-detail { grid-template-columns: minmax(0, 1fr); } }
.job-section { padding-block: 24px; border-bottom: 1px solid var(--line); display: grid; gap: 12px; }
.job-section:last-child { border-bottom: 0; }
.job-section h2 { font-size: 1.25rem; }
.sidebar-card { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 12px; }
.apply { display: grid; gap: 14px; padding: 20px; }
.apply__rate { display: grid; gap: 4px; }
.apply__rate .rate { font-size: 1.8rem; letter-spacing: -0.025em; color: var(--accent-text); }
.apply-card { display: grid; gap: 14px; }
.mobile-apply { display: none; }
@media (max-width: 1020px) {
  .sidebar-card { position: static; }
  .mobile-apply { display: flex; position: fixed; z-index: 40; left: 10px; right: 10px; bottom: 10px; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 14px; background: var(--ink); color: #fff; box-shadow: var(--sh-3); align-items: center; }
  .mobile-apply .rate { color: #fff; margin-right: auto; font-size: .98rem; }
  body:has(.impersonate-bar) .mobile-apply { bottom: calc(58px + env(safe-area-inset-bottom)); }
}

/* ---------------------------------------------------------------- App shell
   Desktop: sticky sidebar + top bar. Phones/tablets (≤ 1020 px): a slim top bar (logo, one main action,
   menu button) and the very same sidebar sliding in from the left – no bottom tab bar, which would sit on
   top of the browsers' own bottom toolbars. */
.page-app { background: var(--bg); --header-h: 64px; }
.app { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.app-side { position: sticky; top: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; gap: 18px; padding: 16px 12px; border-right: 1px solid var(--line); background: var(--surface); overflow-y: auto; overscroll-behavior: contain; }
.app-side__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.app-side .logo { padding: 6px 8px 4px; }
.app-side__close, .app-scrim, .app-menu-btn { display: none; }
.app-nav { display: grid; gap: 2px; }
.app-nav__label { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--subtle); padding: 16px 10px 6px; }
.app-nav a { position: relative; display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; font-size: .93rem; font-weight: 580; color: var(--ink-2); transition: background-color var(--d-1), color var(--d-1); }
.app-nav a .i { width: 19px; height: 19px; color: var(--subtle); transition: color var(--d-1); }
.app-nav a:hover { background: var(--surface-2); color: var(--ink); }
.app-nav a[aria-current="page"] { background: var(--accent-tint); color: var(--ink); font-weight: 700; }
.app-nav a[aria-current="page"] .i { color: var(--accent-text); }
.app-nav .count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: inline-grid; place-items: center; background: var(--accent); color: var(--on-accent); font-size: .7rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.app-side__foot { margin-top: auto; display: grid; gap: 4px; }
.app-side__help { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px; font-size: .88rem; color: var(--muted); }
.app-side__help .i { width: 18px; height: 18px; }
.app-side__cookies { display: none; }
@media (max-width: 760px) { .app-side__cookies { display: flex; } } /* phones have no cookie button */
.app-side__help:hover { background: var(--surface-2); color: var(--ink); }
.app-user { display: flex; align-items: center; gap: 10px; margin-top: 4px; padding: 10px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface-2); }
.app-user__name { font-weight: 650; font-size: .88rem; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.app-user__meta { font-size: .76rem; color: var(--subtle); }
/* Wallet (sidebar): light card, the coin tile in the firm accent, a clear "Dobiť" when empty */
.wallet { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); transition: border-color var(--d-1), box-shadow var(--d-2) var(--ease); }
.wallet:hover { border-color: color-mix(in oklab, var(--accent) 35%, var(--line)); box-shadow: var(--sh-2); }
.wallet__icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 14px -8px color-mix(in oklab, var(--accent) 90%, transparent); }
.wallet__icon .i { width: 21px; height: 21px; stroke-width: 2; }
.wallet__body { display: grid; gap: 1px; min-width: 0; }
.wallet__label { font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--subtle); }
.wallet__value { font-size: 1.35rem; font-weight: 850; line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.wallet__value small { font-size: .78rem; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.wallet__free { grid-column: 1 / -1; display: grid; gap: 7px; margin-top: 1px; padding-top: 10px; border-top: 1px dashed var(--line); }
.wallet__free-label { display: flex; align-items: center; gap: 6px; font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--success); white-space: nowrap; }
.wallet__free-label .i { width: 13px; height: 13px; flex: none; }
.wallet__free-items { display: flex; flex-wrap: wrap; gap: 6px; }
.wallet__free-items > span { white-space: nowrap; padding: 3px 9px; border-radius: 999px; font-size: .78rem; font-weight: 650; color: var(--ink-2); background: color-mix(in oklab, var(--success) 10%, var(--surface)); border: 1px solid color-mix(in oklab, var(--success) 22%, transparent); }
.wallet__cta { display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 9px; background: var(--accent-tint); color: var(--accent-text); font-size: .8rem; font-weight: 750; border: 1px solid color-mix(in oklab, var(--accent) 22%, transparent); }
.wallet__cta .i { width: 16px; height: 16px; }
.wallet.is-empty { background: var(--accent-tint); border-color: color-mix(in oklab, var(--accent) 30%, transparent); }
.wallet.is-empty .wallet__value { color: var(--muted); }
.wallet.is-empty .wallet__cta { background: var(--accent); color: var(--on-accent); border-color: transparent; padding: 0 12px; }
.credits-pill { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px 0 5px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line-2); color: var(--ink); font-size: .86rem; font-weight: 750; font-variant-numeric: tabular-nums; transition: border-color var(--d-1); }
.credits-pill:hover { border-color: var(--ink-3); }
.credits-pill__icon { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-tint); color: var(--accent-text); }
.credits-pill__icon .i { width: 16px; height: 16px; }
.credits-pill__unit { font-weight: 550; color: var(--muted); }
.credits-pill--empty { background: var(--accent-tint); border-color: color-mix(in oklab, var(--accent) 30%, transparent); color: var(--accent-text); }
.credits-pill--empty .credits-pill__icon { background: var(--accent); color: var(--on-accent); }
.app-main { min-width: 0; display: flex; flex-direction: column; }
/* Big monitors: the content column grows with the viewport up to --app-max and stays centred;
   the top bar lines up with it, so nothing hugs the sidebar with an empty strip on the right. */
.app-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 max(var(--app-pad), calc((100% - var(--app-max)) / 2)); background: color-mix(in oklab, var(--surface) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.app-top__title { font-weight: 700; font-size: .96rem; color: var(--ink); }
.app-top .logo { display: none; }
.app-top__right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.app-menu-btn { position: relative; }
.app-menu-btn__dot { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-size: .64rem; font-weight: 800; box-shadow: 0 0 0 2px var(--surface); font-variant-numeric: tabular-nums; }
.app-content { padding: clamp(20px, .6rem + 2vw, 44px) var(--app-pad) clamp(48px, 5vw, 80px); width: 100%; max-width: calc(var(--app-max) + 2 * var(--app-pad)); margin-inline: auto; }
/* in-app search: full-bleed filter bar and grid like on the public archive */
.app-content--flush { padding: 0; max-width: none; }
.app-content--flush .filterbar { top: 64px; }
.app-content--flush .container--wide { max-width: calc(var(--app-max) + 2 * var(--app-pad)); padding-inline: var(--app-pad); }
.page-app .mapview { height: calc(100dvh - 64px - var(--filterbar-h, 80px)); }
.app-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; margin-bottom: var(--stack-gap); }
.app-head h1 { font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2.25rem); }
.app-head p { color: var(--muted); margin-top: 6px; }
@media (max-width: 1020px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .app-side {
    position: fixed; z-index: 310; top: 0; left: 0; bottom: 0; width: min(320px, 86vw); height: auto;
    padding: 12px 12px calc(14px + env(safe-area-inset-bottom)); border-right: 0; box-shadow: var(--sh-3);
    transform: translateX(-104%); visibility: hidden; transition: transform var(--d-3) var(--ease), visibility 0s linear var(--d-3);
  }
  .app.is-menu-open .app-side, .app-side:target { transform: none; visibility: visible; transition: transform var(--d-3) var(--ease), visibility 0s; }
  .app-side__close { display: inline-flex; }
  .app-scrim { display: block; position: fixed; inset: 0; z-index: 305; background: rgba(15, 29, 58, .42); opacity: 0; pointer-events: none; transition: opacity var(--d-2); }
  .app.is-menu-open .app-scrim, .app-side:target + .app-scrim { opacity: 1; pointer-events: auto; }
  .app-nav a { padding: 12px; font-size: .97rem; }
  .app-top { height: 60px; gap: 10px; }
  .page-app { --header-h: 60px; }
  .app-content--flush .filterbar { top: 60px; }
  .app-top .logo { display: inline-flex; font-size: 1.28rem; }
  .app-top .logo__mark { width: 30px; height: 30px; }
  .app-top__title, .app-top__desk { display: none; }
  .app-menu-btn { display: inline-flex; }
}

/* KPI tiles */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--grid-gap); }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpis.kpis--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 680px) { .kpis.kpis--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpis--3 > :last-child { grid-column: 1 / -1; } }
.kpi { display: grid; gap: 8px; padding: var(--card-pad); border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); transition: border-color var(--d-1), box-shadow var(--d-2); }
a.kpi:hover { border-color: var(--line-2); box-shadow: var(--sh-2); }
.kpi__label { display: flex; align-items: center; justify-content: space-between; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--subtle); }
.kpi__label .i { width: 18px; height: 18px; color: var(--faint); }
.kpi__value { font-size: 2.05rem; font-weight: 850; letter-spacing: -0.035em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.kpi__sub { font-size: .8rem; color: var(--subtle); }
.kpi--accent { background: var(--ink); color: #fff; border-color: var(--ink); }
.kpi--accent .kpi__value { color: #fff; }
.kpi--accent .kpi__label, .kpi--accent .kpi__sub { color: rgba(255, 255, 255, .68); }
.kpi--accent .kpi__label .i { color: var(--accent); }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: var(--grid-gap); margin-top: var(--grid-gap); align-items: start; }
.dash-grid > .stack { --gap: var(--grid-gap); }
@media (max-width: 1100px) { .dash-grid { grid-template-columns: minmax(0, 1fr); } }
/* admin overview: jobs (orange) and workers (blue) side by side */
.dash-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--grid-gap); margin-top: var(--grid-gap); align-items: start; }
@media (max-width: 1100px) { .dash-duo { grid-template-columns: minmax(0, 1fr); } }
.dash-duo .card { display: grid; gap: 18px; }
.dash-duo .card__head { margin-bottom: 0; }
.dash-duo .card__title { display: inline-flex; align-items: center; gap: 9px; }
.dash-duo .card__title .i { color: var(--accent-text); }
.search-panel--compact { box-shadow: none; }
.search-panel--compact > .btn { min-height: 48px; padding-inline: 18px; }
.search-panel--compact .search-panel__field { padding-block: 5px; }

/* Meter + checklist */
.meter { height: 6px; border-radius: 3px; background: var(--bg-2); overflow: hidden; }
.meter span { display: block; height: 100%; width: var(--w, 0%); background: var(--accent); border-radius: inherit; transition: width 1s var(--ease); }
.ring { --p: 0; --size: 112px; width: var(--size); height: var(--size); position: relative; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 3.2; }
.ring .track { stroke: var(--bg-2); }
.ring .bar { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 100 100; stroke-dashoffset: calc(100 - var(--p)); transition: stroke-dashoffset 1.2s var(--ease); }
.ring__label { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 850; font-size: 1.5rem; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.checklist { display: grid; gap: 2px; }
.checklist a, .checklist div { display: flex; align-items: center; gap: 11px; padding: 8px 10px; margin-inline: -10px; border-radius: 8px; font-size: .92rem; }
.checklist a:hover { background: var(--surface-2); }
.checklist .tick { width: 20px; height: 20px; flex: none; border-radius: 6px; display: grid; place-items: center; border: 1.5px solid var(--line-2); }
.checklist .is-done .tick { background: var(--success); border-color: var(--success); color: #fff; }
.checklist .is-done span { color: var(--subtle); text-decoration: line-through; text-decoration-color: var(--line-2); }
.checklist .tick .i { width: 12px; height: 12px; stroke-width: 3; }

/* Lists / tables */
.list { display: grid; grid-template-columns: minmax(0, 1fr); } /* minmax: long nowrap lines must not widen the card */
.list > * { min-width: 0; }
.list__item { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line); }
.list__item:first-child { border-top: 0; padding-top: 0; }
.list__item:last-child { padding-bottom: 0; }
a.list__item:hover .list__title { color: var(--accent-text); }
.list__title { font-weight: 650; line-height: 1.3; color: var(--ink); transition: color var(--d-1); }
.list__meta { font-size: .82rem; color: var(--subtle); }
.list__end { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: none; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--subtle); padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background-color var(--d-1); }
.table tbody tr:hover { background: var(--accent-tint); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }

/* Tabs */
.tabs { display: flex; gap: 2px; padding: 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); width: max-content; max-width: 100%; overflow-x: auto; }
.tabs a { padding: 8px 14px; border-radius: 9px; font-size: .88rem; font-weight: 650; color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { background: var(--accent-tint); color: var(--accent-text); }
.tabs .count { font-size: .74rem; color: var(--subtle); font-variant-numeric: tabular-nums; }

/* Worker card (legacy) */
.worker-card { position: relative; display: grid; gap: 14px; align-content: start; }
.worker-card__head { display: flex; gap: 12px; align-items: center; }
.worker-card__name { font-weight: 750; font-size: 1.04rem; line-height: 1.25; color: var(--ink); }
.worker-card__name a::after { content: ""; position: absolute; inset: 0; }
.worker-card__bio { color: var(--muted); font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.worker-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .84rem; color: var(--muted); }
.worker-card .save-btn { position: relative; z-index: 2; }
.rating { display: inline-flex; align-items: center; gap: 4px; font-size: .85rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.rating .i { width: 15px; height: 15px; color: #e29a00; fill: #e29a00; }
.stars { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.stars input { position: absolute; opacity: 0; width: 1px; }
.stars label { cursor: pointer; color: var(--line-2); }
.stars label .i { width: 28px; height: 28px; }
.stars input:checked ~ label, .stars label:hover, .stars label:hover ~ label { color: #e29a00; }
.stars input:checked ~ label .i, .stars label:hover .i, .stars label:hover ~ label .i { fill: #e29a00; }

.profile-head { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.profile-head h1 { font-size: clamp(1.7rem, 1.4rem + 1.2vw, 2.4rem); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 9px 22px; font-size: .94rem; }
.kv dt { color: var(--subtle); }
.kv dd { font-weight: 600; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { .kv { grid-template-columns: minmax(0, 1fr); gap: 2px; } .kv dt { font-size: .82rem; } .kv dd { margin-bottom: 10px; } }

/* Locked contact rows (credits unlock) */
.locked { position: relative; display: grid; gap: 8px; }
.locked__row { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.locked__row .blur { filter: blur(5px); user-select: none; pointer-events: none; }
.locked__cta { display: grid; gap: 10px; padding: 14px; border-radius: var(--r); background: var(--accent-tint); border: 1px solid color-mix(in oklab, var(--accent) 26%, transparent); }

/* Applicants */
.applicant { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px 16px; align-items: start; scroll-margin-top: 90px; }
@media (max-width: 760px) { .applicant { grid-template-columns: auto minmax(0, 1fr); } .applicant > .avatar--lg { --size: 48px; } .applicant__actions { grid-column: 1 / -1; justify-content: flex-start; padding-top: 10px; border-top: 1px solid var(--line); } }
.applicant__msg { margin-top: 10px; padding: 11px 13px; border-radius: var(--r-ctl); background: var(--surface-2); border: 1px solid var(--line); font-size: .92rem; white-space: pre-wrap; color: var(--ink-2); }
.applicant__actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.applicant:target { box-shadow: 0 0 0 2px var(--accent); }
.applicant__files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.file-chip { display: inline-flex; align-items: center; gap: 7px; max-width: 280px; padding: 6px 11px 6px 9px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line-2); font-size: .82rem; font-weight: 600; color: var(--ink-2); transition: border-color var(--d-1), box-shadow var(--d-2); }
.file-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-chip .i { color: var(--subtle); }
.file-chip:hover { border-color: var(--ink-3); box-shadow: var(--sh-1); }

/* Bar chart */
.bar-chart { display: flex; align-items: flex-end; gap: 6px; height: 140px; padding-top: 10px; }
.bar-chart__col { flex: 1; display: grid; gap: 6px; justify-items: center; height: 100%; align-content: end; }
.bar-chart__bar { width: 100%; max-width: 32px; border-radius: 6px 6px 2px 2px; background: var(--accent); min-height: 3px; transform-origin: bottom; animation: grow .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms); }
.bar-chart__bar--alt { background: var(--ink); }
.bar-chart__lbl { font-size: .66rem; color: var(--subtle); font-variant-numeric: tabular-nums; }
@keyframes grow { from { transform: scaleY(0); } }

/* Profession picker with steppers */
.prof-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.prof-pick { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 6px 6px 12px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); transition: border-color var(--d-1), background-color var(--d-1), box-shadow var(--d-1); }
.prof-pick__name { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 550; min-width: 0; cursor: pointer; }
.prof-pick__name .i { color: var(--subtle); }
.prof-pick.is-on { border-color: var(--accent-strong); background: var(--accent-tint); box-shadow: inset 0 0 0 1px var(--accent-strong); }
.prof-pick.is-on .prof-pick__name { font-weight: 700; }
.prof-pick.is-on .prof-pick__name .i { color: var(--accent-text); }
.stepper { display: inline-flex; align-items: center; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); flex: none; }
.stepper button { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 7px; color: var(--muted); }
.stepper button:hover { background: var(--surface); color: var(--ink); }
.stepper input { width: 30px; height: 30px; border: 0; background: transparent; text-align: center; font-weight: 750; font-size: .9rem; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; padding: 0; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { outline: none; }

/* ---------------------------------------------------------------- Messages */
@media (min-width: 1021px) { .app-content:has(> .chat) { padding-bottom: clamp(20px, .6rem + 2vw, 44px); } }
.chat { display: grid; grid-template-columns: 340px minmax(0, 1fr); height: calc(100dvh - 64px - 2 * clamp(20px, .6rem + 2vw, 44px)); min-height: 540px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; box-shadow: var(--sh-1); }
@media (max-width: 860px) { .chat { grid-template-columns: minmax(0, 1fr); height: calc(100dvh - 64px - 36px - 76px); } .chat--thread .chat__list { display: none; } .chat:not(.chat--thread) .chat__pane { display: none; } }
.chat__list { display: flex; flex-direction: column; border-right: 1px solid var(--line); min-height: 0; }
.chat__list-head { display: grid; gap: 10px; padding: 16px 16px 12px; border-bottom: 1px solid var(--line); }
.chat__list-head h2 { font-size: 1.2rem; }
.chat__search { position: relative; }
.chat__search .input { min-height: 40px; padding-left: 36px; font-size: .9rem; background: var(--surface-2); }
.chat__search .i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--subtle); pointer-events: none; }
.chat__convs { overflow-y: auto; flex: 1; min-height: 0; padding: 6px; }
.conv { position: relative; display: flex; gap: 11px; padding: 12px; border-radius: var(--r); transition: background-color var(--d-1); }
.conv:hover { background: var(--surface-2); }
.conv[aria-current="page"] { background: var(--accent-tint); }
.conv__body { min-width: 0; flex: 1; display: grid; gap: 2px; }
.conv__top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.conv__name { font-weight: 700; font-size: .94rem; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv__time { font-size: .72rem; color: var(--subtle); white-space: nowrap; font-variant-numeric: tabular-nums; }
.conv__label { display: inline-flex; align-items: center; gap: 5px; width: fit-content; max-width: 100%; font-size: .66rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv__label.is-firm { color: #1f4bd8; }
.conv__label.is-worker { color: #b64a12; }
.conv__label.is-team { color: var(--success); }
.conv__preview { display: flex; align-items: center; gap: 5px; font-size: .84rem; color: var(--muted); overflow: hidden; white-space: nowrap; }
.conv__preview > span { overflow: hidden; text-overflow: ellipsis; }
.conv__preview .i { width: 14px; height: 14px; flex: none; }
.conv.is-unread .conv__name { font-weight: 800; }
.conv.is-unread .conv__preview { color: var(--ink); font-weight: 600; }
.conv__unread { align-self: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-size: .7rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.conv__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; margin-top: 6px; }
.chat__pane { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.chat__head-name { display: flex; align-items: center; gap: 6px; font-weight: 750; color: var(--ink); }
.chat__head-meta { font-size: .82rem; color: var(--subtle); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat__context { display: flex; align-items: center; gap: 10px; padding: 9px 18px; border-bottom: 1px solid var(--line); background: var(--surface-2); font-size: .85rem; color: var(--muted); }
.chat__context a { font-weight: 650; color: var(--ink); }
.chat__context a:hover { color: var(--accent-text); }
.chat__msgs { flex: 1; overflow-y: auto; padding: 20px 18px; display: flex; flex-direction: column; gap: 4px; background: var(--bg); }
.msg-group { display: flex; gap: 10px; align-items: flex-start; max-width: min(640px, 88%); margin-top: 12px; }
.msg-group--cont { margin-top: 3px; }
.msg-group--cont .msg-group__name { display: none; }
.msg-group--cont .msg-group__avatar { visibility: hidden; }
.msg-group__avatar { flex: none; margin-top: 20px; }
.msg-group--me { align-self: flex-end; flex-direction: row-reverse; }
.msg-group__body { display: grid; gap: 4px; min-width: 0; }
.msg-group--me .msg-group__body { justify-items: end; }
.msg-group__name { font-size: .78rem; font-weight: 700; color: var(--ink-2); padding-left: 2px; }
.msg-group__name small { font-weight: 500; color: var(--subtle); margin-left: 6px; }
.msg { max-width: 100%; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: var(--surface); border: 1px solid var(--line); font-size: .95rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink-2); animation: msg-in var(--d-2) var(--ease); }
.msg--me { align-self: flex-end; border-radius: 16px 16px 4px 16px; background: var(--ink); color: #fff; border-color: var(--ink); }
.msg__time { display: block; margin-top: 3px; font-size: .68rem; opacity: .6; font-variant-numeric: tabular-nums; }
.msg-day { align-self: center; margin: 14px 0 4px; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--subtle); padding: 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
@keyframes msg-in { from { opacity: 0; transform: translateY(4px); } }
.attachments { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; width: min(480px, 100%); }
.attachment { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px 8px 8px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line-2); text-align: left; transition: border-color var(--d-1), box-shadow var(--d-2); }
.attachment:hover { border-color: var(--ink-3); box-shadow: var(--sh-1); }
.attachment__icon { position: relative; width: 40px; height: 46px; border-radius: 5px; display: grid; place-items: end center; padding-bottom: 6px; background: var(--bg-2); color: var(--ink-2); font-size: .58rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; clip-path: polygon(0 0, 72% 0, 100% 22%, 100% 100%, 0 100%); }
.attachment__icon::before { content: ""; position: absolute; right: 0; top: 0; width: 28%; height: 22%; background: rgba(0, 0, 0, .14); }
.attachment__icon--pdf { background: #e5483a; color: #fff; }
.attachment__icon--doc { background: #2b5fd9; color: #fff; }
.attachment__icon--xls { background: #1f8a4c; color: #fff; }
.attachment__icon--img { background: #7b4fd6; color: #fff; }
.attachment__icon--zip { background: #6b7480; color: #fff; }
.attachment__thumb { width: 40px; height: 46px; border-radius: 5px; object-fit: cover; background: var(--bg-2); }
.attachment__name { font-size: .86rem; font-weight: 650; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment__size { font-size: .74rem; color: var(--subtle); font-variant-numeric: tabular-nums; }
.attachment__dl { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: var(--subtle); border: 1px solid var(--line); transition: background-color var(--d-1), color var(--d-1); }
.attachment:hover .attachment__dl { background: var(--ink); color: #fff; border-color: var(--ink); }
.attachment__name::after { content: ""; position: absolute; inset: 0; }
.attachment__dl { position: relative; z-index: 1; }
.attachment__name, .attachment__size { display: block; }
.chat__compose { display: grid; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); background: var(--surface); }
.compose-box { display: flex; align-items: flex-end; gap: 6px; padding: 6px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface); transition: border-color var(--d-1), box-shadow var(--d-1); }
.compose-box:focus-within { border-color: var(--accent-strong); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 16%, transparent); }
.compose-box .textarea { flex: 1; min-height: 40px; max-height: 200px; resize: none; border: 0; padding: 9px 8px; box-shadow: none !important; background: transparent; }
.compose-box .btn { flex: none; min-height: 40px; }
.compose-attach { position: relative; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); cursor: pointer; flex: none; transition: background-color var(--d-1), color var(--d-1); }
.compose-attach:hover { background: var(--surface-2); color: var(--ink); }
.compose-attach input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.compose-files { display: flex; flex-wrap: wrap; gap: 6px; }
.compose-file { display: inline-flex; align-items: center; gap: 8px; padding: 5px 6px 5px 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); font-size: .8rem; font-weight: 600; max-width: 260px; }
.compose-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compose-file small { color: var(--subtle); font-weight: 500; }
.compose-file button { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; color: var(--subtle); }
.compose-file button:hover { background: var(--bg-2); color: var(--ink); }
.compose-hint { font-size: .74rem; color: var(--subtle); }
@media (max-width: 760px) { .compose-box .btn .hide-sm, .compose-hint .hide-sm { display: none; } .compose-box .btn { width: 40px; padding: 0; } }
.chat__empty { flex: 1; display: grid; place-items: center; text-align: center; color: var(--muted); padding: 32px; }

/* ---------------------------------------------------------------- Credits & packages */
.packages { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.package { position: relative; cursor: pointer; }
.package > input { position: absolute; opacity: 0; }
.package .board { height: 100%; transition: border-color var(--d-1), box-shadow var(--d-2); }
.package:hover .board { border-color: var(--ink-3); }
.package > input:checked + .board { border-color: var(--accent-strong); box-shadow: inset 0 0 0 1px var(--accent-strong), var(--sh-2); }
.package > input:focus-visible + .board { outline: 2px solid var(--accent-strong); outline-offset: 2px; }
.package__credits { font-size: 2rem; font-weight: 850; letter-spacing: -0.03em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.package__credits small { font-size: .9rem; font-weight: 650; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.package__price { font-weight: 700; font-variant-numeric: tabular-nums; }
.package .board { display: flex; flex-direction: column; }
.package .board__body { display: grid; gap: 8px; flex: 1; align-content: start; }
.package .board__band { justify-content: space-between; gap: 8px; }
.package__fits { line-height: 1.4; }
.packages--order { grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); }
.package--custom .input-group > .input { padding-right: 84px; min-height: 42px; font-weight: 700; }
@media (max-width: 560px) {
  .packages--order { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .packages--order .package--custom { grid-column: 1 / -1; }
  .packages--order .package__credits { font-size: 1.6rem; }
  .packages--order .board__body { padding: 12px; }
}

/* Credit order: steps on the left, sticky summary on the right */
.order { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); gap: var(--grid-gap); align-items: start; margin-top: var(--stack-gap); }
.order__main { display: grid; gap: var(--grid-gap); min-width: 0; }
.order__aside { position: sticky; top: calc(var(--app-top, 0px) + 20px); }
@media (max-width: 1020px) { .order { grid-template-columns: minmax(0, 1fr); } .order__aside { position: static; } }
.order-step { display: grid; gap: 16px; }
.order-step__title { display: flex; align-items: center; gap: 12px; font-size: 1.08rem; }
.order-step__num { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--accent-tint); color: var(--accent-text); font-size: .9rem; font-weight: 800; border: 1px solid color-mix(in oklab, var(--accent) 22%, transparent); }
.order-step__lead { margin: -6px 0 0; }
.order-note summary { cursor: pointer; font-size: .9rem; font-weight: 650; color: var(--ink-2); width: fit-content; }
.order-note summary:hover { color: var(--accent-text); }
.pay-options { display: grid; gap: 10px; }
.pay-option { position: relative; cursor: pointer; }
.pay-option input { position: absolute; opacity: 0; }
.pay-option__box { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); transition: border-color var(--d-1), box-shadow var(--d-2); }
.pay-option__box > span:last-child { display: grid; gap: 3px; }
.pay-option__box strong { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--ink); }
.pay-option:hover .pay-option__box { border-color: var(--ink-3); }
.pay-option input:checked + .pay-option__box { border-color: var(--accent-strong); box-shadow: inset 0 0 0 1px var(--accent-strong); }
.pay-option input:focus-visible + .pay-option__box { outline: 2px solid var(--accent-strong); outline-offset: 2px; }
.pay-option.is-disabled { cursor: not-allowed; }
.pay-option.is-disabled .pay-option__box { background: var(--bg); border-style: dashed; }
.pay-option.is-disabled .ico-tile { filter: grayscale(1); opacity: .6; }
.order-summary .board__body { display: grid; gap: 16px; padding: 20px; }
.order-summary__rows { display: grid; }
.order-summary__rows > div { display: flex; justify-content: space-between; gap: 12px; padding-block: 9px; border-top: 1px solid var(--line); font-size: .94rem; }
.order-summary__rows > div:first-child { border-top: 0; padding-top: 0; }
.order-summary__rows dt { color: var(--muted); }
.order-summary__rows dd { font-weight: 650; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.order-summary__total { margin-top: 4px; border-top: 2px solid var(--ink) !important; padding-top: 12px !important; }
.order-summary__total dt { color: var(--ink); font-weight: 750; }
.order-summary__total dd { font-size: 1.35rem; font-weight: 850; letter-spacing: -0.02em; }
.order-summary__fine { margin: -4px 0 0; }
.order-howto { display: grid; gap: 12px; counter-reset: howto; padding: 0; list-style: none; font-size: .93rem; color: var(--ink-2); }
.order-howto li { counter-increment: howto; position: relative; padding-left: 36px; line-height: 1.5; }
.order-howto li::before { content: counter(howto); position: absolute; left: 0; top: 0; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--bg-2); font-size: .78rem; font-weight: 800; color: var(--ink); }
.order-howto strong { color: var(--ink); }
.pay-details { display: grid; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.pay-details > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px; align-items: center; padding: 11px 16px; border-top: 1px solid var(--line); font-size: .94rem; }
.pay-details > div:first-child { border-top: 0; }
.pay-details > div:nth-child(odd) { background: var(--bg); }
.pay-details dt { color: var(--muted); }
.pay-details dd { color: var(--ink); font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .pay-details > div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
.copy-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 8px 4px 10px; margin: -4px 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; transition: border-color var(--d-1); }
.copy-chip:hover { border-color: var(--ink-3); }
.copy-chip code { font-family: inherit; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.copy-chip .i { color: var(--subtle); }
.order-address { font-style: normal; line-height: 1.6; }

/* Public price list (/cennik) – packages from the admin price list */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: var(--grid-gap); align-items: stretch; }
.tier { position: relative; display: flex; flex-direction: column; gap: 14px; padding: var(--card-pad); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.tier--featured { border-color: color-mix(in oklab, var(--accent) 45%, var(--line)); box-shadow: 0 0 0 1px color-mix(in oklab, var(--accent) 25%, transparent), var(--sh-2); background: linear-gradient(180deg, var(--accent-tint), var(--surface) 42%); }
.tier__flag { position: absolute; top: -11px; left: var(--card-pad); padding: 3px 10px; border-radius: 999px; background: var(--accent); color: var(--on-accent, #fff); font-size: .7rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.tier__name { font-size: .78rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; color: var(--subtle); }
.tier__credits { font-size: clamp(2.2rem, 1.6rem + 1.6vw, 3rem); font-weight: 850; letter-spacing: -0.035em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.tier__credits small { font-size: 1rem; font-weight: 650; letter-spacing: 0; color: var(--muted); margin-left: 6px; }
.tier__price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--line); }
.tier__price b { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.tier__price span { font-size: .85rem; color: var(--muted); }
.tier__meta { margin: -8px 0 0; font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.tier .check-list { margin-bottom: auto; }
.tier > .btn { align-self: stretch; justify-content: center; margin-top: 4px; }
.tiers__note { margin: 18px 0 0; }
.tiers-empty { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: var(--card-pad); background: var(--surface); border: 1px dashed color-mix(in oklab, var(--accent) 40%, var(--line)); border-radius: var(--r-lg); }
.tiers-empty h3 { font-size: 1.12rem; margin-bottom: 4px; }
.tiers-empty p { margin: 0; max-width: 64ch; }
@media (max-width: 760px) { .tiers-empty { grid-template-columns: minmax(0, 1fr); } .tiers-empty .btn { justify-self: start; } }
.pricing-editor__group { display: grid; gap: 14px; margin: 0; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2, var(--bg)); min-width: 0; }
.pricing-editor__group legend { padding: 0 6px; margin-left: -6px; font-size: .74rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--subtle); }
.pricing-editor__group .field .hint { margin-top: 2px; }
.pricing-editor__table .input { min-height: 38px; }
.pricing-editor__table td.num .input { text-align: right; max-width: 140px; margin-left: auto; }
@media (max-width: 680px) { .pricing-editor__table td.num .input { max-width: none; text-align: left; } }
.ledger-amount { font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ledger-amount--plus { color: var(--success); }
.ledger-amount--minus { color: var(--ink-2); }

/* ---------------------------------------------------------------- Dialog */
dialog.modal { border: 0; padding: 0; border-radius: var(--r-lg); background: var(--surface); color: var(--ink-2); width: min(540px, calc(100% - 32px)); box-shadow: var(--sh-3); }
dialog.modal::backdrop { background: rgba(15, 29, 58, .45); }
dialog.modal[open] { animation: modal-in var(--d-3) var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px); } }
.modal__body { padding: 24px; display: grid; gap: 16px; }
.modal__head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.modal__foot { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- Notices */
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); font-size: .92rem; }
.notice > .i { margin-top: 2px; flex: none; }
.notice--warning { background: var(--warning-soft); border-color: color-mix(in oklab, var(--warning) 22%, transparent); color: #5e3a05; }
.notice--info { background: var(--info-soft); border-color: color-mix(in oklab, var(--info) 22%, transparent); color: #172f8f; }
.notice--success { background: var(--success-soft); border-color: color-mix(in oklab, var(--success) 22%, transparent); color: #0f5134; }
.notice--danger { background: var(--danger-soft); border-color: color-mix(in oklab, var(--danger) 22%, transparent); color: #7f2414; }
.notice--accent { background: var(--accent-tint); border-color: color-mix(in oklab, var(--accent) 26%, transparent); }
.notice--actions { flex-wrap: wrap; align-items: center; }
.notice--actions > div:not(.notice__actions) { flex: 1 1 260px; }
.notice__actions { display: flex; flex-wrap: wrap; gap: 6px; }
.notice__actions form { display: contents; }

/* Admin: moderation cards (content | actions; stacked on phones) */
.mod-card { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 14px 28px; align-items: start; }
@media (max-width: 760px) { .mod-card { grid-template-columns: minmax(0, 1fr); } .mod-card__actions { padding-top: 14px; border-top: 1px solid var(--line); } }

/* Admin tools on a job page */
.admin-job__body { display: grid; gap: 12px; padding: 16px; }
.admin-job__firm { display: flex; align-items: center; gap: 10px; }
.admin-job__firm > div { display: grid; }
.admin-job__name { font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-job__name:hover { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.admin-job__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.admin-job__stats > div { padding: 8px 10px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line); }
.admin-job__stats dt { font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--subtle); }
.admin-job__stats dd { font-weight: 750; color: var(--ink); font-variant-numeric: tabular-nums; }
.admin-job__reject > summary { list-style: none; }
.admin-job__reject > summary::-webkit-details-marker { display: none; }
.admin-job__row { display: flex; flex-wrap: wrap; gap: 2px 4px; padding-top: 10px; border-top: 1px solid var(--line); }
.admin-job__row .btn { padding-inline: 8px; }
.admin-job__danger { --btn-fg: var(--danger); }
.impersonate-bar { position: fixed; z-index: 200; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; gap: 12px; align-items: center; padding: 6px 6px 6px 16px; border-radius: 12px; background: #8f5400; color: #fff; font-size: .86rem; box-shadow: var(--sh-3); }
.impersonate-bar .i { flex: none; }
@media (max-width: 680px) {
  .impersonate-bar { left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); transform: none; gap: 8px; padding: 5px 5px 5px 12px; font-size: .8rem; }
  .impersonate-bar__long { display: none; }
  .impersonate-bar__text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* ---------------------------------------------------------------- Content pages (about, how, contact, legal) */
.feature { position: relative; display: grid; align-content: start; gap: 10px; padding: 22px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.feature__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-tint); color: var(--accent-text); }
.feature__icon .i { width: 20px; height: 20px; }
.feature h3 { font-size: 1.12rem; }
.feature p { color: var(--muted); font-size: .95rem; }
.feature--dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.feature--dark h3 { color: #fff; }
.feature--dark p { color: rgba(255, 255, 255, .74); }
.feature--dark .feature__icon { background: rgba(255, 255, 255, .1); color: var(--accent); }
.feature--accent { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.feature--accent h3 { color: inherit; }
.feature--accent p { color: inherit; opacity: .85; }
.feature__big { font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem); font-weight: 850; letter-spacing: -0.035em; line-height: 1; }
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.bento > * { grid-column: span 2; }
.bento .span-3 { grid-column: span 3; }
.bento .span-4 { grid-column: span 4; }
.bento .span-6 { grid-column: span 6; }
@media (max-width: 1020px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bento > *, .bento .span-3, .bento .span-4 { grid-column: span 1; } .bento .span-6 { grid-column: span 2; } }
@media (max-width: 640px) { .bento { grid-template-columns: minmax(0, 1fr); } .bento > *, .bento .span-6 { grid-column: span 1; } }
.mock { margin-top: auto; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); padding: 12px; display: grid; gap: 8px; font-size: .84rem; }
.mock__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mock__bar { height: 6px; border-radius: 3px; background: var(--bg-2); overflow: hidden; }
.mock__bar span { display: block; height: 100%; width: var(--w, 60%); background: var(--accent); }
.mock__msg { max-width: 82%; padding: 8px 11px; border-radius: 12px 12px 12px 4px; background: var(--surface); border: 1px solid var(--line); }
.mock__msg--me { justify-self: end; border-radius: 12px 12px 4px 12px; background: var(--ink); color: #fff; border-color: transparent; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat { padding: 18px 20px; display: grid; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.stat__value { font-size: clamp(2rem, 1.5rem + 1.6vw, 2.8rem); font-weight: 850; letter-spacing: -0.035em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat__label { color: var(--muted); font-size: .9rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.quote-card { display: grid; gap: 18px; padding: 24px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.quote-card blockquote { font-size: 1.12rem; font-weight: 600; line-height: 1.4; color: var(--ink); }
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.contact-line { display: flex; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-line .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-tint); color: var(--accent-text); }
.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: 72px; }
.error-page__code { font-weight: 900; font-size: clamp(5rem, 3rem + 10vw, 11rem); letter-spacing: -0.06em; line-height: .85; color: var(--ink); font-variant-numeric: tabular-nums; }
.error-page__code span { color: var(--accent); }
.legal-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--subtle); font-size: .86rem; }
.kbd { font-size: .76rem; font-weight: 650; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line-2); background: var(--surface); }
.copy-field { display: flex; gap: 8px; }
.spinner { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; vertical-align: -2px; }

/* "Back" link above the page heading */
.back-link { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 14px; padding: 6px 12px 6px 9px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); font-size: .84rem; font-weight: 650; color: var(--ink-2); box-shadow: var(--sh-1); transition: border-color var(--d-1), color var(--d-1); }
.back-link .i { color: var(--subtle); transition: transform var(--d-2) var(--ease); }
.back-link:hover { border-color: var(--ink-3); color: var(--ink); }
.back-link:hover .i { transform: translateX(-2px); color: var(--ink); }

/* compact row actions in tables (jobs list) */
.row-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.row-actions form { display: contents; }
@media (max-width: 680px) { .row-actions { justify-content: flex-start; } }
@media (min-width: 1100px) { .row-actions { flex-wrap: nowrap; } }

/* applications on a worker's profile (firm view), with inline decisions */
.app-list { display: grid; }
.app-row { display: grid; gap: 6px; padding: 14px 0; border-top: 1px solid var(--line); }
.app-row:first-child { border-top: 0; }
.app-row__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.app-row__title { font-weight: 700; color: var(--ink); line-height: 1.3; }
.app-row__title:hover { color: var(--accent-text); }
.app-row__msg { font-size: .88rem; color: var(--ink-2); padding: 8px 10px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line); white-space: pre-line; }
.app-row__actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.card--applications { border-color: color-mix(in oklab, var(--accent) 30%, var(--line)); box-shadow: 0 0 0 1px color-mix(in oklab, var(--accent) 12%, transparent), var(--sh-1); }
@media (min-width: 900px) { .card--applications .app-row { grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; align-items: center; } .card--applications .app-row > :not(.app-row__actions) { grid-column: 1; } .card--applications .app-row__actions { grid-column: 2; grid-row: 1 / span 3; margin: 0; } }

/* messages: what a conversation is about */
.conv__topic { display: flex; align-items: center; gap: 5px; min-width: 0; font-size: .76rem; font-weight: 600; color: var(--ink-3); }
.conv__topic .i { width: 13px; height: 13px; flex: none; color: var(--subtle); }
.conv__topic > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list__item .conv__topic { margin-top: 2px; }
.chat__topic { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px 12px; align-items: center; padding: 10px 18px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.chat__topic-body { display: grid; gap: 1px; min-width: 0; }
.chat__topic-label { font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--subtle); }
.chat__topic-title { font-weight: 700; color: var(--ink); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat__topic-title:hover { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.chat__topic-meta { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--muted); overflow: hidden; white-space: nowrap; }
.chat__topic-side { display: grid; justify-items: end; gap: 6px; }
.chat__topic-status { display: flex; align-items: center; gap: 8px; }
.chat__topic-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.chat__topic--quiet { display: flex; gap: 8px; font-size: .84rem; color: var(--muted); }
.chat__topic--quiet .i { color: var(--success); flex: none; }
.msg-topic { align-self: center; display: inline-flex; align-items: center; gap: 6px; max-width: 92%; margin: 16px 0 4px; padding: 5px 12px; border-radius: 999px; background: var(--accent-tint); border: 1px solid color-mix(in oklab, var(--accent) 22%, transparent); color: var(--accent-text); font-size: .76rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-topic .i { flex: none; }
@media (max-width: 860px) {
  .chat__topic { grid-template-columns: auto minmax(0, 1fr); padding: 10px 12px; }
  .chat__topic-side { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
  .chat__topic-actions { flex-wrap: nowrap; }
}

/* ---------------------------------------------------------------- Floating helpers: support chat (right) + cookies (left) */
.support { position: fixed; z-index: 140; right: 20px; bottom: 20px; display: grid; justify-items: end; gap: 12px; }
.support-fab { position: relative; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); box-shadow: 0 2px 6px rgba(15, 29, 58, .12), 0 14px 30px -10px color-mix(in oklab, var(--accent) 80%, transparent); transition: transform var(--d-2) var(--ease), background-color var(--d-1); order: 2; }
.support-fab:hover { background: var(--accent-strong); transform: translateY(-2px); }
.support-fab .i { width: 26px; height: 26px; stroke-width: 2; }
.support-fab > span { grid-area: 1 / 1; display: grid; place-items: center; transition: opacity var(--d-2), transform var(--d-2) var(--ease); }
.support-fab__close { opacity: 0; transform: rotate(-90deg) scale(.6); }
.support.is-open .support-fab__open { opacity: 0; transform: rotate(90deg) scale(.6); }
.support.is-open .support-fab__close { opacity: 1; transform: none; }
.support-panel { order: 1; width: min(370px, calc(100vw - 32px)); max-height: min(620px, calc(100dvh - 120px)); overflow-y: auto; overscroll-behavior: contain; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-3); transform-origin: 100% 100%; animation: pop-in 320ms cubic-bezier(.32, .72, 0, 1) both; }
.support-panel__head { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; padding: 18px 48px 16px 18px; background: var(--ink); color: #fff; }
.support-panel__head h2 { font-size: 1.08rem; color: #fff; }
.support-panel__head p { font-size: .82rem; color: rgba(255, 255, 255, .72); margin-top: 2px; }
.support-panel__avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #fff; color: var(--ink); }
.support-panel__avatar .logo__mark { width: 30px; height: 30px; margin: 0; }
.support-panel__x { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: rgba(255, 255, 255, .8); }
.support-panel__x:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.support-panel__body { display: grid; gap: 12px; padding: 16px 18px 18px; }
.support-panel__body .input, .support-panel__body .textarea { min-height: 44px; font-size: .95rem; }
.support-panel__body .textarea { min-height: 104px; }
.support-panel__note { font-size: .74rem; color: var(--subtle); }
.support-panel__note a { text-decoration: underline; text-underline-offset: 2px; }
.support-panel__error { font-size: .84rem; font-weight: 600; color: var(--danger); }
.support-panel__done { display: grid; justify-items: center; gap: 8px; padding: 28px 22px; text-align: center; }
.support-panel__done p { font-size: .9rem; color: var(--muted); }
.support-panel__ok { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--success-soft); color: var(--success); margin-bottom: 4px; }
.support-panel__ok .i { width: 26px; height: 26px; stroke-width: 2.4; }
.support-panel[hidden], .support-panel__done[hidden], .support-panel__body[hidden] { display: none; }
body:has(.mobile-apply) .support { bottom: 84px; }
body:has(.form-actions) .support, body:has(.chat) .support { display: none; }

.consent { position: fixed; z-index: 150; left: 16px; bottom: 16px; width: min(460px, calc(100vw - 32px)); }
.consent__box { display: grid; gap: 14px; padding: 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-3); animation: toast-in var(--d-3) var(--ease) .4s both; }
.consent__head { display: flex; align-items: center; gap: 10px; }
.consent__head h2 { font-size: 1.08rem; flex: 1; }
.consent__icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-tint); color: var(--accent-text); flex: none; }
.consent__icon .i { width: 20px; height: 20px; }
.consent__close { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--subtle); }
.consent__close:hover { background: var(--surface-2); color: var(--ink); }
.consent__box > p { font-size: .87rem; line-height: 1.55; color: var(--ink-3); }
.consent__box > p a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 2px; }
.consent__more > summary { list-style: none; display: inline-flex; align-items: center; gap: 7px; font-size: .86rem; font-weight: 650; color: var(--ink-2); cursor: pointer; }
.consent__more > summary::-webkit-details-marker { display: none; }
.consent__more > summary:hover { color: var(--accent-text); }
.consent__more[open] > summary { margin-bottom: 10px; }
.consent__more .btn { margin-top: 10px; }
.consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.consent__actions .btn { min-height: 44px; }
.consent-prefs { display: grid; gap: 6px; }
.consent-pref { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 12px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); cursor: pointer; }
.consent-pref__text { display: grid; gap: 2px; }
.consent-pref__text strong { font-size: .9rem; color: var(--ink); }
.consent-pref__text span { font-size: .78rem; line-height: 1.45; color: var(--muted); }
.consent-pref:has(input:disabled) { cursor: default; }
.consent-pref input:disabled + .switch__track { opacity: .55; }
.consent-fab { position: fixed; z-index: 130; left: 16px; bottom: 16px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--ink-2); border: 1px solid var(--line-2); box-shadow: var(--sh-2); transition: transform var(--d-2) var(--ease), color var(--d-1); }
.consent-fab:hover { color: var(--accent-text); transform: rotate(-12deg) scale(1.05); }
.consent-fab .i { width: 22px; height: 22px; }
.consent-fab[hidden], .consent[hidden] { display: none; }
@keyframes sheet-in { from { transform: translateY(100%); } }
/* phones: the round cookie button would sit on top of the content – the footer link "Nastavenia cookies" does the job */
@media (max-width: 760px) { .consent-fab { display: none; } } /* account: link "Cookies" in the menu */
.app-side:focus { outline: none; }
/* while the cookie bar is shown the chat bubble waits (it would sit on the bar's buttons) */
@media (max-width: 560px) { body:has(.consent:not([hidden])) .support { display: none; } }
.page-app .consent-fab { left: auto; right: 86px; bottom: 26px; width: 36px; height: 36px; } /* in the account the sidebar owns the left corner */
.page-app .consent-fab .i { width: 18px; height: 18px; }
@media (min-width: 1021px) { .page-app .consent-fab { left: 268px; right: auto; bottom: 16px; } .page-app .consent { left: 268px; } }
@media (max-width: 560px) {
  .support { right: 14px; bottom: 14px; }
  .site-footer { padding-bottom: 84px; } /* last footer line stays clear of the chat bubble */
  .support-fab { width: 52px; height: 52px; }
  .support-panel { max-height: calc(100dvh - 96px); }
  .consent { left: 0; right: 0; bottom: 0; width: auto; }
  .consent__box { padding: 16px 16px calc(14px + env(safe-area-inset-bottom)); gap: 10px; border-radius: 20px 20px 0 0; border-width: 1px 0 0; box-shadow: 0 -10px 34px -12px rgba(15, 29, 58, .28); max-height: 86dvh; overflow-y: auto; overscroll-behavior: contain; animation-name: sheet-in; }
  .consent__icon { width: 32px; height: 32px; border-radius: 10px; }
  .consent__icon .i { width: 18px; height: 18px; }
  .consent__head h2 { font-size: 1rem; }
  .consent__box > p { font-size: .84rem; line-height: 1.5; }
  .consent__actions .btn { min-height: 46px; }
  .consent-fab { left: 12px; bottom: 14px; width: 40px; height: 40px; }
  body:has(.impersonate-bar) .support, body:has(.impersonate-bar) .consent-fab { bottom: 62px; }
}

/* ---------------------------------------------------------------- Admin statistics */
.stats-head { align-items: center; }
.live__dot { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--success); flex: none; }
.live__dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: color-mix(in oklab, var(--success) 35%, transparent); animation: live 2s ease-out infinite; }
@keyframes live { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .live__dot::after { animation: none; } }
/* "práve na webe" – separate from the period, details open on click */
.live-chip { position: relative; }
.live-chip > summary { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px 0 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); font-size: .9rem; color: var(--ink-3); cursor: pointer; list-style: none; user-select: none; transition: border-color var(--d-1); }
.live-chip > summary::-webkit-details-marker { display: none; }
.live-chip > summary:hover { border-color: var(--line-2); }
.live-chip > summary strong { color: var(--ink); font-weight: 800; font-variant-numeric: tabular-nums; }
.live-chip > summary .i { width: 16px; height: 16px; color: var(--subtle); transition: transform var(--d-1); }
.live-chip[open] > summary .i { transform: rotate(180deg); }
.live-chip__panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: min(360px, calc(100vw - 32px)); display: grid; gap: 10px; padding: 16px 18px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-2); }
.live-chip__panel h3 { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--subtle); margin-top: 6px; }
.live-chip__panel .list__item { padding: 8px 0; }
@media (max-width: 680px) { .live-chip { width: 100%; } .live-chip > summary { width: 100%; } .live-chip__panel { left: 0; right: auto; width: 100%; } }

.stats-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.stats-bar .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.stats-bar .seg a { white-space: nowrap; }
.stats-range { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 14px 0 var(--grid-gap); font-size: .9rem; color: var(--muted); }
.stats-range > .i { width: 16px; height: 16px; color: var(--subtle); }
.stats-range strong { color: var(--ink); }
.stats-range .active-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px 4px 8px; border-radius: 999px; background: var(--accent-tint); color: var(--accent-text); border: 1px solid color-mix(in oklab, var(--accent) 22%, transparent); font-size: .82rem; font-weight: 650; }
.stats-range .active-chip .i { width: 14px; height: 14px; }
.seg--sm a { height: 32px; padding: 0 12px; font-size: .82rem; }

.stats-help { padding-block: 0; margin-bottom: var(--grid-gap); }
.stats-help > summary { display: flex; align-items: center; gap: 12px; min-height: 54px; cursor: pointer; list-style: none; font-size: .92rem; color: var(--muted); }
.stats-help > summary::-webkit-details-marker { display: none; }
.stats-help > summary strong { color: var(--ink); margin-right: 6px; }
.stats-help > summary > .i:first-child { color: var(--accent-text); width: 20px; height: 20px; flex: none; }
.stats-help > summary > .i:last-child { margin-left: auto; width: 16px; height: 16px; color: var(--subtle); transition: transform var(--d-1); flex: none; }
.stats-help[open] > summary > .i:last-child { transform: rotate(180deg); }
.stats-help__body { display: grid; gap: 14px; padding-bottom: var(--card-pad); }
.stats-help .kv dd { font-weight: 500; color: var(--ink-3); }
.stats-note { margin-bottom: var(--grid-gap); }
.notice--danger { background: var(--danger-soft); border-color: color-mix(in oklab, var(--danger) 22%, transparent); color: #6b1a0d; }
.notice a { text-decoration: underline; text-underline-offset: 3px; font-weight: 650; }
.stats-foot { margin: 10px 0 var(--grid-gap); }
.stats-foot a { text-decoration: underline; text-underline-offset: 3px; }

.kpis.kpis--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1400px) { .kpis.kpis--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 680px) { .kpis.kpis--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi__value--sm { font-size: 1.45rem; }
.stats-kpis .kpi__sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.delta { display: inline-flex; padding: 1px 7px; border-radius: 999px; font-size: .72rem; font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
.delta--up { background: var(--success-soft); color: var(--success); }
.delta--down { background: var(--danger-soft); color: var(--danger); }
.delta--flat { background: var(--bg-2); color: var(--muted); }
.kpi--accent .delta--up { background: color-mix(in oklab, var(--success) 30%, transparent); color: #b8f0d2; }
.kpi--accent .delta--down { background: color-mix(in oklab, var(--danger) 35%, transparent); color: #ffd3c9; }
.kpi--accent .delta--flat { background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .8); }

/* chart: instant CSS tooltip, bars are links to the day / month */
.stats-chart .card__head { flex-wrap: wrap; gap: 8px 16px; }
.vchart__legend { display: inline-flex; gap: 14px; font-size: .8rem; color: var(--muted); }
.vchart__legend > span { display: inline-flex; align-items: center; gap: 6px; }
.vchart__key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); flex: none; }
.vchart__key--views { background: color-mix(in oklab, var(--accent) 28%, var(--bg-2)); }
.vchart__key--visits { background: var(--ink-3); }
.vchart__hint { display: flex; align-items: center; gap: 6px; margin: -6px 0 6px; }
.vchart__hint .i { width: 14px; height: 14px; }
.vchart { position: relative; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: clamp(1px, .3vw, 4px); height: 220px; padding-top: 24px; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to top, transparent 0 calc(25% - 1px), var(--line) calc(25% - 1px) 25%) 0 24px / 100% calc(100% - 24px - 22px) no-repeat; }
.vchart__max { position: absolute; top: 0; left: 0; font-size: .7rem; color: var(--subtle); font-variant-numeric: tabular-nums; }
.vchart__col { position: relative; display: grid; grid-template-rows: minmax(0, 1fr) 22px; min-width: 0; border-radius: 6px; outline: none; }
.vchart__bars { position: relative; display: block; margin-inline: auto; width: 100%; max-width: 34px; height: 100%; }
.vchart__bar { position: absolute; left: 0; right: 0; bottom: 0; min-height: 2px; border-radius: 4px 4px 1px 1px; background: var(--accent); transform-origin: bottom; animation: grow .7s var(--ease) both; }
.vchart__bar--views { background: color-mix(in oklab, var(--accent) 28%, var(--bg-2)); }
.vchart__lbl { align-self: end; justify-self: center; font-size: .66rem; color: var(--subtle); white-space: nowrap; font-variant-numeric: tabular-nums; }
.vchart__col:hover, .vchart__col:focus-visible { background: color-mix(in oklab, var(--accent) 8%, transparent); }
.vchart__col:focus-visible { box-shadow: 0 0 0 2px var(--accent-strong); }
.vchart__col.is-future .vchart__bars { opacity: .35; }
.vchart__tip { position: absolute; bottom: calc(100% - 18px); left: 50%; z-index: 5; display: none; gap: 3px; min-width: 160px; padding: 10px 12px; border-radius: 10px; background: var(--ink); color: #fff; font-size: .8rem; line-height: 1.35; white-space: nowrap; box-shadow: var(--sh-2); transform: translateX(-50%); pointer-events: none; }
.vchart__tip b { font-weight: 750; margin-bottom: 2px; }
.vchart__tip span { display: flex; align-items: center; gap: 7px; color: rgba(255, 255, 255, .86); font-variant-numeric: tabular-nums; }
.vchart__tip .vchart__key--visits { background: #c3cbe0; }
.vchart__col:hover .vchart__tip, .vchart__col:focus-visible .vchart__tip { display: grid; }
.vchart__col.is-first .vchart__tip { left: 0; transform: none; }
.vchart__col.is-last .vchart__tip { left: auto; right: 0; transform: none; }
@media (max-width: 680px) { .vchart { height: 180px; } }

.rank { display: grid; gap: 4px; }
.rank__row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto 3.5em; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 8px; font-size: .88rem; isolation: isolate; }
.rank--2 .rank__row { grid-template-columns: minmax(0, 1fr) auto 3.2em 3.2em; }
.rank__bar { position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 8px; background: var(--accent-tint); z-index: -1; }
.rank__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--ink); }
.rank__meta { font-size: .76rem; color: var(--subtle); white-space: nowrap; }
.rank__n { text-align: right; font-weight: 750; font-variant-numeric: tabular-nums; color: var(--ink); }
.rank__n--muted { font-weight: 600; color: var(--subtle); }
.split { display: grid; gap: 10px; }
.split__row { display: grid; grid-template-columns: 7.5em minmax(0, 1fr) 3em; gap: 10px; align-items: center; font-size: .86rem; }
.split--wide .split__row { grid-template-columns: minmax(8em, 11em) minmax(0, 1fr) 3.2em; }
.split__row > span:first-child { display: flex; align-items: center; gap: 7px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.split__row b { text-align: right; font-variant-numeric: tabular-nums; }
.split__bar { height: 8px; border-radius: 4px; background: var(--bg-2); overflow: hidden; }
.split__bar span { display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--accent); }
.stats-sub { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--subtle); margin: 18px 0 10px; }
.stats-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; }
.stats-cols .split__row { grid-template-columns: minmax(0, 1fr) 3.2em; }
.stats-cols .split__bar { display: none; }
@media (max-width: 480px) { .stats-cols { grid-template-columns: minmax(0, 1fr); } }
.stats-conv { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--ink-3); }
.stats-conv b { font-size: 1.15rem; color: var(--ink); }
.hours { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 3px; height: 110px; }
.hours__col { display: grid; grid-template-rows: minmax(0, 1fr) 16px; align-items: end; }
.hours__bar { display: block; width: 100%; border-radius: 3px 3px 1px 1px; background: var(--ink-3); opacity: .8; }
.hours__col:hover .hours__bar { opacity: 1; background: var(--accent); }
.hours__lbl { font-size: .64rem; color: var(--subtle); text-align: center; font-variant-numeric: tabular-nums; }
.d-block { display: block; }
.text-danger { color: var(--danger); }
.nowrap { white-space: nowrap; }
.dash-duo .list__item > span:first-child { min-width: 0; }
@media (max-width: 680px) {
  .stats-bar .tabs, .stats-bar .seg { width: 100%; }
  .stats-bar .tabs a, .stats-bar .seg a { flex: 1; justify-content: center; padding-inline: 8px; }
  .stats-bar .tabs .i { display: none; }
  .rank__meta { display: none; }
  .rank__row, .rank--2 .rank__row { grid-template-columns: minmax(0, 1fr) 3em 3em; }
  .rank:not(.rank--2) .rank__row { grid-template-columns: minmax(0, 1fr) 3.5em; }
}

/* Legal documents */
.legal { display: grid; gap: 20px; padding-bottom: clamp(40px, 5vw, 72px); }
.legal-op { display: grid; gap: 2px; padding: 16px 18px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); font-size: .88rem; color: var(--ink-3); }
.legal-op strong { font-size: .98rem; color: var(--ink); }
.legal-op a { color: var(--accent-text); }
.legal-toc { padding: 16px 18px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); }
.legal-toc strong { display: block; margin-bottom: 8px; font-size: var(--t-label); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--subtle); }
.legal-toc ol { columns: 2 220px; column-gap: 28px; font-size: .9rem; }
.legal-toc li { break-inside: avoid; padding: 3px 0; }
.legal-toc a { color: var(--ink-2); }
.legal-toc a:hover { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.legal-body h2 { scroll-margin-top: calc(var(--header-h) + 20px); }
.legal-body .table-wrap { margin-block: 1em; }
.legal-body .table td { vertical-align: top; }
.legal-purposes { display: grid; gap: 10px; margin-block: 1em; }
.legal-purpose { padding: 14px 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 20px); }
.legal-purpose:target { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.legal-purpose h3 { font-size: 1.02rem; margin: 0 0 8px; }
.legal-purpose dl { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 6px 14px; font-size: .9rem; }
.legal-purpose dt { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--subtle); padding-top: 3px; }
.legal-purpose dd { color: var(--ink-2); }
@media (max-width: 560px) { .legal-purpose dl { grid-template-columns: minmax(0, 1fr); gap: 2px; } .legal-purpose dd { margin-bottom: 6px; } }
.legal-consent { display: grid; gap: 12px; padding: 16px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.legal-consent__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.legal-consent__actions .btn { flex: 1 1 160px; }
.prose .legal-consent .consent-pref__text strong, .prose .legal-purpose h3 { margin-top: 0; }
.legal-meta a { color: var(--ink-3); }

/* ---------------------------------------------------------------- Maintenance mode, security, MCP */
.hold { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; align-content: center; gap: 18px; padding: 24px 16px; background: radial-gradient(70% 60% at 80% 10%, color-mix(in oklab, var(--accent) 10%, transparent), transparent 70%), var(--bg); }
.hold__card { display: grid; justify-items: start; gap: 18px; width: min(560px, 100%); padding: clamp(28px, 5vw, 48px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-3); }
.hold__card h1 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); }
.hold__pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: var(--accent-tint); color: var(--accent-text); font-size: .8rem; font-weight: 700; }
.hold__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: live 2s ease-out infinite; }
.hold__lead { color: var(--muted); font-size: var(--t-lead); line-height: 1.6; }
.hold__contact { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--ink-3); }
.hold__contact a { color: var(--accent-text); font-weight: 650; }
.hold__team { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: .82rem; color: var(--subtle); }
.hold__team:hover { color: var(--ink); }
.hold__foot { font-size: .8rem; color: var(--subtle); }

.lock-banner { position: relative; z-index: 60; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 12px; padding: 7px 16px; background: var(--ink); color: #fff; font-size: .82rem; text-align: center; }
.lock-banner .i { color: var(--accent); }
.lock-banner a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.page-app .lock-banner { position: sticky; top: 0; }
.count.count--warn { background: var(--warning); color: #fff; }

.sys { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--grid-gap); align-items: start; }
.sys-card { display: grid; gap: 14px; }
.sys-card .card__head { margin-bottom: 0; flex-wrap: wrap; }
.sys-card .card__title { display: inline-flex; align-items: center; gap: 9px; }
.sys-card .card__title .i { color: var(--accent-text); }
.sys-card--wide { grid-column: 1 / -1; }
@media (max-width: 1100px) { .sys { grid-template-columns: minmax(0, 1fr); } }
.sys-preview, .sys-token { display: grid; gap: 10px; padding: 14px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); }
.sys-preview > strong, .sys-token > strong { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); }
.user-pass { padding-top: 12px; border-top: 1px solid var(--line); }
.user-pass summary { list-style: none; cursor: pointer; }
.user-pass summary::-webkit-details-marker { display: none; }
.sys-invite > summary { list-style: none; width: fit-content; cursor: pointer; }
.sys-invite > summary::-webkit-details-marker { display: none; }
.sys-invite[open] > summary { margin-bottom: 12px; }
.sys-invite > form { padding: 14px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); gap: 12px; }
.sys-token { background: var(--warning-soft); border-color: color-mix(in oklab, var(--warning) 25%, transparent); }
.copy-field .input { flex: 1; min-width: 0; font-size: .86rem; }
.sys-code { margin: 0; padding: 10px 12px; border-radius: 8px; background: var(--ink); color: #e6edf8; font-size: .76rem; line-height: 1.5; white-space: pre-wrap; word-break: break-all; }
.sys-checks { display: grid; gap: 6px; font-size: .84rem; color: var(--ink-3); }
.sys-checks li { display: flex; gap: 8px; align-items: flex-start; }
.sys-checks .i { color: var(--success); margin-top: 2px; }
.sys-mcp-form { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr) auto auto; gap: 12px 16px; align-items: end; padding: 14px; border-radius: var(--r); border: 1px dashed var(--line-2); }
.sys-mcp-form .check { align-self: center; }
@media (max-width: 900px) { .sys-mcp-form { grid-template-columns: minmax(0, 1fr); } }

.tfa__steps { display: grid; gap: 12px; padding-left: 20px; list-style: decimal; font-size: .92rem; color: var(--ink-2); }
.tfa__key { display: block; margin: 8px 0 4px; padding: 10px 12px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); font-size: 1rem; font-weight: 700; letter-spacing: .08em; color: var(--ink); word-break: break-all; }
.tfa__codes { display: grid; gap: 8px; padding: 14px; border-radius: var(--r); background: var(--warning-soft); border: 1px solid color-mix(in oklab, var(--warning) 25%, transparent); }
.tfa__codes strong { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); }
.tfa__codes ol { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 4px 24px; padding-left: 20px; list-style: decimal; font-size: .95rem; }
.tfa__codes code { font-weight: 700; letter-spacing: .04em; }
.tfa__codes .btn { justify-self: start; }
.tfa__off > summary { cursor: pointer; }
.input--code { font-size: 1.25rem; font-weight: 700; letter-spacing: .25em; text-align: center; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- Small screens
   Phones get a calmer, denser version: slightly smaller headings and controls, single-column search,
   tables as cards, messages edge to edge. Body text stays 16 px for readability. */
@media (max-width: 680px) {
  :root {
    --t-display: clamp(2rem, 1.3rem + 2.7vw, 3.55rem);
    --t-h1: clamp(1.7rem, 1.35rem + 1.9vw, 3.05rem);
    --t-h2: clamp(1.42rem, 1.22rem + 1.2vw, 2.4rem);
    --t-h3: 1.08rem;
    --t-lead: 1rem;
  }
  .hide-sm { display: none !important; }
  .section-head p, .lead { font-size: .98rem; }
  .card__title { font-size: 1rem; }
  .h4 { font-size: 1rem; }
  .btn { font-size: .92rem; }
  .btn--lg { min-height: 50px; font-size: .97rem; }
  .hero__status { font-size: .8rem; }

  /* KPI tiles: two per row without crowding */
  .kpi { gap: 6px; padding: 14px; }
  .kpi__label { font-size: .62rem; letter-spacing: .08em; align-items: flex-start; gap: 6px; }
  .kpi__label .i { width: 16px; height: 16px; }
  .kpi__value { font-size: 1.6rem; }
  .kpi__sub { font-size: .76rem; line-height: 1.35; }

  /* charts: every other week label */
  .bar-chart { gap: 3px; height: 120px; }
  .bar-chart__col:nth-child(even) .bar-chart__lbl { visibility: hidden; }
  .card__head { flex-wrap: wrap; row-gap: 8px; }

  /* job detail: facts two per row, a bit tighter */
  .spec { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .spec > div { padding: 10px 12px; }
  .spec dd { font-size: .92rem; }
  .spec dd.rate { font-size: 1.02rem; }
  .detail__head { padding: 18px 16px; gap: 14px; }
  .detail__section { padding: 18px 16px; }
  .job-page__main .detail__head, .job-page__main .detail__section { padding-inline: 16px; }
  .detail__band { padding-inline: 16px; }

  /* tables become cards: one row = one card, cells as label/value lines */
  .table-wrap { overflow: visible; }
  .table--stack thead { display: none; }
  .table--stack, .table--stack tbody, .table--stack tr, .table--stack td { display: block; width: 100%; }
  .table--stack tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .table--stack tr:last-child { border-bottom: 0; }
  .table--stack tbody tr:hover { background: transparent; }
  .table--stack td { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 4px 0; border: 0; text-align: right; white-space: normal !important; overflow-wrap: anywhere; }
  .table--stack td::before { content: attr(data-label); flex: none; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--subtle); text-align: left; }
  .table--stack td:first-child { display: block; padding-bottom: 8px; text-align: left; }
  .table--stack td:first-child::before, .table--stack td[data-label=""]::before { display: none; }
  .table--stack td[data-label=""] { justify-content: flex-start; gap: 6px; padding-top: 10px; }
  .table--stack td.num { text-align: right; }

  /* public worker database */
  .db-cta { grid-template-columns: minmax(0, 1fr); }
  .db-cta > .ico-round, .db-cta > span:first-child { display: none; }
  .chips .input[type="search"] { max-width: none !important; margin-left: 0 !important; width: 100%; }
  .worker-tile__rate strong { font-size: 1.4rem; }
  .md-item__title { font-size: .98rem; }

  /* auth */
  .auth__body h1 { font-size: 1.7rem; }
  .auth__body { margin: 20px auto; gap: 20px; }
}

/* single-column search panels on phones: no truncated "Všetky profe…" */
@media (max-width: 560px) {
  .search-panel, .search-panel.search-panel--db, .search-panel--ico, .search-panel--two { grid-template-columns: minmax(0, 1fr); row-gap: 4px; }
  .search-panel .search-panel__field, .search-panel--db .search-panel__field { grid-column: auto !important; margin: 0 !important; padding: 7px 12px; background: var(--surface-2); }
  .search-panel__field::before { display: none; }
  .search-panel__field input, .search-panel__field select { font-size: .95rem; }
  .search-panel__field > span { font-size: .62rem; }
  .search-panel > .btn { min-height: 48px; margin: 2px 0 0; font-size: .95rem; }
}

/* messages on phones and small tablets: the conversation fills the screen like a messaging app */
@media (max-width: 860px) {
  .app-content:has(> .chat) { padding: 0; }
  .chat { height: calc(100dvh - var(--header-h)); min-height: 0; border: 0; border-radius: 0; box-shadow: none; }
  .chat__list-head { padding: 14px 16px 10px; }
  .chat__convs { padding: 4px 6px; }
  .conv { padding: 12px 10px; }
  .chat__head { gap: 10px; padding: 10px 12px; }
  .chat__head .avatar { --size: 36px; }
  .chat__head-name { font-size: .95rem; min-width: 0; }
  .chat__head-name, .chat__head-meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .chat__context { padding: 8px 14px; font-size: .82rem; }
  .chat__context a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  .chat__msgs { padding: 14px 12px; }
  .msg-group { max-width: 92%; }
  .msg { font-size: .93rem; padding: 9px 12px; }
  .chat__compose { padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); }
  .compose-hint { display: none; }
  .chat__compose .locked__cta { display: grid !important; gap: 10px; }
}

/* the floating "Mám záujem" bar must not cover the end of the page */
@media (max-width: 1020px) { body:has(.mobile-apply) main { padding-bottom: 76px; } }

/* ---------------------------------------------------------------- Motion */
.js .reveal:not(.is-in) { opacity: 0; transform: translateY(10px); }
.reveal { transition: opacity var(--d-3) var(--ease), transform var(--d-3) var(--ease); transition-delay: calc(min(var(--i, 0), 6) * 50ms); }
.reveal--fade:not(.is-in) { transform: none !important; }

/* Page-to-page transitions (View Transitions, same-document audience swap and cross-document
   navigation where supported): header, app sidebar and the auth map stay put, the content leaves
   quickly and rises into place. Browsers without support simply navigate. */
@media (prefers-reduced-motion: no-preference) { @view-transition { navigation: auto; } }
#main { view-transition-name: main-content; }
.site-header { view-transition-name: site-header; }
.app-side { view-transition-name: app-side; }
.app-top { view-transition-name: app-top; }
.auth__side { view-transition-name: auth-side; }
::view-transition-group(*) { animation-duration: 460ms; animation-timing-function: cubic-bezier(.32, .72, 0, 1); }
::view-transition-old(root) { animation: vt-fade 160ms cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: vt-fade 300ms cubic-bezier(.32, .72, 0, 1) reverse both; }
::view-transition-old(main-content) { animation: vt-out 170ms cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(main-content) { animation: vt-in 520ms cubic-bezier(.32, .72, 0, 1) 50ms both; }
@keyframes vt-fade { to { opacity: 0; } }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }

/* Small physical feedback: cards lift on hover and give a little when pressed */
.md:not(.is-open) .md-item, .job-tile, .worker-tile, .trade, .price-card, .choice a { transition: border-color var(--d-1), box-shadow var(--d-2) var(--ease), background-color var(--d-1), transform var(--d-2) var(--ease); }
.md:not(.is-open):not(.is-animating) .md-item:hover, .worker-tile:hover, .trade:hover { transform: translateY(-2px); }
.md-item:active, .job-tile:active, .trade:active, .choice a:active { transform: translateY(0) scale(.99); transition-duration: 80ms; }
.md.is-open .md-item:hover { background: color-mix(in oklab, var(--accent-tint) 50%, var(--surface)); }
.btn:not(:disabled):active { transform: translateY(1px) scale(.98); }
.seg a, .seg button { transition: background-color var(--d-2) var(--ease), color var(--d-1), box-shadow var(--d-2) var(--ease); }
.chip-pill, a.chip-pill { transition: border-color var(--d-1), background-color var(--d-2) var(--ease), color var(--d-1), transform var(--d-2) var(--ease); }
a.chip-pill:active { transform: scale(.96); }
@media (prefers-reduced-motion: no-preference) {
  .md-item[aria-current="true"] { animation: picked 520ms cubic-bezier(.32, .72, 0, 1); }
  .flash-in { animation: vt-in 520ms cubic-bezier(.32, .72, 0, 1) both; }
}
@media (prefers-reduced-motion: no-preference) {
  dialog.modal::backdrop { animation: vt-fade 280ms ease reverse both; }
  .maplibregl-popup-content { animation: pop-in 320ms cubic-bezier(.32, .72, 0, 1) both; transform-origin: 50% 100%; }
  .map-marker__pin { animation: marker-in 560ms cubic-bezier(.32, .72, 0, 1) backwards; }
  .alert-strip .ico-round .i, .hero__status .ico-round .i { animation: nudge 3.2s ease-in-out 1.2s 2; transform-origin: 50% 20%; }
  .toast { transform-origin: 100% 0; }
}
@keyframes pop-in { from { opacity: 0; transform: translateY(8px) scale(.97); } }
@keyframes marker-in { from { opacity: 0; transform: rotate(-45deg) translate(10px, -10px) scale(.6); } to { opacity: 1; transform: rotate(-45deg) translate(0, 0) scale(1); } }
@keyframes nudge { 0%, 70%, 100% { transform: rotate(0); } 76% { transform: rotate(-12deg); } 84% { transform: rotate(9deg); } 92% { transform: rotate(-4deg); } }
@keyframes picked { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 45%, transparent), var(--sh-2); } 100% { box-shadow: 0 0 0 1px var(--accent), var(--sh-2); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal:not(.is-in) { opacity: 1; transform: none; }
}

/* Audience-specific visibility */
[data-aud="workers"] [data-show="firms"], [data-aud="firms"] [data-show="workers"] { display: none !important; }

/* Print */
@media print { .site-header, .site-footer, .mobile-apply, .consent, .consent-fab, .support, .toasts, .closing, .filterbar { display: none !important; } body { background: #fff; } }

@media (max-width: 520px) { .app-top__web { display: none; } .app-top { gap: 8px; } }

/* ---------------------------------------------------------------- Language links (drawer, footer) */
.drawer__langs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .9rem; }
.drawer__langs a { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); color: var(--ink-2); font-weight: 600; }
.drawer__langs a[aria-current="true"] { background: var(--accent-tint); border-color: color-mix(in oklab, var(--accent) 30%, transparent); color: var(--ink); }
.site-footer__langs strong { font-weight: 650; color: var(--ink-2); }
