/* ============================================================================
   TOKENS
   ============================================================================ */
:root {
    --accent: #ffc000;
    --surface: #162530;
    --surface-2: #152430;
    --bg: #0f1a22;
    --border: #203040;
    --text: #eef2f7;
    --muted: #98a3b3;
    --ring: rgba(255, 192, 0, 0.45);
    --radius-lg: 24px;
    --radius-md: 14px;
    --shadow-1: 0 12px 28px rgba(0,0,0,0.45), 0 6px 12px rgba(0,0,0,0.35);
    --shadow-2: 0 20px 44px rgba(0,0,0,0.55), 0 8px 18px rgba(0,0,0,0.45);
    --transition-fast: 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
    --transition-slow: 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ============================================================================
   BASE
   ============================================================================ */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    overflow-y: scroll;
    scrollbar-gutter: stable;
    background-color: var(--bg);
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
    background:
        radial-gradient(ellipse 800px 600px at 80% -5%, rgba(0,180,160,0.35), transparent 60%),
        radial-gradient(ellipse 900px 700px at -5% 110%, rgba(0,180,160,0.38), transparent 55%),
        radial-gradient(ellipse 800px 600px at 50% 120%, rgba(0,160,180,0.32), transparent 60%),
        radial-gradient(ellipse 600px 500px at 110% 90%, rgba(0,180,160,0.22), transparent 55%),
        var(--bg);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 60px;
}

:focus-visible {
    outline: 3px solid var(--ring);
    outline-offset: 2px;
    border-radius: 20px;
}

/* ============================================================================
   LAYOUT
   ============================================================================ */
.page {
    max-width: 900px;
    margin: 0 auto;
    padding: 32px 24px;
}

.page--wide { max-width: 1400px; width: 100%; box-sizing: border-box; }

.card {
    background: color-mix(in srgb, var(--surface) 85%, var(--bg));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-1);
    padding: 28px;
}

/* ============================================================================
   TOPBAR
   ============================================================================ */
.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: color-mix(in oklab, var(--surface) 220%, transparent);
    border-bottom: 1px solid var(--border);
}

.topbar-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar-actions {
    display: flex;
    gap: 10px;
}

.brand-name {
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: 0.2px;
    color: var(--text);
}

.brand-name span {
    color: var(--accent);
}

/* ============================================================================
   FOOTER
   ============================================================================ */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    border-top: 1px solid var(--border);
    background: color-mix(in oklab, var(--surface) 22%, transparent);
    backdrop-filter: blur(10px);
    padding: 18px 24px;
    text-align: center;
}

.footer-copy {
    color: var(--muted);
    font-size: 0.88rem;
}

/* ============================================================================
   BUTTONS
   ============================================================================ */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    font: inherit;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    cursor: pointer;
    text-decoration: none;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-2);
}

.button:active { transform: translateY(0); }

.button.accent {
    color: var(--accent);
    border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
    background: color-mix(in srgb, var(--accent) 8%, var(--surface));
}

.button.accent:hover {
    background: color-mix(in srgb, var(--accent) 14%, var(--surface));
}

.button.danger {
    color: #ef4444;
    border-color: color-mix(in srgb, #ef4444 55%, var(--border));
    background: color-mix(in srgb, #ef4444 8%, var(--surface));
}

.button.danger:hover {
    background: color-mix(in srgb, #ef4444 14%, var(--surface));
}

.button.sm {
    padding: 6px 12px;
    font-size: 0.82rem;
    margin: 10px;
}

select.button {
    background: transparent;
    box-shadow: none;
    border: 2px solid var(--border);
}

/* ============================================================================
   FORMS
   ============================================================================ */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--muted);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px 14px;
    border-radius: var(--radius-md);
    border: 5px solid var(--border);
    background: #162530;
    color: var(--text);
    font: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: color-mix(in srgb, var(--accent) 65%, var(--border));
    box-shadow: 0 0 0 3px var(--ring);
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    transition: background-color 600000s ease-in-out 0s;
    -webkit-text-fill-color: #eef2f7 !important;
    caret-color: #eef2f7;
}

/* ============================================================================
   CHECKBOX
   ============================================================================ */
.checkbox-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    position: relative;
}

.checkbox-row input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-row input[type="checkbox"] + span::before,
.checkbox-row input[type="checkbox"] + label::before {
    content: '○';
    display: inline-block;
    font-weight: bold;
    color: var(--muted);
    margin-right: 8px;
    transition: all var(--transition-fast);
}

.checkbox-row input[type="checkbox"]:checked + span::before,
.checkbox-row input[type="checkbox"]:checked + label::before {
    content: '✓';
    color: var(--accent);
}

/* ============================================================================
   PASSWORD REQUIREMENTS
   ============================================================================ */
.password-requirements {
    margin: 0;
    padding-left: 1.5rem;
    list-style: none;
}

.password-requirements li {
    color: var(--muted);
    font-size: 0.875rem;
    line-height: 1.6;
    transition: color var(--transition-fast);
    position: relative;
    padding-left: 0.5rem;
}

.password-requirements li::before {
    content: '○';
    position: absolute;
    left: -1.25rem;
    font-weight: bold;
    transition: all var(--transition-fast);
}

.password-requirements li.valid {
    color: var(--text);
    font-weight: 600;
}

.password-requirements li.valid::before {
    content: '✓';
    color: var(--accent);
}

/* ============================================================================
   BADGES
   ============================================================================ */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.badge-work     { background: color-mix(in srgb, #60a5fa 15%, var(--surface)); color: #60a5fa; }
.badge-vacation { background: color-mix(in srgb, #10b981 15%, var(--surface)); color: #10b981; }
.badge-sick     { background: color-mix(in srgb, #fb7185 15%, var(--surface)); color: #fb7185; }
.badge-holiday  { background: color-mix(in srgb, #a78bfa 15%, var(--surface)); color: #a78bfa; }
.badge-absent   { background: color-mix(in srgb, #fbbf24 15%, var(--surface)); color: #fbbf24; }
.badge-pending  { background: color-mix(in srgb, #fbbf24 15%, var(--surface)); color: #fbbf24; }
.badge-active   { background: color-mix(in srgb, #10b981 15%, var(--surface)); color: #10b981; }
.badge-banned   { background: color-mix(in srgb, #ef4444 15%, var(--surface)); color: #ef4444; }

/* ============================================================================
   TYPE PILLS
   ============================================================================ */
.type-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pill {
    padding: 5px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--muted);
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.pill:hover { color: var(--text); }
.pill.active-work     { background: color-mix(in srgb, #60a5fa 15%, var(--surface)); color: #60a5fa; border-color: #60a5fa; }
.pill.active-vacation { background: color-mix(in srgb, #10b981 15%, var(--surface)); color: #10b981; border-color: #10b981; }
.pill.active-sick     { background: color-mix(in srgb, #fb7185 15%, var(--surface)); color: #fb7185; border-color: #fb7185; }
.pill.active-holiday  { background: color-mix(in srgb, #a78bfa 15%, var(--surface)); color: #a78bfa; border-color: #a78bfa; }
.pill.active-absent   { background: color-mix(in srgb, #fbbf24 15%, var(--surface)); color: #fbbf24; border-color: #fbbf24; }

/* ============================================================================
   STATS CIRCLES
   ============================================================================ */
.stats-bar-inner {
    max-width: 900px;
    width: 100%;
    margin: 28px auto 0;
    padding: 20px 24px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: color-mix(in srgb, var(--surface) 85%, var(--bg));
    box-shadow: var(--shadow-1);
    min-width: 100px;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.stat:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-2);
}

.stat.success { border-color: color-mix(in srgb, #10b981 55%, var(--border)); }
.stat.danger  { border-color: color-mix(in srgb, #ef4444 55%, var(--border)); }
.stat.info    { border-color: color-mix(in srgb, #60a5fa 55%, var(--border)); }
.stat.amber   { border-color: color-mix(in srgb, #fbbf24 55%, var(--border)); }
.stat.purple  { border-color: color-mix(in srgb, #a78bfa 55%, var(--border)); }
.stat.rose    { border-color: color-mix(in srgb, #fb7185 55%, var(--border)); }

.stat.stat--sm { width: 80px; height: 80px; min-width: 80px; }
.stat.stat--sm .stat-label { font-size: 0.55rem; }
.stat.stat--sm .stat-value { font-size: 0.85rem; }

.stat-value {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text);
    text-align: center;
}

.stat-value.accent { color: var(--accent); }
.stat-value.success { color: #10b981; }
.stat-value.danger  { color: #ef4444; }
.stat-value.info    { color: #60a5fa; }
.stat-value.amber   { color: #fbbf24; }
.stat-value.purple  { color: #a78bfa; }
.stat-value.rose    { color: #fb7185; }

.stat-label {
    font-size: 0.62rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-align: center;
    line-height: 1.2;
    padding: 0 6px;
}

/* ============================================================================
   STAT SPEECH BUBBLE
   ============================================================================ */
.vac-bubble-wrap { position: relative; }

#circle-vac-remaining { cursor: pointer; position: relative; }

.stat-speech-bubble {
    position: absolute;
    bottom: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-2);
    padding: 8px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    color: var(--text);
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
    z-index: 10;
}

.stat-speech-bubble::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--border);
}

.stat-speech-bubble::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--surface);
    z-index: 1;
    margin-top: -1px;
}

.vac-bubble-wrap:hover .stat-speech-bubble {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ============================================================================
   NAV TABS
   ============================================================================ */
.nav-tabs {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    border-bottom: 1px solid var(--border);
}

.tab-btn {
    padding: 12px 18px;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: color var(--transition-fast), border-color var(--transition-fast);
}

.tab-btn:hover { color: var(--text); }

.tab-btn.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* ============================================================================
   LOG VIEW
   ============================================================================ */
.time-row {
    display: grid;
    grid-template-columns: 160px 160px 140px;
    gap: 12px;
}

.live-calc {
    margin-top: 8px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    background: var(--surface-2);
    border: 5px solid var(--border);
    font-size: 0.875rem;
    color: var(--muted);
    display: flex;
    gap: 20px;
}

.live-calc strong { color: var(--text); }
.live-calc .ot-positive { color: #60a5fa; }
.live-calc .ot-negative { color: #ef4444; }

/* ============================================================================
   MONTH / WEEK VIEW
   ============================================================================ */
.month-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.month-title {
    font-weight: 800;
    font-size: 1.1rem;
}

.month-summary {
    display: flex;
    gap: 20px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    flex-wrap: wrap;
    width: 100%;
    margin-bottom: 20px;
    justify-content: center;
}

.month-summary .stat-label { font-size: 0.72rem; }
.month-summary .stat-value { font-size: 0.95rem; }

.day-list { display: flex; flex-direction: column; gap: 4px; }

.day-row {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 8px 24px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.day-row:hover { background: color-mix(in srgb, var(--surface-2) 80%, transparent); }
.day-row.today { border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); }
.day-row.weekend { opacity: 0.45; cursor: default; }
.day-row.weekend:hover { background: transparent; }

.day-date {
    font-size: 0.82rem;
    color: var(--muted);
    min-width: 110px;
}

.day-detail {
    font-size: 0.82rem;
    color: var(--muted);
}

.day-detail .ot { font-weight: 700; }
.day-detail .ot-positive { color: #60a5fa; }
.day-detail .ot-negative { color: #ef4444; }

.day-note {
    margin-left: auto;
    font-size: 0.78rem;
    color: var(--muted);
    font-style: italic;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================================================================
   TABLE
   ============================================================================ */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table thead th {
    padding: 10px 32px;
    text-align: left;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.table tbody td {
    padding: 10px 20px;
    vertical-align: middle;
}

.table tbody tr + tr td {
    border-top: 1px solid var(--border);
}

.table tbody tr:hover td {
    background: color-mix(in srgb, var(--surface-2) 55%, transparent);
}

.col-num {
    text-align: right;
    white-space: nowrap;
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

/* ============================================================================
   AVATAR & USER MENU
   ============================================================================ */
.user-menu { position: relative; }

.user-avatar-btn {
    background: none; border: none; padding: 0; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}

.avatar {
    width: 80px; height: 80px; border-radius: 50%;
    object-fit: cover;
    border: 2px solid color-mix(in srgb, var(--accent) 40%, var(--border));
    box-shadow: var(--shadow-1);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    margin: 10px 20px;
}

.avatar--initials {
    background: var(--accent);
    color: #1b1200;
    font-weight: 800;
    font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
}

.user-avatar-btn:hover .avatar { transform: translateY(-1px); box-shadow: var(--shadow-2); }

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 300px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-2);
    z-index: 3000;
    overflow: hidden;
    padding: 20px;
    background: color-mix(in srgb, var(--surface) 85%, var(--bg));
}

.user-dropdown[hidden] { display: none !important; }
.user-dropdown__header { padding: 14px 16px 10px; }
.user-dropdown__divider { height: 1px; background: var(--border); margin: 4px 0; }
.user-dropdown__item { padding: 8px 16px; }

.user-dropdown__action {
    display: block; width: 100%; text-align: left;
    padding: 9px 16px; background: transparent; border: none;
    color: var(--text); font: inherit; font-size: 0.9rem; font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-fast);
    border-radius: var(--radius-lg);
}

.user-dropdown__action:hover { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.user-dropdown__action--danger { color: #ef4444; }
.user-dropdown__action--danger:hover { background: color-mix(in srgb, #ef4444 10%, var(--surface)); }

/* ============================================================================
   VACATION EDIT POPUP
   ============================================================================ */
.vac-edit-popup {
    display: none; position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: color-mix(in srgb, var(--surface) 85%, var(--bg)); border: 1px solid var(--border);
    border-radius: var(--radius-md); box-shadow: var(--shadow-2);
    padding: 16px; z-index: 200; width: 200px; text-align: center;
}

.vac-edit-popup.show { display: block; }
.vac-edit-popup label { font-size: 0.8rem; color: var(--muted); display: block; margin-bottom: 8px; }

.vac-edit-popup input {
    width: 100%; padding: 8px 12px; border-radius: var(--radius-md);
    border: 1px solid var(--border); background: #121820;
    color: var(--text); font: inherit; font-size: 1rem;
    text-align: center; margin-bottom: 10px; outline: none;
}

.vac-edit-popup input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.vac-edit-popup .popup-actions { display: flex; gap: 8px; }
.vac-edit-popup .popup-actions button { flex: 1; }

/* ============================================================================
   NOTIFICATION BELL
   ============================================================================ */
.notif-wrap {
    position: relative;
    display: inline-block;
}

.button.notif-trigger,
.button.notif-trigger:hover {
    position: relative;
    background: transparent;
    box-shadow: none;
}

.notif-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
    pointer-events: none;
    z-index: 10;
}

.notif-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(380px, 92vw);
    background: color-mix(in srgb, var(--surface) 85%, var(--bg));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-2);
    z-index: 3000;
    overflow: hidden;
}

.notif-panel[hidden] { display: none !important; }

.notif-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 10px;
    border-bottom: 1px solid var(--border);
}

.notif-panel__title {
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--text);
}

.notif-mark-all {
    border: none;
    background: transparent;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: background var(--transition-fast);
}

.notif-mark-all:hover {
    background: color-mix(in srgb, var(--accent) 12%, var(--surface));
}

.notif-list {
    list-style: none;
    margin: 0;
    padding: 8px;
    max-height: 340px;
    overflow-y: auto;
}

.notif-empty {
    padding: 24px 16px;
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
}

.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: background var(--transition-fast);
    background: color-mix(in srgb, var(--surface-2) 60%, transparent);
    margin-bottom: 4px;
}

.notif-item:last-child { margin-bottom: 0; }

.notif-item:hover {
    background: color-mix(in srgb, var(--accent) 10%, var(--surface));
}

.notif-item--read {
    background: transparent;
    opacity: 0.65;
}

.notif-item--read:hover {
    opacity: 1;
    background: color-mix(in srgb, var(--surface-2) 60%, transparent);
}

.notif-item__dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    margin-top: 5px;
    flex: 0 0 auto;
}

.notif-item__dot--info { background: rgba(59,130,246,0.95); }

.notif-item__body { flex: 1 1 auto; min-width: 0; }

.notif-item__msg {
    margin: 0 0 3px;
    font-size: 0.88rem;
    line-height: 1.35;
    color: var(--text);
    word-break: break-word;
}

.notif-item__time {
    font-size: 0.75rem;
    color: var(--muted);
}

/* ============================================================================
   COMMENTS
   ============================================================================ */
.comment-btn {
    margin-left: auto;
    background: none;
    border: none;
    box-shadow: none;
    padding: 4px;
    cursor: pointer;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: color var(--transition-fast);
}
.comment-btn:hover { color: var(--text); }

.comment-icon {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.comment-icon--filled { fill: currentColor; }

.comment-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.comment-wrap:hover .comment-actions { opacity: 1; }

.comment-like-btn,
.comment-more-btn {
    background: none;
    border: none;
    box-shadow: none;
    padding: 4px;
    cursor: pointer;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.comment-like-btn:hover { color: var(--accent); }
.comment-like-btn.liked { color: var(--accent); }
.comment-like-btn.liked-heart { color: #ef4444; }
.comment-more-btn:hover { color: var(--text); }

.comment-more-menu { display: none; gap: 6px; }
.comment-more-menu.open { display: flex; }

.comment-edit-btn {
    color: var(--accent);
    border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
    background: color-mix(in srgb, var(--accent) 8%, var(--surface));
}
.comment-edit-btn:hover {
    background: color-mix(in srgb, var(--accent) 14%, var(--surface));
}

.comment-delete-btn {
    color: #ef4444;
    border-color: color-mix(in srgb, #ef4444 55%, var(--border));
    background: color-mix(in srgb, #ef4444 8%, var(--surface));
}
.comment-delete-btn:hover {
    background: color-mix(in srgb, #ef4444 14%, var(--surface));
}

.comment-action-icon {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ============================================================================
   NAV ARROW
   ============================================================================ */
.nav-arrow-btn {
    background: none;
    border: none;
    box-shadow: none;
    padding: 4px 8px;
    cursor: pointer;
    color: var(--muted);
    font-size: 1rem;
    border-radius: 6px;
    transition: color var(--transition-fast);
}
.nav-arrow-btn:hover { color: var(--text); }

/* ============================================================================
   TOAST
   ============================================================================ */
#toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--surface) 85%, var(--bg));
    border: 1px solid var(--border);
    box-shadow: var(--shadow-2);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity var(--transition-fast), transform var(--transition-fast);
    pointer-events: none;
    z-index: 999;
}

#toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================================
   FLATPICKR
   ============================================================================ */
.flatpickr-calendar {
    background: var(--surface-2) !important;
    border: 2px solid var(--border) !important;
    border-radius: 12px !important;
    box-shadow: var(--shadow-2) !important;
    font-family: inherit !important;
    font-size: 14px !important;
}

.flatpickr-months {
    background: var(--surface) !important;
    border-bottom: 1px solid var(--border) !important;
    border-radius: 12px 12px 0 0 !important;
    padding: 8px 0 !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
}

.flatpickr-month {
    color: var(--text) !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
}

.flatpickr-current-month {
    font-size: 14px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
    background: var(--surface) !important;
    color: var(--text) !important;
    font-size: 14px !important;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    top: 0 !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 10px !important;
}

.flatpickr-months .flatpickr-prev-month svg,
.flatpickr-months .flatpickr-next-month svg {
    fill: var(--text) !important;
}

.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg {
    fill: var(--accent) !important;
}

.flatpickr-weekdays { background: var(--surface-2) !important; }

span.flatpickr-weekday {
    color: var(--muted) !important;
    font-size: 13px !important;
}

.flatpickr-day {
    color: var(--text) !important;
    border-radius: 8px !important;
    font-size: 14px !important;
}

.flatpickr-calendar .dayContainer {
    padding: 15px;
    box-sizing: border-box;
}

.flatpickr-day:hover:not(.flatpickr-disabled) {
    background: var(--accent) !important;
    color: #111827 !important;
    border-color: var(--accent) !important;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: var(--accent) !important;
    color: #111827 !important;
    border-color: var(--accent) !important;
    font-weight: 600 !important;
}

.flatpickr-day.today {
    border: 1px solid var(--accent) !important;
    background: transparent !important;
}

.flatpickr-day.today:hover {
    background: var(--accent) !important;
    color: #111827 !important;
}

.flatpickr-day.disabled,
.flatpickr-day.disabled:hover,
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
    color: color-mix(in srgb, var(--text) 35%, transparent) !important;
    background: transparent !important;
    border-color: transparent !important;
    opacity: 0.4 !important;
    cursor: not-allowed !important;
}

.flatpickr-time {
    background: var(--surface-2) !important;
    border-top: 1px solid var(--border) !important;
}

.flatpickr-time input,
.flatpickr-time .flatpickr-am-pm {
    background: var(--surface-2) !important;
    color: var(--text) !important;
    border-radius: 8px !important;
}

.flatpickr-time input:hover,
.flatpickr-time .flatpickr-am-pm:hover,
.flatpickr-time input:focus,
.flatpickr-time .flatpickr-am-pm:focus {
    background: color-mix(in srgb, var(--accent) 12%, var(--surface)) !important;
}

.numInputWrapper span.arrowUp,
.numInputWrapper span.arrowDown {
    border-color: var(--border) !important;
}

.numInputWrapper span.arrowUp:after  { border-bottom-color: var(--muted) !important; }
.numInputWrapper span.arrowDown:after { border-top-color: var(--muted) !important; }

/* ============================================================================
   TIME PICKER
   ============================================================================ */
.time-picker-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-height: 220px;
    overflow-y: auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-2);
    z-index: 100;
    padding: 6px;
}

.time-picker-option {
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text);
    transition: background var(--transition-fast);
}

.time-picker-option:hover {
    background: color-mix(in srgb, var(--accent) 15%, var(--surface));
    color: var(--accent);
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (max-width: 600px) {
    .topbar-inner, .stats-bar-inner, .nav-tabs, .page { padding-left: 16px; padding-right: 16px; }
    .time-row { grid-template-columns: 1fr 1fr; }
    .time-row .form-group:last-child { grid-column: span 2; }
    .stats-bar-inner { gap: 20px; }
}

/* ============================================================================
   PASSWORD TOGGLE
   ============================================================================ */
.password-field { position: relative; }
.password-field input { padding-right: 2.75rem; width: 100%; }
.password-toggle {
    position: absolute;
    right: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    box-shadow: none;
    cursor: pointer;
    padding: 4px;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.password-toggle:hover { color: var(--accent); }
.password-toggle svg { width: 1.1rem; height: 1.1rem; display: block; }
.password-toggle .icon-eye-off { display: none; }
.password-toggle.showing .icon-eye { display: none; }
.password-toggle.showing .icon-eye-off { display: block; }