/* ===== DESIGN TOKENS ===== */
:root {
    --primary: #3e1f0d;
    --primary-light: #5c3a1e;
    --accent: #8b5a2b;
    --accent-glow: #b8860b;
    --surface: #ffffff;
    --bg: #f5e6c8;
    --bg-card: #c4a476;
    --text: #3e1f0d;
    --text-muted: #6b4c30;
    --border: rgba(62,31,13,0.2);
    --glass: rgba(62,31,13,0.15);
    --glass-border: rgba(62,31,13,0.25);
    --radius: 12px;
    --shadow: 0 4px 24px rgba(0,0,0,0.4);
    --font: 'Inter', -apple-system, system-ui, sans-serif;
}

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

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

/* ===== LANDING PAGE ===== */
.landing-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 2rem;
}
.landing-bg {
    position: fixed; inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(139,90,43,0.1) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(184,134,11,0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(92,58,30,0.1) 0%, transparent 50%);
    z-index: 0;
    animation: bgPulse 8s ease-in-out infinite alternate;
}
@keyframes bgPulse { 0%{opacity:.8} 100%{opacity:1} }

.landing-content { position: relative; z-index: 1; width: 100%; max-width: 800px; animation: fadeUp .8s ease-out; }
@keyframes fadeUp { from{opacity:0;transform:translateY(30px)} to{opacity:1;transform:translateY(0)} }

.logo-area { text-align: center; margin-bottom: 2.5rem; }
.logo-icon { width: 72px; height: 72px; margin: 0 auto 1.2rem; color: var(--accent-glow); animation: float 3s ease-in-out infinite; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
.logo-area h1 {
    font-size: 1.8rem; font-weight: 800; letter-spacing: -0.02em;
    color: #3e1f0d;
}
.subtitle { font-size: 1rem; color: var(--text-muted); font-weight: 400; margin-top: 0.3rem; }

.staff-form {
    background: var(--glass); backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border); border-radius: 16px;
    padding: 2rem; box-shadow: var(--shadow);
}
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: .4rem; }
.form-group input { width: 100%; padding: .75rem 1rem; background: rgba(255,255,255,0.06); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-family: var(--font); font-size: .95rem; transition: border-color .2s, box-shadow .2s; }
.form-group input:focus { outline: none; border-color: var(--accent-glow); box-shadow: 0 0 0 3px rgba(66,153,225,0.2); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.btn-generate {
    width: 100%; margin-top: .8rem; padding: .9rem 1.5rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-glow));
    color: #fff; border: none; border-radius: 10px; font-family: var(--font);
    font-size: 1rem; font-weight: 600; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    transition: transform .15s, box-shadow .2s;
}
.btn-generate svg { width: 20px; height: 20px; transition: transform .2s; }
.btn-generate:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(139,90,43,.35); }
.btn-generate:hover svg { transform: translateX(4px); }
.btn-generate:active { transform: translateY(0); }

/* ===== GPT LINK BUTTONS ===== */
.gpt-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 120px;
    height: 60px;
    padding: .5rem;
    background: var(--accent);
    color: #fff;
    font-family: var(--font);
    font-size: .78rem;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: all .2s;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.gpt-link-btn:hover {
    background: var(--accent-glow);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(139,90,43,.3);
}

/* ===== MENU GRID ===== */
.menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.menu-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .8rem;
    padding: 1.5rem 1rem;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text);
    font-family: var(--font);
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    text-align: center;
}
.menu-btn svg {
    width: 32px;
    height: 32px;
    color: var(--accent-glow);
}
.menu-btn:hover {
    background: rgba(139,90,43,0.15);
    border-color: var(--accent-glow);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(139,90,43,.2);
}

/* ===== BACK TOP BUTTON ===== */
.btn-back-top {
    background: transparent;
    border: none;
    color: var(--accent-glow);
    font-family: var(--font);
    font-size: .85rem;
    font-weight: 500;
    cursor: pointer;
    padding: .4rem 0;
    margin-bottom: .5rem;
    transition: color .2s;
    display: block;
}
.btn-back-top:hover {
    color: #fff;
}

/* ===== PASTE BOX ===== */
.paste-box { margin-bottom: 0; }

/* ===== DIVIDER ===== */
.divider-or {
    text-align: center;
    margin: 1.2rem 0;
    position: relative;
}
.divider-or span {
    background: transparent;
    color: var(--text-muted);
    font-size: .8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}
.divider-or::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
}

/* ===== BACK BUTTON ===== */
.btn-back {
    width: 100%;
    margin-top: .5rem;
    padding: .7rem 1rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    font-family: var(--font);
    font-size: .85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s;
}
.btn-back:hover {
    border-color: var(--accent-glow);
    color: var(--text);
}

/* ===== TEXTAREA ===== */
.form-group textarea {
    width: 100%;
    padding: .75rem 1rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-family: var(--font);
    font-size: .9rem;
    line-height: 1.5;
    resize: vertical;
    transition: border-color .2s, box-shadow .2s;
}
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-glow);
    box-shadow: 0 0 0 3px rgba(66,153,225,0.2);
}

/* ===== PASTE OUTPUT SECTIONS ===== */
.paste-section {
    background: var(--surface);
    color: #1a1a1a;
    padding: 2rem 2.5rem;
    margin-bottom: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    line-height: 1.6;
    font-size: .92rem;
    animation: fadeUp .5s ease-out both;
}
.paste-section-header {
    font-size: 1.15rem;
    font-weight: 700;
    color: #6b21a8;
    margin-bottom: .8rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid #9333ea;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.paste-section p {
    margin-bottom: .6rem;
}
.paste-doc-title {
    background: var(--surface);
    color: #6b21a8;
    padding: 2rem 2.5rem;
    margin-bottom: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    animation: fadeUp .5s ease-out both;
}
.paste-doc-title h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #6b21a8;
    margin-bottom: .3rem;
}
.paste-doc-title p {
    font-size: 1rem;
    color: #7c3aed;
}

.hidden { display: none !important; }

@media (max-width: 600px) {
    .menu-grid { grid-template-columns: 1fr; }
}

/* ===== TOOLBAR ===== */
.toolbar { position: fixed; top: 1.2rem; right: 1.5rem; display: flex; gap: .6rem; z-index: 100; animation: fadeUp .6s ease-out .3s both; }
.toolbar-btn { display: flex; align-items: center; gap: .4rem; padding: .6rem 1.1rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-family: var(--font); font-size: .85rem; font-weight: 500; cursor: pointer; transition: all .2s; }
.toolbar-btn svg { width: 18px; height: 18px; }
.toolbar-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ===== BOOKLET PAGES (SCREEN) ===== */
.booklet { padding: 2rem; max-width: 900px; margin: 0 auto; }

.page {
    background: var(--surface); color: #1a1a1a;
    padding: 2.5rem 2.8rem; margin-bottom: 2rem;
    border-radius: var(--radius); box-shadow: var(--shadow);
    animation: fadeUp .5s ease-out both;
    line-height: 1.55; font-size: .92rem;
}

/* ─── Cover ─── */
.cover-page {
    display: flex; align-items: center; justify-content: center;
    min-height: 500px;
    background: linear-gradient(165deg, #1a365d 0%, #2a4a7f 50%, #2b6cb0 100%);
    color: #fff;
}
.cover-border { border: 2px solid rgba(255,255,255,.3); border-radius: 8px; padding: 3rem; text-align: center; width: 100%; }
.cover-title { font-size: 2rem; font-weight: 800; margin-bottom: .5rem; }
.cover-subtitle { font-size: 1.35rem; font-weight: 600; margin-bottom: .3rem; }
.cover-section { font-size: 1.05rem; font-weight: 400; opacity: .85; margin-bottom: 2.5rem; }
.cover-fields { text-align: left; max-width: 400px; margin: 0 auto; }
.cover-fields .field-line { padding: .5rem 0; border-bottom: 1px solid rgba(255,255,255,.2); color: #fff; }

/* ─── Page common ─── */
.page-title { font-size: 1.3rem; font-weight: 700; color: var(--primary); margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 2px solid var(--accent); }
.page h3 { font-size: 1.05rem; font-weight: 700; color: var(--primary); margin: 1.2rem 0 .5rem; }
.page p { margin-bottom: .7rem; }

.field-line { padding: .4rem 0; font-size: .95rem; }
.fl { font-weight: 600; }
.fv { border-bottom: 1px solid #999; min-width: 200px; display: inline-block; padding-bottom: 2px; }

.toc-list { list-style-position: inside; margin: 1.5rem 0; }
.toc-list li { padding: .6rem 0; font-weight: 600; font-size: 1rem; color: var(--primary); border-bottom: 1px solid #e2e8f0; }

.bullet-list { margin: .5rem 0 1rem 1.5rem; }
.bullet-list li { margin-bottom: .3rem; }

.sig-line { margin: .8rem 0; font-size: .9rem; }
.note-text { font-style: italic; font-size: .85rem; color: #555; }
.mentor-init { font-size: .85rem; font-weight: 600; color: var(--accent); margin-bottom: .3rem; }

.section-header {
    background: var(--primary); color: #fff;
    padding: .7rem 1rem; font-weight: 700; font-size: 1.05rem;
    border-radius: 4px; margin-bottom: .8rem;
}

/* ===== COMPETENCY RATING TABLE ===== */
.competency-table { width: 100%; border-collapse: collapse; margin: .8rem 0 1.2rem; font-size: .85rem; }
.competency-table th, .competency-table td { border: 1px solid #cbd5e0; padding: .5rem .6rem; text-align: left; vertical-align: top; }
.competency-table th { background: var(--primary); color: #fff; font-weight: 600; }
.level-num { font-weight: 700; text-align: center; width: 50px; }

/* ===== CHECKLIST TABLE (Section 1) ===== */
.checklist-table { width: 100%; border-collapse: collapse; margin: .4rem 0 1rem; font-size: .85rem; }
.checklist-table th, .checklist-table td { border: 1px solid #cbd5e0; padding: .45rem .6rem; text-align: left; vertical-align: top; }
.checklist-table th { background: var(--primary); color: #fff; font-weight: 600; }
.checklist-table td:nth-child(2), .checklist-table td:nth-child(3), .checklist-table td:nth-child(4) { width: 55px; text-align: center; }
.checklist-table tbody tr:nth-child(even) { background: #f7fafc; }

/* ===== OCCASION TABLE (Sections 2-5) ===== */
.occasion-table {
    width: 100%; border-collapse: collapse;
    margin: .5rem 0 .8rem; font-size: .84rem;
}
.occasion-table td {
    border: 1px solid #cbd5e0;
    padding: .3rem .5rem;
    text-align: center;
    vertical-align: top;
    height: 24px;
}
.occasion-table .occ-header {
    background: var(--primary); color: #fff;
    font-weight: 600; text-align: center;
    font-size: .8rem; letter-spacing: .04em;
}
.occasion-table .occ-label {
    text-align: left; font-weight: 500; font-size: .8rem;
}
.occasion-table .occ-desc {
    text-align: left; font-weight: 500;
    line-height: 1.4;
}
.occasion-table td:nth-child(2),
.occasion-table td:nth-child(3),
.occasion-table td:nth-child(4) { width: 35px; }
.occasion-table td:nth-child(5) { width: 70px; font-size: .8rem; }

/* ===== RATING TABLE (Fluid/Specimen) ===== */
.rating-block { margin-bottom: .7rem; }
.rating-desc { font-weight: 500; font-size: .88rem; margin-bottom: .2rem; padding-left: .2rem; }
.rating-table {
    width: 100%; border-collapse: collapse; font-size: .84rem;
}
.rating-table td {
    border: 1px solid #cbd5e0;
    padding: .3rem .5rem;
    text-align: center;
    height: 24px;
}
.rating-table td:nth-child(1),
.rating-table td:nth-child(2),
.rating-table td:nth-child(3) { width: 50px; }
.rating-table td:nth-child(4) { width: 70px; font-size: .8rem; }
.rating-table tr:first-child td { background: #f0f4f8; font-weight: 600; }

/* ===== DOMAIN TABLE ===== */
.domain-table { width: 100%; border-collapse: collapse; margin: .4rem 0 1rem; font-size: .85rem; }
.domain-table td, .domain-table th { border: 1px solid #cbd5e0; padding: .45rem .6rem; text-align: left; vertical-align: top; }
.domain-header td { background: var(--primary); color: #fff; font-weight: 600; }
.domain-sub-header td { background: #e2e8f0; font-weight: 600; text-align: center; font-size: .82rem; }
.domain-table td:nth-child(3), .domain-table td:nth-child(4) { text-align: center; width: 100px; }

/* ===== SPECIMEN LOG ===== */
.specimen-log { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .85rem; }
.specimen-log th, .specimen-log td { border: 1px solid #cbd5e0; padding: .45rem .6rem; text-align: left; }
.specimen-log th { background: var(--primary); color: #fff; font-weight: 600; }
.specimen-log td { height: 30px; }
.specimen-log td:first-child { width: 100px; }

/* ===== AGREEMENT & REFLECTION ===== */
.agreement-box, .reflection-box {
    border: 1px solid #cbd5e0; border-radius: 6px;
    padding: 1rem; margin: .8rem 0;
}
.agreement-box.tall { min-height: 300px; }
.comment-lines {
    height: 80px;
    background: repeating-linear-gradient(to bottom, transparent 0, transparent 23px, #e2e8f0 23px, #e2e8f0 24px);
    margin: .3rem 0;
}
.comment-lines.tall { height: 140px; }
.write-space { height: 30px; border-bottom: 1px solid #e2e8f0; margin-bottom: .5rem; }
.write-space-lg { height: 80px; border-bottom: 1px solid #e2e8f0; margin-bottom: .5rem; }

/* ===== PRINT ===== */
@media print {
    @page { size: A4; margin: 15mm; }
    body { background: #fff; color: #000; }
    .no-print { display: none !important; }
    .booklet { padding: 0; max-width: none; }
    .page {
        background: #fff; box-shadow: none; border-radius: 0;
        padding: 0; margin: 0; page-break-after: always; animation: none;
    }
    .page:last-child { page-break-after: auto; }
    .cover-page { background: #fff !important; color: var(--primary) !important; border: 3px solid var(--primary); }
    .cover-page .cover-border { border-color: var(--primary); }
    .cover-fields .field-line { color: var(--primary) !important; border-bottom-color: var(--primary); }
    .section-header, .occasion-table .occ-header, .competency-table th,
    .checklist-table th, .domain-header td, .specimen-log th,
    .rating-table tr:first-child td {
        -webkit-print-color-adjust: exact; print-color-adjust: exact;
    }
    .section-header { background: var(--primary) !important; color: #fff !important; }
    .occasion-table .occ-header { background: var(--primary) !important; color: #fff !important; }
    .competency-table th, .checklist-table th, .domain-header td, .specimen-log th {
        background: var(--primary) !important; color: #fff !important;
    }
    .checklist-table tbody tr:nth-child(even) { background: #f0f0f0 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .domain-sub-header td { background: #e2e8f0 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .rating-table tr:first-child td { background: #f0f4f8 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ===== SUPERVISION FORM OUTPUT ===== */
.sup-form-output { font-size: .92rem; }
.sup-table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.sup-td-label { font-weight: 600; color: #1a365d; padding: .5rem .6rem; border: 1px solid #cbd5e0; width: 200px; font-size: .88rem; background: #f7fafc; }
.sup-td-value { padding: .5rem .6rem; border: 1px solid #cbd5e0; font-size: .88rem; }
.sup-section { margin-bottom: 1rem; }
.sup-section-header { background: #1a365d; color: #fff; padding: .6rem .8rem; font-weight: 700; font-size: .95rem; border-radius: 4px 4px 0 0; }
.sup-section-body { border: 1px solid #cbd5e0; border-top: none; padding: .8rem; min-height: 60px; line-height: 1.6; font-size: .9rem; }
.sup-signatures { margin-top: 2rem; }
.sup-sig-row { display: flex; justify-content: space-between; padding: .5rem 0; }

/* ===== TRACKER ===== */
.tracker-wrapper {
    position: relative; z-index: 1;
    max-width: 1200px; margin: 0 auto; padding: 1.5rem;
}
.tracker-header {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: .8rem; margin-bottom: 1.5rem;
}
.tracker-header h1 { font-size: 1.4rem; font-weight: 800; color: #fff; margin: 0; }
.tracker-header-left { display: flex; align-items: center; gap: 1rem; }
.tracker-header-right { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.tracker-user-badge {
    font-size: .8rem; color: var(--accent-glow); font-weight: 500;
    background: rgba(66,153,225,.15); padding: .3rem .7rem; border-radius: 20px;
}
.tracker-select, .tracker-staff-panel select, #add-staff-app-month, #passResult {
    background: var(--bg-card); color: var(--text); border: 1px solid var(--border);
    border-radius: 6px; padding: .45rem .7rem; font-family: var(--font); font-size: .85rem;
}
.tracker-select option, .tracker-staff-panel select option, #add-staff-app-month option, #passResult option {
    background: var(--bg-card); color: var(--text);
}

/* Grid */
.tracker-grid-wrap { overflow-x: auto; margin-bottom: 1.5rem; }
.tracker-grid {
    width: 100%; border-collapse: collapse; font-size: .85rem;
    background: var(--surface); color: #1a1a1a; border-radius: 8px; overflow: hidden;
}
.tracker-grid th {
    background: var(--primary); color: #fff; padding: .6rem .5rem;
    font-weight: 600; font-size: .8rem; text-align: center;
    border: 1px solid rgba(255,255,255,.2);
}
.tracker-grid td {
    padding: .5rem .4rem; text-align: center; border: 1px solid #e2e8f0;
    font-weight: 600; font-size: .8rem; transition: background .2s;
}
.grid-name-col { text-align: left !important; min-width: 130px; font-weight: 600 !important; padding-left: .8rem !important; }
.grid-cell { min-width: 50px; cursor: pointer; }
.grid-cell:hover { background: rgba(255,255,255,.08); }
.grid-locked .grid-cell { cursor: default; }
.grid-locked .grid-cell:hover { background: inherit; }

/* Grid lock toggle */
.grid-lock-toggle { display:flex; align-items:center; gap:.4rem; cursor:pointer; user-select:none; }
.grid-lock-toggle input { display:none; }
.grid-lock-slider { width:36px; height:20px; background:#555; border-radius:10px; position:relative; transition:background .3s; }
.grid-lock-slider::after { content:''; position:absolute; top:2px; left:2px; width:16px; height:16px; background:#fff; border-radius:50%; transition:transform .3s; }
.grid-lock-toggle input:checked + .grid-lock-slider { background:#fc8181; }
.grid-lock-toggle input:checked + .grid-lock-slider::after { transform:translateX(16px); }
.grid-lock-icon { opacity:.5; transition:opacity .2s; }
.grid-lock-toggle input:checked ~ .grid-lock-icon { opacity:1; }

/* Cell colours */
.cell-overdue { background: #fc8181 !important; color: #fff !important; }
.cell-due { background: #f6ad55 !important; color: #fff !important; }
.cell-upcoming { background: #e2e8f0 !important; color: var(--primary) !important; }
.cell-done { background: #c6f6d5 !important; color: #276749 !important; }
.cell-leave { background: #68d391 !important; color: #fff !important; font-size: .7rem !important; }

/* Staff management panel */
.tracker-staff-panel {
    background: var(--glass); backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border); border-radius: 12px;
    padding: 1.2rem; margin-top: 1rem;
}
.tracker-staff-panel h3 { color: #fff; font-size: 1rem; margin-bottom: .8rem; }
.tracker-add-staff {
    display: flex; gap: .5rem; margin-bottom: .8rem; flex-wrap: wrap;
}
.tracker-add-staff input {
    flex: 1; min-width: 120px; padding: .5rem .7rem;
    background: rgba(255,255,255,.06); border: 1px solid var(--border);
    border-radius: 6px; color: var(--text); font-family: var(--font); font-size: .85rem;
}
.tracker-add-staff input:focus { outline: none; border-color: var(--accent-glow); }

.staff-list-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: .5rem 0; border-bottom: 1px solid var(--border);
    color: var(--text); font-size: .88rem;
}
.staff-delete-btn {
    background: transparent; border: 1px solid #fc8181; color: #fc8181;
    border-radius: 4px; padding: .2rem .6rem; font-size: .75rem;
    cursor: pointer; font-family: var(--font); transition: all .2s;
}
.staff-delete-btn:hover { background: #fc8181; color: #fff; }

/* Modal */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.6);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000; padding: 1rem;
}
.modal-content {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 12px; max-width: 560px; width: 100%;
    max-height: 90vh; overflow-y: auto;
}
.modal-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 1.2rem; border-bottom: 1px solid var(--border);
}
.modal-header h2 { color: #fff; font-size: 1.1rem; margin: 0; }
.modal-close {
    background: transparent; border: none; color: var(--text-muted);
    font-size: 1.5rem; cursor: pointer; line-height: 1;
}
.modal-close:hover { color: #fff; }
.modal-body { padding: 1.2rem; }
.modal-body .form-group { margin-bottom: .8rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    .landing-content { padding: 0 .5rem; }
    .staff-form { padding: 1.5rem; }
    .form-row { grid-template-columns: 1fr; }
    .page { padding: 1.5rem; font-size: .85rem; }
    .cover-border { padding: 2rem 1.5rem; }
    .cover-title { font-size: 1.5rem; }
    .tracker-header { flex-direction: column; align-items: flex-start; }
    .tracker-add-staff { flex-direction: column; }
}
