    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --bg:           #f5f5f3;
      --white:        #ffffff;
      --border:       #e4e4e0;
      --border-mid:   #d1d1cc;
      --text:         #18181a;
      --text-2:       #6b6b68;
      --text-3:       #a0a09c;
      --accent:       #1a56db;
      --accent-light: #eff4ff;
      --green:        #0d7d5f;
      --green-light:  #ecfdf5;
      --amber:        #92400e;
      --amber-light:  #fffbeb;
      --purple:       #5b21b6;
      --purple-light: #f5f3ff;
      --red:          #dc2626;
      --red-light:    #fff1f2;
      --today-ring:   #1a56db;
      --weekend-bg:   #fafaf8;
      --outside-bg:   #f9f9f7;
    }

    body.dark {
      --bg:           #111113;
      --white:        #1c1c1f;
      --border:       #2a2a2e;
      --border-mid:   #3a3a3f;
      --text:         #f0f0ee;
      --text-2:       #9a9a96;
      --text-3:       #5a5a58;
      --accent:       #4d7fe8;
      --accent-light: #1a2540;
      --green:        #34c48a;
      --green-light:  #0d2b1e;
      --amber:        #f59e0b;
      --amber-light:  #2a1e06;
      --purple:       #a78bfa;
      --purple-light: #1e1535;
      --red:          #f87171;
      --red-light:    #2a1010;
      --today-ring:   #4d7fe8;
      --weekend-bg:   #161618;
      --outside-bg:   #141416;
    }

    html {
      height: 100%;
      overscroll-behavior: none; /* žádný bounce na iOS/Android */
    }

    body {
      font-family: -apple-system, 'Inter', 'Segoe UI', sans-serif;
      background: var(--bg);
      color: var(--text);
      font-size: clamp(14px, 0.85vw, 17px);
      line-height: 1.5;
      height: 100dvh;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      overscroll-behavior: none;
    }

    /* Nastavení může být delší než viewport → scroll */
    body.view-settings { overflow-y: auto; }

    .topbar {
      background: var(--white);
      border-bottom: 1px solid var(--border);
      height: clamp(52px, 4vw, 72px);
      flex-shrink: 0;
      display: flex;
      align-items: center;
      padding: 0 clamp(16px, 2.5vw, 64px);
      gap: 16px;
      z-index: 100;
    }
    .topbar-title { font-size: clamp(14px, 1vw, 18px); font-weight: 600; }

    .month-nav { display: flex; align-items: center; gap: 2px; margin-left: 24px; }
    .month-nav .lbl {
      font-size: clamp(14px, 1vw, 18px); font-weight: 600;
      min-width: clamp(160px, 14vw, 260px); text-align: center; letter-spacing: -.01em;
    }

    .topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }

    .statsbar {
      background: var(--white);
      border-bottom: 1px solid var(--border);
      padding: clamp(8px, .8vw, 16px) clamp(16px, 2.5vw, 64px);
      display: flex;
      gap: clamp(16px, 3vw, 64px);
      align-items: center;
      flex-shrink: 0;
    }
    .stat-item { display: flex; flex-direction: column; }
    .stat-val {
      font-size: clamp(15px, 1.5vw, 26px);
      font-weight: 700; letter-spacing: -.02em; line-height: 1.1;
    }
    .stat-val.accent { color: var(--accent); }
    .stat-lbl { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; margin-top: 1px; }
    .stat-sep { width: 1px; height: 32px; background: var(--border); }

    .cal-wrapper {
      flex: 1;
      min-height: 0;
      display: flex;
      flex-direction: column;
      padding: clamp(10px, 1.2vw, 24px) clamp(16px, 2.5vw, 64px) clamp(8px, 1vw, 20px);
    }

    .cal-header { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 4px; flex-shrink: 0; }
    .cal-header-cell {
      font-size: clamp(10px, .6vw, 13px); font-weight: 600; color: var(--text-3);
      text-transform: uppercase; letter-spacing: .06em; text-align: center; padding: 0 0 6px;
    }
    .cal-header-cell.weekend { color: var(--text-2); }

    .cal-grid {
      flex: 1;
      min-height: 0;
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      grid-auto-rows: 1fr;
      gap: clamp(3px, .25vw, 6px);
    }

    .cal-day {
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: clamp(8px, .6vw, 12px);
      min-height: 0;
      padding: clamp(6px, .7vw, 16px);
      cursor: pointer;
      position: relative;
      overflow: hidden;
      transition: border-color .12s, box-shadow .12s;
      display: flex; flex-direction: column;
    }
    .cal-day:hover { border-color: var(--border-mid); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
    .cal-day.outside { background: var(--outside-bg); cursor: default; }
    .cal-day.outside:hover { border-color: var(--border); box-shadow: none; }
    .cal-day.weekend:not(.outside) { background: var(--weekend-bg); }
    .cal-day.today { border-color: var(--today-ring); border-width: 2px; }
    .cal-day.vacation:not(.outside) { background: var(--green-light); }
    .cal-day.vacation:not(.outside):hover { border-color: rgba(13,125,95,.4); box-shadow: 0 2px 8px rgba(13,125,95,.15); }
    .vacation-label {
      font-size: clamp(9px, .75vw, 11px); font-weight: 600;
      color: var(--green); margin-top: auto; padding-top: 4px;
    }

    .day-num {
      font-size: clamp(12px, 1.1vw, 22px); font-weight: 600;
      color: var(--text-2); line-height: 1; margin-bottom: clamp(5px, .5vw, 12px);
    }
    .cal-day.outside .day-num { color: var(--text-3); }
    .cal-day.today .day-num {
      color: var(--white); background: var(--accent);
      width: clamp(22px, 2vw, 36px); height: clamp(22px, 2vw, 36px);
      border-radius: 50%; display: flex; align-items: center; justify-content: center;
      font-size: clamp(11px, 1vw, 18px);
      margin-bottom: clamp(3px, .3vw, 6px);
    }

    .shift-card {
      background: var(--accent-light);
      border: 1px solid rgba(26,86,219,.15);
      border-radius: 5px;
      padding: clamp(4px, .5vw, 7px) clamp(5px, .6vw, 9px);
      flex: 1; min-height: 0;
    }
    .shift-card.shift-m { background: var(--amber-light);  border-color: rgba(146,64,14,.15); }
    .shift-card.shift-n { background: var(--purple-light); border-color: rgba(91,33,182,.15); }

    /* Dark mode — logo */
    body.dark #topbarLogo { filter: brightness(0) invert(1) opacity(0.7); }

    /* Dark mode — shift cards */
    body.dark .shift-card         { background: #1a2035; border-color: rgba(77,127,232,.2); }
    body.dark .shift-card.shift-m { background: #201a08; border-color: rgba(245,158,11,.2); }
    body.dark .shift-card.shift-n { background: #16102a; border-color: rgba(167,139,250,.2); }
    body.dark .shift-card-pay     { color: var(--text-2); }

    /* Dark mode — cal days hover shadow */
    body.dark .cal-day:hover { box-shadow: 0 2px 8px rgba(0,0,0,.4); }

    /* Dark mode — flatpickr */
    body.dark .flatpickr-calendar { background: #1c1c1f; border-color: var(--border); color: var(--text); }
    body.dark .flatpickr-time input { color: var(--text) !important; background: #1c1c1f; }
    body.dark .flatpickr-time { background: #1c1c1f; }

    /* Dark mode — favicon.svg v tabu se nemusí měnit, ale inline SVG toggle */
    .shift-card-time {
      font-size: clamp(11px, .9vw, 17px); font-weight: 600; color: var(--accent);
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .shift-card.shift-m .shift-card-time { color: var(--amber); }
    .shift-card.shift-n .shift-card-time { color: var(--purple); }
    .shift-card-pay {
      font-size: clamp(12px, 1.1vw, 20px); font-weight: 700;
      color: var(--text); margin-top: 1px; letter-spacing: -.01em;
    }
    .shift-card-tags { display: flex; gap: 3px; flex-wrap: wrap; margin-top: clamp(3px, .4vw, 8px); }
    .stag { font-size: clamp(9px, .7vw, 13px); font-weight: 600; padding: 1px 5px; border-radius: 20px; white-space: nowrap; }
    .stag-m  { background: var(--amber-light);  color: var(--amber); }
    .stag-a  { background: var(--accent-light);  color: var(--accent); }
    .stag-n  { background: var(--purple-light); color: var(--purple); }
    .stag-we { background: var(--green-light);  color: var(--green); }

    .add-hint {
      margin: auto; color: var(--text-3);
      font-size: clamp(18px, 2vw, 26px); font-weight: 300;
      opacity: 0; transition: opacity .12s; line-height: 1; align-self: center;
    }
    .cal-day:not(.outside):hover .add-hint { opacity: 1; }
    body.readonly .add-hint { display: none !important; }
    .cal-day.has-shift .add-hint { display: none; }

    .btn {
      display: inline-flex; align-items: center; justify-content: center; gap: 6px;
      border-radius: 6px; font-size: 13px; font-weight: 500;
      cursor: pointer; border: none; padding: 0 14px; height: 34px;
      transition: background .12s, opacity .12s; white-space: nowrap;
    }
    .btn:active { opacity: .8; }
    .btn-default { background: var(--white); border: 1px solid var(--border-mid); color: var(--text); }
    .btn-default:hover { background: var(--bg); }
    .btn-primary { background: var(--accent); color: #fff; }
    .btn-primary:hover { background: #1648c0; }
    .btn-ghost { background: transparent; color: var(--text-2); border: none; padding: 0 8px; }
    .btn-ghost:hover { background: var(--border); color: var(--text); }
    .btn-danger { background: var(--red-light); border: 1px solid rgba(220,38,38,.2); color: var(--red); }
    .btn-danger:hover { background: #ffe4e6; }
    .btn-icon { width: 34px; height: 34px; padding: 0; }

    .overlay {
      position: fixed; inset: 0; background: rgba(0,0,0,.3);
      z-index: 300; display: none; align-items: center; justify-content: center;
      cursor: pointer;
    }
    .overlay.open { display: flex; }

    .modal {
      background: var(--white); border-radius: 12px;
      width: clamp(400px, 38vw, 680px);
      max-height: calc(100vh - 48px); overflow-y: auto;
      box-shadow: 0 24px 64px rgba(0,0,0,.18);
    }
    .modal-hdr {
      padding: 16px 20px 14px; border-bottom: 1px solid var(--border);
      display: flex; align-items: center; justify-content: space-between;
    }
    .modal-hdr-title { font-size: 15px; font-weight: 600; }
    .modal-hdr-sub { font-size: 12px; color: var(--text-2); margin-top: 1px; }
    .modal-body { padding: 20px; }
    .modal-ftr {
      padding: 12px 20px; border-top: 1px solid var(--border);
      display: flex; justify-content: space-between; align-items: center; gap: 8px;
    }
    .modal-ftr-right { display: flex; gap: 8px; }

    .field { margin-bottom: 14px; }
    .field:last-child { margin-bottom: 0; }
    .field label { display: block; font-size: 12px; font-weight: 500; color: var(--text-2); margin-bottom: 5px; }
    .field input {
      width: 100%; height: 36px; border: 1px solid var(--border-mid); border-radius: 7px;
      padding: 0 11px; font-size: 13px; color: var(--text); background: var(--white); outline: none;
      transition: border-color .12s, box-shadow .12s;
    }
    .field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(26,86,219,.1); }

    .flatpickr-input {
      width: 100%; height: 36px; border: 1px solid var(--border-mid); border-radius: 7px;
      padding: 0 11px; font-size: 13px; color: var(--text);
      background: var(--white); outline: none; cursor: pointer;
      transition: border-color .12s, box-shadow .12s;
    }
    .flatpickr-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(26,86,219,.1); }
    .flatpickr-calendar { font-family: inherit; box-shadow: 0 8px 32px rgba(0,0,0,.12); border: 1px solid var(--border); border-radius: 10px; }
    .flatpickr-time input { font-size: 22px !important; font-weight: 700; color: var(--text) !important; }
    .flatpickr-time .flatpickr-time-separator { font-size: 22px; font-weight: 700; color: var(--text-2); }
    .flatpickr-time .numInputWrapper:hover { background: var(--bg); }
    .flatpickr-time input:focus { box-shadow: none; background: var(--accent-light); }
    .flatpickr-time .arrowUp, .flatpickr-time .arrowDown { display: none; }

    .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

    /* Net salary modal */
    .month-chip {
      padding: 5px 13px; border-radius: 20px; font-size: 13px; font-weight: 500;
      border: 1px solid var(--border-mid); background: var(--white); color: var(--text-2);
      cursor: pointer; transition: background .12s, border-color .12s, color .12s;
    }
    .month-chip:hover { border-color: var(--accent); color: var(--accent); }
    .month-chip.selected { background: var(--accent); border-color: var(--accent); color: #fff; }
    .net-section-title {
      font-size: 11px; font-weight: 600; color: var(--text-3);
      text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px;
    }
    .net-month-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 12px; }
    .net-month-table th { text-align: right; font-size: 11px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; padding: 0 0 6px; border-bottom: 1px solid var(--border); }
    .net-month-table th:first-child { text-align: left; }
    .net-month-table td { padding: 7px 0; border-bottom: 1px solid var(--border); text-align: right; color: var(--text-2); }
    .net-month-table td:first-child { text-align: left; font-weight: 500; color: var(--text); }
    .net-month-table tr:last-child td { border-bottom: none; }
    .net-month-table .col-net { font-weight: 700; color: var(--text); }

    .err { font-size: 12px; color: var(--red); margin-top: 6px; display: none; }
    .err.show { display: block; }

    .preview {
      background: var(--bg); border: 1px solid var(--border);
      border-radius: 8px; padding: 12px 14px; margin-top: 14px;
    }
    .preview-title { font-size: 11px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
    .preview-row { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; font-size: 13px; border-bottom: 1px solid var(--border); }
    .preview-row:last-child { border-bottom: none; }
    .preview-row.total { font-weight: 700; font-size: 15px; padding-top: 8px; }
    .preview-row.total .val { color: var(--accent); }
    .preview-label { color: var(--text-2); }
    .preview-val { font-weight: 500; }
    .preview-empty { color: var(--text-3); font-size: 12px; text-align: center; padding: 6px 0; }

    .sett-section { margin-bottom: 20px; }
    .sett-section:last-child { margin-bottom: 0; }
    .sett-section h3 { font-size: 11px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
    .sett-row { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--border); gap: 12px; }
    .sett-row:last-child { border-bottom: none; }
    .sett-row-lbl { font-size: 13px; }
    .sett-row-sub { font-size: 11px; color: var(--text-3); }
    .sett-row input[type="number"] { width: 86px; height: 32px; border: 1px solid var(--border-mid); border-radius: 6px; padding: 0 9px; font-size: 13px; text-align: right; outline: none; color: var(--text); }
    .sett-row input[type="number"]:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(26,86,219,.1); }
    .sett-row input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; flex-shrink: 0; }
    .suffix { font-size: 12px; color: var(--text-2); }
    .sett-inline { display: flex; align-items: center; gap: 5px; }

    ::-webkit-scrollbar { width: 6px; height: 6px; }
    ::-webkit-scrollbar-track { background: transparent; }
    ::-webkit-scrollbar-thumb { background: var(--border-mid); border-radius: 3px; }
    svg { display: block; }

    /* Auth mode visibility */
    body.readonly .admin-only  { display: none !important; }
    body.admin    .readonly-only { display: none !important; }

    /* View switching */
    body.view-calendar .sett-only { display: none !important; }
    body.view-settings .cal-only  { display: none !important; }
    body.view-settings #topbarLogo { display: none !important; }
    body.view-settings .auth-badge { display: none !important; }
    body.view-settings .readonly-only { display: none !important; }

    /* Login modal badge */
    .auth-badge {
      display: inline-flex; align-items: center; gap: 6px;
      font-size: 12px; font-weight: 600; padding: 3px 10px;
      border-radius: 20px; background: var(--accent-light); color: var(--accent);
    }
    body.readonly .auth-badge { background: #f3f4f6; color: var(--text-3); }

    /* ── Settings page ───────────────────────────────────────────── */
    .sett-page-wrapper {
      max-width: 2200px;
      margin: 0 auto;
      padding: clamp(20px, 2vw, 40px) clamp(16px, 2.5vw, 48px);
    }
    .sett-page-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 16px;
      margin-bottom: 16px;
    }
    .sett-card {
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: clamp(16px, 1.5vw, 24px);
    }
    .sett-card-title {
      font-size: 11px; font-weight: 700; color: var(--text-3);
      text-transform: uppercase; letter-spacing: .07em;
      margin-bottom: 16px; padding-bottom: 10px;
      border-bottom: 1px solid var(--border);
    }
    .sett-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
    .sett-field:last-child { margin-bottom: 0; }
    .sett-field label { font-size: 12px; font-weight: 500; color: var(--text-2); }
    .sett-field input[type="number"],
    .sett-field input[type="password"] {
      height: 38px; border: 1px solid var(--border-mid); border-radius: 7px;
      padding: 0 12px; font-size: 14px; color: var(--text);
      background: var(--white); outline: none; width: 100%;
      transition: border-color .12s, box-shadow .12s;
    }
    .sett-field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(26,86,219,.1); }
    .sett-field .hint { font-size: 11px; color: var(--text-3); }
    .sett-inline-input { display: flex; align-items: center; gap: 8px; }
    .sett-inline-input input { flex: 1; }
    .sett-inline-input .unit { font-size: 13px; color: var(--text-2); white-space: nowrap; }
    /* breaks grid */
    .breaks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
    .break-item {
      display: flex; align-items: center; justify-content: space-between;
      padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px;
      background: var(--bg); gap: 12px;
    }
    .break-item input[type="text"] {
      width: 80px; height: 32px; border: 1px solid var(--border-mid); border-radius: 6px;
      padding: 0 9px; font-size: 13px; text-align: center; outline: none; cursor: pointer;
      background: var(--white); color: var(--text);
    }
    .break-item input[type="text"]:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(26,86,219,.1); }
    .break-item input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
    .break-label { font-size: 13px; font-weight: 500; color: var(--text-2); flex: 1; }

    /* ── Mobilní responzivita ────────────────────────────────────────── */

    /* Týdenní slider — skrytý na desktopu */
    .week-slider { display: none; }
    /* Přepínač pohledu — skrytý na desktopu */
    .btn-view-toggle { display: none; }
    /* Sub-header s rozmezím dat — skrytý na desktopu */
    .week-subheader { display: none; }

    @media (max-width: 600px) {

      /* iOS zoom fix — input font-size musí být ≥ 16px aby Safari nezoomovalo */
      input, select, textarea { font-size: 16px !important; }

      /* Topbar */
      .topbar { padding: 0 10px; gap: 4px; height: auto; min-height: 52px; }
      .topbar-right { gap: 2px; }
      .btn-txt { display: none; }
      .auth-badge { display: none; }
      .btn-dnes { display: none !important; }
      .btn-view-toggle { display: inline-flex; margin-left: 2px; }
      .month-nav { margin-left: 2px; }
      .month-nav .lbl { min-width: 140px; font-size: 13px; }
      .topbar-right .btn { width: 32px; height: 32px; padding: 0; }
      .sett-only .btn-ghost { padding: 0 8px; }

      /* Statsbar — 3 ukazatele, každý klikatelný zvlášť */
      .statsbar {
        padding: 6px 4px;
        overflow: hidden;
        flex-wrap: nowrap;
        align-items: center;
        gap: 0;
        -webkit-mask-image: none;
        mask-image: none;
        cursor: default;
      }
      .statsbar .stat-item { flex: 1; padding: 4px 6px; min-width: 0; border-radius: 8px; transition: background .1s; }
      .statsbar .stat-item:active { background: var(--bg); }
      .stat-val { font-size: 13px; }
      .stat-lbl { white-space: nowrap; font-size: 9px; }
      /* CSV tlačítko — skryté na mobilu */
      .btn-csv { display: none !important; }

      /* Sub-header s rozmezím týdne */
      .week-subheader {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 5px 12px;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        font-size: 12px;
        font-weight: 600;
        color: var(--text-2);
        flex-shrink: 0;
        letter-spacing: .01em;
      }
      .week-subheader .wsh-range { color: var(--text); }
      .week-subheader .wsh-month { color: var(--text-3); font-weight: 400; }
      body.mobile-month .week-subheader { display: none; }

      /* Výchozí mobilní pohled: týdenní seznam */
      .cal-wrapper { padding: 6px 8px 4px; overflow: hidden; /* ořízne slide přesah */ }
      .cal-header { display: none; }
      .cal-grid   { display: none; }

      /* Měsíční pohled na mobilu (body.mobile-month) */
      body.mobile-month .cal-header { display: grid; }
      body.mobile-month .cal-grid   { display: grid; gap: 2px; }
      body.mobile-month .week-slider { display: none !important; }
      body.mobile-month .cal-header-cell { font-size: 9px; letter-spacing: 0; padding-bottom: 3px; }
      body.mobile-month .cal-day    { padding: 3px 2px; border-radius: 5px; max-height: 76px; }
      body.mobile-month .day-num    { font-size: 11px; margin-bottom: 2px; }
      body.mobile-month .cal-day.today .day-num { width: 19px; height: 19px; font-size: 10px; }
      body.mobile-month .shift-card { padding: 2px 3px; height: auto; flex: none; border-radius: 3px; margin-top: auto; font-size: 9px; line-height: 1.2; }
      body.mobile-month .shift-card-time { font-size: 8px; display: block; }
      body.mobile-month .shift-card-pay,
      body.mobile-month .shift-card-tags { display: none; }
      body.mobile-month .vacation-label  { font-size: 8px; }
      body.mobile-month .add-hint        { font-size: 14px; }

      /* ── Týdenní slider (3 panely) ──────────────────────── */
      .week-slider {
        display: flex;
        flex: 1 1 0px;
        min-height: 0;
        overflow: hidden;
      }
      .week-slider-track {
        display: flex;
        width: 300%;
        flex-shrink: 0;
        height: 100%;
        transform: translateX(-33.3333%);
        will-change: transform;
      }
      .week-slider-track.snap {
        transition: transform .22s cubic-bezier(.25,.46,.45,.94);
      }
      .week-slide {
        width: 33.3333%;
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        gap: 4px;
        padding-bottom: 6px;
        overflow: hidden;
      }
      .week-day-row {
        flex: 1 1 0px;   /* 0px základ = rovnoměrné výšky bez ohledu na obsah */
        min-height: 0;
        max-height: 100%;
        display: flex;
        align-items: center;
        gap: 10px;
        background: var(--white);
        border: 1px solid var(--border);
        border-radius: 10px;
        padding: 0 12px;
        cursor: pointer;
        transition: border-color .12s, box-shadow .12s;
        overflow: hidden;
      }
      .week-day-row:hover        { border-color: var(--border-mid); box-shadow: 0 2px 6px rgba(0,0,0,.06); }
      body.dark .week-day-row:hover { box-shadow: 0 2px 6px rgba(0,0,0,.35); }
      .week-day-row.weekend      { background: var(--weekend-bg); }
      .week-day-row.vacation     { background: var(--green-light); border-color: rgba(13,125,95,.25); }
      .week-day-row.today        { border-color: var(--today-ring); border-width: 2px; }
      .week-day-row.no-click     { cursor: default; }
      .week-day-row.no-click:hover { border-color: var(--border); box-shadow: none; }

      .week-day-date {
        width: 36px; flex-shrink: 0; text-align: center;
      }
      .week-day-dow {
        font-size: 10px; font-weight: 700; color: var(--text-3);
        text-transform: uppercase; letter-spacing: .05em; line-height: 1;
      }
      .week-day-num {
        font-size: 20px; font-weight: 700; color: var(--text-2); line-height: 1.2;
      }
      .week-day-row.today .week-day-num {
        color: var(--white); background: var(--accent);
        width: 28px; height: 28px; border-radius: 50%;
        display: flex; align-items: center; justify-content: center;
        font-size: 13px; margin: 2px auto 0;
      }
      .week-day-row.weekend:not(.today) .week-day-num { color: var(--text-3); }

      .week-day-divider { width: 1px; height: 30px; background: var(--border); flex-shrink: 0; }

      .week-day-content { flex: 1; min-width: 0; }
      .week-shift-row {
        display: flex; align-items: center; justify-content: space-between; gap: 6px;
      }
      .week-shift-time { font-size: 14px; font-weight: 600; white-space: nowrap; }
      .week-shift-time.c-m { color: var(--amber); }
      .week-shift-time.c-n { color: var(--purple); }
      .week-shift-time.c-d { color: var(--accent); }
      .week-shift-pay  { font-size: 14px; font-weight: 700; white-space: nowrap; }
      .week-shift-tags { display: flex; gap: 3px; flex-wrap: wrap; margin-top: 3px; }
      .week-empty { font-size: 12px; color: var(--text-3); }
      .week-vac   { font-size: 13px; font-weight: 500; color: var(--green); }

      /* Modaly — bottom sheet */
      .overlay { align-items: flex-end; }
      .modal {
        width: 100% !important; min-width: 0 !important;
        max-width: 100% !important;
        border-radius: 16px 16px 0 0 !important;
        max-height: 90vh;
      }
      .modal-body { padding: 16px; }
      .modal-hdr  { padding: 14px 16px 12px; }
      .modal-ftr  { padding: 10px 16px; }

      /* Tabulka čistá mzda */
      .net-month-table { font-size: 11px; }
      .net-month-table th, .net-month-table td { padding: 5px 0; }
      #netOverlay .modal { height: 100dvh; max-height: 100dvh !important; border-radius: 0 !important; display: flex; flex-direction: column; }
      #netOverlay .modal-body { flex: 1; overflow-y: auto; }

      /* Nastavení */
      .sett-page-wrapper { padding: 12px; }
      .sett-page-grid { gap: 10px; margin-bottom: 10px; }
      .sett-card { padding: 14px; }
      .breaks-grid { grid-template-columns: 1fr; }
    }
