:root {
    --navy-950: #071c19;
    --navy-900: #0d332f;
    --navy-800: #123a34;
    --navy-700: #1f554c;
    --ink: #1f2d29;
    --muted: #6f746c;
    --muted-light: #92968e;
    --line: #e7dfd2;
    --line-strong: #d7cbbb;
    --surface: #fffdf9;
    --canvas: #f7f3eb;
    --warm: #f2e8d8;
    --coral: #d1a156;
    --coral-dark: #8b5b1f;
    --coral-soft: #fbf1df;
    --green: #0f7a5b;
    --green-soft: #e6f3ed;
    --amber: #8b5b1f;
    --amber-soft: #fbf1df;
    --danger: #8f1f13;
    --danger-soft: #faece7;
    --blue-soft: #e8f1ed;
    --shadow-sm: 0 1px 2px rgba(7, 28, 25, .04), 0 8px 24px rgba(7, 28, 25, .06);
    --shadow-md: 0 20px 50px rgba(7, 28, 25, .12);
    --radius-sm: 12px;
    --radius: 18px;
    --radius-lg: 26px;
    --font: Inter, Aptos, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--canvas); scroll-behavior: smooth; }
body { min-height: 100vh; min-height: 100dvh; margin: 0; color: var(--ink); background: var(--canvas); font-family: var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
.skip-link { position: fixed; z-index: 1000; top: 8px; left: 8px; visibility: hidden; padding: 10px 14px; border-radius: 8px; color: #fff; background: var(--navy-900); opacity: 0; transform: translateY(-160%); }
.skip-link:focus-visible { visibility: visible; opacity: 1; transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* App opening */
.app-splash { position: fixed; z-index: 10000; inset: 0; display: grid; place-items: center; overflow: hidden; padding: max(24px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); color: #fff; background: #061a17; isolation: isolate; animation: appSplashFailSafe .55s ease 4s forwards; }
.app-splash::before { content: ""; position: absolute; z-index: -3; inset: 0; background: radial-gradient(circle at 50% 42%, rgba(31,85,76,.72), transparent 36%), radial-gradient(circle at 68% 18%, rgba(209,161,86,.13), transparent 30%), linear-gradient(145deg, #041411, #0b302b 54%, #071c19); }
.app-splash::after { content: ""; position: absolute; z-index: 8; inset: -25%; pointer-events: none; background: linear-gradient(110deg, transparent 40%, rgba(255,255,255,.11) 49%, transparent 58%); transform: translateX(-70%) rotate(2deg); animation: appSplashLightPass 1.5s cubic-bezier(.2,.7,.2,1) .38s both; }
.app-splash-seen .app-splash { display: none; }
.app-splash.is-leaving { pointer-events: none; animation: appSplashExit .58s cubic-bezier(.55,0,.3,1) forwards; }
.app-splash-grid { position: absolute; z-index: -2; inset: -80px; opacity: .055; background-image: linear-gradient(rgba(247,243,235,.55) 1px, transparent 1px), linear-gradient(90deg, rgba(247,243,235,.55) 1px, transparent 1px); background-size: 54px 54px; mask-image: radial-gradient(circle at center, #000 0, transparent 72%); transform: perspective(700px) rotateX(58deg) scale(1.25) translateY(10%); animation: appSplashGrid 2.7s ease-out both; }
.app-splash-aurora { position: absolute; z-index: -1; border-radius: 50%; filter: blur(10px); opacity: 0; }
.app-splash-aurora-one { width: min(68vw, 720px); aspect-ratio: 1; left: -24%; bottom: -38%; background: radial-gradient(circle, rgba(20,109,90,.5), transparent 68%); animation: appSplashAurora 2.4s ease .2s both; }
.app-splash-aurora-two { width: min(52vw, 560px); aspect-ratio: 1; right: -18%; top: -28%; background: radial-gradient(circle, rgba(209,161,86,.24), transparent 67%); animation: appSplashAurora 2.4s ease .5s both reverse; }
.app-splash-skip { position: absolute; z-index: 12; top: max(20px, env(safe-area-inset-top)); right: max(20px, env(safe-area-inset-right)); padding: 9px 13px; color: rgba(255,255,255,.66); border: 1px solid rgba(255,255,255,.13); border-radius: 999px; background: rgba(255,255,255,.055); backdrop-filter: blur(12px); font-size: 10px; font-weight: 750; letter-spacing: .04em; cursor: pointer; opacity: 0; animation: appSplashCopyIn .45s ease .65s forwards; }
.app-splash-skip:hover, .app-splash-skip:focus-visible { color: #fff; border-color: rgba(209,161,86,.55); background: rgba(209,161,86,.12); }
.app-splash-stage { position: relative; width: min(100%, 430px); display: flex; flex-direction: column; align-items: center; text-align: center; transform-origin: center; animation: appSplashStage 2.75s cubic-bezier(.18,.76,.22,1) both; }
.app-splash-emblem { position: relative; width: 300px; height: 300px; display: grid; place-items: center; }
.app-splash-emblem::before { content: ""; position: absolute; width: 215px; height: 215px; border-radius: 50%; background: radial-gradient(circle, rgba(209,161,86,.2), rgba(209,161,86,.04) 48%, transparent 70%); filter: blur(6px); opacity: 0; animation: appSplashHalo 1.5s ease .35s both; }
.app-splash-logo-frame { position: relative; z-index: 3; width: 176px; height: 176px; display: block; overflow: hidden; border: 1px solid rgba(255,255,255,.48); border-radius: 45px; background: #fff; box-shadow: 0 0 0 8px rgba(255,255,255,.028), 0 0 0 9px rgba(209,161,86,.12), 0 34px 75px rgba(0,0,0,.42), 0 0 42px rgba(209,161,86,.17); clip-path: inset(50% round 45px); transform: translateY(24px) scale(.72) rotate(-5deg); opacity: 0; animation: appSplashLogoReveal 1.05s cubic-bezier(.16,.86,.25,1.18) .12s forwards, appSplashLogoFloat 1.7s ease-in-out 1.08s infinite alternate; }
.app-splash-logo { width: 100%; height: 100%; display: block; object-fit: cover; transform: scale(1.12); animation: appSplashLogoFocus 1.15s cubic-bezier(.2,.8,.2,1) .1s both; }
.app-splash-sheen { position: absolute; inset: -20%; background: linear-gradient(112deg, transparent 37%, rgba(255,255,255,.72) 49%, transparent 61%); transform: translateX(-105%); mix-blend-mode: soft-light; animation: appSplashLogoSheen 1.05s cubic-bezier(.2,.7,.2,1) .65s both; }
.app-splash-orbit { position: absolute; z-index: 1; inset: 0; margin: auto; border: 1px solid rgba(247,243,235,.12); border-radius: 50%; opacity: 0; }
.app-splash-orbit::after { content: ""; position: absolute; top: 50%; left: -3px; width: 6px; height: 6px; border-radius: 50%; background: #e5b867; box-shadow: 0 0 16px 4px rgba(209,161,86,.55); }
.app-splash-orbit-one { width: 245px; height: 245px; border-top-color: rgba(209,161,86,.52); border-right-color: rgba(209,161,86,.2); animation: appSplashOrbitIn .5s ease .3s forwards, appSplashOrbit 3.2s linear .3s infinite; }
.app-splash-orbit-two { width: 286px; height: 286px; border-bottom-color: rgba(247,243,235,.2); transform: rotate(68deg); animation: appSplashOrbitIn .6s ease .48s forwards, appSplashOrbitReverse 4.2s linear .48s infinite; }
.app-splash-spark { position: absolute; z-index: 4; width: 5px; height: 5px; border-radius: 50%; background: #f0c87f; box-shadow: 0 0 13px 3px rgba(209,161,86,.42); opacity: 0; animation: appSplashSpark 1.5s ease-in-out infinite; }
.app-splash-spark-one { left: 53px; top: 92px; animation-delay: .48s; }
.app-splash-spark-two { right: 44px; top: 144px; width: 3px; height: 3px; animation-delay: .78s; }
.app-splash-spark-three { left: 85px; bottom: 41px; width: 3px; height: 3px; animation-delay: 1.04s; }
.app-splash-identity { margin-top: -1px; display: flex; flex-direction: column; align-items: center; opacity: 0; transform: translateY(17px); animation: appSplashCopyIn .7s cubic-bezier(.2,.8,.2,1) .78s forwards; }
.app-splash-identity strong { font-size: clamp(31px, 8vw, 42px); line-height: 1; letter-spacing: .17em; text-indent: .17em; text-shadow: 0 8px 35px rgba(0,0,0,.35); }
.app-splash-identity span { margin-top: 9px; color: #e7bd79; font-size: 10px; font-weight: 750; letter-spacing: .24em; text-transform: uppercase; }
.app-splash-line { position: relative; width: 150px; height: 1px; margin: 24px 0 15px; overflow: hidden; background: rgba(255,255,255,.12); opacity: 0; animation: appSplashCopyIn .4s ease 1.05s forwards; }
.app-splash-line i { position: absolute; inset: 0 auto 0 0; width: 100%; background: linear-gradient(90deg, transparent, #d1a156 28%, #f1d49e 72%, transparent); transform: translateX(-100%); animation: appSplashProgress 1.35s cubic-bezier(.22,.7,.2,1) 1.02s forwards; }
.app-splash-stage > small { color: rgba(255,255,255,.54); font-size: 10px; font-weight: 620; letter-spacing: .065em; opacity: 0; transform: translateY(8px); animation: appSplashCopyIn .55s ease 1.16s forwards; }

@keyframes appSplashFailSafe { to { visibility: hidden; pointer-events: none; opacity: 0; } }
@keyframes appSplashExit { to { visibility: hidden; opacity: 0; transform: scale(1.035); filter: blur(7px); } }
@keyframes appSplashLightPass { to { transform: translateX(70%) rotate(2deg); } }
@keyframes appSplashGrid { from { opacity: 0; transform: perspective(700px) rotateX(58deg) scale(1.4) translateY(18%); } to { opacity: .055; transform: perspective(700px) rotateX(58deg) scale(1.25) translateY(10%); } }
@keyframes appSplashAurora { 0% { opacity: 0; transform: scale(.7); } 55% { opacity: .75; } 100% { opacity: .42; transform: scale(1.1); } }
@keyframes appSplashStage { 0% { opacity: 0; transform: scale(.91); } 16%, 78% { opacity: 1; transform: scale(1); } 100% { opacity: 1; transform: scale(1.012); } }
@keyframes appSplashHalo { from { opacity: 0; transform: scale(.6); } 55% { opacity: 1; } to { opacity: .66; transform: scale(1.22); } }
@keyframes appSplashLogoReveal { 0% { clip-path: inset(50% round 45px); opacity: 0; transform: translateY(24px) scale(.72) rotate(-5deg); } 70% { clip-path: inset(0 round 45px); opacity: 1; } 100% { clip-path: inset(0 round 45px); opacity: 1; transform: translateY(0) scale(1) rotate(0); } }
@keyframes appSplashLogoFocus { from { transform: scale(1.32) rotate(2deg); filter: saturate(.65) blur(5px); } to { transform: scale(1.12) rotate(0); filter: saturate(1) blur(0); } }
@keyframes appSplashLogoFloat { to { transform: translateY(-5px) rotate(.4deg); } }
@keyframes appSplashLogoSheen { to { transform: translateX(105%); } }
@keyframes appSplashOrbitIn { to { opacity: 1; } }
@keyframes appSplashOrbit { to { transform: rotate(360deg); } }
@keyframes appSplashOrbitReverse { from { transform: rotate(68deg); } to { transform: rotate(-292deg); } }
@keyframes appSplashSpark { 0%, 100% { opacity: 0; transform: scale(.4); } 45% { opacity: .95; transform: scale(1); } }
@keyframes appSplashCopyIn { to { opacity: 1; transform: translateY(0); } }
@keyframes appSplashProgress { to { transform: translateX(0); } }

@media (max-width: 520px) {
    .app-splash-stage { transform: translateY(-2vh); }
    .app-splash-emblem { width: 270px; height: 270px; }
    .app-splash-logo-frame { width: 158px; height: 158px; border-radius: 40px; }
    .app-splash-orbit-one { width: 220px; height: 220px; }
    .app-splash-orbit-two { width: 258px; height: 258px; }
    .app-splash-identity span { font-size: 9px; letter-spacing: .2em; }
}

@media (prefers-reduced-motion: reduce) {
    .app-splash { animation: appSplashFailSafe .2s ease .4s forwards; }
    .app-splash::after, .app-splash-grid, .app-splash-aurora, .app-splash-orbit, .app-splash-spark, .app-splash-sheen { animation: none !important; }
    .app-splash-stage, .app-splash-logo-frame, .app-splash-logo, .app-splash-identity, .app-splash-line, .app-splash-stage > small, .app-splash-skip { animation-duration: .18s !important; animation-delay: 0s !important; }
    .app-splash-logo-frame { clip-path: inset(0 round 45px); transform: none; opacity: 1; }
}

:focus-visible { outline: 3px solid rgba(209, 161, 86, .42); outline-offset: 2px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { position: relative; display: grid; place-items: center; width: 43px; height: 43px; overflow: hidden; flex: 0 0 auto; border: 1px solid rgba(209,161,86,.4); border-radius: 14px; background: #fff; box-shadow: 0 10px 24px rgba(7,28,25,.18); }
.brand-mark img { width: 100%; height: 100%; display: block; object-fit: cover; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.06; }
.brand-copy strong { color: inherit; font-size: 20px; letter-spacing: -.04em; }
.brand-copy small { margin-top: 4px; color: currentColor; font-size: 9px; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; opacity: .64; }

.eyebrow, .step-label { display: inline-block; color: var(--coral-dark); font-size: 11px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow.light { color: rgba(255,255,255,.7); }
.section-heading { margin-bottom: 26px; }
.section-heading.compact { margin-bottom: 22px; }
.section-heading h2 { margin: 7px 0 8px; color: var(--navy-900); font-size: clamp(25px, 4vw, 34px); line-height: 1.12; letter-spacing: -.045em; }
.section-heading.compact h2 { font-size: clamp(23px, 3vw, 30px); }
.section-heading p { max-width: 48ch; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 11px 18px; border: 1px solid transparent; border-radius: 13px; font-weight: 800; font-size: 14px; line-height: 1; text-decoration: none; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease; }
.button svg { width: 18px; height: 18px; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button-primary { color: #fff; background: var(--navy-900); box-shadow: 0 10px 25px rgba(7, 28, 25, .2); }
.button-primary:hover { background: var(--navy-800); box-shadow: 0 13px 28px rgba(7, 28, 25, .25); }
.button-secondary { color: var(--navy-800); border-color: var(--line-strong); background: #fff; }
.button-secondary:hover { border-color: #b5c0ce; background: #f9fafb; }
.button-danger { color: #fff; background: var(--danger); box-shadow: 0 10px 25px rgba(180, 35, 24, .18); }
.button-danger:hover { background: #912018; box-shadow: 0 13px 28px rgba(180, 35, 24, .22); }
.button-light { align-self: flex-start; margin-top: 18px; color: var(--navy-900); background: #fff; box-shadow: 0 8px 18px rgba(0,0,0,.12); }
.button-full { width: 100%; }
.button[disabled], .button.is-loading { pointer-events: none; opacity: .68; }
.button.is-loading::before { content: ""; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.35); border-top-color: currentColor; border-radius: 50%; animation: spin .7s linear infinite; }
.button.is-loading > * { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.alert { margin: 0 0 18px; padding: 13px 15px; border: 1px solid; border-radius: 13px; font-size: 13px; font-weight: 650; line-height: 1.5; }
.alert-error { color: var(--danger); border-color: #fac8c3; background: var(--danger-soft); }
.alert-success { color: #176b4e; border-color: #bfe7d6; background: var(--green-soft); }
.alert-info { color: #315d91; border-color: #cadcf4; background: var(--blue-soft); }

.stack-form { display: grid; gap: 17px; }
.stack-form.narrow { max-width: 540px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.span-2 { grid-column: span 2; }
.form-field { min-width: 0; }
.form-field label, .form-field legend { display: block; margin: 0 0 7px; color: #344054; font-size: 12px; font-weight: 800; }
.form-field label span, .form-field legend span { color: var(--muted-light); font-weight: 600; }
.form-field input, .form-field select, .form-field textarea, .admin-filters input, .admin-filters select { width: 100%; min-height: 48px; padding: 11px 13px; color: var(--ink); border: 1px solid var(--line-strong); border-radius: 12px; outline: 0; background: #fff; transition: border-color .16s ease, box-shadow .16s ease, background .16s ease; }
.form-field input[data-date-br] { min-width: 0; max-width: 100%; font-variant-numeric: tabular-nums; letter-spacing: .035em; }
.form-field textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
.form-field input::placeholder, .form-field textarea::placeholder, .admin-filters input::placeholder { color: #a2aab7; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus, .admin-filters input:focus, .admin-filters select:focus { border-color: var(--coral); box-shadow: 0 0 0 4px rgba(209, 161, 86, .14); }
.form-field small, .field-hint { display: block; min-height: 15px; margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.form-field .field-error, .field-error { color: var(--danger); font-weight: 700; }
.form-field:has(.field-error) input, .form-field:has(.field-error) select, .form-field:has(.field-error) textarea { border-color: #eaa49e; background: #fffafa; }
.input-shell { min-height: 48px; display: flex; align-items: center; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; transition: border-color .16s ease, box-shadow .16s ease; }
.input-shell:focus-within { border-color: var(--coral); box-shadow: 0 0 0 4px rgba(209, 161, 86, .14); }
.input-shell input { min-height: 46px; border: 0 !important; border-radius: 0; box-shadow: none !important; background: transparent !important; }
.input-with-icon > svg { flex: 0 0 auto; width: 20px; height: 20px; margin-left: 13px; color: #7b8798; }
.input-password input { width: auto; min-width: 0; flex: 1 1 auto; padding-right: 5px; }
.password-toggle { align-self: stretch; min-width: 66px; flex: 0 0 auto; padding: 0 10px; color: var(--navy-700); border: 0; background: transparent; font-size: 11px; font-weight: 800; cursor: pointer; }
.choice-field { padding: 0; border: 0; }
.choice-field legend { width: 100%; }
.choice-card { width: calc(50% - 6px); min-height: 48px; display: inline-flex !important; align-items: center; gap: 8px; margin: 0 8px 0 0 !important; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 12px; cursor: pointer; }
.choice-card:last-of-type { margin-right: 0 !important; }
.choice-card:has(input:checked) { color: var(--navy-900); border-color: var(--coral); background: var(--coral-soft); }
.choice-card input { width: 17px; min-height: 17px; accent-color: var(--coral-dark); }
.choice-card span { color: inherit !important; font-weight: 750 !important; }
.catalog-picker { overflow: hidden; border: 1px solid var(--line-strong); border-radius: 14px; background: #fbfcfd; }
.catalog-search { position: relative; border-bottom: 1px solid var(--line); background: #fff; }
.catalog-search svg { position: absolute; left: 13px; top: 50%; width: 18px; height: 18px; color: var(--muted-light); transform: translateY(-50%); }
.catalog-search input { min-height: 46px; padding-left: 40px; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: transparent !important; }
.catalog-options { max-height: 215px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; overflow-y: auto; padding: 11px; }
.catalog-options-tall { max-height: 275px; }
.catalog-option { min-width: 0; display: flex !important; align-items: center; gap: 8px; margin: 0 !important; padding: 9px 10px; color: var(--muted); border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.catalog-option[hidden] { display: none !important; }
.catalog-option:has(input:checked) { color: var(--navy-900); border-color: #d8bd90; background: var(--coral-soft); }
.catalog-option input { width: 16px !important; min-height: 16px !important; flex: 0 0 auto; margin: 0; accent-color: var(--coral-dark); }
.catalog-option span { min-width: 0; overflow: hidden; font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.catalog-empty { margin: 0; padding: 19px 14px; color: var(--muted); font-size: 10px; line-height: 1.5; text-align: center; }
.catalog-picker.has-no-results .catalog-options { display: none; }

/* Authentication */
.auth-page { color: #fff; background: var(--navy-950); }
.auth-shell { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr); }
.auth-visual { position: relative; min-height: 680px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 42px clamp(36px, 6vw, 84px) 54px; background: var(--navy-900); isolation: isolate; }
.auth-visual::before { content: ""; position: absolute; z-index: -2; width: 560px; height: 560px; right: -180px; top: 10%; border-radius: 50%; background: radial-gradient(circle at 35% 35%, rgba(209,161,86,.34), rgba(209,161,86,0) 68%); }
.auth-visual::after { content: ""; position: absolute; z-index: -1; inset: 0; opacity: .045; background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(to bottom, black, transparent 80%); }
.auth-visual .brand { color: #fff; }
.auth-brand-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.secure-pill { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; color: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.12); border-radius: 999px; background: rgba(255,255,255,.05); font-size: 11px; font-weight: 700; }
.secure-pill span { width: 7px; height: 7px; border-radius: 50%; background: #5ee2ac; box-shadow: 0 0 0 4px rgba(94,226,172,.1); }
.auth-message { max-width: 620px; padding: 70px 0 40px; }
.auth-message .eyebrow { color: #e4bb78; }
.auth-message h1 { margin: 14px 0 18px; max-width: 15ch; color: #fff; font-size: clamp(42px, 5vw, 70px); line-height: .99; letter-spacing: -.065em; }
.auth-message p { max-width: 48ch; margin: 0; color: rgba(255,255,255,.64); font-size: 16px; line-height: 1.7; }
.visual-card { position: relative; width: min(100%, 540px); height: 116px; overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: 25px; background: rgba(255,255,255,.055); backdrop-filter: blur(12px); }
.visual-cross { position: absolute; left: 33px; top: 28px; width: 10px; height: 60px; border-radius: 5px; background: var(--coral); box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.visual-cross::after { content: ""; position: absolute; width: 38px; height: 10px; left: -14px; top: 15px; border-radius: 5px; background: var(--coral); }
.visual-caption { position: absolute; left: 100px; top: 33px; display: flex; flex-direction: column; }
.visual-caption strong { font-size: 24px; letter-spacing: -.04em; }
.visual-caption small { margin-top: 3px; color: rgba(255,255,255,.55); font-size: 12px; }
.visual-orbit { position: absolute; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; }
.orbit-one { width: 240px; height: 240px; right: -30px; top: -80px; }
.orbit-two { width: 140px; height: 140px; right: 22px; top: -30px; border-color: rgba(209,161,86,.3); }
.auth-panel { display: grid; place-items: center; padding: 36px clamp(28px, 5vw, 74px); color: var(--ink); background: #fff; }
.auth-panel-inner { width: min(100%, 430px); }
.mobile-brand { display: none; }
.identified-cpf { display: grid; grid-template-columns: 1fr auto; margin-bottom: 18px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #f8fafb; }
.identified-cpf span { grid-column: 1; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.identified-cpf strong { grid-column: 1; margin-top: 3px; font-size: 14px; }
.identified-cpf a { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--coral-dark); font-size: 12px; font-weight: 800; }
.install-intent { position: relative; display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 12px; margin-bottom: 22px; padding: 16px 42px 16px 16px; overflow: hidden; border: 1px solid #c8ded8; border-radius: 18px; background: linear-gradient(145deg, #f1faf7, #fffaf1); box-shadow: 0 13px 28px rgba(7, 46, 41, .08); }
.install-intent::after { content: ""; position: absolute; width: 90px; height: 90px; right: -54px; bottom: -55px; border: 1px solid rgba(13, 51, 47, .09); border-radius: 50%; box-shadow: 0 0 0 14px rgba(13, 51, 47, .025); pointer-events: none; }
.install-intent-icon { width: 46px; height: 46px; display: grid; place-items: center; color: #fff; border-radius: 15px; background: linear-gradient(145deg, var(--green), var(--navy-900)); box-shadow: 0 10px 22px rgba(13, 51, 47, .20); }
.install-intent-icon svg, .install-intent-close svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.install-intent-copy { min-width: 0; display: flex; flex-direction: column; padding-top: 1px; }
.install-intent-copy > span { color: var(--green); font-size: 9px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.install-intent-copy strong { margin-top: 4px; color: var(--navy-900); font-size: 15px; line-height: 1.28; }
.install-intent-copy p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.install-intent-close { position: absolute; z-index: 2; top: 8px; right: 8px; width: 32px; height: 32px; display: grid; place-items: center; padding: 0; color: var(--muted); border: 0; border-radius: 10px; background: transparent; cursor: pointer; }
.install-intent-close:hover { color: var(--navy-900); background: rgba(13, 51, 47, .07); }
.install-intent-close:focus-visible { outline: 2px solid var(--coral-dark); outline-offset: 2px; }
.install-intent-action { grid-column: 1 / -1; width: 100%; min-height: 46px; margin-top: 2px; }
.install-intent.is-installed { border-color: #b8ddcd; background: var(--green-soft); }
.install-card { width: 100%; display: flex; align-items: center; gap: 12px; margin-top: 19px; padding: 12px; text-align: left; border: 1px solid var(--line); border-radius: 13px; background: #fafbfc; cursor: pointer; }
.install-icon { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; color: var(--coral-dark); border-radius: 11px; background: var(--coral-soft); }
.install-icon svg { width: 19px; height: 19px; }
.install-card > span:last-child { display: flex; flex-direction: column; }
.install-card strong { color: var(--ink); font-size: 12px; }
.install-card small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.privacy-note { display: flex; align-items: flex-start; gap: 8px; margin: 22px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.privacy-note svg { width: 15px; height: 15px; flex: 0 0 auto; color: var(--green); }
.admin-access { display: block; width: max-content; margin: 22px auto 0; color: var(--muted-light); font-size: 10px; text-decoration: none; }
.admin-access:hover { color: var(--navy-800); text-decoration: underline; }

.offline-shell { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; width: min(100% - 42px, 520px); margin: 0 auto; color: #fff; }
.offline-shell .brand { margin-bottom: 70px; }
.offline-icon { width: 65px; height: 65px; display: grid; place-items: center; color: var(--coral); border: 1px solid rgba(255,255,255,.1); border-radius: 21px; background: rgba(255,255,255,.06); font-size: 34px; }
.offline-shell h1 { margin: 22px 0 10px; font-size: clamp(35px, 8vw, 55px); letter-spacing: -.06em; }
.offline-shell p { max-width: 45ch; margin: 0; color: rgba(255,255,255,.62); line-height: 1.65; }

/* Onboarding */
.onboarding-page { background: var(--warm); }
.onboarding-topbar { height: 78px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(20px, 5vw, 68px); color: #fff; background: var(--navy-900); }
.onboarding-topbar a { color: rgba(255,255,255,.7); font-size: 12px; font-weight: 750; text-decoration: none; }
.onboarding-shell { width: min(1200px, calc(100% - 40px)); display: grid; grid-template-columns: 330px minmax(0, 720px); justify-content: center; gap: 58px; margin: 54px auto 80px; }
.onboarding-aside { padding-top: 30px; }
.onboarding-aside h1 { max-width: 8ch; margin: 12px 0 15px; color: var(--navy-900); font-size: clamp(36px, 4vw, 52px); line-height: 1; letter-spacing: -.06em; }
.onboarding-aside > p { margin: 0; color: var(--muted); line-height: 1.65; }
.cpf-confirmation { position: relative; display: flex; flex-direction: column; margin-top: 34px; padding: 16px 48px 16px 17px; border: 1px solid #d9dedf; border-radius: 16px; background: rgba(255,255,255,.58); }
.cpf-confirmation span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.cpf-confirmation strong { margin-top: 4px; color: var(--navy-800); font-size: 15px; }
.cpf-confirmation svg { position: absolute; right: 15px; top: 19px; width: 25px; height: 25px; padding: 5px; color: #fff; border-radius: 50%; background: var(--green); }
.aside-privacy { display: flex; gap: 11px; margin-top: 22px; padding: 0 3px; }
.aside-privacy svg { width: 22px; height: 22px; flex: 0 0 auto; color: var(--coral-dark); }
.aside-privacy span { display: flex; flex-direction: column; color: var(--muted); font-size: 11px; line-height: 1.5; }
.aside-privacy strong { margin-bottom: 2px; color: var(--ink); font-size: 12px; }
.onboarding-card { padding: clamp(24px, 4vw, 46px); border: 1px solid rgba(7,28,25,.09); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-md); }
.wizard-progress { margin-bottom: 36px; }
.progress-copy { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 9px; color: var(--muted); font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.progress-copy strong { color: var(--navy-900); }
.progress-track { height: 5px; overflow: hidden; border-radius: 999px; background: #edf0f3; }
.progress-track span { display: block; width: 20%; height: 100%; border-radius: inherit; background: var(--coral); transition: width .3s ease; }
.progress-track span[data-step="2"] { width: 40%; }
.progress-track span[data-step="3"] { width: 60%; }
.progress-track span[data-step="4"] { width: 80%; }
.progress-track span[data-step="5"] { width: 100%; }
.wizard-step { animation: stepIn .28s ease both; }
@keyframes stepIn { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: none; } }
.wizard-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.wizard-actions .button-primary { margin-left: auto; }
.consent-card { display: flex; align-items: flex-start; gap: 11px; padding: 14px; border: 1px solid var(--line-strong); border-radius: 13px; color: var(--muted); font-size: 11px; line-height: 1.5; cursor: pointer; }
.consent-card:has(input:checked) { color: var(--ink); border-color: #9bd5bf; background: var(--green-soft); }
.consent-card input { width: 18px; height: 18px; flex: 0 0 auto; margin: 1px 0 0; accent-color: var(--green); }
.password-strength { display: flex; gap: 5px; margin-top: 7px; }
.password-strength span { height: 4px; flex: 1; border-radius: 999px; background: #e7eaf0; }
.password-strength[data-score="1"] span:first-child { background: var(--danger); }
.password-strength[data-score="2"] span:nth-child(-n+2) { background: #df9a30; }
.password-strength[data-score="3"] span { background: var(--green); }
.review-card { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding: 14px; border-radius: 14px; background: #f6f8fa; }
.review-icon { width: 39px; height: 39px; display: grid; place-items: center; flex: 0 0 auto; color: var(--green); border-radius: 12px; background: var(--green-soft); }
.review-icon svg { width: 22px; height: 22px; }
.review-card > span:last-child { display: flex; flex-direction: column; }
.review-card strong { font-size: 12px; }
.review-card small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.required-badge { display: inline-flex; margin-left: 5px; padding: 3px 6px; color: #8d5714; border-radius: 999px; background: #f8e7c9; font-size: 7px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; vertical-align: 1px; }
.onboarding-photo-upload { display: grid; grid-template-columns: 162px minmax(0, 1fr); gap: 20px; align-items: center; padding: 17px; border: 1px solid #dfd4c2; border-radius: 18px; background: linear-gradient(145deg, #fffdf9, #f8f3e9); }
.onboarding-photo-upload.is-ready { border-color: #9fd4bf; background: linear-gradient(145deg, #fff, #edf8f3); }
.onboarding-photo-preview { position: relative; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; color: var(--navy-800); border: 1px solid #dfc89f; border-radius: 50%; background: linear-gradient(145deg, #f8e4c3, #d1a156); box-shadow: inset 0 0 0 6px rgba(255,255,255,.55), 0 12px 28px rgba(7,28,25,.13); }
.onboarding-photo-preview > span, .onboarding-photo-preview > img { width: 100%; height: 100%; display: grid; place-items: center; object-fit: cover; }
.onboarding-photo-preview > span svg { width: 63px; height: 63px; stroke-width: 1.35; }
.onboarding-photo-preview > i { position: absolute; inset: 10px; pointer-events: none; border: 1px solid rgba(255,255,255,.72); border-radius: 50%; }
.onboarding-photo-copy { min-width: 0; }
.onboarding-photo-copy h3 { margin: 0 0 5px; color: var(--navy-900); font-size: 16px; }
.onboarding-photo-copy > p { margin: 0 0 13px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.onboarding-photo-sources > button { padding: 10px; }
.onboarding-photo-sources > button > span { width: 36px; height: 36px; }
.profile-photo-status.is-required { color: #8d5714; border-color: #ead5ad; background: #fff5e4; }

/* Member application shell */
.member-app { padding-bottom: 94px; }
.app-frame { width: min(100%, 1120px); margin: 0 auto; }
.app-topbar { min-height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; color: #fff; border-bottom: 1px solid rgba(255,255,255,.09); background: rgba(7,28,25,.96); box-shadow: 0 10px 30px rgba(7,28,25,.12); backdrop-filter: blur(15px); }
.app-topbar .brand { color: #fff; }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.icon-button { width: 42px; height: 42px; display: grid; place-items: center; color: #fff; border: 1px solid rgba(255,255,255,.14); border-radius: 13px; background: rgba(255,255,255,.08); cursor: pointer; }
.icon-button svg { width: 19px; height: 19px; }
.avatar { width: 42px; height: 42px; display: grid; place-items: center; color: #1b0c05; border-radius: 14px; background: var(--coral); font-weight: 900; text-decoration: none; box-shadow: 0 8px 18px rgba(7,28,25,.2); }
.avatar img { width: 100%; height: 100%; display: block; object-fit: cover; border: 2px solid rgba(255,255,255,.42); border-radius: inherit; }
.app-content { width: min(100% - 32px, 850px); margin: 0 auto; padding: 30px 0 54px; }
.app-alert { margin-bottom: 24px; }
.dashboard-hello { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 4px 0 25px; }
.dashboard-hello > div > span { color: var(--muted); font-size: 13px; }
.dashboard-hello h1 { margin: 3px 0 4px; color: var(--navy-900); font-size: clamp(30px, 5vw, 43px); letter-spacing: -.055em; }
.dashboard-hello h1 span { font-size: .7em; }
.dashboard-hello p { margin: 0; color: var(--muted); font-size: 13px; }
.date-chip { width: 58px; height: 63px; display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 0 0 auto; color: var(--navy-900); border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: var(--shadow-sm); font-size: 23px; font-weight: 850; line-height: 1; }
.date-chip small { margin-top: 5px; color: var(--coral-dark); font-size: 9px; letter-spacing: .12em; }
.dashboard-profile-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; margin-bottom: 18px; padding: 18px 20px; color: var(--ink); border: 1px solid var(--line); border-radius: 21px; background: linear-gradient(135deg, #fff 0%, #fffdfa 72%, #f6ead6 100%); box-shadow: var(--shadow-sm); text-decoration: none; }
.dashboard-profile-photo { position: relative; width: 68px; height: 68px; display: grid; place-items: center; flex: 0 0 auto; color: var(--navy-900); border: 3px solid #fff; border-radius: 20px; background: linear-gradient(145deg, #f0c779, var(--coral)); box-shadow: 0 9px 22px rgba(7,28,25,.15); font-size: 24px; font-weight: 900; }
.dashboard-profile-photo > img, .dashboard-profile-photo > span { width: 100%; height: 100%; display: grid; place-items: center; object-fit: cover; overflow: hidden; border-radius: 17px; }
.dashboard-profile-photo > i { position: absolute; right: -3px; bottom: -3px; width: 15px; height: 15px; border: 3px solid #fff; border-radius: 50%; background: #22a06b; }
.dashboard-profile-copy { min-width: 0; display: flex; flex-direction: column; }
.dashboard-profile-copy > small { color: var(--coral-dark); font-size: 9px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.dashboard-profile-copy > strong { margin-top: 4px; overflow: hidden; color: var(--navy-900); font-size: 16px; letter-spacing: -.025em; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-profile-copy > span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.dashboard-profile-copy > em { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; font-size: 9px; font-style: normal; }
.dashboard-profile-copy > em b, .dashboard-profile-copy > em span { display: inline-flex; padding: 5px 8px; border-radius: 999px; }
.dashboard-profile-copy > em b { color: var(--green); background: var(--green-soft); }
.dashboard-profile-copy > em span { color: #765018; background: #f8ebd2; }
.dashboard-profile-copy > em span.access-profile-pill { color: var(--navy-800); background: var(--blue-soft); }
.dashboard-profile-arrow { width: 22px; height: 22px; color: var(--coral-dark); }
.completion-card { position: relative; min-height: 245px; display: flex; align-items: center; justify-content: space-between; gap: 30px; overflow: hidden; padding: clamp(27px, 5vw, 44px); color: #fff; border-radius: 27px; background: var(--navy-900); box-shadow: 0 22px 45px rgba(7,28,25,.21); isolation: isolate; }
.completion-card::before { content: ""; position: absolute; z-index: -1; width: 300px; height: 300px; right: -75px; top: -110px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; box-shadow: 0 0 0 38px rgba(255,255,255,.025), 0 0 0 78px rgba(209,161,86,.075); }
.completion-card::after { content: ""; position: absolute; z-index: -1; width: 150px; height: 150px; right: 50px; bottom: -100px; border-radius: 50%; background: var(--coral); opacity: .35; filter: blur(2px); }
.completion-copy { max-width: 480px; }
.completion-copy h2 { margin: 8px 0 8px; color: #fff; font-size: clamp(27px, 4vw, 38px); letter-spacing: -.05em; }
.completion-copy p { max-width: 44ch; margin: 0; color: rgba(255,255,255,.65); font-size: 13px; line-height: 1.55; }
.progress-ring { position: relative; width: 132px; height: 132px; flex: 0 0 auto; display: grid; place-items: center; }
.progress-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.progress-ring circle { fill: none; stroke-width: 3; }
.ring-track { stroke: rgba(255,255,255,.12); }
.ring-value { stroke: var(--coral); stroke-linecap: round; }
.progress-ring > span { display: flex; flex-direction: column; align-items: center; }
.progress-ring strong { color: #fff; font-size: 25px; letter-spacing: -.04em; }
.progress-ring small { margin-top: 2px; color: rgba(255,255,255,.5); font-size: 9px; text-transform: uppercase; letter-spacing: .09em; }
.leadership-card { position: relative; margin-top: 24px; overflow: hidden; padding: 22px; color: #fff; border-radius: 22px; background: linear-gradient(135deg, #123a34 0%, var(--navy-900) 62%, #2a160d 100%); box-shadow: 0 17px 38px rgba(7,28,25,.18); }
.leadership-card::after { content: ""; position: absolute; width: 180px; height: 180px; right: -90px; top: -105px; border: 28px solid rgba(209,161,86,.1); border-radius: 50%; pointer-events: none; }
.leadership-heading { position: relative; z-index: 1; display: flex; align-items: center; gap: 13px; }
.leadership-icon { width: 48px; height: 48px; display: grid; place-items: center; flex: 0 0 auto; color: #f0cf98; border: 1px solid rgba(209,161,86,.24); border-radius: 15px; background: rgba(209,161,86,.14); }
.leadership-icon svg { width: 23px; height: 23px; }
.leadership-heading > div { min-width: 0; }
.leadership-heading h2 { margin: 4px 0 3px; color: #fff; font-size: 18px; letter-spacing: -.035em; }
.leadership-heading p { margin: 0; color: rgba(255,255,255,.58); font-size: 10px; }
.leadership-count { flex: 0 0 auto; margin-left: auto; padding: 7px 10px; color: #f3d6a4; border: 1px solid rgba(209,161,86,.24); border-radius: 999px; background: rgba(209,161,86,.12); font-size: 9px; font-weight: 850; }
.leadership-list { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 17px; }
.ministry-lead-item { min-width: 0; display: flex; align-items: center; gap: 11px; padding: 12px; border: 1px solid rgba(255,255,255,.09); border-radius: 15px; background: rgba(255,255,255,.065); }
.ministry-monogram { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 auto; overflow: hidden; color: #fff; border-radius: 12px; background: var(--coral-dark); font-size: 9px; font-weight: 900; letter-spacing: .03em; }
.ministry-lead-item > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; }
.ministry-lead-item small { color: rgba(255,255,255,.48); font-size: 8px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.ministry-lead-item strong { margin-top: 3px; overflow: hidden; color: #fff; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.ministry-lead-item em { margin-top: 3px; overflow: hidden; color: rgba(255,255,255,.5); font-size: 8px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.ministry-lead-item > svg { width: 18px; height: 18px; flex: 0 0 auto; margin-left: auto; color: #73d3a7; }
.clan-lead-item .ministry-monogram { color: var(--navy-900); background: #f0c779; }
.clan-lead-item > svg { color: #f0c779; }
.dashboard-section { margin-top: 37px; }
.section-title-row { display: flex; align-items: end; justify-content: space-between; margin-bottom: 15px; }
.section-title-row h2 { margin: 5px 0 0; color: var(--navy-900); font-size: 21px; letter-spacing: -.035em; }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.quick-card { position: relative; min-height: 105px; display: flex; align-items: center; gap: 13px; padding: 17px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); text-decoration: none; }
.quick-card:hover { border-color: #cfd5dd; }
.quick-icon { width: 46px; height: 46px; display: grid; place-items: center; flex: 0 0 auto; color: var(--navy-800); border-radius: 15px; background: var(--blue-soft); }
.quick-icon.icon-coral { color: var(--coral-dark); background: var(--coral-soft); }
.quick-icon.icon-gold { color: #7a5316; background: #f7e7c8; }
.quick-icon.icon-green { color: var(--green); background: var(--green-soft); }
.quick-icon.icon-directory { color: #fff; background: var(--navy-800); }
.quick-icon svg { width: 22px; height: 22px; }
.quick-card > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; }
.quick-card strong { color: var(--ink); font-size: 13px; }
.quick-card small { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.quick-arrow { width: 20px; height: 20px; margin-left: auto; color: var(--muted-light); }
.coming-badge { display: inline-flex; align-items: center; width: max-content; padding: 5px 7px; color: var(--amber); border-radius: 999px; background: var(--amber-soft); font-size: 8px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.quick-card .coming-badge { position: absolute; right: 11px; top: 9px; }
.quick-card .restricted-badge { position: absolute; right: 11px; top: 9px; display: inline-flex; padding: 5px 7px; color: var(--navy-800); border-radius: 999px; background: var(--blue-soft); font-size: 7px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.companion-apps-section .section-title-row { align-items: start; }
.companion-apps-section .section-title-row p { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.companion-app-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.companion-app-card { position: relative; min-height: 220px; display: flex; flex-direction: column; align-items: flex-start; padding: 20px; overflow: hidden; color: #fff; border: 1px solid rgba(255,255,255,.14); border-radius: 23px; box-shadow: 0 17px 38px rgba(32,17,64,.17); text-decoration: none; isolation: isolate; transition: transform .2s ease, box-shadow .2s ease; }
.companion-app-card::before, .companion-app-card::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.companion-app-card::before { width: 150px; height: 150px; right: -76px; top: -76px; border: 1px solid rgba(255,255,255,.16); box-shadow: 0 0 0 22px rgba(255,255,255,.035); }
.companion-app-card::after { width: 100px; height: 100px; left: -65px; bottom: -66px; background: rgba(255,255,255,.05); }
.companion-app-card:hover { transform: translateY(-3px); box-shadow: 0 23px 46px rgba(32,17,64,.24); }
.companion-app-card:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; }
.companion-events { background: radial-gradient(circle at 90% 8%, rgba(217,70,239,.42), transparent 35%), linear-gradient(145deg, #5b21b6, #24104f); }
.companion-checkin { background: radial-gradient(circle at 92% 6%, rgba(209,161,86,.34), transparent 37%), linear-gradient(145deg, #173d39, #071c1a); }
.companion-app-badge { position: absolute; right: 16px; top: 16px; max-width: calc(100% - 88px); padding: 6px 9px; overflow: hidden; color: rgba(255,255,255,.78); border: 1px solid rgba(255,255,255,.13); border-radius: 999px; background: rgba(255,255,255,.08); font-size: 8px; font-weight: 850; letter-spacing: .05em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.companion-app-icon { width: 52px; height: 52px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; border-radius: 17px; background: rgba(255,255,255,.13); box-shadow: inset 0 1px 0 rgba(255,255,255,.16); }
.companion-checkin .companion-app-icon { color: var(--navy-900); background: linear-gradient(145deg, #f7d89f, #d1a156); }
.companion-app-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.companion-app-copy { display: flex; flex-direction: column; margin-top: 19px; }
.companion-app-copy strong { color: #fff; font-size: 17px; letter-spacing: -.025em; }
.companion-app-copy small { max-width: 33ch; margin-top: 7px; color: rgba(255,255,255,.67); font-size: 11px; line-height: 1.55; }
.companion-app-action { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 18px; color: #fff; font-size: 10px; font-weight: 850; }
.companion-app-action svg { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.inspiration-card { position: relative; min-height: 155px; margin-top: 37px; padding: 27px 32px; overflow: hidden; color: var(--navy-900); border-radius: 22px; background: var(--warm); }
.quote-mark { position: absolute; left: 20px; top: 3px; color: var(--coral); font: 700 72px/1 Georgia, serif; opacity: .25; }
.inspiration-card blockquote { position: relative; max-width: 510px; margin: 15px 0 9px; font: 650 21px/1.45 Georgia, serif; }
.inspiration-card cite { color: var(--coral-dark); font-size: 10px; font-style: normal; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.inspiration-shape { position: absolute; width: 130px; height: 130px; right: -20px; top: 15px; border: 18px solid rgba(209,161,86,.13); border-radius: 50%; }
.future-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.future-row > div { display: flex; flex-direction: column; align-items: flex-start; padding: 17px; border: 1px solid var(--line); border-radius: 17px; background: #fff; }
.future-icon { width: 37px; height: 37px; display: grid; place-items: center; margin-bottom: 13px; color: var(--navy-700); border-radius: 12px; background: #f1f4f7; }
.future-icon svg { width: 19px; height: 19px; }
.future-row strong { font-size: 12px; }
.future-row small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.bottom-nav { position: fixed; z-index: 50; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); width: min(calc(100% - 24px), 700px); min-height: 68px; display: grid; grid-template-columns: repeat(5, 1fr); padding: 7px; transform: translateX(-50%); border: 1px solid rgba(7,28,25,.1); border-radius: 22px; background: rgba(255,253,249,.95); box-shadow: 0 18px 45px rgba(7,28,25,.18); backdrop-filter: blur(18px); }
.bottom-nav a { position: relative; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #7c8797; border-radius: 16px; font-size: 9px; font-weight: 750; text-decoration: none; }
.bottom-nav a svg { width: 21px; height: 21px; }
.bottom-nav a.active { color: var(--navy-900); background: #f2f4f6; }
.bottom-nav a.active::before { content: ""; position: absolute; top: 4px; width: 17px; height: 3px; border-radius: 99px; background: var(--coral); }

.page-heading { margin: 3px 0 26px; }
.page-heading h1 { margin: 7px 0 7px; color: var(--navy-900); font-size: clamp(32px, 5vw, 46px); letter-spacing: -.055em; }
.page-heading p { max-width: 55ch; margin: 0; color: var(--muted); line-height: 1.55; }
.back-link { width: max-content; display: flex; align-items: center; gap: 4px; margin-bottom: 21px; color: var(--muted); font-size: 11px; font-weight: 750; text-decoration: none; }
.back-link svg { width: 17px; height: 17px; }
.profile-form { display: grid; gap: 16px; }
.form-section-card, .account-card { padding: clamp(21px, 4vw, 31px); border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow-sm); }
.form-section-title, .account-card-title { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.number-icon { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; color: var(--coral-dark); border-radius: 12px; background: var(--coral-soft); font-size: 11px; font-weight: 900; }
.number-icon svg { width: 19px; height: 19px; }
.form-section-title h2, .account-card-title h2 { margin: 1px 0 4px; color: var(--navy-900); font-size: 16px; letter-spacing: -.02em; }
.form-section-title p, .account-card-title p { margin: 0; color: var(--muted); font-size: 11px; }
.profile-save-bar { position: sticky; z-index: 10; bottom: 92px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,253,249,.95); box-shadow: 0 12px 35px rgba(7,28,25,.14); backdrop-filter: blur(14px); }
.profile-save-bar > span { display: flex; flex-direction: column; }
.profile-save-bar strong { font-size: 12px; }
.profile-save-bar small { margin-top: 3px; color: var(--muted); font-size: 9px; }

.clan-summary { display: flex; align-items: center; gap: 13px; margin-bottom: 14px; padding: 17px 19px; color: #fff; border-radius: 19px; background: var(--navy-900); box-shadow: 0 15px 34px rgba(7,28,25,.17); }
.clan-pin { width: 43px; height: 43px; display: grid; place-items: center; flex: 0 0 auto; color: var(--coral); border-radius: 14px; background: rgba(255,255,255,.07); }
.clan-pin svg { width: 22px; height: 22px; }
.clan-summary > div { min-width: 0; display: flex; flex-direction: column; }
.clan-summary > div span { color: rgba(255,255,255,.5); font-size: 9px; font-weight: 750; text-transform: uppercase; letter-spacing: .1em; }
.clan-summary strong { margin-top: 3px; overflow: hidden; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.clan-count { margin-left: auto; padding: 6px 9px; color: #f0cf98; border-radius: 999px; background: rgba(209,161,86,.13); font-size: 9px; font-weight: 800; white-space: nowrap; }
.clan-search { position: relative; margin-bottom: 15px; }
.clan-search svg { position: absolute; left: 15px; top: 50%; width: 19px; height: 19px; color: var(--muted-light); transform: translateY(-50%); }
.clan-search input { width: 100%; min-height: 50px; padding: 11px 14px 11px 44px; color: var(--ink); border: 1px solid var(--line-strong); border-radius: 14px; outline: 0; background: #fff; }
.clan-search input:focus { border-color: var(--coral); box-shadow: 0 0 0 4px rgba(209,161,86,.14); }
.clan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.clan-member-card { position: relative; min-height: 108px; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; align-items: center; padding: 15px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); }
.clan-photo-button, .clan-avatar { width: 48px; height: 48px; grid-row: 1 / 3; display: grid; place-items: center; border-radius: 16px; color: #fff; background: var(--navy-800); font-size: 17px; font-weight: 850; }
.clan-photo-button { position: relative; overflow: hidden; padding: 0; border: 0; cursor: zoom-in; }
.clan-photo-button img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .2s ease; }
.clan-photo-button:hover img { transform: scale(1.06); }
.clan-photo-zoom { position: absolute; right: 2px; bottom: 2px; width: 18px; height: 18px; display: grid; place-items: center; color: #fff; border: 1px solid rgba(255,255,255,.56); border-radius: 7px; background: rgba(7,28,25,.78); backdrop-filter: blur(5px); }
.clan-photo-zoom svg { width: 11px; height: 11px; stroke-width: 2; }
.clan-member-copy { min-width: 0; padding-right: 90px; }
.clan-member-copy h2 { margin: 0; overflow: hidden; color: var(--navy-900); font-size: 12px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.clan-member-copy p { margin: 3px 0 0; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.whatsapp-button { position: absolute; right: 13px; bottom: 14px; display: inline-flex; align-items: center; gap: 5px; padding: 7px 8px; color: #177e58; border-radius: 9px; background: var(--green-soft); font-size: 8px; font-weight: 850; text-decoration: none; }
.whatsapp-button svg { width: 15px; height: 15px; }
.clan-no-results { min-height: 190px; margin-top: 14px; border: 1px dashed var(--line-strong); border-radius: 18px; background: #fff; }
.clan-empty-card { min-height: 360px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 35px; text-align: center; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow-sm); }
.clan-empty-icon { width: 64px; height: 64px; display: grid; place-items: center; color: var(--coral-dark); border-radius: 20px; background: var(--coral-soft); }
.clan-empty-icon svg { width: 31px; height: 31px; }
.clan-empty-card h2 { margin: 18px 0 7px; color: var(--navy-900); font-size: 21px; }
.clan-empty-card p { max-width: 36ch; margin: 0 0 20px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.clan-access-card { min-height: 350px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: clamp(28px, 6vw, 48px); text-align: center; border: 1px solid #ead9ba; border-radius: 23px; background: radial-gradient(circle at 50% 0, rgba(209,161,86,.14), transparent 34%), #fff; box-shadow: var(--shadow-sm); }
.clan-access-icon { width: 67px; height: 67px; display: grid; place-items: center; margin-bottom: 19px; color: var(--coral-dark); border: 1px solid #ead3a9; border-radius: 21px; background: var(--coral-soft); }
.clan-access-icon svg { width: 31px; height: 31px; }
.clan-access-card h2 { margin: 7px 0 8px; color: var(--navy-900); font-size: clamp(23px, 4vw, 30px); letter-spacing: -.04em; }
.clan-access-card > p { max-width: 48ch; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.clan-access-status { display: inline-flex; align-items: center; gap: 7px; margin-top: 22px; padding: 9px 11px; color: #7a5316; border-radius: 11px; background: var(--coral-soft); font-size: 9px; font-weight: 800; }
.clan-access-status svg { width: 16px; height: 16px; flex: 0 0 auto; }
.photo-viewer { width: min(calc(100% - 28px), 720px); max-width: none; max-height: calc(100dvh - 28px); margin: auto; padding: 0; overflow: hidden; color: #fff; border: 1px solid rgba(255,255,255,.13); border-radius: 25px; outline: 0; background: var(--navy-950); box-shadow: 0 32px 90px rgba(0,0,0,.55); }
.photo-viewer[open] { display: block; animation: photoViewerIn .22s cubic-bezier(.2,.8,.2,1) both; }
.photo-viewer::backdrop { background: rgba(3,15,13,.82); backdrop-filter: blur(8px); }
.photo-viewer-panel { padding: 18px; }
.photo-viewer-panel header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 15px; padding: 2px 2px 0; }
.photo-viewer-panel h2 { margin: 4px 0 0; color: #fff; font-size: 16px; }
.photo-viewer-panel header button { width: 41px; height: 41px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; border: 1px solid rgba(255,255,255,.14); border-radius: 13px; background: rgba(255,255,255,.07); cursor: pointer; }
.photo-viewer-panel header button svg { width: 19px; height: 19px; }
.photo-viewer-image { min-height: 280px; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(255,255,255,.09); border-radius: 18px; background: #03110f; }
.photo-viewer-image img { display: block; width: 100%; height: auto; max-height: calc(100dvh - 180px); object-fit: contain; }
.photo-viewer-panel > p { margin: 12px 3px 1px; color: rgba(255,255,255,.47); font-size: 9px; text-align: center; }
.directory-heading .back-link { margin-bottom: 25px; }
.directory-toolbar { position: sticky; z-index: 8; top: 82px; display: grid; gap: 11px; margin-bottom: 20px; padding: 15px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.96); box-shadow: var(--shadow-sm); backdrop-filter: blur(14px); }
.directory-toolbar-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.directory-summary { min-width: 170px; display: flex; align-items: center; gap: 11px; }
.directory-summary-icon { width: 45px; height: 45px; display: grid; place-items: center; flex: 0 0 auto; color: var(--navy-800); border-radius: 14px; background: var(--blue-soft); }
.directory-summary-icon svg { width: 22px; height: 22px; }
.directory-summary > span:last-child { display: flex; flex-direction: column; }
.directory-summary strong { color: var(--navy-900); font-size: 21px; line-height: 1; }
.directory-summary small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.directory-filter-trigger { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 13px; color: var(--navy-800); border: 1px solid var(--line); border-radius: 14px; background: var(--canvas); font: inherit; font-size: 11px; font-weight: 850; cursor: pointer; }
.directory-filter-trigger svg { width: 19px; height: 19px; }
.directory-filter-trigger b { min-width: 21px; height: 21px; display: inline-grid; place-items: center; padding: 0 5px; color: #fff; border-radius: 999px; background: var(--coral-dark); font-size: 9px; }
.directory-filter-trigger.is-active { color: #fff; border-color: var(--navy-900); background: var(--navy-900); }
.directory-search { position: relative; display: block; }
.directory-search > svg { position: absolute; left: 15px; top: 50%; z-index: 1; width: 19px; height: 19px; color: var(--muted-light); transform: translateY(-50%); pointer-events: none; }
.directory-search input { min-height: 52px; padding-left: 45px; border-radius: 15px; background: var(--canvas); font-size: 13px; }
.directory-active-filters { display: flex; gap: 7px; overflow-x: auto; padding: 1px 0 2px; scrollbar-width: none; }
.directory-active-filters::-webkit-scrollbar { display: none; }
.directory-active-filters button { min-height: 34px; display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; padding: 7px 10px; color: #6b4511; border: 1px solid #ead3ab; border-radius: 999px; background: #fff6e6; font: inherit; font-size: 9px; font-weight: 800; cursor: pointer; }
.directory-active-filters svg { width: 14px; height: 14px; }
.directory-filter-dialog { width: min(calc(100% - 28px), 620px); max-width: none; max-height: calc(100dvh - 28px); margin: auto; padding: 0; overflow: hidden; color: var(--ink); border: 0; border-radius: 27px; outline: 0; background: #fff; box-shadow: 0 34px 95px rgba(0,0,0,.35); }
.directory-filter-dialog[open] { display: block; animation: photoViewerIn .22s cubic-bezier(.2,.8,.2,1) both; }
.directory-filter-dialog::backdrop { background: rgba(3,15,13,.68); backdrop-filter: blur(7px); }
.directory-filter-panel { max-height: calc(100dvh - 28px); display: flex; flex-direction: column; overflow: hidden; }
.directory-filter-panel > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 23px 24px 18px; border-bottom: 1px solid var(--line); }
.directory-filter-panel > header h2 { margin: 5px 0 0; color: var(--navy-900); font-size: 22px; }
.directory-filter-panel > header p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.directory-filter-panel > header button { width: 44px; height: 44px; display: grid; place-items: center; flex: 0 0 auto; color: var(--navy-900); border: 1px solid var(--line); border-radius: 14px; background: var(--canvas); cursor: pointer; }
.directory-filter-panel > header button svg { width: 19px; height: 19px; }
.directory-filter-content { display: grid; gap: 23px; padding: 22px 24px 26px; overflow-y: auto; }
.directory-filter-group { min-width: 0; margin: 0; padding: 0; border: 0; }
.directory-filter-group legend, .directory-filter-select > span { display: block; margin-bottom: 10px; color: var(--navy-900); font-size: 12px; font-weight: 850; }
.directory-segmented, .directory-age-grid { display: grid; gap: 8px; }
.directory-segmented { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.directory-age-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.directory-segmented label, .directory-age-grid label { position: relative; min-width: 0; }
.directory-segmented input, .directory-age-grid input { position: absolute; opacity: 0; pointer-events: none; }
.directory-segmented span, .directory-age-grid span { min-height: 46px; display: grid; place-items: center; padding: 9px; color: var(--muted); border: 1px solid var(--line); border-radius: 14px; background: var(--canvas); font-size: 10px; font-weight: 800; text-align: center; cursor: pointer; }
.directory-segmented input:checked + span, .directory-age-grid input:checked + span { color: #fff; border-color: var(--navy-900); background: var(--navy-900); box-shadow: 0 8px 18px rgba(8,39,34,.18); }
.directory-segmented input:focus-visible + span, .directory-age-grid input:focus-visible + span { outline: 3px solid rgba(209,161,86,.35); outline-offset: 2px; }
.directory-filter-select select { width: 100%; min-height: 52px; padding: 12px 42px 12px 14px; border: 1px solid var(--line); border-radius: 14px; color: var(--navy-900); background-color: var(--canvas); font: inherit; font-size: 12px; }
.directory-filter-panel > footer { display: grid; grid-template-columns: 1fr 1.25fr; gap: 10px; padding: 15px 24px calc(15px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; box-shadow: 0 -9px 25px rgba(11,43,38,.06); }
.directory-filter-panel > footer .button, .directory-filter-clear { min-height: 50px; }
.directory-filter-clear { color: var(--navy-800); border: 0; border-radius: 14px; background: var(--canvas); font: inherit; font-size: 11px; font-weight: 850; cursor: pointer; }
.password-reset-history { margin: 0 0 16px; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow-sm); }
.password-reset-history > summary { min-height: 82px; display: grid; grid-template-columns: 46px minmax(0, 1fr) auto 20px; align-items: center; gap: 13px; padding: 15px 18px; cursor: pointer; list-style: none; }
.password-reset-history > summary::-webkit-details-marker { display: none; }
.password-history-icon { width: 46px; height: 46px; display: grid; place-items: center; color: var(--navy-900); border-radius: 14px; background: #f5e7ce; }
.password-history-icon svg { width: 22px; height: 22px; }
.password-reset-history > summary > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; }
.password-reset-history > summary small { color: var(--coral-dark); font-size: 8px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.password-reset-history > summary strong { margin-top: 3px; color: var(--navy-900); font-size: 14px; }
.password-reset-history > summary em { margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 9px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.password-reset-history > summary > b { min-width: 31px; display: grid; place-items: center; padding: 7px; color: var(--green); border-radius: 999px; background: var(--green-soft); font-size: 9px; }
.password-history-arrow { width: 19px; height: 19px; color: var(--muted); transition: transform .18s ease; }
.password-reset-history[open] .password-history-arrow { transform: rotate(180deg); }
.password-history-list { max-height: 370px; display: grid; gap: 8px; overflow-y: auto; padding: 4px 14px 14px; border-top: 1px solid var(--line); scrollbar-color: var(--line-strong) transparent; }
.password-history-empty { margin: 10px 0 0; padding: 22px 15px; color: var(--muted); border-radius: 14px; background: var(--canvas); font-size: 10px; text-align: center; }
.password-history-item { min-width: 0; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 12px; border: 1px solid var(--line); border-radius: 15px; background: var(--canvas); }
.password-history-item > span { width: 42px; height: 42px; display: grid; place-items: center; color: var(--green); border-radius: 13px; background: var(--green-soft); }
.password-history-item > span svg { width: 20px; height: 20px; }
.password-history-item > div { min-width: 0; display: flex; flex-direction: column; }
.password-history-item > div strong { overflow: hidden; color: var(--navy-900); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.password-history-item > div small { margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.password-history-item > div em { margin-top: 4px; color: var(--muted-light); font-size: 8px; font-style: normal; }
.password-history-item time { display: flex; align-items: flex-end; flex-direction: column; }
.password-history-item time strong { color: var(--navy-900); font-size: 9px; }
.password-history-item time small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.member-directory-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.member-directory-card { min-width: 0; min-height: 116px; display: grid; grid-template-columns: 64px minmax(0, 1fr) 24px; align-items: center; gap: 14px; padding: 16px; color: var(--ink); border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow-sm); text-align: left; cursor: pointer; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.member-directory-card:hover { transform: translateY(-2px); border-color: #d8bd90; box-shadow: var(--shadow-md); }
.member-directory-card:focus-visible { outline: 3px solid rgba(209,161,86,.3); outline-offset: 2px; }
.member-directory-photo { position: relative; width: 64px; height: 64px; display: grid; place-items: center; color: var(--navy-900); border: 3px solid #fff; border-radius: 19px; background: linear-gradient(145deg, #f5d9a5, var(--coral-soft)); box-shadow: 0 8px 18px rgba(7,28,25,.13); font-size: 20px; font-weight: 900; }
.member-directory-photo > img, .member-directory-photo > span { width: 100%; height: 100%; display: grid; place-items: center; object-fit: cover; overflow: hidden; border-radius: 16px; }
.member-directory-photo > i { position: absolute; right: -3px; bottom: -3px; width: 14px; height: 14px; border: 3px solid #fff; border-radius: 50%; background: #22a06b; }
.member-directory-copy { min-width: 0; display: flex; flex-direction: column; }
.member-directory-copy > strong { overflow: hidden; color: var(--navy-900); font-size: 14px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.member-directory-copy > small { margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.member-directory-copy > em { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; font-style: normal; }
.member-directory-copy > em span, .member-directory-copy > em b { max-width: 100%; display: inline-flex; overflow: hidden; padding: 5px 7px; border-radius: 999px; font-size: 8px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.member-directory-copy > em span { color: #765018; background: #f8ebd2; }
.member-directory-copy > em b { color: var(--green); background: var(--green-soft); }
.member-directory-arrow { width: 21px; height: 21px; color: var(--coral-dark); }
.directory-no-results { min-height: 260px; border: 1px dashed var(--line-strong); border-radius: 20px; background: #fff; }
.directory-empty-clear { min-height: 44px; margin-top: 15px; padding: 10px 14px; color: #fff; border: 0; border-radius: 13px; background: var(--navy-900); font: inherit; font-size: 10px; font-weight: 850; cursor: pointer; }
.member-detail-dialog { width: min(calc(100% - 28px), 680px); max-width: none; max-height: calc(100dvh - 28px); margin: auto; padding: 0; overflow: hidden; color: var(--ink); border: 0; border-radius: 27px; outline: 0; background: #fff; box-shadow: 0 34px 95px rgba(0,0,0,.4); }
.member-detail-dialog[open] { display: block; animation: photoViewerIn .22s cubic-bezier(.2,.8,.2,1) both; }
.member-detail-dialog::backdrop { background: rgba(3,15,13,.79); backdrop-filter: blur(8px); }
.member-detail-panel { max-height: calc(100dvh - 28px); overflow-y: auto; background: #fff; }
.member-detail-panel > header { position: sticky; z-index: 2; top: 0; min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 22px; color: #fff; background: var(--navy-950); }
.member-detail-panel > header h2 { margin: 4px 0 0; overflow: hidden; color: #fff; font-size: 18px; text-overflow: ellipsis; white-space: nowrap; }
.member-detail-panel > header button { width: 43px; height: 43px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; border: 1px solid rgba(255,255,255,.14); border-radius: 13px; background: rgba(255,255,255,.08); cursor: pointer; }
.member-detail-panel > header button svg { width: 19px; height: 19px; }
.member-detail-identity { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; gap: 18px; padding: 24px 24px 21px; color: #fff; background: radial-gradient(circle at 90% 0, rgba(209,161,86,.24), transparent 34%), var(--navy-900); }
.member-detail-photo { position: relative; width: 92px; height: 92px; display: grid; place-items: center; color: var(--navy-900); border: 4px solid rgba(255,255,255,.9); border-radius: 27px; background: linear-gradient(145deg, #f4d292, var(--coral)); box-shadow: 0 14px 30px rgba(0,0,0,.25); font-size: 31px; font-weight: 900; }
.member-detail-photo > img, .member-detail-photo > span { width: 100%; height: 100%; display: grid; place-items: center; object-fit: cover; overflow: hidden; border-radius: 23px; }
.member-detail-photo > i { position: absolute; right: -4px; bottom: -4px; width: 18px; height: 18px; border: 4px solid var(--navy-900); border-radius: 50%; background: #35c98d; }
.member-detail-identity > span:last-child { min-width: 0; display: flex; flex-direction: column; }
.member-detail-identity small { color: #f3d6a4; font-size: 9px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.member-detail-identity strong { margin-top: 7px; color: #fff; font-size: 20px; line-height: 1.25; }
.member-detail-identity em { margin-top: 5px; color: rgba(255,255,255,.58); font-size: 11px; font-style: normal; }
.member-detail-data { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; padding: 21px 24px 10px; }
.member-detail-data > div { min-width: 0; padding: 13px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--canvas); }
.member-detail-data > div.member-detail-wide { grid-column: 1 / 3; }
.member-detail-data dt { color: var(--muted); font-size: 8px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.member-detail-data dd { margin: 6px 0 0; overflow-wrap: anywhere; color: var(--navy-900); font-size: 12px; font-weight: 750; }
.member-detail-leadership { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 12px; margin: 10px 24px 0; padding: 15px; color: #fff; border-radius: 16px; background: linear-gradient(135deg, #123a34, var(--navy-900)); }
.member-detail-leadership > span { width: 44px; height: 44px; display: grid; place-items: center; color: #f0cf98; border-radius: 13px; background: rgba(209,161,86,.14); }
.member-detail-leadership svg { width: 21px; height: 21px; }
.member-detail-leadership div { min-width: 0; display: flex; flex-direction: column; }
.member-detail-leadership small { color: rgba(255,255,255,.52); font-size: 8px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.member-detail-leadership strong { margin-top: 5px; color: #fff; font-size: 11px; line-height: 1.45; }
.member-password-admin { margin: 10px 24px 0; padding: 16px; border: 1px solid #ecd7b2; border-radius: 17px; background: linear-gradient(145deg, #fffaf1, #fff); }
.member-password-admin > header { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: start; gap: 12px; }
.member-password-admin > header > span { width: 44px; height: 44px; display: grid; place-items: center; color: #8a5a10; border-radius: 13px; background: #f7e7c8; }
.member-password-admin > header svg { width: 21px; height: 21px; }
.member-password-admin > header > div { min-width: 0; display: flex; flex-direction: column; }
.member-password-admin > header small { color: #9a691b; font-size: 8px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.member-password-admin > header strong { margin-top: 4px; color: var(--navy-900); font-size: 13px; }
.member-password-admin > header p { margin: 5px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.member-password-admin form { display: grid; gap: 10px; margin-top: 14px; }
.member-password-confirm { min-height: 43px; display: flex; align-items: center; gap: 10px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.member-password-confirm input { width: 18px; height: 18px; flex: 0 0 auto; margin: 0; accent-color: var(--coral-dark); }
.member-password-confirm span { color: var(--ink); font-size: 9px; font-weight: 700; line-height: 1.4; }
.member-password-admin form > button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 14px; color: #fff; border: 0; border-radius: 13px; background: linear-gradient(135deg, #a16317, #71400a); font: inherit; font-size: 10px; font-weight: 850; box-shadow: 0 10px 22px rgba(113,64,10,.17); cursor: pointer; }
.member-password-admin form > button svg { width: 18px; height: 18px; }
.member-password-admin form > button:disabled { color: #918b82; background: #e9e5de; box-shadow: none; cursor: not-allowed; }
.member-password-admin.is-pending { border-color: #bcdccc; background: var(--green-soft); }
.member-password-admin.is-pending > header > span { color: var(--green); background: #fff; }
.member-detail-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 18px 24px 8px; }
.member-detail-actions a { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex: 1 1 120px; padding: 10px 13px; color: var(--navy-800); border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 10px; font-weight: 850; text-decoration: none; }
.member-detail-actions a[data-member-whatsapp-action] { color: var(--green); border-color: #bcdccc; background: var(--green-soft); }
.member-detail-actions svg { width: 17px; height: 17px; }
.member-detail-privacy { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 7px 24px 0; padding: 0 0 22px; color: var(--muted); font-size: 8px; text-align: center; }
.member-detail-privacy svg { width: 15px; height: 15px; }
@keyframes photoViewerIn { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }

.resource-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.resource-card { position: relative; min-height: 190px; display: block; padding: 22px; overflow: hidden; color: inherit; border: 1px solid var(--line); border-radius: 21px; background: #fff; box-shadow: var(--shadow-sm); text-decoration: none; }
.resource-card .coming-badge { position: absolute; right: 17px; top: 17px; }
.resource-icon { width: 50px; height: 50px; display: grid; place-items: center; color: var(--coral-dark); border-radius: 16px; background: var(--coral-soft); }
.resource-icon svg { width: 24px; height: 24px; }
.resource-card:nth-child(even) .resource-icon { background: var(--blue-soft); }
.resource-card h2 { margin: 22px 0 7px; color: var(--navy-900); font-size: 17px; }
.resource-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.resource-card-active { transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.resource-card-active:hover { transform: translateY(-2px); border-color: #d8bd90; box-shadow: var(--shadow-md); }
.available-badge { position: absolute; right: 17px; top: 17px; display: inline-flex; padding: 5px 8px; color: #176b4e; border-radius: 999px; background: var(--green-soft); font-size: 8px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.resource-link-label { display: inline-flex; align-items: center; gap: 6px; margin-top: 17px; color: var(--navy-800); font-size: 10px; font-weight: 850; }
.resource-link-label svg { width: 15px; height: 15px; }
.feedback-card { display: flex; align-items: center; gap: 16px; margin-top: 18px; padding: 20px; color: #fff; border-radius: 20px; background: var(--navy-900); }
.feedback-icon { width: 45px; height: 45px; display: grid; place-items: center; flex: 0 0 auto; color: var(--coral); border-radius: 14px; background: rgba(255,255,255,.07); font-size: 22px; }
.feedback-card h2 { margin: 0 0 4px; font-size: 15px; }
.feedback-card p { margin: 0; color: rgba(255,255,255,.6); font-size: 10px; line-height: 1.45; }

/* Agenda */
.agenda-summary { min-height: 82px; display: flex; align-items: center; gap: 13px; margin-bottom: 16px; padding: 16px 18px; color: #fff; border-radius: 20px; background: linear-gradient(135deg, var(--navy-900), #17463e); box-shadow: 0 15px 34px rgba(7,28,25,.17); }
.agenda-summary-icon { width: 47px; height: 47px; display: grid; place-items: center; flex: 0 0 auto; color: #f0cb8d; border: 1px solid rgba(209,161,86,.22); border-radius: 15px; background: rgba(209,161,86,.11); }
.agenda-summary-icon svg { width: 23px; height: 23px; }
.agenda-summary > div { min-width: 0; display: flex; flex-direction: column; }
.agenda-summary > div span { color: rgba(255,255,255,.5); font-size: 8px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.agenda-summary > div strong { margin-top: 4px; overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.agenda-summary-count { min-width: 58px; display: flex; flex-direction: column; align-items: center; margin-left: auto; padding: 8px 10px; color: #efd39f; border-radius: 13px; background: rgba(255,255,255,.07); font-size: 8px; text-transform: uppercase; }
.agenda-summary-count strong { margin-bottom: 2px; color: #fff; font-size: 20px; line-height: 1; }
.agenda-calendar { padding: clamp(17px, 3.5vw, 25px); border: 1px solid var(--line); border-radius: 23px; background: #fff; box-shadow: var(--shadow-sm); }
.agenda-calendar-header { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 12px; margin-bottom: 20px; }
.agenda-calendar-header > a { width: 44px; height: 44px; display: grid; place-items: center; color: var(--navy-800); border: 1px solid var(--line); border-radius: 14px; background: var(--canvas); text-decoration: none; transition: border-color .16s ease, background .16s ease; }
.agenda-calendar-header > a:hover { border-color: #d6b77f; background: var(--coral-soft); }
.agenda-calendar-header > a svg { width: 20px; height: 20px; }
.agenda-calendar-header > div { text-align: center; }
.agenda-calendar-header span { color: var(--muted-light); font-size: 8px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.agenda-calendar-header h2 { margin: 3px 0 0; color: var(--navy-900); font-size: 18px; letter-spacing: -.03em; }
.agenda-weekdays, .agenda-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.agenda-weekdays { margin-bottom: 7px; }
.agenda-weekdays span { padding: 4px 0; color: var(--muted-light); text-align: center; font-size: 8px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.agenda-day, .agenda-day-empty { min-width: 0; aspect-ratio: 1; }
.agenda-day { position: relative; display: grid; place-items: center; padding: 0; color: var(--ink); border: 1px solid transparent; border-radius: 14px; background: transparent; cursor: pointer; transition: color .16s ease, border-color .16s ease, background .16s ease, transform .16s ease; }
.agenda-day:hover { border-color: var(--line-strong); background: var(--canvas); transform: translateY(-1px); }
.agenda-day > span { font-size: 12px; font-weight: 760; }
.agenda-day small { position: absolute; right: 3px; bottom: 3px; min-width: 17px; height: 17px; display: grid; place-items: center; color: #fff; border: 2px solid #fff; border-radius: 50%; background: var(--coral-dark); font-size: 7px; font-weight: 900; }
.agenda-day.has-events { color: var(--navy-900); background: var(--coral-soft); }
.agenda-day.is-today { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.agenda-day.is-selected { color: #fff; border-color: var(--navy-900); background: var(--navy-900); box-shadow: 0 8px 18px rgba(7,28,25,.2); }
.agenda-day.is-selected small { color: var(--navy-900); background: #f2cc8c; }
.agenda-calendar-legend { display: flex; justify-content: center; gap: 18px; margin-top: 17px; padding-top: 14px; border-top: 1px solid var(--line); }
.agenda-calendar-legend span { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 8px; font-weight: 700; }
.agenda-calendar-legend i { width: 9px; height: 9px; display: inline-block; border-radius: 3px; }
.legend-today { border: 1px solid var(--green); background: #fff; }
.legend-event { background: var(--coral-soft); box-shadow: inset 0 0 0 1px #efd7ad; }
.agenda-events-panel { margin-top: 18px; padding: clamp(18px, 4vw, 25px); border: 1px solid var(--line); border-radius: 23px; background: #fff; box-shadow: var(--shadow-sm); scroll-margin-top: 18px; }
.agenda-events-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.agenda-events-heading h2 { margin: 4px 0 0; color: var(--navy-900); font-size: 19px; letter-spacing: -.03em; }
.agenda-events-heading button { padding: 7px 10px; color: var(--navy-800); border: 1px solid var(--line-strong); border-radius: 10px; background: var(--canvas); font-size: 9px; font-weight: 800; cursor: pointer; }
.agenda-event-list { display: grid; gap: 9px; }
.agenda-event-card { position: relative; min-width: 0; display: grid; grid-template-columns: 48px 4px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 13px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.agenda-event-card time { width: 48px; height: 50px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--navy-900); border-radius: 13px; background: var(--canvas); }
.agenda-event-card time strong { font-size: 18px; line-height: 1; }
.agenda-event-card time span { margin-top: 4px; color: var(--muted); font-size: 7px; font-weight: 850; letter-spacing: .08em; }
.agenda-event-mark { align-self: stretch; width: 4px; border-radius: 99px; background: var(--coral); }
.agenda-event-copy { min-width: 0; }
.agenda-event-copy > span { color: var(--muted-light); font-size: 8px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.agenda-event-copy h3 { margin: 3px 0; overflow: hidden; color: var(--navy-900); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.agenda-event-copy p { margin: 0; color: var(--muted); font-size: 9px; }
.agenda-event-badge { max-width: 72px; overflow: hidden; padding: 6px 8px; color: var(--navy-800); border-radius: 9px; background: var(--blue-soft); font-size: 8px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.event-tone-1 .agenda-event-mark { background: #d1a156; }.event-tone-2 .agenda-event-mark { background: #0f7a5b; }.event-tone-3 .agenda-event-mark { background: #b85b44; }.event-tone-4 .agenda-event-mark { background: #507f91; }.event-tone-5 .agenda-event-mark { background: #7a6590; }.event-tone-6 .agenda-event-mark { background: #8b5b1f; }
.agenda-filter-empty { min-height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 25px; text-align: center; color: var(--muted); }
.agenda-filter-empty[hidden] { display: none; }
.agenda-filter-empty svg { width: 38px; height: 38px; margin-bottom: 13px; color: var(--coral-dark); }
.agenda-filter-empty strong { color: var(--navy-900); font-size: 15px; }
.agenda-filter-empty span { max-width: 38ch; margin-top: 5px; font-size: 10px; line-height: 1.5; }

/* Digital member card */
.member-card-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(250px, .65fr); gap: 16px; align-items: start; }
.digital-member-card { position: relative; min-width: 0; min-height: 330px; display: flex; flex-direction: column; overflow: hidden; padding: clamp(22px, 4vw, 30px); color: #fff; border: 1px solid rgba(209,161,86,.27); border-radius: 27px; background: radial-gradient(circle at 80% 10%, rgba(209,161,86,.23), transparent 28%), linear-gradient(145deg, #071c19, #123a34 68%, #0a2823); box-shadow: 0 23px 55px rgba(7,28,25,.24); isolation: isolate; }
.digital-member-card::before { content: ""; position: absolute; z-index: -1; inset: 0; opacity: .06; background-image: linear-gradient(rgba(255,255,255,.45) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.45) 1px, transparent 1px); background-size: 34px 34px; mask-image: linear-gradient(135deg, #000, transparent 72%); }
.digital-card-orbit { position: absolute; z-index: -1; border: 1px solid rgba(209,161,86,.14); border-radius: 50%; pointer-events: none; }
.digital-card-orbit.orbit-a { width: 260px; height: 260px; right: -120px; top: -145px; box-shadow: 0 0 0 27px rgba(209,161,86,.035), 0 0 0 57px rgba(209,161,86,.02); }
.digital-card-orbit.orbit-b { width: 145px; height: 145px; left: -90px; bottom: -100px; }
.digital-member-card header { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.digital-card-brand { display: flex; align-items: center; gap: 10px; }
.digital-card-brand > img { width: 43px; height: 43px; object-fit: cover; border: 1px solid rgba(255,255,255,.45); border-radius: 13px; background: #fff; }
.digital-card-brand > span { display: flex; flex-direction: column; }
.digital-card-brand strong { font-size: 17px; letter-spacing: .09em; }
.digital-card-brand small { margin-top: 3px; color: rgba(255,255,255,.52); font-size: 7px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.digital-card-status { display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px; color: #a9e9cd; border: 1px solid rgba(95,210,163,.22); border-radius: 999px; background: rgba(38,150,111,.1); font-size: 8px; font-weight: 850; text-transform: uppercase; letter-spacing: .05em; }
.digital-card-status i { width: 7px; height: 7px; border-radius: 50%; background: #5bd5a3; box-shadow: 0 0 0 4px rgba(91,213,163,.1); }
.digital-card-person { min-width: 0; display: grid; grid-template-columns: 78px minmax(0, 1fr); align-items: center; gap: 16px; margin: 25px 0 22px; }
.digital-card-person > img, .digital-card-avatar { width: 78px; height: 78px; display: grid; place-items: center; object-fit: cover; color: var(--navy-900); border: 2px solid rgba(255,255,255,.4); border-radius: 23px; background: linear-gradient(135deg, #efd39f, var(--coral)); box-shadow: 0 12px 28px rgba(0,0,0,.25); font-size: 29px; font-weight: 900; }
.digital-card-person > div { min-width: 0; }
.digital-card-person > div > span { color: #e8c585; font-size: 8px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.digital-card-person h2 { margin: 5px 0 4px; overflow: hidden; color: #fff; font-size: clamp(17px, 3vw, 24px); line-height: 1.08; letter-spacing: -.035em; text-overflow: ellipsis; white-space: nowrap; }
.digital-card-person p { margin: 0; overflow: hidden; color: rgba(255,255,255,.55); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.digital-card-data { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: auto 0 0; padding: 15px 0; border-top: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1); }
.digital-card-data > div { min-width: 0; padding: 0 12px; border-right: 1px solid rgba(255,255,255,.09); }
.digital-card-data > div:first-child { padding-left: 0; }.digital-card-data > div:last-child { padding-right: 0; border-right: 0; }
.digital-card-data dt { color: rgba(255,255,255,.4); font-size: 7px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.digital-card-data dd { margin: 5px 0 0; overflow: hidden; color: #fff; font-size: 9px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.digital-member-card footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; color: rgba(255,255,255,.36); font-size: 7px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.digital-member-card footer strong { color: #dfb66f; font-size: 10px; letter-spacing: .18em; }
.card-validation-panel { min-width: 0; padding: 23px; border: 1px solid var(--line); border-radius: 23px; background: #fff; box-shadow: var(--shadow-sm); }
.card-validation-icon { width: 49px; height: 49px; display: grid; place-items: center; margin-bottom: 18px; color: var(--green); border-radius: 16px; background: var(--green-soft); }
.card-validation-icon svg { width: 25px; height: 25px; }
.card-validation-panel h2 { margin: 5px 0 7px; color: var(--navy-900); font-size: 19px; letter-spacing: -.035em; }
.card-validation-panel > p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.card-validation-code { display: flex; flex-direction: column; margin: 18px 0 14px; padding: 12px; border: 1px dashed #d7c8ae; border-radius: 13px; background: var(--canvas); }
.card-validation-code span { color: var(--muted); font-size: 8px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.card-validation-code strong { margin-top: 5px; color: var(--navy-900); font-size: 12px; letter-spacing: .09em; }
.card-action-row { display: grid; gap: 8px; }
.card-action-row .button { min-height: 43px; width: 100%; padding-inline: 12px; font-size: 10px; }
.card-print-button { width: 100%; display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 12px; padding: 10px; color: var(--navy-700); border: 0; background: transparent; font-size: 9px; font-weight: 800; cursor: pointer; }
.card-print-button svg { width: 16px; height: 16px; }
.card-privacy-note { display: flex; align-items: flex-start; gap: 7px; margin-top: 11px; padding-top: 12px; color: var(--muted); border-top: 1px solid var(--line); font-size: 8px; line-height: 1.45; }
.card-privacy-note svg { width: 14px; height: 14px; flex: 0 0 auto; color: var(--green); }

/* Public card verification */
.verification-page { color: #fff; background: radial-gradient(circle at 70% 12%, rgba(209,161,86,.16), transparent 28%), var(--navy-950); }
.verification-shell { width: min(100% - 34px, 560px); min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; margin: 0 auto; padding: 34px 0; }
.verification-topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 26px; }
.verification-brand { width: max-content; color: #fff; text-decoration: none; }
.verification-close { min-height: 43px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex: 0 0 auto; padding: 9px 13px; color: #fff; border: 1px solid rgba(255,255,255,.2); border-radius: 13px; background: rgba(255,255,255,.08); font-size: 10px; font-weight: 850; cursor: pointer; backdrop-filter: blur(8px); }
.verification-close:hover { border-color: rgba(255,255,255,.38); background: rgba(255,255,255,.14); }
.verification-close:focus-visible { outline: 3px solid rgba(240,199,121,.45); outline-offset: 3px; }
.verification-close svg { width: 17px; height: 17px; }
.verification-card { position: relative; overflow: hidden; padding: clamp(25px, 6vw, 38px); color: var(--ink); border: 1px solid rgba(255,255,255,.12); border-radius: 28px; background: var(--surface); box-shadow: 0 28px 70px rgba(0,0,0,.3); }
.verification-card::after { content: ""; position: absolute; width: 160px; height: 160px; right: -95px; top: -95px; border: 25px solid rgba(15,122,91,.08); border-radius: 50%; }
.verification-seal { width: 63px; height: 63px; display: grid; place-items: center; margin-bottom: 23px; color: var(--green); border-radius: 20px; background: var(--green-soft); }
.verification-seal svg { width: 32px; height: 32px; }
.verification-card.is-invalid .verification-seal { color: var(--danger); background: var(--danger-soft); }
.verification-card h1 { margin: 7px 0 9px; color: var(--navy-900); font-size: clamp(31px, 7vw, 43px); letter-spacing: -.055em; }
.verification-card > p { max-width: 48ch; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.verified-member { display: grid; grid-template-columns: 62px minmax(0, 1fr); align-items: center; gap: 14px; margin-top: 26px; padding: 16px; border: 1px solid var(--line); border-radius: 17px; background: var(--canvas); }
.verified-member > img, .verified-member > span { width: 62px; height: 62px; display: grid; place-items: center; object-fit: cover; color: #fff; border-radius: 18px; background: var(--navy-800); font-size: 22px; font-weight: 900; }
.verified-member > div { min-width: 0; }
.verified-member small { color: var(--green); font-size: 8px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.verification-card.is-invalid .verified-member small { color: var(--danger); }
.verified-member strong { display: block; margin-top: 4px; overflow: hidden; color: var(--navy-900); font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.verified-member p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }
.verified-data { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 16px 0 0; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--line); }
.verified-data > div { min-width: 0; padding: 13px; background: #fff; }
.verified-data dt { color: var(--muted-light); font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.verified-data dd { margin: 5px 0 0; overflow: hidden; color: var(--navy-900); font-size: 10px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.verification-privacy { display: flex; align-items: flex-start; justify-content: center; gap: 8px; margin: 19px auto 0; color: rgba(255,255,255,.48); font-size: 9px; line-height: 1.5; text-align: center; }
.verification-privacy svg { width: 15px; height: 15px; flex: 0 0 auto; color: #d1a156; }
.account-identity { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; padding: 22px; color: #fff; border-radius: 21px; background: radial-gradient(circle at 86% 0, rgba(209,161,86,.2), transparent 33%), var(--navy-900); }
.account-photo { position: relative; width: 72px; height: 72px; display: grid; place-items: center; flex: 0 0 auto; overflow: visible; padding: 0; color: var(--navy-900); border: 2px solid rgba(255,255,255,.35); border-radius: 22px; background: var(--coral); box-shadow: 0 10px 26px rgba(0,0,0,.24); font-size: 26px; font-weight: 900; cursor: pointer; }
.account-photo > img, .account-photo > span { width: 100%; height: 100%; display: grid; place-items: center; object-fit: cover; overflow: hidden; border-radius: 20px; }
.account-photo > i { position: absolute; right: -7px; bottom: -7px; width: 28px; height: 28px; display: grid; place-items: center; color: var(--navy-900); border: 3px solid var(--navy-900); border-radius: 10px; background: #f0c779; box-shadow: 0 5px 13px rgba(0,0,0,.22); }
.account-photo > i svg { width: 13px; height: 13px; stroke-width: 2; }
.account-identity h2 { margin: 0 0 3px; font-size: 17px; }
.account-identity p { margin: 0 0 7px; color: rgba(255,255,255,.58); font-size: 11px; }
.account-identity div span { display: inline-flex; padding: 4px 7px; color: #91e2c0; border-radius: 99px; background: rgba(56,194,139,.11); font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.account-identity div span.account-profile-badge { margin-left: 5px; color: #f3d6a4; background: rgba(209,161,86,.14); }
.account-photo-action { min-height: 39px; display: inline-flex; align-items: center; gap: 7px; margin-left: auto; padding: 9px 11px; color: #f0ce94; border: 1px solid rgba(209,161,86,.25); border-radius: 12px; background: rgba(209,161,86,.1); font-size: 9px; font-weight: 850; cursor: pointer; }
.account-photo-action svg { width: 16px; height: 16px; }
.profile-photo-dialog { width: min(calc(100% - 28px), 760px); max-width: none; max-height: calc(100dvh - 28px); margin: auto; padding: 0; overflow: auto; color: var(--ink); border: 1px solid rgba(255,255,255,.15); border-radius: 26px; outline: 0; background: var(--surface); box-shadow: 0 34px 95px rgba(0,0,0,.5); }
.profile-photo-dialog[open] { display: block; animation: photoViewerIn .22s cubic-bezier(.2,.8,.2,1) both; }
.profile-photo-dialog::backdrop { background: rgba(3,15,13,.82); backdrop-filter: blur(9px); }
.profile-photo-form > header { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 21px; color: #fff; background: var(--navy-900); }
.profile-photo-form > header .eyebrow { color: #e8be78; }
.profile-photo-form > header h2 { margin: 4px 0 0; color: #fff; font-size: 18px; }
.profile-photo-form > header button { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; border: 1px solid rgba(255,255,255,.15); border-radius: 13px; background: rgba(255,255,255,.07); cursor: pointer; }
.profile-photo-form > header button svg { width: 19px; height: 19px; }
.profile-photo-editor { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(300px, 1.2fr); gap: 25px; align-items: center; padding: 25px; }
.profile-photo-preview { position: relative; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; color: var(--navy-900); border: 1px solid var(--line-strong); border-radius: 28px; background: linear-gradient(145deg, #f5e6cd, var(--coral)); box-shadow: inset 0 0 0 7px rgba(255,255,255,.42), 0 16px 35px rgba(7,28,25,.14); font-size: 64px; font-weight: 900; }
.profile-photo-preview img, .profile-photo-preview > span:not(.profile-photo-guide) { width: 100%; height: 100%; display: grid; place-items: center; object-fit: cover; }
.profile-photo-guide { position: absolute; inset: 10px; pointer-events: none; border: 1px solid rgba(255,255,255,.55); border-radius: 21px; box-shadow: 0 0 0 999px rgba(7,28,25,.035); }
.profile-photo-editor-copy h3 { margin: 0 0 6px; color: var(--navy-900); font-size: 18px; letter-spacing: -.03em; }
.profile-photo-editor-copy > p { margin: 0 0 17px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.profile-photo-sources { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.profile-photo-sources > button { min-width: 0; display: grid; grid-template-columns: 41px minmax(0, 1fr); align-items: center; gap: 3px 10px; padding: 12px; text-align: left; color: var(--ink); border: 1px solid var(--line); border-radius: 15px; background: #fff; cursor: pointer; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.profile-photo-sources > button:hover { transform: translateY(-1px); border-color: #d9bc88; background: var(--coral-soft); }
.profile-photo-sources > button > span { width: 41px; height: 41px; grid-row: 1 / 3; display: grid; place-items: center; color: var(--coral-dark); border-radius: 13px; background: var(--coral-soft); }
.profile-photo-sources > button:nth-child(2) > span { color: var(--green); background: var(--green-soft); }
.profile-photo-sources svg { width: 21px; height: 21px; }
.profile-photo-sources strong { min-width: 0; align-self: end; font-size: 10px; }
.profile-photo-sources small { min-width: 0; align-self: start; color: var(--muted); font-size: 8px; line-height: 1.35; }
.profile-photo-status { display: flex; flex-direction: column; margin-top: 12px; padding: 11px 12px; color: var(--green); border: 1px solid #cce7da; border-radius: 12px; background: var(--green-soft); }
.profile-photo-status.is-error { color: var(--danger); border-color: #efd0cd; background: var(--danger-soft); }
.profile-photo-status span { font-size: 9px; font-weight: 850; }
.profile-photo-status small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.profile-photo-form > footer { display: flex; justify-content: flex-end; gap: 9px; padding: 15px 21px max(15px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--canvas); }
.profile-photo-form > footer .button { min-width: 145px; }
.account-card { margin-bottom: 16px; }
.install-section .button { width: max-content; }
.installed-note { color: var(--green); font-size: 12px; font-weight: 750; }
.logout-button { min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 20px; color: var(--danger); border: 1px solid #f0d0cd; border-radius: 15px; background: #fff; font-size: 12px; font-weight: 800; text-decoration: none; }
.logout-button svg { width: 18px; height: 18px; }
.app-version { margin: 18px 0 0; color: var(--muted-light); text-align: center; font-size: 9px; }
.termination-link { min-height: 68px; display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 13px 15px; color: var(--danger); border: 1px solid #f0d0cd; border-radius: 16px; background: #fff; text-decoration: none; }
.termination-link > span:first-child { width: 39px; height: 39px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 12px; background: var(--danger-soft); }
.termination-link > span:first-child svg { width: 19px; height: 19px; }
.termination-link > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; }
.termination-link strong { font-size: 12px; }
.termination-link small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.termination-link > svg { width: 18px; height: 18px; margin-left: auto; color: var(--muted-light); }
.danger-heading .eyebrow { color: var(--danger); }
.termination-card { padding: clamp(20px, 4vw, 30px); border: 1px solid #ecd6d3; border-radius: 21px; background: #fff; box-shadow: var(--shadow-sm); }
.termination-title { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; }
.termination-title > span { width: 43px; height: 43px; display: grid; place-items: center; flex: 0 0 auto; color: var(--danger); border-radius: 14px; background: var(--danger-soft); }
.termination-title svg { width: 22px; height: 22px; }
.termination-title h2 { margin: 0 0 3px; color: var(--navy-900); font-size: 17px; }
.termination-title p { margin: 0; color: var(--muted); font-size: 10px; }
.termination-terms { max-height: 330px; overflow-y: auto; padding: 20px; border: 1px solid var(--line); border-radius: 15px; outline: 0; background: #f8f9fb; color: #455166; font-size: 12px; line-height: 1.65; }
.termination-terms:focus { border-color: var(--coral); box-shadow: 0 0 0 4px rgba(209,161,86,.12); }
.termination-terms h3 { margin: 22px 0 5px; color: var(--navy-900); font-size: 13px; }
.termination-terms p { margin: 0; }
.termination-terms ul { margin: 6px 0 0; padding-left: 20px; }
.termination-warning { display: flex; gap: 11px; padding: 13px; color: #7a5316; border: 1px solid #efd79f; border-radius: 12px; background: var(--amber-soft); }
.termination-warning svg { width: 21px; height: 21px; flex: 0 0 auto; }
.termination-warning p { display: flex; flex-direction: column; }
.termination-warning strong { margin-bottom: 2px; color: #68450f; }
.termination-end { display: flex; align-items: center; gap: 7px; margin-top: 23px; padding-top: 14px; color: var(--green); border-top: 1px solid var(--line); font-weight: 800; }
.termination-end svg { width: 18px; height: 18px; }
.termination-form { display: grid; gap: 16px; margin-top: 18px; transition: opacity .2s ease; }
.termination-form.is-locked { opacity: .52; }
.termination-agreement { display: flex; align-items: flex-start; gap: 11px; padding: 14px; color: var(--ink); border: 1px solid var(--line-strong); border-radius: 13px; background: #fff; font-size: 11px; font-weight: 700; line-height: 1.5; cursor: pointer; }
.termination-agreement:has(input:checked) { border-color: #e5a9a4; background: var(--danger-soft); }
.termination-agreement input { width: 18px; height: 18px; flex: 0 0 auto; margin: 1px 0 0; accent-color: var(--danger); }

/* Administration */
.admin-login-shell { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 1fr minmax(420px, 560px); color: var(--ink); background: var(--navy-900); }
.admin-login-brand { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(42px, 8vw, 110px); color: #fff; }
.admin-visual-icon { width: 82px; height: 82px; display: grid; place-items: center; margin-top: 80px; color: #1b0c05; border-radius: 27px; background: var(--coral); box-shadow: 0 22px 45px rgba(7,28,25,.22); }
.admin-visual-icon svg { width: 44px; height: 44px; }
.admin-login-brand h1 { margin: 24px 0 9px; font-size: clamp(38px, 5vw, 64px); letter-spacing: -.06em; }
.admin-login-brand p { max-width: 40ch; margin: 0; color: rgba(255,255,255,.6); line-height: 1.6; }
.admin-login-card { display: flex; flex-direction: column; justify-content: center; padding: clamp(35px, 7vw, 86px); background: #fff; }
.admin-login-card .back-link { position: absolute; top: 32px; }
.admin-page { background: #f2f4f7; }
.admin-frame { min-height: 100vh; }
.admin-topbar { height: 78px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(22px, 4vw, 60px); color: #fff; background: var(--navy-900); }
.admin-user { display: flex; align-items: center; gap: 17px; }
.admin-user > span { display: flex; flex-direction: column; align-items: flex-end; }
.admin-user strong { font-size: 12px; }
.admin-user small { margin-top: 2px; color: rgba(255,255,255,.52); font-size: 9px; }
.admin-user button { padding: 7px 10px; color: rgba(255,255,255,.75); border: 1px solid rgba(255,255,255,.14); border-radius: 9px; background: transparent; font-size: 10px; font-weight: 800; cursor: pointer; }
.admin-content { width: min(1480px, calc(100% - 48px)); margin: 0 auto; padding: 40px 0 70px; }
.admin-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.admin-heading h1 { margin: 7px 0 6px; color: var(--navy-900); font-size: clamp(34px, 4vw, 48px); letter-spacing: -.055em; }
.admin-heading p { margin: 0; color: var(--muted); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.stats-grid article { display: flex; align-items: center; gap: 13px; padding: 17px; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: var(--shadow-sm); }
.stat-icon { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 13px; }
.stat-icon svg { width: 21px; height: 21px; }
.stat-wait { color: var(--amber); background: var(--amber-soft); }
.stat-done { color: var(--green); background: var(--green-soft); }
.stat-today { color: #376ca2; background: var(--blue-soft); }
.stats-grid article > div { display: flex; flex-direction: column; }
.stats-grid strong { color: var(--navy-900); font-size: 24px; letter-spacing: -.04em; }
.stats-grid article > div span { color: var(--muted); font-size: 10px; }
.admin-grid { display: grid; grid-template-columns: minmax(300px, 390px) minmax(0, 1fr); align-items: start; gap: 18px; }
.admin-card { padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow-sm); }
.invite-form-card { position: sticky; top: 20px; }
.admin-card-heading { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 22px; }
.admin-card-heading h2 { margin: 1px 0 4px; color: var(--navy-900); font-size: 17px; }
.admin-card-heading p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.invite-dates-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.invite-dates-grid .form-field { min-width: 0; }
.invite-dates-grid label { min-height: 25px; display: flex; align-items: flex-end; }
.list-heading { justify-content: space-between; }
.share-link-card { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 20px; padding: 12px; border-radius: 13px; background: #f5f7f9; }
.share-link-card > div { min-width: 0; display: flex; flex-direction: column; }
.share-link-card span { color: var(--muted); font-size: 9px; }
.share-link-card strong { margin-top: 3px; overflow: hidden; color: var(--navy-800); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.share-link-card button { min-width: 66px; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 8px; color: var(--coral-dark); border: 0; border-radius: 9px; background: var(--coral-soft); font-size: 9px; font-weight: 800; cursor: pointer; }
.share-link-card button svg { width: 15px; height: 15px; }
.share-link-card button span { color: inherit; }
.admin-filters { display: grid; grid-template-columns: minmax(170px, 1fr) 150px auto; gap: 9px; margin-bottom: 17px; }
.search-box { position: relative; }
.search-box svg { position: absolute; left: 12px; top: 50%; width: 17px; height: 17px; color: var(--muted-light); transform: translateY(-50%); }
.admin-filters .search-box input { padding-left: 37px; }
.admin-filters input, .admin-filters select { min-height: 42px; padding-top: 8px; padding-bottom: 8px; font-size: 11px; }
.admin-filters .button { min-height: 42px; padding: 8px 14px; font-size: 11px; }
.access-list-card { min-width: 0; max-width: 100%; overflow: hidden; }
.access-table-wrap { width: 100%; min-width: 0; max-width: 100%; overflow-x: auto; overflow-y: hidden; contain: inline-size; overscroll-behavior-inline: contain; }
.access-table { width: 100%; border-collapse: collapse; font-size: 10px; }
.access-table th { padding: 10px 9px; color: var(--muted); border-bottom: 1px solid var(--line); text-align: left; font-size: 8px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.access-table td { padding: 13px 9px; border-bottom: 1px solid #edf0f3; vertical-align: middle; white-space: nowrap; }
.access-table td:first-child { min-width: 145px; }
.access-table td > strong { display: block; color: var(--navy-900); font-size: 11px; }
.access-table td > small { display: block; max-width: 150px; margin-top: 3px; overflow: hidden; color: var(--muted); text-overflow: ellipsis; }
.reception-date-form { min-width: 215px; display: grid; grid-template-columns: 137px auto; gap: 5px; align-items: center; }
.reception-date-form input[type="date"] { width: 137px; min-height: 34px; padding: 5px 7px; color: var(--navy-900); border: 1px solid var(--line-strong); border-radius: 9px; background: #fff; font-size: 9px; }
.reception-date-form button { min-height: 34px; padding: 6px 8px; color: var(--green); border: 1px solid #bcdccc; border-radius: 9px; background: var(--green-soft); font-size: 8px; font-weight: 850; cursor: pointer; }
.reception-date-form button:hover { border-color: #83c2a6; background: #dbf2e7; }
.reception-date-form small { grid-column: 1 / 3; color: var(--muted-light); font-size: 7px; }
.status-badge { display: inline-flex; padding: 5px 7px; border-radius: 999px; font-size: 8px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.status-pendente { color: var(--amber); background: var(--amber-soft); }
.status-concluido { color: var(--green); background: var(--green-soft); }
.status-revogado { color: var(--danger); background: var(--danger-soft); }
.table-action { padding: 6px 8px; color: var(--navy-700); border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 8px; font-weight: 800; cursor: pointer; }
.table-action.danger { color: var(--danger); }
.table-muted { color: var(--muted-light); font-size: 8px; }
.empty-state { min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); }
.empty-state > span { color: var(--coral); font-size: 25px; }
.empty-state strong { margin-top: 9px; color: var(--ink); font-size: 12px; }
.empty-state small { margin-top: 4px; }
.admin-heading-actions { display: flex; align-items: center; gap: 8px; }
.training-import-card { margin-bottom: 18px; }
.training-import-heading { align-items: center; margin-bottom: 17px; }
.training-import-heading .number-icon svg { width: 18px; height: 18px; }
.training-import-heading > div { flex: 1; }
.training-ready-count { min-width: max-content; padding: 7px 10px; color: var(--green); border-radius: 10px; background: var(--green-soft); font-size: 9px; font-weight: 900; }
.training-empty { min-height: 84px; display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 16px; text-align: center; border: 1px dashed var(--line-strong); border-radius: 14px; background: var(--canvas); }
.training-empty strong { color: var(--navy-900); font-size: 11px; }
.training-empty span { margin-top: 4px; color: var(--muted); font-size: 9px; }
.training-empty a { margin-top: 8px; color: var(--navy-700); font-size: 9px; font-weight: 850; }
.training-candidate-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.training-candidate-toolbar label { display: inline-flex; align-items: center; gap: 7px; color: var(--navy-800); font-size: 9px; font-weight: 850; cursor: pointer; }
.training-candidate-toolbar input { width: 15px; height: 15px; accent-color: var(--navy-900); }
.training-candidate-toolbar > span { color: var(--muted); font-size: 8px; }
.training-candidate-grid { max-height: 310px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; overflow-y: auto; padding: 2px 3px 5px 2px; scrollbar-width: thin; }
.training-candidate-option { min-width: 0; display: grid; grid-template-columns: 27px minmax(0, 1fr) auto; gap: 9px; align-items: center; padding: 11px; border: 1px solid var(--line); border-radius: 13px; background: #fff; cursor: pointer; }
.training-candidate-option:has(input:checked) { border-color: #acd3c0; background: var(--green-soft); box-shadow: 0 0 0 2px rgba(15,122,91,.06); }
.training-candidate-option > input { position: absolute; opacity: 0; pointer-events: none; }
.training-check { width: 27px; height: 27px; display: grid; place-items: center; color: transparent; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; }
.training-candidate-option:has(input:checked) .training-check { color: #fff; border-color: var(--green); background: var(--green); }
.training-check svg { width: 15px; height: 15px; stroke-width: 2.4; }
.training-candidate-copy { min-width: 0; display: flex; flex-direction: column; }
.training-candidate-copy strong { overflow: hidden; color: var(--navy-900); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.training-candidate-copy small { margin-top: 3px; color: var(--muted); font-size: 7px; }
.training-candidate-flags { display: flex; gap: 3px; }
.training-candidate-flags i { min-width: 20px; height: 20px; display: grid; place-items: center; padding: 0 4px; color: var(--muted-light); border-radius: 6px; background: #edf0ed; font-size: 6px; font-style: normal; font-weight: 900; }
.training-candidate-flags i.done { color: var(--green); background: #d8eddf; }
.training-candidate-flags i.warning { color: var(--amber); background: var(--amber-soft); }
.training-import-footer { display: grid; grid-template-columns: minmax(180px, .7fr) minmax(180px, .7fr) auto; gap: 10px; align-items: end; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.training-import-footer .form-field input { min-height: 43px; padding-block: 8px; font-size: 10px; }
.training-import-footer .button { min-height: 43px; }
.member-profiles-card { margin-bottom: 18px; }
.member-profiles-heading { align-items: center; margin-bottom: 17px; }
.member-profiles-heading > div { min-width: 0; flex: 1; }
.profile-results-count { min-width: max-content; padding: 7px 10px; color: var(--navy-700); border-radius: 10px; background: var(--blue-soft); font-size: 9px; font-weight: 900; }
.member-profile-filters { grid-template-columns: minmax(230px, 1fr) auto auto; }
.member-profile-filters .button { text-decoration: none; }
.member-profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; max-height: 430px; overflow-y: auto; padding-right: 3px; scrollbar-color: var(--line-strong) transparent; }
.member-profile-item { min-width: 0; display: grid; grid-template-columns: 42px minmax(125px, 1fr) minmax(130px, 170px) auto; align-items: center; gap: 10px; padding: 11px; border: 1px solid var(--line); border-radius: 14px; background: var(--canvas); }
.member-profile-avatar { width: 42px; height: 42px; display: grid; place-items: center; color: var(--navy-900); border-radius: 13px; background: linear-gradient(145deg, #f5d9a5, var(--coral-soft)); font-size: 15px; font-weight: 900; }
.member-profile-person { min-width: 0; display: flex; flex-direction: column; }
.member-profile-person strong { overflow: hidden; color: var(--navy-900); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.member-profile-person small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.member-profile-item select { width: 100%; min-height: 38px; padding: 7px 30px 7px 9px; border-color: var(--line-strong); border-radius: 10px; background-color: #fff; font-size: 9px; }
.member-profile-item button { min-height: 38px; padding: 7px 10px; color: var(--green); border: 1px solid #bcdccc; border-radius: 10px; background: var(--green-soft); font-size: 8px; font-weight: 850; cursor: pointer; }
.member-profile-item button:hover { border-color: #83c2a6; background: #dbf2e7; }

@media (max-width: 980px) {
    .auth-shell { grid-template-columns: minmax(0, 1fr) minmax(390px, .9fr); }
    .auth-visual { padding-inline: 36px; }
    .auth-message h1 { font-size: 48px; }
    .onboarding-shell { grid-template-columns: 260px minmax(0, 680px); gap: 32px; }
    .admin-grid { width: 100%; min-width: 0; grid-template-columns: minmax(0, 1fr); }
    .invite-form-card { position: static; }
    .admin-login-shell { grid-template-columns: .8fr minmax(400px, 1fr); }
    .training-candidate-grid { grid-template-columns: 1fr 1fr; }
    .member-profile-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .auth-shell { display: block; color: var(--ink); background: #fff; }
    .auth-visual { min-height: 245px; justify-content: flex-end; padding: 28px 24px 62px; border-radius: 0 0 34px 34px; }
    .auth-brand-row, .visual-card { display: none; }
    .auth-message { padding: 0; }
    .auth-message h1 { max-width: 14ch; margin: 8px 0 10px; font-size: clamp(31px, 10vw, 43px); }
    .auth-message p { max-width: 36ch; font-size: 12px; line-height: 1.55; }
    .auth-panel { display: block; margin-top: -35px; padding: 0 20px 34px; background: transparent; }
    .auth-panel-inner { position: relative; width: 100%; padding: 25px 22px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow-md); }
    .mobile-brand { display: block; margin-bottom: 25px; }
    .mobile-brand .brand-mark { width: 36px; height: 36px; border-radius: 11px; }
    .mobile-brand .brand-copy strong { font-size: 17px; }
    .section-heading { margin-bottom: 21px; }
    .section-heading h2 { font-size: 25px; }
    .onboarding-topbar { height: 68px; padding: 0 18px; }
    .onboarding-topbar .brand-mark { width: 36px; height: 36px; border-radius: 11px; }
    .onboarding-shell { width: min(100% - 24px, 640px); display: block; margin: 22px auto 55px; }
    .onboarding-aside { padding: 4px 4px 20px; }
    .onboarding-aside > .eyebrow, .onboarding-aside > h1, .onboarding-aside > p, .aside-privacy { display: none; }
    .cpf-confirmation { margin: 0; }
    .onboarding-card { padding: 24px 19px; border-radius: 22px; }
    .wizard-progress { margin-bottom: 27px; }
    .form-grid { grid-template-columns: 1fr; gap: 15px; }
    .span-2 { grid-column: auto; }
    .catalog-options { grid-template-columns: 1fr; }
    .choice-card { width: calc(50% - 6px); }
    .wizard-step { padding-bottom: 72px; }
    .wizard-actions { position: sticky; z-index: 5; bottom: 8px; margin-inline: -7px; padding: 12px 7px 0; background: rgba(255,253,249,.96); box-shadow: 0 -12px 20px rgba(7,28,25,.07); backdrop-filter: blur(12px); }
    .onboarding-photo-upload { grid-template-columns: 1fr; gap: 16px; padding: 15px; }
    .onboarding-photo-preview { width: 150px; margin: 0 auto; }
    .onboarding-photo-copy h3, .onboarding-photo-copy > p { text-align: center; }
    .onboarding-photo-sources { grid-template-columns: 1fr; }
    .app-topbar { min-height: 67px; padding-inline: 17px; }
    .app-topbar .brand-mark { width: 36px; height: 36px; border-radius: 11px; }
    .app-topbar .brand-copy strong { font-size: 17px; }
    .icon-button, .avatar { width: 38px; height: 38px; border-radius: 12px; }
    .app-content { width: min(100% - 24px, 600px); padding-top: 22px; }
    .dashboard-profile-card { gap: 13px; padding: 16px; }
    .dashboard-profile-photo { width: 62px; height: 62px; border-radius: 18px; }
    .dashboard-profile-photo > img, .dashboard-profile-photo > span { border-radius: 15px; }
    .dashboard-profile-copy > strong { font-size: 14px; }
    .dashboard-profile-arrow { width: 19px; height: 19px; }
    .completion-card { min-height: 230px; padding: 25px; }
    .progress-ring { width: 108px; height: 108px; }
    .leadership-card { padding: 19px; }
    .leadership-heading { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: start; }
    .leadership-heading > div { grid-column: 2; }
    .leadership-count { grid-column: 2; width: max-content; margin: -3px 0 0; }
    .leadership-list { grid-template-columns: 1fr; }
    .quick-grid { grid-template-columns: 1fr; }
    .companion-app-grid { grid-template-columns: 1fr; }
    .companion-app-card { min-height: 210px; }
    .future-row { overflow-x: auto; grid-template-columns: repeat(3, minmax(145px, 1fr)); padding-bottom: 5px; scrollbar-width: none; }
    .future-row::-webkit-scrollbar { display: none; }
    .inspiration-card { padding: 24px; }
    .inspiration-card blockquote { font-size: 18px; }
    .form-section-card, .account-card { padding: 20px 17px; }
    .profile-save-bar > span { display: none; }
    .profile-save-bar .button { width: 100%; }
    .resource-grid { grid-template-columns: 1fr; }
    .clan-grid { grid-template-columns: 1fr; }
    .directory-toolbar { top: 75px; margin-inline: -3px; padding: 13px; border-radius: 18px; }
    .directory-summary { min-width: 0; }
    .directory-summary-icon { width: 42px; height: 42px; }
    .directory-filter-trigger { min-width: 105px; }
    .directory-filter-dialog { width: 100%; max-height: min(84dvh, 760px); margin: auto 0 0; border-radius: 28px 28px 0 0; }
    .directory-filter-panel { max-height: min(84dvh, 760px); }
    .directory-filter-panel > header { padding: 21px 19px 17px; }
    .directory-filter-content { padding: 21px 19px 25px; }
    .directory-filter-panel > footer { padding-inline: 19px; }
    .member-directory-grid { grid-template-columns: 1fr; }
    .resource-card { min-height: 165px; }
    .member-card-layout { grid-template-columns: 1fr; }
    .card-validation-panel { padding: 21px; }
    .profile-photo-editor { grid-template-columns: 1fr; gap: 21px; }
    .profile-photo-preview { width: min(100%, 280px); margin: 0 auto; }
    .agenda-calendar { border-radius: 20px; }
    .agenda-day { border-radius: 12px; }
    .verification-shell { justify-content: flex-start; padding-top: 24px; }
    .admin-login-shell { display: block; color: var(--ink); background: #fff; }
    .admin-login-brand { min-height: 250px; justify-content: flex-end; padding: 28px 25px 54px; border-radius: 0 0 32px 32px; background: var(--navy-900); }
    .admin-visual-icon { display: none; }
    .admin-login-brand .brand { margin-bottom: 22px; }
    .admin-login-brand h1 { margin: 0 0 8px; font-size: 38px; }
    .admin-login-brand p { font-size: 12px; }
    .admin-login-card { position: relative; margin: -30px 14px 25px; padding: 26px 21px; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-md); }
    .admin-login-card .back-link { position: static; }
    .admin-topbar { height: 68px; padding: 0 16px; }
    .admin-topbar .brand-copy small, .admin-user > span { display: none; }
    .admin-content { width: min(100% - 24px, 680px); padding-top: 26px; }
    .admin-heading { align-items: flex-start; }
    .admin-heading > .button { min-width: 46px; padding: 10px; font-size: 0; }
    .admin-heading h1 { font-size: 34px; }
    .admin-heading p { font-size: 11px; }
    .admin-heading-actions { align-items: flex-end; flex-direction: column; }
    .admin-heading-actions .button { min-height: 39px; padding: 8px 10px; font-size: 8px; }
    .stats-grid { grid-template-columns: 1fr; }
    .admin-card { padding: 19px 15px; }
    .admin-filters { grid-template-columns: 1fr 1fr; }
    .admin-filters .search-box { grid-column: 1 / 3; }
    .access-table { min-width: 0; display: block; }
    .access-table thead { display: none; }
    .access-table tbody { display: block; }
    .access-table tr { position: relative; display: block; padding: 14px 0; border-bottom: 1px solid #edf0f3; }
    .access-table td { display: block; padding: 4px 0; border: 0; white-space: normal; }
    .access-table td:first-child { min-width: 0; padding-right: 100px; }
    .access-table td:nth-child(2) { position: absolute; right: 0; top: 14px; padding: 0; }
    .access-table td:nth-child(3), .access-table td:nth-child(4) { width: calc(50% - 4px); display: inline-flex; flex-direction: column; margin-top: 8px; color: var(--navy-900); }
    .access-table td:nth-child(3)::before, .access-table td:nth-child(4)::before { margin-bottom: 4px; color: var(--muted-light); font-size: 7px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
    .access-table td:nth-child(3)::before { content: "Autorizado em"; }
    .access-table td:nth-child(4)::before { content: "Validade"; }
    .access-table td:nth-child(5) { margin-top: 10px; }
    .access-table td:nth-child(6) { margin-top: 7px; }
    .reception-date-form { width: 100%; min-width: 0; grid-template-columns: minmax(0, 1fr) auto; }
    .reception-date-form input[type="date"] { width: 100%; }
    .access-table .empty-state { min-height: 180px; }
    .training-candidate-grid { grid-template-columns: 1fr; max-height: 360px; }
    .training-import-footer { grid-template-columns: 1fr 1fr; }
    .training-import-footer .button { grid-column: 1 / 3; }
    .member-profile-filters { grid-template-columns: 1fr 1fr; }
    .member-profile-filters .search-box { grid-column: 1 / 3; }
}

@media (max-width: 480px) {
    .invite-dates-grid { grid-template-columns: 1fr; }
    .invite-dates-grid label { min-height: 0; }
    .completion-card { display: block; }
    .completion-copy { padding-right: 80px; }
    .completion-copy h2 { font-size: 27px; }
    .completion-copy p { font-size: 11px; }
    .progress-ring { position: absolute; right: 17px; top: 23px; width: 82px; height: 82px; }
    .progress-ring strong { font-size: 18px; }
    .progress-ring small { font-size: 7px; }
    .button-light { margin-top: 23px; }
    .profile-save-bar { bottom: 88px; }
    .bottom-nav { min-height: 64px; border-radius: 20px; }
    .bottom-nav a svg { width: 19px; height: 19px; }
    .bottom-nav a span { font-size: 8px; }
    .bottom-nav a { gap: 3px; }
    .agenda-summary { padding: 14px; }
    .agenda-summary-icon { width: 42px; height: 42px; }
    .agenda-calendar { padding: 15px 12px; }
    .agenda-calendar-header { grid-template-columns: 40px 1fr 40px; gap: 7px; }
    .agenda-calendar-header > a { width: 40px; height: 40px; }
    .agenda-weekdays, .agenda-days { gap: 3px; }
    .agenda-day > span { font-size: 11px; }
    .agenda-day small { right: 1px; bottom: 1px; min-width: 15px; height: 15px; border-width: 1px; }
    .agenda-events-panel { padding: 17px 13px; }
    .agenda-event-card { grid-template-columns: 44px 3px minmax(0, 1fr); gap: 9px; padding: 11px; }
    .agenda-event-card time { width: 44px; height: 47px; }
    .agenda-event-badge { grid-column: 3; width: max-content; max-width: 100%; padding: 4px 6px; }
    .digital-member-card { min-height: 350px; padding: 20px 18px; border-radius: 24px; }
    .digital-card-brand > img { width: 38px; height: 38px; }
    .digital-card-brand strong { font-size: 15px; }
    .digital-card-brand small { font-size: 6px; }
    .digital-card-status { padding: 6px 7px; font-size: 7px; }
    .digital-card-person { grid-template-columns: 69px minmax(0, 1fr); gap: 13px; margin-block: 22px 19px; }
    .digital-card-person > img, .digital-card-avatar { width: 69px; height: 69px; border-radius: 20px; }
    .digital-card-person h2 { font-size: 17px; }
    .digital-card-data { grid-template-columns: 1fr 1fr; gap: 12px 0; }
    .digital-card-data > div { padding-inline: 11px; }
    .digital-card-data > div:nth-child(2) { padding-right: 0; border-right: 0; }
    .digital-card-data > div:nth-child(3) { padding-left: 0; }
    .verification-card { border-radius: 24px; }
    .account-identity { display: grid; grid-template-columns: 72px minmax(0, 1fr); }
    .account-photo-action { grid-column: 1 / 3; width: 100%; justify-content: center; margin: 2px 0 0; }
    .profile-photo-dialog { width: calc(100% - 14px); max-height: calc(100dvh - 14px); border-radius: 24px; }
    .profile-photo-form > header { min-height: 75px; padding: 14px 16px; }
    .profile-photo-editor { padding: 19px 16px; }
    .profile-photo-preview { width: min(76vw, 270px); }
    .profile-photo-sources { grid-template-columns: 1fr; }
    .profile-photo-form > footer { padding-inline: 16px; }
    .profile-photo-form > footer .button { min-width: 0; flex: 1; padding-inline: 10px; font-size: 11px; }
    .member-directory-card { min-height: 112px; grid-template-columns: 60px minmax(0, 1fr) 20px; gap: 12px; padding: 14px; }
    .member-directory-photo { width: 60px; height: 60px; border-radius: 18px; }
    .member-directory-photo > img, .member-directory-photo > span { border-radius: 15px; }
    .member-detail-dialog { width: calc(100% - 14px); max-height: calc(100dvh - 14px); border-radius: 24px; }
    .member-detail-panel { max-height: calc(100dvh - 14px); }
    .member-detail-panel > header { min-height: 75px; padding: 14px 16px; }
    .member-detail-identity { grid-template-columns: 78px minmax(0, 1fr); gap: 14px; padding: 20px 17px; }
    .member-detail-photo { width: 78px; height: 78px; border-radius: 23px; }
    .member-detail-photo > img, .member-detail-photo > span { border-radius: 19px; }
    .member-detail-identity strong { font-size: 17px; }
    .member-detail-data { grid-template-columns: 1fr; padding: 16px 16px 7px; }
    .member-detail-data > div.member-detail-wide { grid-column: auto; }
    .member-detail-leadership { margin: 9px 16px 0; }
    .member-password-admin { margin: 9px 16px 0; }
    .member-detail-actions { padding: 15px 16px 7px; }
    .member-detail-privacy { margin-inline: 16px; }
    .password-reset-history > summary { grid-template-columns: 42px minmax(0, 1fr) auto 18px; gap: 10px; padding: 13px 14px; }
    .password-history-icon { width: 42px; height: 42px; }
    .password-reset-history > summary em { display: none; }
    .password-history-list { padding-inline: 10px; }
    .password-history-item { grid-template-columns: 38px minmax(0, 1fr); }
    .password-history-item > span { width: 38px; height: 38px; }
    .password-history-item time { grid-column: 2; align-items: flex-start; flex-direction: row; gap: 5px; }
    .training-import-heading { align-items: flex-start; flex-wrap: wrap; }
    .training-ready-count { margin-left: 50px; }
    .training-import-footer { grid-template-columns: 1fr; }
    .member-profiles-heading { align-items: flex-start; flex-wrap: wrap; }
    .profile-results-count { margin-left: 50px; }
    .member-profile-item { grid-template-columns: 42px minmax(0, 1fr) auto; }
    .member-profile-item select { grid-column: 2 / 4; }
    .member-profile-item button { grid-column: 2 / 4; }
    .training-import-footer .button { grid-column: auto; width: 100%; }
}

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

@media print {
    @page { size: landscape; margin: 14mm; }
    body.member-app { padding: 0; background: #fff; }
    .member-app .app-topbar, .member-app .bottom-nav, .member-app .member-card-heading, .member-app .card-validation-panel, .member-app .app-alert { display: none !important; }
    .member-app .app-content { width: 100%; max-width: none; padding: 0; }
    .member-app .member-card-layout { display: block; }
    .member-app .digital-member-card { width: 158mm; min-height: 96mm; margin: 0 auto; break-inside: avoid; box-shadow: none; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
