/* DivePlaner — portal.css. Wspólny arkusz portalu (strona główna, instalacja, logowanie, panele).
   Tokeny i charakter wizualny jak GasBlender 1.1.0: miętowa marka, białe karty z dużym zaokrągleniem, pigułki, Poppins.
   Motyw: prefers-color-scheme + <html data-theme="light|dark"> (ustawiane przez /theme-init.js). */

/* ---------- Poppins (SIL OFL 1.1, /fonts/OFL.txt) ---------- */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/poppins-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/poppins-latin-400-normal.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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/poppins-latin-ext-500-normal.woff2) format('woff2'); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/poppins-latin-500-normal.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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/poppins-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/poppins-latin-600-normal.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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/poppins-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/poppins-latin-700-normal.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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* ---------- tokeny (GasBlender 1.1.0) ---------- */
:root {
  color-scheme: light;
  --bg: #F3F6F5;
  --bg-2: #EAF1EE;
  --card: #FFFFFF;
  --card-2: #F7FAF9;
  --track: #E8EEEC;
  --line: #E3EAE7;
  --line-2: #D5DFDB;
  --fg: #13201B;
  --fg-2: #5E6E68;
  --brand: #1E9E78;
  --brand-strong: #13805F;
  --brand-ink: #0F7556;
  --brand-soft: #E3F4EE;
  --brand-soft-2: #D3EDE3;
  --brand-fg: #FFFFFF;
  --brand-hero: linear-gradient(135deg, #16855F 0%, #13805F 45%, #0F6A4F 100%);
  --brand-btn: linear-gradient(180deg, #16855F 0%, #13805F 100%);
  --stop-bg: #D93036; --stop-fg: #FFFFFF; --stop-ink: #C42B31; --stop-soft: #FDECEC; --stop-line: #F6C9CB;
  --warn-bg: #FFF4DE; --warn-fg: #7A4B00; --warn-tile: #F5A623; --warn-line: #F6DFAE;
  --info-bg: #E6F0F6; --info-fg: #1F4A66; --info-tile: #CFE2EE;
  --ok: #13805F;
  --dim: rgba(10, 22, 18, .5);
  --sh-1: 0 1px 2px rgba(16, 40, 32, .04), 0 6px 18px rgba(16, 40, 32, .06);
  --sh-2: 0 2px 6px rgba(16, 40, 32, .06), 0 14px 34px rgba(16, 40, 32, .10);
  --sh-3: 0 4px 10px rgba(16, 40, 32, .08), 0 24px 60px rgba(16, 40, 32, .16);
  --sh-brand: 0 10px 22px -8px rgba(15, 106, 79, .55);
  --card-border: transparent;
  --header-bg: color-mix(in srgb, var(--bg) 86%, transparent);
  --focus: 0 0 0 3px color-mix(in srgb, var(--brand) 30%, transparent);
  --radius: 20px;
  --radius-l: 24px;
  --radius-s: 16px;
  --font: Poppins, Roboto, "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Roboto Mono", ui-monospace, Consolas, "SF Mono", monospace;
  --t-hero: clamp(2rem, 1.35rem + 3.2vw, 3.5rem);
  --t-h1: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --t-h2: 1.25rem;
  --t-h3: 1.0625rem;
  --t-body: 1rem;
  --t-sm: .9375rem;
  --t-xs: .8125rem;
  --t-label: max(12px, .75rem);
  --header-h: 68px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0E1513; --bg-2: #121B18; --card: #17211E; --card-2: #1D2925; --track: #22302B; --line: #26332F; --line-2: #31423C; --fg: #EEF5F2; --fg-2: #A7B8B1;
    --brand: #3CCB9C; --brand-strong: #3CCB9C; --brand-ink: #7FE0BC; --brand-soft: #173A2F; --brand-soft-2: #1C4638; --brand-fg: #0E1513;
    --brand-hero: linear-gradient(135deg, #157F5E 0%, #12735A 45%, #0F5E46 100%);
    --brand-btn: linear-gradient(180deg, #47D3A5 0%, #3CCB9C 100%);
    --stop-bg: #D93036; --stop-fg: #FFFFFF; --stop-ink: #FF8A8F; --stop-soft: #3A1A1C; --stop-line: #5A2A2D;
    --warn-bg: #33260F; --warn-fg: #FFC46B; --warn-tile: #FFB627; --warn-line: #4A3816;
    --info-bg: #14283A; --info-fg: #9CC4FF; --info-tile: #1D3A52;
    --ok: #3CCB9C;
    --dim: rgba(0, 0, 0, .6);
    --sh-1: 0 1px 2px rgba(0, 0, 0, .25), 0 8px 22px rgba(0, 0, 0, .25);
    --sh-2: 0 2px 8px rgba(0, 0, 0, .35), 0 16px 36px rgba(0, 0, 0, .4);
    --sh-3: 0 4px 12px rgba(0, 0, 0, .4), 0 24px 60px rgba(0, 0, 0, .5);
    --sh-brand: 0 10px 22px -8px rgba(0, 0, 0, .6);
    --card-border: #22302B;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0E1513; --bg-2: #121B18; --card: #17211E; --card-2: #1D2925; --track: #22302B; --line: #26332F; --line-2: #31423C; --fg: #EEF5F2; --fg-2: #A7B8B1;
  --brand: #3CCB9C; --brand-strong: #3CCB9C; --brand-ink: #7FE0BC; --brand-soft: #173A2F; --brand-soft-2: #1C4638; --brand-fg: #0E1513;
  --brand-hero: linear-gradient(135deg, #157F5E 0%, #12735A 45%, #0F5E46 100%);
  --brand-btn: linear-gradient(180deg, #47D3A5 0%, #3CCB9C 100%);
  --stop-bg: #D93036; --stop-fg: #FFFFFF; --stop-ink: #FF8A8F; --stop-soft: #3A1A1C; --stop-line: #5A2A2D;
  --warn-bg: #33260F; --warn-fg: #FFC46B; --warn-tile: #FFB627; --warn-line: #4A3816;
  --info-bg: #14283A; --info-fg: #9CC4FF; --info-tile: #1D3A52;
  --ok: #3CCB9C;
  --dim: rgba(0, 0, 0, .6);
  --sh-1: 0 1px 2px rgba(0, 0, 0, .25), 0 8px 22px rgba(0, 0, 0, .25);
  --sh-2: 0 2px 8px rgba(0, 0, 0, .35), 0 16px 36px rgba(0, 0, 0, .4);
  --sh-3: 0 4px 12px rgba(0, 0, 0, .4), 0 24px 60px rgba(0, 0, 0, .5);
  --sh-brand: 0 10px 22px -8px rgba(0, 0, 0, .6);
  --card-border: #22302B;
}

/* ---------- baza ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; background: var(--bg); color: var(--fg);
  font-family: var(--font); font-size: var(--t-body); font-weight: 400; line-height: 1.55;
  overflow-x: hidden; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  display: flex; flex-direction: column;
}
body.no-scroll { overflow: hidden; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; }
b, strong { font-weight: 600; }
img, svg { display: block; max-width: 100%; }
svg.inline { display: inline-block; vertical-align: -.2em; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
a { color: var(--brand-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; -webkit-tap-highlight-color: transparent; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.btn:focus-visible, .chip:focus-visible, .icon-btn:focus-visible { border-radius: 999px; }
[hidden] { display: none !important; }
::selection { background: var(--brand-soft-2); color: var(--fg); }
.ico { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico.sm { width: 18px; height: 18px; }
.ico.lg { width: 28px; height: 28px; }
.sr-only { position: absolute !important; 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: 12px; top: -80px; z-index: 200; background: var(--card); color: var(--fg); padding: 12px 18px; border-radius: 999px; box-shadow: var(--sh-2); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }
.muted { color: var(--fg-2); }
.small { font-size: var(--t-sm); }
.xs { font-size: var(--t-xs); }
.caps { font-size: var(--t-label); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--fg-2); line-height: 1.3; }
.mono { font-family: var(--mono); letter-spacing: .02em; }
.nowrap { white-space: nowrap; }
.wrap { overflow-wrap: anywhere; }
.center { text-align: center; }
.grow { flex: 1 1 auto; min-width: 0; }
.mt4 { margin-top: 4px; } .mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; } .mt32 { margin-top: 32px; }
.row { display: flex; align-items: center; gap: 12px; }
.row.wrap-row { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack.lg { gap: 20px; }
.ok-text { color: var(--ok); }
.red-text { color: var(--stop-ink); }

/* kafelek z ikoną */
.ico-tile { width: 44px; height: 44px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; flex: none; background: var(--brand-soft); color: var(--brand-ink); }
.ico-tile.lg { width: 56px; height: 56px; border-radius: 18px; }
.ico-tile.lg .ico { width: 26px; height: 26px; }
.ico-tile.sm { width: 36px; height: 36px; border-radius: 12px; }
.ico-tile.sm .ico { width: 19px; height: 19px; }
.ico-tile.amber { background: var(--warn-bg); color: var(--warn-fg); }
.ico-tile.red { background: var(--stop-soft); color: var(--stop-ink); }
.ico-tile.info { background: var(--info-bg); color: var(--info-fg); }
.ico-tile.solid { background: var(--brand-strong); color: var(--brand-fg); }
.ico-tile.white { background: rgba(255, 255, 255, .18); color: #FFFFFF; }

/* ---------- układ ---------- */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 600px) { .container { padding: 0 24px; } }
@media (min-width: 1024px) { .container { padding: 0 32px; } }
.container.narrow { max-width: 860px; }
main { flex: 1 0 auto; }
.section { padding: 40px 0; }
@media (min-width: 768px) { .section { padding: 64px 0; } }
.section-head { max-width: 680px; margin-bottom: 24px; }
.section-head .eyebrow { margin-bottom: 8px; }
.section-title { font-size: var(--t-h1); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.section-lead { margin-top: 10px; color: var(--fg-2); font-size: 1.0625rem; line-height: 1.6; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: var(--t-label); font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--brand-ink); }
.grid { display: grid; gap: 16px; }
.grid-2 { display: grid; gap: 16px; grid-template-columns: 1fr; }
.grid-3 { display: grid; gap: 16px; grid-template-columns: 1fr; }
.grid-4 { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }

/* ---------- nagłówek strony publicznej ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--header-bg); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; padding-top: env(safe-area-inset-top, 0px); }
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(16, 40, 32, .4); }
.header-inner { display: flex; align-items: center; gap: 12px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 700; font-size: 1.125rem; letter-spacing: -.015em; min-height: 44px; flex: none; border-radius: 12px; }
.brand-mark { width: 40px; height: 40px; flex: none; border-radius: 12px; box-shadow: var(--sh-brand); }
.brand-mark svg, .brand-mark img { width: 100%; height: 100%; }
.brand-name { white-space: nowrap; }
.brand-name .dom { display: block; font-size: var(--t-label); font-weight: 500; letter-spacing: .02em; color: var(--fg-2); line-height: 1.1; }
.main-nav { display: none; align-items: center; gap: 4px; margin-left: 20px; }
.main-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; color: var(--fg-2); font-weight: 500; font-size: var(--t-sm); text-decoration: none; transition: background .15s, color .15s; }
.main-nav a:hover { background: var(--card); color: var(--fg); }
.main-nav a[aria-current="page"] { color: var(--brand-ink); background: var(--brand-soft); font-weight: 600; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.header-actions .auth-out, .header-actions .auth-in { display: none; align-items: center; gap: 8px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px; color: var(--fg); background: var(--card); box-shadow: var(--sh-1); border: 1px solid var(--card-border); flex: none; transition: background .15s; }
.icon-btn:hover { background: var(--card-2); }
.icon-btn.flat { background: transparent; box-shadow: none; border: 0; }
.icon-btn.flat:hover { background: var(--brand-soft); color: var(--brand-ink); }
@media (max-width: 899px) { .header-actions .auth-in:not([hidden]) { display: flex; } .header-actions .auth-in .btn { display: none; } }
@media (max-width: 379px) { .brand-name .dom { display: none; } .header-actions { gap: 6px; } }
@media (min-width: 900px) {
  .main-nav { display: flex; }
  .header-actions .auth-out:not([hidden]), .header-actions .auth-in:not([hidden]) { display: flex; }
  .menu-btn { display: none; }
}
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brand-btn); color: var(--brand-fg); font-weight: 700; font-size: .9375rem; letter-spacing: .02em; text-decoration: none; flex: none; box-shadow: var(--sh-brand); text-transform: uppercase; }
.avatar.lg { width: 64px; height: 64px; font-size: 1.375rem; }
.avatar.sm { width: 36px; height: 36px; font-size: .8125rem; box-shadow: none; }
/* menu mobilne */
.mobile-menu { position: fixed; left: 0; right: 0; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); bottom: 0; z-index: 39; background: var(--bg); overflow-y: auto; overscroll-behavior: contain; padding: 12px 16px calc(24px + env(safe-area-inset-bottom, 0px)); }
.mobile-menu .mm-links { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu .mm-link { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 8px 14px 8px 8px; border-radius: 18px; background: var(--card); box-shadow: var(--sh-1); color: var(--fg); text-decoration: none; font-weight: 600; border: 1px solid var(--card-border); }
.mobile-menu .mm-link .ico:last-child { margin-left: auto; color: var(--fg-2); width: 18px; height: 18px; }
.mobile-menu .mm-actions { display: grid; gap: 10px; margin-top: 16px; }
.mobile-menu .mm-theme { margin-top: 20px; }
@media (prefers-reduced-motion: no-preference) { .mobile-menu:not([hidden]) { animation: dp-fade-down .18s ease-out; } }
@keyframes dp-fade-down { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (min-width: 900px) { .mobile-menu { display: none !important; } }

/* ---------- przyciski ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: var(--t-body); line-height: 1.2; text-align: center; text-decoration: none; white-space: nowrap; transition: transform .1s, box-shadow .15s, background .15s, color .15s, opacity .15s; position: relative; border: 1.5px solid transparent; }
.btn:hover { text-decoration: none; }
.btn:active:not([disabled]):not([aria-disabled="true"]) { transform: scale(.985); }
.btn .ico { width: 20px; height: 20px; }
.btn-primary { background: var(--brand-btn); color: var(--brand-fg); box-shadow: var(--sh-brand); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-soft { background: var(--brand-soft); color: var(--brand-ink); }
.btn-soft:hover { background: var(--brand-soft-2); }
.btn-ghost { background: var(--card); color: var(--fg); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-ink); }
.btn-text { background: transparent; color: var(--brand-ink); padding: 0 14px; min-height: 44px; }
.btn-text:hover { background: var(--brand-soft); }
.btn-danger { background: var(--stop-bg); color: var(--stop-fg); box-shadow: 0 10px 22px -10px rgba(217, 48, 54, .6); }
.btn-danger:hover { filter: brightness(1.05); }
.btn-danger-soft { background: var(--stop-soft); color: var(--stop-ink); }
.btn-danger-soft:hover { border-color: var(--stop-line); }
.btn-white { background: #FFFFFF; color: #0F7556; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .35); }
.btn-white:hover { background: #F2FBF7; }
.btn-outline-white { background: rgba(255, 255, 255, .1); color: #FFFFFF; border-color: rgba(255, 255, 255, .55); }
.btn-outline-white:hover { background: rgba(255, 255, 255, .18); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: var(--t-sm); }
.btn-lg { min-height: 60px; padding: 0 30px; font-size: 1.0625rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn.is-busy { color: transparent !important; pointer-events: none; }
.btn.is-busy > * { visibility: hidden; }
.btn.is-busy::after { content: ''; position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 2.5px solid currentColor; border-color: var(--spin, var(--brand-fg)) var(--spin, var(--brand-fg)) transparent transparent; animation: dp-spin .7s linear infinite; }
.btn-soft.is-busy, .btn-ghost.is-busy, .btn-text.is-busy, .btn-white.is-busy { --spin: var(--brand-ink); }
.btn-danger-soft.is-busy { --spin: var(--stop-ink); }
@keyframes dp-spin { to { transform: rotate(360deg); } }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-row.end { justify-content: flex-end; }
@media (max-width: 479px) { .btn-row.stack-sm { flex-direction: column; } .btn-row.stack-sm > .btn { width: 100%; } }
.link-btn { color: var(--brand-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- pigułki / plakietki ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 2px 12px; border-radius: 999px; font-size: var(--t-label); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; line-height: 1.2; background: var(--card-2); color: var(--fg-2); border: 1px solid var(--line); white-space: nowrap; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.pill.test, .pill.amber, .pill.pending { background: var(--warn-bg); color: var(--warn-fg); border-color: var(--warn-line); }
.pill.ok, .pill.active { background: var(--brand-soft); color: var(--brand-ink); border-color: transparent; }
.pill.red, .pill.disabled { background: var(--stop-soft); color: var(--stop-ink); border-color: var(--stop-line); }
.pill.info { background: var(--info-bg); color: var(--info-fg); border-color: transparent; }
.pill.solid { background: var(--brand-strong); color: var(--brand-fg); border-color: transparent; }
.pill.on-dark { background: rgba(255, 255, 255, .16); color: #FFFFFF; border-color: rgba(255, 255, 255, .28); }
.pill.on-dark.test { background: #FFF4DE; color: #7A4B00; border-color: transparent; }
.pill.lower { text-transform: none; letter-spacing: 0; font-size: var(--t-xs); }

/* chipy (filtry / zakładki) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; -webkit-overflow-scrolling: touch; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--card); color: var(--fg-2); font-weight: 500; font-size: var(--t-sm); white-space: nowrap; border: 1px solid var(--line); text-decoration: none; flex: none; transition: background .15s, color .15s, border-color .15s; }
.chip:hover { color: var(--fg); border-color: var(--line-2); }
.chip[aria-pressed="true"], .chip[aria-selected="true"], .chip[aria-current="page"], .chip.sel { background: var(--brand-strong); color: var(--brand-fg); border-color: transparent; font-weight: 600; box-shadow: var(--sh-brand); }
.chip .count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--warn-tile); color: #13201B; font-size: 12px; font-weight: 700; }

/* segmentowy przełącznik */
.seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line); max-width: 100%; }
.seg.full { display: grid; width: 100%; }
.seg button, .seg a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; color: var(--fg-2); font-weight: 500; font-size: var(--t-sm); white-space: nowrap; text-decoration: none; transition: background .15s, color .15s; min-width: 0; }
.seg button:hover { color: var(--fg); }
.seg [aria-selected="true"], .seg [aria-pressed="true"], .seg [aria-checked="true"] { background: var(--brand-strong); color: var(--brand-fg); font-weight: 600; box-shadow: var(--sh-brand); }
.seg .ico { width: 18px; height: 18px; }

/* ---------- karty ---------- */
.card { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 20px; box-shadow: var(--sh-1); min-width: 0; }
@media (min-width: 768px) { .card { padding: 24px; } }
.card.flat { box-shadow: none; border-color: var(--line); }
.card.tight { padding: 16px; }
.card.soft { background: var(--card-2); box-shadow: none; border: 1px solid var(--line); }
.card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.card-head .ch-text { flex: 1 1 auto; min-width: 0; }
.card-title { font-size: var(--t-h3); font-weight: 600; line-height: 1.35; }
.card-sub { font-size: var(--t-sm); color: var(--fg-2); line-height: 1.45; margin-top: 2px; }
.card-foot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.card.amber-card, .disclaimer { background: var(--warn-bg); color: var(--warn-fg); border: 1px solid var(--warn-line); box-shadow: none; }
.card.highlight { box-shadow: var(--sh-1), inset 0 0 0 2px var(--warn-tile); }
.card.danger-zone { border: 1.5px solid var(--stop-line); box-shadow: none; }
a.card { color: inherit; text-decoration: none; transition: transform .15s, box-shadow .15s; }
a.card:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }

/* zastrzeżenie (tekst kanoniczny, widoczny) */
.disclaimer { display: flex; gap: 14px; align-items: flex-start; border-radius: var(--radius); padding: 16px 18px 16px 16px; line-height: 1.55; font-size: var(--t-sm); }
.disclaimer > .ico-tile { background: var(--warn-tile); color: #13201B; }
.disclaimer strong { font-weight: 700; }
.disclaimer .d-title { font-weight: 700; font-size: var(--t-body); color: var(--warn-fg); margin-bottom: 4px; }
.disclaimer a { color: var(--warn-fg); font-weight: 600; }
.disclaimer.compact { padding: 12px 14px; gap: 12px; align-items: center; }
.disclaimer.compact > .ico-tile { width: 36px; height: 36px; border-radius: 12px; }
.disclaimer.compact > .ico-tile .ico { width: 19px; height: 19px; }

/* paski komunikatów */
.note { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-s); font-size: var(--t-sm); line-height: 1.5; background: var(--info-bg); color: var(--info-fg); }
.note > .ico { margin-top: 1px; }
.note.warn { background: var(--warn-bg); color: var(--warn-fg); border: 1px solid var(--warn-line); }
.note.ok { background: var(--brand-soft); color: var(--brand-ink); }
.note.err { background: var(--stop-soft); color: var(--stop-ink); border: 1px solid var(--stop-line); }
.note a { color: inherit; font-weight: 600; }
.note strong { font-weight: 700; }

/* ---------- strona główna ---------- */
.hero { padding: 16px 0 8px; }
@media (min-width: 768px) { .hero { padding: 28px 0 16px; } }
.hero-card { position: relative; overflow: hidden; isolation: isolate; border-radius: 28px; background: var(--brand-hero); color: #FFFFFF; box-shadow: var(--sh-brand), var(--sh-2); padding: 28px 22px; display: grid; gap: 28px; }
@media (min-width: 768px) { .hero-card { padding: 48px 44px; border-radius: 32px; } }
@media (min-width: 1024px) { .hero-card { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; padding: 56px 56px; } }
.hero-card::before { content: ''; position: absolute; right: -120px; top: -140px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 70%); z-index: -1; }
.hero-card::after { content: ''; position: absolute; left: -80px; bottom: -160px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(60, 203, 156, .35), rgba(60, 203, 156, 0) 70%); z-index: -1; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.hero-title { font-size: var(--t-hero); font-weight: 700; line-height: 1.08; letter-spacing: -.03em; }
.hero-title .soft { color: #BFF0DC; }
.hero-lead { margin-top: 16px; font-size: 1.0625rem; line-height: 1.6; color: rgba(255, 255, 255, .9); max-width: 560px; }
@media (min-width: 768px) { .hero-lead { font-size: 1.1875rem; } }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
@media (max-width: 479px) { .hero-cta > .btn { flex: 1 1 100%; } }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; font-size: var(--t-sm); color: rgba(255, 255, 255, .92); }
.hero-points span { display: inline-flex; align-items: center; gap: 6px; }
.hero-points .ico { width: 18px; height: 18px; color: #BFF0DC; }
.hero-art { display: flex; justify-content: center; }
.hero-art svg { width: min(100%, 420px); height: auto; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .25)); }
@media (max-width: 1023px) { .hero-art { display: none; } }
@media (min-width: 600px) and (max-width: 1023px) { .hero-art.show-md { display: flex; } }

.free-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 22px; padding: 18px 16px; margin-top: 16px; border-radius: var(--radius); background: var(--card); box-shadow: var(--sh-1); border: 1px solid var(--card-border); font-size: var(--t-sm); color: var(--fg-2); }
.free-strip > span { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 599px) { .free-strip { justify-content: flex-start; flex-direction: column; align-items: flex-start; } .free-strip > span { align-items: flex-start; } }
.free-strip strong { color: var(--fg); }
.free-strip .ico { color: var(--brand-ink); width: 20px; height: 20px; }

.app-card { display: grid; gap: 18px; }
.app-card .ac-head { display: flex; align-items: flex-start; gap: 16px; }
.app-icon { width: 72px; height: 72px; border-radius: 20px; flex: none; box-shadow: var(--sh-2); background: #0B0F14; object-fit: cover; }
.app-icon.sm { width: 52px; height: 52px; border-radius: 15px; }
.ac-title { font-size: 1.375rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.2; }
.ac-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ac-desc { color: var(--fg-2); line-height: 1.6; }
.feature-list { list-style: none; display: grid; gap: 10px; }
@media (min-width: 600px) { .feature-list.two { grid-template-columns: 1fr 1fr; } }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; font-size: var(--t-sm); line-height: 1.5; }
.feature-list li .ico { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); stroke-width: 2.6; margin-top: 1px; }
.soon-card { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 12px; border: 2px dashed var(--line-2); background: transparent; box-shadow: none; min-height: 220px; }
.apps-layout { display: grid; gap: 16px; }
@media (min-width: 1024px) { .apps-layout { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }

.device-card { display: flex; flex-direction: column; gap: 12px; }
.device-card .dc-title { font-size: var(--t-h3); font-weight: 600; }
.device-card p { color: var(--fg-2); font-size: var(--t-sm); line-height: 1.55; }
.device-card .dc-link { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--brand-ink); text-decoration: none; min-height: 44px; }
.device-card .dc-link:hover { text-decoration: underline; }
.device-card .dc-link .ico { width: 18px; height: 18px; }

.feature-tile { display: flex; gap: 14px; align-items: flex-start; }
.feature-tile h3 { font-size: var(--t-h3); font-weight: 600; line-height: 1.35; }
.feature-tile p { color: var(--fg-2); font-size: var(--t-sm); line-height: 1.55; margin-top: 4px; }

/* ---------- stopka ---------- */
.site-footer { margin-top: 40px; padding: 32px 0 calc(28px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--bg-2); color: var(--fg-2); font-size: var(--t-sm); }
.footer-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; } }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: 999px; color: var(--fg); text-decoration: none; font-weight: 500; }
.footer-links a:hover { background: var(--card); }
@media (min-width: 900px) { .footer-links { justify-content: flex-end; } }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: var(--t-xs); }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--fg); font-weight: 600; }
.footer-brand .brand-mark { width: 32px; height: 32px; border-radius: 10px; box-shadow: none; }
.footer-disclaimer { margin-top: 12px; }

/* ---------- formularze ---------- */
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field-label { font-size: var(--t-sm); font-weight: 600; color: var(--fg); }
.field .opt { font-weight: 400; color: var(--fg-2); }
.field-hint { font-size: var(--t-xs); color: var(--fg-2); line-height: 1.45; }
.field-error { font-size: var(--t-xs); color: var(--stop-ink); font-weight: 600; line-height: 1.45; display: flex; gap: 6px; align-items: flex-start; }
.field-error:empty { display: none; }
.input, .select, .textarea { width: 100%; min-height: 52px; border: 1.5px solid var(--line-2); border-radius: var(--radius-s); padding: 12px 16px; background: var(--card); color: var(--fg); font-size: max(16px, var(--t-body)); font-weight: 500; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; }
.input::placeholder, .textarea::placeholder { color: var(--fg-2); opacity: .8; font-weight: 400; }
.input:hover, .select:hover, .textarea:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line-2)); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--focus); }
.input[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--stop-bg); box-shadow: 0 0 0 3px color-mix(in srgb, var(--stop-bg) 18%, transparent); }
.input[readonly] { background: var(--card-2); }
.textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.select { padding-right: 44px; background-image: linear-gradient(45deg, transparent 50%, var(--fg-2) 50%), linear-gradient(135deg, var(--fg-2) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; cursor: pointer; }
.input.code-input { font-family: var(--mono); font-size: 1.75rem; font-weight: 700; letter-spacing: .4em; text-align: center; padding-left: calc(16px + .4em); min-height: 64px; }
.input.code-input.text { letter-spacing: .12em; font-size: 1.25rem; }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 56px; }
.input-wrap .in-btn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: var(--fg-2); }
.input-wrap .in-btn:hover { color: var(--brand-ink); background: var(--brand-soft); }
.input-wrap.search .input { padding-left: 46px; padding-right: 16px; }
.input-wrap.search > .ico { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--fg-2); pointer-events: none; }
.form-row { display: grid; gap: 16px; }
@media (min-width: 600px) { .form-row.two { grid-template-columns: 1fr 1fr; } }
.form-error { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-s); background: var(--stop-soft); color: var(--stop-ink); border: 1px solid var(--stop-line); font-weight: 600; font-size: var(--t-sm); line-height: 1.45; }
.form-error:empty { display: none; }
.form-ok { padding: 12px 14px; border-radius: var(--radius-s); background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; font-size: var(--t-sm); }
.form-ok:empty { display: none; }
.check { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; padding: 10px 0; cursor: pointer; font-size: var(--t-sm); line-height: 1.5; }
.check input { width: 22px; height: 22px; flex: none; margin: 1px 0 0; accent-color: var(--brand-strong); cursor: pointer; }
.check.boxed { padding: 14px 16px; border-radius: var(--radius-s); background: var(--card-2); border: 1.5px solid var(--line); }
.check.boxed:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.check.boxed.invalid { border-color: var(--stop-bg); }
/* karty wyboru (radio) */
.choice-grid { display: grid; gap: 10px; }
@media (min-width: 520px) { .choice-grid.two { grid-template-columns: 1fr 1fr; } .choice-grid.three { grid-template-columns: repeat(3, 1fr); } }
.choice { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px 14px 14px; border-radius: 18px; background: var(--card-2); border: 1.5px solid var(--line); cursor: pointer; transition: border-color .15s, background .15s; min-height: 64px; }
.choice:hover { border-color: var(--line-2); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .ch-body { flex: 1; min-width: 0; }
.choice .ch-title { display: block; font-weight: 600; line-height: 1.35; }
.choice .ch-desc { display: block; font-size: var(--t-xs); color: var(--fg-2); line-height: 1.45; margin-top: 2px; }
.choice .radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--fg-2); flex: none; position: relative; margin-top: 2px; }
.choice:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.choice:has(input:checked) .radio { border-color: var(--brand); background: var(--brand); }
.choice:has(input:checked) .radio::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: #FFFFFF; }
.choice:has(input:checked) .ico-tile { background: var(--brand-strong); color: var(--brand-fg); }
.choice:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }
/* siła hasła */
.strength { display: grid; gap: 6px; }
.strength-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.strength-bar span { height: 6px; border-radius: 3px; background: var(--track); transition: background .2s; }
.strength[data-level="1"] .strength-bar span:nth-child(-n+1) { background: var(--stop-bg); }
.strength[data-level="2"] .strength-bar span:nth-child(-n+2) { background: var(--warn-tile); }
.strength[data-level="3"] .strength-bar span:nth-child(-n+3) { background: #7CC46A; }
.strength[data-level="4"] .strength-bar span:nth-child(-n+4) { background: var(--brand); }
.strength-label { font-size: var(--t-xs); color: var(--fg-2); font-weight: 500; }
.strength-label b { color: var(--fg); }
/* przełącznik on/off */
.switch { position: relative; display: inline-flex; width: 52px; height: 32px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch .track { position: absolute; inset: 0; border-radius: 16px; background: var(--track); transition: background .2s; border: 1px solid var(--line-2); }
.switch .track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 2px 6px rgba(16, 40, 32, .25); transition: left .18s; }
.switch input:checked + .track { background: var(--brand); border-color: transparent; }
.switch input:checked + .track::after { left: 23px; }
.switch input:focus-visible + .track { outline: 3px solid var(--brand); outline-offset: 2px; }
.switch input:disabled + .track { opacity: .5; }

/* ---------- strony logowania / rejestracji ---------- */
.auth-page { display: grid; min-height: 100vh; min-height: 100dvh; }
@media (min-width: 1024px) { .auth-page { grid-template-columns: minmax(380px, 5fr) minmax(0, 7fr); } }
.auth-aside { display: none; position: relative; overflow: hidden; isolation: isolate; background: var(--brand-hero); color: #FFFFFF; padding: 40px 44px; flex-direction: column; }
@media (min-width: 1024px) { .auth-aside { display: flex; position: sticky; top: 0; height: 100vh; height: 100dvh; } }
.auth-aside::before { content: ''; position: absolute; right: -140px; top: -120px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 70%); z-index: -1; }
.auth-aside .brand { color: #FFFFFF; }
.auth-aside .brand-mark { box-shadow: 0 8px 18px -6px rgba(0, 0, 0, .4); }
.auth-aside .aa-body { margin-top: auto; margin-bottom: auto; padding: 32px 0; }
.auth-aside h2 { font-size: 2rem; font-weight: 700; letter-spacing: -.025em; line-height: 1.15; }
.auth-aside p { margin-top: 14px; color: rgba(255, 255, 255, .88); line-height: 1.6; }
.auth-aside .aa-list { list-style: none; display: grid; gap: 14px; margin-top: 28px; }
.auth-aside .aa-list li { display: flex; gap: 12px; align-items: center; font-weight: 500; }
.auth-aside .aa-foot { font-size: var(--t-xs); color: rgba(255, 255, 255, .75); }
.auth-main { display: flex; flex-direction: column; min-width: 0; padding: calc(12px + env(safe-area-inset-top, 0px)) 16px calc(24px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 600px) { .auth-main { padding: 20px 32px 32px; } }
.auth-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
@media (min-width: 1024px) { .auth-top .brand { visibility: hidden; } }
.auth-center { flex: 1; display: flex; align-items: center; justify-content: center; padding: 20px 0; }
.auth-card { width: 100%; max-width: 480px; }
.auth-card.wide { max-width: 620px; }
.auth-card > .card { padding: 24px 20px; border-radius: var(--radius-l); }
@media (min-width: 600px) { .auth-card > .card { padding: 36px 36px; } }
.auth-title { font-size: 1.75rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.auth-sub { color: var(--fg-2); margin-top: 6px; line-height: 1.55; }
.auth-alt { text-align: center; margin-top: 20px; color: var(--fg-2); font-size: var(--t-sm); }
.auth-alt a { font-weight: 600; }
.auth-foot { text-align: center; font-size: var(--t-xs); color: var(--fg-2); margin-top: 16px; }
.auth-foot a { color: var(--fg-2); }
.result-panel { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 8px 0; }
.result-panel .ico-tile { width: 72px; height: 72px; border-radius: 24px; }
.result-panel .ico-tile .ico { width: 34px; height: 34px; }
.result-panel h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -.015em; }
.result-panel p { color: var(--fg-2); max-width: 420px; }

/* ---------- instalacja ---------- */
.page-hero { padding: 28px 0 8px; }
@media (min-width: 768px) { .page-hero { padding: 44px 0 12px; } }
.page-hero h1 { font-size: var(--t-h1); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.page-hero p { color: var(--fg-2); margin-top: 10px; max-width: 720px; line-height: 1.6; font-size: 1.0625rem; }
.install-cta { display: grid; gap: 18px; background: var(--brand-hero); color: #FFFFFF; border-radius: var(--radius-l); padding: 22px; box-shadow: var(--sh-brand); position: relative; overflow: hidden; isolation: isolate; }
@media (min-width: 768px) { .install-cta { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; padding: 26px 30px; } }
.install-cta::after { content: ''; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .14), transparent 70%); z-index: -1; }
.install-cta h2 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; }
.install-cta p { color: rgba(255, 255, 255, .9); font-size: var(--t-sm); margin-top: 4px; line-height: 1.55; }
.install-cta .url { font-family: var(--mono); background: rgba(0, 0, 0, .18); padding: 2px 8px; border-radius: 8px; font-size: .875em; overflow-wrap: anywhere; }
.install-cta .btn-row { flex-direction: column; }
@media (min-width: 480px) { .install-cta .btn-row { flex-direction: row; } }
.tabs-bar { position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); z-index: 5; padding: 10px 0; background: var(--header-bg); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
@media (min-width: 600px) { .tabs-bar { margin: 0; padding-left: 0; padding-right: 0; } }
.tablist { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 2px; }
.tablist::-webkit-scrollbar { display: none; }
.tab-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px 0 12px; border-radius: 999px; background: var(--card); color: var(--fg-2); font-weight: 500; font-size: var(--t-sm); white-space: nowrap; border: 1px solid var(--line); flex: none; transition: background .15s, color .15s; }
.tab-btn:hover { color: var(--fg); }
.tab-btn[aria-selected="true"] { background: var(--brand-strong); color: var(--brand-fg); border-color: transparent; font-weight: 600; box-shadow: var(--sh-brand); }
.tab-btn .detected { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 2px 8px; border-radius: 999px; background: var(--warn-bg); color: var(--warn-fg); }
.tab-btn[aria-selected="true"] .detected { background: rgba(255, 255, 255, .22); color: inherit; }
.tab-panel { padding-top: 12px; }
.tab-panel:focus-visible { outline: none; }
.steps { list-style: none; display: grid; gap: 14px; counter-reset: step; }
@media (min-width: 900px) { .steps.cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.step { display: grid; grid-template-columns: 1fr; gap: 16px; background: var(--card); border-radius: var(--radius); padding: 18px; box-shadow: var(--sh-1); border: 1px solid var(--card-border); counter-increment: step; }
@media (min-width: 600px) { .step { grid-template-columns: minmax(0, 1fr) 180px; align-items: center; padding: 22px; } }
.step-text { display: flex; gap: 14px; align-items: flex-start; }
.step-num { width: 40px; height: 40px; border-radius: 14px; background: var(--brand-strong); color: var(--brand-fg); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex: none; box-shadow: var(--sh-brand); }
.step-num::before { content: counter(step); }
.step h3 { font-size: var(--t-h3); font-weight: 600; line-height: 1.35; }
.step p { color: var(--fg-2); font-size: var(--t-sm); line-height: 1.55; margin-top: 4px; }
.step .label { display: inline-block; font-weight: 600; color: var(--fg); background: var(--brand-soft); padding: 0 8px; border-radius: 6px; white-space: nowrap; }
.step-art { display: flex; justify-content: center; }
.step-art svg { width: 100%; max-width: 200px; height: auto; }
.pict-screen { fill: var(--card-2); stroke: var(--line-2); }
.pict-frame { fill: var(--card); stroke: var(--fg-2); }
.pict-ink { fill: none; stroke: var(--fg-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pict-soft { fill: var(--track); }
.pict-brand { fill: var(--brand); }
.pict-brand-stroke { fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.pict-hl { fill: none; stroke: var(--warn-tile); stroke-width: 3; }
.pict-text { fill: var(--fg); font-family: var(--font); font-size: 11px; font-weight: 600; }
.pict-text.muted { fill: var(--fg-2); font-weight: 500; }
.pict-text.on { fill: #FFFFFF; }
.pict-card { fill: var(--card); stroke: var(--line-2); }
.notes-grid { display: grid; gap: 12px; margin-top: 18px; }
@media (min-width: 900px) { .notes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.after-list { display: grid; gap: 12px; }
@media (min-width: 900px) { .after-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- powłoka paneli (panel / klient / admin) ---------- */
.app-body { min-height: 100vh; min-height: 100dvh; }
.app-layout { display: block; min-height: 100vh; min-height: 100dvh; }
@media (min-width: 1024px) { .app-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); } }
.sidebar { display: none; }
@media (min-width: 1024px) {
  .sidebar { display: flex; flex-direction: column; position: sticky; top: 0; align-self: start; height: 100vh; height: 100dvh; overflow-y: auto; padding: 20px 16px 16px; background: var(--card); border-right: 1px solid var(--line); gap: 6px; }
}
.sidebar .brand { padding: 4px 8px 12px; }
.sb-context { margin: 4px 0 10px; padding: 12px 14px; border-radius: var(--radius-s); background: var(--brand-soft); color: var(--brand-ink); }
.sb-context .caps { color: var(--brand-ink); opacity: .85; }
.sb-context .sb-cname { font-weight: 700; line-height: 1.3; margin-top: 2px; overflow-wrap: anywhere; color: var(--fg); }
.sb-group { font-size: var(--t-label); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--fg-2); padding: 14px 12px 6px; }
.sb-nav { display: flex; flex-direction: column; gap: 2px; }
.sb-link { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 12px; border-radius: 14px; color: var(--fg-2); text-decoration: none; font-weight: 500; font-size: var(--t-sm); transition: background .15s, color .15s; }
.sb-link:hover { background: var(--card-2); color: var(--fg); }
.sb-link[aria-current="page"] { background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; }
.sb-link .badge-count { margin-left: auto; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; background: var(--warn-tile); color: #13201B; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.sb-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.sb-user { display: flex; align-items: center; gap: 10px; padding: 6px 4px; min-width: 0; }
.sb-user .u-name { font-weight: 600; font-size: var(--t-sm); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-user .u-mail { font-size: var(--t-xs); color: var(--fg-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-actions { display: flex; gap: 8px; align-items: center; }
.sb-actions .btn { flex: 1; }
/* górny pasek (telefon/tablet) */
.app-top { position: sticky; top: 0; z-index: 30; background: var(--header-bg); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); padding-top: env(safe-area-inset-top, 0px); border-bottom: 1px solid var(--line); }
@media (min-width: 1024px) { .app-top { display: none; } }
.app-top-row { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 0 16px; }
.app-top-row .brand-name { font-size: 1rem; }
.app-top-row .brand-name small { display: block; font-size: var(--t-xs); font-weight: 500; color: var(--fg-2); letter-spacing: 0; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; }
.app-top-row .spacer { flex: 1; }
.app-tabs { padding: 0 16px 10px; }
.app-tabs .chip { min-height: 42px; padding: 0 14px 0 12px; }
.app-tabs .chip .ico { width: 18px; height: 18px; }
.app-main { min-width: 0; padding: 4px 16px calc(40px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 600px) { .app-main { padding: 8px 24px 48px; } }
@media (min-width: 1024px) { .app-main { padding: 28px 40px 56px; } }
.app-main-inner { max-width: 1120px; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px 16px; padding: 18px 0 20px; }
@media (min-width: 1024px) { .page-head { padding-top: 8px; } }
.page-head .ph-greet { color: var(--fg-2); font-size: var(--t-sm); }
.page-head h1 { font-size: var(--t-h1); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; margin-top: 2px; }
.page-head .ph-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.view { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 1024px) { .view { gap: 20px; } }
@media (prefers-reduced-motion: no-preference) { .view:not([hidden]) { animation: dp-view-in .2s ease-out; } }
@keyframes dp-view-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.cols-2 { display: grid; gap: 16px; }
@media (min-width: 1100px) { .cols-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; } .cols-2 .span-2 { grid-column: 1 / -1; } }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.toolbar .input-wrap.search { flex: 1 1 240px; min-width: 0; }
.toolbar .select { width: auto; flex: 0 1 220px; min-width: 150px; }
@media (max-width: 599px) { .toolbar .select { flex: 1 1 100%; } }

/* kafle statystyk */
.stat { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: var(--radius); background: var(--card); box-shadow: var(--sh-1); border: 1px solid var(--card-border); min-width: 0; }
.stat .st-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stat .st-label { font-size: var(--t-xs); color: var(--fg-2); font-weight: 500; line-height: 1.35; }
.stat .st-value { font-size: 1.875rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; overflow-wrap: anywhere; }
.stat .st-value.sm { font-size: 1.25rem; }
.stat .st-sub { font-size: var(--t-xs); color: var(--fg-2); }
.stat.is-brand { background: var(--brand-hero); color: #FFFFFF; box-shadow: var(--sh-brand); }
.stat.is-brand .st-label, .stat.is-brand .st-sub { color: rgba(255, 255, 255, .85); }
.stat.is-warn { background: var(--warn-bg); color: var(--warn-fg); border: 1px solid var(--warn-line); box-shadow: none; }
.stat.is-warn .st-label { color: var(--warn-fg); }

/* listy i wiersze */
.list { display: flex; flex-direction: column; }
.list-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.list-row:last-child { border-bottom: 0; }
.list-row:first-child { padding-top: 0; }
.list-row .lr-main { flex: 1 1 auto; min-width: 0; }
.list-row .lr-title { font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.list-row .lr-sub { font-size: var(--t-xs); color: var(--fg-2); line-height: 1.5; margin-top: 2px; overflow-wrap: anywhere; }
.list-row .lr-actions { display: flex; align-items: center; gap: 8px; flex: none; }
@media (max-width: 599px) { .list-row.wrap-sm { flex-wrap: wrap; } .list-row.wrap-sm .lr-actions { width: 100%; padding-left: 50px; } .list-row.wrap-sm .lr-actions .btn { flex: 1; } }
.kv { display: grid; grid-template-columns: minmax(110px, auto) 1fr; gap: 10px 18px; font-size: var(--t-sm); }
.kv dt { color: var(--fg-2); }
.kv dd { font-weight: 500; overflow-wrap: anywhere; }

/* tabela responsywna (karty na telefonie) */
.table-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.table th { text-align: left; font-size: var(--t-label); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--fg-2); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.45; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--card-2); }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table .strong { font-weight: 600; }
@media (max-width: 759px) {
  .table.cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table.cards, .table.cards tbody, .table.cards tr, .table.cards td { display: block; width: 100%; }
  .table.cards tr { background: var(--card-2); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 10px 14px; margin-bottom: 10px; }
  .table.cards tbody tr:hover td { background: transparent; }
  .table.cards td { border: 0; padding: 4px 0; display: flex; gap: 12px; justify-content: space-between; text-align: right; }
  .table.cards td::before { content: attr(data-label); color: var(--fg-2); font-weight: 500; text-align: left; flex: none; max-width: 45%; }
  .table.cards td.num { text-align: right; }
  .table.cards td.full { display: block; text-align: left; }
  .table.cards td.full::before { display: block; margin-bottom: 2px; }
  .table.cards td.head { font-weight: 700; font-size: var(--t-body); }
}

/* stany puste / ładowanie */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 28px 16px; color: var(--fg-2); }
.empty .ico-tile { width: 56px; height: 56px; border-radius: 18px; }
.empty .e-title { color: var(--fg); font-weight: 600; }
.empty p { font-size: var(--t-sm); max-width: 380px; }
.skeleton { border-radius: 12px; background: linear-gradient(90deg, var(--track) 0%, var(--card-2) 50%, var(--track) 100%); background-size: 200% 100%; animation: dp-shimmer 1.2s ease-in-out infinite; min-height: 16px; }
.skeleton.block { min-height: 88px; border-radius: var(--radius-s); }
@keyframes dp-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--track); border-top-color: var(--brand); animation: dp-spin .8s linear infinite; }
.loading-block { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 32px; color: var(--fg-2); font-size: var(--t-sm); }

/* karty aplikacji w panelu */
.app-tile { display: flex; flex-direction: column; gap: 14px; }
.app-tile .at-head { display: flex; gap: 14px; align-items: center; }
.app-tile .at-name { font-weight: 700; font-size: 1.125rem; letter-spacing: -.01em; }
.app-tile .at-desc { color: var(--fg-2); font-size: var(--t-sm); line-height: 1.55; }
.app-tile .btn-row { margin-top: auto; }

/* użytkownicy / klienci */
.entity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.entity .e-main { min-width: 0; flex: 1 1 auto; }
.entity .e-name { font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.entity .e-sub { font-size: var(--t-xs); color: var(--fg-2); overflow-wrap: anywhere; line-height: 1.45; }
.entity-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.entity-card:last-child { border-bottom: 0; }
.entity-card .ec-tags { display: flex; flex-wrap: wrap; gap: 6px; grid-column: 1 / -1; }
.card:has(.entity-card) { container-type: inline-size; }
@container (min-width: 720px) { .entity-card { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.3fr) auto; } .entity-card .ec-tags { grid-column: auto; } }
.entity-card.pending-row { background: color-mix(in srgb, var(--warn-bg) 60%, transparent); margin: 0 -14px; padding-left: 14px; padding-right: 14px; border-radius: 14px; border-bottom: 0; margin-bottom: 6px; }
.ec-actions { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }

/* menu rozwijane */
.menu-wrap { position: relative; display: inline-flex; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 230px; max-width: min(320px, calc(100vw - 32px)); padding: 6px; border-radius: 18px; background: var(--card); box-shadow: var(--sh-3); border: 1px solid var(--line); display: flex; flex-direction: column; }
.menu.up { top: auto; bottom: calc(100% + 6px); }
.menu [role="menuitem"] { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 12px; text-align: left; font-size: var(--t-sm); font-weight: 500; color: var(--fg); text-decoration: none; white-space: nowrap; }
.menu [role="menuitem"]:hover, .menu [role="menuitem"]:focus-visible { background: var(--card-2); outline: none; }
.menu [role="menuitem"].danger { color: var(--stop-ink); }
.menu [role="menuitem"] .ico { width: 18px; height: 18px; color: var(--fg-2); }
.menu [role="menuitem"].danger .ico { color: var(--stop-ink); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }
.menu .menu-head { padding: 8px 12px 6px; font-size: var(--t-xs); color: var(--fg-2); overflow-wrap: anywhere; }
@media (prefers-reduced-motion: no-preference) { .menu:not([hidden]) { animation: dp-pop .14s ease-out; } }
@keyframes dp-pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- okna dialogowe (<dialog>) ---------- */
dialog.dlg { border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 100%; max-height: 92vh; max-height: 92dvh; border-radius: 28px 28px 0 0; background: var(--card); color: var(--fg); box-shadow: var(--sh-3); overflow: hidden; }
dialog.dlg[open] { display: flex; flex-direction: column; }
@media (min-width: 600px) { dialog.dlg { margin: auto; width: calc(100% - 48px); max-width: 520px; border-radius: 28px; max-height: 88vh; max-height: 88dvh; } dialog.dlg.wide { max-width: 680px; } }
dialog.dlg::backdrop { background: var(--dim); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
@media (prefers-reduced-motion: no-preference) {
  dialog.dlg[open] { animation: dp-sheet-in .22s cubic-bezier(.2, .9, .3, 1); }
  @media (min-width: 600px) { dialog.dlg[open] { animation: dp-dialog-in .18s ease-out; } }
}
@keyframes dp-sheet-in { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes dp-dialog-in { from { transform: scale(.96); opacity: .3; } to { transform: none; opacity: 1; } }
.dlg-head { display: flex; align-items: flex-start; gap: 12px; padding: 22px 16px 6px 22px; }
.dlg-head .dlg-title { flex: 1; font-size: 1.1875rem; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; padding-top: 8px; overflow-wrap: anywhere; }
.dlg-body { padding: 8px 22px 16px; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 14px; }
.dlg-body > p { color: var(--fg-2); line-height: 1.55; }
.dlg-foot { display: flex; flex-direction: column-reverse; gap: 10px; padding: 12px 22px calc(18px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
@media (min-width: 600px) { .dlg-foot { flex-direction: row; justify-content: flex-end; padding-bottom: 20px; } .dlg-foot .btn { min-width: 120px; } }

/* sekret / kody / QR */
.secret-box { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 12px 12px 16px; border-radius: var(--radius-s); background: var(--card-2); border: 1.5px dashed var(--line-2); }
.secret-box .secret { flex: 1 1 180px; min-width: 0; font-family: var(--mono); font-size: 1.125rem; font-weight: 700; letter-spacing: .06em; overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; }
.codes-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.codes-grid code { display: block; text-align: center; padding: 10px 8px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line); font-family: var(--mono); font-weight: 700; font-size: 1rem; letter-spacing: .06em; }
.qr-box { display: flex; justify-content: center; }
.qr-box .qr { width: 220px; max-width: 100%; height: auto; padding: 12px; background: #FFFFFF; border-radius: 18px; box-shadow: var(--sh-1); border: 1px solid var(--line); image-rendering: pixelated; }
.qr-box .qr svg { width: 100%; height: auto; }
.totp-setup { display: grid; gap: 18px; }
@media (min-width: 720px) { .totp-setup { grid-template-columns: 240px minmax(0, 1fr); align-items: start; } }

/* baner w panelu */
.banner { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 14px 16px; border-radius: var(--radius); background: var(--warn-bg); color: var(--warn-fg); border: 1px solid var(--warn-line); }
.banner .b-text { flex: 1 1 180px; min-width: 0; font-size: var(--t-sm); line-height: 1.5; }
.banner .b-text strong { display: block; font-size: var(--t-body); }
.banner.info { background: var(--info-bg); color: var(--info-fg); border-color: transparent; }
.banner.brand { background: var(--brand-soft); color: var(--brand-ink); border-color: transparent; }

/* ---------- toast ---------- */
.toast-region { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 300; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; max-width: 520px; width: max-content; min-height: 52px; padding: 12px 18px 12px 14px; border-radius: 999px; background: #13201B; color: #FFFFFF; box-shadow: var(--sh-3); font-weight: 500; font-size: var(--t-sm); line-height: 1.4; }
.toast .ico { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: #3CCB9C; color: #0E1513; stroke-width: 2.8; }
.toast.error { background: #B0242A; }
.toast.error .ico { background: #FFFFFF; color: #B0242A; }
.toast.info .ico { background: #9CC4FF; color: #14283A; }
@media (max-width: 599px) { .toast { width: 100%; border-radius: 20px; } }
@media (prefers-reduced-motion: no-preference) { .toast { animation: dp-toast-in .2s ease-out; } }
@keyframes dp-toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- treść (zasady) ---------- */
.prose { line-height: 1.7; font-size: 1.0313rem; }
.prose h2 { font-size: 1.375rem; font-weight: 700; letter-spacing: -.015em; margin: 32px 0 10px; line-height: 1.3; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 10px 0; color: var(--fg); }
.prose ul { padding-left: 22px; margin: 10px 0; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--brand-ink); }

/* ---------- 404 ---------- */
.nf { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; padding: 56px 0 24px; }
.nf .nf-code { font-size: clamp(4.5rem, 3rem + 8vw, 8rem); font-weight: 700; letter-spacing: -.05em; line-height: 1; background: var(--brand-hero); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf h1 { font-size: var(--t-h1); font-weight: 700; }
.nf p { color: var(--fg-2); max-width: 460px; }

/* druk */
@media print { .site-header, .site-footer, .sidebar, .app-top, .toast-region, .btn { display: none !important; } body { background: #FFFFFF; } .card { box-shadow: none; border: 1px solid #DDD; } }

/* drobne uzupełnienia */
details > summary { cursor: pointer; }
details > summary.link-btn { list-style: none; }
details > summary.link-btn::-webkit-details-marker { display: none; }
.auth-foot .disclaimer { text-align: left; max-width: 640px; margin: 0 auto; }
fieldset.fs { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
fieldset.fs > legend { padding: 0; margin-bottom: 4px; font-size: var(--t-label); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--fg-2); }
.fs-sep { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
.invite-info { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--radius-s); background: var(--brand-soft); color: var(--brand-ink); font-size: var(--t-sm); }
.invite-info strong { color: var(--fg); }
.app-col { min-width: 0; display: flex; flex-direction: column; }
.app-col > .app-main { flex: 1 0 auto; }
@media (max-width: 479px) { .disclaimer:not(.compact) { flex-direction: column; gap: 10px; } }

/* kurs gas blendera (strona główna #kurs) */
.course { display: grid; gap: 16px; }
@media (min-width: 900px) { .course { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: stretch; } }
.course-list { list-style: none; display: grid; gap: 12px; margin-top: 18px; }
.course-list li { display: flex; gap: 14px; align-items: flex-start; }
.course-list h3 { font-size: var(--t-h3); font-weight: 600; line-height: 1.35; }
.course-list p { color: var(--fg-2); font-size: var(--t-sm); line-height: 1.55; margin-top: 2px; }
.contact-card { display: flex; flex-direction: column; gap: 16px; background: var(--brand-soft); border: 1px solid var(--brand-soft-2); box-shadow: none; }
.contact-card .cc-head { display: flex; gap: 14px; align-items: center; }
.contact-card .cc-name { font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; color: var(--fg); }
.contact-card .cc-titles { list-style: none; display: grid; gap: 6px; font-size: var(--t-sm); color: var(--fg); }
.contact-card .cc-titles li { display: flex; gap: 8px; align-items: flex-start; }
.contact-card .cc-titles .ico { width: 18px; height: 18px; color: var(--brand-ink); margin-top: 2px; }
.contact-card .cc-phone { font-size: 1.125rem; font-weight: 700; color: var(--fg); letter-spacing: .01em; }
.contact-card .btn-row { margin-top: auto; }
