/* ============================================================
   NASSTENKA - Stylesheet v2
   ============================================================ */

/* ---- Variables ---- */
:root, [data-theme="light"] {
    --bg-primary: #f5f6fa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #eef0f6;
    --bg-card: #ffffff;
    --bg-hover: #f0f2f8;
    --bg-input: #f5f6fa;
    --bg-modal-overlay: rgba(15, 15, 35, 0.5);
    --text-primary: #1a1b2e;
    --text-secondary: #5a5d7a;
    --text-tertiary: #8b8ea8;
    --accent: #4f46e5;
    --accent-light: #e8e6fc;
    --accent-hover: #4338ca;
    --accent-glow: rgba(79, 70, 229, 0.15);
    --success: #10b981;
    --success-light: #d1fae5;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --border: #e2e4ee;
    --border-light: #eff0f6;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
    --shadow-card: 0 2px 8px rgba(0,0,0,0.05);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --topbar-height: 56px;
    --bottomnav-height: 64px;
    --confirmed-bg: rgba(16, 185, 129, 0.06);
    --confirmed-border: rgba(16, 185, 129, 0.2);
    --pinned-bg: rgba(79, 70, 229, 0.04);
    --pinned-border: rgba(79, 70, 229, 0.15);
}

[data-theme="dark"] {
    --bg-primary: #0f0f1a;
    --bg-secondary: #1a1a2e;
    --bg-tertiary: #22223a;
    --bg-card: #1e1e34;
    --bg-hover: #2a2a44;
    --bg-input: #22223a;
    --bg-modal-overlay: rgba(0, 0, 0, 0.7);
    --text-primary: #ecedf5;
    --text-secondary: #9a9cb8;
    --text-tertiary: #6a6c88;
    --accent: #7c73fa;
    --accent-light: #2a2650;
    --accent-hover: #6d63f0;
    --accent-glow: rgba(124, 115, 250, 0.2);
    --success: #34d399;
    --success-light: #1a3a2e;
    --warning: #fbbf24;
    --warning-light: #3a351a;
    --danger: #f87171;
    --danger-light: #3a1a1a;
    --border: #2e2e48;
    --border-light: #252540;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.3);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.4);
    --shadow-card: 0 2px 8px rgba(0,0,0,0.2);
    --confirmed-bg: rgba(52, 211, 153, 0.06);
    --confirmed-border: rgba(52, 211, 153, 0.15);
    --pinned-bg: rgba(124, 115, 250, 0.06);
    --pinned-border: rgba(124, 115, 250, 0.15);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100dvh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
input, select, textarea, button { font-family: inherit; font-size: inherit; }

/* ---- Screens ---- */
.screen { display: none; }
.screen.active { display: block; }

/* ============================================================
   LOGIN SCREEN - Card Grid
   ============================================================ */
#login-screen {
    min-height: 100dvh;
    background: linear-gradient(145deg, var(--bg-primary) 0%, var(--bg-tertiary) 100%);
    padding: 24px 16px;
}

.login-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.login-header {
    text-align: center;
    padding: 32px 0 28px;
}

.login-icon { font-size: 42px; margin-bottom: 8px; }

.login-header h1 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.login-header p {
    color: var(--text-tertiary);
    font-size: 14px;
    margin-top: 4px;
}

.login-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
}

.login-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-card);
}

.login-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.login-card:active { transform: scale(0.97); }

.login-card-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    margin: 0 auto 10px;
}

.login-card.is-leader .login-card-avatar {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
}

.login-card-name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

.login-card-star {
    color: #f59e0b;
    font-size: 12px;
    margin-left: 2px;
}

/* ---- PIN Modal ---- */
.modal-pin { max-width: 380px; }

.pin-user-display {
    padding: 12px;
    background: var(--accent-light);
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    font-weight: 700;
    font-size: 16px;
    color: var(--accent);
}

.pin-boxes {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.pin-box {
    width: 52px;
    height: 60px;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-input);
    color: var(--text-primary);
    outline: none;
    transition: all 0.2s ease;
    caret-color: transparent;
}

.pin-box:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
    transform: scale(1.05);
}

.pin-box.filled { border-color: var(--accent); background: var(--accent-light); }

.pin-box.error {
    border-color: var(--danger);
    animation: shake 0.4s ease;
}

.login-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 16px; }

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group textarea,
.form-group select,
.filter-select {
    width: 100%;
    padding: 11px 14px;
    background: var(--bg-input);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.2s;
    outline: none;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus, .filter-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: flex; gap: 14px; align-items: flex-end; }
.form-row .form-group { flex: 1; }

.form-error {
    background: var(--danger-light);
    color: var(--danger);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    margin-top: 12px;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-size: 14px !important;
    padding-top: 8px;
}

.checkbox-label input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline { background: transparent; border: 2px solid var(--border); color: var(--text-primary); }
.btn-outline:hover { background: var(--bg-hover); }
.btn-accent { background: var(--accent); color: white; }
.btn-accent:hover { background: var(--accent-hover); }
.btn-success { background: var(--success); color: white; }
.btn-danger { background: transparent; color: var(--danger); border: 1px solid var(--danger); }
.btn-sm { padding: 7px 12px; font-size: 12px; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--text-secondary); padding: 6px 10px; border: none; cursor: pointer; border-radius: var(--radius-sm); transition: all 0.15s; }
.btn-ghost:hover { background: var(--bg-hover); color: var(--text-primary); }

.btn-confirmed {
    background: var(--success-light) !important;
    color: var(--success) !important;
    border: 1px solid var(--success) !important;
    pointer-events: none;
    opacity: 0.85;
}

.btn-loader {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: var(--bg-hover);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.icon-btn:hover { background: var(--border); }
.icon-btn svg { flex-shrink: 0; }

/* ---- Card action buttons (clean, no box) ---- */
.act-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    color: var(--text-tertiary);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.15s;
}
.act-btn:hover { background: var(--bg-hover); color: var(--text-primary); }
.act-btn:active { transform: scale(0.9); }
.act-btn svg { width: 16px; height: 16px; }

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--topbar-height);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 100;
}

.topbar-title { font-size: 18px; font-weight: 800; letter-spacing: -0.3px; }
.topbar-right { display: flex; align-items: center; gap: 6px; }

.user-menu { position: relative; }
.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 16px;
    min-width: 200px;
    z-index: 200;
    animation: fadeIn 0.15s ease;
}
.user-dropdown-name { font-weight: 700; font-size: 15px; margin-bottom: 2px; }
.user-dropdown-role { font-size: 12px; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.5px; }
.user-dropdown hr { border: none; border-top: 1px solid var(--border); margin: 12px 0; }
.dropdown-item {
    display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 12px;
    background: none; border: none; border-radius: var(--radius-sm); color: var(--text-primary); font-size: 14px; cursor: pointer; transition: background 0.15s;
}
.dropdown-item:hover { background: var(--bg-hover); }

/* ============================================================
   SEARCH BAR
   ============================================================ */
.search-bar {
    position: fixed;
    top: var(--topbar-height);
    left: 0; right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 8px 16px;
    z-index: 99;
    animation: slideDown 0.2s ease;
}

.search-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-input);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0 12px;
    transition: border-color 0.2s;
}

.search-inner:focus-within { border-color: var(--accent); }

.search-inner svg { color: var(--text-tertiary); flex-shrink: 0; }

.search-inner input {
    flex: 1;
    border: none;
    background: none;
    padding: 10px 0;
    color: var(--text-primary);
    outline: none;
    font-size: 14px;
}

.search-clear {
    border: none;
    background: none;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    display: flex;
}
.search-clear:hover { background: var(--bg-hover); }

/* ---- Search highlight ---- */
mark.search-hl {
    background: #fde68a;
    color: #92400e;
    padding: 1px 3px;
    border-radius: 3px;
}
[data-theme="dark"] mark.search-hl {
    background: #854d0e;
    color: #fef3c7;
}

/* ============================================================
   CONTENT
   ============================================================ */
.content {
    margin-top: var(--topbar-height);
    padding-bottom: calc(var(--bottomnav-height) + 20px);
    min-height: calc(100dvh - var(--topbar-height));
}

.content.search-open { margin-top: calc(var(--topbar-height) + 52px); }

.page { display: none; padding: 0 12px; }
.page.active { display: block; }

/* ============================================================
   SECTION CHIPS
   ============================================================ */
.section-chips-wrap {
    padding: 12px 0 8px;
    overflow: hidden;
}

.section-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.section-chips::-webkit-scrollbar { display: none; }

.chip {
    flex-shrink: 0;
    padding: 8px 16px;
    border-radius: 50px;
    border: 1.5px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* ---- Sub filter row ---- */
.sub-filter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0 12px;
    gap: 8px;
}

.priority-chips {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
}
.priority-chips::-webkit-scrollbar { display: none; }

.chip-sm {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 11px;
    border-radius: 50px;
    border: 1.5px solid var(--border);
    background: var(--bg-card);
    color: var(--text-tertiary);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.chip-sm:hover { border-color: var(--text-tertiary); }
.chip-sm.active { background: var(--bg-tertiary); color: var(--text-primary); border-color: var(--text-tertiary); }

.dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.dot-red { background: var(--danger); }
.dot-yellow { background: var(--warning); }
.dot-green { background: var(--success); }

/* ============================================================
   ANNOUNCEMENT CARDS
   ============================================================ */
.announcements-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.announcement-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all 0.2s;
    scroll-margin-top: calc(var(--topbar-height) + 60px);
}

.announcement-card.pinned { background: var(--pinned-bg); border-color: var(--pinned-border); }
.announcement-card.confirmed-card { background: var(--confirmed-bg); border-color: var(--confirmed-border); }
.announcement-card.priority-high { border-left: 4px solid var(--danger); }
.announcement-card.priority-important { border-left: 4px solid var(--warning); }
.announcement-card.priority-low { border-left: 4px solid var(--success); }

.card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 14px 16px 0;
    gap: 8px;
}

.card-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.card-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
}

.card-priority-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.priority-high-badge { background: var(--danger-light); color: var(--danger); }
.priority-important-badge { background: var(--warning-light); color: var(--warning); }
.priority-low-badge { background: var(--success-light); color: var(--success); }
.card-pinned-badge { font-size: 13px; animation: pulse 2s infinite; }

.card-actions { display: flex; gap: 2px; }

.card-title {
    font-size: 17px;
    font-weight: 700;
    padding: 8px 16px 0;
    letter-spacing: -0.2px;
    line-height: 1.3;
}

.card-date-line {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 16px;
    font-size: 12px;
    color: var(--text-tertiary);
    flex-wrap: wrap;
}

.card-date-line .author { font-weight: 600; color: var(--text-secondary); }
.card-date-line .date-full { font-variant-numeric: tabular-nums; }

.card-content {
    padding: 6px 16px 0;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
    #white-space: pre-line;
    #word-break: break-word;
}

/* Photos */
.card-photos { padding: 10px 16px 0; }
.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 6px;
}
.photo-thumb {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    border: 1px solid var(--border);
}
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.2s; }
.photo-thumb:hover img { transform: scale(1.05); }
.photo-desc {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 3px 6px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    font-size: 10px;
}

/* Card footer */
.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    margin-top: 10px;
    border-top: 1px solid var(--border-light);
    gap: 8px;
    flex-wrap: wrap;
}

.card-stats {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: background 0.15s;
}
.card-stats:hover { background: var(--bg-hover); }

.stats-bar { width: 50px; height: 4px; background: var(--bg-tertiary); border-radius: 3px; overflow: hidden; }
.stats-bar-fill { height: 100%; background: var(--accent); border-radius: 3px; transition: width 0.4s; }

.card-footer-actions { display: flex; align-items: center; gap: 2px; }

/* ============================================================
   LOAD MORE
   ============================================================ */
.load-more-wrap { padding: 20px 0; text-align: center; }

/* ============================================================
   COLLEAGUES
   ============================================================ */
.colleagues-section-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 16px 0 10px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 12px;
}

.colleagues-grid-inner {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.colleague-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--shadow-card);
    position: relative;
}
.colleague-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.colleague-card.all-read { border-color: var(--success); background: var(--confirmed-bg); }

.colleague-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center; justify-content: center;
    font-size: 17px; font-weight: 700;
    margin: 0 auto 8px;
}

.colleague-name { font-size: 13px; font-weight: 600; margin-bottom: 4px; line-height: 1.3; }

.colleague-status {
    font-size: 11px;
    display: flex; align-items: center; justify-content: center; gap: 4px;
}
.colleague-status.status-complete { color: var(--success); font-weight: 600; }
.colleague-status.status-pending { color: var(--warning); font-weight: 500; }

.colleague-role-badge {
    position: absolute;
    top: 6px; right: 6px;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    background: var(--accent-light);
    color: var(--accent);
    font-weight: 600;
}

/* ============================================================
   MODALS
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-modal-overlay);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: fadeIn 0.2s ease;
    overflow-y: auto;
}

.modal {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--bg-card);
    z-index: 10;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.modal-header h3 { font-size: 17px; font-weight: 700; }

.modal-close {
    width: 34px; height: 34px;
    border-radius: 50%;
    border: none;
    background: var(--bg-hover);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.15s;
}
.modal-close:hover { background: var(--danger-light); color: var(--danger); }

.modal-body { padding: 20px; }
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid var(--border);
}

/* Conf list */
.conf-section-title {
    font-size: 12px; font-weight: 700; color: var(--text-tertiary); text-transform: uppercase;
    letter-spacing: 0.5px; margin-bottom: 8px; display: flex; align-items: center; gap: 6px;
}
.conf-list { list-style: none; margin-bottom: 16px; }
.conf-list li {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 10px; border-radius: var(--radius-sm); border: 1px solid var(--border-light);
    margin-bottom: 5px; font-size: 13px;
}
.conf-list li .conf-name { font-weight: 600; }
.conf-list li .conf-time { font-size: 11px; color: var(--text-tertiary); }

/* Unread list */
.unread-list { list-style: none; }
.unread-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px; border-radius: var(--radius-sm); border: 1px solid var(--border-light);
    margin-bottom: 6px; cursor: pointer; transition: all 0.15s;
}
.unread-item:hover { background: var(--bg-hover); border-color: var(--accent); }
.unread-item .unread-icon { font-size: 18px; flex-shrink: 0; }
.unread-item .unread-info { flex: 1; min-width: 0; }
.unread-item .unread-title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.unread-item .unread-meta { font-size: 11px; color: var(--text-tertiary); }
.unread-item .unread-priority { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }

/* Photos manage */
.photos-manage-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.photo-manage-item { position: relative; width: 72px; height: 72px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); }
.photo-manage-item img { width: 100%; height: 100%; object-fit: cover; }
.photo-manage-remove {
    position: absolute; top: 2px; right: 2px;
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--danger); color: white; border: none;
    font-size: 13px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}

/* ============================================================
   BOTTOM NAV
   ============================================================ */
.bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: var(--bottomnav-height);
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: stretch;
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border: none;
    background: none;
    color: var(--text-tertiary);
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}
.nav-item svg { transition: transform 0.2s; }
.nav-item.active { color: var(--accent); }
.nav-item.active svg { transform: scale(1.1); }
.nav-item.active::before {
    content: '';
    position: absolute;
    top: 0; left: 25%; right: 25%;
    height: 3px;
    background: var(--accent);
    border-radius: 0 0 3px 3px;
}

/* ============================================================
   SCROLL TO TOP
   ============================================================ */
.scroll-top-btn {
    position: fixed;
    bottom: calc(var(--bottomnav-height) + 16px);
    right: 16px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: var(--accent);
    color: white;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 90;
    transition: all 0.3s;
    opacity: 0;
    transform: translateY(10px);
}
.scroll-top-btn.visible { opacity: 1; transform: translateY(0); }
.scroll-top-btn:hover { background: var(--accent-hover); transform: translateY(-2px); }

/* ============================================================
   TOAST & COPIED TOOLTIP
   ============================================================ */
.toast-container {
    position: fixed;
    top: calc(var(--topbar-height) + 10px);
    right: 16px;
    z-index: 1000;
    display: flex; flex-direction: column; gap: 8px;
    pointer-events: none;
}

.toast {
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    box-shadow: var(--shadow-md);
    animation: slideInRight 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
    pointer-events: auto;
    max-width: 300px;
}
.toast-success { background: var(--success); color: white; }
.toast-error { background: var(--danger); color: white; }
.toast-info { background: var(--accent); color: white; }

.copied-tooltip {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--text-primary);
    color: var(--bg-primary);
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    z-index: 2000;
    animation: fadeIn 0.15s ease, fadeOut 0.3s ease 1s forwards;
    pointer-events: none;
}

/* ============================================================
   LOADING & EMPTY
   ============================================================ */
.loading-placeholder { text-align: center; padding: 40px 20px; color: var(--text-tertiary); font-size: 14px; }
.empty-state { text-align: center; padding: 50px 20px; color: var(--text-tertiary); }
.empty-state-icon { font-size: 42px; margin-bottom: 10px; opacity: 0.5; }
.empty-state-text { font-size: 14px; font-weight: 500; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeOut { to { opacity: 0; transform: translateY(-10px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.fade-in { animation: fadeInUp 0.3s ease forwards; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 768px) {
    .content { max-width: 800px; margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }
    .page { padding: 0; }
    .topbar { padding: 0 24px; }
    .bottom-nav { max-width: 380px; left: 50%; transform: translateX(-50%); border-radius: var(--radius-lg) var(--radius-lg) 0 0; border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
    .login-cards { grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); }
    .photos-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}

/* ============================================================
   PRINT - Only the targeted announcement
   ============================================================ */
@media print {
    body { background: white !important; color: black !important; font-size: 12pt; }
    .topbar, .bottom-nav, .search-bar, .section-chips-wrap, .sub-filter-row,
    .card-footer, .card-actions, .modal-overlay, .toast-container, .scroll-top-btn,
    .load-more-wrap, .card-photos, #page-colleagues, .copied-tooltip { display: none !important; }
    .screen, .page { display: block !important; }
    .content { margin: 0 !important; padding: 0 !important; }
    .announcement-card { border: 1px solid #ccc !important; break-inside: avoid; margin-bottom: 12px; box-shadow: none !important; background: white !important; }
    .announcement-card.print-hide { display: none !important; }
    .card-content { color: black !important; }
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::selection { background: var(--accent); color: white; }
.fancybox__container { z-index: 9999 !important; }
