:root {
    color-scheme: light;
    --navy: #0f172a;
    --canvas: #f8fafc;
    --white: #fff;
    --text: #18243a;
    --muted: #53627a;
    --border: rgb(226 232 240 / .85);
    --saffron: #f97316;
    --ashoka: #2563eb;
    --emerald: #10b981;
    --shadow: 0 1px 2px rgb(15 23 42 / .035), 0 5px 16px rgb(15 23 42 / .035);
    --radius: 18px;
    --sidebar-width: 238px;
    --topbar-height: 67px;
    --mobile-nav-height: 65px;
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    font-size: 100%;
    background: var(--canvas);
    color: var(--text);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; font-size: 1rem; line-height: 1.55; }
h1, h2, h3, p, ul, dl, blockquote, figure { margin: 0; }
h1, h2, h3, strong { font-weight: 800; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .64; }
svg, [data-lucide] { width: 1.15em; height: 1.15em; flex: 0 0 auto; vertical-align: middle; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #4386f8; outline-offset: 3px; }
#view:focus { outline: none; }
a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }

.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;
}
.skip-link { position: fixed; top: 8px; left: 10px; z-index: 30; transform: translateY(-180%); background: var(--navy); color: white; padding: 10px 15px; border-radius: 9px; }
.skip-link:focus { transform: none; }
.muted { color: var(--muted); }
.initial { min-height: 100dvh; display: grid; place-items: center; }
.startup { display: grid; justify-items: center; gap: .8rem; text-align: center; color: var(--muted); font-size: .9rem; font-weight: 700; }
.startup img { border-radius: 13px; }
.noscript, .connection { text-align: center; color: #763309; background: #fff0dc; padding: .6rem 1rem; font-size: .875rem; font-weight: 700; }
.connection { position: relative; z-index: 12; }

.brand { display: inline-flex; align-items: center; gap: 10px; line-height: 1.2; color: var(--navy); }
.brand img { display: block; width: 40px; height: 40px; border-radius: 12px; box-shadow: 0 4px 10px rgb(15 23 42 / .15); }
.brand strong, .brand small { display: block; white-space: nowrap; }
.brand strong { font-size: .925rem; letter-spacing: -.026em; }
.brand small { margin-top: 4px; font-size: .73rem; color: var(--muted); font-weight: 700; }
.tricolour { display: inline-flex; gap: 3px; vertical-align: middle; }
.tricolour i { display: block; width: 10px; height: 3px; border-radius: 8px; background: var(--saffron); }
.tricolour i:nth-child(2) { background: var(--ashoka); }
.tricolour i:nth-child(3) { background: var(--emerald); }

.login-layout { min-height: 100dvh; display: grid; background: var(--white); }
.login-main { min-width: 0; min-height: 100dvh; display: flex; flex-direction: column; justify-content: space-between; padding: 28px max(22px, calc((100vw - 440px) / 2)) 20px; }
.login-brand { margin-bottom: 33px; }
.login-section { width: 100%; max-width: 418px; margin: 0 auto; }
.login-kicker, .hero-kicker { display: flex; align-items: center; gap: 8px; font-size: .73rem; letter-spacing: .105em; font-weight: 800; }
.login-kicker { color: #9a390c; margin-bottom: 13px; }
.login-kicker i, .hero-kicker i { width: 14px; height: 3px; background: var(--saffron); border-radius: 14px; }
.login-section h1 { font-size: clamp(2.25rem, 5vw, 3.35rem); letter-spacing: -.065em; line-height: 1.12; color: var(--navy); }
.login-description { color: var(--muted); margin: 12px 0 23px; }
.login-roles { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; gap: 4px; background: #f1f4f8; border: 1px solid var(--border); border-radius: 13px; margin-bottom: 23px; }
.login-role { min-height: 41px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--muted); font-size: .86rem; font-weight: 750; }
.login-role[aria-pressed="true"] { background: white; border-color: var(--border); color: var(--navy); box-shadow: 0 1px 3px #0f172a13; }
.login-role[aria-pressed="true"] svg { color: #b64b12; }
.login-form { display: grid; gap: 12px; }
.login-form .field { gap: 6px; }
.login-form .field[for="login-password"] { margin-top: 2px; margin-bottom: -6px; }
.input-icon { position: relative; display: flex; align-items: center; width: 100%; }
.input-icon > svg, .input-icon > [data-lucide] { position: absolute; left: 13px; color: #77859b; pointer-events: none; }
.input-icon input { padding-left: 41px; }
.password-field input { padding-right: 48px; }
.password-field .icon-button { position: absolute; right: 6px; border: 0; background: transparent; }
.login-submit { width: 100%; margin-top: 5px; min-height: 49px; }
.login-footer { color: var(--muted); font-size: .79rem; font-weight: 650; display: flex; align-items: center; gap: 9px; margin-top: 42px; }
.login-hero { display: none; }

.shell { min-height: 100dvh; }
.workspace { min-width: 0; }
.sidebar, .breadcrumb, .topbar-name { display: none; }
.topbar {
    position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; min-height: 62px;
    padding: 10px 18px; background: var(--white); border-bottom: 1px solid var(--border);
}
.mobile-brand .brand img { width: 35px; height: 35px; border-radius: 10px; }
.mobile-brand .brand small { margin-top: 2px; }
.topbar-user { display: inline-flex; align-items: center; gap: 10px; font-size: .85rem; font-weight: 750; }
.avatar { display: inline-grid; place-content: center; width: 37px; height: 37px; flex: 0 0 auto; border-radius: 50%; background: #eaf1fe; color: #2353a4; font-size: .77rem; font-weight: 800; }
.avatar-soft { border-radius: 11px; }
.avatar-large { width: 62px; height: 62px; font-size: 1.2rem; }
.main-view { width: 100%; max-width: 1360px; margin: 0 auto; padding: 23px 16px calc(110px + env(safe-area-inset-bottom)); }
.view-content { min-width: 0; }
.mobile-nav {
    display: flex; justify-content: space-around; align-items: stretch; gap: 2px; position: fixed; z-index: 10;
    bottom: 0; left: 0; right: 0; min-height: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));
    padding: 4px 7px calc(4px + env(safe-area-inset-bottom));
    background: rgb(255 255 255 / .91); border-top: 1px solid var(--border);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
.mobile-nav .nav-link {
    flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; color: #5c6b82; padding: 4px 2px; font-size: .72rem; font-weight: 800;
}
.mobile-nav .nav-link svg, .mobile-nav .nav-link [data-lucide] { width: 20px; height: 20px; padding: 0; }
.mobile-nav .nav-link[aria-current="page"] { color: #a33d0c; }
.mobile-nav .nav-link[aria-current="page"] svg { filter: drop-shadow(0 0 9px #f9731670); }
.mobile-nav.admin-nav .nav-link { max-width: 160px; }
.quick-log {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; position: fixed; z-index: 8;
    right: max(16px, env(safe-area-inset-right)); bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom) + 12px);
    min-height: 47px; border: 1px solid #dd5b0b; border-radius: 999px; padding: 0 14px; background: var(--saffron);
    color: #1e1720; font-size: .84rem; font-weight: 850; box-shadow: 0 6px 19px #bd4b2459;
}
.quick-log:hover { background: #ff8a3a; }

.page-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px 18px; margin-bottom: 20px; }
.page-heading h1 { font-size: clamp(1.92rem, 4vw, 2.58rem); color: var(--navy); letter-spacing: -.06em; line-height: 1.15; }
.page-heading p { color: var(--muted); margin-top: 7px; font-size: .94rem; }
.page-heading .date-kicker { margin: 0 0 5px; text-transform: uppercase; color: #556889; font-size: .72rem; letter-spacing: .08em; font-weight: 800; }
.identity-line { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-top: 9px; font-size: .79rem; font-weight: 700; color: var(--muted); }
.identity-line span { display: inline-flex; align-items: center; gap: 4px; }
.identity-line svg { color: #526b96; }
.identity-line .identity-separator { width: 4px; height: 4px; flex: 0 0 auto; border-radius: 50%; background: #9babc0; }
.month-picker {
    position: relative; display: inline-flex; align-items: center; gap: 3px; min-height: 42px; padding: 0 8px 0 11px;
    width: max-content; max-width: 100%; border: 1px solid #dce4ef; border-radius: 10px; background: white;
    box-shadow: var(--shadow); color: #3b5072; font-size: .87rem; font-weight: 750;
}
.month-picker input { width: 144px; min-height: 39px; border: 0; background: transparent; color: var(--navy); padding: 0 2px 0 4px; outline-offset: 0; }
.month-picker input::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .75; }
.month-picker:focus-within { outline: 3px solid #4386f8; outline-offset: 2px; }
.month-picker input:focus { outline: none; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.section-heading h2, .report-actions h2, .profile-controls h2 { font-size: 1.13rem; color: var(--navy); line-height: 1.25; letter-spacing: -.027em; }
.section-heading p { font-size: .84rem; color: var(--muted); margin-top: 4px; }
.section-heading > span { font-size: .78rem; font-weight: 700; color: var(--muted); text-align: right; }
.card { border: 1px solid var(--border); background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }

.button {
    display: inline-flex; justify-content: center; align-items: center; gap: 7px; border: 1px solid transparent;
    border-radius: 10px; min-height: 43px; padding: 0 14px; text-align: center; line-height: 1.25;
    white-space: normal; font-size: .86rem; font-weight: 800; transition: background .15s, border .15s;
}
.button-primary { color: #1e1720; background: var(--saffron); border-color: #ec6810; box-shadow: 0 2px 7px rgb(249 115 22 / .17); }
.button-primary:hover { background: #ff8a3a; border-color: #f17c35; }
.button-secondary { color: #243c5e; background: white; border-color: #dbe3ee; }
.button-secondary:hover { background: #f0f5fd; border-color: #c8d7ed; }
.button-danger { color: white; background: #b42318; }
.button-danger:hover { background: #8e1b14; }
.button-small { min-height: 36px; padding: 0 10px; font-size: .77rem; }
.text-button { display: inline-flex; align-items: center; gap: 5px; padding: 3px 0; color: #1c56bd; background: transparent; border: 0; min-height: 37px; font-weight: 800; font-size: .83rem; text-align: left; }
.text-button:hover, .back-link:hover { text-decoration: underline; }
.icon-button {
    display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px;
    border: 1px solid var(--border); color: var(--muted); background: white; padding: 0; flex: 0 0 auto;
}
.icon-button:hover { background: #eef4fd; color: #2257b0; }
.icon-tile { display: inline-grid; place-items: center; width: 39px; height: 39px; border-radius: 11px; flex: 0 0 auto; font-size: 1rem; }
.tile-orange { background: #fff1e6; color: #b74b10; }
.tile-blue { background: #ecf3ff; color: var(--ashoka); }
.tile-green { background: #e6f8f0; color: #047b60; }
.tile-rose { background: #fff1f2; color: #ae3859; }
.tile-neutral { background: #f0f4f9; color: #596e8d; }
.badge, .category { display: inline-flex; align-items: center; justify-content: center; gap: 4px; width: max-content; max-width: 100%; padding: 4px 8px; border-radius: 999px; font-size: .73rem; font-weight: 800; line-height: 1.3; white-space: nowrap; }
.badge-draft { color: #47556d; background: #edf1f6; }
.badge-pending { color: #94400b; background: #fff2df; }
.badge-submitted { color: #224fa6; background: #eaf1ff; }
.badge-verified { color: #05664c; background: #e4f8ee; }

.dashboard-hero {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px;
    position: relative; isolation: isolate; overflow: hidden; min-height: 200px;
    padding: 21px 14px 22px 18px; color: white; border: 1px solid #182947; border-radius: 21px;
    background: #111d35;
    background-image: linear-gradient(90deg, #101c33 2%, #111e37ec 40%, #14284695 100%), url("../images/volunteers.webp");
    background-size: cover; background-position: center, 64% 48%;
    box-shadow: 0 10px 22px rgb(19 34 66 / .16);
}
.hero-content { position: relative; z-index: 1; }
.hero-kicker { color: #ffd2a6; font-size: .66rem; letter-spacing: .1em; }
.hero-content h2 { margin: 10px 0 6px; font-size: clamp(1.35rem, 5vw, 2.38rem); line-height: 1.13; letter-spacing: -.045em; }
.hero-content p { color: #e3eaf8; font-size: .85rem; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 17px; }
.hero-actions .badge-draft { color: #e7edf8; background: #ffffff24; }
.hero-actions .badge-submitted { color: #e3edff; background: #4c8bfb42; }
.hero-actions .badge-verified { color: #d1fae5; background: #0b6d54aa; }
.hero-actions .button { min-height: 38px; padding: 0 10px; font-size: .8rem; }
.progress-ring {
    display: grid; place-items: center; flex: 0 0 auto; width: clamp(76px, 23vw, 118px); aspect-ratio: 1;
    padding: 6px; border-radius: 50%; background: conic-gradient(var(--saffron) var(--progress), #e6effc42 var(--progress));
    box-shadow: 0 0 0 5px #c6d8fc16, 0 8px 21px #0b17264d;
}
.progress-ring > div { width: 100%; height: 100%; display: grid; place-content: center; gap: 1px; text-align: center; border-radius: 50%; background: #192b48; }
.progress-ring strong { font-size: clamp(1.19rem, 5vw, 1.85rem); line-height: 1.12; letter-spacing: -.07em; }
.progress-ring span { font-size: .64rem; color: #d9e4f6; font-weight: 650; }
.overview-heading { margin: 25px 0 12px; }
.metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.metric { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 13px 12px; }
.metric p { color: #50617b; font-size: .77rem; font-weight: 750; line-height: 1.35; }
.metric strong { display: block; margin-top: 2px; color: var(--navy); line-height: 1.13; font-size: clamp(1.35rem, 3vw, 1.9rem); letter-spacing: -.05em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.metric strong span { font-size: .8rem; letter-spacing: normal; font-weight: 750; }
.metric small { display: block; margin-top: 3px; color: var(--muted); font-size: .67rem; font-weight: 650; }
.dashboard-grid { display: grid; gap: 14px; margin-top: 15px; }
.chart-card, .consistency { padding: 17px 15px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 4px 13px; margin-top: 14px; color: var(--muted); font-size: .74rem; font-weight: 750; }
.chart-legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend-dot { width: 8px; height: 8px; border-radius: 2px; background: #f58b45; }
.legend-blue { background: #5482e7; }
.chart-frame { height: 207px; position: relative; margin-top: 11px; }
.chart-fallback { display: flex; align-items: stretch; height: 100%; gap: 7px; padding: 0 7px; background: repeating-linear-gradient(to top, transparent, transparent calc(25% - 1px), #edf2f9 calc(25% - 1px), #edf2f9 25%); }
.fallback-column { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; color: var(--muted); font-size: .75rem; }
.fallback-bars { display: flex; align-items: end; justify-content: center; gap: 4px; width: 100%; height: 85%; }
.fallback-bars i { width: 20%; max-width: 21px; border-radius: 4px 4px 0 0; background: #f58b45; }
.fallback-bars i + i { background: #5482e7; }
.chart-details { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 7px; font-size: .78rem; color: var(--muted); }
.chart-details summary { width: fit-content; font-weight: 750; cursor: pointer; }
.compact-table { border-collapse: collapse; width: 100%; margin-top: 8px; }
.compact-table th, .compact-table td { border-top: 1px solid var(--border); padding: 5px 2px; text-align: left; }
.dashboard-aside { display: grid; align-content: start; gap: 13px; }
.quote-card { border: 1px solid #f6dfc6; border-radius: var(--radius); background: linear-gradient(135deg, #fff4e9, #fffaf4); padding: 15px 16px; }
.quote-card > div { display: flex; align-items: center; gap: 8px; }
.quote-card h2 { font-size: .84rem; color: #8e3b10; }
.quote-mark { display: inline-grid; place-items: center; width: 33px; height: 33px; border-radius: 10px; background: #ffe5cf; color: #ab470f; }
.quote-card blockquote { margin-top: 10px; font-size: .93rem; font-weight: 750; line-height: 1.55; color: #623414; }
.badge-list { display: grid; gap: 6px; margin-top: 12px; }
.consistency-badge { display: flex; align-items: center; gap: 9px; padding: 7px 0; border-top: 1px solid #eef2f7; }
.consistency-badge:first-child { border-top: 0; }
.consistency-badge .icon-tile { width: 34px; height: 34px; border-radius: 10px; }
.consistency-badge strong, .consistency-badge small { display: block; font-size: .81rem; }
.consistency-badge small { font-size: .72rem; color: var(--muted); }
.achievement-state { margin-left: auto; color: #6a7891; }
.earned .achievement-state { color: #08775a; }

.loading, .problem, .empty-state { text-align: center; padding: 28px 15px; color: var(--muted); }
.loading { display: flex; justify-content: center; align-items: center; gap: 10px; min-height: 88px; font-size: .88rem; font-weight: 700; }
.spinner { width: 19px; height: 19px; border: 2px solid #dbe7fa; border-top-color: var(--ashoka); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.problem p { margin: 7px 0 12px; }
.problem svg { color: #a13b31; }
.empty-state h3 { color: var(--navy); font-size: .98rem; margin: 9px 0 3px; }
.empty-state p { font-size: .85rem; }

.tabs { display: flex; align-items: stretch; gap: 4px; margin-bottom: 17px; padding: 4px; overflow-x: auto; background: #eef2f8; border: 1px solid var(--border); border-radius: 13px; scrollbar-width: thin; }
.tab { background: transparent; color: var(--muted); border: 1px solid transparent; min-height: 41px; flex: 1 0 auto; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 9px; font-size: .83rem; font-weight: 800; padding: 0 10px; }
.tab:hover { background: #f9fbfe; }
.tab[aria-selected="true"] { color: #1c53b4; background: white; border-color: #dce6f5; box-shadow: var(--shadow); }
.log-grid { display: grid; gap: 13px; align-items: start; }
.form-card, .log-history { padding: 16px; }
.summary-totals { margin-bottom: 13px; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 13px; margin-top: 15px; }
.field { display: grid; gap: 6px; min-width: 0; font-size: .85rem; font-weight: 750; }
.field > span { overflow-wrap: anywhere; }
input:not([type="file"]):not([type="month"]), select, textarea {
    width: 100%; min-width: 0; border: 1px solid #d7e0ec; border-radius: 9px; background: #fff; color: var(--navy); padding: 9px 11px; min-height: 44px;
    font-size: 1rem; font-weight: 600; line-height: 1.35;
}
.input-icon input:not([type="file"]):not([type="month"]) { padding-left: 40px; }
.password-field input:not([type="file"]):not([type="month"]) { padding-right: 46px; }
select {
    appearance: none; padding-right: 34px;
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAICAYAAADN5B7xAAABBElEQVR42mNggABGBob/jPX19UwMmABDjhFZFkUTFgMYGerrmSKfMwj9ZWFf8Pvn14Xr57auDg0NZX6lpcV4sLHxD8N/BsbQrJYNf//9Xq8rwbCIkYGBgSEgtdGei4vrwN+/f//9/vfLd920um0MDAwMbsmFQjws/PMFhCX9Pr55volJ8n8oY2joKubVq8P++qfUurNzcC1nY2UX/Pb189J///8sZWNlX87Kxsn/8/u3Da9v/Ak9cLDhLyPcrY2N/7yjKgQ5eDkWc/EKev/5/ZPh35+/DP/+/fVZPb1maz0DA1Mjw///cM+EhoYyw+jQjMb54Tkd+/ySavyQ5TAAtmBFVwwAMcNoQwdE2W8AAAAASUVORK5CYII=");
    background-repeat: no-repeat; background-position: right 13px center;
}
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: #738098; }
input[readonly], textarea[readonly] { background: #f7f9fc; }
.field-wide { grid-column: 1 / -1; }
.field-help { margin-top: 0; display: block; font-size: .73rem; color: var(--muted); text-align: right; font-weight: 650; }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 3px; }
.form-error { padding: 8px 10px; border-radius: 8px; border: 1px solid #f2bdb8; background: #fff3f2; color: #902a26; font-size: .84rem; font-weight: 700; }
.rollup, .inline-alert { display: flex; align-items: center; gap: 8px; font-size: .83rem; padding: 11px 12px; color: #214a91; background: #edf4ff; border: 1px solid #dbe9ff; border-radius: 10px; font-weight: 700; }
.rollup strong { margin-left: 4px; }
.inline-alert { margin-bottom: 13px; flex-wrap: wrap; }
.inline-alert .badge { margin-left: auto; }
.photos-field { padding: 0; min-width: 0; margin: 0; border: 0; }
.photos-field legend { font-size: .85rem; font-weight: 800; margin-bottom: 6px; }
.photos-field legend span { margin-left: 4px; color: var(--muted); font-size: .74rem; font-weight: 600; }
.upload-label { display: flex; position: relative; align-items: center; gap: 9px; min-height: 66px; padding: 10px 11px; border: 1px dashed #9db8df; background: #f6f9ff; border-radius: 10px; color: #2257aa; cursor: pointer; }
.upload-label:hover { background: #edf4ff; }
.upload-label:focus-within { outline: 3px solid #4386f8; outline-offset: 2px; }
.upload-label svg { width: 22px; height: 22px; }
.upload-label strong, .upload-label small { display: block; font-size: .81rem; }
.upload-label small { color: var(--muted); font-size: .74rem; font-weight: 600; margin-top: 2px; }
.upload-label input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.proof-previews { display: flex; flex-wrap: wrap; gap: 7px; }
.proof-previews:not(:empty) { margin: 1px 0 9px; }
.proof-thumb { position: relative; display: grid; place-items: center; width: 95px; height: 78px; border: 1px solid var(--border); background: #edf2f9; border-radius: 9px; }
.proof-thumb img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.proof-thumb .icon-button { position: absolute; top: 2px; right: 2px; width: 29px; height: 29px; }
.proof-status { position: absolute; inset: auto 2px 2px; padding: 2px 3px; border-radius: 5px; background: #0f172ae8; color: #fff; font-size: .65rem; font-weight: 800; text-align: center; }
.entry-list { list-style: none; padding: 0; margin-top: 9px; }
.entry-row { display: flex; align-items: flex-start; gap: 8px; padding: 12px 0; border-top: 1px solid var(--border); }
.entry-row:first-child { border-top: 0; }
.entry-row .icon-tile { width: 34px; height: 34px; border-radius: 9px; }
.entry-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.entry-text strong, .entry-text small { display: block; font-size: .85rem; }
.entry-text small { margin-top: 3px; color: var(--muted); font-size: .74rem; }
.record-actions { display: flex; gap: 4px; }
.delete-control:hover { color: #aa2f28; background: #fff3f1; }

.filter-pills { display: flex; justify-content: flex-start; flex-wrap: wrap; gap: 6px; margin-bottom: 15px; }
.filter-pill { padding: 0 11px; min-height: 36px; border: 1px solid #dce4f0; border-radius: 999px; color: #3f506e; background: white; font-size: .8rem; font-weight: 750; }
.filter-pill:hover { background: #f0f5fd; }
.filter-pill[aria-pressed="true"] { background: #eaf2ff; color: #2255ac; border-color: #b9cff4; }
.notice-list { display: grid; gap: 12px; max-width: 850px; }
.notice { padding: 16px; }
.notice h2 { color: var(--navy); font-size: 1.04rem; letter-spacing: -.018em; margin: 8px 0 4px; }
.notice-body { color: #42536d; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .93rem; }
.notice-meta, .notice-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 7px; }
.notice-meta time { color: var(--muted); font-size: .74rem; font-weight: 650; }
.notice-actions { margin-top: 11px; }
.notice-actions > :last-child { margin-left: auto; }
.category-urgent { background: #fff0ed; color: #aa3528; }
.category-campaigns { background: #fff1e2; color: #964514; }
.category-training { background: #eaf2ff; color: #2252ae; }
.category-general { background: #edf1f6; color: #4c5d77; }
.read-status { display: inline-flex; align-items: center; gap: 4px; color: #087057; font-size: .8rem; font-weight: 800; }
.load-more { margin-top: 15px; }
.announcement-form { max-width: 850px; }
.published-heading { margin: 22px 0 13px; }
.readers { margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--border); font-size: .8rem; color: var(--muted); }
.readers ul { list-style: none; padding: 0; display: grid; gap: 6px; }
.readers li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; }

.back-link { display: inline-block; color: #1c56bd; font-size: .85rem; font-weight: 800; margin-bottom: 9px; }
.report-layout { display: grid; gap: 14px; align-items: start; }
.report-aside { grid-row: 1; }
.report-actions { display: grid; gap: 9px; }
.report-actions .button { width: 100%; }
.report-actions-note { color: var(--muted); font-size: .78rem; }
.report-state { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; color: var(--muted); font-weight: 650; }
.report-state small { font-size: .75rem; }
.pdf-tools { display: grid; gap: 7px; min-width: 0; }
.pdf-tools .button:disabled { cursor: default; }
.pdf-status, .pdf-share-help { padding: 8px 9px; border-radius: 8px; background: #ecf3ff; color: #214a91; font-size: .77rem; font-weight: 700; }
.pdf-status-error { background: #fff3f2; color: #902a26; }
.pdf-share-help { background: #e8f8ef; color: #095f49; }
.pdf-share-help .text-button { min-height: 29px; color: inherit; }
.whatsapp-button:not(:disabled) { color: #075c46; border-color: #bce5d1; }
.whatsapp-button:not(:disabled):hover { background: #e8f8ef; }
.report-sheet { overflow: hidden; }
.report-sheet-header { text-align: center; background: #f2f6fd; padding: 19px 12px 16px; border-bottom: 1px solid #dde7f8; }
.report-sheet-header p { font-size: .79rem; color: #295aaf; font-weight: 800; margin-top: 2px; }
.report-sheet-header h2 { font-size: clamp(1.31rem, 3vw, 1.83rem); letter-spacing: -.048em; color: var(--navy); }
.report-sheet-header small { font-size: .79rem; font-weight: 700; color: var(--muted); }
.report-sheet-body { padding: 15px; overflow-wrap: anywhere; }
.report-identity { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.report-identity dt, .profile-list dt { font-size: .78rem; color: var(--muted); font-weight: 700; }
.report-identity dd, .profile-list dd { margin: 2px 0 0; font-size: .88rem; font-weight: 800; }
.report-section { border-top: 1px solid var(--border); margin-top: 17px; padding-top: 13px; }
.report-section h3 { margin-bottom: 9px; color: var(--navy); font-size: 1rem; letter-spacing: -.015em; }
.report-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.report-metrics > div { display: grid; align-content: start; gap: 2px; padding: 8px; border: 1px solid #e6edf7; border-radius: 10px; background: #f8faff; }
.report-metrics .icon-tile { width: 28px; height: 28px; border-radius: 8px; font-size: .8rem; }
.report-metrics strong { font-size: 1.18rem; color: var(--navy); }
.report-metrics small { color: var(--muted); font-size: .72rem; font-weight: 700; }
.report-outreach { display: grid; gap: 2px 12px; margin-top: 10px; }
.report-outreach > div { display: flex; justify-content: space-between; gap: 7px; padding: 5px 0; border-bottom: 1px solid #edf2f8; font-size: .78rem; color: var(--muted); }
.report-outreach dd { margin: 0; font-weight: 800; color: var(--navy); }
.report-note { white-space: pre-wrap; font-size: .88rem; }
.report-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 120px), 1fr)); gap: 9px; }
.report-photos figure { border: 1px solid var(--border); border-radius: 9px; overflow: hidden; background: #fbfcff; }
.report-photos img { width: 100%; aspect-ratio: 4 / 3; display: block; object-fit: cover; background: #e9eff8; }
.report-photos figcaption { padding: 6px 7px; font-size: .71rem; font-weight: 800; }
.report-photos small { display: block; color: var(--muted); font-weight: 650; }
.report-accordions { display: grid; gap: 5px; margin-top: 14px; }
.report-detail { border: 1px solid var(--border); padding: 8px; border-radius: 9px; font-size: .84rem; }
.report-detail summary { display: flex; align-items: center; gap: 5px; list-style: none; cursor: pointer; min-height: 25px; color: #244d90; font-weight: 800; }
.report-detail summary::-webkit-details-marker { display: none; }
.report-detail summary span { margin-left: auto; }
.report-detail summary::after { content: "+"; width: 19px; text-align: center; }
.report-detail[open] summary::after { content: "−"; }
.report-detail .muted { padding-top: 6px; }
.timeline { list-style: none; padding: 0; display: grid; gap: 7px; margin-top: 5px; }
.timeline li { border-top: 1px solid var(--border); padding-top: 6px; }
.timeline small { display: block; color: var(--muted); }
.timeline p { white-space: pre-wrap; }
.signatures { display: flex; justify-content: space-between; align-items: start; gap: 9px; margin-top: 28px; color: var(--muted); font-size: .7rem; font-weight: 700; }
.signatures span { flex-basis: 45%; border-top: 1px solid #b7c4d8; padding-top: 5px; }
.signatures span:last-child { text-align: right; }

.admin-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.admin-summary .metric { padding: 10px 8px; }
.roster-heading { padding: 15px; flex-wrap: wrap; }
.filter-select select { min-width: 146px; font-size: .86rem; }
.table-wrap { min-width: 0; overflow: auto; }
.data-table { border-collapse: collapse; width: 100%; font-size: .87rem; }
.data-table th { text-align: left; padding: 10px 12px; color: #566882; background: #f2f6fb; white-space: nowrap; font-size: .76rem; font-weight: 800; }
.data-table td { padding: 10px 12px; border-top: 1px solid var(--border); color: #354763; vertical-align: middle; }
.data-table td strong { color: var(--navy); }
.data-table td small { display: block; color: var(--muted); font-size: .74rem; padding-top: 2px; }
.roster-person { display: flex; align-items: center; gap: 7px; }
.profile-grid { display: grid; gap: 13px; align-items: start; }
.profile-card { padding: 16px; }
.profile-top { display: flex; align-items: center; gap: 11px; }
.profile-top h2 { color: var(--navy); font-size: 1.22rem; }
.profile-top p { color: var(--muted); font-size: .85rem; }
.profile-list { display: grid; gap: 8px; margin-top: 14px; }
.profile-list > div { border-top: 1px solid var(--border); padding: 8px 0 2px; }
.profile-controls { display: grid; gap: 9px; }

.toast-stack { position: fixed; z-index: 25; left: 12px; right: 12px; bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom) + 67px); display: grid; justify-items: end; gap: 6px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 8px; pointer-events: auto; width: max-content; max-width: min(100%, 375px); padding: 7px 7px 7px 10px; background: #fcfffd; color: #17644d; border: 1px solid #bce5d1; border-radius: 11px; box-shadow: 0 8px 23px #192d4930; font-size: .87rem; font-weight: 800; }
.toast-error { background: #fff8f7; color: #a13228; border-color: #f2c2bc; }
.toast-info { background: #f8fbff; color: #2250a1; border-color: #c4d7f7; }
.toast .icon-button { width: 31px; height: 31px; border: 0; background: transparent; color: inherit; }
.dialog { max-width: min(440px, calc(100vw - 26px)); width: 100%; padding: 21px; border: 1px solid var(--border); border-radius: 16px; color: var(--text); background: white; box-shadow: 0 18px 55px #0f172a49; }
.dialog::backdrop { background: #101b36a3; }
.dialog h2 { font-size: 1.22rem; color: var(--navy); margin-bottom: 6px; letter-spacing: -.024em; }
.dialog p { color: var(--muted); font-size: .92rem; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 7px; flex-wrap: wrap; padding-top: 14px; }

@media (max-width: 599px) {
    .report-table thead, .admin-table thead { display: none; }
    .report-table tbody, .admin-table tbody { display: block; }
    .report-table tr, .admin-table tr { display: block; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 7px; padding: 6px 9px; }
    .admin-table tr { margin: 0 10px 8px; }
    .report-table td, .admin-table td { display: block; border: 0; padding: 3px 0; font-size: .78rem; }
    .report-table td[data-label]::before, .admin-table td[data-label]:not(:first-child)::before { content: attr(data-label) " · "; font-size: .72rem; color: var(--muted); font-weight: 750; }
    .report-table td small { display: inline; margin-left: 5px; }
    .admin-table td:last-child { text-align: right; }
}

@media (min-width: 620px) {
    .main-view { padding-left: 24px; padding-right: 24px; }
    .page-heading { margin-bottom: 23px; }
    .metric { flex-direction: row; gap: 10px; padding: 15px 13px; }
    .metric-grid { gap: 12px; }
    .dashboard-hero { min-height: 216px; padding: 25px 40px 25px 28px; }
    .progress-ring { width: 120px; margin-right: 8px; }
    .hero-kicker { font-size: .73rem; }
    .dashboard-grid { gap: 17px; }
    .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .form-card, .log-history, .notice, .profile-card { padding: 20px; }
    .report-sheet-body { padding: 21px; }
    .report-outreach { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .report-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .report-identity { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .admin-summary { gap: 11px; }
    .admin-summary .metric { padding: 14px 12px; }
    .profile-grid { grid-template-columns: minmax(0, 1.6fr) minmax(205px, 1fr); }
}

@media (min-width: 850px) {
    .login-layout { grid-template-columns: minmax(450px, .9fr) minmax(0, 1.1fr); }
    .login-main { padding: 29px clamp(25px, 5vw, 75px) 23px; }
    .login-section { width: 100%; }
    .login-hero {
        display: flex; align-items: flex-end; justify-content: flex-start; min-height: 100dvh; color: white;
        position: relative; padding: clamp(34px, 5vw, 75px);
        background: #15243f linear-gradient(0deg, #0b1528fa 3%, #101b3280 50%, #111d362a 100%);
        background-image: linear-gradient(0deg, #0b1528fa 3%, #101b3280 50%, #111d362a 100%), url("../images/volunteers.webp");
        background-size: cover; background-position: 58% center;
    }
    .login-hero h2 { font-size: clamp(2.1rem, 4vw, 4.25rem); line-height: 1.08; letter-spacing: -.065em; margin: 12px 0 9px; }
    .login-hero p { color: #e6edf9; max-width: 390px; font-size: .98rem; }
    .shell { display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); }
    .sidebar {
        position: sticky; top: 0; height: 100dvh; min-height: 450px; display: flex; flex-direction: column;
        gap: 0; background: white; padding: 23px 13px 13px; border-right: 1px solid var(--border);
    }
    .sidebar .brand-link { align-self: flex-start; padding: 0 6px; }
    .side-label { color: #667791; letter-spacing: .06em; font-size: .66rem; font-weight: 800; padding: 0 9px; margin: 35px 0 8px; }
    .side-nav { display: grid; gap: 3px; }
    .side-nav .nav-link {
        position: relative; display: flex; align-items: center; gap: 9px; min-height: 43px; padding: 0 10px;
        border-radius: 10px; border: 1px solid transparent; color: #4d5e78; font-size: .89rem; font-weight: 750;
    }
    .side-nav .nav-link:hover { background: #f2f6fd; color: #26466f; }
    .side-nav .nav-link[aria-current="page"] { background: #fff1e5; border-color: #fbe1cb; color: #a14113; }
    .side-nav .nav-link[aria-current="page"]::before { content: ""; width: 3px; height: 16px; background: var(--saffron); border-radius: 4px; position: absolute; left: -1px; }
    .sidebar-footer { margin-top: auto; padding-top: 15px; }
    .sidebar-location { display: flex; align-items: center; gap: 5px; color: #667791; font-size: .72rem; font-weight: 700; padding: 0 5px 9px; }
    .sidebar-profile { display: flex; align-items: center; gap: 7px; padding: 10px 5px 7px; border-top: 1px solid var(--border); }
    .sidebar-profile strong, .sidebar-profile small { display: block; font-size: .81rem; overflow-wrap: anywhere; }
    .sidebar-profile small { font-size: .7rem; color: var(--muted); padding-top: 1px; }
    .sign-out { display: flex; align-items: center; gap: 6px; padding: 6px 5px; min-height: 34px; color: var(--muted); background: none; border: 0; font-size: .79rem; font-weight: 750; }
    .sign-out:hover { color: #aa391c; }
    .topbar { min-height: var(--topbar-height); padding: 10px 25px; }
    .topbar-name, .breadcrumb { display: flex; }
    .breadcrumb { align-items: center; gap: 9px; color: var(--muted); font-size: .83rem; font-weight: 650; }
    .breadcrumb strong { font-size: .85rem; color: #223754; }
    .crumb-slash { color: #8c9bb0; }
    .mobile-nav, .mobile-brand { display: none; }
    .main-view { padding: 23px 23px 58px; }
    .quick-log { right: 26px; bottom: 22px; min-height: 45px; }
    .toast-stack { right: 25px; bottom: 79px; }
    .report-aside { grid-row: auto; }
    .log-grid { grid-template-columns: minmax(0, 1.35fr) minmax(230px, .85fr); }
    .report-layout { grid-template-columns: minmax(0, 1.8fr) minmax(187px, .72fr); }
    .report-aside .button { min-height: 42px; }
}

@media (min-width: 1070px) {
    :root { --sidebar-width: 234px; }
    .sidebar { padding-left: 15px; padding-right: 15px; }
    .main-view { padding: 26px 31px 59px; }
    .topbar { padding-left: 31px; padding-right: 32px; }
    .metric-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .dashboard-grid { grid-template-columns: minmax(0, 1.85fr) minmax(232px, 1fr); align-items: start; }
    .metric { min-height: 87px; }
    .chart-frame { height: 235px; }
    .chart-card, .consistency { padding: 19px 17px; }
    .chart-legend { margin-top: 13px; }
    .progress-ring { width: 133px; margin-right: 15px; }
    .progress-ring span { font-size: .74rem; }
}

@media (min-width: 1320px) {
    :root { --sidebar-width: 245px; }
    .main-view { padding-left: 36px; padding-right: 36px; }
    .topbar { padding-left: 36px; padding-right: 36px; }
    .metric { padding: 17px 14px; }
    .dashboard-hero { padding-left: 32px; }
    .dashboard-grid { grid-template-columns: minmax(0, 2.08fr) minmax(270px, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

@media print {
    .sidebar, .topbar, .mobile-nav, .quick-log, .report-aside, .page-heading, .back-link, .toast-stack { display: none !important; }
    .shell, .report-layout { display: block; }
    .main-view { padding: 0; }
    .report-sheet { box-shadow: none; }
}
