:root {
  color-scheme: light;
  --bg: #f3f2f2;
  --surface: #eae9e9;
  --text: #201e1d;
  --accent: #ec3013;
  --accent-strong: #dd2b0f;
  --accent-deep: #ae1800;
  --accent-tint: #fff2ef;
  --on-accent: #fbf8f7;
  --n100: #f8f4f4;
  --n200: #eae7e7;
  --n300: #d7d3d3;
  --n500: #9b9797;
  --n600: #7d7979;
  --n700: #605d5d;
  --divider: color-mix(in srgb, var(--text) 40%, transparent);
  --hover: color-mix(in srgb, var(--text) 7%, transparent);
  --today: color-mix(in srgb, var(--accent) 5%, transparent);
  --shadow-lg: 0 12px 32px rgba(45, 43, 43, 0.22);
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #141313; --surface: #1f1d1c; --text: #efebea;
    --accent: #f2462b; --accent-strong: #ff563c; --accent-deep: #ff9783; --accent-tint: #35140f; --on-accent: #fff8f6;
    --n100: #1a1918; --n200: #252322; --n300: #353231; --n500: #6f6b6b; --n600: #9e9a99; --n700: #bdb8b7;
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.55);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #141313; --surface: #1f1d1c; --text: #efebea;
  --accent: #f2462b; --accent-strong: #ff563c; --accent-deep: #ff9783; --accent-tint: #35140f; --on-accent: #fff8f6;
  --n100: #1a1918; --n200: #252322; --n300: #353231; --n500: #6f6b6b; --n600: #9e9a99; --n700: #bdb8b7;
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.55);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.55; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }
/* dotyk: bez szarego błysku i bez przybliżania po dwukrotnym stuknięciu */
button, a, input, select, textarea, label { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--accent) 30%, transparent); }

.page { max-width: 1320px; margin: 0 auto; padding-inline: max(24px, env(safe-area-inset-left, 0px)) max(24px, env(safe-area-inset-right, 0px)); padding-block: 0 40px; }

/* — buttons — */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 38px; padding: 8px 14px; cursor: pointer;
  font-family: var(--font); font-weight: 800; font-size: 14px; line-height: 1.2;
  background: transparent; border: 1px solid transparent; border-radius: 0; white-space: nowrap;
}
.btn:disabled { opacity: 0.5; cursor: progress; }
.btn svg { display: block; flex: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-strong); }
.btn-secondary { border-color: var(--divider); }
.btn-secondary:hover { background: var(--hover); }
.btn-ghost { color: var(--accent-deep); padding-inline: 6px; }
.btn-ghost:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }

/* — top bar: child switcher + actions — */
.bar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  display: flex; align-items: center; gap: 16px;
  padding-block: 12px; margin-bottom: 24px;
  background: var(--bg); border-bottom: 2px solid var(--divider);
}
.kids {
  display: flex; min-width: 0; max-width: 100%; overflow-x: auto; scrollbar-width: none;
  border: 1px solid var(--divider);
}
.kids::-webkit-scrollbar { display: none; }
.kid {
  flex: none; appearance: none; border: 0; border-radius: 0; background: transparent; cursor: pointer;
  padding: 8px 16px; font-weight: 700; font-size: 15px; white-space: nowrap;
}
.kid + .kid { border-left: 1px solid var(--divider); }
.kid:hover { background: var(--hover); }
.kid[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.kid-add { color: var(--accent-deep); font-weight: 600; font-size: 14px; }
.actions { display: flex; align-items: center; gap: 8px; flex: none; margin-left: auto; }
.ro { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--n600); }

.hint, .banner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  margin: 0 0 20px; padding: 10px 14px; font-size: 14px;
  background: var(--accent-tint);
}
.banner span { flex: 1 1 260px; }

/* — header — */
.head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; padding-bottom: 12px; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-deep); }
/* numer wersji (1.1.7): plakietka w nagłówku i w menu konta */
.eyebrow .ver { margin-left: 10px; padding: 1px 6px; font-size: 0.78em; letter-spacing: 0.06em; text-transform: none; color: var(--n600); border: 1px solid var(--divider); vertical-align: 1px; font-variant-numeric: tabular-nums; }
.app-ver { font-size: 12px; color: var(--n600); font-variant-numeric: tabular-nums; }
h1 { margin: 6px 0 0; font-size: 40px; line-height: 1.02; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
h1 .who { color: var(--n600); font-weight: 700; }
.facts { display: flex; flex-wrap: wrap; gap: 12px 40px; margin: 0; padding-bottom: 6px; }
.fact dt { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--n600); }
.fact dd { margin: 4px 0 0; font-size: 30px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.rule { height: 2px; background: var(--divider); }

.head-edit { align-items: flex-end; }
.fields { flex: 1 1 560px; display: grid; grid-template-columns: 1.3fr 1fr 0.7fr 1fr; gap: 12px 16px; }
.field label { display: block; margin-bottom: 5px; font-size: 12px; color: color-mix(in srgb, var(--text) 70%, transparent); }
.input {
  width: 100%; min-height: 40px; padding: 6px 10px; font: inherit; font-size: 16px;
  color: var(--text); caret-color: var(--accent); background: var(--surface);
  border: 1px solid var(--divider); border-radius: 0;
}
.input:hover { border-color: color-mix(in srgb, var(--text) 55%, transparent); }
.input:focus-visible { border-color: var(--accent); outline-offset: 0; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--n600) 50%), linear-gradient(135deg, var(--n600) 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 28px; }

/* — edit affordance, zero specificity so component rules win — */
:where(button.editable) {
  appearance: none; margin: 0; border: 0; border-radius: 0; background: transparent;
  font: inherit; color: inherit; text-align: left; cursor: pointer;
}
.editable:hover { outline: 2px dashed color-mix(in srgb, var(--accent) 65%, transparent); outline-offset: -4px; }
.editable:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.plus { font-size: 13px; font-weight: 600; color: var(--n500); }

/* — desktop grid (from the template) — */
.grid {
  display: grid; grid-template-columns: 44px 112px repeat(5, minmax(0, 1fr));
  border-left: 2px solid var(--divider); border-right: 2px solid var(--divider); border-bottom: 2px solid var(--divider);
}
.gh { display: flex; align-items: center; padding: 12px 8px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--n600); border-bottom: 2px solid var(--divider); }
.gl, .gday, .gtime, .gcell { border-left: 1px solid var(--n300); }
.gday { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px; font-size: 18px; font-weight: 800; letter-spacing: -0.01em; border-bottom: 2px solid var(--divider); min-width: 0; }
.gday.is-today { box-shadow: inset 0 -4px 0 var(--accent); }
.today { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 2px 6px; background: var(--accent); color: var(--on-accent); }
.gno { padding: 9px 8px; font-size: 18px; font-weight: 800; color: var(--accent); background: var(--n100); border-bottom: 1px solid var(--n300); }
.gtime { padding: 9px 10px; font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--n700); background: var(--n100); border-bottom: 1px solid var(--n300); }
.gcell { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 9px 10px; border-bottom: 1px solid var(--n300); }
.col-today { background: var(--today); }
.subj { font-size: 17px; font-weight: 800; line-height: 1.15; text-wrap: pretty; hyphens: auto; }
.teacher { font-size: 14px; line-height: 1.25; color: var(--n700); }
.room { font-size: 13.5px; letter-spacing: 0.04em; color: var(--accent-deep); }

.brk { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 3px 12px; font-size: 12.5px; font-variant-numeric: tabular-nums; color: var(--n600); background: var(--n200); border-bottom: 1px solid var(--n300); }
.brk .lbl { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.brk.long { padding: 6px 12px; font-size: 13px; font-weight: 700; color: var(--on-accent); background: var(--accent); }
.brk.long strong { letter-spacing: 0.14em; text-transform: uppercase; }
.brk.long .len { font-weight: 400; }
.span-all { grid-column: 1 / -1; }

/* — phone: one day at a time — */
.mobile { display: none; }
.daytabs { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 16px; border: 1px solid var(--divider); }
.dtab { position: relative; appearance: none; border: 0; border-radius: 0; background: transparent; cursor: pointer; padding: 11px 0; font-size: 15px; font-weight: 800; }
.dtab + .dtab { border-left: 1px solid var(--divider); }
.dtab.on { background: var(--accent); color: var(--on-accent); }
.dot { position: absolute; top: 6px; right: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.dtab.on .dot { background: var(--on-accent); }
.dhead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin: 18px 0 10px; }
.dname { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -0.01em; }
.dspan { font-size: 14px; color: var(--n600); font-variant-numeric: tabular-nums; }
.mlist { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--divider); border-bottom: 2px solid var(--divider); }
.ml { display: grid; grid-template-columns: 38px 62px minmax(0, 1fr); border-bottom: 1px solid var(--n300); }
.ml:last-child { border-bottom: 0; }
.mno { padding: 10px 8px; font-size: 18px; font-weight: 800; color: var(--accent); background: var(--n100); }
.mtime { display: flex; flex-direction: column; justify-content: flex-start; padding: 11px 8px; font-size: 14px; line-height: 1.3; font-variant-numeric: tabular-nums; color: var(--n700); background: var(--n100); border-left: 1px solid var(--n300); }
.mbody { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 10px 12px; border-left: 1px solid var(--n300); }
.window { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--n500); padding-top: 3px; }
.none { margin: 0; padding: 28px 0; color: var(--n600); border-top: 2px solid var(--divider); border-bottom: 2px solid var(--divider); }

.addrow { margin-top: 16px; }
.note { margin: 20px 0 0; font-size: 13px; color: var(--n600); }

/* — current lesson: same language as today's column (accent bar + tag) — */
.gtime.is-now, .mtime.is-now { flex-direction: column; align-items: flex-start; gap: 4px; }
.gtime.is-now { display: flex; color: var(--text); font-weight: 700; }
.gno.is-now, .mno.is-now { box-shadow: inset 4px 0 0 var(--accent); }
.row-now { background: var(--today); }
.col-today.row-now { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.cell-now { box-shadow: inset 0 0 0 2px var(--accent); }
.ml.is-now .mbody { background: var(--today); box-shadow: inset 0 0 0 2px var(--accent); }
.ml.is-now .mtime { color: var(--text); font-weight: 700; }
.brk.is-now { box-shadow: inset 4px 0 0 var(--accent); color: var(--text); }
.brk.long.is-now { box-shadow: inset 4px 0 0 var(--on-accent); color: var(--on-accent); }
.brk.long .today { background: var(--on-accent); color: var(--accent); }

/* — icon buttons in the bar — */
.btn-icon { width: 38px; padding: 0; }
.acct { max-width: 180px; }
.acct .name { overflow: hidden; text-overflow: ellipsis; }
.meta { margin: 20px 0 0; font-size: 13px; color: var(--n600); }

/* — account / users dialogs — */
.menu { display: flex; flex-direction: column; gap: 8px; }
.menu .btn { justify-content: flex-start; }
.users { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--divider); }
.users li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 10px 0; border-bottom: 1px solid var(--divider); }
.users .who { flex: 1 1 140px; min-width: 0; font-weight: 700; overflow-wrap: anywhere; }
.role { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; padding: 2px 8px; background: var(--n200); color: var(--n700); }
.role.admin { background: var(--accent-tint); color: var(--accent-deep); }
.users .btn { min-height: 32px; padding: 4px 10px; font-size: 13px; }
.subhead { margin: 6px 0 -4px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--n600); }
.trio { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.trio .field:first-child { grid-column: 1 / -1; }
.okmsg { margin: 0; font-size: 13px; color: var(--n700); }
dialog.dlg.wide { width: min(560px, calc(100% - 32px)); }
dialog.dlg.xwide { width: min(820px, calc(100% - 32px)); }
.dialog { overflow-y: auto; max-height: calc(100dvh - 32px); }

@media (max-width: 759px) {
  .page { padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); }
  .desk { display: none; }
  .mobile { display: block; }
  .bar { gap: 10px; margin-bottom: 18px; padding-block: 10px; }
  h1 { font-size: 30px; }
  .eyebrow { font-size: 12px; }
  .facts { gap: 12px 28px; }
  .fact dt { font-size: 11px; }
  .fact dd { font-size: 20px; }
  .fields { grid-template-columns: 1fr 1fr; }
  .lbl-wide { display: none; }
  .bar [data-action="print"] { display: none; } /* on phones: Konto → Drukuj plan */
  .bar .btn:not(.btn-primary):not([data-action="cancel"]) { width: 38px; padding: 0; }
  .actions { gap: 6px; }
}

/* — dialogs — */
dialog.dlg { width: min(460px, calc(100% - 32px)); max-width: none; max-height: calc(100% - 32px); padding: 0; border: 0; background: transparent; color: var(--text); }
dialog.dlg::backdrop { background: rgba(20, 19, 19, 0.55); }
.dialog { display: flex; flex-direction: column; gap: 14px; padding: 20px; background: var(--surface); box-shadow: var(--shadow-lg); }
.dialog .input { background: var(--bg); }
.dialog-title { font-size: 20px; font-weight: 800; line-height: 1.2; }
.dialog-sub { margin-top: 2px; font-size: 14px; color: var(--n600); font-variant-numeric: tabular-nums; }
.dialog-body { margin: 0; font-size: 14px; }
.dialog-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.grow { flex: 1; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.err { margin: 0; font-size: 13px; color: var(--accent-deep); }

.toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 20;
  transform: translateX(-50%); max-width: calc(100% - 32px);
  padding: 10px 16px; font-size: 14px; font-weight: 600;
  background: var(--text); color: var(--bg); box-shadow: var(--shadow-lg);
}

/* — print sheet: white A4 portrait, no "today"/"now" highlights. Hidden on screen, shown only in print.
   Every size is in em of one base size; before printing app.js measures the sheet at A4 width
   (class .measure) and picks the largest --ps-scale that still fits one page (0.45–1.3), then spreads
   any leftover height over the lesson rows (--ps-fill). — */
.print-sheet { display: none; }
.print-sheet.measure { display: block; position: absolute; left: -10000px; top: 0; width: 194mm; visibility: hidden; }
.print-sheet { color: #111; font-family: var(--font); line-height: 1.25;
  font-size: calc(10.5pt * var(--ps-scale, 1));
  --ps-py: 0.42em; --ps-px: 0.45em;
  -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.ps-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 8mm;
  padding-bottom: 0.8em; border-bottom: 0.7mm solid #111; }
.ps-eyebrow { font-size: 0.905em; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #ae1800; }
.ps-title { font-size: 2.381em; font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; margin-top: 0.05em; }
.ps-title span { color: #666; font-weight: 700; }
.ps-valid { text-align: right; font-size: 0.81em; letter-spacing: 0.1em; text-transform: uppercase; color: #555; white-space: nowrap; }
.ps-valid strong { display: block; margin-top: 0.15em; font-size: 1.765em; letter-spacing: 0; text-transform: none; color: #111; font-weight: 800; }
.ps-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.ps-c-no { width: 2.3em; }
.ps-c-time { width: 4em; }
.ps-table th { padding: 0.55em var(--ps-px); text-align: left; font-size: 1.048em; font-weight: 800; border-bottom: 0.5mm solid #111; }
.ps-table th:first-child, .ps-table th:nth-child(2) { font-size: 0.714em; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: #555; }
.ps-table td { padding: calc(var(--ps-py) + var(--ps-fill, 0px)) var(--ps-px); vertical-align: top; border-bottom: 0.25mm solid #bbb;
  overflow-wrap: break-word; hyphens: manual; }
.ps-table td + td, .ps-table th + th { border-left: 0.25mm solid #ccc; }
.ps-row { break-inside: avoid; }
.ps-no { font-size: 1.333em; font-weight: 800; color: #c4260c; white-space: nowrap; line-height: 1.1; }
.ps-time { font-size: 0.905em; color: #333; font-variant-numeric: tabular-nums; }
.ps-table b { display: block; font-size: 1.143em; font-weight: 800; line-height: 1.15; }
.ps-t { display: block; font-size: 0.905em; color: #333; margin-top: 0.1em; }
.ps-r { display: block; font-size: 0.905em; color: #ae1800; letter-spacing: 0.03em; }
.ps-table .ps-brk td { padding: 0.12em var(--ps-px); font-size: 0.714em; letter-spacing: 0.08em; text-transform: uppercase; color: #555;
  background: #f1f0f0; font-variant-numeric: tabular-nums; }
.ps-brk span + span { margin-left: 0.9em; }
/* long break: red band like on the website */
.ps-table .ps-brk.long td { padding: 0.35em var(--ps-px); font-size: 0.857em; font-weight: 700; color: #fff; background: #ec3013; letter-spacing: 0.1em; }
.ps-brk.long .len { text-transform: none; letter-spacing: 0; font-weight: 400; }
.ps-foot { display: flex; align-items: center; gap: 0.4em; margin-top: 0.8em; font-size: 0.762em; color: #777; }
.ps-foot img { width: 1.2em; height: 1.2em; }
/* many lesson hours: tighter rows, teacher and room on one line */
.print-sheet.compact { --ps-py: 0.3em; --ps-px: 0.4em; }
.print-sheet.dense { --ps-py: 0.22em; --ps-px: 0.35em; }
.dense .ps-t, .dense .ps-r { display: inline; font-size: 0.82em; }
.dense .ps-r::before { content: " · "; color: #999; }

@media print {
  @page { size: A4 portrait; margin: 10mm 8mm; }
  html, body { background: #fff !important; color: #111 !important; }
  :root { padding: 0 !important; }
  body > *:not(#app), #app > *:not(.print-sheet) { display: none !important; }
  .page { max-width: none; padding: 0; }
  .print-sheet { display: block; }
}
}

/* — login screen (1.1: the plan is visible only after signing in) — */
.gate { min-height: calc(100vh - 80px); min-height: calc(100dvh - 80px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding-block: 40px; position: relative; }
.gate-card { position: relative; }
.gate-theme { position: absolute; top: 20px; right: 20px; }
.gate-card { width: min(380px, 100%); display: flex; flex-direction: column; gap: 14px; padding: 28px 24px; background: var(--surface); border-top: 4px solid var(--accent); }
.gate-icon { display: block; width: 56px; height: 56px; }
.gate-title { margin: 0; font-size: 32px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
.gate-sub { margin: 6px 0 0; color: var(--n700); }
.gate-card .input { background: var(--bg); }
.gate-btn { width: 100%; min-height: 44px; font-size: 15px; }
.gate-note { margin: 0; font-size: 13px; color: var(--n600); }
.gate .meta { margin: 0; }

/* — history of changes — */
.history li { flex-direction: column; align-items: flex-start; gap: 6px; }
.h-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; width: 100%; }
.h-rev { font-weight: 800; }
.h-when { margin-left: auto; font-size: 13px; color: var(--n600); font-variant-numeric: tabular-nums; }
.h-sum { margin: 0; font-size: 14px; color: var(--n700); }

/* — import z Synergii (1.1.3) — */
.hint .grow { flex: 1 1 260px; }
.steps { margin: 0; padding-left: 20px; font-size: 14px; color: var(--n700); }
.steps li + li { margin-top: 2px; }
textarea.syn-text { min-height: 180px; resize: vertical; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13px; line-height: 1.4; }
.warn { margin: 0; padding: 8px 10px; font-size: 13px; background: var(--accent-tint); color: var(--text); }
.syn-wrap { overflow-x: auto; max-height: 50vh; overflow-y: auto; border: 1px solid var(--divider); }
.syn-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 12px; line-height: 1.25; }
.syn-table th { position: sticky; top: 0; background: var(--surface); text-align: left; padding: 6px; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--n600); border-bottom: 1px solid var(--divider); }
.syn-table td { padding: 5px 6px; vertical-align: top; border-bottom: 1px solid var(--n300); font-variant-numeric: tabular-nums; }
.syn-table td b { display: block; font-weight: 700; }
.syn-table td span { color: var(--accent-deep); font-size: 11px; }
.syn-table td.empty { color: var(--n500); }
.syn-table td:first-child { font-weight: 800; color: var(--accent); }
.syn-table td:nth-child(2) { white-space: nowrap; color: var(--n700); }

/* — iOS: aplikacja na ekranie początkowym (1.1.5) — */
.banner svg { display: inline-block; vertical-align: -3px; }
.banner.offline { background: var(--n200); }
.standalone body { overscroll-behavior-y: none; }
/* w trybie aplikacji pasek sam odsuwa się od paska stanu (bez podwójnego odstępu z :root) */
html.standalone { padding-top: 0; }
.standalone .bar { top: 0; padding-top: max(12px, env(safe-area-inset-top, 0px)); }
.standalone .gate { padding-top: calc(40px + env(safe-area-inset-top, 0px)); }
