:root {
    --green-950: #073f2a;
    --green-900: #075638;
    --green-800: #086c43;
    --green-700: #07864f;
    --green-600: #0ba75f;
    --green-100: #dff3e8;
    --green-50: #f0f8f3;
    --yellow: #f3c742;
    --ink: #14261e;
    --muted: #627169;
    --line: #dce6e0;
    --paper: #ffffff;
    --canvas: #f4f7f5;
    --shadow: 0 24px 70px rgba(6, 66, 43, .12);
    --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.5; }
a { color: inherit; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.site-header { color: #fff; background: linear-gradient(120deg, var(--green-950), var(--green-800)); box-shadow: 0 10px 35px rgba(2, 46, 29, .18); }
.brand-row { min-height: 118px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 16px; text-decoration: none; }
.brand-mark { width: 76px; height: 76px; padding: 6px; display: grid; place-items: center; border-radius: 18px; background: #fff; box-shadow: 0 8px 30px rgba(0,0,0,.14); overflow: hidden; }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: cover; }
.brand strong { display: block; font-size: 1.2rem; letter-spacing: -.01em; }
.brand small { display: block; margin-top: 3px; color: rgba(255,255,255,.76); font-size: .9rem; }
.emergency-pill { display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: rgba(255,255,255,.1); text-decoration: none; font-size: .88rem; }
.directory-bar { border-top: 1px solid rgba(255,255,255,.12); background: rgba(8, 125, 73, .66); }
.directory-row { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.directory-row > strong { font-size: 1.08rem; }
nav { display: flex; gap: 30px; align-items: center; }
nav a { position: relative; padding: 21px 0; color: rgba(255,255,255,.78); text-decoration: none; font-size: .93rem; }
nav a:hover, nav a.active { color: #fff; }
nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--yellow); }

.hero { min-height: 640px; padding-block: 86px 92px; display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 68px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--green-700); font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 27px; height: 2px; background: var(--yellow); }
.hero-copy h1 { margin: 18px 0 24px; font-size: clamp(3rem, 5vw, 5.25rem); line-height: .98; letter-spacing: -.055em; }
.hero-copy h1 em { color: var(--green-700); font-style: normal; }
.hero-copy > p { max-width: 520px; margin: 0; color: var(--muted); font-size: 1.08rem; }
.trust-row { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 16px; color: var(--green-800); font-size: .82rem; font-weight: 700; }
.search-card { padding: 32px; border: 1px solid rgba(7, 108, 67, .1); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.search-card-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 25px; }
.search-icon { width: 46px; height: 46px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 14px; color: #fff; background: var(--green-700); font-size: 1.55rem; }
.search-card-heading h2 { margin: 0; font-size: 1.28rem; letter-spacing: -.02em; }
.search-card-heading p { margin: 2px 0 0; color: var(--muted); font-size: .88rem; }
.search-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field-wide, .form-actions { grid-column: 1 / -1; }
.field > span { color: #3f5047; font-size: .75rem; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #cad8cf; border-radius: 12px; color: var(--ink); background: #fbfdfc; font: inherit; outline: none; transition: border-color .18s, box-shadow .18s; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green-600); box-shadow: 0 0 0 4px rgba(11, 167, 95, .11); }
.form-actions { display: flex; gap: 12px; padding-top: 3px; }
.button { min-height: 50px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 12px; font: inherit; font-size: .92rem; font-weight: 750; text-decoration: none; cursor: pointer; transition: transform .16s, box-shadow .16s, background .16s; }
.button:hover { transform: translateY(-1px); }
.button-primary { flex: 1; color: #fff; background: var(--green-700); box-shadow: 0 9px 22px rgba(7, 134, 79, .22); }
.button-primary:hover { background: var(--green-800); }
.button-secondary { color: var(--green-800); border-color: #aacaba; background: #fff; }
.privacy-note { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: #75837c; font-size: .76rem; }
.privacy-note span { color: var(--green-600); }
.how-it-works { padding: 82px 0; background: #fff; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.section-heading h2 { max-width: 500px; margin: 0; font-size: clamp(1.8rem, 3vw, 2.7rem); letter-spacing: -.04em; }
.steps { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.steps article { min-height: 180px; padding: 28px; position: relative; }
.steps article + article { border-left: 1px solid var(--line); }
.step-number { color: var(--green-600); font-size: .78rem; font-weight: 800; letter-spacing: .12em; }
.steps h3 { margin: 38px 0 6px; font-size: 1.08rem; }
.steps p { margin: 0; color: var(--muted); font-size: .9rem; }
.site-footer { padding: 26px 0; color: rgba(255,255,255,.72); background: var(--green-950); font-size: .8rem; }
.site-footer .container { display: flex; justify-content: space-between; gap: 20px; }

@media (max-width: 820px) {
    .container { width: min(100% - 28px, 680px); }
    .brand-row { min-height: 94px; }
    .brand-mark { width: 60px; height: 60px; border-radius: 14px; }
    .emergency-pill { display: none; }
    .directory-row { align-items: flex-start; flex-direction: column; gap: 0; padding-top: 16px; }
    nav { width: 100%; gap: 22px; overflow-x: auto; }
    nav a { white-space: nowrap; }
    .hero { min-height: 0; padding-block: 62px 70px; grid-template-columns: 1fr; gap: 46px; }
    .hero-copy h1 { font-size: clamp(3rem, 15vw, 4.5rem); }
    .search-card { padding: 24px; border-radius: 20px; }
    .section-heading { align-items: flex-start; flex-direction: column; }
    .steps { grid-template-columns: 1fr; }
    .steps article + article { border-left: 0; border-top: 1px solid var(--line); }
    .site-footer .container { flex-direction: column; }
}

@media (max-width: 540px) {
    .brand small { max-width: 210px; }
    .search-form { grid-template-columns: 1fr; }
    .field, .field-wide, .form-actions { grid-column: 1; }
    .form-actions { flex-direction: column; }
    .button { width: 100%; }
    .trust-row { align-items: flex-start; flex-direction: column; gap: 9px; }
}

/* Shared components */
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 1000; padding: 10px 14px; color: #fff; background: var(--green-950); border-radius: 8px; }
.skip-link:focus { top: 16px; }
.flash-stack { padding-top: 18px; display: grid; gap: 10px; }
.flash { padding: 13px 16px; border: 1px solid; border-radius: 12px; font-size: .9rem; }
.flash-success { color: #075b37; border-color: #a9d8bf; background: #e8f7ee; }
.flash-warning { color: #725208; border-color: #eed48b; background: #fff7df; }
.flash-error { color: #8c2828; border-color: #e8b5b5; background: #fff0f0; }
.page-section { min-height: 620px; padding-block: 70px 90px; }
.page-section.narrow { width: min(760px, calc(100% - 40px)); }
.page-heading { margin-bottom: 34px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.page-heading.centered { justify-content: center; text-align: center; }
.page-heading h1 { margin: 10px 0 6px; font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -.05em; }
.page-heading p { margin: 0; color: var(--muted); }
.alert { margin: 0 0 22px; padding: 14px 17px; border: 1px solid; border-radius: 12px; }
.alert p { margin: 0; }
.alert p + p { margin-top: 7px; }
.alert-error { color: #8c2828; border-color: #e8b5b5; background: #fff0f0; }
.alert-warning { color: #725208; border-color: #eed48b; background: #fff7df; }
.empty-state { padding: 60px 30px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); text-align: center; }
.empty-state h1, .empty-state h2 { margin: 12px 0 8px; letter-spacing: -.035em; }
.empty-state p { max-width: 560px; margin: 0 auto 24px; color: var(--muted); }
.empty-icon { width: 64px; height: 64px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 20px; color: #fff; background: var(--green-700); font-size: 1.8rem; }
.error-code { color: var(--green-700); font-size: 5.5rem; font-weight: 900; line-height: 1; letter-spacing: -.08em; }
.unavailable-state .empty-icon { background: #b47e13; }
.centered-actions { justify-content: center; }
.result-list { display: grid; gap: 14px; }
.result-card { padding: 20px; display: grid; grid-template-columns: 78px 1fr auto; align-items: center; gap: 20px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 12px 35px rgba(6,66,43,.07); }
.result-card img { width: 78px; height: 78px; object-fit: cover; border: 4px solid var(--green-50); border-radius: 50%; }
.result-copy h2 { margin: 3px 0 2px; font-size: 1.2rem; }
.result-copy p { margin: 0; }
.result-copy small { color: var(--muted); }
.verified-mini { color: var(--green-700); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.scan-card { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.camera-frame { min-height: 390px; position: relative; display: grid; place-items: center; overflow: hidden; border-radius: 18px; color: #fff; background: #092f21; }
.camera-frame video { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.camera-placeholder { position: relative; z-index: 1; display: grid; gap: 8px; justify-items: center; text-align: center; }
.camera-placeholder span { font-size: 3rem; }
.camera-placeholder small { color: rgba(255,255,255,.65); }
.camera-placeholder.hidden { display: none; }
.scan-card .form-actions { margin-top: 20px; }
.scan-status { margin: 16px 0 0; color: var(--muted); font-size: .85rem; text-align: center; }

/* Verified profile */
.profile-page { padding-block: 42px 74px; }
.profile-card { overflow: hidden; border: 1px solid rgba(255,255,255,.25); border-radius: 26px; background: #eaf0ec; box-shadow: 0 28px 80px rgba(4,57,36,.2); }
.profile-cover { min-height: 118px; padding: 28px 32px 40px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; color: #fff; background: linear-gradient(135deg, var(--green-950), var(--green-700)); }
.profile-cover strong, .profile-cover small { display: block; }
.profile-cover small { color: rgba(255,255,255,.72); }
.verified-badge { padding: 8px 12px; display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; color: var(--green-800); background: #ecf8f1; font-size: .78rem; font-weight: 800; }
.verified-badge span { width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--green-600); }
.profile-identity { margin-top: -55px; padding: 0 30px 31px; position: relative; text-align: center; }
.profile-photo { width: 150px; height: 150px; object-fit: cover; border: 7px solid #f7faf8; border-radius: 50%; background: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.profile-identity h1 { margin: 12px 0 2px; font-size: clamp(2rem, 4vw, 3.1rem); letter-spacing: -.045em; }
.profile-title, .profile-unit { margin: 0; }
.profile-title { font-weight: 700; }
.profile-unit { margin-top: 5px; color: var(--muted); }
.profile-unit span { margin: 0 6px; color: var(--green-600); }
.profile-content { padding: 0 22px 22px; display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(310px, .75fr); gap: 16px; }
.details-panel, .actions-panel { padding: 25px; border: 1px solid #cfddd4; border-radius: 18px; background: rgba(255,255,255,.76); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.panel-heading h2 { margin: 5px 0 0; font-size: 1.27rem; }
.record-status { padding: 5px 10px; border-radius: 999px; color: var(--green-800); background: var(--green-100); font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.detail-grid { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.detail-item { min-height: 78px; padding: 15px 0; display: grid; grid-template-columns: 34px 1fr; gap: 9px; border-bottom: 1px dashed #bdccc3; }
.detail-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: var(--green-800); background: var(--green-100); font-size: .55rem; font-weight: 900; }
.detail-item small, .detail-item strong, .detail-item a { display: block; overflow-wrap: anywhere; }
.detail-item small { margin-bottom: 2px; color: #6d7d74; font-size: .72rem; }
.detail-item strong, .detail-item a { color: var(--ink); font-size: .91rem; font-weight: 650; }
.detail-item a { color: var(--green-800); text-decoration-thickness: 1px; text-underline-offset: 2px; }
.profile-meta { margin-top: 18px; padding-top: 15px; border-top: 1px solid #bfcfc5; }
.profile-meta p { margin: 7px 0; display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: .72rem; }
.profile-meta code, .profile-meta strong { color: #42564b; overflow-wrap: anywhere; text-align: right; }
.quick-actions { margin-top: 17px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.action { min-height: 58px; padding: 8px; display: grid; place-items: center; gap: 1px; border: 1px solid #b8cbc0; border-radius: 12px; color: var(--green-800); background: #fff; font: inherit; font-size: .74rem; font-weight: 900; text-decoration: none; cursor: pointer; }
.action span { font-size: .72rem; }
.action-call { color: #fff; border-color: var(--green-700); background: var(--green-700); }
.action-email { color: #3b2b00; border-color: #e1bd4e; background: var(--yellow); }
.qr-card { margin-top: 22px; padding: 22px; border: 1px solid #c8d8ce; border-radius: 16px; background: #f8fbf9; text-align: center; }
.qr-card h3 { margin: 5px 0 10px; }
.qr-card img { width: min(100%, 260px); display: block; margin: auto; padding: 7px; border: 1px solid #c4d1ca; border-radius: 10px; background: #fff; image-rendering: pixelated; }
.qr-card p { margin: 10px 0; color: var(--muted); font-size: .73rem; }
.qr-downloads { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.qr-downloads a, .qr-downloads button { padding: 6px 9px; border: 1px solid #b5c8bc; border-radius: 7px; color: var(--green-800); background: #fff; font: inherit; font-size: .7rem; font-weight: 800; text-decoration: none; cursor: pointer; }
.assistance-card { margin: 0 22px 22px; padding: 19px 21px; display: flex; gap: 14px; border: 1px solid #b7d9c7; border-left: 5px solid var(--green-600); border-radius: 14px; background: rgba(255,255,255,.84); }
.assistance-icon { width: 26px; height: 26px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--green-600); font-weight: 900; }
.assistance-card h2 { margin: 0; font-size: .95rem; }
.assistance-card p { margin: 3px 0 8px; color: var(--muted); font-size: .84rem; }
.assistance-links { display: flex; flex-wrap: wrap; gap: 7px 18px; }
.assistance-links a { color: var(--green-800); font-size: .82rem; font-weight: 750; }

/* Authentication */
.auth-section { min-height: 100vh; padding: 56px 20px; display: grid; place-items: center; background: radial-gradient(circle at top left, rgba(11,167,95,.22), transparent 35%), var(--green-950); }
.auth-card { width: min(480px, 100%); padding: 36px; border-radius: 24px; background: #fff; box-shadow: 0 28px 90px rgba(0,0,0,.28); }
.auth-card-wide { width: min(620px, 100%); }
.auth-brand { margin-bottom: 28px; padding-bottom: 22px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.auth-brand img { width: 54px; height: 54px; object-fit: cover; border-radius: 12px; }
.auth-brand strong, .auth-brand small { display: block; }
.auth-brand small { color: var(--muted); font-size: .75rem; }
.auth-card h1 { margin: 10px 0 7px; letter-spacing: -.04em; }
.auth-card > p { margin: 0 0 22px; color: var(--muted); font-size: .9rem; }
.stack-form { display: grid; gap: 16px; }
.auth-back { margin-top: 20px; display: inline-block; color: var(--green-800); font-size: .82rem; font-weight: 700; }
.field-error { color: #ae3030; font-size: .72rem; }
.field-help { color: var(--muted); font-size: .72rem; }

/* Admin */
.admin-body { background: #f1f5f2; }
.admin-header { min-height: 76px; padding: 10px 24px; position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #fff; background: var(--green-950); box-shadow: 0 7px 25px rgba(0,0,0,.18); }
.admin-brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand-mark-small { width: 48px; height: 48px; border-radius: 11px; }
.admin-brand strong, .admin-brand small, .admin-user strong, .admin-user small { display: block; }
.admin-brand small, .admin-user small { color: rgba(255,255,255,.65); font-size: .72rem; }
.admin-user { display: flex; align-items: center; gap: 15px; text-align: right; }
.admin-shell { min-height: calc(100vh - 76px); display: grid; grid-template-columns: 240px 1fr; }
.admin-sidebar { padding: 24px 14px; position: sticky; top: 76px; height: calc(100vh - 76px); display: flex; flex-direction: column; gap: 6px; border-right: 1px solid #d7e2db; background: #fff; }
.admin-sidebar a { padding: 11px 13px; border-radius: 9px; color: #52645b; font-size: .86rem; font-weight: 700; text-decoration: none; }
.admin-sidebar a:hover, .admin-sidebar a.active { color: var(--green-800); background: var(--green-50); }
.admin-sidebar a:last-child { margin-top: auto; }
.admin-main { min-width: 0; padding: 38px; }
.admin-section { width: min(1320px, 100%); margin-inline: auto; }
.admin-page-heading { margin-bottom: 28px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.admin-page-heading h1 { margin: 7px 0 3px; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.045em; }
.admin-page-heading p { margin: 0; color: var(--muted); }
.button-small { min-height: 36px; padding: 0 12px; font-size: .76rem; }
.button-ghost { color: #fff; border-color: rgba(255,255,255,.3); background: transparent; }
.button-danger { color: #a42e2e; border-color: #e1aaaa; background: #fff4f4; }
.button-row { display: flex; flex-wrap: wrap; gap: 9px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.metric-grid article { padding: 23px; border: 1px solid #d8e4dc; border-radius: 17px; background: #fff; box-shadow: 0 10px 30px rgba(6,66,43,.05); }
.metric-grid span, .metric-grid small { display: block; color: var(--muted); }
.metric-grid span { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.metric-grid strong { display: block; margin: 8px 0 2px; color: var(--green-800); font-size: 2.4rem; line-height: 1; }
.metric-grid small { font-size: .72rem; }
.admin-grid-two { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.admin-card { padding: 24px; border: 1px solid #d8e4dc; border-radius: 17px; background: #fff; box-shadow: 0 10px 30px rgba(6,66,43,.05); }
.admin-card h2 { margin: 0 0 15px; font-size: 1.12rem; }
.card-heading { margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-heading h2 { margin: 0; }
.card-heading a { color: var(--green-800); font-size: .78rem; font-weight: 750; }
.compact-list { display: grid; }
.compact-list > a, .admin-user-row { padding: 12px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.compact-list > a:first-child, .admin-user-row:first-child { border-top: 0; }
.compact-list strong, .compact-list small, .admin-user-row strong, .admin-user-row small { display: block; }
.compact-list small, .admin-user-row small { color: var(--muted); font-size: .72rem; }
.compact-empty { padding: 28px 10px; color: var(--muted); text-align: center; }
.status { padding: 5px 8px; display: inline-block; border-radius: 999px; font-size: .62rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.status-active { color: #087044; background: #def3e7; }
.status-inactive { color: #725208; background: #fff0bf; }
.status-archived { color: #59645e; background: #e6ebe8; }
.status-suspended { color: #9b3030; background: #ffe2e2; }
.admin-filter { margin-bottom: 16px; padding: 17px; display: grid; grid-template-columns: 1fr 220px auto; align-items: end; gap: 12px; border: 1px solid #d8e4dc; border-radius: 15px; background: #fff; }
.table-card { overflow: hidden; border: 1px solid #d8e4dc; border-radius: 16px; background: #fff; }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.data-table th, .data-table td { padding: 14px 15px; border-bottom: 1px solid #e4ebe7; text-align: left; vertical-align: middle; }
.data-table th { color: #607068; background: #f8faf9; font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.data-table tbody tr:hover { background: #fbfdfc; }
.table-person { min-width: 220px; display: flex; align-items: center; gap: 10px; }
.table-person img { width: 42px; height: 42px; object-fit: cover; border-radius: 50%; }
.table-person strong, .table-person small { display: block; }
.table-person small, .table-subtext { color: var(--muted); font-size: .7rem; }
.table-subtext { display: block; margin-top: 2px; }
.table-actions { min-width: 280px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.table-actions a, .table-actions button { padding: 0; border: 0; color: var(--green-800); background: none; font: inherit; font-size: .72rem; font-weight: 750; text-decoration: underline; cursor: pointer; }
.table-actions form { display: inline; }
.table-actions .danger-link { color: #a42e2e; }
.staff-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.staff-form-grid .full { grid-column: 1 / -1; }
.form-section { padding: 14px 0 0; border-top: 1px solid var(--line); }
.form-section:first-of-type { padding-top: 0; border-top: 0; }
.form-section h2 { margin-bottom: 2px; }
.form-section p { margin: 0; color: var(--muted); font-size: .8rem; }
.success-hero { margin-bottom: 22px; padding: 38px; border-radius: 18px; color: #fff; background: linear-gradient(135deg, var(--green-950), var(--green-700)); text-align: center; }
.success-mark { width: 60px; height: 60px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 50%; color: var(--green-800); background: #fff; font-size: 1.6rem; font-weight: 900; }
.success-hero .eyebrow { color: #d8f5e5; }
.success-hero h1 { margin: 7px 0 3px; }
.success-hero p { margin: 0; color: rgba(255,255,255,.75); }
.copy-field { padding: 9px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; background: #f8faf9; }
.copy-field code { min-width: 0; flex: 1; overflow-wrap: anywhere; font-size: .72rem; }
.qr-preview { text-align: center; }
.qr-preview img, .admin-qr { width: min(250px, 100%); display: block; margin: 0 auto 16px; padding: 7px; border: 1px solid var(--line); border-radius: 10px; image-rendering: pixelated; }
.page-actions { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.staff-admin-identity { margin-bottom: 18px; display: flex; align-items: center; gap: 14px; }
.staff-admin-identity img { width: 74px; height: 74px; object-fit: cover; border-radius: 50%; }
.staff-admin-identity h2, .staff-admin-identity p { margin: 0; }
.staff-admin-identity p { color: var(--muted); }
.admin-details { margin: 0; display: grid; }
.admin-details > div { padding: 10px 0; display: grid; grid-template-columns: 160px 1fr; gap: 16px; border-top: 1px solid var(--line); }
.admin-details dt { color: var(--muted); font-size: .72rem; }
.admin-details dd { margin: 0; overflow-wrap: anywhere; font-size: .85rem; }
.status-controls { margin-top: 18px; }
.status-controls p, .account-card > p { color: var(--muted); }
.admin-grid-users { grid-template-columns: minmax(300px,.7fr) minmax(400px,1.3fr); }
.account-card { max-width: 640px; }

@media (max-width: 1050px) {
    .profile-content { grid-template-columns: 1fr; }
    .actions-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
    .actions-panel > .panel-heading { grid-column: 1 / -1; }
    .qr-card { margin-top: 0; }
    .metric-grid { grid-template-columns: 1fr 1fr; }
    .admin-grid-users { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
    .page-heading, .admin-page-heading { align-items: flex-start; flex-direction: column; }
    .result-card { grid-template-columns: 64px 1fr; }
    .result-card img { width: 64px; height: 64px; }
    .result-card > .button { grid-column: 1 / -1; }
    .profile-page { width: min(100% - 18px, 680px); }
    .profile-cover { padding-inline: 20px; }
    .profile-content { padding-inline: 10px; }
    .detail-grid { grid-template-columns: 1fr; }
    .actions-panel { display: block; }
    .qr-card { margin-top: 22px; }
    .assistance-card { margin-inline: 10px; }
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar { height: auto; padding: 8px 12px; position: sticky; top: 76px; z-index: 40; flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid #d7e2db; }
    .admin-sidebar a { white-space: nowrap; }
    .admin-sidebar a:last-child { margin-top: 0; }
    .admin-main { padding: 26px 18px; }
    .admin-filter { grid-template-columns: 1fr 1fr; }
    .admin-filter .button { grid-column: 1 / -1; }
    .admin-grid-two { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .profile-cover { min-height: 104px; }
    .profile-cover small { font-size: .72rem; }
    .profile-identity { margin-top: -45px; }
    .profile-photo { width: 125px; height: 125px; }
    .profile-unit span { display: none; }
    .profile-unit { max-width: 320px; margin-inline: auto; }
    .details-panel, .actions-panel { padding: 19px; }
    .quick-actions { grid-template-columns: repeat(2, 1fr); }
    .profile-meta p { flex-direction: column; gap: 2px; }
    .profile-meta code, .profile-meta strong { text-align: left; }
    .assistance-links { flex-direction: column; }
    .camera-frame { min-height: 300px; }
    .admin-header { padding-inline: 12px; }
    .admin-user > span { display: none; }
    .admin-main { padding-inline: 12px; }
    .metric-grid { grid-template-columns: 1fr; }
    .admin-filter, .staff-form-grid { grid-template-columns: 1fr; }
    .admin-filter .button, .staff-form-grid .full { grid-column: 1; }
    .admin-details > div { grid-template-columns: 1fr; gap: 3px; }
    .copy-field { align-items: stretch; flex-direction: column; }
}

@media print {
    .site-header, .site-footer, .assistance-card, .quick-actions, .qr-downloads, .admin-header, .admin-sidebar { display: none !important; }
    body, .profile-page { background: #fff; }
    .profile-page { width: 100%; padding: 0; }
    .profile-card { box-shadow: none; border: 0; }
    .profile-content { grid-template-columns: 1.6fr .8fr; }
    .actions-panel { display: block; }
    .qr-card { margin-top: 0; }
}
