@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/inter-latin.woff2") format("woff2");
}

:root {
    --ink-900: #1e3a8a;
    --ink-800: #1c2438;
    --ink-700: #384157;
    --ink-500: #6b7280;
    --ink-400: #98a2b3;
    --line: #e7eaf2;
    --bg: #eef1f6;
    --surface: #ffffff;
    --surface-soft: #f6f8fc;
    --accent: #2f6feb;
    --accent-ink: #1d4ed8;
    --accent-soft: #eaf1ff;
    --danger: #dc2626;
    --danger-soft: #fef2f2;
    --success: #059669;
    --success-soft: #ecfdf5;
    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-sm: 9px;
    --shadow-sm: 0 1px 2px rgba(16, 22, 42, 0.05);
    --shadow-md: 0 14px 32px -16px rgba(16, 22, 42, 0.2);

    /* legacy aliases still referenced elsewhere */
    --cobalt-900: var(--ink-900);
    --cobalt-700: var(--accent-ink);
    --cobalt-500: var(--accent);
    --cobalt-100: var(--accent-soft);
    --cobalt-50: var(--bg);
}

* { box-sizing: border-box; }
button, input, select, textarea {
    font-family: inherit;
    font-size: 100%;
    color: inherit;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border-radius: 0;
}
button { cursor: pointer; }
body {
    margin: 0;
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
    background: var(--bg);
    color: var(--ink-800);
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { color: var(--ink-900); font-weight: 600; letter-spacing: -0.01em; }
a { color: var(--accent-ink); }

::selection { background: var(--accent-soft); color: var(--ink-900); }

html { scrollbar-color: var(--ink-400) var(--bg); scrollbar-width: thin; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--ink-400); border-radius: 999px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-500); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: none; }

.emergency-strip {
    background: #b91c1c;
    color: #fee2e2;
    font-size: 0.8rem;
    padding: 0.5rem 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    text-align: center;
}
.emergency-strip a {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}
.emergency-strip a:hover { text-decoration: underline; }

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--ink-900);
    color: #fff;
    padding: 0.9rem 2rem;
    flex-wrap: wrap;
    gap: 0.5rem;
    position: sticky;
    top: 0;
    z-index: 2000;
    box-shadow: 0 1px 2px rgba(16, 22, 42, 0.08);
}
.site-brand {
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}
.site-brand-logo { height: 42px; width: auto; }
.site-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 0.2rem; }
.site-nav a {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease;
}
.site-nav a:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.site-nav a.active { background: #fff; color: var(--ink-900); }
.site-nav-icon { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 20px; height: 20px; }
.site-nav-icon svg { width: 20px; height: 20px; display: block; }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
    .nav-toggle { display: flex; }
    .site-nav {
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0.25rem;
        margin-top: 0.75rem;
    }
    .site-nav.nav-open { display: flex; }
    .site-nav a { padding: 0.65rem 0.85rem; border-radius: var(--radius-sm); }
}

.site-main {
    max-width: 960px;
    margin: 2.5rem auto;
    padding: 0 1.5rem;
    min-height: 60vh;
}

.page-title { margin-top: 0; }
.page-intro { color: var(--ink-500); margin-bottom: 2rem; }

.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.category-filter a {
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink-700);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
}
.category-filter a.active,
.category-filter a:hover {
    background: var(--ink-900);
    border-color: var(--ink-900);
    color: #fff;
}

.form-list { display: flex; flex-direction: column; gap: 1rem; }
.form-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.4rem 1.6rem;
    box-shadow: var(--shadow-sm);
}
.form-card h2 { margin: 0 0 0.3rem; font-size: 1.05rem; }
.form-card .category-tag {
    display: inline-block;
    font-size: 0.74rem;
    font-weight: 600;
    background: var(--accent-soft);
    color: var(--accent-ink);
    padding: 0.18rem 0.65rem;
    border-radius: 999px;
    margin-bottom: 0.5rem;
}
.form-card p { margin: 0.4rem 0; font-size: 0.92rem; color: var(--ink-700); }
.form-card .prereq-label { font-weight: 600; color: var(--ink-800); }
.download-btn {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.5rem 1.1rem;
    background: var(--ink-900);
    color: #fff;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 600;
    transition: background 0.15s ease;
}
.download-btn:hover { background: var(--accent-ink); }
.form-card .download-missing {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.5rem 1.1rem;
    background: var(--surface-soft);
    color: var(--ink-400);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
}
.empty-state { color: var(--ink-500); font-style: italic; }

.site-footer {
    text-align: center;
    padding: 2rem 1rem 1.75rem;
    color: var(--ink-400);
    font-size: 0.8rem;
    border-top: 1px solid var(--line);
    margin-top: 2rem;
}
.site-footer .dev-credit { font-size: 0.7rem; color: #c3cad8; }

.public-form {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 1.6rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    max-width: 500px;
}
.public-form label { font-size: 0.82rem; margin-top: 0.85rem; font-weight: 600; color: var(--ink-700); }
.public-form input,
.public-form select,
.public-form textarea {
    padding: 0.6rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-family: inherit;
    background: var(--surface-soft);
}
.public-form select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: var(--surface);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%2398a2b3' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    padding-right: 2.2rem;
    cursor: pointer;
    transition: border-color 0.15s ease;
}
.public-form select:hover { border-color: var(--ink-400); }
.public-form input[type="file"] {
    padding: 0.45rem 0.6rem;
    background: var(--surface);
    border-style: dashed;
    transition: border-color 0.15s ease, background 0.15s ease;
    cursor: pointer;
}
.public-form input[type="file"]:hover { border-color: var(--ink-400); background: var(--surface-soft); }
.public-form input[type="file"]::file-selector-button {
    margin-right: 0.7rem;
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--accent-ink);
    border-radius: 999px;
    background: transparent;
    color: var(--accent-ink);
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.public-form input[type="file"]::file-selector-button:hover { background: var(--accent-ink); color: #fff; }
.public-form input:focus,
.public-form select:focus,
.public-form textarea:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px var(--accent-soft); }
.public-form .field-hint { font-size: 0.78rem; color: var(--ink-500); margin: 0.35rem 0 0; }
.public-form button {
    margin-top: 1.4rem;
    padding: 0.6rem 1.1rem;
    background: var(--ink-900);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.15s ease;
}
.public-form button:hover { background: var(--accent-ink); }

.payment-section {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
}
.payment-section h2 { margin: 0 0 0.5rem; font-size: 1rem; }
.payment-section label { margin-top: 1rem; }
.gcash-qr {
    display: block;
    width: 200px;
    height: 200px;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    margin: 0.5rem 0 0.25rem;
}
.gcash-qr-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 200px;
    background: #fff;
    border: 1px dashed var(--ink-400);
    border-radius: var(--radius-md);
    color: var(--ink-400);
    font-size: 0.85rem;
    font-style: italic;
    text-align: center;
    margin: 0.5rem 0 0.25rem;
}

.document-ready-box {
    background: var(--success-soft);
    border: 1px solid #6ee7b7;
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin: 1rem 0;
}
.document-ready-box p { margin: 0 0 0.6rem; color: #065f46; font-size: 0.92rem; }
.document-ready-box p:last-child { margin-bottom: 0; }
.document-ready-box .download-btn { margin-top: 0; }

.hero {
    background: var(--ink-900);
    color: #fff;
    padding: 2.75rem 2.25rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
}
.hero h1 { margin-top: 0; color: #fff; }
.hero p { color: #cbd5e1; max-width: 600px; }

.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.quick-link-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.35rem;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
    display: block;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.quick-link-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.quick-link-card h2 { margin: 0 0 0.4rem; font-size: 1.02rem; color: var(--ink-900); }
.quick-link-card p { margin: 0; font-size: 0.88rem; color: var(--ink-500); }

.info-teaser {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.6rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}
.info-teaser h2 { margin-top: 0; font-size: 1.05rem; }

.page-notice {
    font-size: 0.85rem;
    color: var(--ink-500);
    border-top: 1px solid var(--line);
    padding-top: 1rem;
}

.info-section {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.6rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.25rem;
}
.info-section h2 { margin-top: 0; font-size: 1.05rem; color: var(--ink-900); }
.info-section h3 { font-size: 0.92rem; color: var(--ink-700); margin: 1.25rem 0 0.4rem; }
.info-section p, .info-section ul { font-size: 0.92rem; line-height: 1.6; color: var(--ink-700); }
.info-section blockquote {
    border-left: 3px solid var(--accent);
    margin: 1rem 0;
    padding: 0.25rem 0 0.25rem 1rem;
    font-style: italic;
    color: var(--ink-700);
}
.source-note { font-size: 0.78rem; color: var(--ink-400); }

.profile-jump-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.profile-jump-nav a {
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink-700);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
}
.profile-jump-nav a:hover { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }

.table-scroll { overflow-x: auto; margin-bottom: 0.75rem; border: 1px solid var(--line); border-radius: var(--radius-md); }
.data-table { border-collapse: collapse; width: 100%; font-size: 0.88rem; background: var(--surface); }
.data-table th, .data-table td {
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--line);
    font-size: 0.88rem;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table th { background: var(--surface-soft); color: var(--ink-700); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; }
.data-table tbody tr { transition: background 0.1s ease; }
.data-table tbody tr:hover { background: var(--surface-soft); }

.maps-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}
.map-card { text-align: center; }
.map-card p { font-size: 0.82rem; color: var(--ink-500); margin: 0.4rem 0 0; }
.map-thumb {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
}
.map-thumb-missing {
    width: 100%;
    height: 160px;
    border-radius: var(--radius-md);
    background: var(--surface-soft);
    color: var(--ink-400);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-style: italic;
}

.awards-list { list-style: none; padding: 0; margin: 0; }
.awards-list li {
    padding: 0.6rem 0 0.6rem 1.6rem;
    border-bottom: 1px solid var(--line);
    font-size: 0.9rem;
    line-height: 1.5;
    position: relative;
}
.awards-list li:last-child { border-bottom: none; }
.awards-list li::before {
    content: '🏆';
    position: absolute;
    left: 0;
    font-size: 0.8rem;
}
.placeholder-note {
    background: #fffbeb;
    color: #92400e;
    padding: 0.65rem 0.9rem;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-style: italic;
}

.officials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}
.section-heading { margin: 2rem 0 1rem; font-size: 1.1rem; color: var(--ink-900); }
.section-heading:first-of-type { margin-top: 0; }

.official-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    padding: 1.35rem 1.1rem;
    box-shadow: var(--shadow-sm);
    text-align: center;
}
.official-card h2 { font-size: 0.95rem; margin: 0.85rem 0 0.25rem; }
.official-card p { font-size: 0.8rem; font-weight: 600; margin: 0; color: var(--accent-ink); }
.official-photo,
.official-avatar-placeholder {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    margin: 0 auto;
    object-fit: cover;
}
.official-avatar-placeholder {
    background: var(--accent-soft);
    color: var(--accent-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
}

.hall-photo {
    width: 100%;
    max-width: 500px;
    border-radius: var(--radius-lg);
    margin: 0 auto 1rem;
    display: block;
}

.hotline-section {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.6rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.25rem;
    max-width: 500px;
}
.hotline-section h2 { margin-top: 0; font-size: 1rem; color: var(--ink-900); }
.hotline-list { list-style: none; padding: 0; margin: 0; }
.hotline-list li { padding: 0.35rem 0; font-size: 0.95rem; }
.hotline-list a {
    color: var(--danger);
    font-weight: 600;
    text-decoration: none;
}
.hotline-list a:hover { text-decoration: underline; }

.hotline-banner {
    background: var(--danger-soft);
    border: 1px solid #fecaca;
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.hotline-banner p { margin: 0; font-size: 0.9rem; color: #991b1b; }
.hotline-banner a {
    color: #991b1b;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.hotline-banner a:hover { text-decoration: underline; }

.track-form { max-width: 420px; }
.honeypot-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.tracking-result {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.6rem;
    box-shadow: var(--shadow-sm);
    max-width: 500px;
    margin-top: 1.5rem;
}
.result-kind { font-weight: 600; color: var(--ink-700); margin-top: 0; }
.result-status { font-size: 1rem; }
.status-badge {
    display: inline-block;
    padding: 0.22rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--surface-soft);
    color: var(--ink-700);
}
.status-pending { background: #fef9c3; color: #854d0e; }
.status-processing, .status-in-progress, .status-routed { background: var(--accent-soft); color: var(--accent-ink); }
.status-ready-for-pickup, .status-resolved { background: var(--success-soft); color: #065f46; }
.status-released { background: var(--success-soft); color: #065f46; }
.status-rejected { background: var(--danger-soft); color: #991b1b; }

.status-timeline { list-style: none; padding: 0; margin: 0.5rem 0 0; }
.status-timeline li {
    border-left: 2px solid var(--accent);
    padding: 0 0 1rem 1rem;
    margin-left: 0.4rem;
    position: relative;
}
.status-timeline li::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
}
.timeline-status { font-weight: 600; margin-right: 0.5rem; color: var(--ink-900); }
.timeline-date { font-size: 0.8rem; color: var(--ink-500); }
.timeline-note { margin: 0.25rem 0 0; font-size: 0.9rem; color: var(--ink-700); }

.success-box {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    max-width: 500px;
}
.success-box h2 { margin-top: 0; color: var(--ink-900); }
.secondary-btn {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.55rem 1.1rem;
    background: var(--surface-soft);
    color: var(--ink-900);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    align-self: flex-start;
}
.secondary-btn:hover { background: #eceff4; }
#location-status.location-set { color: #065f46; font-weight: 600; }

.tracking-number {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    background: var(--success-soft);
    color: #065f46;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    border: 1px dashed transparent;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.tracking-number::after {
    content: '⧉';
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.6;
}
.tracking-number:hover { border-color: #6ee7b7; }
.tracking-number:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.tracking-number.is-copied { background: var(--accent-soft); color: var(--accent-ink); }
.tracking-number.is-copied::after { content: ''; }

.camera-capture-box {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1rem;
    margin-top: 0.4rem;
}
.camera-capture-box video,
.camera-capture-box canvas,
.camera-capture-box img.captured-preview {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    border-radius: var(--radius-md);
    background: #000;
    display: block;
}
.camera-capture-actions {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}
.camera-btn {
    padding: 0.5rem 1.1rem;
    background: var(--ink-900);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}
.camera-btn:hover { background: var(--accent-ink); }
.camera-btn.secondary { background: var(--surface); color: var(--ink-700); border: 1px solid var(--line); }
.camera-btn.secondary:hover { background: var(--surface-soft); }
.camera-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.camera-status { font-size: 0.82rem; color: var(--ink-500); margin-top: 0.5rem; }
.camera-status.camera-error { color: var(--danger); }

/* ---------- Custom select (progressive enhancement over native <select>) ---------- */
.custom-select-native {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    pointer-events: none;
}
.custom-select-wrap { position: relative; display: inline-flex; flex-direction: column; }
.public-form .custom-select-wrap { display: flex; width: 100%; }
.custom-select-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.6rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    font-size: 0.92rem;
    font-family: inherit;
    color: var(--ink-800);
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.public-form .custom-select-trigger { width: 100%; }
.custom-select-trigger:hover { border-color: var(--ink-400); }
.custom-select-trigger:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.custom-select-trigger:disabled { opacity: 0.6; cursor: not-allowed; }
.custom-select-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.custom-select-chevron { width: 14px; height: 14px; flex-shrink: 0; color: var(--ink-400); transition: transform 0.15s ease; }
.custom-select-wrap.open .custom-select-chevron { transform: rotate(180deg); }
.custom-select-wrap.open .custom-select-trigger { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.custom-select-list {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 40;
    margin: 0;
    padding: 0.35rem;
    list-style: none;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    max-height: 220px;
    overflow-y: auto;
}
.custom-select-option {
    padding: 0.5rem 0.65rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--ink-800);
    cursor: pointer;
}
.custom-select-option.is-highlighted { background: var(--surface-soft); }
.custom-select-option.is-selected { color: var(--accent-ink); font-weight: 600; background: var(--accent-soft); }
.custom-select-option.is-disabled { color: var(--ink-400); cursor: not-allowed; }
