    :root {
      color-scheme: light;
      --bg: #f5f6f8;
      --surface: #ffffff;
      --surface-2: #eef0f3;
      --surface-3: #e7e9ed;
      --text: #1c1e26;
      --muted: #6b7080;
      --line: #e3e5ea;
      --line-strong: #cfd2dc;
      --accent: #5b5bd6;
      --accent-strong: #4a4ac4;
      --accent-soft: #eeeefe;
      --accent-soft-hover: #e3e3fc;
      --accent-line: #d1d1f6;
      --green: #17805e;
      --red: #d33d5c;
      --shadow: 0 18px 50px rgba(20, 22, 28, .16);
      --card: var(--surface);
      --input: var(--surface);
      --input-focus: var(--surface);
      --subtle: #f7f8fa;
      --subtle-strong: #eef0f3;
      --header: var(--surface);
      --loading: rgba(245, 246, 248, .86);
      --error-bg: #fff0f3;
      --danger-soft: rgba(211, 61, 92, .08);
      --danger-line: rgba(211, 61, 92, .28);
      --danger-line-hover: rgba(211, 61, 92, .48);
      --badge-text: #a32f49;
      --success-text: #126a4f;
      --control-sm: 32px;
      --control-md: 40px;
      --control-lg: 48px;
      --radius-control: 8px;
      --radius-card: 10px;
      --radius-dialog: 12px;
      --sidebar-width: 185px;
      --sidebar-width-compact: 76px;
      --topbar-h: 60px;
      --content-cap: 1500px;
      --ui-scale-factor: 1;
      --scaled-viewport-width: calc(100vw / var(--ui-scale-factor));
      --scaled-viewport-height: calc(100vh / var(--ui-scale-factor));
    }

    :root[data-ui-scale="110"] { --ui-scale-factor: 1.1; }
    :root[data-ui-scale="120"] { --ui-scale-factor: 1.2; }

    :root[data-theme="dark"] .topbar,
    :root[data-theme="dark"] .app-header {
      color-scheme: dark;
      --surface: #2d3038;
      --surface-2: #373b45;
      --surface-3: #414650;
      --text: #f0f1f4;
      --muted: #b0b5c0;
      --line: #454a55;
      --line-strong: #5a606e;
      --accent: #8585f2;
      --accent-strong: #9898f7;
      --accent-soft: #39394f;
      --accent-soft-hover: #43435d;
      --accent-line: #5c5c89;
      --green: #36b98a;
      --red: #ec5b78;
      --shadow: 0 20px 60px rgba(0, 0, 0, .42);
      --input: #3b404a;
      --input-focus: #444a56;
      --subtle: #343842;
      --subtle-strong: #3b404a;
      --error-bg: #4a2731;
      --danger-soft: rgba(236, 91, 120, .12);
      --danger-line: rgba(236, 91, 120, .32);
      --danger-line-hover: rgba(236, 91, 120, .52);
      --badge-text: #ffd1e6;
      --success-text: #c7f9e5;
    }

    * { box-sizing: border-box; }
    html { min-height: 100%; background: var(--bg); }
    body {
      min-height: var(--scaled-viewport-height);
      margin: 0;
      color: var(--text);
      background: var(--bg);
      font: 14px/1.5 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    }
    button, input, select { font: inherit; }
    svg { flex: 0 0 auto; }
    button, a { -webkit-tap-highlight-color: transparent; }
    button { border: 0; }
    a { color: var(--accent); }
    [hidden] { display: none !important; }
    .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

    .auth-shell {
      min-height: var(--scaled-viewport-height);
      display: grid;
      place-items: center;
      padding: 24px;
    }
    .auth-card {
      width: min(100%, 440px);
      padding: clamp(26px, calc(6vw / var(--ui-scale-factor)), 44px);
      border: 1px solid var(--line);
      border-radius: var(--radius-dialog);
      background: var(--surface);
      box-shadow: 0 12px 32px rgba(20, 22, 28, .08);
    }
    .brand-lockup { display: flex; align-items: center; gap: 10px; min-width: 0; }
    .brand { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 700; letter-spacing: -.01em; font-size: 18px; }
    .brand-mark { width: 20px; height: 20px; display: block; color: var(--accent); stroke-width: 3.2; }
    .auth-branding {
      min-height: 52px;
      display: grid;
      place-items: center;
    }
    .auth-product-brand { display: flex; align-items: center; }
    .auth-product-brand .brand { gap: 12px; color: var(--text); font-size: 34px; line-height: 1; letter-spacing: -.04em; }
    .auth-product-brand .brand-mark { width: 44px; height: 44px; }
    .auth-organization { min-width: 0; display: flex; align-items: center; justify-content: center; }
    .organization-logo-frame {
      display: grid;
      place-items: center;
      overflow: hidden;
      border: 1px solid transparent;
      border-radius: 8px;
      background: transparent;
    }
    .organization-logo-frame.light-logo-on-dark {
      border-color: var(--line);
      background: #fff;
    }
    .organization-logo-frame img { display: block; width: 100%; height: 100%; object-fit: contain; }
    .organization-name-fallback { color: var(--text); font-size: 13px; font-weight: 700; }
    .auth-organization .organization-logo-frame { width: 118px; height: 34px; padding: 4px 7px; }
    .auth-organization .organization-name-fallback { font-size: 14px; }
    .auth-organization-footer {
      min-height: 50px;
      margin-top: 26px;
      padding-top: 16px;
      border-top: 1px solid var(--line);
    }
    .auth-organization-footer img { opacity: 1; }
    .auth-organization-footer .organization-name-fallback { opacity: .7; }
    .sidebar-footer { padding-top: 10px; border-top: 1px solid var(--line); }
    .sidebar-organization { display: grid; padding: 0 8px 8px; opacity: .7; }
    .sidebar-organization .organization-logo-frame { width: 120px; height: 36px; margin-left: -8px; padding: 5px 8px; }
    :root[data-theme="dark"] .organization-logo-frame.light-logo-on-dark {
      border-color: transparent;
      background: transparent;
    }
    .auth-card h1 { margin: 28px 0 8px; font-size: 24px; line-height: 1.15; letter-spacing: -.02em; font-weight: 650; }
    #loginView { margin-top: 34px; }
    .login-error { margin: 0; padding: 10px 12px; border: 1px solid var(--danger-line); border-radius: var(--radius-control); color: var(--badge-text); background: var(--error-bg); font-size: 12px; font-weight: 600; line-height: 1.45; }
    .login-support { display: flex; justify-content: flex-end; margin-top: -8px; }
    .login-support-button { padding: 0; border: 0; color: var(--muted); background: transparent; font: inherit; font-size: 12px; cursor: pointer; }
    .login-support-button:hover { color: var(--accent); }
    .login-support-button:focus-visible { outline: none; border-radius: 3px; box-shadow: 0 0 0 3px rgba(91, 91, 214, .18); }
    .login-support-copy { margin: -8px 0 0; padding: 10px 12px; border-radius: var(--radius-control); color: var(--muted); background: var(--subtle); font-size: 12px; font-weight: 400; line-height: 1.45; }
    .login-submit { margin-top: 4px; }
    .auth-card > p { color: var(--muted); margin: 0 0 28px; }
    .form-stack { display: grid; gap: 16px; }
    label { display: grid; gap: 7px; color: var(--text); font-size: 13px; font-weight: 550; }
    input, select {
      width: 100%;
      min-height: var(--control-md);
      padding: 0 12px;
      color: var(--text);
      border: 1px solid var(--line);
      border-radius: var(--radius-control);
      outline: none;
      background: var(--input);
      transition: border-color .18s, box-shadow .18s, background .18s;
    }
    input::placeholder { color: var(--muted); opacity: .72; }
    input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(91, 91, 214, .15); background: var(--input-focus); }
    optgroup { color: var(--text); font-weight: 750; background: var(--surface-2); }
    option { color: var(--text); font-weight: 500; background: var(--surface); }
    .native-select { position: relative; }
    .native-select::after { content: ""; position: absolute; top: 50%; right: 14px; width: 8px; height: 8px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-65%) rotate(45deg); pointer-events: none; transition: border-color .16s; }
    .native-select:focus-within::after { border-color: var(--accent); }
    .native-select select { padding-right: 38px; background-color: var(--surface); cursor: pointer; appearance: none; -webkit-appearance: none; -moz-appearance: none; }
    .native-select select:hover { border-color: var(--line-strong); }
    .hint { color: var(--muted); font-size: 12px; font-weight: 400; }

    .btn {
      min-height: var(--control-md);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 9px;
      padding: 0 18px;
      border: 1px solid var(--line);
      border-radius: var(--radius-control);
      color: var(--text);
      background: var(--surface);
      font-weight: 600;
      cursor: pointer;
      transition: transform .16s, border-color .16s, color .16s, background .16s;
      text-decoration: none;
    }
    .btn:hover { background: var(--surface-2); }
    .btn:active { transform: translateY(1px) scale(.99); }
    .btn:disabled { opacity: .5; cursor: wait; }
    .btn-primary { color: white; border-color: var(--accent); background: var(--accent); }
    .btn-primary:hover { border-color: var(--accent-strong); background: var(--accent-strong); }
    .btn-page-action { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
    .btn-page-action:hover { color: var(--accent-strong); border-color: var(--accent); background: var(--accent-soft-hover); }
    .btn-danger { color: white; border-color: var(--red); background: var(--red); }
    .btn-danger:hover { border-color: var(--red); background: var(--red); filter: brightness(.92); }
    .btn-ghost { padding: 0 12px; border-color: transparent; color: var(--muted); background: transparent; }
    .btn-small { min-height: var(--control-sm); height: var(--control-sm); padding: 0 10px; border-radius: var(--radius-control); font-size: 12px; }
    .btn:focus-visible, .nav-button:focus-visible, .icon-action:focus-visible, .brand-button:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(91, 91, 214, .3); }

    .update-banner {
      display: grid;
      grid-template-columns: auto minmax(0, 1fr) auto;
      align-items: center;
      gap: 12px;
      padding: 12px 14px;
      border: 1px solid rgba(91, 91, 214, .38);
      border-radius: var(--radius-card);
      background: #efefff;
      box-shadow: 0 1px 2px rgba(20, 22, 28, .04);
    }
    .update-banner-icon { width: 20px; height: 20px; color: var(--accent); }
    .update-banner-copy { min-width: 0; }
    .update-banner-copy strong, .update-banner-copy span { display: block; }
    .update-banner-copy strong { font-size: 13px; }
    .update-banner-copy span { margin-top: 2px; color: var(--muted); font-size: 11px; line-height: 1.4; }
    .update-banner-actions { display: flex; align-items: center; gap: 6px; }
    .auth-update-banner { margin: 20px 0 0; }
    #appScreen {
      --nav-w: var(--sidebar-width);
      --topbar-current-h: var(--topbar-h);
      min-height: var(--scaled-viewport-height);
    }
    #appScreen.compact-navigation { --nav-w: var(--sidebar-width-compact); }
    .app-update-region {
      width: 100%;
      margin: 0;
      padding: 0;
      pointer-events: auto;
    }

    .topbar {
      position: sticky;
      z-index: 100;
      top: 0;
      width: 100%;
      min-height: var(--topbar-h);
      border-bottom: 1px solid var(--line);
      background: var(--surface);
      transition: background-color .18s ease;
    }
    .topbar.running {
      background: linear-gradient(90deg,
        var(--surface) 0,
        var(--surface) calc(var(--nav-w) - 22px),
        #edf9f5 calc(var(--nav-w) + 24px),
        #e5f6f0 calc(var(--nav-w) + 68px),
        #e5f6f0 100%);
    }
    :root[data-theme="dark"] .topbar.running {
      background: linear-gradient(90deg,
        var(--surface) 0,
        var(--surface) calc(var(--nav-w) - 22px),
        #30433f calc(var(--nav-w) + 24px),
        #2d4941 calc(var(--nav-w) + 68px),
        #2d4941 100%);
    }
    .topbar-inner {
      width: min(100%, calc(var(--nav-w) + var(--content-cap)));
      min-height: var(--topbar-h);
      display: grid;
      grid-template-columns: var(--nav-w) minmax(0, 1fr);
      align-items: stretch;
    }
    .topbar-brand {
      min-width: 0;
      display: flex;
      align-items: center;
      padding-inline: 20px;
    }
    .topbar-brand .brand-button {
      padding: 0;
      font-size: 23px;
      font-weight: 650;
    }
    .topbar-brand .brand-mark { width: 22px; height: 22px; }
    .topbar-main {
      min-width: 0;
      display: flex;
      align-items: center;
      padding: 0 clamp(18px, calc(2.4vw / var(--ui-scale-factor)), 36px);
    }
    .app-header {
      position: fixed; inset: var(--topbar-current-h) auto 0 0; z-index: 10; width: var(--nav-w);
      border-right: 1px solid var(--line);
      background: var(--surface);
    }
    .header-inner { width: 100%; height: 100%; padding: 12px 8px; display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
    .brand-button { padding: 0 8px; border: 0; color: var(--text); background: transparent; cursor: pointer; text-align: left; }
    .nav-group { min-height: 0; flex: 1; display: flex; }
    .app-nav { width: 100%; min-height: 0; display: flex; flex-direction: column; gap: 6px; }
    .nav-button { min-height: 38px; height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 13px; border-radius: var(--radius-control); color: var(--text); background: transparent; font-size: 14px; font-weight: 400; cursor: pointer; text-align: left; }
    .nav-button svg { width: 20px; height: 20px; flex: 0 0 20px; }
    .nav-button:hover { color: var(--text); background: var(--surface-2); }
    .nav-button.active { color: var(--accent); background: var(--accent-soft); }
    :root[data-theme="dark"] .nav-button.active {
      color: #b4b0ff;
      background: #45455f;
      box-shadow: inset 3px 0 0 var(--accent);
    }
    .nav-button:disabled { opacity: .38; cursor: not-allowed; }
    .user-menu { position: relative; }
    .account-trigger { width: 100%; min-height: 48px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 7px 8px; border: 0; border-radius: var(--radius-control); color: var(--text); background: transparent; cursor: pointer; text-align: left; }
    .account-trigger:hover, .user-menu.open .account-trigger { background: var(--surface-2); }
    .account-trigger .avatar { width: 32px; height: 32px; font-size: 12px; }
    .user-copy { min-width: 0; text-align: left; }
    .user-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.25; }
    .account-chevron { width: 8px; height: 8px; margin: 0 4px -3px 6px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(225deg); }
    .account-popover { position: absolute; z-index: 30; left: 0; right: 0; bottom: calc(100% + 8px); min-width: 180px; padding: 6px; border: 1px solid var(--line-strong); border-radius: var(--radius-card); background: var(--surface); box-shadow: 0 18px 42px rgba(20, 22, 28, .18); }
    .account-organization { min-height: 50px; display: flex; align-items: center; padding: 4px 10px 7px; }
    .account-organization .organization-logo-frame { width: 126px; height: 38px; padding: 5px 8px; }
    .account-organization .organization-name-fallback { font-size: 14px; }
    .account-menu-action { width: 100%; min-height: 36px; display: flex; align-items: center; gap: 9px; padding: 0 10px; border: 0; border-radius: 6px; color: var(--text); background: transparent; font: inherit; font-weight: 500; cursor: pointer; text-align: left; }
    .account-menu-action:hover { background: var(--surface-2); }
    .account-menu-action.danger:hover { color: var(--red); background: var(--danger-soft); }
    .account-menu-action svg { width: 15px; height: 15px; color: var(--muted); }
    .account-menu-action.danger:hover svg { color: var(--red); }
    .account-scale-control { min-height: 36px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 0 10px; }
    .account-scale-heading { min-width: 0; display: flex; align-items: center; gap: 9px; color: var(--text); font-weight: 500; white-space: nowrap; }
    .account-scale-heading svg { width: 15px; height: 15px; color: var(--muted); }
    .account-scale-select { position: relative; width: 64px; flex: 0 0 64px; }
    .account-scale-select::after { content: ""; position: absolute; top: 50%; right: 8px; width: 5px; height: 5px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
    .account-scale-select select { width: 100%; height: 28px; padding: 0 20px 0 7px; border: 1px solid transparent; border-radius: 6px; appearance: none; -webkit-appearance: none; color: var(--muted); background: transparent; font: inherit; font-size: 11px; line-height: 1; font-weight: 650; font-variant-numeric: tabular-nums; cursor: pointer; }
    .account-scale-select select:hover { color: var(--text); border-color: var(--line); background: var(--surface-2); }
    .account-scale-select select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
    .account-menu-separator { height: 1px; margin: 4px 2px; background: var(--line); }
    .account-menu-separator[hidden] { display: none; }
    .account-role-switcher { display: grid; gap: 2px; padding: 4px; }
    .account-role-switcher[hidden] { display: none; }
    .account-role-switcher-label { padding: 3px 6px 5px; color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
    .account-role-option { width: 100%; min-height: 32px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 8px; border: 0; border-radius: 6px; color: var(--muted); background: transparent; font: inherit; font-size: 12px; font-weight: 550; cursor: pointer; text-align: left; }
    .account-role-option:hover { color: var(--text); background: var(--surface-2); }
    .account-role-option.active { color: var(--text); background: var(--surface-2); font-weight: 650; }
    .account-role-check { color: var(--red); opacity: 0; }
    .account-role-option.active .account-role-check { opacity: 1; }
    .account-navigation-toggle svg { transition: transform .16s; }
    #appScreen.compact-navigation .account-navigation-toggle svg { transform: rotate(180deg); }
    .role { color: var(--muted); font-size: 12px; }
    .role.superadmin { color: var(--red); font-weight: 700; }
    .avatar { width: 28px; height: 28px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: var(--surface-2); color: var(--accent); font-size: 11px; font-weight: 600; }
    .avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }
    .profile-photo-row { display: flex; align-items: center; gap: 12px; margin: 14px 0; }
    .profile-avatar { width: 64px; height: 64px; font-size: 18px; }
    .photo-actions { display: flex; flex-wrap: wrap; gap: 6px; }

    main { width: min(calc(100% - var(--nav-w)), var(--content-cap)); margin-left: var(--nav-w); padding: 24px clamp(18px, calc(2.4vw / var(--ui-scale-factor)), 36px) 60px; }
    #appScreen.compact-navigation .header-inner { padding-inline: 10px; align-items: center; }
    #appScreen.compact-navigation .topbar-brand { justify-content: center; padding-inline: 0; }
    #appScreen.compact-navigation .topbar-brand .brand-button { width: 48px; justify-content: center; padding: 0; text-align: center; }
    #appScreen.compact-navigation .topbar-brand .brand-button span:last-child { display: none; }
    #appScreen.compact-navigation .sidebar-footer { width: 100%; }
    #appScreen.compact-navigation .nav-button span { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
    #appScreen.compact-navigation .nav-button { width: 48px; justify-content: center; margin-inline: auto; padding: 0; }
    #appScreen.compact-navigation .user-menu { width: 100%; padding-inline: 0; }
    #appScreen.compact-navigation .account-trigger { width: 48px; grid-template-columns: 1fr; justify-items: center; margin-inline: auto; padding: 7px; }
    #appScreen.compact-navigation .account-trigger .avatar { width: 32px; height: 32px; }
    #appScreen.compact-navigation .account-trigger .user-copy,
    #appScreen.compact-navigation .account-chevron { display: none; }
    #appScreen.compact-navigation .account-popover { left: 0; right: auto; min-width: 180px; }
    #appScreen.compact-navigation .status-dock { left: 50%; width: min(calc(var(--scaled-viewport-width) - 28px), 900px); }
    .page-title { margin: 0 0 14px; font-size: 20px; line-height: 1.25; letter-spacing: -.015em; font-weight: 650; }

    .timer-dock { position: relative; z-index: 50; width: 100%; margin: 0; background: transparent; }
    .timer-dock[hidden] { display: none; }

    .timer-card {
      position: relative;
      overflow: visible;
      width: 100%;
      margin: 0;
      padding: 0;
      border: 0;
      border-radius: 0;
      background: transparent;
      box-shadow: none;
    }
    .timer-card.picker-open, .timer-card.suggestions-open { z-index: 60; }
    .timer-form { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(260px, 1.7fr) minmax(210px, .8fr) 150px; align-items: center; gap: 10px; }
    .timer-field { min-width: 0; display: grid; gap: 5px; }
    .field-label { color: var(--text); font-size: 13px; font-weight: 550; }
    .field-error { margin: 0; color: var(--red); font-size: 12px; line-height: 1.35; }
    .timer-form [aria-invalid="true"] { border-color: var(--red); }
    .timer-form .project-picker-button[aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 3px rgba(211, 61, 92, .12); }
    .timer-form input { min-height: var(--control-md); height: var(--control-md); background: var(--surface-2); }
    .timer-form .project-picker-button { min-height: var(--control-md); height: var(--control-md); }
    .timer-form .btn { min-width: 150px; min-height: var(--control-md); height: var(--control-md); box-shadow: none; }
    .timer-form > .btn { margin-top: 0; }
    :root[data-theme="dark"] .topbar input,
    :root[data-theme="dark"] .topbar select,
    :root[data-theme="dark"] .topbar .project-picker-button {
      border-color: var(--line-strong);
      background: var(--input);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
    }
    :root[data-theme="dark"] .topbar input:hover,
    :root[data-theme="dark"] .topbar select:hover,
    :root[data-theme="dark"] .topbar .project-picker-button:hover {
      border-color: #707787;
      background: var(--input-focus);
    }
    :root[data-theme="dark"] .topbar input::placeholder { color: #c0c4cc; opacity: .68; }
    .topbar .timer-field > label,
    .topbar .timer-field > .field-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
    .topbar .timer-form { align-items: start; padding-block: 10px; }
    .topbar .timer-field { gap: 4px; }
    .topbar .field-error { position: static; padding: 0 2px; background: transparent; box-shadow: none; overflow-wrap: anywhere; }
    :root[data-theme="dark"] .topbar .timer-form [aria-invalid="true"] { border-color: var(--red); }
    .activity-suggest { position: relative; min-width: 0; }
    .activity-suggestion-menu { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; right: 0; max-height: min(360px, calc(55vh / var(--ui-scale-factor))); padding: 6px; overflow-y: auto; border: 1px solid var(--line-strong); border-radius: var(--radius-card); background: var(--surface); box-shadow: 0 18px 42px rgba(20, 22, 28, .2); }
    .activity-suggestion { width: 100%; min-height: 48px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 6px 9px; border: 0; border-radius: 6px; color: var(--text); background: transparent; cursor: pointer; text-align: left; }
    .activity-suggestion:hover, .activity-suggestion:focus-visible { outline: none; background: var(--surface-2); }
    .activity-suggestion-copy { min-width: 0; display: grid; gap: 2px; }
    .activity-suggestion-copy strong, .activity-suggestion-copy span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .activity-suggestion-copy strong { font-size: 13px; }
    .activity-suggestion-copy span { color: var(--muted); font-size: 11px; }
    .activity-suggestion-action { display: inline-flex; align-items: center; gap: 5px; color: var(--accent); font-size: 12px; font-weight: 700; }
    .activity-suggestion-action .timer-action-icon { width: 13px; height: 13px; }
    .project-picker { position: relative; min-width: 0; }
    .project-picker-button { width: 100%; min-height: var(--control-lg); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 0 13px; border: 1px solid var(--line); border-radius: var(--radius-control); color: var(--text); background: var(--surface-2); cursor: pointer; text-align: left; }
    .project-picker-button:hover { border-color: var(--line-strong); }
    .project-picker-button:focus-visible, .project-picker.open .project-picker-button { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(91, 91, 214, .15); }
    .project-picker-button:disabled { opacity: .55; cursor: not-allowed; }
    .project-picker-dot { width: 11px; height: 11px; border: 2px solid var(--surface); border-radius: 50%; background: var(--surface-3); box-shadow: 0 0 0 1px var(--line-strong); }
    .project-picker-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
    .project-picker-chevron { width: 8px; height: 8px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-2px) rotate(45deg); transition: transform .16s; }
    .project-picker.open .project-picker-chevron { transform: translateY(2px) rotate(225deg); }
    .project-picker-menu { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; right: 0; max-height: min(420px, calc(60vh / var(--ui-scale-factor))); padding: 6px; overflow-y: auto; border: 1px solid var(--line-strong); border-radius: var(--radius-card); background: var(--surface); box-shadow: 0 18px 42px rgba(20, 22, 28, .2); }
    .project-picker-group + .project-picker-group { margin-top: 5px; padding-top: 5px; border-top: 1px solid var(--line); }
    .project-picker-client { padding: 5px 9px 4px; color: var(--muted); background: var(--subtle); border-radius: 6px; font-size: 11px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
    .project-picker-option { width: 100%; min-height: 38px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 5px 9px; border-radius: 6px; color: var(--text); background: transparent; cursor: pointer; text-align: left; }
    .project-picker-option:hover, .project-picker-option.selected { background: var(--surface-2); }
    .project-picker-option:focus-visible { outline: none; background: var(--surface-2); box-shadow: inset 0 0 0 2px var(--accent); }
    .project-picker-option .project-dot { width: 10px; height: 10px; }
    .project-picker-option.no-dot { grid-template-columns: minmax(0, 1fr) auto; }
    .project-picker-option.no-dot span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .project-picker-option span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .project-picker-check { color: var(--accent); font-weight: 750; }
    .picker-search { position: sticky; z-index: 2; top: -6px; padding: 4px 2px 7px; background: var(--surface); }
    .picker-search input { min-height: var(--control-sm); background: var(--surface-2); }
    .picker-leading-icon { width: 16px; height: 16px; color: var(--muted); }
    .visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
    .report-filter-field { min-width: 0; position: relative; display: grid; gap: 0; }
    .report-filter-field > .field-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
    .report-picker .project-picker-button { min-height: var(--control-md); }
    .report-picker .project-picker-menu { min-width: min(320px, calc(var(--scaled-viewport-width) - 24px)); padding: 8px; }
    .report-picker-options { display: grid; gap: 2px; }
    .project-picker-option.report-multi-option { min-height: 38px; display: flex; align-items: center; gap: 10px; padding: 6px 8px; overflow: hidden; text-align: left; }
    .report-user-status-option { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 6px 8px 10px; margin-bottom: 5px; border-bottom: 1px solid var(--line); }
    .report-multi-option:hover { background: var(--surface-2); }
    .report-multi-option.report-multi-select-all { margin-bottom: 5px; padding-bottom: 10px; border-bottom: 1px solid var(--line); border-radius: 6px 6px 0 0; font-weight: 700; }
    .report-multi-option input { appearance: none; width: 17px; min-width: 17px; max-width: 17px; min-height: 17px; height: 17px; max-height: 17px; flex: 0 0 17px; margin: 0 0 0 auto; padding: 0; border: 1.5px solid var(--line-strong); border-radius: 4px; background: var(--surface); cursor: pointer; transition: border-color .12s, background-color .12s, box-shadow .12s; }
    .report-multi-option input:checked { border-color: var(--accent); background-color: var(--accent); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.5 8.5 3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; background-size: 13px 13px; }
    .report-multi-option input:indeterminate { border-color: var(--accent); background: linear-gradient(#fff, #fff) center / 7px 2px no-repeat, var(--accent); }
    .report-multi-option input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
    .report-multi-option input:disabled { opacity: .45; cursor: not-allowed; }
    .report-selection-check { width: 17px; min-width: 17px; height: 17px; display: block; margin-left: auto; border: 1.5px solid var(--line-strong); border-radius: 4px; background: var(--surface); }
    .report-picker .project-picker-option.selected { background: transparent; }
    .report-picker .project-picker-option.selected:hover { background: var(--surface-2); }
    .report-picker .project-picker-option.selected .report-selection-check { border-color: var(--accent); background-color: var(--accent); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.5 8.5 3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; background-size: 13px 13px; }
    .report-multi-option .project-dot { width: 9px; height: 9px; }
    .report-multi-label { width: 0; min-width: 0; flex: 1 1 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .report-project-group + .report-project-group { margin-top: 6px; padding-top: 6px; }
    .report-project-group .project-picker-client { margin-bottom: 2px; }
    .period-picker-menu { min-width: 360px !important; padding: 12px; }
    .period-picker-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    .period-picker-grid input { min-height: var(--control-md); background: var(--surface-2); }
    .period-picker-actions { display: flex; justify-content: flex-end; gap: 7px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
    .running-state-icon { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid rgba(91, 91, 214, .24); border-radius: 50%; color: var(--accent); background: rgba(91, 91, 214, .07); animation: running-icon-pulse 2.2s ease-in-out infinite; }
    .running-state-icon svg { width: 20px; height: 20px; }
    @keyframes running-icon-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(91, 91, 214, 0); } 50% { box-shadow: 0 0 0 5px rgba(91, 91, 214, .12); } }
    .project-dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
    .timer-action-icon { width: 16px; height: 16px; display: block; }
    .status-dock { position: fixed; z-index: 120; top: calc(var(--topbar-current-h) + 12px); left: 50%; transform: translateX(-50%); width: min(calc(var(--scaled-viewport-width) - 28px), 900px); display: grid; gap: 8px; pointer-events: none; }
    .status-dock .update-banner { box-shadow: var(--shadow); }
    .global-timer { position: static; width: 100%; display: grid; grid-template-columns: 36px minmax(180px, 1fr) auto auto 150px; align-items: center; gap: 14px; margin: 0; padding: 0; border: 0; border-radius: 0; color: var(--text); background: transparent; box-shadow: none; pointer-events: auto; }
    .global-timer-copy { min-width: 0; }
    .global-timer-title-row { min-width: 0; display: flex; align-items: center; gap: 6px; }
    .global-timer-copy strong, .global-timer-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .global-timer-title-row strong { min-width: 0; }
    .global-timer-copy span { color: var(--muted); font-size: 12px; }
    .global-timer-rename { width: 26px; min-width: 26px; height: 26px; padding: 0; border-color: transparent; color: var(--muted); background: transparent; }
    .global-timer-rename svg { width: 13px; height: 13px; }
    .global-timer-started { color: var(--muted); white-space: nowrap; }
    .global-timer-clock { min-width: 108px; text-align: right; font-variant-numeric: tabular-nums; font-size: 22px; font-weight: 800; letter-spacing: .02em; }
    .topbar-action { width: 150px; min-width: 150px; height: var(--control-md); min-height: var(--control-md); justify-content: center; }
    .topbar-action .timer-action-icon { width: 20px; height: 20px; }

    .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0 22px; }
    .stats.personal-summary { grid-template-columns: minmax(220px, 360px); }
    .stat { min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
    .stat-label { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
    .stat-value { margin-top: 2px; font-variant-numeric: tabular-nums; font-size: 17px; font-weight: 750; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

    .section { margin-top: 24px; }
    #timesPage > .section { margin-top: 0; }
    .section-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 10px; }
    .section h2 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.03em; }
    .section-copy { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
    .page-intro { margin: -10px 0 14px; }
    .filter { max-width: 220px; min-height: var(--control-md); }
    .filter-tools { display: flex; flex-wrap: nowrap; align-items: center; justify-content: flex-end; gap: 12px; }
    .filter-tools .btn, .filter-tools .filter { height: var(--control-md); min-height: var(--control-md); max-height: var(--control-md); padding-block: 0; }
    .filter-tools .btn { gap: 7px; padding-inline: 14px; white-space: nowrap; font-size: 13px; font-weight: 550; }
    .filter-tools .btn svg { width: 14px; height: 14px; }
    .search-filter { width: min(220px, 100%); max-width: 220px; }
    .filter-tools .search-filter { flex: 0 0 220px; width: 220px; max-width: 220px; }
    .filter-tools .page-toolbar-action { flex: 0 0 auto; width: auto; min-width: 0; }
    .entry-list { display: grid; gap: 4px; }
    .summary-line { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
    .summary-primary, .summary-total, .summary-separator { font-size: 14px; line-height: 1.4; font-weight: 700; white-space: nowrap; }
    .summary-primary { color: var(--text); }
    .summary-total, .summary-separator { color: var(--muted); }
    .summary-total { font-variant-numeric: tabular-nums; }
    .day-heading {
      min-height: 28px;
      display: grid;
      grid-template-columns: auto minmax(24px, 1fr) auto;
      align-items: center;
      gap: 14px;
      margin: 12px 0 3px;
      padding: 4px 12px;
      color: var(--muted);
    }
    .day-heading:first-child { margin-top: 0; }
    .day-heading-rule { height: 0; border-top: 1px dotted var(--line-strong); }
    .day-heading .summary-total { text-align: right; }
    .entry-group {
      overflow: visible;
      border: 1px solid var(--line);
      border-radius: var(--radius-card);
      background: var(--surface);
      transition: border-color .18s, background .18s;
    }
    .entry-group:hover { border-color: var(--line-strong); background: var(--surface); box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
    .entry {
      display: grid;
      grid-template-columns: minmax(260px, 1fr) 220px 140px 120px;
      align-items: center;
      gap: 14px;
      min-height: 56px;
      padding: 8px 12px;
    }
    .entry-title { font-size: 14px; font-weight: 650; overflow-wrap: anywhere; }
    .auto-stop-note { display: inline-flex; align-items: center; margin-left: 7px; padding: 2px 7px; border: 1px solid var(--red); border-radius: 999px; color: var(--red); background: var(--surface); font-size: 11px; font-weight: 700; line-height: 1.35; vertical-align: middle; }
    .segment-label .auto-stop-note { margin-top: 4px; }
    .entry-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 3px; }
    .tag { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
    .report-entry-context { gap: 5px 7px; }
    .report-entry-context-item { min-width: 0; gap: 5px; }
    .report-entry-project { color: var(--text); font-weight: 600; }
    .report-entry-client::before, .report-entry-author::before { content: ""; width: 1px; height: 13px; flex: 0 0 auto; margin-right: 3px; background: var(--line-strong); }
    .report-context-icon { width: 13px; height: 13px; flex: 0 0 auto; color: var(--muted); }
    .entry-project-context { gap: 6px; }
    .entry-project-context .entry-context-separator { color: var(--line-strong); }
    .entry-project-context .entry-project-name { color: var(--text); font-weight: 600; }
    .entry-date { color: var(--text); font-size: 13px; }
    .entry-date > span { display: flex; align-items: center; gap: 7px; color: var(--muted); white-space: nowrap; }
    .manual-note-wrap { position: relative; display: inline-flex; align-items: center; }
    .manual-note { display: inline-flex; align-items: center; gap: 4px; padding-left: 7px; border-left: 2px solid var(--red); color: var(--red); font-size: 11px; line-height: 14px; font-weight: 600; white-space: nowrap; cursor: help; }
    .manual-note svg { width: 12px; height: 12px; }
    .manual-note:focus { outline: none; border-radius: 2px; box-shadow: 0 0 0 3px rgba(211, 61, 92, .16); }
    .manual-tooltip { position: absolute; z-index: 70; top: calc(100% + 8px); left: 0; width: max-content; max-width: min(360px, calc(78vw / var(--ui-scale-factor))); display: grid; gap: 5px; padding: 11px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-control); color: var(--text); background: var(--surface); box-shadow: var(--shadow); font-size: 12px; font-weight: 500; line-height: 1.4; white-space: normal; opacity: 0; visibility: hidden; transform: translateY(-4px); pointer-events: none; transition: opacity .14s, transform .14s, visibility .14s; }
    .manual-tooltip strong { font-size: 12px; }
    .manual-tooltip-time { color: var(--muted); }
    .manual-tooltip-change { padding-top: 5px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
    .manual-note-wrap:hover .manual-tooltip, .manual-note-wrap:focus-within .manual-tooltip { opacity: 1; visibility: visible; transform: translateY(0); }
    .locked-note { width: 24px; height: 24px; display: inline-grid; place-items: center; color: var(--muted); }
    .locked-note svg { width: 14px; height: 14px; }
    .duration { text-align: center; font-variant-numeric: tabular-nums; font-size: 15px; font-weight: 650; }
    .entry-actions { min-width: 0; display: flex; justify-content: center; align-items: center; gap: 5px; }
    .icon-action.segment-count { width: calc(var(--control-sm) * 2 + 5px); min-width: calc(var(--control-sm) * 2 + 5px); gap: 8px; padding: 0; color: var(--accent); background: var(--surface); font-variant-numeric: tabular-nums; }
    .segment-count-chevron { width: 7px; height: 7px; margin-top: -3px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .16s; }
    .segment-count.active .segment-count-chevron { margin-top: 3px; transform: rotate(225deg); }
    .icon-action { width: var(--control-sm); min-width: var(--control-sm); height: var(--control-sm); padding: 0; color: var(--muted); background: transparent; font-size: 14px; }
    .icon-action:hover { color: var(--accent); border-color: var(--line); background: var(--surface-2); }
    .delete-action { color: var(--red); }
    .delete-action:hover { color: var(--red); border-color: var(--danger-line); background: var(--danger-soft); }
    .segment-count.active { color: white; border-color: var(--accent); background: var(--accent); }
    .segments { display: grid; gap: 1px; padding: 0 14px 10px; border-top: 1px solid var(--line); background: var(--subtle); }
    .segment-row { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(170px, .8fr) auto auto; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
    .segment-row:last-child { border-bottom: 0; }
    .segment-label { color: var(--text); font-size: 13px; font-weight: 650; }
    .segment-label small { display: block; color: var(--muted); font-weight: 500; }
    .segment-time { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; }
    .segment-duration { min-width: 76px; text-align: right; font-variant-numeric: tabular-nums; font-weight: 750; }
    .segment-actions { display: flex; align-items: center; justify-content: flex-end; gap: 5px; }
    .empty { padding: 26px 18px; border: 1px dashed var(--line); border-radius: var(--radius-card); text-align: center; color: var(--muted); }
    .empty strong { display: block; margin-bottom: 5px; color: var(--text); }
    .empty .btn { margin-top: 10px; }

    .inline-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
    .admin-workspace.user-workspace { overflow: visible; border: 0; background: transparent; }
    .user-workspace .admin-form { margin-bottom: 12px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); }
    .users { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); align-items: stretch; gap: 12px; margin: 0; padding: 0; }
    .users > .empty { grid-column: 1 / -1; }
    .user-card { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); box-shadow: 0 1px 2px rgba(0, 0, 0, .035); transition: border-color .18s, box-shadow .18s; }
    .user-card:hover { border-color: var(--line-strong); box-shadow: 0 4px 14px rgba(20, 22, 28, .055); }
    .user-card-avatar { width: 44px; height: 44px; font-size: 13px; }
    .user-card-copy { min-width: 0; padding-top: 1px; }
    .user-card-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
    .user-card-title strong { overflow: hidden; font-size: 14px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
    .user-card-username { display: block; margin-top: 1px; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
    .user-card-role { display: inline-flex; align-items: center; min-height: 21px; margin-top: 8px; padding: 2px 7px; border-radius: 999px; color: var(--muted); background: var(--surface-2); font-size: 10px; font-weight: 650; }
    .user-card-role.superadmin { color: var(--red); background: var(--danger-soft); }
    .user-card .btn-small { height: 28px; min-height: 28px; padding-inline: 8px; }
    .user-state-badge { display: inline-flex; align-items: center; min-height: 20px; padding: 1px 7px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--subtle); font-size: 10px; font-weight: 650; }
    .settings-shell { max-width: 720px; }
    .settings-shell > .settings-card:first-of-type { border-top: 0; }
    .settings-card { margin: 0; padding: 20px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
    .profile-shell { max-width: 1040px; }
    .profile-shell .password-notice { margin: 0 0 12px; }
    .profile-layout { display: grid; grid-template-columns: minmax(300px, .9fr) minmax(390px, 1.1fr); align-items: start; gap: 12px; }
    .profile-column { display: grid; align-content: start; gap: 12px; }
    .profile-shell .profile-card { margin: 0; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
    .profile-shell .profile-card h2 { margin: 0; font-size: 15px; font-weight: 650; }
    .profile-shell .account-form { max-width: none; margin-top: 12px; }
    .profile-shell .profile-photo-row { margin: 4px 0 2px; }
    .security-form { gap: 12px; }
    .password-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    .report-card { margin-top: 14px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
    .settings-card h2 { margin: 0 0 2px; font-size: 15px; font-weight: 650; }
    .report-card h2 { margin: 0 0 5px; font-size: 17px; font-weight: 650; }
    .password-notice { margin-top: 22px; padding: 14px 16px; border: 1px solid rgba(221, 54, 90, .25); border-radius: var(--radius-card); color: var(--red); background: var(--error-bg); font-weight: 750; }
    .account-form { max-width: 360px; margin-top: 14px; grid-template-columns: 1fr; gap: 10px; }
    .report-shell { display: block; }
    .report-page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
    .report-page-head .page-title { margin: 0; }
    .report-page-head .section-copy { margin-top: 4px; }
    .report-page-search { position: relative; width: min(220px, 100%); min-width: 0; }
    .report-page-search svg { position: absolute; z-index: 1; top: 50%; left: 13px; width: 17px; height: 17px; color: var(--muted); transform: translateY(-50%); pointer-events: none; }
    .report-page-search input { width: 100%; min-height: var(--control-md); height: var(--control-md); padding: 0 14px 0 39px; background: var(--surface); }
    .report-filters { display: grid; grid-template-columns: minmax(260px, 1.25fr) repeat(3, minmax(150px, 1fr)) auto; align-items: center; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
    .report-filters.personal-report { grid-template-columns: minmax(260px, 1.25fr) repeat(2, minmax(150px, 1fr)) auto; }
    .report-filters .project-picker-button { border-color: transparent; }
    .report-filters .project-picker-button:hover { border-color: var(--line); }
    .report-filter-actions { display: flex; align-items: center; justify-content: flex-end; }
    .report-reset-button { width: var(--control-md); min-width: var(--control-md); height: var(--control-md); display: grid; place-items: center; padding: 0; border: 1px solid transparent; border-radius: var(--radius-control); color: var(--muted); background: transparent; cursor: pointer; }
    .report-reset-button svg { width: 17px; height: 17px; }
    .report-reset-button:hover { color: var(--text); border-color: var(--line); background: var(--surface-2); }
    .report-reset-button:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(91, 91, 214, .15); }
    .report-filter-status { display: inline-flex; min-height: 26px; align-items: center; gap: 7px; padding: 4px 9px; border-radius: 999px; color: var(--accent); background: var(--accent-soft); font-size: 11px; font-weight: 700; white-space: nowrap; }
    .report-filter-status[hidden] { display: none; }
    .report-filter-status-icon { width: 14px; height: 14px; flex: 0 0 14px; }
    .report-filter-status-spinner { width: 13px; height: 13px; flex: 0 0 13px; border: 2px solid rgba(91, 91, 214, .24); border-top-color: currentColor; border-radius: 50%; animation: report-status-spin .75s linear infinite; }
    .report-filter-status:is([data-state="loading"], [data-state="error"]) .report-filter-status-hourglass { display: none; }
    .report-filter-status:not([data-state="loading"]) .report-filter-status-spinner { display: none; }
    .report-filter-status[data-state="error"] { color: var(--danger); background: rgba(211, 61, 92, .1); }
    @keyframes report-status-spin { to { transform: rotate(360deg); } }
    .export-toolbar { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
    .export-toolbar .hint { align-self: center; margin-right: 4px; }
    .report-results-toolbar { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 6px 2px 6px 12px; border-bottom: 1px solid var(--line); }
    .report-results-toolbar .export-toolbar .btn { min-height: var(--control-sm); height: var(--control-sm); padding-inline: 11px; font-size: 11px; }
    .report-activities-card { margin-top: 16px; padding: 16px; }
    .report-activities-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
    .report-activities-head h2 { margin: 0; font-size: 19px; letter-spacing: -.02em; }
    .report-activities-head .section-copy { margin-top: 2px; font-size: 12px; }
    .report-sort { width: 190px; flex: 0 0 auto; }
    .report-sort select { height: var(--control-md); min-height: var(--control-md); background: var(--surface); }
    #adminPage { width: 100%; max-width: none; }
    .admin-page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
    .admin-page-head .page-title { margin: 0; }
    .admin-tab-panel { margin-top: 14px; }
    .admin-tab-panel[hidden] { display: none; }
    .dashboard-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .dashboard-maintenance-warning { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 10px; margin-bottom: 10px; padding: 11px 13px; border: 1px solid #ecd69a; border-radius: var(--radius-card); color: #704900; background: #fff7df; }
    .dashboard-maintenance-warning[hidden] { display: none; }
    .dashboard-maintenance-warning svg { width: 18px; height: 18px; margin-top: 1px; }
    .dashboard-maintenance-warning strong, .dashboard-maintenance-warning span { display: block; }
    .dashboard-maintenance-warning strong { font-size: 12px; font-weight: 700; }
    .dashboard-maintenance-warning span { margin-top: 2px; font-size: 11px; line-height: 1.45; }
    .dashboard-maintenance-warning.partial { border-color: var(--danger-line); color: var(--red); background: var(--error-bg); }
    .dashboard-panel { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); box-shadow: 0 1px 2px rgba(0, 0, 0, .035); }
    .dashboard-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
    .dashboard-panel-head h3 { margin: 0; font-size: 14px; font-weight: 650; }
    .dashboard-panel-note { color: var(--muted); font-size: 10px; }
    .dashboard-team-tools { display: flex; align-items: center; gap: 10px; }
    .dashboard-team-sort { width: auto; min-width: 170px; min-height: var(--control-sm); height: var(--control-sm); padding-block: 0; background: var(--surface); font-size: 12px; font-weight: 600; }
    .dashboard-list { display: grid; gap: 1px; border-radius: 8px; background: var(--line); overflow: hidden; }
    .dashboard-live-row { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 10px 11px; background: var(--surface); }
    .dashboard-avatar { width: 34px; height: 34px; font-size: 10px; }
    .dashboard-live-copy { min-width: 0; }
    .dashboard-live-copy strong, .dashboard-live-copy > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .dashboard-live-copy strong { font-size: 12px; font-weight: 650; }
    .dashboard-live-copy > span { margin-top: 1px; font-size: 11px; }
    .dashboard-live-project { display: flex !important; align-items: center; gap: 5px; color: var(--muted); }
    .dashboard-live-clock { min-width: 72px; text-align: right; font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 700; }
    .dashboard-stop-action { color: var(--red); }
    .dashboard-stop-action:hover { color: var(--red); border-color: var(--danger-line); background: var(--danger-soft); }
    .dashboard-live-panel.is-empty { padding-block: 13px; }
    .dashboard-live-panel.is-empty .dashboard-panel-head { margin-bottom: 6px; }
    .dashboard-live-panel.is-empty .dashboard-empty { padding: 6px 0 1px; text-align: left; }
    .dashboard-team-table { min-width: 0; }
    .dashboard-team-columns, .dashboard-online-row { display: grid; grid-template-columns: minmax(230px, 1.45fr) minmax(110px, .55fr) minmax(110px, .5fr) minmax(190px, 1fr) minmax(90px, .4fr); align-items: center; gap: 12px; }
    .dashboard-team-columns { padding: 0 11px 7px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
    .dashboard-online-row { min-width: 0; padding: 10px 11px; background: var(--surface); }
    .dashboard-user-cell { min-width: 0; display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 12px; }
    .dashboard-user-name, .dashboard-user-role, .dashboard-last-activity { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .dashboard-user-name { font-size: 12px; font-weight: 650; }
    .dashboard-user-role, .dashboard-last-activity { color: var(--muted); font-size: 11px; }
    .dashboard-today-total { color: var(--text); text-align: right; font-size: 11px; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
    .dashboard-presence { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 10px; font-weight: 650; white-space: nowrap; }
    .dashboard-presence::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
    .dashboard-presence.measuring { color: var(--success-text); }
    .dashboard-presence.measuring::before { background: var(--green); }
    .dashboard-presence.online { color: var(--accent); }
    .dashboard-presence.online::before { background: var(--accent); }
    .dashboard-empty { padding: 18px 12px; color: var(--muted); background: var(--surface); text-align: center; font-size: 12px; }
    .admin-workspace { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); overflow: hidden; }
    .admin-workspace-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 15px; border-bottom: 1px solid var(--line); }
    .admin-workspace-head h2 { margin: 0; font-size: 16px; font-weight: 650; }
    .admin-workspace-head p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
    .admin-workspace.client-workspace { overflow: visible; border: 0; background: transparent; }
    .client-admin-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); align-items: stretch; gap: 12px; }
    .client-admin-list > .empty { grid-column: 1 / -1; }
    .client-card { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); box-shadow: 0 1px 2px rgba(0, 0, 0, .035); transition: border-color .18s, box-shadow .18s; }
    .client-card:hover { border-color: var(--line-strong); box-shadow: 0 4px 14px rgba(20, 22, 28, .055); }
    .client-card-logo { width: 40px; height: 40px; display: grid; place-items: center; overflow: hidden; border-radius: 10px; color: var(--accent); background: var(--surface-2); font-size: 16px; line-height: 1; font-weight: 650; }
    .client-card-logo img { width: 100%; height: 100%; display: block; padding: 4px; object-fit: contain; }
    .client-card-copy { min-width: 0; }
    .client-card-copy strong { display: block; overflow: hidden; font-size: 14px; line-height: 1.3; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
    .client-card-actions { align-self: stretch; display: grid; justify-items: end; align-content: space-between; gap: 8px; }
    .client-card-actions .client-limit-badge { margin-bottom: -4px; } /* centred on the project colour dots */
    .client-limit-badge { justify-self: end; padding: 2px 8px; border-radius: 999px; color: var(--accent); background: var(--accent-soft, #eef0ff); font-size: 11px; font-weight: 700; white-space: nowrap; }
    .client-card-project-count { display: block; margin-top: 1px; color: var(--muted); font-size: 11px; }
    .client-project-link { width: 100%; display: block; margin-top: 1px; padding: 0; border: 0; border-radius: 5px; color: inherit; background: transparent; cursor: pointer; text-align: left; }
    .client-project-link:hover .client-card-project-count, .client-project-link:focus-visible .client-card-project-count { color: var(--accent); }
    .client-project-link:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(91, 91, 214, .14); }
    .client-project-colors { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 9px; }
    .client-project-dot { width: 10px; height: 10px; flex: 0 0 auto; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
    .client-project-more, .client-project-empty { color: var(--muted); font-size: 10px; line-height: 10px; font-weight: 700; white-space: nowrap; }
    .client-card .btn-small { height: 28px; min-height: 28px; padding-inline: 8px; }
    .project-admin-list { display: grid; gap: 1px; margin: 0; padding: 0; background: var(--line); }
    .project-admin-status-section { min-width: 0; display: grid; gap: 1px; background: var(--line); }
    .project-admin-status-title { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 14px; color: var(--text); background: var(--surface); }
    .project-admin-status-copy { min-width: 0; display: flex; align-items: baseline; gap: 4px; }
    .project-admin-status-copy strong { font-size: 12px; font-weight: 700; }
    .project-admin-status-count { color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; }
    .project-admin-status-filter { display: block; }
    .project-admin-status-filter::after { right: 12px; }
    .project-admin-status-filter select { width: auto; min-width: 138px; min-height: var(--control-sm); height: var(--control-sm); padding-right: 34px; color: var(--text); background: var(--surface); font-size: 12px; font-weight: 600; cursor: pointer; }
    .project-admin-status-divider { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 14px; color: var(--muted); background: var(--accent-soft); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
    .project-admin-status-divider span:last-child { font-variant-numeric: tabular-nums; }
    .project-admin-group { min-width: 0; background: var(--surface); }
    .project-admin-group-title { position: sticky; z-index: 1; top: 0; display: flex; align-items: center; gap: 4px; padding: 8px 14px; color: #5f6472; background: #f4f3ff; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
    .project-admin-group-title span { color: var(--accent); font-size: 10px; font-variant-numeric: tabular-nums; }
    .project-admin-group-list { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); }
    .project-admin-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 50px; padding: 8px 14px; border: 0; border-radius: 0; background: var(--surface); }
    .project-admin-row.inactive { background: var(--surface); }
    .project-admin-row.inactive .project-dot, .project-admin-row.inactive .project-admin-row-copy strong { opacity: .58; }
    .project-admin-row-copy { min-width: 0; display: flex; align-items: center; gap: 8px; }
    .project-admin-row-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .project-admin-archived-badge { flex: 0 0 auto; padding: 3px 7px; border-radius: 999px; color: var(--muted); background: var(--surface-2); font-size: 10px; line-height: 1.2; font-weight: 650; }

    /* Kompaktní pracovní hierarchie */
    .section-title-line { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
    .account-form .btn { justify-self: start; }
    .admin-toolbar { display: flex; flex-wrap: wrap; gap: 7px; }
    .technical-tools-actions { display: grid; gap: 8px; margin-top: 20px; }
    .technical-tools-actions .btn { width: 100%; justify-content: flex-start; }
    .admin-workspace.closure-workspace { overflow: visible; border: 0; background: transparent; }
    .closure-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); align-items: stretch; gap: 12px; }
    .closure-list > .empty { grid-column: 1 / -1; }
    .closure-card { display: flex; flex-direction: column; overflow: hidden; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); box-shadow: 0 1px 2px rgba(0, 0, 0, .035); transition: border-color .18s, box-shadow .18s; }
    .closure-card:hover { border-color: var(--line-strong); box-shadow: 0 4px 14px rgba(20, 22, 28, .055); }
    .closure-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
    .closure-card-head strong { min-width: 0; font-size: 15px; font-weight: 650; }
    .closure-card-head strong::first-letter { text-transform: uppercase; }
    .closure-report-link { min-width: 0; display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; color: var(--text); background: transparent; font: inherit; font-size: 15px; font-weight: 650; cursor: pointer; text-align: left; }
    .closure-report-link-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .closure-report-link-label::first-letter { text-transform: uppercase; }
    .closure-report-link svg { width: 14px; height: 14px; flex: 0 0 14px; color: var(--muted); transition: color .16s, transform .16s; }
    .closure-report-link:hover { color: var(--accent); }
    .closure-report-link:hover svg { color: var(--accent); transform: translateX(2px); }
    .closure-report-link:focus-visible { outline: none; border-radius: 3px; box-shadow: 0 0 0 3px rgba(91, 91, 214, .18); }
    .closure-status { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 999px; color: var(--muted); background: var(--surface-2); font-size: 10px; line-height: 1.2; font-weight: 650; white-space: nowrap; }
    .closure-status.current { color: var(--accent); background: rgba(91, 91, 214, .09); }
    .closure-status.locked { color: var(--text); }
    .closure-status svg { width: 11px; height: 11px; }
    .closure-duration { margin-top: 16px; font-variant-numeric: tabular-nums; font-size: 24px; line-height: 1.1; font-weight: 700; letter-spacing: -.025em; white-space: nowrap; }
    .closure-stats { margin-top: 5px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
    .closure-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 46px; margin: 16px -16px -16px; padding: 9px 16px; background: var(--subtle); }
    .closure-lock-meta { min-width: 0; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
    .closure-footer-note { min-width: 0; color: var(--muted); font-size: 11px; line-height: 1.35; }
    .closure-action { display: flex; justify-content: flex-end; margin-left: auto; }
    .closure-action .btn-small { min-width: 0; height: 28px; min-height: 28px; padding-inline: 8px; }
    .admin-form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; padding: 16px; }
    .admin-form h4 { grid-column: 1 / -1; margin: 0; font-size: 13px; }
    .admin-form .btn { justify-self: start; align-self: end; width: auto; height: var(--control-md); min-height: var(--control-md); }
    .project-create-form label:nth-of-type(3) { max-width: 120px; }
    .project-create-form > .btn { min-width: 150px; }
    .project-admin-row:hover { background: var(--subtle); }
    .project-admin-row:last-child { border-bottom: 0; }
    .project-admin-row .entry-actions { justify-content: flex-end; gap: 7px; }
    .project-admin-row .btn-small, .admin-edit-action { min-height: 28px; height: 28px; padding: 0 9px; border-color: var(--line); color: var(--muted); background: var(--surface); font-size: 12px; }
    .project-admin-row .btn-small:hover, .admin-edit-action:hover { color: var(--text); border-color: var(--line-strong); background: var(--surface-2); }
    .user-account-actions { display: grid; gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
    .user-account-actions h3 { margin: 0 0 3px; font-size: 14px; }
    .user-account-actions p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
    .user-account-action-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
    .user-danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 2px; padding: 12px; border: 1px solid var(--danger-line); border-radius: var(--radius-control); background: var(--danger-soft); }
    .user-danger-zone strong { display: block; color: var(--red); font-size: 13px; }
    .user-danger-zone p { margin-top: 2px; }

    dialog { width: min(calc(92vw / var(--ui-scale-factor)), 520px); padding: 0; border: 1px solid var(--line); border-radius: var(--radius-dialog); color: var(--text); background: var(--surface); box-shadow: var(--shadow); }
    dialog::backdrop { background: rgba(5, 3, 8, .76); backdrop-filter: blur(5px); }
    .dialog-body { padding: 28px; }
    .dialog-head { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
    .dialog-head h2 { margin: 0; letter-spacing: -.035em; }
    .dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
    .dialog-error { margin-top: 18px; padding: 12px 14px; border: 1px solid var(--danger-line); border-radius: var(--radius-control); color: var(--badge-text); background: var(--error-bg); font-size: 13px; font-weight: 600; line-height: 1.45; }
    .dialog-error:focus { outline: none; box-shadow: 0 0 0 3px rgba(211, 61, 92, .16); }
    .duration-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

    .loading { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--loading); backdrop-filter: blur(8px); }
    .spinner { width: 42px; height: 42px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; }
    @keyframes spin { to { transform: rotate(360deg); } }
    .toast { position: static; width: 100%; padding: 12px 15px; border: 1px solid rgba(91, 91, 214, .42); border-radius: var(--radius-card); color: var(--text); background: #f0efff; box-shadow: var(--shadow); opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .2s, transform .2s; }
    .toast.show { opacity: 1; transform: translateY(0); }
    .toast.error { border-color: rgba(255, 96, 125, .4); background: var(--error-bg); }

    @media (max-width: 1100px) {
      #appScreen, #appScreen.compact-navigation { --nav-w: 180px; }
      .topbar-inner { width: 100%; }
      .topbar-brand, #appScreen.compact-navigation .topbar-brand { justify-content: flex-start; padding-inline: 22px; }
      #appScreen.compact-navigation .topbar-brand .brand-button { width: auto; justify-content: flex-start; }
      #appScreen.compact-navigation .topbar-brand .brand-button span:last-child { display: inline; }
      .app-header { position: relative; inset: auto; width: 100%; border-right: 0; border-bottom: 1px solid var(--line); }
      #appScreen.compact-navigation .app-header { width: 100%; }
      .header-inner { width: min(100% - 24px, 1180px); height: auto; min-height: 64px; margin: 0 auto; padding: 8px 0; flex-direction: row; align-items: center; gap: 12px; }
      #appScreen.compact-navigation .header-inner { width: min(100% - 24px, 1180px); padding: 8px 0; flex-direction: row; align-items: center; }
      .brand-button { padding: 0; }
      .nav-group { min-width: 0; flex: 0; display: block; }
      .app-nav { position: fixed; z-index: 20; left: 50%; bottom: 12px; transform: translateX(-50%); width: min(calc(100% - 24px), 760px); padding: 6px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); scrollbar-width: none; }
      .account-navigation-toggle { display: none; }
      .app-nav::-webkit-scrollbar { display: none; }
      .app-nav { flex-direction: row; }
      #appScreen.compact-navigation .app-nav { width: min(calc(100% - 24px), 760px); }
      .nav-button, #appScreen.compact-navigation .nav-button { width: auto; min-width: max-content; flex: 1 0 auto; justify-content: center; margin: 0; padding: 0 10px; text-align: center; }
      :root[data-theme="dark"] .nav-button.active { box-shadow: inset 0 -3px 0 var(--accent); }
      #appScreen.compact-navigation .nav-button span { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; }
      .sidebar-footer, #appScreen.compact-navigation .sidebar-footer { width: auto; margin-left: auto; padding: 0; border: 0; }
      .user-menu, #appScreen.compact-navigation .user-menu { width: auto; margin: 0; padding: 0; border: 0; }
      .account-trigger, #appScreen.compact-navigation .account-trigger { width: auto; min-width: 48px; grid-template-columns: auto minmax(0, 1fr) auto; margin: 0; }
      #appScreen.compact-navigation .account-trigger .user-copy { display: block; }
      #appScreen.compact-navigation .account-chevron { display: block; }
      .account-popover, #appScreen.compact-navigation .account-popover { top: calc(100% + 8px); right: 0; bottom: auto; left: auto; }
      main, #appScreen.compact-navigation main { width: min(100% - 24px, 1180px); margin: 0 auto; padding: 20px 0 110px; }
      .sidebar-organization { display: none; }
      .status-dock { top: calc(var(--topbar-current-h) + 12px); left: 50%; width: min(calc(100% - 24px), 900px); }
      #appScreen.compact-navigation .status-dock { left: 50%; width: min(calc(100% - 24px), 900px); }
      .timer-form { grid-template-columns: 1fr 1fr; }
      .timer-field:first-child { grid-column: 1 / -1; }
      .timer-form .btn { width: 100%; }
      .global-timer { grid-template-columns: 36px minmax(0, 1fr) auto 150px; }
      .running-state-icon { grid-column: 1; grid-row: 1 / span 2; }
      .global-timer-copy { grid-column: 2; grid-row: 1; }
      .global-timer-started { grid-column: 3; grid-row: 1; }
      .global-timer-clock { grid-column: 2 / span 2; grid-row: 2; text-align: left; }
      .global-timer .topbar-action { grid-column: 4; grid-row: 1 / span 2; }
      .entry { grid-template-columns: minmax(0, 1fr) 120px; }
      .entry-date { grid-column: 1; }
      .entry .duration { grid-column: 2; grid-row: 1; align-self: start; }
      .entry-actions { grid-column: 2; grid-row: 2; }
      .segment-row { grid-template-columns: minmax(0, 1fr) auto auto; }
      .segment-time { grid-column: 1; }
      .report-filters, .report-filters.personal-report { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }
    @media (max-width: 760px) {
      .profile-layout { grid-template-columns: 1fr; }
      .security-card { grid-row: 2; }
      .dashboard-team-columns { display: none; }
      .dashboard-online-row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; }
      .dashboard-user-cell { grid-column: 1; grid-row: 1; }
      .dashboard-presence { grid-column: 2; grid-row: 1; justify-self: end; }
      .dashboard-user-role { grid-column: 1; grid-row: 2; padding-left: 46px; }
      .dashboard-today-total { grid-column: 2; grid-row: 2; }
      .dashboard-last-activity { grid-column: 1 / span 2; grid-row: 3; padding-left: 46px; }
    }
    @media (max-width: 560px) {
      .auth-card { padding: 28px 24px; }
      .auth-product-brand .brand { font-size: 30px; }
      .auth-product-brand .brand-mark { width: 40px; height: 40px; }
      #appScreen, #appScreen.compact-navigation { --nav-w: 66px; }
      .topbar-brand, #appScreen.compact-navigation .topbar-brand { justify-content: center; padding-inline: 0; }
      .topbar-brand .brand-button, #appScreen.compact-navigation .topbar-brand .brand-button { width: 48px; justify-content: center; }
      .topbar-brand .brand-button span:last-child,
      #appScreen.compact-navigation .topbar-brand .brand-button span:last-child { display: none; }
      .topbar-main { padding-inline: 10px; }
      .header-inner, main { width: min(100% - 22px, 1180px); }
      .account-trigger, #appScreen.compact-navigation .account-trigger { grid-template-columns: 1fr; justify-items: center; padding-inline: 7px; }
      .account-trigger .user-copy, #appScreen.compact-navigation .account-trigger .user-copy,
      .account-chevron, #appScreen.compact-navigation .account-chevron { display: none; }
      main { padding-top: 14px; }
      .timer-card { margin-top: 0; border-radius: var(--radius-card); }
      .timer-form { grid-template-columns: 1fr; }
      .timer-field:first-child { grid-column: auto; }
      .timer-form > .btn { margin-top: 0; }
      .global-timer { grid-template-columns: 36px minmax(0, 1fr) 112px; gap: 8px; padding-block: 8px; }
      .running-state-icon { grid-column: 1; grid-row: 1 / span 2; }
      .global-timer-copy { grid-column: 2; grid-row: 1; }
      .global-timer-started { grid-column: 2; grid-row: 2; font-size: 11px; }
      .global-timer-clock { grid-column: 3; grid-row: 1; min-width: 0; font-size: 18px; text-align: right; }
      .global-timer .topbar-action { grid-column: 3; grid-row: 2; width: 112px; min-width: 112px; }
      .stats { grid-template-columns: 1fr 1fr; }
      .stats.personal-summary { grid-template-columns: 1fr; }
      .stat:last-child { grid-column: 1 / -1; }
      .section-head { align-items: stretch; flex-direction: column; }
      .filter { max-width: none; }
      .filter-tools { width: 100%; justify-content: stretch; flex-wrap: wrap; }
      .filter-tools > * { width: 100%; max-width: none; }
      .filter-tools .search-filter, .filter-tools .page-toolbar-action { flex: 1 1 100%; width: 100%; min-width: 0; max-width: none; }
      .day-heading { padding-inline: 2px; }
      .day-heading .summary-total { text-align: right; }
      .entry { grid-template-columns: 1fr; gap: 10px; padding: 15px; }
      .entry .duration, .entry-date, .entry-actions { grid-column: 1; grid-row: auto; }
      .entry .duration { text-align: left; }
      .entry-actions { justify-content: flex-start; }
      .entry .entry-actions .btn-small, .icon-action { width: 40px; min-width: 40px; height: 40px; min-height: 40px; }
      .entry .entry-actions .segment-count { width: 85px; min-width: 85px; }
      .user-card .btn-small, .client-card .btn-small, .project-admin-row .btn-small { height: 40px; min-height: 40px; }
      .admin-page-head, .admin-workspace-head { align-items: stretch; flex-direction: column; }
      .admin-page-head .btn, .admin-workspace-head > .btn { width: 100%; }
      .app-nav { width: min(calc(100% - 22px), 520px); }
      #appScreen.compact-navigation .app-nav { width: min(calc(100% - 22px), 520px); }
      .nav-button, #appScreen.compact-navigation .nav-button { min-width: 52px; padding: 0 12px; }
      .nav-button span, #appScreen.compact-navigation .nav-button span { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
      .update-banner { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
      .update-banner-actions { grid-column: 1 / -1; padding-left: 32px; flex-wrap: wrap; }
      .project-admin-row { grid-template-columns: auto minmax(0, 1fr) auto; gap: 9px; }
      .project-admin-status { display: none; }
      .segments { padding: 0 15px 12px; }
      .segment-row { grid-template-columns: minmax(0, 1fr) auto; gap: 7px 12px; }
      .segment-time { grid-column: 1; }
      .segment-duration { grid-column: 2; grid-row: 1; }
      .segment-actions { grid-column: 2; grid-row: 2; }
      .inline-form { grid-template-columns: 1fr; }
      .admin-form { grid-template-columns: 1fr; }
      .admin-form h4 { grid-column: auto; }
      .admin-form .btn { width: 100%; }
      .dialog-actions .btn { flex: 1; }
      .user-danger-zone { align-items: stretch; flex-direction: column; }
      .user-danger-zone .btn { width: 100%; }
      .password-pair { grid-template-columns: 1fr; }
      .profile-shell .profile-card { padding: 15px; }
      .profile-photo-row { align-items: flex-start; }
      .report-page-head { align-items: stretch; flex-direction: column; }
      .report-page-search { width: 100%; min-width: 0; }
      .report-activities-head { align-items: stretch; flex-direction: column; }
      .dashboard-team-panel .dashboard-panel-head { align-items: stretch; flex-direction: column; }
      .dashboard-team-tools { align-items: stretch; flex-direction: column; gap: 6px; }
      .dashboard-team-sort { width: 100%; }
      .report-sort { width: 100%; }
      .report-filters, .report-filters.personal-report { grid-template-columns: 1fr; }
      .period-picker-menu { width: min(360px, calc(var(--scaled-viewport-width) - 44px)); min-width: 0 !important; }
      .period-picker-grid { grid-template-columns: 1fr; }
      .report-filter-actions { width: 100%; }
      .report-reset-button { width: 100%; }
      .report-results-toolbar { align-items: stretch; flex-direction: column; padding: 10px 2px; }
      .report-results-toolbar .export-toolbar { justify-content: stretch; }
      .report-results-toolbar .export-toolbar .btn { flex: 1; }
    }

    #editDialog, #manualEntryDialog { width: min(calc(94vw / var(--ui-scale-factor)), 940px); }
    .entry-editor-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
    .entry-editor-columns .duration-fields { grid-template-columns: 1fr; }
    .day-context { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--surface-2); }
    .day-context h3 { margin: 0 0 12px; }
    .day-context-list { max-height: 340px; overflow: auto; margin: 12px 0; }
    .day-context-entry { padding: 12px 8px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
    .day-context-entry:last-child { border-bottom: 0; }
    .day-context-entry strong, .day-context-entry span { display: block; }
    .day-context-entry time { font-variant-numeric: tabular-nums; font-size: 13px; }
    .day-context-entry.is-editing { border-inline-start: 3px solid var(--accent); background: var(--surface); }
    @media (max-width: 700px) {
      .entry-editor-columns { grid-template-columns: 1fr; gap: 18px; }
      .day-context-list { max-height: 220px; }
      #editDialog .dialog-body, #manualEntryDialog .dialog-body { padding: 18px; }
    }

.deployment-details { display: grid; gap: 6px; }
.deployment-details dt { font-weight: 600; margin-top: 10px; }
.deployment-details dd { margin: 0; overflow-wrap: anywhere; }


.diagnostic-entry { padding: 12px 0; border-bottom: 1px solid #d9dce2; overflow-wrap: anywhere; }
.diagnostic-entry p { margin: 6px 0; font-size: 0.85em; }


.session-row { display:flex; justify-content:space-between; gap:12px; padding:8px 0; border-bottom:1px solid var(--line); }
.session-list { margin:12px 0; }




/* ── rc4 ─────────────────────────────────────────────────────────────── */
:root { --amber: #b7791f; --amber-soft: #fdf5e6; --amber-line: rgba(183, 121, 31, .38); --green-soft: #e6f4ee; }
:root[data-theme="dark"] .topbar, :root[data-theme="dark"] .app-header { --amber: #e3a645; }

/* Popups: stacked toasts in the existing status dock, never inside the page layout. */
.toast-stack { display: grid; gap: 8px; justify-items: center; }
/* Centred under the top bar like in rc3; the width follows the text, so a short
   confirmation is a compact pill instead of a box that looks cut off on wide screens. */
.toast-stack .toast { position: relative; width: fit-content; min-width: min(100%, 300px); max-width: min(100%, 620px); display: grid; gap: 4px; pointer-events: auto; }
.toast-stack .toast.sticky { padding-right: 38px; border-left: 4px solid var(--accent); }
.toast-stack .toast.warning { border-color: var(--amber-line); border-left-color: var(--amber); background: var(--surface); box-shadow: var(--shadow); }
.toast-title { font-weight: 700; }
.toast-message { color: var(--text); }
.toast.sticky .toast-message { color: var(--muted); font-size: 13px; }
.toast-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.toast-close { position: absolute; top: 6px; right: 8px; width: 28px; height: 28px; border: 0; border-radius: 6px; color: var(--muted); background: transparent; font-size: 18px; line-height: 1; cursor: pointer; }
.toast-close:hover { color: var(--text); background: var(--surface-2); }
.global-timer-clock.is-long { color: var(--amber); }

/* Notifications in the navigation and the page. */
.nav-button { position: relative; }
.nav-count { min-width: 20px; height: 20px; margin-left: auto; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; color: #fff; background: var(--red); font-size: 11px; font-weight: 700; line-height: 1; }
.nav-count[hidden] { display: none; }
#appScreen.compact-navigation .nav-count { position: absolute; top: 3px; right: 6px; min-width: 9px; width: 9px; height: 9px; padding: 0; font-size: 0; }
.notification-filter { display: inline-flex; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.notification-filter-option { height: 30px; padding: 0 12px; border: 0; border-radius: 999px; color: var(--muted); background: transparent; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.notification-filter-option.active { color: var(--accent); background: var(--accent-soft); }
.notification-card { padding: 6px 18px; }
.notification-list { display: grid; }
.notification-item { width: 100%; display: grid; grid-template-columns: 10px 36px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 14px 4px; border: 0; border-bottom: 1px solid var(--line); color: var(--text); background: transparent; font: inherit; text-align: left; cursor: pointer; }
.notification-item:last-child { border-bottom: 0; }
.notification-item:hover { background: var(--subtle); }
.notification-item:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--accent-line); }
.notification-dot { width: 8px; height: 8px; margin-top: 14px; border-radius: 50%; background: var(--accent); }
.notification-item.is-read .notification-dot { background: transparent; }
.notification-icon { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; color: var(--muted); background: var(--surface-2); }
.notification-icon.critical { color: var(--red); background: var(--danger-soft); }
.notification-icon.warning { color: var(--amber); background: var(--amber-soft); }
.notification-copy { min-width: 0; display: grid; gap: 2px; }
.notification-copy strong { font-weight: 650; }
.notification-copy span { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.notification-copy em { color: var(--accent); font-style: normal; font-weight: 600; white-space: nowrap; }
.notification-item.is-read strong { font-weight: 500; color: var(--muted); }
.notification-item time { color: var(--muted); font-size: 12px; white-space: nowrap; }
@media (max-width: 560px) {
  .notification-item { grid-template-columns: 10px 32px minmax(0, 1fr); }
  .notification-item time { grid-column: 3; }
  .notification-filter { width: 100%; justify-content: stretch; }
  .notification-filter-option { flex: 1; }
}

/* Graphical day timeline above "Moje aktivity" – shape only, no duplicated list. */
.day-timeline { margin: 0 0 22px; padding: 12px 14px 6px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); }
.day-timeline-meta { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; color: var(--muted); font-size: 12.5px; }
.day-timeline-meta b { color: var(--text); }
.day-timeline-track { --timeline-hours: 11; position: relative; height: 30px; border-radius: 6px; background: linear-gradient(90deg, transparent calc(100% - 1px), var(--line) calc(100% - 1px)) 0 0 / calc(100% / var(--timeline-hours)) 100% repeat-x, var(--surface-2); }
.day-timeline-block { position: absolute; top: 4px; bottom: 4px; min-width: 3px; padding: 0; border: 0; border-radius: 4px; cursor: pointer; }
.day-timeline-block:hover, .day-timeline-block:focus-visible { outline: 2px solid var(--text); outline-offset: 1px; z-index: 2; }
.day-timeline-block.is-running { cursor: default; background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .32) 0 5px, transparent 5px 10px) !important; }
.day-timeline-gap { position: absolute; top: 4px; bottom: 4px; min-width: 24px; padding: 0; border: 1.5px dashed var(--amber); border-radius: 4px; display: grid; place-items: center; overflow: hidden; color: var(--amber); background: var(--amber-soft); font: inherit; font-size: 10.5px; font-weight: 800; cursor: pointer; }
.day-timeline-gap:hover, .day-timeline-gap:focus-visible { outline: 2px solid var(--amber); outline-offset: 1px; z-index: 2; }
.day-timeline-now { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; border-radius: 2px; background: var(--red); pointer-events: none; }
.day-timeline-now::after { content: ""; position: absolute; top: -3px; left: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.day-timeline-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 12.5px; }
.day-timeline-ticks { position: relative; height: 16px; margin-top: 3px; color: var(--muted); font-size: 10.5px; font-variant-numeric: tabular-nums; }
.day-timeline-ticks span { position: absolute; transform: translateX(-50%); }
.day-timeline-ticks span:first-child { transform: none; }
.day-timeline-ticks span:last-child { transform: translateX(-100%); }

/* Client limits as gauges. */
.client-limit-month { color: var(--muted); font-weight: 500; }
.client-limit-list { display: grid; }
.client-limit-row { width: 100%; display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr) 170px; gap: 16px; align-items: center; padding: 12px 6px; border: 0; border-top: 1px solid var(--line); border-radius: 0; color: var(--text); background: transparent; font: inherit; text-align: left; cursor: pointer; }
.client-limit-row:hover { background: var(--subtle); }
.client-limit-row:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--accent-line); }
.client-limit-name { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.client-limit-name small { flex-basis: 100%; color: var(--muted); font-size: 12px; }
.limit-pill { padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.limit-pill.ok { color: var(--green); background: var(--green-soft); }
.limit-pill.near { color: var(--amber); background: var(--amber-soft); }
.limit-pill.over { color: var(--red); background: var(--danger-soft); }
.limit-gauge { position: relative; height: 14px; border-radius: 999px; background: var(--surface-2); }
.limit-done, .limit-running { position: absolute; top: 0; bottom: 0; }
.limit-done { left: 0; border-radius: 999px 0 0 999px; }
.limit-running { background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .5) 0 4px, transparent 4px 8px); }
.limit-gauge.ok .limit-done, .limit-gauge.ok .limit-running { background-color: var(--green); }
.limit-gauge.near .limit-done, .limit-gauge.near .limit-running { background-color: var(--amber); }
.limit-gauge.over .limit-done, .limit-gauge.over .limit-running { background-color: var(--red); }
.limit-mark { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--muted); opacity: .45; }
.limit-mark-full { background: var(--text); opacity: .75; }
.client-limit-value { text-align: right; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.client-limit-value b { font-size: 15px; }
.client-limit-legend { display: flex; flex-wrap: wrap; gap: 16px; padding: 10px 6px 2px; color: var(--muted); font-size: 12px; }
.client-limit-legend i { display: inline-block; width: 18px; height: 8px; margin-right: 6px; border-radius: 999px; vertical-align: 0; }
.legend-done { background: var(--muted); }
.legend-running { background: repeating-linear-gradient(135deg, var(--muted) 0 3px, transparent 3px 6px); }
.legend-mark { width: 2px !important; height: 12px !important; border-radius: 0 !important; background: var(--text); vertical-align: -2px !important; }
@media (max-width: 760px) {
  .client-limit-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
  .limit-gauge { grid-column: 1 / -1; grid-row: 2; }
}

/* Closure checklist: problems are buttons that open the filtered report. */
.closure-checklist { display: grid; gap: 4px; margin: 12px 0; padding: 0; list-style: none; font-size: 12.5px; }
.closure-check { width: 100%; display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 8px; border: 0; border-radius: 8px; color: var(--text); background: transparent; font: inherit; text-align: left; }
button.closure-check { cursor: pointer; }
.closure-check.warn { background: var(--amber-soft); }
.closure-check.bad { background: var(--danger-soft); }
button.closure-check:hover, button.closure-check:focus-visible { outline: 1.5px solid currentColor; outline-offset: 0; }
.closure-check-icon { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 800; }
.closure-check.ok { color: var(--muted); }
.closure-check.ok .closure-check-icon { background: var(--green); }
.closure-check.warn .closure-check-icon { background: var(--amber); }
.closure-check.bad .closure-check-icon { background: var(--red); }
.closure-check-go { color: var(--accent); font-size: 12px; font-weight: 650; white-space: nowrap; }

/* Report filtered to one closure problem. */
.report-issue-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 6px 4px 12px; border: 1px solid var(--danger-line); border-radius: 999px; color: var(--red); background: var(--danger-soft); font-size: 12.5px; font-weight: 650; }
.report-issue-chip[hidden] { display: none; }
.report-issue-chip button { width: 22px; height: 22px; border: 0; border-radius: 50%; display: grid; place-items: center; color: var(--red); background: var(--surface); font-size: 15px; line-height: 1; cursor: pointer; }
.issue-note { display: inline-flex; margin-left: 7px; padding: 2px 7px; border-radius: 999px; color: var(--red); background: var(--danger-soft); font-size: 11px; font-weight: 700; vertical-align: middle; }
.entry-group.has-issue { border-left: 3px solid var(--red); }

/* Mobile: no empty account row under the timer. The account button takes the brand
   column of the existing top bar, so the bar keeps its size. */
@media (max-width: 1100px) {
  .app-header, #appScreen.compact-navigation .app-header { position: fixed; z-index: 105; top: 0; left: 0; width: var(--nav-w); height: var(--topbar-current-h); border: 0; background: transparent; pointer-events: none; }
  .app-header .header-inner, #appScreen.compact-navigation .app-header .header-inner { width: 100%; height: 100%; min-height: 0; margin: 0; padding: 0 10px; justify-content: flex-start; }
  .app-header .sidebar-footer, .app-header .nav-group { pointer-events: auto; }
  .sidebar-footer, #appScreen.compact-navigation .sidebar-footer { margin-left: 0; }
  .topbar-brand { visibility: hidden; }
  .account-popover, #appScreen.compact-navigation .account-popover { left: 0; right: auto; }
  .status-dock { top: calc(var(--topbar-current-h) + 12px); }
}
@media (max-width: 560px) {
  .app-header .header-inner, #appScreen.compact-navigation .app-header .header-inner { justify-content: center; padding: 0; }
}

/* Start form validation: the message is a small popup bubble under the field, so the
   top bar never grows. The red outline stays on the field until it is fixed. */
.topbar .timer-field { position: relative; }
.topbar .field-error {
  position: absolute; z-index: 130; top: calc(100% + 8px); left: 0;
  max-width: min(320px, 100%); padding: 7px 11px;
  border: 1px solid var(--danger-line); border-radius: 8px;
  color: var(--red); background: var(--surface); box-shadow: var(--shadow);
  font-size: 12.5px; font-weight: 600; white-space: normal; pointer-events: none;
  animation: field-error-in .14s ease-out;
}
.topbar .field-error::before {
  content: ""; position: absolute; top: -6px; left: 16px; width: 10px; height: 10px;
  border-top: 1px solid var(--danger-line); border-left: 1px solid var(--danger-line);
  background: var(--surface); transform: rotate(45deg);
}
.topbar .field-error[hidden] { display: none; }
/* While the recent-activity menu is open it takes the space under the input. */
.topbar .timer-field:has(#activityInput[aria-expanded="true"]) .field-error { display: none; }
@keyframes field-error-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .topbar .field-error { animation: none; } }
/* Narrow layouts stack the fields, so a bubble below would cover the next field.
   There the message sits inside the right edge of the invalid field instead. */
@media (max-width: 1100px) {
  .topbar .field-error {
    top: 50%; right: 8px; left: auto; max-width: 55%; padding: 3px 8px;
    border-color: transparent; border-radius: 6px; background: var(--error-bg); box-shadow: none;
    font-size: 11.5px; line-height: 1.3; transform: translateY(-50%); animation: none;
  }
  .topbar .field-error::before { display: none; }
}

/* rc4 oprava 1: read-only day overview per user on the dashboard */
.dashboard-online-row .dashboard-timeline { grid-column: 1 / -1; position: relative; height: 10px; margin-top: 2px; border-radius: 5px; background: var(--surface-2); overflow: hidden; }
.dashboard-timeline-block { position: absolute; top: 0; bottom: 0; min-width: 2px; border-radius: 3px; }
.dashboard-timeline-block.is-running { background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .35) 0 4px, transparent 4px 8px) !important; }
.dashboard-timeline-gap { position: absolute; top: 2px; bottom: 2px; border-radius: 3px; background: var(--amber-soft); box-shadow: inset 0 0 0 1px var(--amber); opacity: .7; }
.dashboard-timeline-now { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--red); }

/* rc4 oprava 3: client limits above Aktivity for every role (read-only, collapsible) */
.limit-summary { margin: 0 0 14px; padding: 4px 14px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); }
.limit-summary-head { width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 8px 0; border: 0; color: var(--text); background: transparent; font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; }
.limit-summary-head:focus-visible { outline: 2px solid var(--accent-line); outline-offset: 2px; border-radius: 6px; }
.limit-summary-brief { justify-self: end; color: var(--muted); font-size: 12.5px; }
.limit-summary-chevron { width: 18px; height: 18px; color: var(--muted); transition: transform .15s; }
.limit-summary.is-collapsed .limit-summary-chevron { transform: rotate(-90deg); }
.limit-summary-list .client-limit-row { padding: 9px 0; }
.client-limit-row.is-static { cursor: default; }
.client-limit-row.is-static:hover { background: transparent; }
@media (max-width: 640px) { .limit-summary-head { grid-template-columns: 1fr auto; } .limit-summary-brief { grid-column: 1 / -1; grid-row: 2; justify-self: start; } }

/* rc4 oprava 3: release notes */
#changelogDialog { width: min(640px, calc(100vw - 24px)); }
.changelog-content { display: grid; gap: 14px; max-height: min(70vh, 640px); overflow-y: auto; }
.changelog-entry { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); }
.changelog-entry.is-current { border-color: var(--accent-line); }
.changelog-entry h3 { margin: 0 0 6px; font-size: 15px; }
.changelog-entry h4 { margin: 10px 0 4px; color: var(--muted); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; }
.changelog-entry ul { margin: 0; padding-left: 18px; display: grid; gap: 5px; font-size: 13.5px; line-height: 1.45; }
.changelog-date { margin-left: 6px; color: var(--muted); font-size: 12px; font-weight: 500; }

/* rc4 oprava 4: inactive users last and visibly set apart */
.user-list-divider { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; margin-top: 10px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.user-list-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.user-card.is-inactive { border-style: dashed; background: var(--surface-2); box-shadow: none; }
.user-card.is-inactive .user-card-avatar { filter: grayscale(1); opacity: .55; }
.user-card.is-inactive .user-card-copy { opacity: .62; }
.user-card.is-inactive:hover { border-color: var(--line-strong); box-shadow: none; }
