: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,.58); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.agenda-summary > div strong { margin-top: 4px; overflow: hidden; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.agenda-summary-count { min-width: 64px; display: flex; flex-direction: column; align-items: center; margin-left: auto; padding: 9px 11px; color: #efd39f; border-radius: 13px; background: rgba(255,255,255,.08); font-size: 10px; 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: 10px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.agenda-calendar-header h2 { margin: 3px 0 0; color: var(--navy-900); font-size: 20px; 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: 5px 0; color: var(--muted-light); text-align: center; font-size: 10px; font-weight: 850; letter-spacing: .03em; 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: 14px; 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: 7px; color: var(--muted); font-size: 11px; 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: 21px; letter-spacing: -.03em; }
.agenda-events-heading button { min-height: 40px; padding: 8px 12px; color: var(--navy-800); border: 1px solid var(--line-strong); border-radius: 12px; background: var(--canvas); font-size: 12px; font-weight: 800; cursor: pointer; }
.agenda-event-list { display: grid; gap: 11px; }
.agenda-event-card { position: relative; width: 100%; min-width: 0; display: grid; grid-template-columns: 52px 4px minmax(0, 1fr) auto; align-items: center; gap: 13px; padding: 15px; color: inherit; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 5px 15px rgba(7,28,25,.035); font: inherit; text-align: left; cursor: pointer; touch-action: manipulation; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease; }
.agenda-event-card:hover { border-color: #d9c9b2; background: #fffefa; box-shadow: 0 11px 26px rgba(7,28,25,.08); transform: translateY(-1px); }
.agenda-event-card:active { transform: scale(.992); }
.agenda-event-card:focus-visible { outline: 3px solid rgba(209,161,86,.3); outline-offset: 2px; }
.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: 9px; 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: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.agenda-event-copy h3 { display: -webkit-box; margin: 4px 0; overflow: hidden; color: var(--navy-900); font-size: 15px; line-height: 1.28; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.agenda-event-copy p { margin: 0; color: var(--muted); font-size: 11px; }
.agenda-event-trailing { min-width: 0; display: flex; align-items: center; gap: 7px; }
.agenda-event-trailing > svg { width: 18px; height: 18px; flex: 0 0 auto; color: #98a59f; }
.agenda-event-badge { max-width: 86px; overflow: hidden; padding: 7px 9px; color: var(--navy-800); border-radius: 10px; background: var(--blue-soft); font-size: 9px; 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: 6px; font-size: 13px; line-height: 1.55; }

/* 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: 13px; }
    .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: 46px 3px minmax(0, 1fr) 18px; gap: 10px; padding: 13px; }
    .agenda-event-card time { width: 46px; height: 49px; }
    .agenda-event-trailing { justify-content: flex-end; }
    .agenda-event-badge { display: none; }
    .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; }
}

/* Vitrine Peniel */
.vitrine-hero { position: relative; min-height: 310px; display: flex; align-items: center; justify-content: space-between; gap: 32px; overflow: hidden; margin: 0 0 22px; padding: 38px; color: #fff; border-radius: 30px; background: radial-gradient(circle at 82% 20%, rgba(229,184,103,.24), transparent 26%), linear-gradient(140deg, #071c19, #0d4138 58%, #155d50); box-shadow: 0 24px 55px rgba(7,28,25,.2); }
.vitrine-hero::after { content: ""; position: absolute; right: -75px; bottom: -95px; width: 280px; height: 280px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; box-shadow: 0 0 0 34px rgba(255,255,255,.025), 0 0 0 68px rgba(255,255,255,.018); }
.vitrine-hero-copy { position: relative; z-index: 2; max-width: 535px; }
.vitrine-hero h1 { margin: 9px 0 12px; font-size: clamp(38px, 7vw, 61px); line-height: .98; letter-spacing: -.065em; }
.vitrine-hero p { max-width: 45ch; margin: 0; color: rgba(255,255,255,.76); font-size: 16px; line-height: 1.65; }
.vitrine-hero-actions { display: flex; align-items: center; gap: 20px; margin-top: 27px; }
.vitrine-button-light { color: var(--navy-900); background: #fff; box-shadow: 0 12px 28px rgba(0,0,0,.18); }
.vitrine-hero-link { display: inline-flex; align-items: center; gap: 8px; color: #f3d49d; font-size: 13px; font-weight: 800; text-decoration: none; }
.vitrine-hero-link svg { width: 17px; height: 17px; }
.vitrine-hero-mark { position: relative; z-index: 1; width: 170px; height: 170px; display: grid; place-items: center; flex: 0 0 auto; color: #f0c77f; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; background: rgba(255,255,255,.055); box-shadow: inset 0 0 0 13px rgba(255,255,255,.025); transform: rotate(-5deg); }
.vitrine-hero-mark svg { width: 88px; height: 88px; stroke-width: 1.35; }
.vitrine-filter-card { margin-bottom: 29px; padding: 18px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow-sm); }
.vitrine-search { min-height: 56px; display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 15px; background: #fff; }
.vitrine-search:focus-within { border-color: var(--coral); box-shadow: 0 0 0 4px rgba(209,161,86,.14); }
.vitrine-search svg { width: 21px; height: 21px; margin-left: 16px; color: var(--muted); }
.vitrine-search input { min-width: 0; flex: 1; align-self: stretch; padding: 0 16px 0 11px; border: 0; outline: 0; border-radius: inherit; color: var(--ink); background: transparent; font-size: 15px; }
.vitrine-filter-row { display: grid; grid-template-columns: 1fr 1.2fr auto; gap: 12px; align-items: end; margin-top: 13px; }
.vitrine-filter-row label { min-width: 0; }
.vitrine-filter-row label > span { display: block; margin: 0 0 6px 3px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.vitrine-filter-row select { width: 100%; min-height: 48px; padding: 10px 13px; color: var(--ink); border: 1px solid var(--line-strong); border-radius: 12px; outline: 0; background: #fff; }
.vitrine-result-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin: 0 2px 18px; }
.vitrine-result-heading h2 { margin: 5px 0 0; color: var(--navy-900); font-size: 23px; letter-spacing: -.035em; }
.vitrine-result-heading > a { padding-bottom: 3px; color: var(--coral-dark); font-size: 12px; font-weight: 800; }
.vitrine-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.vitrine-card { min-width: 0; overflow: hidden; color: inherit; border: 1px solid var(--line); border-radius: 23px; background: #fff; box-shadow: var(--shadow-sm); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.vitrine-card:hover { border-color: #d2c3ae; box-shadow: 0 18px 40px rgba(7,28,25,.11); transform: translateY(-3px); }
.vitrine-card-photo { position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden; background: #ece7dc; }
.vitrine-card-photo img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .3s ease; }
.vitrine-card:hover .vitrine-card-photo img { transform: scale(1.025); }
.vitrine-card-photo > span { color: #a59783; }
.vitrine-card-photo > span svg { width: 48px; height: 48px; }
.vitrine-card-photo em { position: absolute; top: 13px; left: 13px; padding: 7px 10px; color: var(--navy-900); border-radius: 999px; background: rgba(255,255,255,.92); box-shadow: 0 5px 14px rgba(0,0,0,.09); font-size: 10px; font-style: normal; font-weight: 850; text-transform: uppercase; letter-spacing: .07em; backdrop-filter: blur(8px); }
.vitrine-card-body { min-height: 190px; display: flex; flex-direction: column; padding: 18px; }
.vitrine-card-body > small { color: var(--coral-dark); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.vitrine-card-body > strong { margin: 7px 0 12px; color: var(--navy-900); font-size: 19px; line-height: 1.23; letter-spacing: -.025em; }
.vitrine-card-body > span { color: var(--green); font-size: 17px; font-weight: 850; }
.vitrine-card-body > i { margin-top: 8px; color: var(--muted); font-size: 11px; font-style: normal; }
.vitrine-card-body > b { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 17px; color: #8c8a82; font-size: 10px; font-weight: 700; }
.vitrine-card-body > b svg { width: 15px; height: 15px; }
.vitrine-empty { min-height: 330px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 38px 24px; text-align: center; border: 1px dashed #d5c8b6; border-radius: 26px; background: rgba(255,255,255,.62); }
.vitrine-empty > span { width: 72px; height: 72px; display: grid; place-items: center; color: var(--coral-dark); border-radius: 23px; background: var(--coral-soft); }
.vitrine-empty > span svg { width: 35px; height: 35px; }
.vitrine-empty h2 { margin: 19px 0 8px; color: var(--navy-900); font-size: 25px; }
.vitrine-empty p { max-width: 43ch; margin: 0 0 22px; color: var(--muted); line-height: 1.6; }
.vitrine-page-heading { position: relative; padding-right: 180px; }
.vitrine-heading-action { position: absolute; right: 0; bottom: 1px; }
.vitrine-summary-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; margin: 0 0 19px; border: 1px solid var(--line); border-radius: 20px; background: var(--line); box-shadow: var(--shadow-sm); }
.vitrine-summary-strip > span { min-height: 96px; display: flex; flex-direction: column; justify-content: center; padding: 17px 21px; background: #fff; }
.vitrine-summary-strip strong { color: var(--navy-900); font-size: 28px; line-height: 1; }
.vitrine-summary-strip small { margin-top: 7px; color: var(--muted); font-size: 11px; }
.my-vitrine-list { display: grid; gap: 15px; }
.my-vitrine-card { display: grid; grid-template-columns: 190px minmax(0, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow-sm); }
.my-vitrine-cover { min-height: 100%; display: grid; place-items: center; overflow: hidden; color: #978c7b; background: #eee9df; }
.my-vitrine-cover img { width: 100%; height: 100%; min-height: 230px; display: block; object-fit: cover; }
.my-vitrine-cover svg { width: 40px; height: 40px; }
.my-vitrine-copy { min-width: 0; padding: 20px 22px; }
.my-vitrine-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.my-vitrine-title > small { color: var(--muted); font-size: 10px; }
.vitrine-status { display: inline-flex; align-items: center; min-height: 27px; padding: 5px 9px; border-radius: 999px; font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .065em; }
.status-publicado { color: #12654a; background: #ddf2e9; }
.status-pendente { color: #7b5315; background: #f9ebcf; }
.status-rejeitado { color: #91352a; background: #f8e4df; }
.status-pausado, .status-expirado, .status-arquivado { color: #59636f; background: #edf0f3; }
.my-vitrine-copy h2 { margin: 12px 0 4px; color: var(--navy-900); font-size: 23px; letter-spacing: -.035em; }
.my-vitrine-copy h2 a { text-decoration: none; }
.my-vitrine-copy > p { margin: 0; color: var(--muted); font-size: 12px; }
.vitrine-adjust-note { margin-top: 14px; padding: 11px 13px; color: #7f3027; border-left: 3px solid #bd5549; border-radius: 4px 10px 10px 4px; background: var(--danger-soft); font-size: 11px; line-height: 1.55; }
.vitrine-adjust-note strong { display: block; margin-bottom: 2px; }
.my-vitrine-metrics { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 17px; }
.my-vitrine-metrics span { display: flex; flex-direction: column; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .05em; }
.my-vitrine-metrics strong { margin-bottom: 3px; color: var(--navy-800); font-size: 15px; text-transform: none; letter-spacing: 0; }
.my-vitrine-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 16px; margin-top: 19px; padding-top: 15px; border-top: 1px solid var(--line); }
.my-vitrine-actions a, .my-vitrine-actions button { padding: 0; color: var(--green); border: 0; background: transparent; font-size: 11px; font-weight: 800; text-decoration: none; cursor: pointer; }
.my-vitrine-actions .danger-link { color: var(--danger); }
.vitrine-adjust-banner { display: flex; gap: 13px; margin: -6px 0 18px; padding: 15px 17px; color: #7f3027; border: 1px solid #ecc9c2; border-radius: 16px; background: var(--danger-soft); }
.vitrine-adjust-banner svg { width: 23px; height: 23px; flex: 0 0 auto; }
.vitrine-adjust-banner span { font-size: 12px; line-height: 1.55; }
.vitrine-adjust-banner strong { display: block; }
.vitrine-form { display: grid; gap: 17px; }
.vitrine-form-card { padding: 27px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow-sm); }
.vitrine-form-card > header { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.vitrine-form-card > header > span { width: 43px; height: 43px; display: grid; place-items: center; flex: 0 0 auto; color: var(--coral-dark); border-radius: 14px; background: var(--coral-soft); font-size: 11px; font-weight: 900; }
.vitrine-form-card header h2 { margin: 0 0 4px; color: var(--navy-900); font-size: 20px; letter-spacing: -.03em; }
.vitrine-form-card header p { margin: 0; color: var(--muted); font-size: 11px; }
.vitrine-form-card .form-field + .form-field { margin-top: 17px; }
.vitrine-form-card .form-grid .form-field { margin-top: 0; }
.vitrine-type-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.vitrine-type-choice label { cursor: pointer; }
.vitrine-type-choice input { position: absolute; opacity: 0; pointer-events: none; }
.vitrine-type-choice label > span { min-height: 105px; display: grid; grid-template-columns: 43px 1fr; grid-template-rows: auto auto; align-content: center; column-gap: 12px; padding: 15px; border: 1px solid var(--line-strong); border-radius: 16px; background: #fff; transition: border-color .16s ease, box-shadow .16s ease, background .16s ease; }
.vitrine-type-choice svg { grid-row: span 2; width: 29px; height: 29px; align-self: center; color: var(--coral-dark); }
.vitrine-type-choice strong { align-self: end; color: var(--navy-900); font-size: 15px; }
.vitrine-type-choice small { align-self: start; margin-top: 3px; color: var(--muted); font-size: 10px; }
.vitrine-type-choice label:has(input:checked) > span { border-color: var(--coral); background: #fffaf1; box-shadow: 0 0 0 3px rgba(209,161,86,.12); }
.vitrine-current-photos { margin-bottom: 15px; }
.vitrine-current-photos > strong { display: block; margin-bottom: 8px; color: var(--navy-900); font-size: 11px; }
.vitrine-current-photos > div { display: flex; gap: 8px; overflow-x: auto; }
.vitrine-current-photos img { width: 92px; height: 76px; flex: 0 0 auto; object-fit: cover; border-radius: 11px; }
.vitrine-photo-drop { min-height: 155px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 22px; text-align: center; border: 1.5px dashed #cabba5; border-radius: 18px; background: #fdfaf5; cursor: pointer; }
.vitrine-photo-drop > span { width: 48px; height: 48px; display: grid; place-items: center; color: var(--coral-dark); border-radius: 16px; background: var(--coral-soft); }
.vitrine-photo-drop svg { width: 25px; height: 25px; }
.vitrine-photo-drop strong { margin-top: 11px; color: var(--navy-900); font-size: 14px; }
.vitrine-photo-drop small { margin-top: 5px; color: var(--muted); font-size: 10px; }
.vitrine-photo-preview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-top: 12px; }
.vitrine-photo-preview > p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 11px; }
.vitrine-photo-preview > p.is-error { color: var(--danger); font-weight: 750; }
.vitrine-photo-preview > span { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 13px; background: #eee8dd; }
.vitrine-photo-preview img { width: 100%; height: 100%; display: block; object-fit: cover; }
.vitrine-photo-preview small { position: absolute; left: 6px; bottom: 6px; padding: 4px 6px; color: #fff; border-radius: 7px; background: rgba(7,28,25,.76); font-size: 8px; font-weight: 800; }
.vitrine-form-hint { display: block; margin-top: 8px; color: var(--muted); font-size: 10px; }
.vitrine-money > span { padding-left: 13px; color: var(--muted); font-size: 12px; font-weight: 800; }
.vitrine-money input { min-width: 0; flex: 1; }
.vitrine-submit-dock { position: sticky; z-index: 20; bottom: calc(82px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 17px; border: 1px solid rgba(215,203,187,.9); border-radius: 19px; background: rgba(255,253,249,.94); box-shadow: 0 18px 45px rgba(7,28,25,.18); backdrop-filter: blur(16px); }
.vitrine-submit-dock > span { display: grid; grid-template-columns: 35px 1fr; align-items: center; column-gap: 10px; }
.vitrine-submit-dock svg { grid-row: span 2; width: 27px; height: 27px; color: var(--green); }
.vitrine-submit-dock small { color: var(--muted); font-size: 9px; }
.vitrine-submit-dock strong { color: var(--navy-900); font-size: 11px; }
.vitrine-detail-topbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 19px; }
.vitrine-share-button { min-height: 42px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; color: var(--navy-800); border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; font-size: 11px; font-weight: 800; cursor: pointer; }
.vitrine-share-button svg { width: 18px; height: 18px; }
.vitrine-share-button.is-copied { color: var(--green); border-color: #a9d6c4; background: var(--green-soft); }
.share-copy-helper { position: fixed; left: -10000px; top: 0; opacity: 0; }
.vitrine-owner-status { display: flex; align-items: center; gap: 13px; margin-bottom: 16px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.vitrine-owner-status p { margin: 0; color: var(--muted); font-size: 11px; }
.vitrine-detail-layout { display: grid; grid-template-columns: minmax(0, 1.13fr) minmax(310px, .87fr); gap: 18px; align-items: start; }
.vitrine-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.vitrine-gallery button { min-width: 0; aspect-ratio: 1; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 15px; background: #e9e4da; cursor: pointer; }
.vitrine-gallery button:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; border-radius: 24px; }
.vitrine-gallery button.active { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(209,161,86,.14); }
.vitrine-gallery img { width: 100%; height: 100%; display: block; object-fit: cover; }
.vitrine-detail-card { padding: 27px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow-sm); }
.vitrine-detail-labels { display: flex; flex-wrap: wrap; gap: 7px; }
.vitrine-detail-labels span { padding: 6px 9px; color: var(--coral-dark); border-radius: 999px; background: var(--coral-soft); font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.vitrine-detail-card h1 { margin: 15px 0 7px; color: var(--navy-900); font-size: clamp(28px, 4vw, 38px); line-height: 1.08; letter-spacing: -.052em; }
.vitrine-detail-price { display: block; color: var(--green); font-size: 21px; }
.vitrine-detail-description { margin: 20px 0; color: #515b56; font-size: 13px; line-height: 1.72; }
.vitrine-detail-info { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 18px; }
.vitrine-detail-info > span { display: grid; grid-template-columns: 28px 1fr; align-items: center; column-gap: 8px; padding: 11px; border-radius: 13px; background: #f7f5f0; }
.vitrine-detail-info svg { grid-row: span 2; width: 21px; height: 21px; color: var(--coral-dark); }
.vitrine-detail-info small { color: var(--muted); font-size: 8px; text-transform: uppercase; }
.vitrine-detail-info strong { color: var(--navy-800); font-size: 10px; }
.vitrine-seller { display: flex; align-items: center; gap: 12px; padding: 17px 0; border-top: 1px solid var(--line); }
.vitrine-seller > span { width: 48px; height: 48px; display: grid; place-items: center; overflow: hidden; flex: 0 0 auto; color: #fff; border-radius: 16px; background: var(--navy-800); font-weight: 850; }
.vitrine-seller img { width: 100%; height: 100%; display: block; object-fit: cover; }
.vitrine-seller div { display: flex; flex-direction: column; min-width: 0; }
.vitrine-seller small { color: var(--muted); font-size: 9px; }
.vitrine-seller strong { margin: 2px 0; color: var(--navy-900); font-size: 13px; }
.vitrine-seller em { color: var(--green); font-size: 9px; font-style: normal; font-weight: 750; }
.vitrine-whatsapp { min-height: 51px; display: flex; align-items: center; justify-content: center; gap: 9px; color: #fff; border-radius: 14px; background: #137c55; box-shadow: 0 12px 25px rgba(19,124,85,.19); font-size: 13px; font-weight: 850; text-decoration: none; }
.vitrine-whatsapp svg { width: 20px; height: 20px; }
.vitrine-detail-reach { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 13px; color: var(--muted); font-size: 9px; }
.vitrine-detail-reach span { display: inline-flex; align-items: center; gap: 5px; }
.vitrine-detail-reach svg { width: 14px; height: 14px; }
.vitrine-owner-actions { display: flex; gap: 10px; margin-top: 15px; }
.vitrine-insights { margin-top: 20px; padding: 25px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow-sm); }
.vitrine-insights > header { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.vitrine-insights h2 { margin: 6px 0 5px; color: var(--navy-900); font-size: 24px; letter-spacing: -.04em; }
.vitrine-insights header p { max-width: 58ch; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.vitrine-insights header > span { min-width: 115px; display: flex; flex-direction: column; padding: 13px; text-align: right; border-radius: 15px; background: var(--green-soft); }
.vitrine-insights header > span strong { color: var(--green); font-size: 28px; line-height: 1; }
.vitrine-insights header > span small { margin-top: 5px; color: #507c6b; font-size: 9px; }
.vitrine-history, .vitrine-audit { border-top: 1px solid var(--line); }
.vitrine-history summary, .vitrine-audit summary { display: flex; align-items: center; justify-content: space-between; padding: 15px 2px 12px; color: var(--navy-800); font-size: 11px; font-weight: 850; cursor: pointer; list-style: none; }
.vitrine-history summary svg, .vitrine-audit summary svg { width: 17px; height: 17px; transition: transform .18s ease; }
.vitrine-history[open] summary svg, .vitrine-audit[open] summary svg { transform: rotate(180deg); }
.vitrine-history-list { max-height: 390px; overflow-y: auto; display: grid; gap: 7px; padding-right: 5px; }
.vitrine-history-list > div { display: grid; grid-template-columns: 78px minmax(80px, 1fr) 28px 145px; align-items: center; gap: 9px; min-height: 35px; }
.vitrine-history-list time { color: var(--ink); font-size: 10px; font-variant-numeric: tabular-nums; }
.vitrine-history-list progress { width: 100%; height: 8px; overflow: hidden; border: 0; border-radius: 999px; background: #eeeae2; }
.vitrine-history-list progress::-webkit-progress-bar { background: #eeeae2; }
.vitrine-history-list progress::-webkit-progress-value { border-radius: 999px; background: linear-gradient(90deg, var(--green), #49a485); }
.vitrine-history-list progress::-moz-progress-bar { border-radius: 999px; background: linear-gradient(90deg, var(--green), #49a485); }
.vitrine-history-list strong { color: var(--navy-800); font-size: 11px; text-align: right; }
.vitrine-history-list small { color: var(--muted); font-size: 9px; }
.vitrine-audit { margin-top: 15px; padding: 0 24px 8px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.vitrine-audit > div { padding: 3px 0 5px; }
.vitrine-audit article { display: grid; grid-template-columns: 13px 1fr; gap: 10px; padding: 8px 0; }
.vitrine-audit article > span { width: 9px; height: 9px; margin-top: 4px; border: 2px solid var(--coral); border-radius: 50%; background: #fff; }
.vitrine-audit article div { display: flex; flex-direction: column; }
.vitrine-audit article strong { color: var(--navy-800); font-size: 11px; }
.vitrine-audit article small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.vitrine-audit article p { margin: 5px 0 0; color: #6a4540; font-size: 10px; }
.vitrine-moderation-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-bottom: 18px; }
.vitrine-moderation-summary span { display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--line); border-radius: 19px; background: #fff; box-shadow: var(--shadow-sm); }
.vitrine-moderation-summary strong { color: var(--navy-900); font-size: 30px; line-height: 1; }
.vitrine-moderation-summary small { margin-top: 7px; color: var(--muted); font-size: 10px; }
.vitrine-moderation-list { display: grid; gap: 15px; }
.vitrine-moderation-card { display: grid; grid-template-columns: 190px minmax(0, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 23px; background: #fff; box-shadow: var(--shadow-sm); }
.vitrine-moderation-cover { display: block; min-height: 100%; background: #ece7dd; }
.vitrine-moderation-cover img { width: 100%; height: 100%; min-height: 270px; display: block; object-fit: cover; }
.vitrine-moderation-copy { min-width: 0; padding: 21px; }
.vitrine-moderation-copy > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.vitrine-moderation-copy > div:first-child > small { color: var(--muted); font-size: 9px; }
.vitrine-moderation-copy h2 { margin: 13px 0 4px; color: var(--navy-900); font-size: 22px; letter-spacing: -.03em; }
.vitrine-moderation-copy > p { margin: 0; color: var(--muted); font-size: 11px; }
.vitrine-moderation-description { display: -webkit-box; overflow: hidden; margin-top: 13px !important; line-height: 1.6; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.vitrine-moderation-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 17px; padding-top: 15px; border-top: 1px solid var(--line); }
.vitrine-moderation-actions > a { color: var(--green); font-size: 10px; font-weight: 800; }
.vitrine-moderation-actions .button { min-height: 39px; padding: 8px 13px; font-size: 10px; }
.vitrine-moderation-actions details { position: relative; }
.vitrine-moderation-actions details > summary { color: var(--danger); font-size: 10px; font-weight: 800; cursor: pointer; }
.vitrine-moderation-actions details form { position: absolute; z-index: 30; right: 0; top: 30px; width: min(330px, 80vw); padding: 15px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow-md); }
.vitrine-moderation-actions details label { color: var(--navy-900); font-size: 10px; font-weight: 800; }
.vitrine-moderation-actions details textarea { width: 100%; min-height: 95px; margin: 7px 0 9px; padding: 10px; color: var(--ink); border: 1px solid var(--line-strong); border-radius: 11px; resize: vertical; }
.icon-vitrine { color: #fff; background: linear-gradient(145deg, #8b5b1f, #d1a156); box-shadow: 0 9px 18px rgba(139,91,31,.18); }
.vitrine-resource-card .resource-icon { color: #fff; background: linear-gradient(145deg, #8b5b1f, #d1a156); }
.vitrine-moderation-resource-card .resource-icon { color: #fff; background: linear-gradient(145deg, #0d332f, #1f695d); }
.vitrine-public-body { min-height: 100dvh; background: radial-gradient(circle at 8% 0, #efe4d1, transparent 28%), var(--canvas); }
.vitrine-public-header { height: 80px; display: flex; align-items: center; padding: 0 max(22px, calc((100vw - 1040px) / 2)); border-bottom: 1px solid rgba(215,203,187,.7); background: rgba(255,253,249,.88); backdrop-filter: blur(18px); }
.vitrine-public-header > a { display: inline-flex; align-items: center; gap: 11px; color: var(--navy-900); text-decoration: none; }
.vitrine-public-header > a > span { width: 45px; height: 45px; overflow: hidden; border: 1px solid rgba(209,161,86,.4); border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); }
.vitrine-public-header img { width: 100%; height: 100%; display: block; object-fit: cover; }
.vitrine-public-header strong { display: flex; flex-direction: column; font-size: 17px; letter-spacing: -.02em; }
.vitrine-public-header small { margin-top: 3px; color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .12em; }
.vitrine-public-main { width: min(100% - 32px, 1040px); margin: 0 auto; padding: 42px 0; }
.vitrine-public-card { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr); overflow: hidden; border: 1px solid var(--line); border-radius: 30px; background: #fff; box-shadow: 0 30px 70px rgba(7,28,25,.13); }
.vitrine-public-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; align-content: start; padding: 9px; background: #ece7dd; }
.vitrine-public-gallery img { width: 100%; aspect-ratio: 1; display: block; object-fit: cover; border-radius: 12px; }
.vitrine-public-gallery img:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 3; border-radius: 22px; }
.vitrine-public-content { align-self: center; padding: 36px; }
.vitrine-public-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.vitrine-public-pills span { padding: 6px 9px; color: var(--coral-dark); border-radius: 999px; background: var(--coral-soft); font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.vitrine-public-content h1 { margin: 16px 0 8px; color: var(--navy-900); font-size: clamp(32px, 5vw, 49px); line-height: 1.02; letter-spacing: -.06em; }
.vitrine-public-price { color: var(--green); font-size: 22px; }
.vitrine-public-description { margin: 22px 0; color: #515b56; font-size: 13px; line-height: 1.75; }
.vitrine-public-info { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
.vitrine-public-info span { display: flex; flex-direction: column; padding: 11px 12px; border-radius: 12px; background: #f7f4ee; }
.vitrine-public-info small { color: var(--muted); font-size: 8px; text-transform: uppercase; }
.vitrine-public-info strong { margin-top: 3px; color: var(--navy-800); font-size: 10px; }
.vitrine-public-seller { display: flex; align-items: center; gap: 11px; padding: 16px 0; border-top: 1px solid var(--line); }
.vitrine-public-seller > span { width: 46px; height: 46px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; border-radius: 15px; background: var(--navy-800); font-size: 16px; font-weight: 850; }
.vitrine-public-seller > span img { width: 100%; height: 100%; display: block; object-fit: cover; }
.vitrine-public-seller div { display: flex; flex-direction: column; }
.vitrine-public-seller small { color: var(--muted); font-size: 8px; }
.vitrine-public-seller strong { margin: 2px 0; color: var(--navy-900); font-size: 12px; }
.vitrine-public-seller em { color: var(--green); font-size: 8px; font-style: normal; }
.vitrine-public-share { width: 100%; min-height: 47px; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 9px; color: var(--navy-800); border: 1px solid var(--line-strong); border-radius: 13px; background: #fff; font-size: 11px; font-weight: 800; cursor: pointer; }
.vitrine-public-share svg { width: 18px; height: 18px; }
.vitrine-public-share.is-copied { color: var(--green); border-color: #a9d6c4; background: var(--green-soft); }
.vitrine-public-trust { display: flex; align-items: flex-start; gap: 13px; max-width: 740px; margin: 20px auto 0; padding: 17px 19px; color: #4e655d; border: 1px solid #cee0d8; border-radius: 17px; background: rgba(238,248,243,.8); }
.vitrine-public-trust svg { width: 25px; height: 25px; flex: 0 0 auto; color: var(--green); }
.vitrine-public-trust strong { color: var(--navy-800); font-size: 11px; }
.vitrine-public-trust p { margin: 4px 0 0; font-size: 10px; line-height: 1.55; }
.vitrine-public-unavailable { min-height: 560px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.vitrine-public-unavailable > span { width: 80px; height: 80px; display: grid; place-items: center; color: var(--coral-dark); border-radius: 25px; background: var(--coral-soft); }
.vitrine-public-unavailable svg { width: 40px; height: 40px; }
.vitrine-public-unavailable h1 { margin: 20px 0 8px; color: var(--navy-900); font-size: 35px; letter-spacing: -.05em; }
.vitrine-public-unavailable p { margin: 0 0 22px; color: var(--muted); }
.vitrine-public-footer { padding: 24px; color: var(--muted); text-align: center; font-size: 9px; }

@media (max-width: 760px) {
    .vitrine-public-main { padding-top: 20px; }
    .vitrine-public-card { grid-template-columns: 1fr; border-radius: 24px; }
    .vitrine-public-gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
    .vitrine-public-gallery img, .vitrine-public-gallery img:first-child { width: calc(100vw - 66px); aspect-ratio: 4 / 3; flex: 0 0 auto; border-radius: 18px; scroll-snap-align: center; }
    .vitrine-public-content { padding: 25px 21px; }
}

@media (max-width: 420px) {
    .vitrine-public-header { height: 70px; padding: 0 16px; }
    .vitrine-public-header > a > span { width: 40px; height: 40px; }
    .vitrine-public-main { width: min(100% - 20px, 1040px); }
    .vitrine-public-content h1 { font-size: 34px; }
    .vitrine-public-info { grid-template-columns: 1fr; }
}

/* Compromissos da Agenda Peniel */
.agenda-calendar-action { display: flex; margin-top: 14px; }
.agenda-calendar-action .button { width: 100%; min-height: 52px; justify-content: center; }
.agenda-commitment-dialog { width: min(100% - 28px, 650px); max-height: min(88dvh, 790px); padding: 0; overflow: hidden; color: var(--ink); border: 1px solid rgba(215,203,187,.92); border-radius: 27px; background: var(--surface); box-shadow: 0 35px 90px rgba(7,28,25,.28); }
.agenda-commitment-dialog::backdrop { background: rgba(4,20,17,.68); backdrop-filter: blur(7px); }
.agenda-commitment-form { max-height: min(88dvh, 790px); display: flex; flex-direction: column; }
.agenda-commitment-form > header { display: grid; grid-template-columns: 52px minmax(0,1fr) 42px; align-items: center; gap: 13px; padding: 21px 23px; color: #fff; background: radial-gradient(circle at 88% 0, rgba(209,161,86,.2), transparent 28%), linear-gradient(140deg, #071c19, #12443c); }
.agenda-commitment-form > header > span { width: 52px; height: 52px; display: grid; place-items: center; color: #efc985; border: 1px solid rgba(255,255,255,.12); border-radius: 17px; background: rgba(255,255,255,.07); }
.agenda-commitment-form > header > span svg { width: 28px; height: 28px; }
.agenda-commitment-form > header small { color: #efc985; font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .1em; }
.agenda-commitment-form > header h2 { margin: 3px 0; font-size: 24px; letter-spacing: -.04em; }
.agenda-commitment-form > header p { margin: 0; color: rgba(255,255,255,.65); font-size: 10px; }
.agenda-commitment-form > header > button { width: 40px; height: 40px; display: grid; place-items: center; padding: 0; color: rgba(255,255,255,.8); border: 1px solid rgba(255,255,255,.15); border-radius: 13px; background: rgba(255,255,255,.07); cursor: pointer; }
.agenda-commitment-form > header > button svg { width: 20px; height: 20px; }
.agenda-commitment-body { min-height: 0; overflow: auto; display: grid; gap: 18px; padding: 24px; }
.agenda-commitment-body .form-field small { min-height: 0; }
.agenda-location-field { position: relative; z-index: 3; }
.agenda-location-input { min-height: 49px; display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; }
.agenda-location-input:focus-within { border-color: var(--coral); box-shadow: 0 0 0 4px rgba(209,161,86,.14); }
.agenda-location-input svg { width: 20px; height: 20px; margin-left: 13px; flex: 0 0 auto; color: var(--coral-dark); }
.agenda-location-input input { min-width: 0; flex: 1; border: 0 !important; box-shadow: none !important; background: transparent !important; }
.agenda-location-suggestions { position: absolute; z-index: 15; top: calc(100% - 20px); right: 0; left: 0; max-height: 245px; overflow-y: auto; padding: 7px; border: 1px solid var(--line-strong); border-radius: 15px; background: #fff; box-shadow: 0 18px 45px rgba(7,28,25,.18); }
.agenda-location-suggestions > button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px; color: var(--ink); border: 0; border-radius: 10px; background: transparent; text-align: left; cursor: pointer; }
.agenda-location-suggestions > button:hover, .agenda-location-suggestions > button.is-active { background: var(--coral-soft); }
.agenda-location-suggestions > button > svg { width: 20px; height: 20px; flex: 0 0 auto; color: var(--coral-dark); }
.agenda-location-suggestions > button > span { display: flex; flex-direction: column; }
.agenda-location-suggestions > button strong { color: var(--navy-900); font-size: 11px; }
.agenda-location-suggestions > button small { margin: 2px 0 0; color: var(--muted); font-size: 9px; }
.agenda-location-suggestions > p { margin: 0; padding: 12px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.agenda-date-time-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 12px; }
.agenda-commitment-form > footer { display: flex; justify-content: flex-end; gap: 10px; padding: 15px 23px calc(15px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255,253,249,.96); }
.agenda-event-details { display: flex; flex-wrap: wrap; gap: 8px 15px; margin-top: 8px; }
.agenda-event-details span { display: inline-flex; align-items: center; gap: 5px; color: #596d66; font-size: 12px; font-weight: 700; }
.agenda-event-details svg { width: 14px; height: 14px; color: var(--coral-dark); }
.agenda-commitment-body .form-field.is-locked select { color: #4f625b; border-style: dashed; background: #f2f5f3; opacity: 1; }

.agenda-event-dialog, .agenda-delete-dialog { width: min(100% - 28px, 560px); max-height: min(88dvh, 760px); padding: 0; overflow: hidden; color: var(--ink); border: 1px solid rgba(215,203,187,.92); border-radius: 28px; background: var(--surface); box-shadow: 0 35px 90px rgba(7,28,25,.3); }
.agenda-event-dialog::backdrop, .agenda-delete-dialog::backdrop { background: rgba(4,20,17,.68); backdrop-filter: blur(7px); }
.agenda-event-sheet { max-height: min(88dvh, 760px); display: flex; flex-direction: column; }
.agenda-sheet-handle { display: none; }
.agenda-event-sheet > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px 17px; border-bottom: 1px solid var(--line); }
.agenda-event-sheet > header > div { display: flex; align-items: center; gap: 9px; }
.agenda-event-sheet > header > div > span { display: inline-flex; align-items: center; min-height: 30px; padding: 6px 10px; color: #75480e; border-radius: 10px; background: #f8ead2; font-size: 10px; font-weight: 900; letter-spacing: .06em; }
.agenda-event-sheet > header small { color: var(--muted); font-size: 12px; font-weight: 750; }
.agenda-event-sheet > header > button { width: 42px; height: 42px; display: grid; place-items: center; padding: 0; color: var(--navy-900); border: 1px solid var(--line); border-radius: 14px; background: var(--canvas); cursor: pointer; }
.agenda-event-sheet > header > button svg { width: 20px; height: 20px; }
.agenda-event-sheet-body { min-height: 0; overflow-y: auto; padding: 26px 24px; }
.agenda-detail-heading > span { color: var(--coral-dark); font-size: 11px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.agenda-detail-heading h2 { margin: 7px 0 0; color: var(--navy-900); font-size: clamp(24px, 5vw, 32px); line-height: 1.12; letter-spacing: -.04em; }
.agenda-detail-facts { display: grid; gap: 10px; margin-top: 24px; }
.agenda-detail-facts > div { min-height: 68px; display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 17px; background: #fff; }
.agenda-detail-facts > div[hidden] { display: none; }
.agenda-detail-facts > div > span { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; color: var(--coral-dark); border-radius: 13px; background: var(--coral-soft); }
.agenda-detail-facts svg { width: 21px; height: 21px; }
.agenda-detail-facts p { min-width: 0; display: flex; flex-direction: column; margin: 0; }
.agenda-detail-facts small { color: var(--muted-light); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.agenda-detail-facts strong { margin-top: 3px; color: var(--navy-900); font-size: 15px; line-height: 1.35; }
.agenda-detail-access { display: flex; align-items: center; gap: 9px; margin: 18px 0 0; padding: 12px 14px; color: #176b4e; border-radius: 15px; background: var(--green-soft); font-size: 12px; font-weight: 750; }
.agenda-detail-access[hidden] { display: none; }
.agenda-detail-access svg { width: 20px; height: 20px; flex: 0 0 auto; }
.agenda-event-sheet > footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 24px calc(15px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255,253,249,.96); }
.agenda-event-sheet > footer > div { display: flex; gap: 9px; margin-left: auto; }
.agenda-event-sheet > footer > div[hidden] { display: none; }
.agenda-edit-button { color: #fff; background: var(--navy-900); }
.agenda-delete-button { color: #a93d31; border: 1px solid #efc7c1; background: #fff2ef; }
.agenda-edit-button svg, .agenda-delete-button svg { width: 18px; height: 18px; }

.agenda-delete-sheet { display: grid; grid-template-columns: 62px minmax(0,1fr); gap: 17px; padding: 27px; }
.agenda-delete-icon { width: 62px; height: 62px; display: grid; place-items: center; color: #ae3f31; border-radius: 20px; background: #fff0ed; }
.agenda-delete-icon svg { width: 29px; height: 29px; }
.agenda-delete-sheet > div > span { color: #a34235; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.agenda-delete-sheet h2 { margin: 5px 0 8px; color: var(--navy-900); font-size: 25px; letter-spacing: -.04em; }
.agenda-delete-sheet p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.agenda-delete-sheet p strong { color: var(--ink); }
.agenda-delete-sheet > footer { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 10px; margin-top: 7px; padding-top: 18px; border-top: 1px solid var(--line); }
.agenda-delete-confirm { color: #fff; background: #a93d31; }

/* Revisão e avaliação dos compromissos */
.agenda-overdue-alert { min-width: 0; display: grid; grid-template-columns: 44px minmax(0,1fr) 18px; align-items: center; gap: 12px; margin: 0 0 18px; padding: 13px 15px; color: #fff; border: 1px solid rgba(232,190,117,.24); border-radius: 18px; background: linear-gradient(135deg,#57340c,#8d5516); box-shadow: 0 13px 28px rgba(86,51,12,.18); text-decoration: none; }
.agenda-overdue-alert > span:first-child { width: 44px; height: 44px; display: grid; place-items: center; color: #623b0c; border-radius: 14px; background: #f4d89e; }
.agenda-overdue-alert > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.agenda-overdue-alert strong { font-size: 13px; }
.agenda-overdue-alert small { color: rgba(255,255,255,.76); font-size: 10px; line-height: 1.4; }
.agenda-overdue-alert svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.agenda-overdue-alert > svg { width: 17px; opacity: .72; }

.agenda-evaluation-queue { min-width: 0; overflow: hidden; margin: 0 0 18px; border: 1px solid #ead8b9; border-radius: 23px; background: #fffdf8; box-shadow: var(--shadow-sm); scroll-margin-top: 86px; }
.agenda-evaluation-queue > header { display: grid; grid-template-columns: 48px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 17px 18px; color: #fff; background: linear-gradient(135deg,#3b260d,#755019); }
.agenda-evaluation-queue > header > span { width: 48px; height: 48px; display: grid; place-items: center; color: #704b16; border-radius: 15px; background: #f1d08f; }
.agenda-evaluation-queue > header svg, .agenda-evaluation-queue-item > svg, .agenda-evaluation-queue-empty > svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.agenda-evaluation-queue > header div { min-width: 0; }
.agenda-evaluation-queue > header small { color: #efcb86; font-size: 9px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.agenda-evaluation-queue > header h2 { margin: 3px 0 2px; font-size: 20px; letter-spacing: -.035em; }
.agenda-evaluation-queue > header p { margin: 0; color: rgba(255,255,255,.68); font-size: 10px; }
.agenda-evaluation-queue > header > strong { min-width: 34px; height: 34px; display: grid; place-items: center; padding: 0 9px; color: #49300d; border-radius: 999px; background: #f5d99f; font-size: 13px; }
.agenda-evaluation-queue-list { display: grid; gap: 0; padding: 5px 14px; }
.agenda-evaluation-queue-item { min-width: 0; display: grid; grid-template-columns: 48px minmax(0,1fr) auto 17px; align-items: center; gap: 11px; padding: 12px 3px; color: inherit; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
.agenda-evaluation-queue-item:last-child { border-bottom: 0; }
.agenda-evaluation-queue-item time { width: 48px; height: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #754b11; border-radius: 14px; background: #f9ecd3; }
.agenda-evaluation-queue-item time strong { font-size: 18px; line-height: 1; }
.agenda-evaluation-queue-item time span { margin-top: 3px; font-size: 8px; font-weight: 900; letter-spacing: .08em; }
.agenda-evaluation-queue-item > span { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.agenda-evaluation-queue-item > span strong { overflow: hidden; color: var(--navy-900); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.agenda-evaluation-queue-item > span small { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.agenda-evaluation-queue-item em { padding: 6px 9px; color: #12644d; border-radius: 999px; background: #e4f3ed; font-size: 9px; font-style: normal; font-weight: 850; }
.agenda-evaluation-queue-item > svg { width: 17px; color: #7d8b85; }
.agenda-evaluation-queue-more { margin: 0; padding: 10px 17px 14px; color: var(--muted); border-top: 1px solid var(--line); font-size: 9px; text-align: center; }
.agenda-evaluation-queue-empty { display: grid; grid-template-columns: 42px minmax(0,1fr); align-items: center; gap: 11px; padding: 16px 18px; color: #12644d; }
.agenda-evaluation-queue-empty > svg { width: 42px; height: 42px; padding: 9px; border-radius: 13px; background: var(--green-soft); }
.agenda-evaluation-queue-empty > span { display: flex; flex-direction: column; gap: 2px; }
.agenda-evaluation-queue-empty strong { color: var(--ink); font-size: 12px; }
.agenda-evaluation-queue-empty small { color: var(--muted); font-size: 10px; }

.agenda-evaluation-status { width: fit-content; display: inline-flex; margin-top: 8px; padding: 4px 8px; border-radius: 999px; font-size: 8px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.agenda-evaluation-status.is-pending { color: #8b5311; background: #faecd1; }
.agenda-evaluation-status.is-complete { color: #12644d; background: #e3f3ed; }
.agenda-detail-evaluation { display: grid; gap: 11px; margin-top: 16px; padding: 15px; border: 1px solid #cbe3da; border-radius: 17px; background: #f2faf7; }
.agenda-detail-evaluation[hidden] { display: none; }
.agenda-detail-evaluation > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid #d7e9e2; }
.agenda-detail-evaluation > header span { color: #176b4e; font-size: 10px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.agenda-detail-evaluation > header strong { color: #0e6048; font-size: 18px; }
.agenda-detail-evaluation > div { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.agenda-detail-evaluation > div span { display: flex; justify-content: space-between; gap: 8px; padding: 8px 9px; color: var(--muted); border-radius: 10px; background: #fff; font-size: 9px; }
.agenda-detail-evaluation > div b { color: var(--navy-900); white-space: nowrap; }
.agenda-detail-evaluation > p { margin: 0; padding: 10px; color: var(--ink); border-left: 3px solid #61a58d; border-radius: 0 10px 10px 0; background: #fff; font-size: 11px; line-height: 1.5; white-space: pre-wrap; }
.agenda-detail-evaluation > small { color: var(--muted); font-size: 9px; }
.agenda-evaluate-button { color: #56370d; border: 1px solid #e9c785; background: #fae7bd; }
.agenda-evaluate-button svg, .agenda-edit-button svg, .agenda-delete-button svg { width: 18px; height: 18px; }

.agenda-evaluation-dialog { width: min(100% - 28px,680px); max-height: min(90dvh,820px); padding: 0; overflow: hidden; color: var(--ink); border: 1px solid rgba(215,203,187,.92); border-radius: 27px; background: var(--surface); box-shadow: 0 35px 90px rgba(7,28,25,.3); }
.agenda-evaluation-dialog::backdrop { background: rgba(4,20,17,.68); backdrop-filter: blur(7px); }
.agenda-evaluation-sheet { max-height: min(90dvh,820px); display: flex; flex-direction: column; }
.agenda-evaluation-sheet > header { display: grid; grid-template-columns: 52px minmax(0,1fr) 42px; align-items: center; gap: 13px; padding: 20px 22px; color: #fff; background: linear-gradient(140deg,#2c1d0b,#795018); }
.agenda-evaluation-sheet > header > span { width: 52px; height: 52px; display: grid; place-items: center; color: #68430f; border-radius: 17px; background: #f0ce8b; }
.agenda-evaluation-sheet > header svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.agenda-evaluation-sheet > header div { min-width: 0; }
.agenda-evaluation-sheet > header small { color: #efca84; font-size: 9px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.agenda-evaluation-sheet > header h2 { margin: 3px 0; font-size: 23px; letter-spacing: -.04em; }
.agenda-evaluation-sheet > header p { overflow: hidden; margin: 0; color: rgba(255,255,255,.7); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.agenda-evaluation-sheet > header > button { width: 40px; height: 40px; display: grid; place-items: center; padding: 0; color: #fff; border: 1px solid rgba(255,255,255,.15); border-radius: 13px; background: rgba(255,255,255,.08); cursor: pointer; }
.agenda-evaluation-body { min-height: 0; overflow-y: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 13px; padding: 20px 22px; }
.agenda-score-field { min-width: 0; margin: 0; padding: 13px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.agenda-score-field legend { width: 100%; display: flex; flex-direction: column; gap: 2px; padding: 0 2px 7px; }
.agenda-score-field legend strong { color: var(--navy-900); font-size: 12px; }
.agenda-score-field legend small { color: var(--muted); font-size: 9px; font-weight: 500; }
.agenda-score-field > div { display: grid; grid-template-columns: repeat(5,1fr); gap: 6px; }
.agenda-score-field label { position: relative; min-width: 0; cursor: pointer; }
.agenda-score-field input { position: absolute; opacity: 0; pointer-events: none; }
.agenda-score-field label span { min-height: 38px; display: grid; place-items: center; color: #596b64; border: 1px solid var(--line); border-radius: 11px; background: var(--canvas); font-size: 12px; font-weight: 850; transition: .15s ease; }
.agenda-score-field input:checked + span { color: #fff; border-color: #12644d; background: #12644d; box-shadow: 0 7px 15px rgba(18,100,77,.2); }
.agenda-score-field input:focus-visible + span { outline: 3px solid rgba(209,161,86,.35); outline-offset: 2px; }
.agenda-evaluation-observation { grid-column: 1 / -1; display: grid; gap: 7px; }
.agenda-evaluation-observation > span { color: var(--ink); font-size: 12px; font-weight: 800; }
.agenda-evaluation-observation > span small { color: var(--muted); font-weight: 500; }
.agenda-evaluation-observation textarea { width: 100%; min-height: 100px; padding: 12px 13px; color: var(--ink); border: 1px solid var(--line-strong); border-radius: 14px; outline: 0; resize: vertical; background: #fff; font: inherit; font-size: 13px; line-height: 1.5; }
.agenda-evaluation-observation textarea:focus { border-color: var(--coral); box-shadow: 0 0 0 4px rgba(209,161,86,.14); }
.agenda-evaluation-observation > small { color: var(--muted); font-size: 9px; }
.agenda-evaluation-sheet > footer { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255,253,249,.97); }
.agenda-evaluator-permission-blocks { grid-template-columns: minmax(0,1fr); }

@media (max-width: 650px) {
    .agenda-commitment-dialog { width: 100%; max-width: none; max-height: 94dvh; margin: auto 0 0; border-right: 0; border-bottom: 0; border-left: 0; border-radius: 27px 27px 0 0; }
    .agenda-commitment-form { max-height: 94dvh; }
    .agenda-commitment-form > header { grid-template-columns: 46px minmax(0,1fr) 39px; padding: 18px 17px; }
    .agenda-commitment-form > header > span { width: 46px; height: 46px; }
    .agenda-commitment-form > header h2 { font-size: 21px; }
    .agenda-commitment-body { gap: 17px; padding: 20px 17px; }
    .agenda-date-time-grid { grid-template-columns: 1fr 1fr; }
    .agenda-date-time-grid .form-field:first-child { grid-column: 1 / -1; }
    .agenda-commitment-form > footer { padding: 13px 17px calc(13px + env(safe-area-inset-bottom)); }
    .agenda-commitment-form > footer .button { flex: 1; padding-right: 10px; padding-left: 10px; }
    .agenda-event-dialog, .agenda-delete-dialog, .agenda-evaluation-dialog { width: 100%; max-width: none; max-height: 92dvh; margin: auto 0 0; border-right: 0; border-bottom: 0; border-left: 0; border-radius: 28px 28px 0 0; }
    .agenda-event-sheet { max-height: 92dvh; }
    .agenda-sheet-handle { width: 42px; height: 5px; display: block; margin: 9px auto 0; border-radius: 99px; background: #d5dcd8; }
    .agenda-event-sheet > header { padding: 11px 17px 14px; }
    .agenda-event-sheet > header small { font-size: 11px; }
    .agenda-event-sheet-body { padding: 22px 17px; }
    .agenda-detail-heading h2 { font-size: 27px; }
    .agenda-event-sheet > footer { padding: 13px 17px calc(13px + env(safe-area-inset-bottom)); }
    .agenda-event-sheet > footer > .button { min-width: 76px; }
    .agenda-event-sheet > footer > div { flex: 1; }
    .agenda-event-sheet > footer > div .button { min-width: 0; flex: 1; justify-content: center; padding-right: 12px; padding-left: 12px; }
    .agenda-event-sheet > footer { flex-wrap: wrap; }
    .agenda-event-sheet > footer > div { width: 100%; flex-basis: 100%; order: -1; }
    .agenda-event-sheet > footer > div .button { font-size: 10px; }
    .agenda-evaluation-queue > header { grid-template-columns: 44px minmax(0,1fr) auto; padding: 15px; }
    .agenda-evaluation-queue > header > span { width: 44px; height: 44px; }
    .agenda-evaluation-queue-item { grid-template-columns: 46px minmax(0,1fr) 16px; }
    .agenda-evaluation-queue-item time { width: 46px; height: 46px; }
    .agenda-evaluation-queue-item em { display: none; }
    .agenda-evaluation-sheet { max-height: 92dvh; }
    .agenda-evaluation-sheet > header { grid-template-columns: 46px minmax(0,1fr) 39px; padding: 17px; }
    .agenda-evaluation-sheet > header > span { width: 46px; height: 46px; }
    .agenda-evaluation-body { grid-template-columns: 1fr; padding: 17px; }
    .agenda-evaluation-observation { grid-column: auto; }
    .agenda-evaluation-sheet > footer { padding: 12px 17px calc(12px + env(safe-area-inset-bottom)); }
    .agenda-evaluation-sheet > footer .button { flex: 1; justify-content: center; }
    .agenda-detail-evaluation > div { grid-template-columns: 1fr; }
    .agenda-delete-sheet { grid-template-columns: 52px minmax(0,1fr); gap: 14px; padding: 24px 18px calc(18px + env(safe-area-inset-bottom)); }
    .agenda-delete-icon { width: 52px; height: 52px; border-radius: 17px; }
    .agenda-delete-sheet h2 { font-size: 23px; }
    .agenda-delete-sheet > footer { justify-content: stretch; }
    .agenda-delete-sheet > footer .button { flex: 1; justify-content: center; }
}

@media (max-width: 760px) {
    .vitrine-hero { min-height: 285px; padding: 28px; border-radius: 25px; }
    .vitrine-hero-mark { width: 125px; height: 125px; margin-right: -33px; }
    .vitrine-hero-mark svg { width: 64px; height: 64px; }
    .vitrine-filter-row { grid-template-columns: 1fr 1fr; }
    .vitrine-filter-row .button { grid-column: 1 / -1; }
    .vitrine-page-heading { padding-right: 0; }
    .vitrine-heading-action { position: static; margin-top: 18px; }
    .my-vitrine-card, .vitrine-moderation-card { grid-template-columns: 145px minmax(0, 1fr); }
    .vitrine-detail-layout { grid-template-columns: 1fr; }
    .vitrine-gallery { grid-template-columns: repeat(4, 1fr); }
    .vitrine-gallery button:first-child { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
    .vitrine-hero { min-height: 330px; align-items: flex-start; padding: 26px 23px; }
    .vitrine-hero h1 { font-size: 43px; }
    .vitrine-hero p { max-width: 28ch; font-size: 14px; }
    .vitrine-hero-actions { align-items: flex-start; flex-direction: column; gap: 15px; margin-top: 22px; }
    .vitrine-hero-mark { position: absolute; right: -6px; bottom: -5px; width: 118px; height: 118px; opacity: .6; }
    .vitrine-filter-card { padding: 14px; }
    .vitrine-filter-row { grid-template-columns: 1fr; }
    .vitrine-filter-row .button { grid-column: auto; }
    .vitrine-result-heading { align-items: start; flex-direction: column; }
    .vitrine-grid { grid-template-columns: 1fr; gap: 14px; }
    .vitrine-card { display: grid; grid-template-columns: 124px minmax(0, 1fr); min-height: 166px; border-radius: 19px; }
    .vitrine-card-photo { aspect-ratio: auto; min-height: 100%; }
    .vitrine-card-photo em { top: 9px; left: 8px; padding: 5px 7px; font-size: 7px; }
    .vitrine-card-body { min-height: 166px; padding: 14px; }
    .vitrine-card-body > strong { margin: 6px 0 9px; font-size: 16px; }
    .vitrine-card-body > span { font-size: 14px; }
    .vitrine-card-body > b { padding-top: 11px; }
    .vitrine-summary-strip > span { min-height: 82px; padding: 13px; }
    .vitrine-summary-strip strong { font-size: 23px; }
    .vitrine-summary-strip small { font-size: 9px; }
    .my-vitrine-card, .vitrine-moderation-card { grid-template-columns: 1fr; }
    .my-vitrine-cover, .vitrine-moderation-cover { min-height: 190px; max-height: 230px; }
    .my-vitrine-cover img, .vitrine-moderation-cover img { min-height: 190px; }
    .my-vitrine-title, .vitrine-moderation-copy > div:first-child { align-items: flex-start; flex-direction: column; }
    .my-vitrine-copy, .vitrine-moderation-copy { padding: 18px; }
    .vitrine-form-card { padding: 20px 17px; border-radius: 21px; }
    .vitrine-type-choice { grid-template-columns: 1fr; }
    .vitrine-photo-preview { grid-template-columns: repeat(3, 1fr); }
    .vitrine-form-card .form-grid { grid-template-columns: 1fr; }
    .vitrine-form-card .span-2 { grid-column: auto; }
    .vitrine-submit-dock { bottom: calc(78px + env(safe-area-inset-bottom)); align-items: stretch; flex-direction: column; gap: 12px; }
    .vitrine-submit-dock .button { width: 100%; }
    .vitrine-detail-topbar { position: sticky; z-index: 21; top: calc(72px + env(safe-area-inset-top)); margin: -6px -4px 16px; padding: 8px 4px; background: rgba(247,243,235,.92); backdrop-filter: blur(12px); }
    .vitrine-share-button span { display: none; }
    .vitrine-share-button { width: 42px; padding: 0; justify-content: center; }
    .vitrine-gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -12px; padding: 0 12px 6px; }
    .vitrine-gallery button, .vitrine-gallery button:first-child { width: calc(100vw - 48px); aspect-ratio: 4 / 3; flex: 0 0 auto; border-radius: 21px; scroll-snap-align: center; }
    .vitrine-detail-card { padding: 22px 18px; border-radius: 22px; }
    .vitrine-detail-info { grid-template-columns: 1fr; }
    .vitrine-owner-actions { flex-direction: column; }
    .vitrine-insights { padding: 20px 17px; }
    .vitrine-insights > header { flex-direction: column; }
    .vitrine-insights header > span { width: 100%; text-align: left; }
    .vitrine-history-list > div { grid-template-columns: 70px minmax(55px, 1fr) 24px; }
    .vitrine-history-list small { grid-column: 2 / -1; padding-bottom: 3px; }
    .vitrine-moderation-actions { align-items: flex-start; flex-direction: column; }
    .vitrine-moderation-actions details form { position: fixed; z-index: 60; inset: auto 12px calc(82px + env(safe-area-inset-bottom)); width: auto; }
}

/* Parâmetros institucionais */
.parameters-quick-card { border-color: #d7c6a4; background: linear-gradient(145deg, #fff, #fffaf0); }
.icon-parameters { color: #77521f; background: #fff0d3; }
.parameters-resource-card .resource-icon { color: #77521f; background: #fff0d3; }
.parameters-page-heading .back-link { margin-bottom: 18px; }
.event-access-hero { position: relative; display: grid; grid-template-columns: 66px minmax(0, 1fr); gap: 18px; margin-bottom: 18px; padding: 25px; overflow: hidden; color: #fff; border-radius: 25px; background: linear-gradient(135deg, var(--navy-900), #173f39 68%, #32675d); box-shadow: var(--shadow-md); }
.event-access-hero::after { content: ""; position: absolute; right: -52px; top: -62px; width: 190px; height: 190px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 35px rgba(255,255,255,.035), 0 0 0 70px rgba(255,255,255,.025); }
.event-access-hero-icon { position: relative; z-index: 1; width: 66px; height: 66px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 21px; color: #704c18; background: linear-gradient(145deg, #fff5d8, #e5b75e); box-shadow: 0 13px 30px rgba(0,0,0,.22); }
.event-access-hero-icon svg { width: 31px; height: 31px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.event-access-hero-copy { position: relative; z-index: 1; min-width: 0; }
.admin-only-badge { display: inline-flex; padding: 6px 9px; color: #fff3c8; border: 1px solid rgba(255,232,170,.28); border-radius: 999px; background: rgba(255,226,148,.1); font-size: 8px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.event-access-hero h2 { margin: 10px 0 7px; font-size: clamp(22px, 4vw, 30px); letter-spacing: -.035em; }
.event-access-hero p { max-width: 68ch; margin: 0; color: rgba(255,255,255,.72); font-size: 12px; line-height: 1.6; }
.event-access-boundary { position: relative; z-index: 1; grid-column: 1 / 3; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.event-access-boundary span { display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; border: 1px solid rgba(255,255,255,.13); border-radius: 12px; background: rgba(255,255,255,.07); font-size: 10px; font-weight: 800; }
.event-access-boundary svg { width: 16px; height: 16px; fill: none; stroke: #f0ca79; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.profile-permission-form { margin-bottom: 22px; overflow: hidden; border: 1px solid var(--line); border-radius: 25px; background: #fff; box-shadow: var(--shadow-sm); }
.profile-permission-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 24px; border-bottom: 1px solid var(--line); }
.profile-permission-heading h2 { margin: 5px 0 5px; color: var(--navy-900); font-size: 21px; letter-spacing: -.025em; }
.profile-permission-heading p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.profile-permission-heading > strong { flex: 0 0 auto; padding: 8px 11px; color: #77521f; border-radius: 999px; background: #fff0d3; font-size: 9px; }
.profile-permission-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.profile-permission-option { position: relative; min-height: 82px; display: grid; grid-template-columns: 45px minmax(0, 1fr) 48px; align-items: center; gap: 12px; padding: 15px 18px; background: #fff; cursor: pointer; transition: background .18s ease; }
.profile-permission-option:hover { background: #fffcf7; }
.profile-permission-option > input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.profile-permission-option:has(input:focus-visible) { z-index: 1; outline: 3px solid rgba(197,139,46,.24); outline-offset: -3px; }
.profile-permission-option:has(input:checked) { background: #fffcf6; }
.profile-permission-avatar { width: 45px; height: 45px; display: grid; place-items: center; color: var(--navy-900); border: 1px solid #ead8b6; border-radius: 14px; background: #fff4dd; font-size: 15px; font-weight: 900; }
.profile-permission-copy { min-width: 0; display: flex; flex-direction: column; }
.profile-permission-copy strong { overflow: hidden; color: var(--navy-900); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.profile-permission-copy small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.profile-permission-switch { width: 44px; height: 26px; display: flex; align-items: center; padding: 3px; border: 1px solid #dce2df; border-radius: 999px; background: #e9eeec; transition: border-color .18s ease, background .18s ease; }
.profile-permission-switch i { width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 2px 7px rgba(7,28,25,.2); transition: transform .18s ease; }
.profile-permission-option input:checked ~ .profile-permission-switch { border-color: var(--navy-900); background: var(--navy-900); }
.profile-permission-option input:checked ~ .profile-permission-switch i { transform: translateX(18px); }
.profile-permission-empty { grid-column: 1 / 3; margin: 0; padding: 30px; color: var(--muted); text-align: center; background: #fff; }
.permission-safety-note { display: grid; grid-template-columns: 43px minmax(0, 1fr); align-items: center; gap: 13px; margin: 18px; padding: 15px; border: 1px solid #d9e7e2; border-radius: 17px; background: #f2f8f6; }
.permission-safety-note > svg { width: 43px; height: 43px; padding: 10px; color: #176a59; border-radius: 13px; background: #dcefe9; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.permission-safety-note p { margin: 0; color: #45615b; font-size: 10px; line-height: 1.55; }
.permission-safety-note strong { display: block; margin-bottom: 2px; color: var(--navy-900); font-size: 11px; }
.profile-permission-save { position: sticky; z-index: 4; bottom: 86px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 18px; border-top: 1px solid var(--line); background: rgba(255,255,255,.96); box-shadow: 0 -10px 25px rgba(7,28,25,.06); backdrop-filter: blur(14px); }
.profile-permission-save > span { color: var(--muted); font-size: 9px; line-height: 1.45; }
.profile-permission-save .button { flex: 0 0 auto; }
.profile-permission-save .button:disabled { cursor: not-allowed; opacity: .5; }

@media (max-width: 760px) {
    .event-access-hero { grid-template-columns: 54px minmax(0, 1fr); gap: 14px; padding: 20px 17px; border-radius: 22px; }
    .event-access-hero-icon { width: 54px; height: 54px; border-radius: 17px; }
    .event-access-hero-icon svg { width: 27px; height: 27px; }
    .event-access-hero h2 { font-size: 21px; }
    .event-access-boundary { grid-column: 1 / 3; }
    .profile-permission-heading { padding: 20px 17px; }
    .profile-permission-heading > strong { display: none; }
    .profile-permission-list { grid-template-columns: 1fr; }
    .profile-permission-empty { grid-column: auto; }
    .profile-permission-option { min-height: 78px; padding: 14px 16px; }
    .profile-permission-save { bottom: 76px; flex-direction: column; align-items: stretch; }
    .profile-permission-save > span { text-align: center; }
    .profile-permission-save .button { width: 100%; }
}

@media (max-width: 480px) {
    .event-access-boundary { flex-direction: column; }
    .event-access-boundary span { width: 100%; }
    .profile-permission-copy small { max-width: 23ch; white-space: normal; }
}

/* Reuniões e presença dos clãs */
.clan-meeting-quick-card { border-color: #cde2db; background: linear-gradient(145deg, #fff, #f4faf8); }
.icon-clan-meeting, .clan-meeting-resource-card .resource-icon { color: #0e6556; background: #dff2eb; }
.clan-meeting-heading { margin-bottom: 20px; }
.clan-meeting-hero { position: relative; display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; align-items: center; gap: 17px; margin-bottom: 14px; padding: 22px; overflow: hidden; color: #fff; border-radius: 25px; background: linear-gradient(135deg, #071c19, #123e36 68%, #236558); box-shadow: 0 18px 45px rgba(7, 38, 32, .18); }
.clan-meeting-hero::after { content: ""; position: absolute; right: -62px; top: -76px; width: 210px; height: 210px; border: 1px solid rgba(255,255,255,.11); border-radius: 50%; box-shadow: 0 0 0 38px rgba(255,255,255,.035), 0 0 0 76px rgba(255,255,255,.02); }
.clan-meeting-hero-icon { position: relative; z-index: 1; width: 62px; height: 62px; display: grid; place-items: center; color: #79521d; border-radius: 20px; background: linear-gradient(145deg, #fff4d4, #e8ba61); box-shadow: 0 12px 26px rgba(0,0,0,.2); }
.clan-meeting-hero svg, .clan-meeting-toolbar svg, .clan-meeting-period svg, .clan-meeting-kpis svg, .meeting-checkin-header svg, .meeting-live-summary svg, .meeting-participant-search svg, .meeting-history-notice svg, .meeting-status-picker svg, .clan-meeting-dialog svg, .clan-meeting-dashboard-link svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.clan-meeting-hero > div { position: relative; z-index: 1; min-width: 0; }
.clan-meeting-hero small { color: #d8bf88; font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.clan-meeting-hero h2 { margin: 5px 0 4px; font-size: clamp(19px, 3.4vw, 27px); letter-spacing: -.035em; }
.clan-meeting-hero p { margin: 0; color: rgba(255,255,255,.68); font-size: 11px; }
.clan-meeting-leader-seal { position: relative; z-index: 1; min-height: 40px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; color: #f8e5b3; border: 1px solid rgba(245,211,135,.24); border-radius: 13px; background: rgba(255,255,255,.07); font-size: 10px; font-weight: 850; white-space: nowrap; }
.clan-meeting-leader-seal svg { width: 18px; height: 18px; }
.clan-meeting-clan-switcher, .clan-meeting-year-filter { display: flex; align-items: flex-end; gap: 9px; }
.clan-meeting-clan-switcher { margin-bottom: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); }
.clan-meeting-clan-switcher label, .clan-meeting-year-filter label { min-width: 0; display: flex; flex: 1; flex-direction: column; gap: 7px; }
.clan-meeting-clan-switcher label > span, .clan-meeting-year-filter label > span { color: var(--muted); font-size: 10px; font-weight: 850; }
.clan-meeting-clan-switcher select, .clan-meeting-year-filter select { width: 100%; min-height: 46px; padding: 10px 38px 10px 12px; color: var(--navy-900); border: 1px solid #d9e1de; border-radius: 13px; background: #fbfcfb; font: inherit; font-size: 12px; font-weight: 750; }
.clan-meeting-clan-switcher button, .clan-meeting-year-filter button { min-height: 46px; padding: 10px 15px; color: #fff; border: 0; border-radius: 13px; background: var(--navy-900); font: inherit; font-size: 11px; font-weight: 850; cursor: pointer; }
.clan-meeting-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 19px; background: #fff; box-shadow: var(--shadow-sm); }
.clan-meeting-year-filter { flex: 1; max-width: 390px; }
.clan-meeting-new-button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.clan-meeting-new-button svg { width: 19px; height: 19px; }
.clan-meeting-period { position: relative; display: grid; grid-template-columns: 53px minmax(0, 1fr); align-items: center; gap: 14px; margin-bottom: 12px; padding: 18px 20px; overflow: hidden; color: #fff; border-radius: 21px; background: linear-gradient(135deg, #2f160d, #5d2f1e 66%, #8b5531); box-shadow: 0 13px 32px rgba(73, 34, 17, .16); }
.clan-meeting-period > span { width: 53px; height: 53px; display: grid; place-items: center; color: #4c2d0f; border-radius: 16px; background: linear-gradient(145deg, #fff2ca, #e4b660); }
.clan-meeting-period small { color: #f3d796; font-size: 8px; font-weight: 900; letter-spacing: .12em; }
.clan-meeting-period strong { display: block; margin-top: 3px; font-size: 18px; }
.clan-meeting-period p { margin: 3px 0 0; color: rgba(255,255,255,.68); font-size: 10px; line-height: 1.4; }
.clan-meeting-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.clan-meeting-kpis article { min-width: 0; display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 11px; padding: 16px; border: 1px solid var(--line); border-radius: 19px; background: #fff; box-shadow: var(--shadow-sm); }
.clan-meeting-kpis article > span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; }
.clan-meeting-kpis .is-meetings { color: #73511d; background: #fff0d4; }
.clan-meeting-kpis .is-rate { color: #0b6654; background: #ddf3ec; }
.clan-meeting-kpis .is-justified { color: #856411; background: #fff3c7; }
.clan-meeting-kpis .is-unjustified { color: #a93040; background: #fde9ec; }
.clan-meeting-kpis svg { width: 21px; height: 21px; }
.clan-meeting-kpis small { display: block; overflow: hidden; color: var(--muted); font-size: 9px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.clan-meeting-kpis strong { display: block; margin-top: 2px; color: var(--navy-900); font-size: 19px; letter-spacing: -.03em; }
.clan-meeting-kpis p { margin: 2px 0 0; overflow: hidden; color: #87928f; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.clan-attendance-distribution, .clan-meeting-history { margin-bottom: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 23px; background: #fff; box-shadow: var(--shadow-sm); }
.clan-attendance-distribution > header, .clan-meeting-history > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 20px 21px; border-bottom: 1px solid var(--line); }
.clan-attendance-distribution h2, .clan-meeting-history h2 { margin: 4px 0; color: var(--navy-900); font-size: 18px; letter-spacing: -.025em; }
.clan-attendance-distribution header p, .clan-meeting-history header p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.clan-attendance-distribution header > strong { flex: 0 0 auto; color: #0b6654; font-size: 26px; letter-spacing: -.05em; }
.clan-meeting-history header > span { flex: 0 0 auto; padding: 7px 10px; color: #6b4a16; border-radius: 999px; background: #fff0d4; font-size: 9px; font-weight: 850; }
.clan-attendance-row { display: grid; grid-template-columns: 180px minmax(0, 1fr); align-items: center; gap: 16px; padding: 14px 21px; border-bottom: 1px solid #edf1ef; }
.clan-attendance-row:last-child { border-bottom: 0; }
.clan-attendance-row > span { display: flex; flex-direction: column; gap: 2px; }
.clan-attendance-row b { color: var(--navy-900); font-size: 11px; }
.clan-attendance-row small { color: var(--muted); font-size: 9px; }
.clan-attendance-row progress, .clan-meeting-item-copy progress { width: 100%; height: 8px; overflow: hidden; border: 0; border-radius: 999px; background: #edf1ef; appearance: none; }
.clan-attendance-row progress::-webkit-progress-bar, .clan-meeting-item-copy progress::-webkit-progress-bar { border-radius: 999px; background: #edf1ef; }
.clan-attendance-row progress::-webkit-progress-value, .clan-meeting-item-copy progress::-webkit-progress-value { border-radius: 999px; }
.clan-attendance-row progress::-moz-progress-bar, .clan-meeting-item-copy progress::-moz-progress-bar { border-radius: 999px; }
.clan-attendance-row.is-present progress::-webkit-progress-value, .clan-meeting-item-copy progress::-webkit-progress-value { background: linear-gradient(90deg, #11816c, #37b99e); }
.clan-attendance-row.is-present progress::-moz-progress-bar, .clan-meeting-item-copy progress::-moz-progress-bar { background: linear-gradient(90deg, #11816c, #37b99e); }
.clan-attendance-row.is-justified progress::-webkit-progress-value { background: linear-gradient(90deg, #c19328, #edc55e); }
.clan-attendance-row.is-justified progress::-moz-progress-bar { background: linear-gradient(90deg, #c19328, #edc55e); }
.clan-attendance-row.is-unjustified progress::-webkit-progress-value { background: linear-gradient(90deg, #b53b4d, #e56b7a); }
.clan-attendance-row.is-unjustified progress::-moz-progress-bar { background: linear-gradient(90deg, #b53b4d, #e56b7a); }
.clan-meeting-list { display: grid; gap: 1px; background: var(--line); }
.clan-meeting-item { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto 92px; align-items: center; gap: 15px; padding: 15px 19px; color: inherit; background: #fff; text-decoration: none; transition: background .16s ease, transform .16s ease; }
.clan-meeting-item:hover { background: #fbfdfc; }
.clan-meeting-item:active { transform: scale(.995); }
.clan-meeting-item time { width: 58px; height: 63px; display: grid; place-items: center; align-content: center; color: #fff; border-radius: 16px; background: var(--navy-900); }
.clan-meeting-item time strong { font-size: 19px; line-height: 1; }
.clan-meeting-item time span { margin-top: 2px; color: #f1ce80; font-size: 8px; font-weight: 900; }
.clan-meeting-item time small { margin-top: 1px; color: rgba(255,255,255,.58); font-size: 7px; }
.clan-meeting-item-copy { min-width: 0; display: flex; flex-direction: column; }
.clan-meeting-item-copy > small { color: #91672a; font-size: 7px; font-weight: 900; letter-spacing: .1em; }
.clan-meeting-item-copy > strong { margin: 3px 0; overflow: hidden; color: var(--navy-900); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.clan-meeting-item-copy > em { color: var(--muted); font-size: 9px; font-style: normal; }
.clan-meeting-item-copy > progress { width: min(100%, 330px); height: 4px; margin-top: 8px; }
.clan-meeting-mini-stats { display: flex; gap: 7px; }
.clan-meeting-mini-stats > b { min-width: 58px; padding: 8px 9px; border-radius: 11px; font-size: 13px; text-align: center; }
.clan-meeting-mini-stats small { display: block; margin-top: 1px; font-size: 7px; font-weight: 750; }
.clan-meeting-mini-stats .is-present { color: #0b6654; background: #e4f4ef; }
.clan-meeting-mini-stats .is-unjustified { color: #a42e40; background: #fcebee; }
.clan-meeting-open-state { min-width: 86px; display: inline-flex; align-items: center; justify-content: flex-end; gap: 5px; color: var(--muted); font-size: 9px; font-weight: 850; }
.clan-meeting-open-state.is-open { color: #0b715c; }
.clan-meeting-open-state svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; }
.clan-meeting-empty { display: grid; place-items: center; padding: 40px 20px; text-align: center; }
.clan-meeting-empty > span { width: 58px; height: 58px; display: grid; place-items: center; color: #76531c; border-radius: 18px; background: #fff0d4; }
.clan-meeting-empty svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.clan-meeting-empty strong { margin-top: 12px; color: var(--navy-900); font-size: 14px; }
.clan-meeting-empty p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.clan-meeting-dashboard-link { display: inline-flex; align-items: center; gap: 6px; margin: 2px 0 15px; color: #0d6657; font-size: 11px; font-weight: 850; text-decoration: none; }
.clan-meeting-dashboard-link svg { width: 17px; height: 17px; }
.meeting-checkin-header { position: relative; display: grid; grid-template-columns: 65px minmax(0, 1fr) auto; align-items: center; gap: 17px; margin-bottom: 12px; padding: 22px; overflow: hidden; color: #fff; border-radius: 25px; background: linear-gradient(135deg, #071c19, #17463d); box-shadow: 0 18px 45px rgba(7, 38, 32, .18); }
.meeting-checkin-date { width: 65px; height: 70px; display: grid; place-items: center; align-content: center; color: #44280c; border-radius: 19px; background: linear-gradient(145deg, #fff2c9, #e7b85c); box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.meeting-checkin-date span { font-size: 25px; font-weight: 900; line-height: 1; }
.meeting-checkin-date small { margin-top: 3px; font-size: 9px; font-weight: 900; }
.meeting-checkin-header h2 { margin: 4px 0; font-size: 23px; letter-spacing: -.035em; }
.meeting-checkin-header p { margin: 0; color: rgba(255,255,255,.68); font-size: 10px; }
.meeting-edit-state { display: inline-flex; align-items: center; gap: 7px; padding: 9px 11px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; color: rgba(255,255,255,.7); background: rgba(255,255,255,.06); font-size: 9px; font-weight: 850; white-space: nowrap; }
.meeting-edit-state i { width: 7px; height: 7px; border-radius: 50%; background: #9aa6a2; }
.meeting-edit-state.is-open { color: #bdf9e5; }
.meeting-edit-state.is-open i { background: #41d5ac; box-shadow: 0 0 0 5px rgba(65,213,172,.12); }
.meeting-live-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-bottom: 12px; }
.meeting-live-summary article { display: grid; grid-template-columns: 43px minmax(0,1fr); align-items: center; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); }
.meeting-live-summary article > span { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 13px; }
.meeting-live-summary .is-present > span { color: #0b6d59; background: #dff3ed; }
.meeting-live-summary .is-justified > span { color: #866511; background: #fff2c8; }
.meeting-live-summary .is-unjustified > span { color: #aa3445; background: #fde9ec; }
.meeting-live-summary svg { width: 20px; height: 20px; }
.meeting-live-summary small { display: block; overflow: hidden; color: var(--muted); font-size: 8px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.meeting-live-summary strong { display: block; margin-top: 1px; color: var(--navy-900); font-size: 19px; }
.meeting-participant-search { min-height: 50px; display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 10px; margin-bottom: 11px; padding: 0 15px; color: #71807b; border: 1px solid #dce3e0; border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm); }
.meeting-participant-search svg { width: 19px; height: 19px; }
.meeting-participant-search input { min-width: 0; height: 48px; padding: 0; color: var(--navy-900); border: 0; outline: 0; background: transparent; font: inherit; font-size: 12px; }
.meeting-participant-search > span { min-width: 31px; padding: 5px 8px; color: #0b6654; border-radius: 999px; background: #e2f3ee; font-size: 9px; font-weight: 900; text-align: center; }
.meeting-history-notice { display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 12px; margin-bottom: 11px; padding: 14px; border: 1px solid #eadbb9; border-radius: 17px; background: #fffaf0; }
.meeting-history-notice > svg { width: 42px; height: 42px; padding: 10px; color: #7b591c; border-radius: 13px; background: #ffedc2; }
.meeting-history-notice p { margin: 0; color: #6c604c; font-size: 10px; line-height: 1.5; }
.meeting-history-notice strong { display: block; margin-bottom: 2px; color: var(--navy-900); font-size: 11px; }
.meeting-attendance-form { margin-bottom: 20px; }
.meeting-participant-list { display: grid; gap: 8px; }
.meeting-participant { display: grid; grid-template-columns: 50px minmax(150px, .8fr) minmax(390px, 1.45fr); align-items: center; gap: 13px; padding: 14px; border: 1px solid var(--line); border-radius: 19px; background: #fff; box-shadow: var(--shadow-sm); }
.meeting-participant-photo { width: 50px; height: 50px; overflow: hidden; display: grid; place-items: center; color: #fff; border: 2px solid #fff; border-radius: 16px; background: linear-gradient(145deg, #143d36, #2d7669); font-size: 17px; font-weight: 900; box-shadow: 0 0 0 1px #dbe3e0; }
.meeting-participant-photo img { width: 100%; height: 100%; object-fit: cover; }
.meeting-participant-copy { min-width: 0; display: flex; align-items: flex-start; flex-direction: column; }
.meeting-participant-copy strong { overflow: hidden; max-width: 100%; color: var(--navy-900); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.meeting-participant-copy small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.meeting-participant-copy em { margin-top: 5px; padding: 4px 7px; color: #7c5b20; border-radius: 999px; background: #fff0d4; font-size: 7px; font-style: normal; font-weight: 850; }
.meeting-status-picker { min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; border: 0; }
.meeting-status-picker legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.meeting-status-picker label { position: relative; min-width: 0; cursor: pointer; }
.meeting-status-picker input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.meeting-status-picker label > span { min-height: 43px; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 8px; color: #78837f; border: 1px solid #e2e7e5; border-radius: 12px; background: #f8faf9; transition: color .16s ease, border-color .16s ease, background .16s ease, transform .16s ease; }
.meeting-status-picker label > span:active { transform: scale(.97); }
.meeting-status-picker svg { width: 17px; height: 17px; }
.meeting-status-picker b { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.meeting-status-picker input:focus-visible + span { outline: 3px solid rgba(16,104,88,.2); outline-offset: 2px; }
.meeting-status-picker .is-present input:checked + span { color: #08654f; border-color: #81c8b7; background: #e0f5ef; box-shadow: inset 0 0 0 1px #b9e4da; }
.meeting-status-picker .is-justified input:checked + span { color: #785a0c; border-color: #e6c76d; background: #fff3c8; box-shadow: inset 0 0 0 1px #f4dfa0; }
.meeting-status-picker .is-unjustified input:checked + span { color: #a12d3d; border-color: #e8a2ad; background: #fde8ec; box-shadow: inset 0 0 0 1px #f4c4cb; }
.meeting-readonly-status { justify-self: end; padding: 8px 10px; border-radius: 999px; font-size: 9px; font-weight: 850; }
.meeting-readonly-status.status-2 { color: #08654f; background: #e0f5ef; }
.meeting-readonly-status.status-1 { color: #785a0c; background: #fff3c8; }
.meeting-readonly-status.status-0 { color: #a12d3d; background: #fde8ec; }
.meeting-save-bar { position: sticky; z-index: 8; bottom: 84px; display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 12px; padding: 14px 16px; border: 1px solid #d8e2de; border-radius: 18px; background: rgba(255,255,255,.96); box-shadow: 0 -10px 30px rgba(7,28,25,.09); backdrop-filter: blur(16px); }
.meeting-save-bar > span { min-width: 0; display: flex; flex-direction: column; }
.meeting-save-bar strong { color: var(--navy-900); font-size: 11px; }
.meeting-save-bar small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.meeting-participant-empty { margin: 12px 0; }
.clan-meeting-dialog { width: min(92vw, 540px); max-width: none; padding: 0; overflow: visible; border: 0; border-radius: 25px; background: transparent; }
.clan-meeting-dialog::backdrop { background: rgba(3,18,15,.72); backdrop-filter: blur(6px); }
.clan-meeting-dialog-panel { overflow: hidden; border-radius: 25px; background: #fff; box-shadow: 0 28px 80px rgba(0,0,0,.3); }
.clan-meeting-dialog-panel > header { display: grid; grid-template-columns: 54px minmax(0, 1fr) 40px; align-items: center; gap: 13px; padding: 20px; color: #fff; background: linear-gradient(135deg, #071c19, #17463d); }
.clan-meeting-dialog-icon { width: 54px; height: 54px; display: grid; place-items: center; color: #5b3b12; border-radius: 17px; background: linear-gradient(145deg, #fff2c9, #e7b85c); }
.clan-meeting-dialog-icon svg { width: 25px; height: 25px; }
.clan-meeting-dialog-panel h2 { margin: 3px 0; font-size: 19px; letter-spacing: -.03em; }
.clan-meeting-dialog-panel header p { margin: 0; overflow: hidden; color: rgba(255,255,255,.65); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.clan-meeting-dialog-panel header > button { width: 40px; height: 40px; display: grid; place-items: center; color: #fff; border: 1px solid rgba(255,255,255,.14); border-radius: 13px; background: rgba(255,255,255,.07); cursor: pointer; }
.clan-meeting-dialog-panel header > button svg { width: 19px; height: 19px; }
.clan-meeting-dialog-content { display: grid; gap: 14px; padding: 21px; }
.clan-meeting-dialog-content > label { display: flex; flex-direction: column; gap: 7px; }
.clan-meeting-dialog-content label > span { color: var(--navy-900); font-size: 11px; font-weight: 850; }
.clan-meeting-dialog-content input { width: 100%; min-height: 50px; padding: 11px 13px; color: var(--navy-900); border: 1px solid #d9e1de; border-radius: 14px; background: #fbfcfb; font: inherit; font-size: 13px; }
.clan-meeting-dialog-content label > small { color: var(--muted); font-size: 9px; line-height: 1.5; }
.clan-meeting-dialog-content aside { display: grid; grid-template-columns: 42px minmax(0,1fr); align-items: center; gap: 12px; padding: 13px; border: 1px solid #d4e6df; border-radius: 16px; background: #f1f8f6; }
.clan-meeting-dialog-content aside svg { width: 42px; height: 42px; padding: 10px; color: #0b6856; border-radius: 13px; background: #daeee8; }
.clan-meeting-dialog-content aside p { margin: 0; color: #536a64; font-size: 9px; line-height: 1.5; }
.clan-meeting-dialog-content aside strong { display: block; color: var(--navy-900); font-size: 10px; }
.clan-meeting-dialog-panel > footer { display: flex; justify-content: flex-end; gap: 9px; padding: 15px 20px 20px; border-top: 1px solid var(--line); }

@media (max-width: 850px) {
    .clan-meeting-kpis { grid-template-columns: 1fr 1fr; }
    .meeting-participant { grid-template-columns: 50px minmax(0, 1fr); }
    .meeting-status-picker, .meeting-readonly-status { grid-column: 2; justify-self: stretch; }
    .meeting-readonly-status { text-align: center; }
    .clan-meeting-item { grid-template-columns: 55px minmax(0,1fr) 84px; }
    .clan-meeting-mini-stats { display: none; }
}

@media (max-width: 650px) {
    .clan-meeting-heading h1 { font-size: 31px; }
    .clan-meeting-hero { grid-template-columns: 52px minmax(0, 1fr); gap: 13px; padding: 18px 16px; border-radius: 22px; }
    .clan-meeting-hero-icon { width: 52px; height: 52px; border-radius: 16px; }
    .clan-meeting-hero h2 { font-size: 17px; }
    .clan-meeting-leader-seal { grid-column: 1 / 3; justify-self: stretch; justify-content: center; min-height: 36px; }
    .clan-meeting-clan-switcher, .clan-meeting-year-filter { align-items: stretch; flex-direction: column; }
    .clan-meeting-clan-switcher button, .clan-meeting-year-filter button { width: 100%; }
    .clan-meeting-toolbar { align-items: stretch; flex-direction: column; }
    .clan-meeting-year-filter { max-width: none; }
    .clan-meeting-new-button { width: 100%; }
    .clan-meeting-kpis { gap: 8px; }
    .clan-meeting-kpis article { grid-template-columns: 40px minmax(0,1fr); gap: 9px; padding: 13px; }
    .clan-meeting-kpis article > span { width: 40px; height: 40px; }
    .clan-meeting-kpis strong { font-size: 17px; }
    .clan-attendance-distribution > header, .clan-meeting-history > header { padding: 17px; }
    .clan-attendance-row { grid-template-columns: 1fr; gap: 8px; padding: 13px 17px; }
    .clan-meeting-item { grid-template-columns: 52px minmax(0,1fr); gap: 12px; padding: 14px; }
    .clan-meeting-item time { width: 52px; height: 59px; }
    .clan-meeting-open-state { grid-column: 2; justify-content: flex-start; min-width: 0; }
    .meeting-checkin-header { grid-template-columns: 58px minmax(0,1fr); gap: 13px; padding: 18px 16px; border-radius: 22px; }
    .meeting-checkin-date { width: 58px; height: 63px; }
    .meeting-checkin-header h2 { font-size: 20px; }
    .meeting-edit-state { grid-column: 1 / 3; justify-content: center; }
    .meeting-live-summary { grid-template-columns: 1fr; }
    .meeting-live-summary article { grid-template-columns: 40px minmax(0,1fr); padding: 12px 14px; }
    .meeting-live-summary article > span { width: 40px; height: 40px; }
    .meeting-participant { grid-template-columns: 46px minmax(0,1fr); padding: 12px; }
    .meeting-participant-photo { width: 46px; height: 46px; border-radius: 14px; }
    .meeting-status-picker { grid-column: 1 / 3; }
    .meeting-status-picker label > span { min-height: 47px; flex-direction: column; gap: 3px; }
    .meeting-status-picker b { font-size: 8px; }
    .meeting-readonly-status { grid-column: 1 / 3; }
    .meeting-save-bar { bottom: 75px; align-items: stretch; flex-direction: column; }
    .meeting-save-bar .button { width: 100%; }
    .clan-meeting-dialog { width: min(94vw, 540px); }
    .clan-meeting-dialog-panel > footer { align-items: stretch; flex-direction: column-reverse; }
    .clan-meeting-dialog-panel > footer .button { width: 100%; }
}

@media (max-width: 390px) {
    .clan-meeting-kpis { grid-template-columns: 1fr; }
    .clan-meeting-kpis article { grid-template-columns: 44px minmax(0,1fr); }
    .clan-meeting-kpis article > span { width: 44px; height: 44px; }
    .meeting-status-picker b { font-size: 7px; }
}

/* Lançamentos financeiros e autorização nominal */
.finance-quick-card, .finance-resource-card { border-color: #c9ddd6; background: linear-gradient(145deg, #fff, #f1f8f5); }
.quick-icon.icon-finance, .finance-resource-card .resource-icon { color: #fff; background: var(--green); }
.financial-access-admin { margin-top: 22px; overflow: visible; border: 1px solid var(--line); border-radius: 26px; background: #fff; box-shadow: var(--shadow-sm); }
.financial-access-admin svg, .financial-page-heading svg, .financial-hero svg, .financial-account-section svg, .financial-entry-card svg, .financial-recent svg, .financial-review-dialog svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.financial-access-admin-heading { display: grid; grid-template-columns: 58px minmax(0,1fr) auto; align-items: center; gap: 15px; padding: 22px; color: #fff; border-radius: 25px 25px 0 0; background: linear-gradient(135deg, #071c19, #174b42); }
.financial-access-admin-icon { width: 58px; height: 58px; display: grid; place-items: center; color: #4a3313; border-radius: 18px; background: #e7bd79; }
.financial-access-admin-icon svg { width: 27px; height: 27px; }
.financial-access-admin-heading .eyebrow { color: #e7bd79; }
.financial-access-admin-heading h2 { margin: 5px 0 6px; font-size: 22px; letter-spacing: -.035em; }
.financial-access-admin-heading p { max-width: 52ch; margin: 0; color: rgba(255,255,255,.67); font-size: 13px; line-height: 1.55; }
.financial-access-admin-heading > strong { padding: 8px 11px; color: #083a30; border-radius: 999px; background: #dff3eb; font-size: 11px; white-space: nowrap; }
.financial-access-form { padding: 22px; }
.financial-member-search { position: relative; z-index: 6; }
.financial-member-search > label { display: block; margin-bottom: 8px; color: var(--navy-900); font-size: 13px; font-weight: 850; }
.financial-member-search > small { display: block; margin-top: 7px; color: var(--muted); font-size: 11px; }
.financial-member-search-shell { min-height: 54px; display: grid; grid-template-columns: 22px minmax(0,1fr) 38px; align-items: center; gap: 8px; padding: 0 10px 0 15px; border: 1px solid var(--line-strong); border-radius: 16px; background: #fff; box-shadow: 0 7px 20px rgba(7,28,25,.04); }
.financial-member-search-shell:focus-within { border-color: #4c8278; box-shadow: 0 0 0 4px rgba(15,122,91,.09); }
.financial-member-search-shell > svg { width: 20px; height: 20px; color: var(--muted); }
.financial-member-search-shell input { min-width: 0; height: 51px; color: var(--ink); border: 0; outline: 0; background: transparent; font-size: 14px; }
.financial-member-search-shell button { width: 36px; height: 36px; display: grid; place-items: center; color: var(--muted); border: 0; border-radius: 11px; background: #f1f4f2; cursor: pointer; }
.financial-member-search-shell button svg { width: 17px; height: 17px; }
.financial-member-suggestions { position: absolute; z-index: 8; top: calc(100% - 17px); right: 0; left: 0; max-height: 320px; overflow: auto; padding: 7px; border: 1px solid #d7dfdc; border-radius: 17px; background: #fff; box-shadow: 0 24px 55px rgba(7,28,25,.18); }
.financial-member-option { width: 100%; min-height: 64px; display: grid; grid-template-columns: 44px minmax(0,1fr) 34px; align-items: center; gap: 11px; padding: 9px 10px; color: var(--ink); text-align: left; border: 0; border-radius: 13px; background: transparent; cursor: pointer; }
.financial-member-option:hover, .financial-member-option:focus-visible { background: #eef6f3; }
.financial-member-option > span:nth-child(2), .financial-selected-member > span:nth-of-type(2) { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.financial-member-option strong, .financial-selected-member strong { overflow: hidden; color: var(--navy-900); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.financial-member-option small, .financial-selected-member small { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.financial-member-option > svg { width: 20px; height: 20px; color: var(--green); }
.financial-member-avatar { width: 44px; height: 44px; overflow: hidden; display: grid; place-items: center; color: #fff; border-radius: 14px; background: var(--navy-700); font-size: 14px; font-weight: 900; }
.financial-member-avatar img { width: 100%; height: 100%; object-fit: cover; }
.financial-member-no-result { margin: 0; padding: 18px; color: var(--muted); text-align: center; font-size: 12px; }
.financial-selected-heading { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin: 26px 0 11px; }
.financial-selected-heading h3 { margin: 4px 0 0; color: var(--navy-900); font-size: 18px; letter-spacing: -.025em; }
.financial-selected-heading > span { color: var(--muted); font-size: 11px; }
.financial-selected-list { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.financial-selected-member { min-width: 0; display: grid; grid-template-columns: 44px minmax(0,1fr) 38px; align-items: center; gap: 11px; padding: 11px; border: 1px solid #dce5e1; border-radius: 16px; background: #f8fbfa; }
.financial-selected-member > button { width: 36px; height: 36px; display: grid; place-items: center; color: var(--danger); border: 0; border-radius: 11px; background: var(--danger-soft); cursor: pointer; }
.financial-selected-member > button svg { width: 17px; height: 17px; }
.financial-selected-empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; padding: 28px 18px; color: var(--muted); text-align: center; border: 1px dashed #ccd8d3; border-radius: 18px; background: #fafcfb; }
.financial-selected-empty > span { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 10px; color: var(--green); border-radius: 15px; background: var(--green-soft); }
.financial-selected-empty svg { width: 23px; height: 23px; }
.financial-selected-empty strong { color: var(--navy-900); font-size: 14px; }
.financial-selected-empty p { margin: 5px 0 0; font-size: 12px; }
.financial-safety-note { display: grid; grid-template-columns: 40px minmax(0,1fr); align-items: center; gap: 12px; margin-top: 18px; padding: 14px; color: #39675d; border: 1px solid #cfe3dc; border-radius: 16px; background: #f0f8f5; }
.financial-safety-note > svg { width: 40px; height: 40px; padding: 9px; border-radius: 13px; background: #dcefe9; }
.financial-safety-note p { margin: 0; font-size: 12px; line-height: 1.55; }
.financial-safety-note strong { display: block; margin-bottom: 2px; color: var(--navy-900); }
.financial-access-save { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.financial-access-save > span { color: var(--muted); font-size: 11px; line-height: 1.5; }
.financial-access-save .button { flex: 0 0 auto; }

.financial-page-heading { margin-bottom: 20px; }
.financial-hero { position: relative; min-height: 158px; display: grid; grid-template-columns: minmax(0,1fr) 90px; align-items: center; gap: 18px; overflow: hidden; margin-bottom: 24px; padding: 25px 27px; color: #fff; border-radius: 26px; background: linear-gradient(135deg, #061c18, #155247); box-shadow: 0 24px 55px rgba(7,28,25,.2); }
.financial-hero::after { content: ''; position: absolute; right: -45px; bottom: -85px; width: 210px; height: 210px; border: 1px solid rgba(231,189,121,.15); border-radius: 50%; box-shadow: 0 0 0 30px rgba(231,189,121,.035), 0 0 0 65px rgba(231,189,121,.025); }
.financial-hero-copy { position: relative; z-index: 1; }
.financial-hero-copy > span { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; color: #bde8da; border-radius: 999px; background: rgba(35,148,116,.18); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.financial-hero-copy > span i { width: 7px; height: 7px; border-radius: 50%; background: #55d6ad; box-shadow: 0 0 0 4px rgba(85,214,173,.12); }
.financial-hero h2 { margin: 13px 0 7px; font-size: 27px; letter-spacing: -.045em; }
.financial-hero p { max-width: 50ch; margin: 0; color: rgba(255,255,255,.69); font-size: 13px; line-height: 1.6; }
.financial-hero-icon { position: relative; z-index: 1; width: 80px; height: 80px; display: grid; place-items: center; color: #4a3313; border-radius: 25px; background: linear-gradient(145deg, #f3d59c, #d9a950); box-shadow: 0 18px 35px rgba(0,0,0,.2); transform: rotate(3deg); }
.financial-hero-icon svg { width: 35px; height: 35px; }
.financial-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 15px; margin-bottom: 12px; }
.financial-section-heading h2 { margin: 4px 0 0; color: var(--navy-900); font-size: 21px; letter-spacing: -.035em; }
.financial-section-heading > small { color: var(--muted); font-size: 11px; }
.financial-account-section { margin-bottom: 25px; }
.financial-account-strip { display: grid; grid-auto-columns: minmax(250px, 1fr); grid-auto-flow: column; gap: 11px; overflow-x: auto; padding: 1px 1px 9px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.financial-account-card { min-height: 145px; display: flex; flex-direction: column; padding: 18px; color: var(--ink); border: 1px solid var(--line); border-radius: 21px; background: #fff; box-shadow: var(--shadow-sm); scroll-snap-align: start; }
.financial-account-card.is-featured { color: #fff; border-color: #154e44; background: linear-gradient(145deg, #123f38, #0b2d28); }
.financial-account-card > span { display: flex; align-items: center; gap: 8px; color: var(--coral-dark); font-size: 11px; font-weight: 850; }
.financial-account-card.is-featured > span { color: #e7bd79; }
.financial-account-card > span svg { width: 18px; height: 18px; }
.financial-account-card > small { margin-top: 18px; color: var(--muted); font-size: 10px; }
.financial-account-card.is-featured > small, .financial-account-card.is-featured > em { color: rgba(255,255,255,.58); }
.financial-account-card > strong { margin-top: 3px; font-size: 22px; letter-spacing: -.035em; }
.financial-account-card > em { margin-top: auto; padding-top: 8px; color: var(--muted); font-size: 9px; font-style: normal; }
.financial-entry-card { overflow: hidden; margin-bottom: 25px; border: 1px solid var(--line); border-radius: 26px; background: #fff; box-shadow: var(--shadow-sm); }
.financial-entry-heading { display: grid; grid-template-columns: 53px minmax(0,1fr); align-items: center; gap: 14px; padding: 22px 23px; border-bottom: 1px solid var(--line); background: #fdfcf9; }
.financial-entry-heading > span { width: 53px; height: 53px; display: grid; place-items: center; color: var(--navy-900); border-radius: 17px; background: var(--coral-soft); }
.financial-entry-heading svg { width: 24px; height: 24px; }
.financial-entry-heading small { color: var(--coral-dark); font-size: 10px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.financial-entry-heading h2 { margin: 4px 0; color: var(--navy-900); font-size: 20px; letter-spacing: -.03em; }
.financial-entry-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.financial-entry-form { padding: 22px; }
.financial-type-fieldset { margin: 0 0 21px; padding: 0; border: 0; }
.financial-type-fieldset legend { margin-bottom: 9px; color: var(--navy-900); font-size: 13px; font-weight: 850; }
.financial-type-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.financial-type-switch label { cursor: pointer; }
.financial-type-switch input { position: absolute; opacity: 0; pointer-events: none; }
.financial-type-switch label > span { min-height: 72px; display: grid; grid-template-columns: 38px minmax(0,1fr); align-items: center; gap: 11px; padding: 12px; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 17px; background: #fff; transition: .18s ease; }
.financial-type-switch label > span > svg { width: 38px; height: 38px; padding: 9px; border-radius: 12px; background: #f1f3f2; }
.financial-type-switch label > span i { display: flex; flex-direction: column; gap: 3px; font-style: normal; }
.financial-type-switch label strong { color: var(--ink); font-size: 14px; }
.financial-type-switch label small { font-size: 10px; }
.financial-type-entry input:checked + span { color: #0c7759; border-color: #49a88b; background: #eff9f5; box-shadow: 0 0 0 3px rgba(15,122,91,.08); }
.financial-type-entry input:checked + span > svg { color: #fff; background: var(--green); }
.financial-type-exit input:checked + span { color: #9a3024; border-color: #d08f86; background: #fff4f1; box-shadow: 0 0 0 3px rgba(143,31,19,.06); }
.financial-type-exit input:checked + span > svg { color: #fff; background: var(--danger); }
.financial-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px 13px; }
.financial-field { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.financial-field > span { color: var(--navy-900); font-size: 13px; font-weight: 850; }
.financial-field > span small { color: var(--muted); font-size: 10px; font-weight: 650; }
.financial-field > input, .financial-field > select { width: 100%; min-width: 0; min-height: 52px; padding: 11px 13px; color: var(--ink); border: 1px solid var(--line-strong); border-radius: 15px; outline: 0; background: #fff; font-size: 14px; }
.financial-field > input:focus, .financial-field > select:focus, .financial-value-field > div:focus-within { border-color: #4c8278; box-shadow: 0 0 0 4px rgba(15,122,91,.09); }
.financial-field > small { min-height: 15px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.financial-value-field > div { min-height: 64px; display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 10px; padding: 0 15px; border: 1px solid var(--line-strong); border-radius: 16px; background: #fff; }
.financial-value-field > div b { color: var(--muted); font-size: 14px; }
.financial-value-field > div input { min-width: 0; height: 61px; padding: 0; color: var(--navy-900); border: 0; outline: 0; background: transparent; font-size: 26px; font-weight: 850; letter-spacing: -.035em; }
.financial-description-field { grid-column: 1 / -1; }
.financial-form-note { display: grid; grid-template-columns: 40px minmax(0,1fr); align-items: center; gap: 12px; margin: 19px 0; padding: 14px; color: #41655d; border-radius: 16px; background: #f1f7f4; }
.financial-form-note svg { width: 40px; height: 40px; padding: 9px; color: var(--green); border-radius: 12px; background: #dcefe8; }
.financial-form-note p { margin: 0; font-size: 11px; line-height: 1.55; }
.financial-form-note strong { display: block; color: var(--navy-900); }
.financial-review-button { min-height: 55px; }
.financial-review-button svg { width: 19px; height: 19px; }
.financial-unavailable { margin: 22px; padding: 18px; color: #765219; border: 1px solid #ead4ae; border-radius: 17px; background: #fff8ea; }
.financial-unavailable strong { font-size: 14px; }
.financial-unavailable p { margin: 5px 0 0; font-size: 12px; line-height: 1.5; }
.financial-recent { margin-bottom: 20px; }
.financial-recent-list { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow-sm); }
.financial-recent-item { display: grid; grid-template-columns: 43px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 15px 17px; border-bottom: 1px solid var(--line); }
.financial-recent-item:last-child { border-bottom: 0; }
.financial-recent-direction { width: 43px; height: 43px; display: grid; place-items: center; color: var(--green); border-radius: 14px; background: var(--green-soft); }
.financial-recent-item.is-exit .financial-recent-direction { color: var(--danger); background: var(--danger-soft); }
.financial-recent-direction svg { width: 20px; height: 20px; }
.financial-recent-item > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.financial-recent-item strong { overflow: hidden; color: var(--navy-900); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.financial-recent-item small, .financial-recent-item em { color: var(--muted); font-size: 10px; font-style: normal; }
.financial-recent-item > b { color: var(--green); font-size: 13px; white-space: nowrap; }
.financial-recent-item.is-exit > b { color: var(--danger); }
.financial-review-dialog { width: min(calc(100% - 28px), 520px); max-width: none; max-height: calc(100dvh - 28px); margin: auto; padding: 0; overflow: hidden; color: var(--ink); border: 0; border-radius: 28px; outline: 0; background: #fff; box-shadow: 0 34px 95px rgba(0,0,0,.4); }
.financial-review-dialog[open] { display: block; animation: photoViewerIn .22s cubic-bezier(.2,.8,.2,1) both; }
.financial-review-dialog::backdrop { background: rgba(3,15,13,.76); backdrop-filter: blur(8px); }
.financial-review-sheet { position: relative; padding: 28px; text-align: center; }
.financial-review-close { position: absolute; top: 15px; right: 15px; width: 39px; height: 39px; display: grid; place-items: center; color: var(--muted); border: 0; border-radius: 13px; background: #f1f3f2; cursor: pointer; }
.financial-review-close svg { width: 18px; height: 18px; }
.financial-review-icon { width: 66px; height: 66px; display: grid; place-items: center; margin: 0 auto 14px; color: #fff; border-radius: 21px; background: var(--green); box-shadow: 0 15px 30px rgba(15,122,91,.2); }
.financial-review-dialog.is-exit .financial-review-icon { background: var(--danger); box-shadow: 0 15px 30px rgba(143,31,19,.18); }
.financial-review-icon svg { width: 29px; height: 29px; }
.financial-review-sheet > small { color: var(--coral-dark); font-size: 10px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.financial-review-sheet h2 { margin: 7px 0 3px; color: var(--navy-900); font-size: 24px; letter-spacing: -.04em; }
.financial-review-sheet > strong { display: block; color: var(--green); font-size: 31px; letter-spacing: -.045em; }
.financial-review-dialog.is-exit .financial-review-sheet > strong { color: var(--danger); }
.financial-review-sheet dl { display: grid; gap: 1px; overflow: hidden; margin: 22px 0 14px; text-align: left; border: 1px solid var(--line); border-radius: 17px; background: var(--line); }
.financial-review-sheet dl > div { display: grid; grid-template-columns: 105px minmax(0,1fr); gap: 12px; padding: 12px 14px; background: #fff; }
.financial-review-sheet dt { color: var(--muted); font-size: 11px; }
.financial-review-sheet dd { margin: 0; overflow: hidden; color: var(--navy-900); font-size: 12px; font-weight: 800; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.financial-review-sheet > p { display: grid; grid-template-columns: 28px minmax(0,1fr); align-items: center; gap: 10px; margin: 0 0 19px; padding: 12px; color: var(--muted); text-align: left; border-radius: 14px; background: #f4f7f5; font-size: 10px; line-height: 1.5; }
.financial-review-sheet > p svg { width: 28px; height: 28px; padding: 5px; color: var(--green); }
.financial-review-sheet > div { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }

@media (max-width: 680px) {
    .financial-access-admin-heading { grid-template-columns: 52px minmax(0,1fr); padding: 19px 17px; }
    .financial-access-admin-icon { width: 52px; height: 52px; }
    .financial-access-admin-heading > strong { grid-column: 1 / -1; justify-self: stretch; text-align: center; }
    .financial-access-form { padding: 17px; }
    .financial-selected-list { grid-template-columns: 1fr; }
    .financial-access-save { align-items: stretch; flex-direction: column; }
    .financial-access-save .button { width: 100%; }
    .financial-hero { grid-template-columns: minmax(0,1fr) 68px; min-height: 150px; padding: 21px 19px; border-radius: 23px; }
    .financial-hero-icon { width: 64px; height: 64px; border-radius: 20px; }
    .financial-hero-icon svg { width: 29px; height: 29px; }
    .financial-form-grid { grid-template-columns: 1fr; }
    .financial-description-field { grid-column: auto; }
    .financial-recent-item { grid-template-columns: 42px minmax(0,1fr); }
    .financial-recent-item > b { grid-column: 2; }
    .financial-review-dialog { width: 100%; max-height: 94dvh; margin: auto 0 0; border-radius: 28px 28px 0 0; }
}

@media (max-width: 430px) {
    .financial-page-heading h1 { font-size: 31px; }
    .financial-hero { grid-template-columns: 1fr; }
    .financial-hero-icon { display: none; }
    .financial-type-switch { grid-template-columns: 1fr; }
    .financial-entry-heading { grid-template-columns: 47px minmax(0,1fr); padding: 18px 16px; }
    .financial-entry-heading > span { width: 47px; height: 47px; }
    .financial-entry-form { padding: 17px 15px; }
    .financial-member-suggestions { position: fixed; z-index: 120; top: auto; right: 8px; bottom: calc(82px + env(safe-area-inset-bottom)); left: 8px; max-height: min(52dvh, 390px); border-radius: 21px; }
    .financial-review-sheet { padding: 25px 17px calc(20px + env(safe-area-inset-bottom)); }
    .financial-review-sheet > div { grid-template-columns: 1fr; }
    .financial-review-sheet dl > div { grid-template-columns: 82px minmax(0,1fr); }
}

/* Dashboard administrativo dos clãs */
.admin-clan-quick-card { border-color: #e2d0ac; background: linear-gradient(145deg, #fff, #fff9ed); }
.icon-admin-clans, .admin-clan-resource-card .resource-icon { color: #74501a; background: #ffefd0; }
.admin-clan-heading { margin-bottom: 20px; }
.admin-clan-hero { position: relative; display: grid; grid-template-columns: 65px minmax(0, 1fr) auto; align-items: center; gap: 18px; margin-bottom: 14px; padding: 23px; overflow: hidden; color: #fff; border-radius: 25px; background: linear-gradient(135deg, #160a06, #432015 62%, #744022); box-shadow: 0 18px 46px rgba(54, 24, 11, .2); }
.admin-clan-hero::after { content: ""; position: absolute; right: -55px; top: -75px; width: 220px; height: 220px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; box-shadow: 0 0 0 40px rgba(255,255,255,.032), 0 0 0 80px rgba(255,255,255,.02); }
.admin-clan-hero-icon { position: relative; z-index: 1; width: 65px; height: 65px; display: grid; place-items: center; color: #5b390e; border-radius: 20px; background: linear-gradient(145deg, #fff2cb, #e6b65b); box-shadow: 0 13px 29px rgba(0,0,0,.25); }
.admin-clan-hero svg, .admin-clan-period-banner svg, .admin-clan-kpis svg, .admin-clan-attention-panel svg, .admin-clan-controls svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.85; stroke-linecap: round; stroke-linejoin: round; }
.admin-clan-hero > div { position: relative; z-index: 1; min-width: 0; }
.admin-clan-hero small { color: #ebc978; font-size: 9px; font-weight: 900; letter-spacing: .13em; }
.admin-clan-hero h2 { margin: 5px 0 4px; font-size: clamp(20px, 3.8vw, 29px); letter-spacing: -.04em; }
.admin-clan-hero p { margin: 0; color: rgba(255,255,255,.69); font-size: 11px; line-height: 1.45; }
.admin-clan-access-badge { position: relative; z-index: 1; min-height: 42px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; color: #f7dfaa; border: 1px solid rgba(245,211,135,.25); border-radius: 13px; background: rgba(255,255,255,.07); font-size: 9px; font-weight: 850; white-space: nowrap; }
.admin-clan-access-badge svg { width: 18px; height: 18px; }
.admin-clan-period-filter { display: flex; align-items: flex-end; gap: 9px; margin-bottom: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 19px; background: #fff; box-shadow: var(--shadow-sm); }
.admin-clan-period-filter label { min-width: 0; display: flex; flex: 1; flex-direction: column; gap: 7px; }
.admin-clan-period-filter label > span { color: var(--muted); font-size: 10px; font-weight: 850; }
.admin-clan-period-filter select { width: 100%; min-height: 47px; padding: 10px 38px 10px 12px; color: var(--navy-900); border: 1px solid #d9e1de; border-radius: 13px; background: #fbfcfb; font: inherit; font-size: 12px; font-weight: 750; }
.admin-clan-period-filter button { min-height: 47px; padding: 10px 16px; color: #fff; border: 0; border-radius: 13px; background: var(--navy-900); font: inherit; font-size: 11px; font-weight: 850; cursor: pointer; }
.admin-clan-period-banner { display: grid; grid-template-columns: 53px minmax(0,1fr); align-items: center; gap: 14px; margin-bottom: 12px; padding: 18px 20px; color: #fff; border-radius: 21px; background: linear-gradient(135deg, #0b2b26, #175247 68%, #287163); box-shadow: 0 13px 32px rgba(6, 56, 47, .16); }
.admin-clan-period-banner > span { width: 53px; height: 53px; display: grid; place-items: center; color: #54350f; border-radius: 16px; background: linear-gradient(145deg, #fff2ca, #e4b660); }
.admin-clan-period-banner small { color: #eacb83; font-size: 8px; font-weight: 900; letter-spacing: .12em; }
.admin-clan-period-banner strong { display: block; margin-top: 3px; font-size: 18px; }
.admin-clan-period-banner p { margin: 3px 0 0; color: rgba(255,255,255,.67); font-size: 10px; }
.admin-clan-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; margin-bottom: 14px; }
.admin-clan-kpis article { min-width: 0; display: grid; grid-template-columns: 42px minmax(0,1fr); align-items: center; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); }
.admin-clan-kpis article > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; }
.admin-clan-kpis article > span svg { width: 20px; height: 20px; }
.admin-clan-kpis .is-clans { color: #78551c; background: #fff0d3; }
.admin-clan-kpis .is-members { color: #275d84; background: #e8f2f9; }
.admin-clan-kpis .is-meetings { color: #61509a; background: #eeeafa; }
.admin-clan-kpis .is-attendance { color: #0b6d59; background: #dff3ed; }
.admin-clan-kpis .is-attention { color: #aa3545; background: #fde9ec; }
.admin-clan-kpis small { display: block; overflow: hidden; color: var(--muted); font-size: 8px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.admin-clan-kpis strong { display: block; margin-top: 2px; color: var(--navy-900); font-size: 18px; letter-spacing: -.035em; }
.admin-clan-kpis p { margin: 2px 0 0; overflow: hidden; color: #87928f; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.admin-clan-analytics-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .8fr); gap: 12px; margin-bottom: 16px; }
.admin-clan-evolution, .admin-clan-attention-panel, .admin-clan-ranking, .admin-clan-directory { overflow: hidden; border: 1px solid var(--line); border-radius: 23px; background: #fff; box-shadow: var(--shadow-sm); }
.admin-clan-evolution > header, .admin-clan-ranking > header, .admin-clan-directory > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 19px 20px; border-bottom: 1px solid var(--line); }
.admin-clan-evolution h2, .admin-clan-attention-panel h2, .admin-clan-ranking h2, .admin-clan-directory h2 { margin: 4px 0; color: var(--navy-900); font-size: 18px; letter-spacing: -.025em; }
.admin-clan-evolution header p, .admin-clan-attention-panel header p, .admin-clan-ranking header p, .admin-clan-directory header p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.admin-clan-evolution header > strong, .admin-clan-ranking header > span { flex: 0 0 auto; padding: 7px 10px; color: #71501a; border-radius: 999px; background: #fff0d3; font-size: 9px; }
.admin-clan-evolution > div { display: grid; gap: 1px; background: var(--line); }
.admin-clan-evolution > div > article { display: grid; grid-template-columns: 175px minmax(0,1fr); align-items: center; gap: 13px; padding: 14px 18px; background: #fff; }
.admin-clan-evolution > div > article.is-selected { background: #fffcf6; }
.admin-clan-evolution article > span { display: flex; flex-direction: column; }
.admin-clan-evolution b { color: var(--navy-900); font-size: 12px; }
.admin-clan-evolution small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.admin-clan-evolution progress, .admin-clan-distribution progress { width: 100%; height: 8px; overflow: hidden; border: 0; border-radius: 999px; background: #edf1ef; appearance: none; }
.admin-clan-evolution progress::-webkit-progress-bar, .admin-clan-distribution progress::-webkit-progress-bar { border-radius: 999px; background: #edf1ef; }
.admin-clan-evolution progress::-webkit-progress-value { border-radius: 999px; background: linear-gradient(90deg, #b47c25, #edc977); }
.admin-clan-evolution progress::-moz-progress-bar { border-radius: 999px; background: linear-gradient(90deg, #b47c25, #edc977); }
.admin-clan-distribution progress::-webkit-progress-value { border-radius: 999px; background: linear-gradient(90deg, #0d7a65, #41b99f); }
.admin-clan-distribution progress::-moz-progress-bar { border-radius: 999px; background: linear-gradient(90deg, #0d7a65, #41b99f); }
.admin-clan-attention-panel > header { padding: 19px 20px; border-bottom: 1px solid var(--line); }
.admin-clan-attention-panel > div { display: grid; grid-template-columns: 43px minmax(0,1fr); align-items: center; gap: 12px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.admin-clan-attention-panel > div > span { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 13px; }
.admin-clan-attention-panel > div > span svg { width: 21px; height: 21px; }
.admin-clan-attention-panel .is-meeting { color: #8a650f; background: #fff2c8; }
.admin-clan-attention-panel .is-leader { color: #aa3545; background: #fde9ec; }
.admin-clan-attention-panel p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.admin-clan-attention-panel p strong { display: block; margin-bottom: 2px; color: var(--navy-900); font-size: 10px; }
.admin-clan-attention-panel aside { display: grid; grid-template-columns: 39px minmax(0,1fr); align-items: center; gap: 11px; margin: 14px; padding: 12px; color: #44645d; border: 1px solid #d7e7e2; border-radius: 15px; background: #f2f8f6; }
.admin-clan-attention-panel aside svg { width: 39px; height: 39px; padding: 9px; color: #0b6756; border-radius: 12px; background: #dcefe9; }
.admin-clan-attention-panel aside p { font-size: 8px; }
.admin-clan-ranking { margin-bottom: 16px; }
.admin-clan-ranking > div { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 1px; background: var(--line); }
.admin-clan-ranking article { min-width: 0; display: grid; grid-template-columns: 32px minmax(0,1fr); gap: 9px; padding: 15px; background: #fff; }
.admin-clan-ranking article > b { width: 32px; height: 32px; display: grid; place-items: center; color: #704b15; border-radius: 10px; background: #fff0d3; font-size: 11px; }
.admin-clan-ranking article > span { min-width: 0; display: flex; flex-direction: column; }
.admin-clan-ranking article strong { overflow: hidden; color: var(--navy-900); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.admin-clan-ranking article span small { margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.admin-clan-ranking article > em { grid-column: 2; color: #0b6857; font-size: 16px; font-style: normal; font-weight: 900; }
.admin-clan-ranking article > em small { display: block; color: var(--muted); font-size: 7px; font-weight: 750; }
.admin-clan-directory { margin-bottom: 22px; }
.admin-clan-directory > header > span { flex: 0 0 auto; color: var(--muted); font-size: 9px; }
.admin-clan-directory > header > span strong { color: #0b6756; font-size: 17px; }
.admin-clan-controls { display: grid; grid-template-columns: minmax(240px,1fr) auto; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: #fbfcfb; }
.admin-clan-controls > label { min-height: 46px; display: grid; grid-template-columns: 19px minmax(0,1fr); align-items: center; gap: 9px; padding: 0 13px; color: #75807d; border: 1px solid #dbe2df; border-radius: 14px; background: #fff; }
.admin-clan-controls label svg { width: 18px; height: 18px; }
.admin-clan-controls input { min-width: 0; height: 44px; padding: 0; color: var(--navy-900); border: 0; outline: 0; background: transparent; font: inherit; font-size: 11px; }
.admin-clan-controls > div { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-clan-controls button { min-height: 37px; padding: 8px 10px; color: #65716d; border: 1px solid #dfe5e2; border-radius: 11px; background: #fff; font: inherit; font-size: 8px; font-weight: 850; cursor: pointer; }
.admin-clan-controls button.active { color: #fff; border-color: var(--navy-900); background: var(--navy-900); }
.admin-clan-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; background: var(--line); }
.admin-clan-card { min-width: 0; padding: 18px; background: #fff; }
.admin-clan-card[hidden] { display: none; }
.admin-clan-card > header { display: grid; grid-template-columns: 47px minmax(0,1fr) auto; align-items: center; gap: 11px; }
.admin-clan-monogram { width: 47px; height: 47px; display: grid; place-items: center; color: #fff; border-radius: 15px; background: linear-gradient(145deg, #0b302a, #277264); font-size: 10px; font-weight: 900; letter-spacing: .03em; }
.admin-clan-card > header > div { min-width: 0; }
.admin-clan-card header small, .admin-clan-leader small { color: #98681f; font-size: 7px; font-weight: 900; letter-spacing: .1em; }
.admin-clan-card h3 { margin: 3px 0; overflow: hidden; color: var(--navy-900); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.admin-clan-card header p { margin: 0; overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.admin-clan-status { display: inline-flex; align-items: center; gap: 5px; padding: 6px 8px; color: #0b6b58; border-radius: 999px; background: #e2f4ee; font-size: 7px; font-weight: 850; white-space: nowrap; }
.admin-clan-status i { width: 6px; height: 6px; border-radius: 50%; background: #25a184; }
.admin-clan-status.is-idle { color: #9a3947; background: #fce9ec; }
.admin-clan-status.is-idle i { background: #cf5667; }
.admin-clan-leader { display: grid; grid-template-columns: 43px minmax(0,1fr) auto; align-items: center; gap: 10px; margin: 14px 0 12px; padding: 12px; border: 1px solid #e4e8e6; border-radius: 16px; background: #f8faf9; }
.admin-clan-leader-photo { width: 43px; height: 43px; overflow: hidden; display: grid; place-items: center; color: #fff; border-radius: 13px; background: #245e54; font-size: 14px; font-weight: 900; }
.admin-clan-leader-photo img { width: 100%; height: 100%; object-fit: cover; }
.admin-clan-leader > div { min-width: 0; display: flex; flex-direction: column; }
.admin-clan-leader strong { margin-top: 2px; overflow: hidden; color: var(--navy-900); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.admin-clan-leader em { margin-top: 2px; color: var(--muted); font-size: 7px; font-style: normal; }
.admin-clan-leader > b { padding: 5px 7px; color: #9f3444; border-radius: 999px; background: #fde6ea; font-size: 7px; }
.admin-clan-card dl { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin: 0 0 12px; }
.admin-clan-card dl > div { padding: 9px; border-radius: 12px; background: #f6f8f7; }
.admin-clan-card dt { color: var(--muted); font-size: 7px; }
.admin-clan-card dd { margin: 2px 0 0; color: var(--navy-900); font-size: 13px; font-weight: 900; }
.admin-clan-distribution { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; padding: 11px; border: 1px solid #e6eae8; border-radius: 14px; }
.admin-clan-distribution > span { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.admin-clan-distribution b { color: var(--muted); font-size: 7px; }
.admin-clan-distribution small { color: var(--navy-900); font-size: 8px; font-weight: 900; }
.admin-clan-distribution progress { grid-column: 1 / 3; height: 6px; }
.admin-clan-card > footer { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 11px; }
.admin-clan-card > footer > span { display: flex; flex-direction: column; }
.admin-clan-card footer small { color: var(--muted); font-size: 7px; }
.admin-clan-card footer strong { margin-top: 2px; color: var(--navy-900); font-size: 9px; }
.admin-clan-empty { margin: 18px; }

@media (max-width: 900px) {
    .admin-clan-kpis { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .admin-clan-kpis article:last-child { grid-column: span 2; }
    .admin-clan-analytics-grid { grid-template-columns: 1fr; }
    .admin-clan-ranking > div { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .admin-clan-controls { grid-template-columns: 1fr; }
}

@media (max-width: 650px) {
    .admin-clan-heading h1 { font-size: 31px; }
    .admin-clan-hero { grid-template-columns: 53px minmax(0,1fr); gap: 13px; padding: 18px 16px; border-radius: 22px; }
    .admin-clan-hero-icon { width: 53px; height: 53px; border-radius: 17px; }
    .admin-clan-hero h2 { font-size: 18px; }
    .admin-clan-access-badge { grid-column: 1 / 3; justify-content: center; }
    .admin-clan-period-filter { align-items: stretch; flex-direction: column; }
    .admin-clan-period-filter button { width: 100%; }
    .admin-clan-kpis { grid-template-columns: 1fr 1fr; gap: 8px; }
    .admin-clan-kpis article, .admin-clan-kpis article:last-child { grid-column: auto; grid-template-columns: 40px minmax(0,1fr); padding: 13px; }
    .admin-clan-kpis article > span { width: 40px; height: 40px; }
    .admin-clan-ranking > div { grid-template-columns: 1fr; }
    .admin-clan-ranking article { grid-template-columns: 36px minmax(0,1fr) auto; align-items: center; }
    .admin-clan-ranking article > b { width: 36px; height: 36px; }
    .admin-clan-ranking article > em { grid-column: auto; text-align: right; }
    .admin-clan-controls { padding: 13px; }
    .admin-clan-controls > div { display: grid; grid-template-columns: 1fr 1fr; }
    .admin-clan-controls button { min-height: 42px; }
    .admin-clan-grid { grid-template-columns: 1fr; }
    .admin-clan-card { padding: 16px; }
    .admin-clan-evolution > div > article { grid-template-columns: 145px minmax(0,1fr); padding: 13px 16px; }
}

@media (max-width: 390px) {
    .admin-clan-kpis { grid-template-columns: 1fr; }
    .admin-clan-card > header { grid-template-columns: 45px minmax(0,1fr); }
    .admin-clan-status { grid-column: 1 / 3; justify-content: center; }
    .admin-clan-evolution > div > article { grid-template-columns: 1fr; gap: 8px; }
}

/* Correção auditada de movimentos financeiros */
.financial-ledger-manager { overflow: hidden; margin-bottom: 25px; scroll-margin-top: 92px; border: 1px solid var(--line); border-radius: 26px; background: #fff; box-shadow: var(--shadow-sm); }
.financial-ledger-manager svg, .financial-delete-dialog svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.financial-ledger-heading { display: grid; grid-template-columns: 54px minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 22px; color: #fff; background: linear-gradient(135deg, #0b2f2a, #19564c); }
.financial-ledger-heading-icon { width: 54px; height: 54px; display: grid; place-items: center; color: #563c17; border-radius: 17px; background: #e7bd79; }
.financial-ledger-heading-icon svg { width: 25px; height: 25px; }
.financial-ledger-heading .eyebrow { color: #e7bd79; }
.financial-ledger-heading h2 { margin: 4px 0; font-size: 21px; letter-spacing: -.035em; }
.financial-ledger-heading p { max-width: 54ch; margin: 0; color: rgba(255,255,255,.68); font-size: 12px; line-height: 1.55; }
.financial-ledger-role { padding: 7px 10px; color: #0a4a3e; border-radius: 999px; background: #dff3eb; font-size: 10px; font-weight: 850; white-space: nowrap; }
.financial-ledger-filter { display: grid; grid-template-columns: minmax(200px,.9fr) minmax(320px,1.35fr) auto; align-items: end; gap: 13px; padding: 19px 21px; border-bottom: 1px solid var(--line); background: #fbfcfa; }
.financial-ledger-filter > label { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.financial-ledger-filter label > span, .financial-today-chip > span { color: var(--navy-900); font-size: 12px; font-weight: 850; }
.financial-ledger-period-fields { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.financial-ledger-period-fields > span { color: var(--navy-900); font-size: 12px; font-weight: 850; }
.financial-ledger-period-fields > div { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.financial-ledger-period-fields label { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.financial-ledger-period-fields small { padding-left: 2px; color: var(--muted); font-size: 9px; font-weight: 750; }
.financial-ledger-filter select, .financial-ledger-filter input { width: 100%; min-width: 0; min-height: 50px; padding: 10px 12px; color: var(--ink); border: 1px solid var(--line-strong); border-radius: 14px; outline: 0; background: #fff; font-size: 13px; }
.financial-ledger-filter select:focus, .financial-ledger-filter input:focus { border-color: #4c8278; box-shadow: 0 0 0 4px rgba(15,122,91,.09); }
.financial-ledger-filter .button { min-height: 50px; }
.financial-today-chip { display: flex; flex-direction: column; gap: 7px; }
.financial-today-chip strong { min-height: 50px; display: flex; align-items: center; gap: 8px; padding: 10px 12px; color: var(--navy-900); border: 1px solid #d6e3de; border-radius: 14px; background: #eff7f4; font-size: 13px; }
.financial-today-chip svg { width: 19px; height: 19px; color: var(--green); }
.financial-ledger-summary { display: grid; grid-template-columns: 1.35fr 1fr .8fr .8fr; gap: 1px; border-bottom: 1px solid var(--line); background: var(--line); }
.financial-ledger-summary > div { min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 15px 17px; background: #fff; }
.financial-ledger-summary small { color: var(--muted); font-size: 9px; }
.financial-ledger-summary strong { overflow: hidden; color: var(--navy-900); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.financial-last-movement { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 13px; margin: 17px 20px 0; padding: 15px; color: var(--ink); border: 1px solid #e2d2b5; border-radius: 18px; background: #fff9ef; }
.financial-last-copy { min-width: 0; display: grid; grid-template-columns: 43px minmax(0,1fr); align-items: center; gap: 11px; }
.financial-last-copy > span:last-child { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.financial-last-copy small { color: #8b6427; font-size: 9px; font-weight: 800; }
.financial-last-copy strong { overflow: hidden; color: var(--navy-900); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.financial-last-copy em { color: var(--muted); font-size: 9px; font-style: normal; }
.financial-last-movement > b { color: var(--green); font-size: 13px; white-space: nowrap; }
.financial-last-movement > b.is-exit { color: var(--danger); }
.financial-movement-icon { width: 43px; height: 43px; display: grid; place-items: center; color: var(--green); border-radius: 14px; background: var(--green-soft); }
.financial-movement-icon.is-exit { color: var(--danger); background: var(--danger-soft); }
.financial-movement-icon svg { width: 20px; height: 20px; }
.financial-delete-button, .financial-delete-day-button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 11px; color: var(--danger); border: 1px solid #e7bdb6; border-radius: 12px; background: #fff; font: inherit; font-size: 10px; font-weight: 850; cursor: pointer; }
.financial-delete-button:hover, .financial-delete-day-button:hover { background: var(--danger-soft); }
.financial-delete-button svg, .financial-delete-day-button svg { width: 17px; height: 17px; }
.financial-delete-locked { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 9px; }
.financial-delete-locked svg { width: 16px; height: 16px; }
.financial-ledger-day-heading { display: flex; align-items: end; justify-content: space-between; gap: 14px; padding: 22px 21px 12px; }
.financial-ledger-day-heading h3 { margin: 4px 0 0; color: var(--navy-900); font-size: 19px; letter-spacing: -.025em; }
.financial-delete-day-button { color: #fff; border-color: var(--danger); background: var(--danger); }
.financial-delete-day-button:hover { color: #fff; background: #73170f; }
.financial-ledger-list { margin: 0 20px; overflow: hidden; border: 1px solid var(--line); border-radius: 19px; }
.financial-ledger-table-head, .financial-ledger-item-main { display: grid; grid-template-columns: 86px minmax(150px,1fr) 112px 120px; align-items: center; gap: 12px; }
.financial-ledger-table-head { padding: 11px 16px; color: #fff; background: #123e36; font-size: 9px; font-weight: 850; letter-spacing: .055em; text-transform: uppercase; }
.financial-ledger-table-head span:nth-child(3), .financial-ledger-table-head span:nth-child(4) { text-align: right; }
.financial-ledger-item { border-bottom: 1px solid var(--line); background: #fff; }
.financial-ledger-item:last-child { border-bottom: 0; }
.financial-ledger-item-main { padding: 14px 16px 10px; }
.financial-ledger-item-main > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.financial-ledger-item-main time { color: var(--muted); font-size: 10px; font-weight: 750; font-variant-numeric: tabular-nums; }
.financial-ledger-item-main > strong { color: var(--navy-900); font-size: 11px; line-height: 1.3; overflow-wrap: anywhere; white-space: normal; }
.financial-ledger-item-main > b { font-size: 11px; text-align: right; font-variant-numeric: tabular-nums; }
.financial-ledger-value { color: var(--green); }
.financial-ledger-item.is-exit .financial-ledger-value { color: var(--danger); }
.financial-ledger-balance { color: var(--navy-900); }
.financial-ledger-observation { display: grid; grid-template-columns: minmax(0,1fr) 44px; align-items: center; gap: 12px; padding: 0 16px 14px; }
.financial-ledger-observation-copy { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.financial-ledger-observation-copy > small { color: #85601f; font-size: 9px; font-weight: 850; letter-spacing: .055em; text-transform: uppercase; }
.financial-ledger-observation-copy > strong { overflow-wrap: anywhere; color: var(--ink); font-size: 11px; line-height: 1.4; }
.financial-ledger-item-meta { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.financial-ledger-item-meta i { padding: 4px 6px; color: #765219; border-radius: 999px; background: #fff1d6; font-size: 8px; font-style: normal; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.financial-ledger-item-meta i.is-own { color: #0a6955; background: #e2f4ed; }
.financial-ledger-item-meta i.is-account { color: #234d65; background: #e7f1f6; }
.financial-ledger-item-meta em { min-width: 0; overflow: hidden; color: var(--muted); font-size: 9px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.financial-delete-icon-button { width: 44px; height: 44px; display: grid; place-items: center; color: var(--danger); border: 0; border-radius: 12px; background: var(--danger-soft); cursor: pointer; }
.financial-delete-icon-button svg, .financial-ledger-lock svg { width: 18px; height: 18px; }
.financial-ledger-lock { width: 44px; height: 44px; display: grid; place-items: center; color: #87908d; border-radius: 12px; background: #f0f3f2; }
.financial-ledger-empty { margin: 0 20px; display: flex; flex-direction: column; align-items: center; padding: 30px 18px; color: var(--muted); text-align: center; border: 1px dashed #ccd7d2; border-radius: 19px; background: #fafcfb; }
.financial-ledger-empty > span { width: 50px; height: 50px; display: grid; place-items: center; margin-bottom: 10px; color: var(--green); border-radius: 16px; background: var(--green-soft); }
.financial-ledger-empty svg { width: 24px; height: 24px; }
.financial-ledger-empty strong { color: var(--navy-900); font-size: 14px; }
.financial-ledger-empty p { max-width: 42ch; margin: 5px 0 0; font-size: 11px; line-height: 1.5; }
.financial-ledger-limit-note { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 20px 14px; padding: 12px 14px; color: #6f501d; border: 1px solid #ead4aa; border-radius: 14px; background: #fff8e9; font-size: 10px; line-height: 1.45; }
.financial-ledger-limit-note strong { color: #4f3711; }
.financial-recalculation-note { display: grid; grid-template-columns: 42px minmax(0,1fr); align-items: center; gap: 12px; margin: 18px 20px 20px; padding: 14px; color: #41655d; border: 1px solid #d5e5df; border-radius: 16px; background: #f1f7f4; }
.financial-recalculation-note > svg { width: 42px; height: 42px; padding: 9px; color: var(--green); border-radius: 13px; background: #dcefe8; }
.financial-recalculation-note p { margin: 0; font-size: 11px; line-height: 1.55; }
.financial-recalculation-note strong { display: block; color: var(--navy-900); }
.financial-delete-dialog { width: min(calc(100% - 28px), 550px); max-width: none; max-height: calc(100dvh - 28px); margin: auto; padding: 0; overflow: hidden; color: var(--ink); border: 0; border-radius: 28px; outline: 0; background: #fff; box-shadow: 0 34px 95px rgba(0,0,0,.44); }
.financial-delete-dialog[open] { display: block; animation: photoViewerIn .22s cubic-bezier(.2,.8,.2,1) both; }
.financial-delete-dialog::backdrop { background: rgba(3,15,13,.8); backdrop-filter: blur(8px); }
.financial-delete-sheet { position: relative; max-height: calc(100dvh - 28px); overflow: auto; padding: 28px; text-align: center; }
.financial-delete-close { position: absolute; top: 15px; right: 15px; width: 39px; height: 39px; display: grid; place-items: center; color: var(--muted); border: 0; border-radius: 13px; background: #f1f3f2; cursor: pointer; }
.financial-delete-close svg { width: 18px; height: 18px; }
.financial-delete-dialog-icon { width: 66px; height: 66px; display: grid; place-items: center; margin: 0 auto 14px; color: #fff; border-radius: 21px; background: var(--danger); box-shadow: 0 15px 30px rgba(143,31,19,.2); }
.financial-delete-dialog-icon svg { width: 28px; height: 28px; }
.financial-delete-sheet > small { color: var(--danger); font-size: 10px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.financial-delete-sheet h2 { margin: 7px 0 4px; color: var(--navy-900); font-size: 24px; letter-spacing: -.04em; }
.financial-delete-sheet > strong { display: block; color: var(--danger); font-size: 27px; letter-spacing: -.035em; }
.financial-delete-facts { display: grid; gap: 1px; overflow: hidden; margin: 21px 0 14px; text-align: left; border: 1px solid var(--line); border-radius: 17px; background: var(--line); }
.financial-delete-facts > span { display: grid; grid-template-columns: 105px minmax(0,1fr); align-items: center; gap: 10px; padding: 11px 13px; background: #fff; }
.financial-delete-facts small { color: var(--muted); font-size: 10px; }
.financial-delete-facts b { overflow: hidden; color: var(--navy-900); font-size: 11px; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.financial-delete-warning { display: grid; grid-template-columns: 35px minmax(0,1fr); align-items: center; gap: 11px; margin: 0 0 14px; padding: 13px; color: #7c3128; text-align: left; border: 1px solid #efc9c3; border-radius: 15px; background: #fff3f0; font-size: 10px; line-height: 1.5; }
.financial-delete-warning svg { width: 35px; height: 35px; padding: 7px; }
.financial-delete-agreement { display: grid; grid-template-columns: 24px minmax(0,1fr); align-items: start; gap: 11px; padding: 14px; color: var(--ink); text-align: left; border: 1px solid var(--line); border-radius: 15px; background: #fbfcfb; cursor: pointer; }
.financial-delete-agreement input { width: 22px; height: 22px; margin: 0; accent-color: var(--danger); }
.financial-delete-agreement span { font-size: 11px; line-height: 1.5; }
.financial-delete-sheet > footer { display: grid; grid-template-columns: 1fr 1.2fr; gap: 9px; margin-top: 18px; }

@media (max-width: 720px) {
    .financial-ledger-heading { grid-template-columns: 50px minmax(0,1fr); padding: 19px 17px; }
    .financial-ledger-heading-icon { width: 50px; height: 50px; }
    .financial-ledger-role { grid-column: 1 / -1; justify-self: stretch; text-align: center; }
    .financial-ledger-filter { grid-template-columns: 1fr; padding: 16px; }
    .financial-ledger-filter .button { grid-column: auto; }
    .financial-ledger-summary { grid-template-columns: 1fr 1fr; }
    .financial-last-movement { grid-template-columns: minmax(0,1fr) auto; margin-right: 16px; margin-left: 16px; }
    .financial-last-movement > .financial-delete-button, .financial-last-movement > .financial-delete-locked { grid-column: 1 / -1; justify-self: stretch; }
    .financial-ledger-list, .financial-ledger-empty { margin-right: 16px; margin-left: 16px; }
    .financial-ledger-limit-note { align-items: flex-start; flex-direction: column; margin-right: 16px; margin-left: 16px; }
    .financial-recalculation-note { margin-right: 16px; margin-left: 16px; }
}

@media (max-width: 500px) {
    .financial-ledger-day-heading { align-items: stretch; flex-direction: column; padding-right: 16px; padding-left: 16px; }
    .financial-delete-day-button { width: 100%; }
    .financial-ledger-table-head, .financial-ledger-item-main { grid-template-columns: 58px minmax(0,1fr) 72px 78px; gap: 5px; }
    .financial-ledger-table-head { padding: 10px 9px; font-size: 8px; letter-spacing: .015em; }
    .financial-ledger-item-main { padding: 12px 9px 9px; }
    .financial-ledger-item-main time { font-size: 9.5px; }
    .financial-ledger-item-main > strong { font-size: 10px; }
    .financial-ledger-item-main > b { font-size: 9.5px; }
    .financial-ledger-observation { padding: 0 9px 12px; }
    .financial-delete-dialog { width: 100%; max-height: 94dvh; margin: auto 0 0; border-radius: 28px 28px 0 0; }
    .financial-delete-sheet { max-height: 94dvh; padding: 25px 17px calc(20px + env(safe-area-inset-bottom)); }
    .financial-delete-sheet > footer { grid-template-columns: 1fr; }
}

/* Conteúdos e devocionais */
.content-page-heading { max-width: 760px; }
.devotional-feature { position: relative; display: grid; grid-template-columns: minmax(0,1fr) 250px; gap: 28px; overflow: hidden; margin-bottom: 28px; padding: 38px; color: #fff; border: 1px solid rgba(216,169,83,.35); border-radius: 30px; background: linear-gradient(135deg, #08261f 0%, #0c4134 58%, #173d31 100%); box-shadow: 0 24px 64px rgba(8,38,31,.2); isolation: isolate; }
.devotional-feature::before { content: ''; position: absolute; z-index: -1; inset: auto -90px -180px auto; width: 390px; height: 390px; border: 1px solid rgba(229,184,96,.28); border-radius: 50%; box-shadow: 0 0 0 58px rgba(229,184,96,.06), 0 0 0 116px rgba(229,184,96,.035); }
.devotional-feature-copy { min-width: 0; }
.devotional-feature-badge { display: inline-flex; align-items: center; gap: 8px; color: #f0c36d; font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.devotional-feature-badge i { width: 9px; height: 9px; border-radius: 50%; background: #f0c36d; box-shadow: 0 0 0 6px rgba(240,195,109,.12); }
.devotional-feature h2 { max-width: 690px; margin: 17px 0 13px; color: #fff; font-size: clamp(31px, 5vw, 51px); line-height: 1.04; letter-spacing: -.055em; overflow-wrap: anywhere; }
.devotional-feature-copy > p { max-width: 720px; margin: 0; color: rgba(255,255,255,.76); font-size: 15px; line-height: 1.75; }
.devotional-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 23px; color: rgba(255,255,255,.78); }
.devotional-meta span { display: inline-flex; align-items: center; gap: 7px; font-size: 10px; font-weight: 750; }
.devotional-meta svg { width: 17px; height: 17px; fill: none; stroke: #f0c36d; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.devotional-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.devotional-actions a, .devotional-actions button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 19px; border-radius: 15px; font: inherit; font-size: 11px; font-weight: 850; cursor: pointer; text-decoration: none; }
.devotional-actions a { color: #092b23; border: 1px solid #efc36e; background: #efc36e; }
.devotional-actions button { color: #fff; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); }
.devotional-actions svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.devotional-feature-art { position: relative; align-self: center; width: 210px; height: 210px; display: grid; place-items: center; justify-self: end; color: #f0c36d; border: 1px solid rgba(240,195,109,.28); border-radius: 50%; background: rgba(255,255,255,.055); box-shadow: inset 0 0 0 19px rgba(255,255,255,.025); }
.devotional-feature-art svg { width: 105px; height: 105px; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.devotional-feature-art i { position: absolute; width: 13px; height: 13px; top: 24px; right: 23px; border-radius: 50%; background: #f0c36d; box-shadow: 0 0 24px #f0c36d; }
.devotional-library { overflow: hidden; margin-bottom: 24px; border: 1px solid var(--line); border-radius: 28px; background: #fff; box-shadow: var(--shadow-sm); }
.devotional-library > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 28px 30px; border-bottom: 1px solid var(--line); }
.devotional-library > header h2 { margin: 5px 0 6px; color: var(--navy-900); font-size: 26px; letter-spacing: -.04em; }
.devotional-library > header p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.devotional-library > header > span { flex: 0 0 auto; padding: 8px 11px; color: #755020; border: 1px solid #ead3a8; border-radius: 999px; background: #fff6e4; font-size: 9px; font-weight: 850; }
.devotional-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; background: var(--line); }
.devotional-card { min-width: 0; display: grid; grid-template-columns: 52px minmax(0,1fr); gap: 15px; padding: 25px; background: #fff; }
.devotional-card-number { width: 52px; height: 52px; display: grid; place-items: center; color: #8b5d1e; border: 1px solid #ead3aa; border-radius: 17px; background: #fff6e6; font-size: 11px; font-weight: 900; letter-spacing: .05em; }
.devotional-card-copy { min-width: 0; }
.devotional-card-copy > span { color: #9a681f; font-size: 9px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.devotional-card h3 { margin: 6px 0 9px; color: var(--navy-900); font-size: 18px; line-height: 1.18; letter-spacing: -.035em; overflow-wrap: anywhere; }
.devotional-card p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.65; }
.devotional-card-meta { display: flex; flex-wrap: wrap; gap: 7px 12px; margin-top: 14px; color: #6f7975; font-size: 8px; font-weight: 750; }
.devotional-card-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 4px; }
.devotional-card-actions a, .devotional-card-actions button { min-height: 43px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 12px; border-radius: 13px; font: inherit; font-size: 10px; font-weight: 850; cursor: pointer; text-decoration: none; }
.devotional-card-actions a { color: #fff; border: 1px solid var(--green); background: var(--green); }
.devotional-card-actions button { color: var(--green); border: 1px solid #bed9ce; background: #f1f8f5; }
.devotional-card-actions svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.devotional-empty, .devotional-unavailable { padding: 36px 28px; text-align: center; }
.devotional-empty strong, .devotional-unavailable h2 { color: var(--navy-900); }
.devotional-empty p, .devotional-unavailable p { color: var(--muted); }
.devotional-unavailable { margin-bottom: 24px; border: 1px solid var(--line); border-radius: 28px; background: #fff; box-shadow: var(--shadow-sm); }
.devotional-unavailable > span { width: 76px; height: 76px; display: grid; place-items: center; margin: 0 auto; color: var(--green); border-radius: 24px; background: var(--green-soft); }
.devotional-unavailable svg { width: 41px; height: 41px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.devotional-unavailable a { min-height: 46px; display: inline-flex; align-items: center; margin-top: 10px; padding: 10px 17px; color: #fff; border-radius: 13px; background: var(--green); font-size: 10px; font-weight: 850; text-decoration: none; }
.content-share-feedback { position: fixed; z-index: 120; right: 18px; bottom: calc(92px + env(safe-area-inset-bottom)); max-width: min(360px, calc(100% - 36px)); padding: 13px 16px; color: #fff; border: 1px solid rgba(255,255,255,.16); border-radius: 14px; background: #082c24; box-shadow: 0 16px 45px rgba(5,35,29,.28); font-size: 10px; font-weight: 800; line-height: 1.45; }

@media (max-width: 780px) {
    .devotional-feature { grid-template-columns: minmax(0,1fr) 150px; padding: 29px; }
    .devotional-feature-art { width: 145px; height: 145px; }
    .devotional-feature-art svg { width: 74px; height: 74px; }
    .devotional-list { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .devotional-feature { grid-template-columns: 1fr; gap: 22px; padding: 27px 22px; border-radius: 26px; }
    .devotional-feature h2 { font-size: 32px; }
    .devotional-feature-copy > p { font-size: 12px; }
    .devotional-feature-art { position: absolute; right: -38px; bottom: -43px; width: 150px; height: 150px; opacity: .24; }
    .devotional-actions { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; }
    .devotional-library > header { padding: 23px 20px; }
    .devotional-library > header > span { display: none; }
    .devotional-card { grid-template-columns: 48px minmax(0,1fr); padding: 21px 18px; }
    .devotional-card-number { width: 48px; height: 48px; }
    .devotional-card-actions { grid-template-columns: 1fr; }
}

/* Serviço e equipes ministeriais */
.ministry-lead-item[href] { color: inherit; text-decoration: none; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.ministry-lead-item[href]:hover { transform: translateY(-1px); border-color: rgba(240,199,121,.36); background: rgba(255,255,255,.1); }
.member-ministry-summary { position: relative; display: grid; grid-template-columns: 58px minmax(0,1fr) auto; align-items: center; gap: 17px; margin-top: 24px; overflow: hidden; padding: 21px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow-sm); }
.member-ministry-summary::after { content: ''; position: absolute; width: 150px; height: 150px; top: -105px; right: -72px; border: 24px solid rgba(209,161,86,.08); border-radius: 50%; pointer-events: none; }
.member-ministry-summary-icon { width: 58px; height: 58px; display: grid; place-items: center; color: #fff; border-radius: 18px; background: linear-gradient(145deg, var(--navy-800), var(--navy-950)); box-shadow: 0 12px 24px rgba(7,28,25,.2); }
.member-ministry-summary-icon svg { width: 29px; height: 29px; }
.member-ministry-summary-copy { min-width: 0; }
.member-ministry-summary h2 { margin: 5px 0 5px; color: var(--navy-900); font-size: 18px; letter-spacing: -.035em; }
.member-ministry-summary p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.member-ministry-permission-badge { position: relative; z-index: 1; padding: 8px 10px; color: #805419; border: 1px solid #ead3a8; border-radius: 999px; background: #fff6e4; font-size: 9px; font-weight: 850; white-space: nowrap; }
.member-ministry-summary.is-authorized .member-ministry-permission-badge { color: var(--green); border-color: #bad9cd; background: var(--green-soft); }
.member-ministry-summary.is-authorized .member-ministry-summary-icon { background: linear-gradient(145deg, #168264, #0b4e3e); }
.member-ministry-assignment-list { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; padding-top: 15px; border-top: 1px solid var(--line); }
.member-ministry-assignment-list article { min-width: 0; display: grid; grid-template-columns: 42px minmax(0,1fr); align-items: center; gap: 11px; padding: 11px; border: 1px solid #dce9e4; border-radius: 15px; background: #f5faf8; }
.member-ministry-assignment-list article > span { width: 42px; height: 42px; display: grid; place-items: center; overflow: hidden; color: #fff; border-radius: 12px; background: var(--green); font-size: 8px; font-weight: 900; }
.member-ministry-assignment-list article div { min-width: 0; display: flex; flex-direction: column; }
.member-ministry-assignment-list small { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.member-ministry-assignment-list strong { margin-top: 3px; overflow: hidden; color: var(--navy-900); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.ministry-volunteer-board { margin-top: 24px; overflow: hidden; border: 1px solid #c8ded6; border-radius: 24px; background: linear-gradient(145deg, #fff, #f4faf7); box-shadow: var(--shadow-sm); }
.ministry-volunteer-board > header { position: relative; display: grid; grid-template-columns: 58px minmax(0,1fr) auto; align-items: center; gap: 16px; padding: 23px 24px 20px; overflow: hidden; border-bottom: 1px solid #d9e9e3; }
.ministry-volunteer-board > header::after { content: ''; position: absolute; width: 130px; height: 130px; right: -82px; top: -85px; border: 22px solid rgba(15,122,91,.06); border-radius: 50%; pointer-events: none; }
.ministry-volunteer-board-icon { width: 58px; height: 58px; display: grid; place-items: center; color: #fff; border-radius: 18px; background: linear-gradient(145deg, #1a9471, #0b5743); box-shadow: 0 12px 25px rgba(15,122,91,.2); }
.ministry-volunteer-board-icon svg { width: 29px; height: 29px; }
.ministry-volunteer-board h2 { margin: 5px 0 5px; color: var(--navy-900); font-size: 19px; letter-spacing: -.035em; }
.ministry-volunteer-board header p { max-width: 620px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.ministry-volunteer-apt-badge { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; color: var(--green); border: 1px solid #b8d9cc; border-radius: 999px; background: #fff; font-size: 8px; font-weight: 850; white-space: nowrap; }
.ministry-volunteer-apt-badge i { width: 8px; height: 8px; border-radius: 50%; background: #2abd81; box-shadow: 0 0 0 4px rgba(42,189,129,.12); }
.ministry-volunteer-list { display: grid; grid-auto-columns: minmax(255px, 36%); grid-auto-flow: column; gap: 11px; padding: 18px 22px 12px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: #c7dcd4 transparent; }
.ministry-volunteer-option { min-width: 0; display: grid; grid-template-columns: 47px minmax(0,1fr); align-items: center; gap: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 18px; background: #fff; scroll-snap-align: start; }
.ministry-volunteer-option.is-pending { border-color: #b8d9cc; background: #edf8f3; box-shadow: inset 0 0 0 1px rgba(15,122,91,.04); }
.ministry-volunteer-monogram { width: 47px; height: 47px; display: grid; place-items: center; overflow: hidden; color: #fff; border-radius: 14px; background: var(--navy-800); font-size: 8px; font-weight: 900; }
.ministry-volunteer-option.is-pending .ministry-volunteer-monogram { background: var(--green); }
.ministry-volunteer-option-copy { min-width: 0; display: flex; flex-direction: column; }
.ministry-volunteer-option-copy small { color: var(--coral-dark); font-size: 7px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.ministry-volunteer-option.is-pending small { color: var(--green); }
.ministry-volunteer-option-copy strong { margin-top: 4px; overflow: hidden; color: var(--navy-900); font-size: 12px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.ministry-volunteer-option-copy em { margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 8px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.ministry-volunteer-option form { grid-column: 1 / -1; }
.ministry-volunteer-option button { width: 100%; min-height: 45px; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 12px; color: #fff; border: 0; border-radius: 13px; background: var(--green); font: inherit; font-size: 9px; font-weight: 850; cursor: pointer; }
.ministry-volunteer-option.is-pending button { color: var(--green); border: 1px solid #b8d9cc; background: #fff; }
.ministry-volunteer-option button svg { width: 16px; height: 16px; }
.ministry-volunteer-hint { display: flex; align-items: center; gap: 7px; margin: 0; padding: 5px 24px 19px; color: var(--muted); font-size: 8px; line-height: 1.45; }
.ministry-volunteer-hint svg { width: 16px; height: 16px; flex: 0 0 auto; color: var(--green); }
.ministry-volunteer-complete { display: grid; grid-template-columns: 48px minmax(0,1fr); align-items: center; gap: 13px; padding: 24px; }
.ministry-volunteer-complete > span { width: 48px; height: 48px; display: grid; place-items: center; color: var(--green); border-radius: 15px; background: var(--green-soft); }
.ministry-volunteer-complete svg { width: 23px; height: 23px; }
.ministry-volunteer-complete strong { color: var(--navy-900); font-size: 13px; }
.ministry-volunteer-complete p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.ministry-team-quick-card, .ministry-team-resource-card { border-color: #c7ddd5; background: linear-gradient(145deg, #fff, #f2f8f5); }
.icon-ministry-team, .ministry-team-resource-card .resource-icon { color: #fff; background: linear-gradient(145deg, #168264, #0b4e3e) !important; }

.member-ministry-permission-admin { margin: 10px 24px 0; padding: 16px; border: 1px solid #bcdccc; border-radius: 17px; background: linear-gradient(145deg, #eef8f4, #fff); }
.member-ministry-permission-admin > header { display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 12px; }
.member-ministry-permission-admin > header > span { width: 44px; height: 44px; display: grid; place-items: center; color: var(--green); border-radius: 13px; background: #fff; box-shadow: 0 6px 16px rgba(15,122,91,.1); }
.member-ministry-permission-admin > header svg { width: 22px; height: 22px; }
.member-ministry-permission-admin > header div { min-width: 0; display: flex; flex-direction: column; }
.member-ministry-permission-admin > header small { color: var(--green); font-size: 8px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.member-ministry-permission-admin > header strong { margin-top: 4px; color: var(--navy-900); font-size: 13px; }
.member-ministry-permission-admin > header p { margin: 5px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.member-ministry-permission-admin form { display: grid; gap: 10px; margin-top: 14px; }
.member-ministry-permission-toggle { min-height: 50px; display: flex; align-items: center; gap: 11px; padding: 10px 12px; border: 1px solid #d6e8e1; border-radius: 14px; background: #fff; cursor: pointer; }
.member-ministry-permission-toggle input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.member-ministry-permission-toggle > span { position: relative; width: 45px; height: 26px; flex: 0 0 auto; border-radius: 99px; background: #c8cec9; transition: background .18s ease; }
.member-ministry-permission-toggle i { position: absolute; width: 20px; height: 20px; top: 3px; left: 3px; border-radius: 50%; background: #fff; box-shadow: 0 2px 7px rgba(0,0,0,.18); transition: transform .18s ease; }
.member-ministry-permission-toggle input:checked + span { background: var(--green); }
.member-ministry-permission-toggle input:checked + span i { transform: translateX(19px); }
.member-ministry-permission-toggle input:focus-visible + span { outline: 3px solid rgba(209,161,86,.35); outline-offset: 2px; }
.member-ministry-permission-toggle strong { color: var(--navy-900); font-size: 10px; }
.member-ministry-permission-admin form > p { display: flex; align-items: flex-start; gap: 7px; margin: 0; padding: 10px; color: #80543f; border-radius: 11px; background: #fff5ed; font-size: 8px; line-height: 1.45; }
.member-ministry-permission-admin form > p svg { width: 16px; height: 16px; flex: 0 0 auto; }
.member-ministry-permission-admin form > button { min-height: 46px; color: #fff; border: 0; border-radius: 13px; background: var(--green); font: inherit; font-size: 10px; font-weight: 850; cursor: pointer; }

.ministry-team-page-heading { max-width: 800px; }
.ministry-team-hero { position: relative; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 28px; overflow: hidden; margin-bottom: 18px; padding: 29px 31px; color: #fff; border-radius: 27px; background: radial-gradient(circle at 92% 4%, rgba(209,161,86,.28), transparent 31%), linear-gradient(135deg, #071c19, #0f453b); box-shadow: 0 22px 52px rgba(7,28,25,.2); isolation: isolate; }
.ministry-team-hero::after { content: ''; position: absolute; z-index: -1; width: 220px; height: 220px; right: -90px; bottom: -170px; border: 28px solid rgba(255,255,255,.055); border-radius: 50%; }
.ministry-team-hero > div > span { display: inline-flex; align-items: center; gap: 8px; color: #f0c779; font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.ministry-team-hero > div > span i { width: 8px; height: 8px; border-radius: 50%; background: #f0c779; box-shadow: 0 0 0 5px rgba(240,199,121,.11); }
.ministry-team-hero h2 { margin: 10px 0 6px; color: #fff; font-size: clamp(27px,4vw,39px); letter-spacing: -.05em; }
.ministry-team-hero p { max-width: 580px; margin: 0; color: rgba(255,255,255,.65); font-size: 11px; line-height: 1.6; }
.ministry-team-hero dl { display: grid; grid-template-columns: repeat(4, 82px); gap: 8px; margin: 0; }
.ministry-team-hero dl div { display: flex; flex-direction: column-reverse; padding: 13px 10px; text-align: center; border: 1px solid rgba(255,255,255,.1); border-radius: 15px; background: rgba(255,255,255,.07); backdrop-filter: blur(8px); }
.ministry-team-hero dt { margin-top: 4px; color: rgba(255,255,255,.54); font-size: 8px; font-weight: 750; }
.ministry-team-hero dd { margin: 0; color: #fff; font-size: 21px; font-weight: 900; }
.ministry-team-switcher { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 12px; margin-bottom: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); }
.ministry-team-switcher label { display: flex; flex-direction: column; gap: 7px; }
.ministry-team-switcher label span { color: var(--navy-900); font-size: 10px; font-weight: 800; }
.ministry-team-switcher select { min-height: 48px; padding: 0 14px; color: var(--navy-900); border: 1px solid var(--line-strong); border-radius: 13px; background: #fff; }
.ministry-leader-volunteers { margin-bottom: 18px; overflow: hidden; border: 1px solid #c9ddd5; border-radius: 23px; background: #fff; box-shadow: var(--shadow-sm); }
.ministry-leader-volunteers > header { display: grid; grid-template-columns: 52px minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 20px 22px; color: #fff; background: linear-gradient(135deg, #0b3c32, #12624f); }
.ministry-leader-volunteers > header > span { width: 52px; height: 52px; display: grid; place-items: center; color: #f0c779; border: 1px solid rgba(240,199,121,.25); border-radius: 16px; background: rgba(240,199,121,.11); }
.ministry-leader-volunteers > header svg { width: 27px; height: 27px; }
.ministry-leader-volunteers > header div { min-width: 0; }
.ministry-leader-volunteers > header small { color: #f0c779; font-size: 8px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.ministry-leader-volunteers h2 { margin: 4px 0; color: #fff; font-size: 20px; letter-spacing: -.035em; }
.ministry-leader-volunteers header p { margin: 0; color: rgba(255,255,255,.62); font-size: 9px; line-height: 1.5; }
.ministry-leader-volunteers > header > b { min-width: 34px; height: 34px; display: grid; place-items: center; color: var(--navy-900); border-radius: 50%; background: #f0c779; font-size: 11px; }
.ministry-leader-volunteers > div { display: grid; grid-auto-columns: minmax(275px, 36%); grid-auto-flow: column; gap: 10px; padding: 15px; overflow-x: auto; scroll-snap-type: x proximity; }
.ministry-leader-volunteers article { min-width: 0; display: grid; grid-template-columns: 50px minmax(0,1fr); align-items: center; gap: 11px; padding: 13px; border: 1px solid #d8e8e2; border-radius: 16px; background: #f6faf8; scroll-snap-align: start; }
.ministry-leader-volunteer-photo { position: relative; width: 50px; height: 50px; display: grid; place-items: center; color: #fff; border-radius: 15px; background: var(--green); font-size: 16px; font-weight: 900; }
.ministry-leader-volunteer-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 15px; }
.ministry-leader-volunteer-photo i { position: absolute; width: 13px; height: 13px; right: -2px; bottom: -2px; border: 3px solid #f6faf8; border-radius: 50%; background: #2abd81; }
.ministry-leader-volunteers article > div { min-width: 0; display: flex; flex-direction: column; }
.ministry-leader-volunteers article small { color: var(--green); font-size: 7px; font-weight: 850; text-transform: uppercase; }
.ministry-leader-volunteers article strong { margin-top: 4px; overflow: hidden; color: var(--navy-900); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.ministry-leader-volunteers article em { margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 8px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.ministry-leader-volunteers article button { grid-column: 1 / -1; min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 7px; color: #fff; border: 0; border-radius: 12px; background: var(--green); font: inherit; font-size: 9px; font-weight: 850; cursor: pointer; }
.ministry-leader-volunteers article button svg { width: 16px; height: 16px; }
.ministry-team-workspace { display: grid; grid-template-columns: minmax(310px,.78fr) minmax(0,1.35fr); align-items: start; gap: 17px; }
.ministry-team-add, .ministry-team-current { min-width: 0; border: 1px solid var(--line); border-radius: 25px; background: #fff; box-shadow: var(--shadow-sm); }
.ministry-team-add { position: sticky; top: 94px; padding: 22px; }
.ministry-team-add > header { display: grid; grid-template-columns: 47px minmax(0,1fr); gap: 13px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.ministry-team-add > header > span { width: 47px; height: 47px; display: grid; place-items: center; color: #fff; border-radius: 15px; background: var(--green); }
.ministry-team-add > header svg { width: 23px; height: 23px; }
.ministry-team-add > header small { color: var(--coral-dark); font-size: 8px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.ministry-team-add h2 { margin: 4px 0; color: var(--navy-900); font-size: 18px; }
.ministry-team-add header p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.ministry-team-add form { display: grid; gap: 17px; margin-top: 19px; }
.ministry-member-picker, .ministry-function-picker { position: relative; min-width: 0; }
.ministry-member-picker > label, .ministry-function-picker > label { display: block; margin-bottom: 8px; color: var(--navy-900); font-size: 10px; font-weight: 800; }
.ministry-member-search { position: relative; }
.ministry-member-search > svg { position: absolute; width: 19px; height: 19px; top: 50%; left: 14px; color: var(--muted); transform: translateY(-50%); pointer-events: none; }
.ministry-member-search input, .ministry-function-picker > input { width: 100%; min-height: 52px; padding: 12px 14px; color: var(--navy-900); border: 1px solid var(--line-strong); border-radius: 14px; background: #fff; outline: 0; }
.ministry-member-search input { padding-left: 44px; }
.ministry-member-search input:focus, .ministry-function-picker > input:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(15,122,91,.1); }
.ministry-function-picker > small { display: block; margin-top: 7px; color: var(--muted); font-size: 8px; line-height: 1.45; }
.ministry-member-suggestions, .ministry-function-suggestions { position: absolute; z-index: 12; top: calc(100% + 8px); left: 0; right: 0; max-height: 270px; overflow-y: auto; padding: 6px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 20px 50px rgba(7,28,25,.2); }
.ministry-member-suggestions button { width: 100%; min-height: 62px; display: grid; grid-template-columns: 42px minmax(0,1fr) 17px; align-items: center; gap: 10px; padding: 9px; color: var(--ink); border: 0; border-radius: 11px; background: transparent; text-align: left; cursor: pointer; }
.ministry-member-suggestions button:hover, .ministry-member-suggestions button:focus-visible { background: var(--green-soft); }
.ministry-member-suggestions button > span:first-child, .ministry-member-selected > span { width: 42px; height: 42px; display: grid; place-items: center; overflow: hidden; color: #fff; border-radius: 13px; background: var(--green); font-size: 14px; font-weight: 900; }
.ministry-member-suggestions img, .ministry-member-selected img { width: 100%; height: 100%; object-fit: cover; }
.ministry-member-suggestions button > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; }
.ministry-member-suggestions strong { overflow: hidden; color: var(--navy-900); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.ministry-member-suggestions small { margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.ministry-member-suggestions svg { width: 17px; height: 17px; color: var(--coral-dark); }
.ministry-member-suggestions > p, .ministry-function-suggestions > p { margin: 0; padding: 14px 10px; color: var(--muted); font-size: 9px; line-height: 1.45; text-align: center; }
.ministry-member-selected { min-height: 64px; display: grid; grid-template-columns: 42px minmax(0,1fr) 42px; align-items: center; gap: 10px; padding: 10px; border: 1px solid #bcdccc; border-radius: 15px; background: var(--green-soft); }
.ministry-member-selected div { min-width: 0; display: flex; flex-direction: column; }
.ministry-member-selected small { color: var(--green); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.ministry-member-selected strong { margin-top: 3px; overflow: hidden; color: var(--navy-900); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.ministry-member-selected button { width: 42px; height: 42px; display: grid; place-items: center; color: var(--danger); border: 0; border-radius: 12px; background: #fff; cursor: pointer; }
.ministry-member-selected button svg { width: 18px; height: 18px; }
.ministry-function-suggestions { display: flex; flex-wrap: wrap; gap: 5px; max-height: 205px; }
.ministry-function-suggestions button { min-height: 39px; padding: 8px 11px; color: var(--navy-900); border: 1px solid #d9e8e2; border-radius: 999px; background: #f2f8f5; font: inherit; font-size: 9px; font-weight: 800; cursor: pointer; }
.ministry-function-suggestions button:hover, .ministry-function-suggestions button:focus-visible { color: #fff; border-color: var(--green); background: var(--green); }
.ministry-team-add .button-full:disabled { color: #8a8f8a; background: #e7eae7; box-shadow: none; cursor: not-allowed; transform: none; }
.ministry-team-add form > .button-full { scroll-margin-bottom: 105px; }
.ministry-team-current { overflow: hidden; }
.ministry-team-current > header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 24px; border-bottom: 1px solid var(--line); }
.ministry-team-current > header h2 { margin: 4px 0 5px; color: var(--navy-900); font-size: 22px; letter-spacing: -.04em; }
.ministry-team-current > header p { margin: 0; color: var(--muted); font-size: 9px; }
.ministry-team-current > header > span { flex: 0 0 auto; padding: 8px 10px; color: var(--green); border: 1px solid #bcdccc; border-radius: 999px; background: var(--green-soft); font-size: 9px; font-weight: 850; }
.ministry-team-list { display: grid; gap: 1px; background: var(--line); }
.ministry-team-member { display: grid; grid-template-columns: 58px minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 18px 20px; background: #fff; }
.ministry-team-member-photo { position: relative; width: 58px; height: 58px; display: grid; place-items: center; overflow: visible; color: #fff; border-radius: 18px; background: var(--green); font-size: 18px; font-weight: 900; }
.ministry-team-member-photo img { width: 100%; height: 100%; object-fit: cover; overflow: hidden; border-radius: 18px; }
.ministry-team-member-photo i { position: absolute; width: 13px; height: 13px; right: -2px; bottom: -2px; border: 3px solid #fff; border-radius: 50%; background: #2abd81; }
.ministry-team-member-copy { min-width: 0; display: flex; flex-direction: column; }
.ministry-team-member-copy small { color: var(--green); font-size: 8px; font-weight: 850; text-transform: uppercase; }
.ministry-team-member-copy strong { margin-top: 4px; overflow: hidden; color: var(--navy-900); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.ministry-team-member-copy em { margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 8px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.ministry-team-function-form { grid-column: 2 / -1; }
.ministry-team-function-form label { display: block; margin-bottom: 5px; color: var(--muted); font-size: 8px; font-weight: 750; }
.ministry-team-function-form > div { display: grid; grid-template-columns: minmax(0,1fr) auto; }
.ministry-team-function-form input { min-width: 0; min-height: 43px; padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: 11px 0 0 11px; outline: 0; }
.ministry-team-function-form input:focus { position: relative; z-index: 1; border-color: var(--green); }
.ministry-team-function-form button { min-height: 43px; padding: 9px 11px; color: #fff; border: 0; border-radius: 0 11px 11px 0; background: var(--green); font: inherit; font-size: 8px; font-weight: 850; cursor: pointer; }
.ministry-team-remove-form { grid-column: 3; grid-row: 1; }
.ministry-team-remove-form button { min-height: 42px; display: inline-flex; align-items: center; gap: 6px; padding: 9px 10px; color: var(--danger); border: 1px solid #efcbc4; border-radius: 11px; background: #fff5f2; font: inherit; font-size: 8px; font-weight: 850; cursor: pointer; }
.ministry-team-remove-form svg { width: 15px; height: 15px; }
.ministry-team-empty, .ministry-team-no-candidates { display: flex; align-items: center; flex-direction: column; padding: 43px 24px; text-align: center; }
.ministry-team-empty > span, .ministry-team-no-candidates > span { width: 67px; height: 67px; display: grid; place-items: center; color: var(--green); border-radius: 21px; background: var(--green-soft); }
.ministry-team-empty svg, .ministry-team-no-candidates svg { width: 34px; height: 34px; }
.ministry-team-empty strong, .ministry-team-no-candidates strong { margin-top: 15px; color: var(--navy-900); font-size: 15px; }
.ministry-team-empty p, .ministry-team-no-candidates p { max-width: 340px; margin: 7px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.ministry-team-history { margin-top: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow-sm); }
.ministry-team-history > summary { min-height: 82px; display: grid; grid-template-columns: 48px minmax(0,1fr) auto 20px; align-items: center; gap: 13px; padding: 16px 20px; list-style: none; cursor: pointer; }
.ministry-team-history > summary::-webkit-details-marker { display: none; }
.ministry-team-history > summary > span { width: 48px; height: 48px; display: grid; place-items: center; color: var(--coral-dark); border-radius: 15px; background: var(--coral-soft); }
.ministry-team-history summary svg { width: 23px; height: 23px; }
.ministry-team-history summary div { min-width: 0; display: flex; flex-direction: column; }
.ministry-team-history summary small { color: var(--coral-dark); font-size: 8px; font-weight: 850; text-transform: uppercase; }
.ministry-team-history summary strong { margin-top: 3px; color: var(--navy-900); font-size: 14px; }
.ministry-team-history summary p { margin: 3px 0 0; color: var(--muted); font-size: 8px; }
.ministry-team-history summary b { padding: 7px 9px; color: var(--navy-900); border-radius: 999px; background: var(--canvas); font-size: 9px; }
.ministry-team-history summary > svg { width: 18px; height: 18px; transition: transform .18s ease; }
.ministry-team-history[open] summary > svg { transform: rotate(180deg); }
.ministry-team-history > div { display: grid; gap: 1px; border-top: 1px solid var(--line); background: var(--line); }
.ministry-team-history article { display: grid; grid-template-columns: 10px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 14px 20px; background: #fff; }
.ministry-team-history article > span { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.ministry-team-history article > div { min-width: 0; display: flex; flex-direction: column; }
.ministry-team-history article strong { overflow: hidden; color: var(--navy-900); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.ministry-team-history article small, .ministry-team-history article em { margin-top: 3px; color: var(--muted); font-size: 8px; font-style: normal; }
.ministry-team-history time { display: flex; align-items: flex-end; flex-direction: column; }

@media (max-width: 900px) {
    .ministry-team-workspace { grid-template-columns: 1fr; }
    .ministry-team-add { position: static; }
}

@media (max-width: 680px) {
    .member-ministry-summary { grid-template-columns: 52px minmax(0,1fr); padding: 18px; }
    .member-ministry-summary-icon { width: 52px; height: 52px; }
    .member-ministry-permission-badge { grid-column: 1 / -1; justify-self: start; }
    .member-ministry-assignment-list { grid-template-columns: 1fr; }
    .ministry-team-hero { grid-template-columns: 1fr; padding: 25px 21px; }
    .ministry-volunteer-board > header { grid-template-columns: 52px minmax(0,1fr); padding: 20px 18px; }
    .ministry-volunteer-board-icon { width: 52px; height: 52px; }
    .ministry-volunteer-apt-badge { grid-column: 1 / -1; justify-self: start; }
    .ministry-volunteer-list { grid-auto-columns: minmax(250px, 88%); padding-right: 18px; padding-left: 18px; }
    .ministry-volunteer-hint { padding-right: 18px; padding-left: 18px; }
    .ministry-team-hero dl { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .ministry-leader-volunteers > header { grid-template-columns: 48px minmax(0,1fr) auto; padding: 18px 16px; }
    .ministry-leader-volunteers > header > span { width: 48px; height: 48px; }
    .ministry-leader-volunteers h2 { font-size: 17px; }
    .ministry-leader-volunteers header p { display: none; }
    .ministry-leader-volunteers > div { grid-auto-columns: minmax(260px, 88%); }
    .ministry-team-switcher { grid-template-columns: 1fr; }
    .ministry-team-switcher .button { display: none; }
    .ministry-team-add, .ministry-team-current { border-radius: 22px; }
    .ministry-team-current > header { align-items: flex-start; flex-direction: column; padding: 21px 18px; }
    .ministry-team-member { grid-template-columns: 54px minmax(0,1fr) 42px; gap: 11px; padding: 16px; }
    .ministry-team-function-form { grid-column: 1 / -1; }
    .ministry-team-function-form > div { grid-template-columns: 1fr; gap: 7px; }
    .ministry-team-function-form input, .ministry-team-function-form button { border-radius: 11px; }
    .ministry-team-function-form button { min-height: 44px; }
    .ministry-team-remove-form button { width: 42px; justify-content: center; padding: 0; font-size: 0; }
    .ministry-team-remove-form svg { width: 18px; height: 18px; }
    .ministry-team-history > summary { grid-template-columns: 44px minmax(0,1fr) auto 18px; padding: 14px 15px; }
    .ministry-team-history summary p { display: none; }
    .member-ministry-permission-admin { margin-right: 16px; margin-left: 16px; }
}

/* Ministry Management App UI v2 */
.ministry-management {
    --mm-ink: var(--navy-900, #0d332f);
    --mm-deep: var(--navy-950, #071c19);
    --mm-green: var(--green, #0f7a5b);
    --mm-gold: var(--coral, #d1a156);
    --mm-surface: #fff;
    --mm-canvas: #f5f7f5;
    --mm-line: #dce5e0;
    --mm-muted: #61716b;
    min-width: 0;
    padding-bottom: 38px;
    color: var(--mm-ink);
    font-size: 16px;
    line-height: 1.55;
}
.ministry-management [hidden] { display: none !important; }
.ministry-management *,
.ministry-management *::before,
.ministry-management *::after { box-sizing: border-box; }
.ministry-management button,
.ministry-management input,
.ministry-management select,
.ministry-management textarea { font: inherit; }
.ministry-management button,
.ministry-management a,
.ministry-management input,
.ministry-management select,
.ministry-management textarea { -webkit-tap-highlight-color: transparent; }
.ministry-management :where(a, button, input, select, textarea):focus-visible {
    outline: 3px solid rgba(15, 122, 91, .28);
    outline-offset: 2px;
}
.mm-page-heading { margin-bottom: 20px; }
.mm-page-heading .eyebrow { font-size: 14px; }
.mm-page-heading h1 { max-width: none; font-size: clamp(34px, 5vw, 50px); letter-spacing: -.045em; }
.mm-page-heading p { max-width: 720px; font-size: 16px; line-height: 1.55; }

.mm-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 32px;
    min-height: 220px;
    margin-bottom: 18px;
    padding: 34px;
    overflow: hidden;
    color: #fff;
    border-radius: 30px;
    background:
        radial-gradient(circle at 90% 0, rgba(209, 161, 86, .30), transparent 34%),
        linear-gradient(135deg, #071c19 0%, #0d443a 72%, #0f5c4a 100%);
    box-shadow: 0 24px 60px rgba(7, 28, 25, .20);
    isolation: isolate;
}
.mm-hero::before,
.mm-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 50%;
}
.mm-hero::before { width: 270px; height: 270px; right: -75px; top: -135px; }
.mm-hero::after { width: 185px; height: 185px; right: 38px; bottom: -135px; }
.mm-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #f2cb83;
    font-size: 14px;
    font-weight: 850;
    letter-spacing: .07em;
    text-transform: uppercase;
}
.mm-kicker i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #f2cb83;
    box-shadow: 0 0 0 6px rgba(242, 203, 131, .13);
}
.mm-hero h2 { margin: 10px 0 8px; color: #fff; font-size: clamp(30px, 4vw, 44px); letter-spacing: -.045em; }
.mm-hero p { max-width: 610px; margin: 0; color: rgba(255, 255, 255, .74); font-size: 16px; }
.mm-hero-stats { display: grid; grid-template-columns: repeat(2, minmax(105px, 1fr)); gap: 10px; }
.mm-hero-stats > span {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 18px;
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(10px);
}
.mm-hero-stats strong { color: #fff; font-size: 28px; line-height: 1; }
.mm-hero-stats small { margin-top: 8px; color: rgba(255, 255, 255, .68); font-size: 14px; }

.mm-ministry-switcher {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 12px;
    margin: 0 0 18px;
    padding: 18px;
    border: 1px solid var(--mm-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(7, 28, 25, .06);
}
.mm-ministry-switcher label,
.mm-form label,
.mm-form-grid label { display: flex; min-width: 0; flex-direction: column; gap: 8px; }
.mm-ministry-switcher label > span,
.mm-form label > span,
.mm-form-grid label > span { color: var(--mm-ink); font-size: 14px; font-weight: 800; }
.mm-ministry-switcher select,
.mm-ministry-switcher button,
.mm-form :where(input, select, textarea),
.mm-form-grid :where(input, select, textarea) {
    width: 100%;
    min-height: 52px;
    padding: 12px 15px;
    color: var(--mm-ink);
    border: 1px solid #cbd8d2;
    border-radius: 14px;
    background: #fff;
}
.mm-ministry-switcher button {
    width: auto;
    min-width: 110px;
    color: #fff;
    border: 0;
    background: var(--mm-green);
    font-weight: 850;
    cursor: pointer;
}
.mm-form textarea { min-height: 104px; resize: vertical; }
.mm-form :where(input, select, textarea):focus,
.mm-form-grid :where(input, select, textarea):focus,
.mm-ministry-switcher select:focus { border-color: var(--mm-green); outline: 0; box-shadow: 0 0 0 4px rgba(15, 122, 91, .10); }

.mm-tabs {
    position: sticky;
    z-index: 8;
    top: 78px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 7px;
    margin-bottom: 28px;
    padding: 8px;
    border: 1px solid var(--mm-line);
    border-radius: 22px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 14px 38px rgba(7, 28, 25, .09);
    backdrop-filter: blur(16px);
}
.mm-tabs a {
    min-width: 0;
    min-height: 72px;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: center;
    column-gap: 10px;
    padding: 11px 13px;
    color: var(--mm-muted);
    border-radius: 16px;
    text-decoration: none;
}
.mm-tabs a > span {
    grid-row: 1 / 3;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    align-self: center;
    color: var(--mm-green);
    border-radius: 10px;
    background: #e9f4ef;
    font-size: 14px;
    font-weight: 900;
}
.mm-tabs a strong { overflow: hidden; color: inherit; font-size: 15px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.mm-tabs a small { overflow: hidden; font-size: 14px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.mm-tabs a:hover { color: var(--mm-ink); background: #f3f7f5; }
.mm-tabs a.is-active { color: #fff; background: var(--mm-ink); box-shadow: 0 10px 24px rgba(13, 51, 47, .20); }
.mm-tabs a.is-active > span { color: var(--mm-ink); background: #f2cb83; }
.mm-tabs a.is-active small { color: rgba(255, 255, 255, .66); }

.mm-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin: 0 2px 18px;
}
.mm-section-heading > div > span,
.mm-panel-header > div > span,
.mm-volunteers header span,
.mm-scale-toolbar > div > span,
.mm-scale-group > header > div > span {
    color: var(--mm-green);
    font-size: 14px;
    font-weight: 850;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.mm-section-heading h2 { margin: 5px 0 4px; color: var(--mm-ink); font-size: clamp(25px, 4vw, 34px); letter-spacing: -.035em; }
.mm-section-heading p { margin: 0; color: var(--mm-muted); font-size: 16px; }
.mm-section-heading > b,
.mm-panel-header > b {
    flex: 0 0 auto;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    color: var(--mm-green);
    border: 1px solid #bcdacf;
    border-radius: 999px;
    background: #edf7f2;
    font-size: 14px;
}

.mm-overview-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.mm-action-card {
    min-width: 0;
    min-height: 195px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 24px;
    align-content: start;
    gap: 15px;
    padding: 22px;
    color: var(--mm-ink);
    border: 1px solid var(--mm-line);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(7, 28, 25, .06);
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.mm-action-card:hover { border-color: #b7d7cb; box-shadow: 0 18px 42px rgba(7, 28, 25, .12); transform: translateY(-3px); }
.mm-action-card > span {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: var(--mm-green);
    border-radius: 15px;
    background: #eaf5f0;
    font-size: 14px;
    font-weight: 900;
}
.mm-action-card > div { min-width: 0; }
.mm-action-card small { color: var(--mm-green); font-size: 14px; font-weight: 800; }
.mm-action-card h3 { margin: 9px 0 6px; color: var(--mm-ink); font-size: 19px; letter-spacing: -.025em; }
.mm-action-card p { margin: 0; color: var(--mm-muted); font-size: 14px; line-height: 1.55; }
.mm-action-card > b { color: var(--mm-gold); font-size: 24px; }
.mm-action-card-functions { color: #fff; border-color: transparent; background: linear-gradient(145deg, #0d332f, #0f594a); }
.mm-action-card-functions h3,
.mm-action-card-functions > b { color: #fff; }
.mm-action-card-functions small { color: #f0c779; }
.mm-action-card-functions p { color: rgba(255, 255, 255, .70); }
.mm-action-card-functions > span { color: var(--mm-ink); background: #f0c779; }

.mm-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(310px, .75fr); gap: 18px; }
.mm-two-columns { display: grid; grid-template-columns: minmax(320px, .78fr) minmax(0, 1.32fr); align-items: start; gap: 18px; }
.mm-team-layout { display: grid; grid-template-columns: minmax(340px, .82fr) minmax(0, 1.25fr); align-items: start; gap: 18px; }
.mm-calendar-layout { display: grid; grid-template-columns: minmax(430px, .95fr) minmax(0, 1.05fr); align-items: start; gap: 18px; }
.mm-panel {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--mm-line);
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 12px 36px rgba(7, 28, 25, .07);
}
.mm-panel-header {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 22px;
    border-bottom: 1px solid var(--mm-line);
}
.mm-panel-header h2 { margin: 4px 0 0; color: var(--mm-ink); font-size: 22px; letter-spacing: -.03em; }
.mm-panel-header a {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    padding: 9px 12px;
    color: var(--mm-green);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}
.mm-status {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    color: #996311;
    border: 1px solid #efd8ab;
    border-radius: 999px;
    background: #fff7e7;
    font-size: 14px;
    font-style: normal;
}
.mm-status.is-published { color: #0d7655; border-color: #b9dece; background: #eaf8f1; }

.mm-timeline { display: grid; }
.mm-timeline article {
    min-height: 95px;
    display: grid;
    grid-template-columns: 105px minmax(0, 1fr) auto;
    align-items: center;
    gap: 17px;
    padding: 16px 22px;
    border-bottom: 1px solid var(--mm-line);
}
.mm-timeline article:last-child { border-bottom: 0; }
.mm-timeline time { display: flex; flex-direction: column; }
.mm-timeline time strong { color: var(--mm-ink); font-size: 15px; }
.mm-timeline time small { margin-top: 2px; color: var(--mm-green); font-size: 14px; }
.mm-timeline h3 { margin: 0; color: var(--mm-ink); font-size: 17px; }
.mm-timeline p { margin: 4px 0 0; color: var(--mm-muted); font-size: 14px; }
.mm-timeline article > span { padding: 7px 10px; color: var(--mm-muted); border-radius: 999px; background: var(--mm-canvas); font-size: 14px; }
.mm-schedule-summary { padding-bottom: 22px; text-align: center; }
.mm-progress-ring {
    width: 150px;
    height: 150px;
    display: grid;
    place-content: center;
    margin: 26px auto 18px;
    border-radius: 50%;
    background: radial-gradient(circle at center, #fff 57%, transparent 59%), conic-gradient(var(--mm-green) var(--mm-progress), #e6eeea 0);
}
.mm-progress-ring strong { color: var(--mm-ink); font-size: 35px; line-height: 1; }
.mm-progress-ring small { margin-top: 6px; color: var(--mm-muted); font-size: 14px; }
.mm-schedule-summary > p { max-width: 340px; margin: 0 auto 17px; padding: 0 20px; color: var(--mm-muted); font-size: 14px; }
.mm-primary-link,
.mm-empty a {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 17px;
    color: #fff;
    border-radius: 14px;
    background: var(--mm-green);
    font-size: 14px;
    font-weight: 850;
    text-decoration: none;
}

.mm-history { margin-top: 18px; overflow: hidden; border: 1px solid var(--mm-line); border-radius: 22px; background: #fff; }
.mm-history summary {
    min-height: 76px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    padding: 14px 20px;
    list-style: none;
    cursor: pointer;
}
.mm-history summary::-webkit-details-marker { display: none; }
.mm-history summary > span { width: 48px; height: 48px; display: grid; place-items: center; color: var(--mm-green); border-radius: 15px; background: #eaf5f0; font-size: 22px; }
.mm-history summary div { display: flex; flex-direction: column; }
.mm-history summary strong { font-size: 16px; }
.mm-history summary small { color: var(--mm-muted); font-size: 14px; }
.mm-history summary > b { min-width: 38px; min-height: 38px; display: grid; place-items: center; border-radius: 999px; background: var(--mm-canvas); font-size: 14px; }
.mm-history > div { border-top: 1px solid var(--mm-line); }
.mm-history article { min-height: 68px; display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 13px; padding: 12px 20px; border-bottom: 1px solid var(--mm-line); }
.mm-history article i { width: 9px; height: 9px; border-radius: 50%; background: var(--mm-green); box-shadow: 0 0 0 4px #eaf5f0; }
.mm-history article div { display: flex; flex-direction: column; }
.mm-history article strong { font-size: 15px; }
.mm-history article small,
.mm-history article time { color: var(--mm-muted); font-size: 14px; }

.mm-form-panel { overflow: visible; }
.mm-form-panel > .mm-panel-header { border-radius: 26px 26px 0 0; background: linear-gradient(180deg, #fff, #fbfcfb); }
.mm-form { display: grid; gap: 18px; padding: 22px; }
.mm-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.mm-form-grid .mm-field-wide { grid-column: 1 / -1; }
.mm-form label small,
.mm-form-grid label small { color: var(--mm-muted); font-size: 14px; font-weight: 500; }
.mm-field-help { margin: -7px 0 0; color: var(--mm-muted); font-size: 14px; }
.mm-primary-button,
.mm-secondary-button {
    width: 100%;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 850;
    cursor: pointer;
}
.mm-primary-button { color: #fff; border: 0; background: var(--mm-green); box-shadow: 0 10px 24px rgba(15, 122, 91, .18); }
.mm-secondary-button { color: var(--mm-green); border: 1px solid #b7d8cb; background: #edf7f2; }
.mm-primary-button:disabled,
.mm-secondary-button:disabled { color: #89928e; border-color: #dfe4e1; background: #e9ecea; box-shadow: none; cursor: not-allowed; }

.mm-function-list { display: grid; }
.mm-function-list article {
    min-height: 84px;
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 15px 20px;
    border-bottom: 1px solid var(--mm-line);
}
.mm-function-list article:last-child { border-bottom: 0; }
.mm-function-list article > span { width: 50px; height: 50px; display: grid; place-items: center; color: #fff; border-radius: 15px; background: var(--mm-green); font-size: 18px; font-weight: 900; }
.mm-function-list article > div { display: flex; min-width: 0; flex-direction: column; }
.mm-function-list article strong { overflow: hidden; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.mm-function-list article small { margin-top: 3px; color: var(--mm-muted); font-size: 14px; }
.mm-function-list button,
.mm-function-list article > b {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    padding: 9px 13px;
    color: #a94838;
    border: 1px solid #ebc9c1;
    border-radius: 12px;
    background: #fff6f3;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}
.mm-function-list article.is-inactive { opacity: .62; }

.mm-volunteers { margin-bottom: 18px; overflow: hidden; border: 1px solid #c8ded5; border-radius: 24px; background: #fff; }
.mm-volunteers > header { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 22px; color: #fff; background: linear-gradient(135deg, #0b3d34, #12634f); }
.mm-volunteers h2 { margin: 4px 0 0; color: #fff; font-size: 22px; }
.mm-volunteers header span { color: #f0c779; }
.mm-volunteers header > b { min-width: 42px; min-height: 42px; display: grid; place-items: center; color: var(--mm-ink); border-radius: 50%; background: #f0c779; font-size: 14px; }
.mm-volunteers > div { display: grid; grid-auto-columns: minmax(280px, 32%); grid-auto-flow: column; gap: 12px; padding: 16px; overflow-x: auto; scroll-snap-type: x proximity; }
.mm-volunteers article { min-height: 86px; display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 12px; border: 1px solid #dce8e3; border-radius: 17px; background: #f7faf8; scroll-snap-align: start; }
.mm-volunteers article > span,
.mm-team-member-head > span {
    position: relative;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #fff;
    border-radius: 16px;
    background: var(--mm-green);
    font-size: 18px;
    font-weight: 900;
}
.mm-volunteers img,
.mm-team-member-head img,
.mm-member-selected img,
.mm-member-suggestions img { width: 100%; height: 100%; object-fit: cover; }
.mm-volunteers article div { display: flex; min-width: 0; flex-direction: column; }
.mm-volunteers article strong { overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.mm-volunteers article small { color: var(--mm-muted); font-size: 14px; }
.mm-volunteers article button {
    min-height: 48px;
    padding: 9px 12px;
    color: var(--mm-green);
    border: 1px solid #bad9cd;
    border-radius: 12px;
    background: #fff;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.mm-blocked-step {
    min-height: 128px;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 24px;
    border: 1px solid #e8d4ac;
    border-radius: 24px;
    background: #fffaf0;
}
.mm-blocked-step > span { width: 58px; height: 58px; display: grid; place-items: center; color: #8d5e12; border-radius: 17px; background: #f7e5bd; font-size: 17px; font-weight: 900; }
.mm-blocked-step h2 { margin: 0; font-size: 21px; }
.mm-blocked-step p { margin: 4px 0 0; color: var(--mm-muted); font-size: 14px; }
.mm-blocked-step a { min-height: 48px; display: inline-flex; align-items: center; padding: 10px 15px; color: #fff; border-radius: 13px; background: var(--mm-green); font-size: 14px; font-weight: 850; text-decoration: none; }
.mm-team-add { position: sticky; top: 176px; }

.mm-member-picker { position: relative; }
.mm-member-picker > label { display: block; margin-bottom: 8px; color: var(--mm-ink); font-size: 14px; font-weight: 800; }
.mm-member-search { position: relative; }
.mm-member-search svg { position: absolute; width: 21px; height: 21px; top: 50%; left: 15px; color: var(--mm-muted); transform: translateY(-50%); pointer-events: none; }
.mm-member-search input { width: 100%; min-height: 54px; padding: 12px 14px 12px 46px; color: var(--mm-ink); border: 1px solid #cbd8d2; border-radius: 14px; background: #fff; }
.mm-member-suggestions {
    position: absolute;
    z-index: 14;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    max-height: 340px;
    overflow-y: auto;
    padding: 7px;
    border: 1px solid var(--mm-line);
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 22px 54px rgba(7, 28, 25, .20);
}
.mm-member-suggestions button {
    width: 100%;
    min-height: 68px;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 11px;
    padding: 9px;
    color: var(--mm-ink);
    border: 0;
    border-radius: 12px;
    background: transparent;
    text-align: left;
    cursor: pointer;
}
.mm-member-suggestions button:hover,
.mm-member-suggestions button:focus-visible { background: #edf7f2; }
.mm-member-suggestions button > span:first-child,
.mm-member-selected > span { width: 46px; height: 46px; display: grid; place-items: center; overflow: hidden; color: #fff; border-radius: 13px; background: var(--mm-green); font-weight: 900; }
.mm-member-suggestions button > span:nth-child(2) { display: flex; min-width: 0; flex-direction: column; }
.mm-member-suggestions strong { overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.mm-member-suggestions small { overflow: hidden; color: var(--mm-muted); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.mm-member-suggestions > p { margin: 0; padding: 18px; color: var(--mm-muted); font-size: 14px; text-align: center; }
.mm-member-selected {
    min-height: 70px;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 48px;
    align-items: center;
    gap: 11px;
    padding: 10px;
    border: 1px solid #b8dbcd;
    border-radius: 15px;
    background: #edf7f2;
}
.mm-member-selected > div { display: flex; min-width: 0; flex-direction: column; }
.mm-member-selected small { color: var(--mm-green); font-size: 14px; font-weight: 800; }
.mm-member-selected strong { overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.mm-member-selected button { width: 48px; height: 48px; color: #a94838; border: 0; border-radius: 13px; background: #fff; font-size: 25px; cursor: pointer; }

.mm-function-checklist,
.mm-requirements { min-width: 0; margin: 0; padding: 0; border: 0; }
.mm-function-checklist legend,
.mm-requirements legend { width: 100%; margin-bottom: 10px; color: var(--mm-ink); font-size: 15px; font-weight: 850; }
.mm-function-checklist legend small,
.mm-requirements legend small { display: block; margin-top: 2px; color: var(--mm-muted); font-size: 14px; font-weight: 500; }
.mm-function-checklist > div { display: flex; flex-wrap: wrap; gap: 9px; }
.mm-function-checklist label { position: relative; display: block; cursor: pointer; }
.mm-function-checklist label > input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.mm-function-checklist label > span {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    color: var(--mm-ink);
    border: 1px solid #d4dfda;
    border-radius: 14px;
    background: #f7f9f8;
    font-size: 14px;
    font-weight: 750;
}
.mm-function-checklist label > span i { width: 23px; height: 23px; display: grid; place-items: center; color: transparent; border: 2px solid #a8b5af; border-radius: 7px; font-size: 14px; font-style: normal; }
.mm-function-checklist input:focus-visible + span { outline: 3px solid rgba(15, 122, 91, .24); outline-offset: 2px; }
.mm-function-checklist input:checked + span { color: #fff; border-color: var(--mm-green); background: var(--mm-green); }
.mm-function-checklist input:checked + span i { color: var(--mm-green); border-color: #fff; background: #fff; }
.mm-function-checklist > p { margin: 10px 0 0; color: var(--mm-muted); font-size: 14px; }
.mm-inline-search { width: 100%; margin-bottom: 10px; }
.mm-inline-search input { min-height: 48px !important; }
.mm-function-checklist-compact { margin-top: 15px; }
.mm-function-checklist-compact > div { gap: 7px; }
.mm-function-checklist-compact label > span { min-height: 44px; padding: 8px 10px; }

.mm-team-list { display: grid; gap: 12px; padding: 14px; background: #f6f8f7; }
.mm-team-member { position: relative; padding: 17px; border: 1px solid var(--mm-line); border-radius: 19px; background: #fff; }
.mm-team-member-head { display: grid; grid-template-columns: 54px minmax(0, 1fr); align-items: center; gap: 12px; padding-right: 140px; }
.mm-team-member-head > span { overflow: visible; }
.mm-team-member-head > span img { overflow: hidden; border-radius: 16px; }
.mm-team-member-head > span i { position: absolute; width: 14px; height: 14px; right: -2px; bottom: -2px; border: 3px solid #fff; border-radius: 50%; background: #24b77e; }
.mm-team-member-head > div { display: flex; min-width: 0; flex-direction: column; }
.mm-team-member-head strong { overflow: hidden; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.mm-team-member-head small { color: var(--mm-muted); font-size: 14px; }
.mm-team-member > form:not(.mm-remove-form) { margin-top: 14px; }
.mm-remove-form { position: absolute; top: 18px; right: 17px; }
.mm-remove-form button {
    min-height: 48px;
    padding: 9px 12px;
    color: #a94838;
    border: 1px solid #edccc4;
    border-radius: 12px;
    background: #fff6f3;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.mm-requirements { padding: 17px; border: 1px solid var(--mm-line); border-radius: 18px; background: #f7f9f8; }
.mm-requirements > div { display: grid; gap: 8px; }
.mm-requirements > div > label {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    gap: 15px;
    padding: 9px 10px 9px 14px;
    border: 1px solid #dce4e0;
    border-radius: 14px;
    background: #fff;
}
.mm-requirements label > span:first-child { display: flex; min-width: 0; flex-direction: column; }
.mm-requirements label strong { overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.mm-requirements label small { color: var(--mm-muted); font-size: 14px; }
.mm-stepper { display: grid; grid-template-columns: 48px 56px 48px; flex: 0 0 auto; }
.mm-stepper button,
.mm-stepper input { min-width: 0; min-height: 48px; padding: 0; text-align: center; border: 1px solid #cbd8d2; background: #fff; }
.mm-stepper button { color: var(--mm-green); font-size: 20px; font-weight: 900; cursor: pointer; }
.mm-stepper button:first-child { border-radius: 12px 0 0 12px; }
.mm-stepper button:last-child { border-radius: 0 12px 12px 0; }
.mm-stepper input { border-right: 0; border-left: 0; border-radius: 0; font-weight: 850; -moz-appearance: textfield; }
.mm-stepper input::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
.mm-requirements > p { margin: 13px 0 0; color: var(--mm-muted); font-size: 14px; }

.mm-activity-list { display: grid; gap: 12px; padding: 14px; background: #f6f8f7; }
.mm-activity-list article { display: grid; grid-template-columns: 118px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 16px; border: 1px solid var(--mm-line); border-radius: 18px; background: #fff; }
.mm-activity-date { min-height: 88px; display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 10px; text-align: center; border-radius: 14px; background: #edf7f2; }
.mm-activity-date span { color: var(--mm-green); font-size: 14px; font-weight: 850; }
.mm-activity-date strong { margin-top: 5px; font-size: 15px; }
.mm-activity-date small { margin-top: 2px; color: var(--mm-muted); font-size: 14px; }
.mm-activity-copy { min-width: 0; }
.mm-activity-copy h3 { margin: 0; color: var(--mm-ink); font-size: 18px; }
.mm-activity-copy p { margin: 4px 0 8px; color: var(--mm-muted); font-size: 14px; }
.mm-activity-copy > div { display: flex; flex-wrap: wrap; gap: 6px; }
.mm-activity-copy > div span { padding: 6px 9px; color: var(--mm-ink); border-radius: 999px; background: var(--mm-canvas); font-size: 14px; }
.mm-activity-list form button {
    min-height: 48px;
    padding: 9px 12px;
    color: #a94838;
    border: 1px solid #edccc4;
    border-radius: 12px;
    background: #fff6f3;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.mm-scale-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
    padding: 18px;
    border: 1px solid var(--mm-line);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 36px rgba(7, 28, 25, .07);
}
.mm-scale-toolbar form { display: grid; grid-template-columns: minmax(220px, 330px) auto; align-items: end; gap: 10px; }
.mm-scale-toolbar label { display: flex; flex-direction: column; gap: 7px; }
.mm-scale-toolbar label span { font-size: 14px; font-weight: 800; }
.mm-scale-toolbar input,
.mm-scale-toolbar button { min-height: 52px; padding: 10px 14px; border-radius: 14px; font-size: 15px; }
.mm-scale-toolbar input { color: var(--mm-ink); border: 1px solid #cbd8d2; background: #fff; }
.mm-scale-toolbar button { color: #fff; border: 0; background: var(--mm-green); font-weight: 850; cursor: pointer; }
.mm-scale-toolbar > div { display: flex; align-items: flex-end; flex-direction: column; }
.mm-scale-toolbar > div strong { font-size: 18px; }
.mm-scale-toolbar > div small { color: var(--mm-muted); font-size: 14px; }
.mm-scale-groups { display: grid; gap: 16px; }
.mm-scale-group { overflow: hidden; border: 1px solid var(--mm-line); border-radius: 24px; background: #fff; box-shadow: 0 12px 36px rgba(7, 28, 25, .07); }
.mm-scale-group > header { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; align-items: center; gap: 17px; min-height: 112px; padding: 17px 20px; color: #fff; background: linear-gradient(135deg, #0c372f, #105545); }
.mm-scale-group > header time { min-height: 75px; display: flex; align-items: center; justify-content: center; flex-direction: column; border: 1px solid rgba(255, 255, 255, .13); border-radius: 15px; background: rgba(255, 255, 255, .08); }
.mm-scale-group > header time strong { font-size: 15px; }
.mm-scale-group > header time small { color: #f0c779; font-size: 14px; }
.mm-scale-group > header > div span { color: #f0c779; }
.mm-scale-group > header h2 { margin: 4px 0 2px; color: #fff; font-size: 21px; }
.mm-scale-group > header p { margin: 0; color: rgba(255, 255, 255, .68); font-size: 14px; }
.mm-scale-group > header > b { padding: 8px 10px; border-radius: 999px; background: rgba(255, 255, 255, .10); font-size: 14px; }
.mm-scale-group > div { display: grid; gap: 1px; background: var(--mm-line); }
.mm-scale-group article { min-height: 82px; display: grid; grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr); align-items: center; gap: 18px; padding: 14px 20px; background: #fff; }
.mm-scale-group article > div { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 11px; }
.mm-scale-group article > div > span { width: 44px; height: 44px; display: grid; place-items: center; color: #fff; border-radius: 13px; background: #bc6656; font-size: 18px; font-weight: 900; }
.mm-scale-group article.is-filled > div > span { background: var(--mm-green); }
.mm-scale-group article > div > div { display: flex; min-width: 0; flex-direction: column; }
.mm-scale-group article strong { overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.mm-scale-group article small { color: var(--mm-muted); font-size: 14px; }
.mm-scale-group article form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.mm-scale-group article select,
.mm-scale-group article button { min-height: 48px; padding: 9px 12px; border-radius: 12px; font-size: 14px; }
.mm-scale-group article select { min-width: 0; width: 100%; color: var(--mm-ink); border: 1px solid #cbd8d2; background: #fff; }
.mm-scale-group article button { color: #fff; border: 0; background: var(--mm-green); font-weight: 850; cursor: pointer; }
.mm-assigned-name { justify-self: end; }
.mm-publish-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 18px;
    padding: 20px;
    color: #fff;
    border-radius: 22px;
    background: var(--mm-ink);
    box-shadow: 0 18px 46px rgba(7, 28, 25, .18);
}
.mm-publish-bar > div { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 13px; }
.mm-publish-bar > div > span { width: 48px; height: 48px; display: grid; place-items: center; color: var(--mm-ink); border-radius: 14px; background: #f0c779; font-weight: 900; }
.mm-publish-bar strong { font-size: 16px; }
.mm-publish-bar p { margin: 2px 0 0; color: rgba(255, 255, 255, .68); font-size: 14px; }
.mm-publish-bar button { min-height: 52px; padding: 11px 18px; color: var(--mm-ink); border: 0; border-radius: 14px; background: #f0c779; font-size: 15px; font-weight: 900; cursor: pointer; }
.mm-scale-history { margin-top: 18px; }
.mm-scale-history > div { display: grid; }
.mm-scale-history a { min-height: 70px; display: grid; grid-template-columns: minmax(0, 1fr) auto 20px; align-items: center; gap: 13px; padding: 12px 20px; color: var(--mm-ink); border-bottom: 1px solid var(--mm-line); text-decoration: none; }
.mm-scale-history a > span { display: flex; flex-direction: column; }
.mm-scale-history a strong { font-size: 15px; }
.mm-scale-history a small { color: var(--mm-muted); font-size: 14px; }
.mm-scale-history a > i { color: var(--mm-green); font-size: 25px; font-style: normal; }

.mm-empty { display: flex; align-items: center; flex-direction: column; padding: 38px 24px; text-align: center; }
.mm-empty > span { min-width: 64px; height: 64px; display: grid; place-items: center; color: var(--mm-green); border-radius: 20px; background: #eaf5f0; font-size: 22px; font-weight: 900; }
.mm-empty h3 { margin: 14px 0 5px; color: var(--mm-ink); font-size: 19px; }
.mm-empty p { max-width: 440px; margin: 0 0 15px; color: var(--mm-muted); font-size: 14px; }
.mm-empty-large { min-height: 300px; justify-content: center; margin-top: 18px; border: 1px solid var(--mm-line); border-radius: 24px; background: #fff; }

@media (max-width: 1120px) {
    .mm-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mm-calendar-layout { grid-template-columns: 1fr; }
}
@media (max-width: 940px) {
    .mm-hero { grid-template-columns: 1fr; }
    .mm-hero-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .mm-dashboard-grid,
    .mm-two-columns,
    .mm-team-layout { grid-template-columns: 1fr; }
    .mm-team-add { position: static; }
    .mm-tabs { top: 70px; overflow-x: auto; grid-template-columns: repeat(5, minmax(160px, 1fr)); scroll-snap-type: x proximity; }
    .mm-tabs a { scroll-snap-align: center; }
}
@media (max-width: 720px) {
    .ministry-management { margin-right: -2px; margin-left: -2px; padding-bottom: 96px; font-size: 16px; }
    .mm-page-heading h1 { font-size: 36px; }
    .mm-hero { min-height: 0; gap: 24px; padding: 25px 21px; border-radius: 24px; }
    .mm-hero h2 { font-size: 31px; }
    .mm-hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mm-hero-stats > span { min-height: 84px; }
    .mm-ministry-switcher { grid-template-columns: 1fr; }
    .mm-ministry-switcher button { width: 100%; }
    .mm-tabs {
        top: 62px;
        grid-template-columns: repeat(5, minmax(142px, 1fr));
        margin-right: -12px;
        margin-left: -12px;
        padding-right: 14px;
        padding-left: 14px;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }
    .mm-tabs a { min-height: 70px; }
    .mm-section-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
    .mm-section-heading h2 { font-size: 28px; }
    .mm-overview-grid { grid-template-columns: 1fr; }
    .mm-action-card { min-height: 158px; }
    .mm-panel,
    .mm-form-panel > .mm-panel-header { border-radius: 22px; }
    .mm-panel-header { min-height: 82px; padding: 18px; }
    .mm-panel-header h2 { font-size: 20px; }
    .mm-timeline article { grid-template-columns: 94px minmax(0, 1fr); padding: 15px 17px; }
    .mm-timeline article > span { grid-column: 2; justify-self: start; }
    .mm-history article { grid-template-columns: 10px minmax(0, 1fr); }
    .mm-history article time { grid-column: 2; }
    .mm-form { padding: 18px; }
    .mm-form-grid { grid-template-columns: 1fr; }
    .mm-form-grid .mm-field-wide { grid-column: auto; }
    .mm-volunteers > div { grid-auto-columns: minmax(270px, 88%); }
    .mm-blocked-step { grid-template-columns: 56px minmax(0, 1fr); padding: 19px; }
    .mm-blocked-step a { grid-column: 1 / -1; justify-content: center; }
    .mm-team-member-head { padding-right: 0; }
    .mm-remove-form { position: static; margin-top: 10px; }
    .mm-remove-form button { width: 100%; }
    .mm-activity-list article { grid-template-columns: 100px minmax(0, 1fr); }
    .mm-activity-list form { grid-column: 1 / -1; }
    .mm-activity-list form button { width: 100%; }
    .mm-scale-toolbar { grid-template-columns: 1fr; }
    .mm-scale-toolbar > div { align-items: flex-start; }
    .mm-scale-group > header { grid-template-columns: 96px minmax(0, 1fr); padding: 16px; }
    .mm-scale-group > header > b { grid-column: 2; justify-self: start; }
    .mm-scale-group article { grid-template-columns: 1fr; gap: 12px; padding: 15px 17px; }
    .mm-assigned-name { justify-self: start; }
    .mm-publish-bar { align-items: stretch; flex-direction: column; }
    .mm-publish-bar button { width: 100%; }
}
@media (max-width: 480px) {
    .mm-page-heading h1 { font-size: 32px; }
    .mm-hero-stats { gap: 8px; }
    .mm-hero-stats > span { padding: 10px; }
    .mm-overview-grid { gap: 11px; }
    .mm-action-card { grid-template-columns: 46px minmax(0, 1fr) 18px; padding: 18px; }
    .mm-function-list article { grid-template-columns: 48px minmax(0, 1fr); padding: 14px; }
    .mm-function-list article form,
    .mm-function-list article > b { grid-column: 1 / -1; }
    .mm-function-list button,
    .mm-function-list article > b { width: 100%; justify-content: center; }
    .mm-requirements > div > label { align-items: stretch; flex-direction: column; }
    .mm-stepper { grid-template-columns: 48px minmax(0, 1fr) 48px; }
    .mm-activity-list article { grid-template-columns: 1fr; }
    .mm-activity-date { min-height: 78px; }
    .mm-scale-toolbar form { grid-template-columns: 1fr; }
    .mm-scale-group > header { grid-template-columns: 1fr; }
    .mm-scale-group > header time { align-items: flex-start; min-height: 60px; padding: 10px 14px; }
    .mm-scale-group > header > b { grid-column: 1; }
    .mm-scale-group article form { grid-template-columns: 1fr; }
    .mm-scale-group article button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .mm-action-card { transition: none; }
}

/* Activity editing controls */
.mm-form-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}
.mm-cancel-button {
    min-height: 52px;
    padding: 11px 16px;
    color: var(--mm-muted);
    border: 1px solid #cbd8d2;
    border-radius: 14px;
    background: #fff;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}
.mm-activity-actions {
    display: grid;
    gap: 8px;
    min-width: 112px;
}
.mm-activity-actions > button,
.mm-activity-actions form button {
    width: 100%;
    min-height: 48px;
    padding: 9px 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}
.mm-activity-actions > .mm-edit-activity {
    color: var(--mm-green);
    border: 1px solid #bad9cd;
    background: #edf7f2;
}
@media (max-width: 720px) {
    .mm-activity-actions {
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 480px) {
    .mm-form-actions { grid-template-columns: 1fr; }
}

/* CSP-safe progress ring levels */
.mm-progress-10 { --mm-progress: 10%; }
.mm-progress-20 { --mm-progress: 20%; }
.mm-progress-30 { --mm-progress: 30%; }
.mm-progress-40 { --mm-progress: 40%; }
.mm-progress-50 { --mm-progress: 50%; }
.mm-progress-60 { --mm-progress: 60%; }
.mm-progress-70 { --mm-progress: 70%; }
.mm-progress-80 { --mm-progress: 80%; }
.mm-progress-90 { --mm-progress: 90%; }
.mm-progress-100 { --mm-progress: 100%; }

/* Ministry monthly calendar */
.mm-copy-mode {
    position: sticky;
    z-index: 10;
    top: 164px;
    min-height: 78px;
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    padding: 13px 16px;
    color: #fff;
    border: 1px solid rgba(240, 199, 121, .42);
    border-radius: 20px;
    background: linear-gradient(135deg, #0b3b33, #105b4a);
    box-shadow: 0 16px 42px rgba(7, 28, 25, .24);
}
.mm-copy-mode > span {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    color: var(--mm-ink);
    border-radius: 15px;
    background: #f0c779;
    font-size: 24px;
    font-weight: 900;
}
.mm-copy-mode > div { min-width: 0; }
.mm-copy-mode strong { color: #fff; font-size: 16px; }
.mm-copy-mode p { margin: 2px 0 0; color: rgba(255, 255, 255, .72); font-size: 14px; }
.mm-copy-mode p b { color: #f4d596; }
.mm-copy-mode button {
    min-height: 48px;
    padding: 9px 14px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 13px;
    background: rgba(255, 255, 255, .08);
    font-size: 14px;
    font-weight: 850;
    cursor: pointer;
}

.mm-month-calendar {
    margin-bottom: 18px;
    overflow: hidden;
    border: 1px solid var(--mm-line);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 16px 44px rgba(7, 28, 25, .08);
}
.mm-month-calendar > header {
    min-height: 108px;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 54px;
    align-items: center;
    gap: 18px;
    padding: 20px 24px;
    color: #fff;
    background:
        radial-gradient(circle at 83% 5%, rgba(209, 161, 86, .27), transparent 30%),
        linear-gradient(135deg, #071c19, #0e4b3f);
}
.mm-month-calendar > header > a {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 16px;
    background: rgba(255, 255, 255, .09);
}
.mm-month-calendar > header > a:hover { background: rgba(255, 255, 255, .16); }
.mm-month-calendar > header svg { width: 24px; height: 24px; }
.mm-month-calendar > header > div { min-width: 0; text-align: center; }
.mm-month-calendar > header span {
    color: #f0c779;
    font-size: 14px;
    font-weight: 850;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.mm-month-calendar > header h2 { margin: 4px 0 1px; color: #fff; font-size: clamp(25px, 4vw, 34px); letter-spacing: -.035em; }
.mm-month-calendar > header p { margin: 0; color: rgba(255, 255, 255, .68); font-size: 14px; }
.mm-calendar-tools {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 20px;
    border-bottom: 1px solid var(--mm-line);
}
.mm-calendar-tools a {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    padding: 9px 13px;
    color: var(--mm-green);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 850;
    text-decoration: none;
}
.mm-calendar-tools span { display: inline-flex; align-items: center; gap: 8px; color: var(--mm-muted); font-size: 14px; }
.mm-calendar-tools i { width: 10px; height: 10px; border-radius: 50%; background: var(--mm-green); box-shadow: 0 0 0 4px #eaf5f0; }
.mm-calendar-scroll { overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; }
.mm-calendar-canvas { min-width: 790px; padding: 12px; background: #f5f8f6; }
.mm-calendar-weekdays,
.mm-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; }
.mm-calendar-weekdays { margin-bottom: 7px; }
.mm-calendar-weekdays span {
    min-height: 38px;
    display: grid;
    place-items: center;
    color: var(--mm-muted);
    font-size: 14px;
    font-weight: 850;
    text-transform: uppercase;
}
.mm-calendar-day {
    position: relative;
    min-width: 0;
    min-height: 112px;
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    padding: 9px;
    overflow: hidden;
    color: var(--mm-ink);
    border: 1px solid #dbe5e0;
    border-radius: 15px;
    background: #fff;
    text-align: left;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
button.mm-calendar-day:hover { border-color: #9dcbb9; box-shadow: 0 8px 22px rgba(7, 28, 25, .09); transform: translateY(-1px); }
.mm-calendar-day.is-outside { border-style: dashed; background: #eef2f0; opacity: .48; }
.mm-calendar-number {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 11px;
    font-size: 15px;
    font-weight: 900;
}
.mm-calendar-day.is-today .mm-calendar-number { color: #fff; background: var(--mm-green); }
.mm-calendar-day.is-selected { border-color: var(--mm-green); box-shadow: 0 0 0 3px rgba(15, 122, 91, .16); }
.mm-calendar-day.is-selected::after {
    content: "";
    position: absolute;
    width: 9px;
    height: 9px;
    top: 9px;
    right: 9px;
    border-radius: 50%;
    background: var(--mm-green);
}
.mm-calendar-events { display: grid; gap: 5px; min-width: 0; }
.mm-calendar-events > span {
    min-width: 0;
    min-height: 27px;
    display: grid;
    grid-template-columns: 7px auto minmax(0, 1fr);
    align-items: center;
    gap: 5px;
    padding: 4px 6px;
    color: #0c5344;
    border-radius: 8px;
    background: #eaf5f0;
}
.mm-calendar-events i { width: 7px; height: 7px; border-radius: 50%; background: var(--mm-green); }
.mm-calendar-events b { font-size: 14px; }
.mm-calendar-events em { overflow: hidden; font-size: 14px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.mm-calendar-events > small { color: var(--mm-muted); font-size: 14px; font-weight: 750; }
.mm-calendar-mobile-count { display: none !important; }
.ministry-management.is-copying-activity .mm-calendar-day:not(.is-outside) {
    border-color: #d3aa64;
    background: #fffbf2;
    cursor: copy;
}
.ministry-management.is-copying-activity .mm-calendar-day:not(.is-outside)::before {
    content: "Copiar";
    position: absolute;
    right: 7px;
    bottom: 7px;
    padding: 3px 6px;
    color: #7b5314;
    border-radius: 7px;
    background: #f5dfb4;
    font-size: 14px;
    font-weight: 850;
}
.mm-calendar-day.is-copy-target { border-color: #c88a2e !important; box-shadow: 0 0 0 4px rgba(209, 161, 86, .24) !important; }
.mm-month-calendar > footer {
    min-height: 68px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-top: 1px solid var(--mm-line);
    background: #fff;
}
.mm-month-calendar > footer > span { width: 44px; height: 44px; display: grid; place-items: center; flex: 0 0 auto; color: var(--mm-green); border-radius: 13px; background: #eaf5f0; font-size: 22px; font-weight: 900; }
.mm-month-calendar > footer p { margin: 0; color: var(--mm-muted); font-size: 14px; }
.mm-month-calendar > footer strong { color: var(--mm-ink); }

.mm-copy-activity { color: #805715 !important; border-color: #ead3a7 !important; background: #fff8e9 !important; }
.mm-copy-activity[aria-pressed="true"] { color: #fff !important; border-color: #b97a20 !important; background: #b97a20 !important; }

.mm-copy-dialog {
    width: min(520px, calc(100vw - 28px));
    max-width: none;
    max-height: min(700px, calc(100dvh - 28px));
    padding: 0;
    overflow: hidden;
    color: var(--mm-ink);
    border: 0;
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 30px 90px rgba(7, 28, 25, .34);
}
.mm-copy-dialog::backdrop { background: rgba(4, 20, 18, .68); backdrop-filter: blur(5px); }
.mm-copy-dialog > form { display: grid; }
.mm-copy-dialog header {
    min-height: 88px;
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr) 48px;
    align-items: center;
    gap: 13px;
    padding: 17px 19px;
    color: #fff;
    background: linear-gradient(135deg, #0a342d, #0f5949);
}
.mm-copy-dialog header > span { width: 50px; height: 50px; display: grid; place-items: center; color: var(--mm-ink); border-radius: 15px; background: #f0c779; font-size: 23px; font-weight: 900; }
.mm-copy-dialog header small { color: #f0c779; font-size: 14px; font-weight: 850; text-transform: uppercase; }
.mm-copy-dialog header h2 { margin: 2px 0 0; color: #fff; font-size: 22px; }
.mm-copy-dialog header button { width: 48px; height: 48px; color: #fff; border: 1px solid rgba(255, 255, 255, .18); border-radius: 14px; background: rgba(255, 255, 255, .08); font-size: 27px; cursor: pointer; }
.mm-copy-dialog-body { display: grid; gap: 17px; padding: 22px; }
.mm-copy-dialog-body > p { margin: 0; color: var(--mm-muted); font-size: 15px; }
.mm-copy-dialog-body > p strong { color: var(--mm-ink); }
.mm-copy-dialog-body label { display: flex; flex-direction: column; gap: 8px; }
.mm-copy-dialog-body label span { font-size: 14px; font-weight: 850; }
.mm-copy-dialog-body input { width: 100%; min-height: 54px; padding: 11px 14px; color: var(--mm-ink); border: 1px solid #cbd8d2; border-radius: 14px; background: #fff; font-size: 16px; }
.mm-copy-dialog-body > small { color: var(--mm-muted); font-size: 14px; line-height: 1.55; }
.mm-copy-dialog footer { display: grid; grid-template-columns: 1fr 1.2fr; gap: 10px; padding: 16px 22px 22px; }
.mm-copy-dialog footer button { min-height: 52px; padding: 10px 15px; border-radius: 14px; font-size: 15px; font-weight: 850; cursor: pointer; }
.mm-copy-dialog footer button:first-child { color: var(--mm-muted); border: 1px solid #cbd8d2; background: #fff; }
.mm-copy-dialog footer button:last-child { color: #fff; border: 0; background: var(--mm-green); box-shadow: 0 10px 24px rgba(15, 122, 91, .18); }

@media (max-width: 720px) {
    .mm-copy-mode { top: 142px; grid-template-columns: 46px minmax(0, 1fr); padding: 12px 14px; border-radius: 18px; }
    .mm-copy-mode > span { width: 46px; height: 46px; }
    .mm-copy-mode > button { grid-column: 1 / -1; width: 100%; }
    .mm-month-calendar { margin-right: -12px; margin-left: -12px; border-radius: 23px; }
    .mm-month-calendar > header { min-height: 100px; grid-template-columns: 50px minmax(0, 1fr) 50px; gap: 8px; padding: 17px 10px; }
    .mm-month-calendar > header > a { width: 50px; height: 50px; border-radius: 14px; }
    .mm-month-calendar > header h2 { font-size: 25px; }
    .mm-month-calendar > header p { display: none; }
    .mm-calendar-tools { padding-right: 10px; padding-left: 10px; }
    .mm-calendar-scroll { overflow-x: visible; }
    .mm-calendar-canvas { width: 100%; min-width: 0; padding: 2px; }
    .mm-calendar-weekdays,
    .mm-calendar-grid { grid-template-columns: repeat(7, minmax(48px, 1fr)); gap: 1px; }
    .mm-calendar-weekdays { margin-bottom: 1px; }
    .mm-calendar-weekdays span { min-height: 32px; font-size: 14px; }
    .mm-calendar-day { min-width: 48px; min-height: 72px; gap: 3px; padding: 4px; border-radius: 10px; }
    .mm-calendar-number { width: 30px; height: 30px; border-radius: 9px; font-size: 14px; }
    .mm-calendar-events { display: flex; align-items: center; margin-top: auto; }
    .mm-calendar-events [data-calendar-event],
    .mm-calendar-events > small { display: none; }
    .mm-calendar-events > .mm-calendar-mobile-count {
        min-height: 24px;
        display: inline-flex !important;
        align-items: center;
        gap: 4px;
        padding: 3px 6px;
        color: #0c5344;
        border-radius: 999px;
        background: #eaf5f0;
    }
    .mm-calendar-mobile-count i { width: 7px; height: 7px; }
    .mm-calendar-mobile-count b { font-size: 14px; line-height: 1; }
    .ministry-management.is-copying-activity .mm-calendar-day:not(.is-outside)::before { display: none; }
    .mm-copy-dialog {
        width: 100%;
        max-height: 88dvh;
        margin: auto 0 0;
        border-radius: 26px 26px 0 0;
    }
    .mm-copy-dialog[open] { animation: mm-sheet-in .2s ease-out; }
}
@media (max-width: 480px) {
    .mm-calendar-tools > span { display: none; }
    .mm-month-calendar > footer { align-items: flex-start; }
    .mm-copy-dialog footer { grid-template-columns: 1fr; }
}
@keyframes mm-sheet-in {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .mm-calendar-day { transition: none; }
    .mm-copy-dialog[open] { animation: none; }
}

/* Gestão Financeira unificada */
.financial-workspace { min-width: 0; }
.financial-workspace svg, .financial-module-heading svg, .financial-catalog-panel svg, .financial-payable-board svg, .financial-payable-launch-card svg, .financial-workspace-dialog svg, .financial-permission-block svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.financial-workspace-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin: 0 0 24px; padding: 7px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow-sm); }
.financial-workspace-nav.sections-1 { grid-template-columns: minmax(0, 1fr); }
.financial-workspace-nav.sections-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.financial-workspace-nav.sections-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.financial-workspace-nav a { min-width: 0; min-height: 62px; display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; gap: 10px; padding: 10px 13px; color: #66736f; border-radius: 16px; text-decoration: none; transition: color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease; }
.financial-workspace-nav a:hover { color: var(--navy-900); background: #f4f7f6; }
.financial-workspace-nav a:focus-visible { outline: 3px solid rgba(15, 122, 91, .2); outline-offset: 2px; }
.financial-workspace-nav a.active { color: #fff; background: linear-gradient(135deg, #071c19, #164c43); box-shadow: 0 12px 25px rgba(7, 28, 25, .16); }
.financial-workspace-nav svg { width: 27px; height: 27px; }
.financial-workspace-nav a.active svg { color: #e7bd79; }
.financial-workspace-nav span { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.financial-workspace-nav strong { overflow-wrap: anywhere; font-size: 14px; line-height: 1.15; }
.financial-workspace-nav small { color: inherit; font-size: 12px; opacity: .7; }
.financial-balances-view { min-width: 0; }
.home-financial-balances { min-width: 0; margin-top: 18px; padding: 16px; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow-sm); }
.home-financial-balances-heading { min-width: 0; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 11px; }
.home-financial-balances-icon { width: 42px; height: 42px; display: grid; place-items: center; color: #704b13; border-radius: 13px; background: #f7e7c8; }
.home-financial-balances-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.home-financial-balances-copy { min-width: 0; }
.home-financial-balances-copy .eyebrow { color: var(--coral-dark); font-size: 8px; letter-spacing: .11em; }
.home-financial-balances-copy h2 { margin: 3px 0 0; color: var(--navy-900); font-size: 18px; letter-spacing: -.035em; }
.home-financial-balances-total { min-width: 116px; display: flex; flex-direction: column; align-items: flex-end; gap: 1px; text-align: right; }
.home-financial-balances-total small, .home-financial-balances-total span { color: var(--muted); font-size: 8px; }
.home-financial-balances-total strong { color: var(--green); font-size: 16px; line-height: 1.2; font-variant-numeric: tabular-nums; white-space: nowrap; }
.home-financial-balances-total.is-negative strong { color: var(--danger); }
.home-financial-balances-total.is-zero strong { color: #68736f; }
.financial-balance-chart { min-width: 0; margin: 0; padding: 21px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow-sm); }
.home-financial-balances .financial-balance-chart { margin-top: 12px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.financial-balance-chart figcaption { display: flex; align-items: end; justify-content: space-between; gap: 18px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.financial-balance-chart figcaption > span { display: flex; flex-direction: column; gap: 4px; }
.financial-balance-chart figcaption small { color: var(--coral-dark); font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.financial-balance-chart figcaption strong { color: var(--navy-900); font-size: 20px; }
.financial-balance-chart figcaption em { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 7px; color: var(--muted); font-size: 9px; font-style: normal; }
.financial-balance-chart figcaption em i { width: 9px; height: 9px; margin-left: 4px; border-radius: 50%; background: #aeb8b5; }
.financial-balance-chart figcaption em i.is-positive { background: var(--green); }
.financial-balance-chart figcaption em i.is-negative { background: var(--danger); }
.financial-balance-chart-list { display: grid; gap: 7px; padding-top: 0; }
.financial-balance-row { width: 100%; min-width: 0; min-height: 62px; display: block; padding: 10px 12px; color: var(--ink); text-align: left; border: 1px solid #dfe7e4; border-radius: 14px; background: #fbfcfb; cursor: pointer; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.financial-balance-row:hover { border-color: #b9cec6; background: #f5faf8; }
.financial-balance-row:active { transform: scale(.995); }
.financial-balance-row:focus-visible { outline-color: rgba(15, 122, 91, .35); }
.financial-balance-row-heading { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 7px; }
.financial-balance-row-heading > span { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.financial-balance-row-heading strong { overflow-wrap: anywhere; color: var(--navy-900); font-size: 11px; line-height: 1.25; }
.financial-balance-row-heading small { color: var(--muted); font-size: 8px; }
.financial-balance-row-heading > .financial-balance-row-value { flex: none; flex-direction: row; align-items: center; gap: 5px; }
.financial-balance-row-value b { color: var(--green); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.financial-balance-row-value svg { fill: none; stroke: #82918c; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.financial-balance-row.is-negative .financial-balance-row-value b { color: var(--danger); }
.financial-balance-row.is-zero .financial-balance-row-value b { color: #68736f; }
.financial-balance-track { position: relative; min-width: 0; height: 6px; }
.financial-balance-progress { width: 100%; height: 6px; display: block; overflow: hidden; border: 0; border-radius: 999px; appearance: none; -webkit-appearance: none; background: #e9efed; }
.financial-balance-progress::-webkit-progress-bar { border-radius: 999px; background: #e9efed; }
.financial-balance-progress::-webkit-progress-value { border-radius: 999px; background: linear-gradient(90deg, #0f7a5b, #37a57f); }
.financial-balance-progress::-moz-progress-bar { border-radius: 999px; background: linear-gradient(90deg, #0f7a5b, #37a57f); }
.financial-balance-progress.is-negative::-webkit-progress-value { background: linear-gradient(90deg, #8f1f13, #d2594b); }
.financial-balance-progress.is-negative::-moz-progress-bar { background: linear-gradient(90deg, #8f1f13, #d2594b); }
.financial-balance-progress.is-zero::-webkit-progress-value { background: #98a39f; }
.financial-balance-progress.is-zero::-moz-progress-bar { background: #98a39f; }
.financial-balance-zero-marker { position: absolute; top: 50%; left: 2px; width: 7px; height: 7px; border: 1px solid #fff; border-radius: 50%; background: #98a39f; box-shadow: 0 0 0 1px #7f8b87; transform: translateY(-50%); }
.financial-balance-chart-note { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 10px; margin: 16px 0 0; padding: 12px; color: #4f6a63; border: 1px solid #d7e5e0; border-radius: 14px; background: #f1f7f4; font-size: 10px; line-height: 1.5; }
.financial-balance-chart-note svg { width: 34px; height: 34px; padding: 7px; color: var(--green); }
.financial-balances-empty { display: flex; flex-direction: column; align-items: center; padding: 42px 20px; color: var(--muted); text-align: center; border: 1px dashed #cbd8d3; border-radius: 24px; background: #fff; }
.home-financial-balances .financial-balances-empty { margin-top: 18px; padding-block: 30px; background: #fbfcfb; }
.financial-balances-empty > span { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 12px; color: var(--green); border-radius: 18px; background: var(--green-soft); }
.financial-balances-empty svg { width: 27px; height: 27px; }
.financial-balances-empty strong { color: var(--navy-900); font-size: 17px; }
.financial-balances-empty p { max-width: 42ch; margin: 7px 0 0; font-size: 13px; line-height: 1.55; }
.financial-statement-dialog { width: min(720px, calc(100% - 28px)); max-height: min(88dvh, 780px); padding: 0; overflow: hidden; color: var(--ink); border: 0; border-radius: 25px; background: #fff; box-shadow: 0 28px 80px rgba(7, 28, 25, .28); }
.financial-statement-dialog::backdrop { background: rgba(7, 28, 25, .58); backdrop-filter: blur(5px); }
.financial-statement-dialog[open] { animation: mm-sheet-in .2s ease-out; }
.financial-statement-sheet { max-height: min(88dvh, 780px); display: flex; flex-direction: column; overflow: hidden; background: #f8f7f2; }
.financial-statement-heading { position: sticky; z-index: 2; top: 0; display: grid; grid-template-columns: 44px minmax(0, 1fr) 40px; align-items: center; gap: 11px; padding: 17px 18px 15px; color: #fff; background: linear-gradient(135deg, #0a2823, #176052); }
.financial-statement-icon { width: 44px; height: 44px; display: grid; place-items: center; color: #f3cf8d; border: 1px solid rgba(243, 207, 141, .2); border-radius: 14px; background: rgba(243, 207, 141, .12); }
.financial-statement-icon svg, .financial-statement-close svg, .financial-statement-status-icon svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.financial-statement-heading > div { min-width: 0; }
.financial-statement-heading small { color: rgba(255, 255, 255, .58); font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.financial-statement-heading h2 { margin: 3px 0 1px; overflow: hidden; color: #fff; font-size: 18px; letter-spacing: -.03em; text-overflow: ellipsis; white-space: nowrap; }
.financial-statement-heading p { margin: 0; color: rgba(255, 255, 255, .7); font-size: 9px; }
.financial-statement-close { width: 40px; height: 40px; display: grid; place-items: center; color: #fff; border: 1px solid rgba(255, 255, 255, .15); border-radius: 12px; background: rgba(255, 255, 255, .08); cursor: pointer; }
.financial-statement-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); flex: 0 0 auto; gap: 1px; border-bottom: 1px solid var(--line); background: var(--line); }
.financial-statement-summary article { min-width: 0; display: flex; flex-direction: column; gap: 3px; padding: 11px 13px; background: #fff; }
.financial-statement-summary small { color: var(--muted); font-size: 8px; }
.financial-statement-summary strong { overflow-wrap: anywhere; color: var(--navy-900); font-size: 13px; font-variant-numeric: tabular-nums; }
.financial-statement-summary .is-entry strong { color: var(--green); }
.financial-statement-summary .is-exit strong { color: var(--danger); }
.financial-statement-status { min-height: 250px; display: flex; flex: 1 1 auto; flex-direction: column; align-items: center; justify-content: center; padding: 32px 22px; text-align: center; }
.financial-statement-status[hidden], .financial-statement-list[hidden], .financial-statement-summary[hidden] { display: none; }
.financial-statement-status-icon { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 12px; color: var(--green); border-radius: 17px; background: var(--green-soft); }
.financial-statement-status.is-loading .financial-statement-status-icon svg { animation: spin .8s linear infinite; }
.financial-statement-status.is-error .financial-statement-status-icon { color: var(--danger); background: var(--danger-soft); }
.financial-statement-status strong { color: var(--navy-900); font-size: 16px; }
.financial-statement-status p { max-width: 38ch; margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.financial-statement-status .button { min-height: 42px; margin-top: 15px; font-size: 11px; }
.financial-statement-list { min-height: 0; flex: 1 1 auto; overflow-y: auto; padding: 10px 12px calc(14px + env(safe-area-inset-bottom)); overscroll-behavior: contain; }
.financial-statement-movement { min-width: 0; display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 11px; border-bottom: 1px solid #e3e8e5; background: #fff; }
.financial-statement-movement:first-child { border-radius: 15px 15px 0 0; }
.financial-statement-movement:last-child { border-bottom: 0; border-radius: 0 0 15px 15px; }
.financial-statement-movement:only-child { border-radius: 15px; }
.financial-statement-date { width: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--navy-900); border-right: 1px solid var(--line); font-size: 12px; font-weight: 850; font-variant-numeric: tabular-nums; }
.financial-statement-date small { margin-top: 2px; color: var(--muted); font-size: 7px; font-weight: 700; text-transform: uppercase; }
.financial-statement-movement-copy { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.financial-statement-movement-copy strong { overflow-wrap: anywhere; color: var(--navy-900); font-size: 11px; line-height: 1.25; }
.financial-statement-movement-copy span { overflow-wrap: anywhere; color: var(--muted); font-size: 9px; line-height: 1.35; }
.financial-statement-movement-values { min-width: 105px; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; text-align: right; }
.financial-statement-movement-values strong { color: var(--green); font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.financial-statement-movement.is-exit .financial-statement-movement-values strong { color: var(--danger); }
.financial-statement-movement-values small { color: var(--muted); font-size: 8px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.home-financial-insights { min-width: 0; margin-top: 10px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); transition: border-color .18s ease, box-shadow .18s ease; }
.home-financial-insights.is-expanded { border-color: #cbdcd6; box-shadow: 0 16px 34px rgba(8, 48, 41, .09); }
.home-financial-insights-toggle { width: 100%; min-width: 0; min-height: 66px; display: grid; grid-template-columns: 40px minmax(0, 1fr) 34px; align-items: center; gap: 10px; padding: 11px 13px; color: var(--ink); text-align: left; border: 0; background: #fff; cursor: pointer; }
.home-financial-insights-toggle:hover { background: #f8fbfa; }
.home-financial-insights-toggle:focus-visible { position: relative; z-index: 2; outline: 3px solid rgba(15, 122, 91, .22); outline-offset: -3px; }
.home-financial-insights-icon { width: 40px; height: 40px; display: grid; place-items: center; color: #77501a; border-radius: 13px; background: #f8e9cb; }
.home-financial-insights-icon svg, .home-financial-insights-chevron svg, .financial-insights-status svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.home-financial-insights-copy { min-width: 0; display: grid; gap: 1px; }
.home-financial-insights-copy small { color: var(--coral-dark); font-size: 7px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.home-financial-insights-copy strong { overflow: hidden; color: var(--navy-900); font-size: 15px; line-height: 1.2; letter-spacing: -.025em; text-overflow: ellipsis; white-space: nowrap; }
.home-financial-insights-copy em { color: var(--muted); font-size: 8px; font-style: normal; }
.home-financial-insights-chevron { width: 34px; height: 34px; display: grid; place-items: center; color: #71817c; border-radius: 11px; background: #f1f5f3; }
.home-financial-insights-chevron svg { transition: transform .18s ease; }
.home-financial-insights.is-expanded .home-financial-insights-chevron svg { transform: rotate(180deg); }
.home-financial-insights-content { min-width: 0; padding: 0 12px 12px; border-top: 1px solid #edf1ef; background: linear-gradient(180deg, #fbfcfb, #f5f7f6); }
.home-financial-insights-content[hidden], .financial-insights-grid[hidden], .financial-insights-status[hidden], .financial-insights-plot[hidden], .financial-insights-empty[hidden] { display: none; }
.financial-insights-status { min-height: 128px; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 16px; color: var(--muted); border: 1px solid #dae5e1; border-radius: 15px; background: #fff; }
.financial-insights-status > span { width: 42px; height: 42px; display: grid; place-items: center; color: var(--green); border-radius: 13px; background: var(--green-soft); }
.financial-insights-status[data-state="loading"] > span svg { animation: spin .8s linear infinite; }
.financial-insights-status[data-state="error"] > span { color: var(--danger); background: var(--danger-soft); }
.financial-insights-status > div { min-width: 0; }
.financial-insights-status strong { display: block; color: var(--navy-900); font-size: 13px; }
.financial-insights-status p { margin: 3px 0 0; font-size: 10px; line-height: 1.4; }
.financial-insights-status .button { min-height: 40px; padding: 8px 12px; font-size: 10px; }
.financial-insights-grid { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; padding-top: 12px; }
.financial-insights-chart { min-width: 0; overflow: hidden; padding: 13px; border: 1px solid #dce5e2; border-radius: 16px; background: #fff; }
.financial-insights-chart > header { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 8px; }
.financial-insights-chart > header span { min-width: 0; display: grid; gap: 2px; }
.financial-insights-chart > header strong { overflow-wrap: anywhere; color: var(--navy-900); font-size: 12px; line-height: 1.25; }
.financial-insights-chart > header small { color: var(--muted); font-size: 8px; line-height: 1.25; }
.financial-insights-chart > header b { color: #284a61; font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.financial-insights-chart[data-chart-key="receitas_6_meses"] > header b { color: var(--green); }
.financial-insights-chart[data-chart-key="despesas_6_meses"] > header b { color: var(--danger); }
.financial-insights-chart[data-chart-key="contas_pagar_6_meses"] > header b { color: var(--coral-dark); }
.financial-insights-plot { min-width: 0; margin-top: 10px; padding-top: 8px; border-top: 1px solid #edf1ef; }
.financial-insights-bars { min-width: 0; height: 122px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: stretch; gap: 5px; }
.financial-insights-bar-item { min-width: 0; display: grid; grid-template-rows: 17px minmax(0, 1fr) 15px; align-items: end; gap: 4px; text-align: center; }
.financial-insights-bar-item b { overflow: hidden; color: #425852; font-size: 7px; font-weight: 800; line-height: 1; text-overflow: ellipsis; white-space: nowrap; }
.financial-insights-bar-item small { overflow: hidden; color: var(--muted); font-size: 7px; font-weight: 750; line-height: 1; text-overflow: ellipsis; white-space: nowrap; }
.financial-insights-bar-track { width: min(76%, 30px); height: 82px; display: flex; align-items: flex-end; justify-self: center; overflow: hidden; border-radius: 7px 7px 3px 3px; background: #edf2f0; }
.financial-insights-bar-fill { width: 100%; display: block; border-radius: 7px 7px 2px 2px; background: linear-gradient(180deg, #426d88, #284a61); }
.financial-insights-chart[data-chart-key="receitas_6_meses"] .financial-insights-bar-fill { background: linear-gradient(180deg, #40aa84, #0f7a5b); }
.financial-insights-chart[data-chart-key="despesas_6_meses"] .financial-insights-bar-fill { background: linear-gradient(180deg, #dc6d60, #a52f24); }
.financial-insights-chart[data-chart-key="contas_pagar_6_meses"] .financial-insights-bar-fill { background: linear-gradient(180deg, #ef9b62, #c75b2c); }
.financial-insights-bar-item.is-negative .financial-insights-bar-fill { background: linear-gradient(180deg, #dc6d60, #a52f24); }
.financial-insights-bar-fill.is-level-0 { height: 0; }
.financial-insights-bar-fill.is-level-1 { height: 5%; }.financial-insights-bar-fill.is-level-2 { height: 10%; }.financial-insights-bar-fill.is-level-3 { height: 15%; }.financial-insights-bar-fill.is-level-4 { height: 20%; }.financial-insights-bar-fill.is-level-5 { height: 25%; }
.financial-insights-bar-fill.is-level-6 { height: 30%; }.financial-insights-bar-fill.is-level-7 { height: 35%; }.financial-insights-bar-fill.is-level-8 { height: 40%; }.financial-insights-bar-fill.is-level-9 { height: 45%; }.financial-insights-bar-fill.is-level-10 { height: 50%; }
.financial-insights-bar-fill.is-level-11 { height: 55%; }.financial-insights-bar-fill.is-level-12 { height: 60%; }.financial-insights-bar-fill.is-level-13 { height: 65%; }.financial-insights-bar-fill.is-level-14 { height: 70%; }.financial-insights-bar-fill.is-level-15 { height: 75%; }
.financial-insights-bar-fill.is-level-16 { height: 80%; }.financial-insights-bar-fill.is-level-17 { height: 85%; }.financial-insights-bar-fill.is-level-18 { height: 90%; }.financial-insights-bar-fill.is-level-19 { height: 95%; }.financial-insights-bar-fill.is-level-20 { height: 100%; }
.financial-insights-empty { min-height: 122px; display: grid; place-items: center; margin: 10px 0 0; padding: 18px; color: var(--muted); text-align: center; border-top: 1px solid #edf1ef; font-size: 10px; }
.financial-module-heading { position: relative; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) 68px; align-items: center; gap: 22px; overflow: hidden; margin-bottom: 14px; padding: 24px 26px; color: #fff; border-radius: 25px; background: linear-gradient(135deg, #0a2823, #176052); box-shadow: 0 18px 42px rgba(7, 42, 36, .16); }
.financial-module-heading::after { content: ''; position: absolute; right: -75px; bottom: -150px; width: 250px; height: 250px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 50%; box-shadow: 0 0 0 35px rgba(255, 255, 255, .03), 0 0 0 70px rgba(255, 255, 255, .02); }
.financial-module-heading > div, .financial-module-heading-icon { position: relative; z-index: 1; }
.financial-module-heading .eyebrow { color: #efca82; }
.financial-module-heading h2 { margin: 6px 0 7px; font-size: clamp(24px, 4vw, 34px); letter-spacing: -.045em; }
.financial-module-heading p { max-width: 68ch; margin: 0; color: rgba(255, 255, 255, .74); font-size: 15px; line-height: 1.6; }
.financial-module-heading-icon { width: 68px; height: 68px; display: grid; place-items: center; color: #543916; border-radius: 21px; background: linear-gradient(145deg, #f5d99f, #d8aa54); box-shadow: 0 16px 32px rgba(0, 0, 0, .2); }
.financial-module-heading-icon.is-payable { color: #fff; background: linear-gradient(145deg, #f27e6e, #ce4f40); }
.financial-module-heading-icon svg { width: 31px; height: 31px; }
.financial-catalog-summary, .financial-payable-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 15px; }
.financial-catalog-summary article { min-width: 0; display: grid; grid-template-columns: 50px minmax(0, 1fr); align-items: center; gap: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 19px; background: #fff; box-shadow: var(--shadow-sm); }
.financial-catalog-summary article > span { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 16px; }
.financial-catalog-summary article > span.is-account { color: #75501c; background: #fff0d4; }
.financial-catalog-summary article > span.is-entry { color: #0b735d; background: #def3ec; }
.financial-catalog-summary article > span.is-exit { color: #a23a2e; background: #fde9e5; }
.financial-catalog-summary svg { width: 23px; height: 23px; }
.financial-catalog-summary small { display: block; color: var(--muted); font-size: 13px; line-height: 1.3; }
.financial-catalog-summary strong { display: block; margin-top: 3px; color: var(--navy-900); font-size: 24px; letter-spacing: -.04em; }
.financial-catalog-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 14px; margin-bottom: 24px; }
.financial-catalog-panel, .financial-payable-board { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 25px; background: #fff; box-shadow: var(--shadow-sm); }
.financial-catalog-panel > header, .financial-payable-board > header { min-width: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 17px; padding: 22px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #fff, #fbfcfb); }
.financial-catalog-panel > header > div, .financial-payable-board > header > div { min-width: 0; }
.financial-catalog-panel h3, .financial-payable-board h3 { margin: 5px 0 5px; color: var(--navy-900); font-size: 21px; line-height: 1.15; letter-spacing: -.035em; }
.financial-catalog-panel header p, .financial-payable-board header p { max-width: 52ch; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.financial-compact-cta { flex: 0 0 auto; min-height: 48px; gap: 8px; padding: 10px 14px; white-space: nowrap; }
.financial-compact-cta svg { width: 19px; height: 19px; }
.financial-catalog-list { display: grid; gap: 1px; background: var(--line); }
.financial-catalog-item { min-width: 0; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 15px 16px; background: #fff; }
.financial-catalog-item[hidden] { display: none; }
.financial-catalog-item.is-inactive { background: #f8faf9; }
.financial-catalog-item-icon { width: 48px; height: 48px; display: grid; place-items: center; color: #7b551e; border-radius: 15px; background: #fff0d4; }
.financial-catalog-item-icon.is-entry { color: #0b735d; background: #def3ec; }
.financial-catalog-item-icon.is-exit { color: #a23a2e; background: #fde9e5; }
.financial-catalog-item-icon svg { width: 22px; height: 22px; }
.financial-catalog-item-copy { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.financial-catalog-item-copy > span { min-width: 0; display: flex; align-items: center; gap: 7px; }
.financial-catalog-item-copy strong { overflow: hidden; color: var(--navy-900); font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.financial-catalog-item-copy i { flex: 0 0 auto; padding: 4px 7px; color: #0a6b56; border-radius: 999px; background: #e2f4ee; font-size: 10px; font-style: normal; font-weight: 850; }
.financial-catalog-item-copy i.is-inactive { color: #7d8582; background: #ecefed; }
.financial-catalog-item-copy small, .financial-catalog-item-copy em { overflow: hidden; color: var(--muted); font-size: 12px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.financial-catalog-item-actions { display: flex; align-items: center; gap: 6px; }
.financial-catalog-item-actions > button, .financial-catalog-item-actions form button { width: 48px; height: 48px; display: grid; place-items: center; color: var(--green); border: 0; border-radius: 14px; background: var(--green-soft); cursor: pointer; }
.financial-catalog-item-actions form { margin: 0; }
.financial-catalog-item-actions form button.is-disable { color: #9a3a2e; background: #fdebe7; }
.financial-catalog-item-actions form button.is-enable { color: #0a6b56; background: #e0f3ec; }
.financial-catalog-item-actions svg { width: 20px; height: 20px; }
.financial-catalog-filter { display: grid; grid-template-columns: minmax(0, 1fr) 140px; gap: 9px; padding: 13px 15px; border-bottom: 1px solid var(--line); background: #f7f9f8; }
.financial-catalog-filter label { min-height: 50px; display: grid; grid-template-columns: 21px minmax(0, 1fr); align-items: center; gap: 9px; padding: 0 13px; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 14px; background: #fff; }
.financial-catalog-filter label:focus-within { color: var(--green); border-color: #4c8278; box-shadow: 0 0 0 4px rgba(15, 122, 91, .08); }
.financial-catalog-filter svg { width: 20px; height: 20px; }
.financial-catalog-filter input { min-width: 0; height: 48px; padding: 0; color: var(--ink); border: 0; outline: 0; background: transparent; font: inherit; font-size: 14px; }
.financial-catalog-filter select { min-width: 0; min-height: 50px; padding: 10px 36px 10px 12px; color: var(--ink); border: 1px solid var(--line-strong); border-radius: 14px; background: #fff; font: inherit; font-size: 14px; }
.financial-catalog-no-results { margin: 0; padding: 24px; color: var(--muted); text-align: center; background: #fff; font-size: 14px; }
.financial-module-empty { min-width: 0; display: flex; flex-direction: column; align-items: center; padding: 34px 20px; color: var(--muted); text-align: center; background: #fff; }
.financial-module-empty > span { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 12px; color: var(--green); border-radius: 19px; background: var(--green-soft); }
.financial-module-empty svg { width: 27px; height: 27px; }
.financial-module-empty strong { color: var(--navy-900); font-size: 17px; }
.financial-module-empty p { max-width: 43ch; margin: 6px 0 0; font-size: 14px; line-height: 1.55; }
.financial-module-empty .button { margin-top: 16px; }
/* Gestão Financeira: diálogos e contas a pagar */
.financial-workspace-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: 29px; outline: 0; background: #fff; box-shadow: 0 35px 95px rgba(0, 0, 0, .42); }
.financial-workspace-dialog[open] { display: block; animation: photoViewerIn .22s cubic-bezier(.2, .8, .2, 1) both; }
.financial-workspace-dialog::backdrop { background: rgba(3, 15, 13, .78); backdrop-filter: blur(8px); }
.financial-workspace-sheet { position: relative; max-height: calc(100dvh - 28px); overflow: auto; padding: 28px; }
.financial-sheet-close { position: absolute; z-index: 2; top: 15px; right: 15px; width: 48px; height: 48px; display: grid; place-items: center; color: var(--muted); border: 0; border-radius: 15px; background: #f0f3f2; cursor: pointer; }
.financial-sheet-close svg { width: 20px; height: 20px; }
.financial-sheet-icon { width: 66px; height: 66px; display: grid; place-items: center; margin-bottom: 14px; color: #fff; border-radius: 21px; background: linear-gradient(145deg, #0c6d5a, #0b4037); box-shadow: 0 15px 30px rgba(15, 122, 91, .18); }
.financial-sheet-icon.is-payable { background: linear-gradient(145deg, #ec7565, #b63e32); }
.financial-sheet-icon.is-settlement { background: linear-gradient(145deg, #22a785, #0b6754); }
.financial-sheet-icon.is-reversal { background: linear-gradient(145deg, #b8493c, #7b241c); }
.financial-sheet-icon svg { width: 29px; height: 29px; }
.financial-workspace-sheet > small { color: var(--coral-dark); font-size: 12px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.financial-workspace-sheet > h2 { margin: 7px 54px 5px 0; color: var(--navy-900); font-size: 27px; letter-spacing: -.04em; }
.financial-workspace-sheet > p { margin: 0 0 21px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.financial-sheet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; }
.financial-sheet-wide { grid-column: 1 / -1; }
.financial-sheet-field { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.financial-sheet-field > span { color: var(--navy-900); font-size: 14px; font-weight: 800; }
.financial-sheet-field > span small { color: var(--muted); font-size: 12px; font-weight: 600; }
.financial-sheet-field > input, .financial-sheet-field > select, .financial-sheet-field > textarea { width: 100%; min-width: 0; min-height: 52px; padding: 12px 13px; color: var(--ink); border: 1px solid var(--line-strong); border-radius: 15px; outline: 0; background: #fff; font: inherit; font-size: 15px; }
.financial-sheet-field > textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.financial-sheet-field > input:focus, .financial-sheet-field > select:focus, .financial-sheet-field > textarea:focus, .financial-percent-input:focus-within, .financial-money-input:focus-within { border-color: #4c8278; box-shadow: 0 0 0 4px rgba(15, 122, 91, .09); }
.financial-sheet-field > small { color: var(--muted); font-size: 12px; line-height: 1.45; }
.financial-percent-input, .financial-money-input { min-height: 54px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 15px; background: #fff; }
.financial-money-input { grid-template-columns: auto minmax(0, 1fr); }
.financial-percent-input input, .financial-money-input input { min-width: 0; height: 51px; padding: 0; color: var(--navy-900); border: 0; outline: 0; background: transparent; font: inherit; font-size: 20px; font-weight: 800; }
.financial-percent-input b, .financial-money-input b { color: var(--muted); font-size: 14px; }
.financial-switch-field, .financial-confirm-field { min-height: 58px; display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: start; gap: 12px; margin-top: 18px; padding: 15px; color: var(--ink); border: 1px solid var(--line); border-radius: 16px; background: #f9fbfa; cursor: pointer; }
.financial-switch-field input[type='checkbox'], .financial-confirm-field input { width: 23px; height: 23px; margin: 0; accent-color: var(--green); }
.financial-switch-field span { display: flex; flex-direction: column; gap: 3px; }
.financial-switch-field strong { color: var(--navy-900); font-size: 14px; }
.financial-switch-field small, .financial-confirm-field span { color: var(--muted); font-size: 13px; line-height: 1.5; }
.financial-confirm-field.is-danger { color: #7b2a22; border-color: #ebc1bb; background: #fff3f1; }
.financial-confirm-field.is-danger input { accent-color: var(--danger); }
.financial-workspace-sheet > footer { display: grid; grid-template-columns: 1fr 1.2fr; gap: 10px; margin-top: 21px; padding-top: 18px; border-top: 1px solid var(--line); }
.financial-workspace-sheet > footer .button { min-height: 52px; }
.financial-payable-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.financial-payable-summary article { min-width: 0; display: flex; flex-direction: column; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); }
.financial-payable-summary small { color: var(--muted); font-size: 12px; }
.financial-payable-summary strong { overflow: hidden; margin-top: 5px; color: var(--navy-900); font-size: clamp(20px, 2.4vw, 27px); letter-spacing: -.04em; text-overflow: ellipsis; white-space: nowrap; }
.financial-payable-summary span { margin-top: 3px; color: #7a8581; font-size: 12px; }
.financial-payable-summary article.is-alert { border-color: #edc6c0; background: #fff5f3; }
.financial-payable-summary article.is-alert strong { color: var(--danger); }
.financial-payable-summary article.is-paid { border-color: #cce3db; background: #f2faf7; }
.financial-payable-summary article.is-paid strong { color: var(--green); }
.financial-payable-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-bottom: 14px; padding: 6px; border: 1px solid var(--line); border-radius: 19px; background: #fff; box-shadow: var(--shadow-sm); }
.financial-payable-nav a { min-width: 0; min-height: 54px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; color: #68736f; border-radius: 14px; font-size: 14px; font-weight: 800; text-decoration: none; }
.financial-payable-nav a:hover { background: #f1f5f3; }
.financial-payable-nav a.active { color: #fff; background: var(--navy-900); box-shadow: 0 9px 20px rgba(7, 28, 25, .15); }
.financial-payable-nav svg { width: 20px; height: 20px; }
.financial-payable-nav b { min-width: 25px; height: 25px; display: grid; place-items: center; padding: 0 6px; color: var(--green); border-radius: 999px; background: #dff2ec; font-size: 11px; }
.financial-payable-launch-card { min-width: 0; display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; gap: 24px; margin-bottom: 14px; padding: 28px; overflow: hidden; border: 1px solid var(--line); border-radius: 26px; background: #fff; box-shadow: var(--shadow-sm); }
.financial-payable-launch-art { width: 96px; height: 96px; display: grid; place-items: center; color: #a14135; border-radius: 30px; background: linear-gradient(145deg, #fff0ed, #f8d8d2); }
.financial-payable-launch-art svg { width: 43px; height: 43px; }
.financial-payable-launch-card h3 { margin: 6px 0 7px; color: var(--navy-900); font-size: 25px; letter-spacing: -.04em; }
.financial-payable-launch-card p { max-width: 64ch; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.financial-payable-launch-card ul { display: flex; flex-wrap: wrap; gap: 7px 17px; margin: 14px 0 0; padding: 0; color: #58645f; list-style: none; font-size: 13px; }
.financial-payable-launch-card li::before { content: '✓'; margin-right: 6px; color: var(--green); font-weight: 900; }
.financial-payable-launch-card > .button { min-height: 52px; gap: 8px; white-space: nowrap; }
.financial-payable-launch-card > .button svg { width: 20px; height: 20px; }
.financial-process-note { display: grid; grid-template-columns: 38px minmax(0, 1fr) 38px minmax(0, 1fr); align-items: center; gap: 12px; margin-bottom: 24px; padding: 18px; color: var(--muted); border: 1px solid #d9e7e2; border-radius: 20px; background: #f4faf7; }
.financial-process-note > span { width: 38px; height: 38px; display: grid; place-items: center; color: #fff; border-radius: 13px; background: var(--green); font-size: 14px; font-weight: 900; }
.financial-process-note p { margin: 0; font-size: 13px; line-height: 1.45; }
.financial-process-note strong { display: block; color: var(--navy-900); font-size: 14px; }
/* Gestão Financeira: listas, baixas e histórico */
.financial-history-count { flex: 0 0 auto; max-width: 210px; padding: 8px 11px; color: #53605b; border-radius: 999px; background: #eef3f1; font-size: 12px; font-weight: 800; text-align: center; }
.financial-payable-filters { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(150px, .35fr) minmax(180px, .45fr) auto; gap: 9px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: #f7f9f8; }
.financial-payable-search { min-width: 0; min-height: 50px; display: grid; grid-template-columns: 21px minmax(0, 1fr); align-items: center; gap: 9px; padding: 0 13px; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 14px; background: #fff; }
.financial-payable-search:focus-within { color: var(--green); border-color: #4c8278; box-shadow: 0 0 0 4px rgba(15, 122, 91, .08); }
.financial-payable-search svg { width: 20px; height: 20px; }
.financial-payable-search input { min-width: 0; height: 48px; padding: 0; color: var(--ink); border: 0; outline: 0; background: transparent; font: inherit; font-size: 14px; }
.financial-payable-filters select { min-width: 0; min-height: 50px; padding: 10px 36px 10px 12px; color: var(--ink); border: 1px solid var(--line-strong); border-radius: 14px; background: #fff; font: inherit; font-size: 14px; }
.financial-payable-filters .button { min-height: 50px; }
.financial-payable-list { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 16px; background: #f8faf9; }
.financial-payable-card { min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: 17px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 8px 22px rgba(19, 42, 36, .05); }
.financial-payable-card[hidden] { display: none; }
.financial-payable-card.is-overdue { border-color: #ecc9c3; }
.financial-payable-card.is-partial { border-color: #d9c38c; }
.financial-payable-card.is-inconsistent { border-color: #e5b4ac; background: #fffaf9; }
.financial-payable-card > header { min-width: 0; display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 11px; }
.financial-payable-card-icon { width: 46px; height: 46px; display: grid; place-items: center; color: #a34034; border-radius: 14px; background: #fdeae6; }
.financial-payable-card-icon svg { width: 21px; height: 21px; }
.financial-payable-card header > div { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.financial-payable-card header small { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.financial-payable-card header strong { overflow: hidden; color: var(--navy-900); font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.financial-payable-card header i { padding: 6px 8px; color: #66716d; border-radius: 999px; background: #eef2f0; font-size: 10px; font-style: normal; font-weight: 900; text-transform: uppercase; }
.financial-payable-card header i.is-overdue { color: #a53b30; background: #fee9e5; }
.financial-payable-card header i.is-partial { color: #79571a; background: #fff2cf; }
.financial-payable-card dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin: 0; }
.financial-payable-card dl div { min-width: 0; padding: 10px; border-radius: 13px; background: #f5f7f6; }
.financial-payable-card dt { color: var(--muted); font-size: 11px; }
.financial-payable-card dd { overflow: hidden; margin: 4px 0 0; color: var(--navy-900); font-size: 13px; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.financial-payable-progress { display: flex; flex-direction: column; gap: 8px; }
.financial-payable-progress > span { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.financial-payable-progress small { color: var(--muted); font-size: 12px; }
.financial-payable-progress strong { color: var(--navy-900); font-size: 18px; }
.financial-payable-progress progress { width: 100%; height: 8px; overflow: hidden; border: 0; border-radius: 999px; background: #e9eeec; accent-color: var(--green); }
.financial-payable-progress progress::-webkit-progress-bar { border-radius: 999px; background: #e9eeec; }
.financial-payable-progress progress::-webkit-progress-value { border-radius: 999px; background: linear-gradient(90deg, #0c7860, #52af94); }
.financial-payable-card > p { overflow-wrap: anywhere; margin: -3px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.financial-settlement-cta { width: 100%; min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: auto; padding: 10px 14px; color: #fff; border: 0; border-radius: 14px; background: var(--green); box-shadow: 0 10px 22px rgba(15, 122, 91, .16); cursor: pointer; font: inherit; font-size: 14px; font-weight: 850; }
.financial-settlement-cta svg { width: 20px; height: 20px; }
.financial-payable-reconciliation { min-height: 66px; display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: center; gap: 10px; margin-top: auto; padding: 10px 12px; color: #8b342a; border: 1px solid #ebc0b9; border-radius: 15px; background: #fff0ed; }
.financial-payable-reconciliation > svg { width: 26px; height: 26px; }
.financial-payable-reconciliation span { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.financial-payable-reconciliation strong { font-size: 13px; line-height: 1.25; }
.financial-payable-reconciliation small { color: #845b55; font-size: 11px; line-height: 1.35; }
.financial-settlement-history { min-width: 0; display: grid; gap: 1px; background: var(--line); }
.financial-settlement-history-item { min-width: 0; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto auto; align-items: center; gap: 13px; padding: 15px 18px; background: #fff; }
.financial-settlement-history-item.is-reversed { opacity: .68; background: #f7f8f7; }
.financial-history-icon { width: 48px; height: 48px; display: grid; place-items: center; color: #0a735c; border-radius: 15px; background: #e1f4ed; }
.financial-settlement-history-item.is-reversed .financial-history-icon { color: #9b3b31; background: #fde9e5; }
.financial-history-icon svg { width: 21px; height: 21px; }
.financial-settlement-history-item > div { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.financial-settlement-history-item > div > span { min-width: 0; display: flex; align-items: center; gap: 8px; }
.financial-settlement-history-item strong { overflow: hidden; color: var(--navy-900); font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.financial-settlement-history-item i { flex: 0 0 auto; padding: 4px 7px; color: #0a6b56; border-radius: 999px; background: #e2f4ee; font-size: 9px; font-style: normal; font-weight: 900; text-transform: uppercase; }
.financial-settlement-history-item.is-reversed i { color: #8b342a; background: #fde7e3; }
.financial-settlement-history-item small, .financial-settlement-history-item em { overflow: hidden; color: var(--muted); font-size: 12px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.financial-settlement-history-item > b { color: var(--navy-900); font-size: 15px; white-space: nowrap; }
.financial-settlement-history-item > button { min-width: 48px; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 11px; color: #9b3b31; border: 1px solid #efcac4; border-radius: 14px; background: #fff3f1; cursor: pointer; font: inherit; font-size: 12px; font-weight: 800; }
.financial-settlement-history-item > button svg { width: 18px; height: 18px; }
.financial-settlement-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 18px; }
.financial-settlement-facts div { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #f7f9f8; }
.financial-settlement-facts dt { color: var(--muted); font-size: 11px; }
.financial-settlement-facts dd { overflow: hidden; margin: 5px 0 0; color: var(--navy-900); font-size: 16px; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.financial-settlement-facts .is-remaining { border-color: #cde4dc; background: #eef9f5; }
.financial-settlement-facts .is-remaining dd { color: var(--green); }
.financial-use-full-value { width: 100%; min-height: 48px; margin-top: 8px; padding: 9px 12px; color: var(--green); border: 1px solid #c6dfd7; border-radius: 13px; background: #eef8f4; cursor: pointer; font: inherit; font-size: 13px; font-weight: 800; }
.financial-settlement-note { display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: center; gap: 11px; margin: 16px 0 0; padding: 12px 14px; color: #596560; border-left: 4px solid #e6b961; border-radius: 11px; background: #fff8e9; font-size: 12px; line-height: 1.5; }
.financial-settlement-note > svg { width: 30px; height: 30px; color: #8a6929; }
.financial-settlement-note p { min-width: 0; margin: 0; }
.financial-settlement-note strong { display: block; margin-bottom: 2px; color: var(--navy-900); font-size: 13px; }
/* Gestão Financeira: permissões independentes */
.financial-access-admin > .financial-safety-note { margin: 18px 22px 0; }
.financial-permission-blocks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 20px; }
.financial-permission-block { min-width: 0; overflow: visible; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 10px 26px rgba(10, 41, 34, .06); }
.financial-permission-block-heading { min-width: 0; display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; gap: 12px; padding: 17px; border-bottom: 1px solid var(--line); border-radius: 21px 21px 0 0; background: #f7faf8; }
.financial-permission-block-icon { width: 52px; height: 52px; display: grid; place-items: center; color: var(--green); border-radius: 16px; background: #e1f3ed; }
.financial-permission-block.is-cadastros .financial-permission-block-icon { color: #76501c; background: #fff0d4; }
.financial-permission-block.is-contas_pagar .financial-permission-block-icon { color: #9d3b30; background: #fde9e5; }
.financial-permission-block-icon svg { width: 24px; height: 24px; }
.financial-permission-block-heading > div { min-width: 0; }
.financial-permission-block-heading h3 { margin: 0 0 5px; color: var(--navy-900); font-size: 18px; line-height: 1.2; letter-spacing: -.025em; }
.financial-permission-block-heading p { min-height: 60px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.financial-permission-block-heading > strong { grid-column: 1 / -1; justify-self: start; padding: 6px 9px; color: #0a634f; border-radius: 999px; background: #e3f4ee; font-size: 11px; }
.financial-permission-form { padding: 17px; }
.financial-permission-form .financial-member-search-shell button { width: 48px; height: 48px; }
.financial-permission-form .financial-selected-list { grid-template-columns: 1fr; }
.financial-permission-form .financial-selected-member > button { width: 48px; height: 48px; }
.financial-permission-form .financial-access-save { align-items: stretch; flex-direction: column; gap: 12px; }
.financial-permission-form .financial-access-save .button { width: 100%; min-height: 50px; }
.financial-permission-form .financial-member-search > small, .financial-permission-form .financial-access-save > span { font-size: 12px; }
.financial-workspace .financial-page-heading p, .financial-workspace .financial-hero p, .financial-workspace .financial-account-section p, .financial-workspace .financial-recent p { font-size: max(14px, 1em); line-height: 1.55; }
.financial-workspace .financial-entry-card label, .financial-workspace .financial-account-section label, .financial-workspace .financial-review-dialog label { font-size: 14px; }
.financial-workspace button, .financial-workspace input, .financial-workspace select, .financial-workspace textarea { font-family: inherit; }
.financial-workspace [hidden], .financial-access-admin [hidden] { display: none !important; }
/* Gestão Financeira: adaptação para celular */
.financial-payable-nav a { position: relative; }
@media (max-width: 1080px) {
    .financial-permission-blocks { grid-template-columns: 1fr; }
    .financial-permission-block-heading p { min-height: 0; }
    .financial-permission-form .financial-selected-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
    .financial-catalog-grid { grid-template-columns: 1fr; }
    .financial-payable-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .financial-payable-launch-card { grid-template-columns: 76px minmax(0, 1fr); gap: 17px; }
    .financial-payable-launch-art { width: 76px; height: 76px; border-radius: 24px; }
    .financial-payable-launch-card > .button { grid-column: 1 / -1; width: 100%; }
    .financial-payable-filters { grid-template-columns: minmax(0, 1fr) minmax(150px, .45fr); }
    .financial-payable-search { grid-column: 1 / -1; }
    .financial-payable-list { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .financial-workspace-nav { gap: 5px; margin-bottom: 16px; padding: 5px; border-radius: 18px; }
    .financial-workspace-nav a { min-height: 58px; grid-template-columns: 24px minmax(0, 1fr); gap: 7px; padding: 8px 7px; border-radius: 13px; }
    .financial-workspace-nav svg { width: 23px; height: 23px; }
    .financial-workspace-nav strong { font-size: 13px; }
    .financial-workspace-nav small { display: none; }
    .financial-module-heading { grid-template-columns: minmax(0, 1fr) 54px; gap: 13px; padding: 20px; border-radius: 22px; }
    .financial-module-heading h2 { font-size: 26px; }
    .financial-module-heading p { font-size: 14px; line-height: 1.55; }
    .financial-module-heading-icon { width: 54px; height: 54px; border-radius: 17px; }
    .home-financial-balances-heading { grid-template-columns: 42px minmax(0, 1fr) auto; }
    .home-financial-balances-icon { width: 42px; height: 42px; border-radius: 13px; }
    .home-financial-balances-total { min-width: 108px; }
    .financial-balance-chart { padding: 16px; border-radius: 21px; }
    .home-financial-balances .financial-balance-chart { padding: 0; border-radius: 0; }
    .financial-balance-chart figcaption { align-items: flex-start; flex-direction: column; gap: 9px; }
    .financial-balance-chart figcaption em { justify-content: flex-start; }
    .financial-statement-dialog { width: 100%; max-height: 94dvh; margin: auto 0 0; border-radius: 26px 26px 0 0; }
    .financial-statement-sheet { max-height: 94dvh; }
    .financial-insights-grid { grid-template-columns: 1fr; }
    .financial-catalog-summary { grid-template-columns: 1fr; }
    .financial-catalog-panel, .financial-payable-board { border-radius: 21px; }
    .financial-catalog-panel > header, .financial-payable-board > header { align-items: stretch; flex-direction: column; padding: 18px; }
    .financial-catalog-panel > header .financial-compact-cta, .financial-payable-board > header .financial-compact-cta { width: 100%; }
    .financial-catalog-filter { grid-template-columns: 1fr; }
    .financial-catalog-item { grid-template-columns: 48px minmax(0, 1fr); }
    .financial-catalog-item-actions { grid-column: 1 / -1; justify-content: flex-end; padding-top: 3px; }
    .financial-workspace-dialog { width: 100%; max-height: 94dvh; margin: auto 0 0; border-radius: 27px 27px 0 0; }
    .financial-workspace-dialog[open] { animation: mm-sheet-in .2s ease-out; }
    .financial-workspace-sheet { max-height: 94dvh; padding: 24px 18px calc(20px + env(safe-area-inset-bottom)); }
    .financial-sheet-grid { grid-template-columns: 1fr; }
    .financial-sheet-wide { grid-column: auto; }
    .financial-workspace-sheet > footer { position: sticky; bottom: calc(-20px - env(safe-area-inset-bottom)); z-index: 2; grid-template-columns: 1fr; margin: 20px -18px calc(-20px - env(safe-area-inset-bottom)); padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); box-shadow: 0 -10px 25px rgba(7, 28, 25, .08); backdrop-filter: blur(12px); }
    .financial-payable-nav { gap: 4px; padding: 5px; }
    .financial-payable-nav a { min-height: 54px; gap: 5px; padding: 8px 5px; font-size: 13px; }
    .financial-payable-nav svg { width: 19px; height: 19px; }
    .financial-payable-launch-card { grid-template-columns: 62px minmax(0, 1fr); gap: 14px; padding: 20px; }
    .financial-payable-launch-art { width: 62px; height: 62px; border-radius: 20px; }
    .financial-payable-launch-art svg { width: 30px; height: 30px; }
    .financial-payable-launch-card h3 { font-size: 21px; }
    .financial-payable-launch-card p { font-size: 14px; }
    .financial-payable-launch-card ul { grid-column: 1 / -1; }
    .financial-process-note { grid-template-columns: 38px minmax(0, 1fr); }
    .financial-payable-list { padding: 10px; }
    .financial-settlement-history-item { grid-template-columns: 48px minmax(0, 1fr) auto; padding: 14px; }
    .financial-settlement-history-item > button { grid-column: 2 / -1; justify-self: stretch; }
    .financial-history-count { max-width: none; align-self: flex-start; }
    .financial-permission-blocks { padding: 14px; }
    .financial-permission-form .financial-selected-list { grid-template-columns: 1fr; }
    .financial-access-admin-heading { grid-template-columns: 52px minmax(0, 1fr); padding: 18px; }
    .financial-access-admin-heading > strong { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 480px) {
    .financial-workspace-nav a { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .financial-workspace-nav a span { align-items: center; }
    .financial-workspace-nav strong { font-size: 12px; }
    .financial-module-heading { grid-template-columns: minmax(0, 1fr); padding: 19px; }
    .financial-module-heading-icon { display: none; }
    .home-financial-balances { padding: 14px; border-radius: 18px; }
    .home-financial-balances-heading { grid-template-columns: 38px minmax(0, 1fr) auto; gap: 9px; }
    .home-financial-balances-icon { width: 38px; height: 38px; border-radius: 12px; }
    .home-financial-balances-copy h2 { font-size: 16px; }
    .home-financial-balances-total { min-width: 101px; }
    .home-financial-balances-total strong { font-size: 14px; }
    .financial-balance-row { min-height: 58px; padding: 9px 10px; }
    .financial-balance-row-heading { gap: 7px; }
    .financial-balance-row-value b { font-size: 10px; }
    .financial-statement-heading { padding-inline: 15px; }
    .financial-statement-summary article { padding-inline: 10px; }
    .financial-statement-movement { grid-template-columns: 46px minmax(0, 1fr) auto; gap: 8px; padding: 10px 8px; }
    .financial-statement-date { width: 46px; }
    .financial-statement-movement-values { min-width: 91px; }
    .financial-statement-movement-values strong { font-size: 10px; }
    .financial-statement-movement-values small { font-size: 7px; }
    .home-financial-insights-toggle { min-height: 64px; grid-template-columns: 38px minmax(0, 1fr) 32px; gap: 9px; padding: 10px 12px; }
    .home-financial-insights-icon { width: 38px; height: 38px; border-radius: 12px; }
    .home-financial-insights-copy strong { font-size: 14px; }
    .home-financial-insights-copy em { display: none; }
    .home-financial-insights-content { padding-inline: 9px; padding-bottom: 9px; }
    .financial-insights-status { min-height: 118px; grid-template-columns: 38px minmax(0, 1fr); gap: 10px; padding: 13px; }
    .financial-insights-status > span { width: 38px; height: 38px; }
    .financial-insights-status .button { grid-column: 1 / -1; width: 100%; }
    .financial-insights-chart { padding: 12px 10px; }
    .financial-insights-chart > header b { font-size: 10px; }
    .financial-insights-bars { gap: 3px; }
    .financial-catalog-summary article { padding: 13px; }
    .financial-payable-summary { grid-template-columns: 1fr 1fr; gap: 7px; }
    .financial-payable-summary article { padding: 13px; }
    .financial-payable-summary strong { font-size: 19px; }
    .financial-payable-nav a { flex-direction: column; gap: 3px; font-size: 11px; }
    .financial-payable-nav b { position: absolute; top: 5px; right: 5px; min-width: 20px; height: 20px; padding: 0 4px; font-size: 9px; }
    .financial-payable-launch-card { grid-template-columns: 1fr; padding: 18px; }
    .financial-payable-launch-art { width: 58px; height: 58px; }
    .financial-payable-launch-card ul, .financial-payable-launch-card > .button { grid-column: auto; }
    .financial-process-note { padding: 14px; }
    .financial-payable-filters { grid-template-columns: 1fr; padding: 11px; }
    .financial-payable-search { grid-column: auto; }
    .financial-payable-filters .button { width: 100%; }
    .financial-payable-card { padding: 14px; }
    .financial-payable-card > header { grid-template-columns: 42px minmax(0, 1fr) auto; gap: 8px; }
    .financial-payable-card-icon { width: 42px; height: 42px; }
    .financial-payable-card header i { padding: 5px 6px; font-size: 9px; }
    .financial-payable-card dl { gap: 5px; }
    .financial-payable-card dl div { padding: 8px 6px; }
    .financial-payable-card dd { font-size: 12px; }
    .financial-settlement-history-item { grid-template-columns: 42px minmax(0, 1fr); gap: 10px; }
    .financial-history-icon { width: 42px; height: 42px; }
    .financial-settlement-history-item > b { grid-column: 2; }
    .financial-settlement-history-item > button { grid-column: 1 / -1; }
    .financial-settlement-facts { grid-template-columns: 1fr; }
    .financial-permission-blocks { gap: 10px; padding: 10px; }
    .financial-permission-block-heading { grid-template-columns: 46px minmax(0, 1fr); padding: 14px; }
    .financial-permission-block-icon { width: 46px; height: 46px; }
    .financial-permission-form { padding: 14px; }
    .financial-access-admin > .financial-safety-note { margin: 14px 14px 0; }
}

/* Exclusão de conta a pagar: confirmação compacta, sem rolagem no celular. */
.financial-payable-delete-sheet { padding: 20px 22px; }
.financial-payable-delete-sheet .financial-sheet-close { top: 12px; right: 12px; width: 42px; height: 42px; border-radius: 13px; }
.financial-payable-delete-sheet .financial-sheet-icon { width: 46px; height: 46px; margin-bottom: 8px; border-radius: 15px; }
.financial-payable-delete-sheet .financial-sheet-icon svg { width: 22px; height: 22px; }
.financial-payable-delete-sheet > h2 { margin-top: 4px; margin-bottom: 3px; font-size: 23px; }
.financial-payable-delete-sheet > p { margin-bottom: 11px; font-size: 13px; line-height: 1.4; }
.financial-payable-delete-sheet .financial-settlement-facts { gap: 6px; margin-bottom: 10px; }
.financial-payable-delete-sheet .financial-settlement-facts div { padding: 8px 9px; border-radius: 11px; }
.financial-payable-delete-sheet .financial-settlement-facts dd { margin-top: 3px; font-size: 14px; }
.financial-payable-delete-sheet .financial-sheet-field { gap: 5px; }
.financial-payable-delete-sheet .financial-sheet-field > textarea { min-height: 68px; height: 68px; padding: 9px 11px; border-radius: 12px; line-height: 1.35; resize: none; }
.financial-payable-delete-sheet .financial-sheet-field > small { font-size: 11px; line-height: 1.3; }
.financial-payable-delete-sheet .financial-confirm-field { min-height: 0; gap: 9px; margin-top: 10px; padding: 10px 11px; border-radius: 13px; }
.financial-payable-delete-sheet .financial-confirm-field span { font-size: 12px; line-height: 1.35; }
.financial-payable-delete-sheet > footer { margin-top: 11px; padding-top: 10px; }
.financial-payable-delete-sheet > footer .button { min-height: 46px; }
@media (max-width: 720px) {
    .financial-workspace-dialog[data-financial-payable-delete-dialog] {
        inset: auto 0 max(8px, env(safe-area-inset-bottom));
        margin: 0;
    }
    .financial-payable-delete-sheet { max-height: 94dvh; padding: 16px 16px calc(14px + env(safe-area-inset-bottom)); }
    .financial-payable-delete-sheet > small { font-size: 10px; }
    .financial-payable-delete-sheet > h2 { margin-right: 42px; font-size: 21px; }
    .financial-payable-delete-sheet .financial-settlement-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .financial-payable-delete-sheet > footer { position: static; grid-template-columns: .85fr 1.15fr; bottom: auto; margin: 10px 0 0; padding: 9px 0 0; background: transparent; box-shadow: none; backdrop-filter: none; }
}
@media (prefers-reduced-motion: reduce) {
    .financial-workspace-nav a, .financial-workspace-dialog[open], .financial-statement-dialog[open], .financial-balance-row, .financial-statement-status-icon svg, .home-financial-insights, .home-financial-insights-chevron svg, .financial-insights-status svg { transition: none; animation: none; }
}

/* Recebimentos ministeriais e transferências internas */
.financial-workspace-nav.sections-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.financial-permission-blocks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.financial-permission-block.is-transferencias .financial-permission-block-icon { color: #165f55; background: #dcf3ec; }
.ministry-finance-admin svg, .ministry-account-admin svg, .ministry-receivables-heading svg, .ministry-receivables-hero svg, .ministry-link-creator svg, .ministry-link-library svg, .ministry-receipts-ledger svg, .internal-transfer-workspace svg, .ministry-receivables-resource-card svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.ministry-finance-admin, .ministry-account-admin { overflow: hidden; margin-top: 20px; border: 1px solid var(--line); border-radius: 26px; background: #fff; box-shadow: var(--shadow-sm); }
.ministry-finance-admin-heading { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 15px; padding: 22px; color: #fff; background: linear-gradient(135deg, #092c27, #155a50); }
.ministry-finance-admin-heading > span { width: 58px; height: 58px; display: grid; place-items: center; color: #6fd8bb; border-radius: 18px; background: rgba(255,255,255,.1); }
.ministry-finance-admin-heading h2, .ministry-account-admin h2 { margin: 2px 0 5px; font-size: 24px; line-height: 1.1; letter-spacing: -.035em; }
.ministry-finance-admin-heading p { max-width: 720px; margin: 0; color: rgba(255,255,255,.74); font-size: 13px; line-height: 1.5; }
.ministry-finance-admin-heading > strong { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; color: #f8d89c; border: 1px solid rgba(248,216,156,.3); border-radius: 999px; font-size: 11px; white-space: nowrap; }
.ministry-finance-admin-heading > strong i { width: 8px; height: 8px; border-radius: 50%; background: #e3af53; box-shadow: 0 0 0 4px rgba(227,175,83,.13); }
.ministry-finance-admin-heading > strong.is-active { color: #8eedce; border-color: rgba(142,237,206,.3); }
.ministry-finance-admin-heading > strong.is-active i { background: #47d3a6; box-shadow: 0 0 0 4px rgba(71,211,166,.14); }
.asaas-settings-form { display: grid; gap: 18px; padding: 22px; }
.asaas-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.asaas-settings-grid label, .internal-transfer-fields label, .internal-transfer-route label, .ministry-link-form-grid label, .ministry-receipts-filter label { min-width: 0; display: grid; gap: 7px; color: var(--navy-900); font-size: 12px; font-weight: 800; }
.asaas-settings-grid input, .asaas-settings-grid select, .internal-transfer-fields input, .internal-transfer-fields textarea, .internal-transfer-route select, .ministry-link-form-grid input, .ministry-link-form-grid select, .ministry-link-form-grid textarea, .ministry-receipts-filter input, .ministry-receipts-filter select { width: 100%; min-width: 0; min-height: 50px; padding: 0 14px; color: var(--navy-900); border: 1px solid var(--line-strong); border-radius: 14px; background: #fff; font: inherit; font-size: 15px; outline: 0; }
.asaas-settings-grid textarea, .internal-transfer-fields textarea, .ministry-link-form-grid textarea { min-height: 82px; padding-block: 12px; resize: vertical; }
.asaas-settings-grid input:focus, .asaas-settings-grid select:focus, .internal-transfer-fields input:focus, .internal-transfer-fields textarea:focus, .internal-transfer-route select:focus, .ministry-link-form-grid input:focus, .ministry-link-form-grid select:focus, .ministry-link-form-grid textarea:focus, .ministry-receipts-filter input:focus, .ministry-receipts-filter select:focus { border-color: #317869; box-shadow: 0 0 0 4px rgba(49,120,105,.11); }
.asaas-settings-grid label > small { color: var(--muted); font-size: 11px; font-weight: 600; line-height: 1.45; }
.asaas-settings-grid .asaas-environment-status.is-valid { color: #08735b; }
.asaas-settings-grid .asaas-environment-status.is-error { color: #a1251a; }
.asaas-settings-wide { grid-column: 1 / -1; }
.asaas-webhook-url { display: grid; grid-template-columns: minmax(0, 1fr) auto; border: 1px solid var(--line-strong); border-radius: 14px; background: #f7faf8; }
.asaas-webhook-url input { border: 0; background: transparent; }
.asaas-webhook-url button { min-height: 42px; align-self: center; margin-right: 5px; padding: 0 15px; color: var(--green); border: 0; border-radius: 11px; background: #e2f2ed; font-weight: 800; cursor: pointer; }
.asaas-enable-toggle { display: flex; align-items: center; gap: 11px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 15px; background: #f7faf8; cursor: pointer; }
.asaas-enable-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.asaas-enable-toggle > span { width: 42px; height: 24px; flex: 0 0 auto; padding: 3px; border-radius: 99px; background: #cbd5d1; transition: background .18s ease; }
.asaas-enable-toggle i { width: 18px; height: 18px; display: block; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.16); transition: transform .18s ease; }
.asaas-enable-toggle input:checked + span { background: var(--green); }
.asaas-enable-toggle input:checked + span i { transform: translateX(18px); }
.asaas-settings-form > aside { display: flex; align-items: flex-start; gap: 10px; padding: 13px 15px; color: #76501c; border-radius: 15px; background: #fff3dc; }
.asaas-settings-form > aside svg { flex: 0 0 auto; }
.asaas-settings-form > aside p { margin: 0; font-size: 12px; line-height: 1.5; }
.asaas-settings-form > aside strong { display: block; }
.asaas-settings-form > .button { justify-self: end; }

.ministry-account-admin > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 22px; border-bottom: 1px solid var(--line); background: #fbfcfb; }
.ministry-account-admin > header h2 { color: var(--navy-900); }
.ministry-account-admin > header p { max-width: 760px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.ministry-account-admin > header > strong { padding: 7px 10px; color: #0a634f; border-radius: 999px; background: #e3f4ee; font-size: 11px; white-space: nowrap; }
.ministry-account-form { padding: 18px 22px 22px; }
.ministry-account-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ministry-account-row { min-width: 0; display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.ministry-account-monogram { width: 42px; height: 42px; display: grid; place-items: center; color: #75501e; border-radius: 13px; background: #ffefcf; font-size: 12px; font-weight: 900; }
.ministry-account-copy { min-width: 0; display: grid; align-content: center; gap: 2px; }
.ministry-account-copy strong { overflow: hidden; color: var(--navy-900); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.ministry-account-copy small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.ministry-account-row select { grid-column: 1 / -1; width: 100%; min-width: 0; min-height: 46px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 12px; background: #f8faf9; font: inherit; font-size: 13px; }
.ministry-account-form footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.ministry-account-form footer span { max-width: 650px; color: var(--muted); font-size: 11px; line-height: 1.45; }

.ministry-receivables-heading { margin-bottom: 18px; }
.ministry-receivables-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) 110px; align-items: center; gap: 20px; padding: 26px; color: #fff; border-radius: 28px; background: linear-gradient(145deg, #082b26, #116456); box-shadow: 0 20px 45px rgba(7,42,36,.16); }
.ministry-receivables-hero::after { content: ''; position: absolute; width: 220px; height: 220px; right: -65px; bottom: -120px; border: 35px solid rgba(255,255,255,.045); border-radius: 50%; }
.ministry-receivables-live { display: inline-flex; align-items: center; gap: 7px; color: #8eedce; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.ministry-receivables-live i { width: 8px; height: 8px; border-radius: 50%; background: #47d3a6; box-shadow: 0 0 0 4px rgba(71,211,166,.14); }
.ministry-receivables-hero h2 { margin: 12px 0 8px; font-size: clamp(26px, 4vw, 38px); line-height: 1; letter-spacing: -.045em; }
.ministry-receivables-hero p { max-width: 580px; margin: 0; color: rgba(255,255,255,.72); font-size: 13px; line-height: 1.55; }
.ministry-receivables-hero-art { z-index: 1; width: 92px; height: 92px; display: grid; place-items: center; justify-self: end; color: #17372f; border-radius: 28px; background: #ebbd70; transform: rotate(4deg); box-shadow: 0 16px 35px rgba(0,0,0,.16); }
.ministry-receivables-hero-art svg { width: 46px; height: 46px; }
.ministry-receivables-summary { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 11px; margin: 14px 0; }
.ministry-receivables-summary article { display: grid; gap: 4px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.ministry-receivables-summary small, .ministry-receivables-summary span { color: var(--muted); font-size: 10px; }
.ministry-receivables-summary strong { color: var(--green); font-size: 23px; line-height: 1.05; }

.ministry-link-creator, .ministry-link-library, .ministry-receipts-ledger, .internal-transfer-workspace { margin-top: 14px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow-sm); }
.ministry-link-creator > summary { min-height: 76px; display: grid; grid-template-columns: 46px minmax(0, 1fr) 24px; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; list-style: none; }
.ministry-link-creator > summary::-webkit-details-marker { display: none; }
.ministry-link-creator > summary > span:first-child { width: 46px; height: 46px; display: grid; place-items: center; color: #0d6c58; border-radius: 15px; background: #e0f2ec; }
.ministry-link-creator > summary > span:nth-child(2) { display: grid; gap: 2px; }
.ministry-link-creator summary small, .ministry-link-creator summary em { color: var(--muted); font-size: 10px; font-style: normal; }
.ministry-link-creator summary strong { color: var(--navy-900); font-size: 16px; }
.ministry-link-creator[open] > summary > svg { transform: rotate(180deg); }
.ministry-link-creator form, .ministry-link-disabled { padding: 4px 16px 18px; }
.ministry-link-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin-bottom: 14px; }
.ministry-link-form-wide { grid-column: 1 / -1; }
.ministry-link-disabled { color: #76501c; }
.ministry-link-disabled p { margin: 5px 0 0; font-size: 12px; line-height: 1.5; }
.ministry-link-library, .ministry-receipts-ledger { padding: 18px; }
.ministry-link-library > header, .ministry-receipts-ledger > header, .internal-transfer-history > header { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.ministry-link-library h2, .ministry-receipts-ledger h2, .internal-transfer-history h3 { margin: 2px 0 0; color: var(--navy-900); font-size: 22px; letter-spacing: -.035em; }
.ministry-link-library > header > small, .internal-transfer-history > header > small { color: var(--muted); font-size: 11px; }
.ministry-link-list, .ministry-receipt-list, .internal-transfer-list { display: grid; gap: 9px; }
.ministry-link-card { min-width: 0; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 11px; padding: 13px; border: 1px solid var(--line); border-radius: 16px; background: #fbfcfb; }
.ministry-link-card-icon { width: 42px; height: 42px; display: grid; place-items: center; color: #0d6c58; border-radius: 13px; background: #e0f2ec; }
.ministry-link-card > div:nth-child(2) { min-width: 0; }
.ministry-link-card small, .ministry-link-card p, .ministry-link-card em { color: var(--muted); font-size: 10px; font-style: normal; }
.ministry-link-card strong { display: block; overflow: hidden; margin: 2px 0; color: var(--navy-900); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.ministry-link-card p { margin: 0; }
.ministry-link-card > b { align-self: center; color: var(--green); font-size: 14px; white-space: nowrap; }
.ministry-link-actions { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 7px; }
.ministry-link-actions button, .ministry-link-actions .ministry-link-preview { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; color: #165f55; border: 1px solid #cfe4de; border-radius: 11px; background: #fff; font: inherit; font-size: 11px; font-weight: 800; text-decoration: none; cursor: pointer; }
.ministry-link-actions form { margin: 0; }
.ministry-link-actions button.is-state-action { color: #8a493a; border-color: #edd7d1; }
.ministry-link-actions button.is-delete-action { color: #a1251a; border-color: #efcbc5; background: #fff7f5; }
.ministry-link-delete-dialog { width: min(calc(100% - 28px), 520px); max-width: none; margin: auto; padding: 0; overflow: hidden; color: var(--navy-900); border: 0; border-radius: 25px; background: #fff; box-shadow: 0 32px 90px rgba(7,28,25,.34); }
.ministry-link-delete-dialog[open] { animation: photoViewerIn .2s cubic-bezier(.2,.8,.2,1) both; }
.ministry-link-delete-dialog::backdrop { background: rgba(4,20,17,.72); backdrop-filter: blur(7px); }
.ministry-link-delete-dialog > form { display: grid; }
.ministry-link-delete-dialog header { display: grid; grid-template-columns: 48px minmax(0,1fr) 40px; align-items: center; gap: 12px; padding: 18px; color: #fff; background: linear-gradient(135deg,#651c14,#9f2b20); }
.ministry-link-delete-dialog header > span { width: 48px; height: 48px; display: grid; place-items: center; color: #7e251c; border-radius: 15px; background: #ffe5df; }
.ministry-link-delete-dialog header > span svg { width: 23px; height: 23px; }
.ministry-link-delete-dialog header small { color: #ffd2c9; font-size: 9px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.ministry-link-delete-dialog h2 { margin: 2px 0 0; font-size: 21px; letter-spacing: -.035em; }
.ministry-link-delete-dialog header > button { width: 40px; height: 40px; color: #fff; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; background: rgba(255,255,255,.08); font-size: 25px; cursor: pointer; }
.ministry-link-delete-content { display: grid; gap: 14px; padding: 20px; }
.ministry-link-delete-content > p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.ministry-link-delete-content > p strong { color: var(--navy-900); }
.ministry-link-delete-content aside { display: grid; gap: 4px; padding: 13px 14px; color: #7a3c32; border: 1px solid #f0d0ca; border-radius: 14px; background: #fff5f2; }
.ministry-link-delete-content aside strong { font-size: 11px; }
.ministry-link-delete-content aside span { font-size: 10px; line-height: 1.45; }
.ministry-link-delete-dialog footer { display: grid; grid-template-columns: 1fr 1.15fr; gap: 9px; padding: 15px 20px 20px; border-top: 1px solid var(--line); }
.ministry-link-delete-dialog footer .button { width: 100%; min-height: 48px; }
.ministry-link-delete-confirm { color: #fff; border: 0; background: #a1251a; }
.ministry-receipts-filter { display: grid; grid-template-columns: minmax(180px, 1.4fr) repeat(2, minmax(140px, .8fr)) auto; align-items: end; gap: 9px; margin-bottom: 14px; padding: 12px; border-radius: 16px; background: #f6f8f7; }
.ministry-receipts-filter .button { min-height: 50px; }
.ministry-receipt-list article { min-width: 0; display: grid; grid-template-columns: 45px minmax(0, 1fr) auto auto; align-items: center; gap: 11px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 15px; }
.ministry-receipt-date { width: 45px; height: 45px; display: grid; place-items: center; align-content: center; color: #75501e; border-radius: 13px; background: #ffefcf; }
.ministry-receipt-date strong { font-size: 16px; line-height: 1; }
.ministry-receipt-date small { margin-top: 3px; font-size: 8px; font-weight: 900; }
.ministry-receipt-list article > div { min-width: 0; }
.ministry-receipt-list article > div small, .ministry-receipt-list article > div p { color: var(--muted); font-size: 10px; }
.ministry-receipt-list article > div strong { display: block; overflow: hidden; margin: 2px 0; color: var(--navy-900); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.ministry-receipt-list article > div p { margin: 0; }
.ministry-receipt-list article > b { color: var(--green); font-size: 13px; white-space: nowrap; }
.ministry-receipt-list article > em { padding: 6px 8px; color: #0b6651; border-radius: 999px; background: #e2f3ed; font-size: 9px; font-style: normal; font-weight: 900; text-transform: uppercase; }
.ministry-receipt-list article > em.is-overdue, .ministry-receipt-list article > em.is-refunded { color: #973b30; background: #fbe6e2; }

.internal-transfer-workspace { overflow: hidden; }
.internal-transfer-hero { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 20px; color: #fff; background: linear-gradient(135deg, #092c27, #155a50); }
.internal-transfer-hero-icon { width: 56px; height: 56px; display: grid; place-items: center; color: #f1c675; border-radius: 17px; background: rgba(255,255,255,.1); }
.internal-transfer-hero h2 { margin: 2px 0 4px; font-size: 24px; }
.internal-transfer-hero p { margin: 0; color: rgba(255,255,255,.72); font-size: 12px; }
.internal-transfer-hero > strong { padding: 7px 10px; color: #f8d89c; border: 1px solid rgba(248,216,156,.28); border-radius: 99px; font-size: 10px; }
.internal-transfer-form { display: grid; gap: 16px; padding: 18px; }
.internal-transfer-route { display: grid; grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr); align-items: center; gap: 10px; }
.internal-transfer-route label small { color: var(--muted); font-size: 10px; font-weight: 600; }
.internal-transfer-arrow { width: 42px; height: 42px; display: grid; place-items: center; color: #0b6b56; border-radius: 50%; background: #e1f3ed; }
.internal-transfer-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.internal-transfer-wide { grid-column: 1 / -1; }
.financial-confirm-field { display: flex; align-items: flex-start; gap: 10px; padding: 13px; border-radius: 14px; background: #f4f7f6; font-size: 11px; line-height: 1.5; cursor: pointer; }
.financial-confirm-field input { width: 20px; height: 20px; flex: 0 0 auto; accent-color: var(--green); }
.internal-transfer-history { padding: 18px; border-top: 1px solid var(--line); }
.internal-transfer-item { min-width: 0; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 11px; padding: 13px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.internal-transfer-item-icon { width: 42px; height: 42px; display: grid; place-items: center; color: #0d6c58; border-radius: 13px; background: #e0f2ec; }
.internal-transfer-item > div { min-width: 0; }
.internal-transfer-item small, .internal-transfer-item p, .internal-transfer-item em { color: var(--muted); font-size: 10px; font-style: normal; }
.internal-transfer-item strong { display: block; margin: 2px 0; color: var(--navy-900); font-size: 13px; }
.internal-transfer-item strong i { color: #0d6c58; font-style: normal; }
.internal-transfer-item p { margin: 0; }
.internal-transfer-item > b { align-self: center; color: var(--green); font-size: 14px; white-space: nowrap; }
.internal-transfer-status { grid-column: 2; justify-self: start; padding: 5px 8px; color: #0b6651; border-radius: 99px; background: #e2f3ed; font-size: 9px; font-weight: 900; text-transform: uppercase; }
.internal-transfer-item.is-reversed { opacity: .72; }
.internal-transfer-item.is-reversed .internal-transfer-status { color: #973b30; background: #fbe6e2; }
.internal-transfer-reversal { grid-column: 2 / -1; }
.internal-transfer-reversal summary { color: #9a3228; font-size: 11px; font-weight: 800; cursor: pointer; }
.internal-transfer-reversal form { display: grid; gap: 8px; margin-top: 8px; }
.internal-transfer-reversal textarea { width: 100%; min-height: 68px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 12px; resize: vertical; font: inherit; font-size: 13px; }

@media (max-width: 760px) {
    .financial-workspace-nav.sections-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .financial-workspace-nav.sections-4 a { grid-template-columns: 25px minmax(0, 1fr); justify-items: stretch; text-align: left; }
    .financial-workspace-nav.sections-4 a span { align-items: flex-start; }
    .financial-permission-blocks, .ministry-account-list { grid-template-columns: 1fr; }
    .ministry-finance-admin-heading, .internal-transfer-hero { grid-template-columns: 50px minmax(0, 1fr); padding: 17px; }
    .ministry-finance-admin-heading > span, .internal-transfer-hero-icon { width: 50px; height: 50px; }
    .ministry-finance-admin-heading > strong, .internal-transfer-hero > strong { grid-column: 2; justify-self: start; }
    .asaas-settings-grid, .ministry-link-form-grid { grid-template-columns: 1fr; }
    .asaas-settings-wide, .ministry-link-form-wide { grid-column: auto; }
    .ministry-account-admin > header, .ministry-account-form footer { flex-direction: column; align-items: stretch; }
    .ministry-account-admin > header > strong { align-self: flex-start; }
    .ministry-receivables-hero { grid-template-columns: minmax(0, 1fr) 72px; padding: 20px; border-radius: 24px; }
    .ministry-receivables-hero-art { width: 66px; height: 66px; border-radius: 20px; }
    .ministry-receivables-hero-art svg { width: 34px; height: 34px; }
    .ministry-receivables-summary { grid-template-columns: 1.4fr 1fr 1fr; gap: 7px; }
    .ministry-receivables-summary article { padding: 12px 10px; }
    .ministry-receivables-summary strong { font-size: 18px; }
    .ministry-link-library, .ministry-receipts-ledger { padding: 14px; }
    .ministry-receipts-filter { grid-template-columns: 1fr 1fr; }
    .ministry-receipts-filter label:first-of-type, .ministry-receipts-filter .button { grid-column: 1 / -1; }
    .ministry-receipts-filter input, .ministry-receipts-filter select { font-size: 16px; }
    .ministry-receipt-list article { grid-template-columns: 42px minmax(0, 1fr) auto; }
    .ministry-receipt-list article > em { grid-column: 2; justify-self: start; }
    .internal-transfer-route { grid-template-columns: 1fr; }
    .internal-transfer-arrow { transform: rotate(90deg); justify-self: center; }
    .internal-transfer-fields { grid-template-columns: 1fr; }
    .internal-transfer-wide { grid-column: auto; }
}

@media (max-width: 430px) {
    .asaas-settings-form, .ministry-account-form { padding: 14px; }
    .ministry-receivables-hero { grid-template-columns: 1fr; }
    .ministry-receivables-hero-art { display: none; }
    .ministry-receivables-summary { overflow-x: auto; grid-template-columns: 170px 115px 115px; padding-bottom: 3px; scrollbar-width: thin; }
    .ministry-link-card { grid-template-columns: 38px minmax(0, 1fr); }
    .ministry-link-card-icon { width: 38px; height: 38px; }
    .ministry-link-card > b { grid-column: 2; justify-self: start; }
    .ministry-link-actions { grid-column: 1 / -1; }
    .ministry-link-delete-dialog { width: 100%; max-height: 92dvh; margin: auto 0 0; border-radius: 25px 25px 0 0; }
    .ministry-link-delete-dialog footer { padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
    .ministry-receipt-list article { grid-template-columns: 40px minmax(0, 1fr); }
    .ministry-receipt-list article > b, .ministry-receipt-list article > em { grid-column: 2; justify-self: start; }
    .internal-transfer-item { grid-template-columns: 38px minmax(0, 1fr); }
    .internal-transfer-item > b, .internal-transfer-status, .internal-transfer-reversal { grid-column: 2; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
    .asaas-enable-toggle span, .asaas-enable-toggle i, .ministry-link-creator > summary > svg { transition: none; }
}

/* Teste administrativo de WhatsApp */
.whatsapp-test-content { padding-bottom: calc(118px + env(safe-area-inset-bottom)); }
.whatsapp-test-launch-card { min-width: 0; display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 15px; margin: 22px 0; padding: 18px; color: inherit; border: 1px solid #bcded1; border-radius: 21px; background: linear-gradient(135deg, #f4fbf8, #fffdf9); box-shadow: var(--shadow-sm); text-decoration: none; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.whatsapp-test-launch-card:hover { border-color: #78b7a0; box-shadow: 0 16px 35px rgba(7,28,25,.1); transform: translateY(-1px); }
.whatsapp-test-launch-icon { width: 58px; height: 58px; display: grid; place-items: center; color: #fff; border-radius: 18px; background: linear-gradient(145deg, #0d493f, #127558); box-shadow: 0 12px 24px rgba(13,73,63,.2); }
.whatsapp-test-launch-copy { min-width: 0; display: flex; flex-direction: column; }
.whatsapp-test-launch-copy strong { margin: 4px 0; color: var(--navy-900); font-size: 18px; letter-spacing: -.025em; }
.whatsapp-test-launch-copy small { max-width: 62ch; color: var(--muted); font-size: 11px; line-height: 1.45; }
.whatsapp-test-launch-action { display: inline-flex; align-items: center; gap: 8px; color: var(--navy-700); font-size: 10px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
.whatsapp-test-shell { width: min(100%, 760px); min-width: 0; display: grid; gap: 16px; margin: 0 auto; }
.whatsapp-test-heading { min-width: 0; padding: 4px 2px 2px; }
.whatsapp-test-heading .back-link { min-height: 44px; width: fit-content; display: inline-flex; align-items: center; gap: 7px; margin: -8px 0 18px -8px; padding: 8px; color: var(--muted); font-size: 12px; text-decoration: none; }
.whatsapp-test-heading .back-link svg { flex: 0 0 auto; }
.whatsapp-test-heading h1 { margin: 6px 0 7px; color: var(--navy-900); font-size: clamp(29px, 7vw, 42px); line-height: 1.05; letter-spacing: -.055em; }
.whatsapp-test-heading p { max-width: 55ch; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.whatsapp-test-hero { position: relative; min-width: 0; display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 15px; overflow: hidden; padding: 21px; color: #fff; border-radius: 24px; background: linear-gradient(140deg, #082923, #0d493f 64%, #176554); box-shadow: 0 18px 42px rgba(7, 28, 25, .17); isolation: isolate; }
.whatsapp-test-hero::before { content: ""; position: absolute; z-index: -1; width: 230px; height: 230px; right: -92px; top: -132px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; box-shadow: 0 0 0 35px rgba(255,255,255,.035), 0 0 0 72px rgba(209,161,86,.045); }
.whatsapp-test-hero-icon { width: 58px; height: 58px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.16); border-radius: 18px; color: #072a24; background: linear-gradient(145deg, #f6d490, #dba94e); box-shadow: 0 13px 28px rgba(0,0,0,.18); }
.whatsapp-test-hero > div:nth-child(2) { min-width: 0; }
.whatsapp-test-hero > div:nth-child(2) > span { color: #e9c77f; font-size: 9px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.whatsapp-test-hero h2 { margin: 4px 0 5px; font-size: 22px; line-height: 1.12; letter-spacing: -.035em; }
.whatsapp-test-hero p { max-width: 42ch; margin: 0; color: rgba(255,255,255,.72); font-size: 12px; line-height: 1.5; }
.whatsapp-test-admin-badge { align-self: start; padding: 7px 9px; border: 1px solid rgba(255,255,255,.13); border-radius: 999px; color: rgba(255,255,255,.82); background: rgba(255,255,255,.075); font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.whatsapp-test-config { min-width: 0; display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 11px; padding: 12px 14px; border: 1px solid; border-radius: 16px; }
.whatsapp-test-config.is-ready { color: #12654c; border-color: #c8e5d8; background: #edf8f3; }
.whatsapp-test-config.is-missing { color: var(--danger); border-color: #efc9c0; background: var(--danger-soft); }
.whatsapp-test-config-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: rgba(255,255,255,.76); }
.whatsapp-test-config span:last-child { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.whatsapp-test-config strong { font-size: 13px; }
.whatsapp-test-config small { color: var(--muted); font-size: 11px; line-height: 1.4; }
.whatsapp-test-feedback { min-width: 0; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 15px; border: 1px solid; border-radius: 18px; animation: whatsappFeedbackIn .25s ease-out; }
.whatsapp-test-feedback > span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: rgba(255,255,255,.75); }
.whatsapp-test-feedback.is-success { color: #12654c; border-color: #badfce; background: var(--green-soft); }
.whatsapp-test-feedback.is-error { color: var(--danger); border-color: #edc5bc; background: var(--danger-soft); }
.whatsapp-test-feedback div { min-width: 0; }
.whatsapp-test-feedback strong { display: block; margin-bottom: 3px; font-size: 13px; }
.whatsapp-test-feedback p { margin: 0; color: var(--ink); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.whatsapp-test-feedback small { display: block; margin-top: 6px; color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.whatsapp-test-form { min-width: 0; display: grid; gap: 20px; padding: 24px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,253,249,.97); box-shadow: var(--shadow-sm); }
.whatsapp-test-form-heading { min-width: 0; display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: start; gap: 13px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.whatsapp-test-step { width: 48px; height: 48px; display: grid; place-items: center; flex: 0 0 auto; color: var(--coral-dark); border: 1px solid #efdebe; border-radius: 15px; background: var(--coral-soft); font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.whatsapp-test-form-heading div { min-width: 0; }
.whatsapp-test-form-heading h2 { margin: 3px 0 5px; color: var(--navy-900); font-size: 23px; line-height: 1.15; letter-spacing: -.04em; }
.whatsapp-test-form-heading p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.whatsapp-test-fields { min-width: 0; display: grid; gap: 17px; }
.whatsapp-test-field { min-width: 0; display: grid; gap: 7px; color: var(--ink); font-size: 12px; font-weight: 800; }
.whatsapp-test-field > small { color: var(--muted); font-size: 10px; font-weight: 550; line-height: 1.45; }
.whatsapp-test-input { min-width: 0; min-height: 52px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 15px; background: #fff; transition: border-color .16s ease, box-shadow .16s ease; }
.whatsapp-test-input:focus-within, .whatsapp-test-textarea:focus-within { border-color: var(--coral); box-shadow: 0 0 0 4px rgba(209,161,86,.14); }
.whatsapp-test-input svg { flex: 0 0 auto; color: var(--navy-700); }
.whatsapp-test-input input { width: 100%; min-width: 0; min-height: 50px; padding: 0; color: var(--ink); border: 0; outline: 0; background: transparent; font-size: 15px; }
.whatsapp-test-input input::placeholder, .whatsapp-test-textarea textarea::placeholder { color: #9a9e98; }
.whatsapp-test-textarea { position: relative; min-width: 0; display: block; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 15px; background: #fff; transition: border-color .16s ease, box-shadow .16s ease; }
.whatsapp-test-textarea textarea { width: 100%; min-width: 0; min-height: 146px; display: block; padding: 14px 14px 34px; color: var(--ink); border: 0; outline: 0; resize: vertical; background: transparent; font-size: 14px; line-height: 1.55; }
.whatsapp-test-textarea > small { position: absolute; right: 12px; bottom: 9px; color: var(--muted); font-size: 10px; font-weight: 600; }
.whatsapp-test-textarea > small b { color: var(--navy-700); }
.whatsapp-test-safety-note { min-width: 0; display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center; gap: 10px; padding: 12px; border-radius: 15px; background: #f2eee5; }
.whatsapp-test-safety-note svg { width: 36px; height: 36px; padding: 8px; color: var(--coral-dark); border-radius: 11px; background: #fff; }
.whatsapp-test-safety-note p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.whatsapp-test-safety-note strong { display: block; margin-bottom: 1px; color: var(--ink); font-size: 11px; }
.whatsapp-test-review { width: 100%; min-height: 54px; border-radius: 15px; }
.whatsapp-test-review[disabled] { cursor: not-allowed; filter: saturate(.35); }
.whatsapp-test-dialog { width: min(calc(100% - 28px), 620px); max-height: min(86dvh, 720px); margin: auto; padding: 0; overflow: visible; color: var(--ink); border: 0; border-radius: 27px; background: transparent; }
.whatsapp-test-dialog::backdrop { background: rgba(3,20,17,.66); backdrop-filter: blur(6px); }
.whatsapp-test-dialog[open] { animation: whatsappDialogIn .22s cubic-bezier(.2,.75,.25,1); }
.whatsapp-test-dialog-sheet { max-height: min(86dvh, 720px); display: grid; gap: 18px; overflow-y: auto; overscroll-behavior: contain; padding: 24px; border: 1px solid rgba(255,255,255,.55); border-radius: 27px; background: var(--surface); box-shadow: 0 30px 90px rgba(0,0,0,.32); }
.whatsapp-test-dialog-handle { display: none; }
.whatsapp-test-dialog header { min-width: 0; display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 13px; }
.whatsapp-test-dialog header div { min-width: 0; }
.whatsapp-test-dialog h2 { margin: 3px 0 0; color: var(--navy-900); font-size: 23px; line-height: 1.15; letter-spacing: -.04em; }
.whatsapp-test-review-list { min-width: 0; display: grid; gap: 8px; margin: 0; }
.whatsapp-test-review-list > div { min-width: 0; display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.whatsapp-test-review-list dt { color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.whatsapp-test-review-list dd { min-width: 0; margin: 0; color: var(--ink); font-size: 12px; font-weight: 750; line-height: 1.45; overflow-wrap: anywhere; white-space: pre-wrap; }
.whatsapp-test-review-list .whatsapp-test-review-message { grid-template-columns: 1fr; }
.whatsapp-test-review-message dd { max-height: 160px; overflow: auto; font-weight: 600; }
.whatsapp-test-final-note { margin: 0; padding: 11px 13px; color: var(--coral-dark); border-radius: 13px; background: var(--coral-soft); font-size: 11px; font-weight: 700; line-height: 1.45; }
.whatsapp-test-dialog footer { display: grid; grid-template-columns: 1fr 1.15fr; gap: 10px; }
.whatsapp-test-dialog footer .button { min-height: 50px; padding-inline: 13px; }
@keyframes whatsappFeedbackIn { from { opacity: 0; transform: translateY(-5px); } }
@keyframes whatsappDialogIn { from { opacity: 0; transform: translateY(18px) scale(.98); } }
@media (max-width: 600px) {
    .whatsapp-test-launch-card { grid-template-columns: 50px minmax(0, 1fr); gap: 12px; padding: 15px; }
    .whatsapp-test-launch-icon { width: 50px; height: 50px; border-radius: 16px; }
    .whatsapp-test-launch-action { grid-column: 2; justify-self: start; }
    .whatsapp-test-content { padding-inline: 13px; }
    .whatsapp-test-shell { gap: 13px; }
    .whatsapp-test-heading { padding-inline: 2px; }
    .whatsapp-test-heading p { font-size: 13px; }
    .whatsapp-test-hero { grid-template-columns: 50px minmax(0, 1fr); gap: 12px; padding: 17px; border-radius: 20px; }
    .whatsapp-test-hero-icon { width: 50px; height: 50px; border-radius: 16px; }
    .whatsapp-test-hero-icon svg { width: 29px; height: 29px; }
    .whatsapp-test-hero h2 { font-size: 19px; }
    .whatsapp-test-admin-badge { grid-column: 2; justify-self: start; margin-top: -3px; }
    .whatsapp-test-form { gap: 17px; padding: 18px 16px; border-radius: 21px; }
    .whatsapp-test-form-heading { grid-template-columns: 43px minmax(0, 1fr); gap: 11px; padding-bottom: 15px; }
    .whatsapp-test-step { width: 43px; height: 43px; border-radius: 14px; }
    .whatsapp-test-form-heading h2, .whatsapp-test-dialog h2 { font-size: 20px; }
    .whatsapp-test-input { min-height: 54px; }
    .whatsapp-test-input input { min-height: 52px; font-size: 16px; }
    .whatsapp-test-dialog { width: 100%; max-height: 92dvh; margin: auto 0 0; border-radius: 27px 27px 0 0; }
    .whatsapp-test-dialog[open] { animation: whatsappSheetIn .22s ease-out; }
    .whatsapp-test-dialog-sheet { max-height: 92dvh; padding: 10px 16px calc(18px + env(safe-area-inset-bottom)); border-radius: 27px 27px 0 0; }
    .whatsapp-test-dialog-handle { width: 42px; height: 4px; display: block; justify-self: center; margin: 1px 0 3px; border-radius: 99px; background: #d2cec5; }
    .whatsapp-test-dialog header { grid-template-columns: 43px minmax(0, 1fr); }
    .whatsapp-test-review-list > div { grid-template-columns: 78px minmax(0, 1fr); padding: 11px; }
    .whatsapp-test-dialog footer { position: sticky; bottom: calc(-18px - env(safe-area-inset-bottom)); grid-template-columns: 1fr; margin: 0 -16px calc(-18px - env(safe-area-inset-bottom)); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255,253,249,.96); box-shadow: 0 -9px 24px rgba(7,28,25,.08); backdrop-filter: blur(12px); }
}
@keyframes whatsappSheetIn { from { opacity: 0; transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) {
    .whatsapp-test-feedback, .whatsapp-test-dialog[open] { animation: none; }
    .whatsapp-test-input, .whatsapp-test-textarea { transition: none; }
}
