/* ==========================================================================
   Viva Melhor — design system unificado
   Um único arquivo para o app (participantes e equipe) e as páginas públicas.
   ========================================================================== */

@font-face { font-family: "Oswald"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/oswald-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/oswald-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
    --forest-950: #07170f;
    --forest-900: #0c2418;
    --forest-800: #12331f;
    --forest-700: #1a4a2e;
    --green-600: #1c8a4a;
    --green-500: #27a55c;
    --green-100: #e3f5e9;
    --lime-400: #c6f24e;
    --lime-300: #d9f88a;
    --lime-100: #f2fbd8;
    --blue-600: #2459e0;
    --blue-500: #3a74f2;
    --blue-100: #e5edff;
    --amber-600: #b56a00;
    --amber-100: #fff3dc;
    --red-600: #c43434;
    --red-100: #fde9e9;

    --bg: #f3f5f1;
    --surface: #ffffff;
    --surface-2: #f7f9f6;
    --surface-3: #eef2ec;
    --line: #e2e8e0;
    --line-strong: #cbd5c8;
    --ink: #0f1f16;
    --ink-2: #33443a;
    --muted: #66766b;
    --focus: #1c8a4a;

    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius: 16px;
    --radius-sm: 11px;
    --pill: 999px;
    --shadow-sm: 0 1px 2px rgba(12, 36, 24, .06);
    --shadow: 0 1px 2px rgba(12, 36, 24, .05), 0 10px 30px -18px rgba(12, 36, 24, .28);
    --shadow-lg: 0 24px 60px -24px rgba(7, 23, 15, .45);

    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --display: "Oswald", "Arial Narrow", Impact, sans-serif;
    --sidebar: 264px;
    --topbar: 60px;
    --bottombar: 68px;
}

/* ----- Base ----- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 1rem; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); line-height: 1.2; letter-spacing: -.015em; overflow-wrap: anywhere; }
h1 { font-size: clamp(1.6rem, 2.4vw + 1rem, 2.2rem); font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: 1.2rem; font-weight: 750; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0; }
a { color: var(--green-600); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
strong, b { font-weight: 700; }
small { font-size: .82rem; }
ul, ol { margin: 0; }
button { font: inherit; color: inherit; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--lime-300); color: var(--forest-900); }
.app-icon { width: 20px; height: 20px; flex: 0 0 auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 200; padding: 10px 16px; border-radius: var(--pill); background: var(--forest-900); color: #fff; font-weight: 700; transform: translateY(-160%); transition: transform .2s; }
.skip-link:focus { transform: none; }
.muted { color: var(--muted); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.eyebrow { margin: 0 0 6px; color: var(--green-600); font-size: .72rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.readable { color: var(--ink-2); line-height: 1.7; overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* ----- Buttons ----- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border: 1px solid transparent; border-radius: var(--pill); background: var(--forest-900); color: #fff; font-size: .95rem; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .15s, box-shadow .15s; }
.button:hover { background: var(--forest-700); text-decoration: none; }
.button:active { transform: translateY(1px); }
.button:disabled, .button[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.button .app-icon { width: 18px; height: 18px; }
.button-small { min-height: 36px; padding: 7px 14px; font-size: .86rem; }
.button-block, .button-wide { width: 100%; }
.button-lime, .button-mango, .button-orange { background: var(--lime-400); color: var(--forest-900); }
.button-lime:hover, .button-mango:hover, .button-orange:hover { background: var(--lime-300); }
.button-ghost, .button-outline { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.button-ghost:hover, .button-outline:hover { background: var(--surface-3); border-color: var(--line-strong); }
.button-danger, .partner-danger-button { background: var(--red-600); color: #fff; }
.button-danger:hover, .partner-danger-button:hover { background: #a82626; }
.button-row { display: flex; flex-wrap: wrap; gap: 8px; }
.icon-button { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: var(--pill); background: transparent; color: inherit; cursor: pointer; }
.icon-button:hover { background: rgba(127, 140, 130, .14); }
.link-arrow { display: inline-flex; align-items: center; gap: 4px; color: var(--green-600); font-size: .9rem; font-weight: 700; }
.link-arrow .app-icon { width: 16px; height: 16px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 16px; color: var(--muted); font-size: .9rem; font-weight: 650; }
.back-link .app-icon { width: 18px; height: 18px; }
.delete-action, .post-remove button, .pin-action { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: var(--pill); background: var(--surface); color: var(--ink-2); font-size: .82rem; font-weight: 700; cursor: pointer; }
.delete-action, .post-remove button { color: var(--red-600); border-color: #efc6c6; }
.delete-action:hover, .post-remove button:hover { background: var(--red-100); }
.pin-action:hover, .pin-action.is-pinned { background: var(--lime-100); border-color: #c9e27d; }
.pin-action .app-icon { width: 15px; height: 15px; }

/* ----- Forms ----- */
label { display: grid; gap: 6px; color: var(--ink); font-size: .9rem; font-weight: 650; }
label > small, .form-hint { color: var(--muted); font-size: .8rem; font-weight: 450; line-height: 1.45; }
input, select, textarea { width: 100%; min-width: 0; min-height: 46px; padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: inherit; font-size: 1rem; font-weight: 450; line-height: 1.4; transition: border-color .15s, box-shadow .15s; }
textarea { min-height: 96px; resize: vertical; line-height: 1.55; }
select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2366766b' stroke-width='2'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(39, 165, 92, .18); }
input[readonly], textarea[readonly] { background: var(--surface-3); color: var(--ink-2); }
input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; min-height: 20px; margin: 0; padding: 0; accent-color: var(--green-600); flex: 0 0 auto; }
input[type="file"] { padding: 9px; font-size: .88rem; background: var(--surface-2); cursor: pointer; }
input[type="file"]::file-selector-button { margin-right: 12px; padding: 7px 14px; border: 0; border-radius: var(--pill); background: var(--forest-900); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
input[type="search"] { appearance: none; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { padding: 0; margin-bottom: 10px; font-size: .9rem; font-weight: 700; }
form { margin: 0; }
.stack-form, .form-card form, form.form-card { display: grid; gap: 16px; }
.form-card > h2, .form-card form > h2 { margin-bottom: 2px; }
form.form-card > .button, .form-card form > .button, .stack-form > .button { justify-self: start; }
.form-grid, .field-grid.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form-grid > .button, .form-grid > button { grid-column: 1 / -1; justify-self: start; }
.form-context { color: var(--muted); font-size: .88rem; }
.checkbox-label, .consent { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); font-weight: 500; line-height: 1.45; cursor: pointer; }
.checkbox-label > span { display: grid; gap: 2px; }
.checkbox-label small { color: var(--muted); font-weight: 450; }
.checkbox-label input, .consent input { margin-top: 1px; }
.input-with-unit { position: relative; display: block; }
.input-with-unit input { padding-right: 44px; }
.input-with-unit small { position: absolute; top: 50%; right: 14px; transform: translateY(-50%); color: var(--muted); }
.switch-row { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); font-weight: 500; cursor: pointer; }
.switch-row > span { display: grid; gap: 2px; }
.switch-row small { color: var(--muted); font-weight: 450; }
.switch-row:has(input:checked) { border-color: #b8dc86; background: var(--lime-100); }
.upload-drop { display: grid; justify-items: center; gap: 4px; padding: 28px 18px; border: 2px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface-2); text-align: center; cursor: pointer; }
.upload-drop .app-icon { width: 30px; height: 30px; color: var(--green-600); margin-bottom: 4px; }
.upload-drop span { color: var(--muted); font-size: .84rem; font-weight: 450; }
.upload-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-drop:focus-within { border-color: var(--green-500); }
.media-preview { display: grid; gap: 10px; justify-items: start; }
.media-preview img, .media-preview video { width: 100%; max-height: 360px; object-fit: contain; border-radius: var(--radius); background: var(--surface-3); }
.inline-details > summary, details > summary { cursor: pointer; }
.inline-details > summary { color: var(--green-600); font-size: .86rem; font-weight: 700; }
.inline-details[open] > summary { margin-bottom: 12px; }

/* ----- Cards, tags, status ----- */
.card, .panel { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.panel-header, .section-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 16px; }
.section-heading > div { min-width: 0; }
.section-heading > span, .section-heading > small { color: var(--muted); font-size: .86rem; }
.section-heading p { color: var(--muted); font-size: .88rem; margin-top: 4px; }
section + section, .card + section, section + .card { margin-top: 24px; }
.tag, .category { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: var(--pill); background: var(--surface-3); color: var(--ink-2); font-size: .74rem; font-weight: 750; line-height: 1.3; text-transform: none; }
.tag .app-icon, .category .app-icon { width: 13px; height: 13px; }
.tag-daily, .category-daily { background: var(--green-100); color: #13693a; }
.tag-special, .category-special { background: #efe7ff; color: #5b36b8; }
.tag-surprise, .category-surprise { background: var(--amber-100); color: var(--amber-600); }
.tag-pinned { background: var(--lime-100); color: #486a06; }
.status { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: var(--pill); background: var(--surface-3); color: var(--ink-2); font-size: .74rem; font-weight: 750; white-space: nowrap; }
.status .app-icon { width: 13px; height: 13px; }
.status-approved, .status.scheduled { background: var(--green-100); color: #13693a; }
.status-pending, .status-requested { background: var(--amber-100); color: var(--amber-600); }
.status-rejected { background: var(--red-100); color: var(--red-600); }
.status-pinned { background: var(--lime-100); color: #486a06; }
.points-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: var(--pill); background: var(--lime-100); color: #3f5f05; font-size: .8rem; font-weight: 800; }
.points-pill .app-icon { width: 14px; height: 14px; }
.count-pill { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: var(--pill); background: var(--surface-3); color: var(--ink-2); font-size: .78rem; font-weight: 800; }
.count-badge { position: absolute; top: 2px; right: 0; display: grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; border: 2px solid var(--forest-900); border-radius: var(--pill); background: #ff5a4f; color: #fff; font-size: .68rem; font-weight: 800; line-height: 1; }
.dot-badge { padding: 3px 9px; border-radius: var(--pill); background: var(--amber-100); color: var(--amber-600); font-size: .72rem; font-weight: 800; white-space: nowrap; }
.team-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--pill); font-size: .8rem; font-weight: 800; white-space: nowrap; }
.team-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.team-green { background: var(--green-100); color: #13693a; }
.team-blue { background: var(--blue-100); color: var(--blue-600); }
.privacy-pill, .privacy-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--pill); background: var(--surface-3); color: var(--ink-2); font-size: .8rem; font-weight: 750; white-space: nowrap; }
.privacy-pill .app-icon, .privacy-badge .app-icon { width: 15px; height: 15px; }

.avatar { position: relative; display: inline-grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; overflow: hidden; border-radius: 50%; background: var(--forest-800); color: #fff; font-size: .95rem; font-weight: 800; box-shadow: 0 0 0 2px var(--surface); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-team-green { background: var(--green-600); box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--green-500); }
.avatar-team-blue { background: var(--blue-600); box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--blue-500); }
.avatar-lg, .avatar-large { width: 52px; height: 52px; font-size: 1.15rem; }
.avatar-xl { width: 76px; height: 76px; font-size: 1.6rem; }

.empty-state, .inline-empty { display: grid; justify-items: center; gap: 6px; padding: 40px 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); background: var(--surface); color: var(--muted); text-align: center; grid-column: 1 / -1; }
.empty-state strong, .inline-empty strong, .inline-empty h2 { color: var(--ink); font-size: 1.05rem; }
.empty-state p, .inline-empty p { max-width: 420px; font-size: .92rem; }
.empty-state .button { margin-top: 8px; }
.empty-state.compact { padding: 24px 16px; border: 0; }
.empty-icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 6px; border-radius: 18px; background: var(--lime-100); color: var(--green-600); }
.empty-icon .app-icon { width: 26px; height: 26px; }
.inline-empty { padding: 24px 16px; font-size: .92rem; }

.alert { display: grid; gap: 6px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); color: var(--ink-2); font-size: .92rem; }
.alert strong { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.alert-warning { border-color: #f1d49a; background: var(--amber-100); }
.alert-warning strong { color: #7a4600; }
.alert small { color: var(--ink-2); }
.inline-note, .side-note { display: flex; align-items: flex-start; gap: 8px; color: var(--muted); font-size: .86rem; line-height: 1.5; }
.inline-note { margin-bottom: 16px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-3); }
.inline-note .app-icon, .side-note .app-icon { width: 17px; height: 17px; margin-top: 1px; color: var(--green-600); }
.side-note { margin-top: 24px; }
.privacy-callout { display: flex; align-items: flex-start; gap: 14px; margin-top: 24px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-2); }
.privacy-callout > span { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 auto; border-radius: 12px; background: var(--lime-100); color: var(--green-600); }
.privacy-callout strong { display: block; margin-bottom: 2px; }
.privacy-callout p { color: var(--muted); font-size: .9rem; }
.privacy-callout.strong { border-color: #c9e27d; background: var(--lime-100); }

/* ----- Toasts ----- */
.toast { position: fixed; top: 20px; right: 20px; z-index: 150; display: flex; align-items: flex-start; gap: 12px; width: min(420px, calc(100vw - 32px)); padding: 14px 14px 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-lg); animation: toast-in .35s cubic-bezier(.2, .9, .3, 1.2); }
.toast + .toast { top: 100px; }
.toast-icon { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 auto; border-radius: 10px; background: var(--green-100); color: var(--green-600); }
.toast-error .toast-icon { background: var(--red-100); color: var(--red-600); }
.toast-info .toast-icon { background: var(--amber-100); color: var(--amber-600); }
.toast-icon .app-icon { width: 18px; height: 18px; }
.toast-copy { display: grid; gap: 2px; flex: 1; min-width: 0; font-size: .9rem; color: var(--ink-2); }
.toast-copy strong { color: var(--ink); }
.toast > button { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.toast > button:hover { background: var(--surface-3); }
.toast > button .app-icon { width: 16px; height: 16px; }
.toast-out { animation: toast-out .3s forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-12px) scale(.98); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-12px); visibility: hidden; } }

/* ==========================================================================
   App shell
   ========================================================================== */
.app-body { padding-left: var(--sidebar); }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 40; display: flex; flex-direction: column; width: var(--sidebar); padding: 20px 14px 14px; overflow-y: auto; background: var(--forest-900); color: #fff; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .2) transparent; }
.sidebar-brand { display: block; width: 128px; margin: 4px 12px 22px; }
.sidebar-brand img { width: 100%; height: auto; }
.side-nav { display: grid; gap: 2px; }
.side-nav-label { margin: 16px 12px 6px; color: rgba(255, 255, 255, .45); font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.side-nav a, .mode-switch, .sidebar-notify { position: relative; display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 9px 12px; border: 0; border-radius: 12px; background: transparent; color: rgba(255, 255, 255, .74); font-size: .93rem; font-weight: 600; text-align: left; text-decoration: none; cursor: pointer; transition: background .15s, color .15s; }
.side-nav a:hover, .sidebar-notify:hover { background: rgba(255, 255, 255, .07); color: #fff; text-decoration: none; }
.side-nav a.is-active { background: var(--lime-400); color: var(--forest-900); font-weight: 750; }
.side-nav .app-icon, .mode-switch .app-icon, .sidebar-notify .app-icon { width: 19px; height: 19px; }
.sidebar-notify { width: 100%; margin-top: 12px; }
.sidebar-notify .count-badge { position: static; margin-left: auto; border: 0; }
.mode-switch { margin-top: 12px; border: 1px dashed rgba(255, 255, 255, .25); color: var(--lime-300); }
.mode-switch:hover { background: rgba(198, 242, 78, .1); text-decoration: none; }
.sidebar-user { display: flex; align-items: center; gap: 6px; margin-top: auto; padding: 16px 4px 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.sidebar-user-link { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; padding: 6px; border-radius: 12px; color: #fff; }
.sidebar-user-link:hover { background: rgba(255, 255, 255, .07); text-decoration: none; }
.sidebar-user-link > span:last-child { display: grid; min-width: 0; }
.sidebar-user-link strong { overflow: hidden; font-size: .9rem; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user-link small { color: rgba(255, 255, 255, .55); font-size: .78rem; }
.sidebar .avatar { box-shadow: 0 0 0 2px var(--forest-900), 0 0 0 4px rgba(255, 255, 255, .25); }
.sidebar .avatar-team-green { box-shadow: 0 0 0 2px var(--forest-900), 0 0 0 4px var(--green-500); }
.sidebar .avatar-team-blue { box-shadow: 0 0 0 2px var(--forest-900), 0 0 0 4px var(--blue-500); }
.sidebar-user .icon-button { color: rgba(255, 255, 255, .7); }
.sidebar-user .icon-button:hover { background: rgba(255, 255, 255, .1); color: #fff; }

.topbar { display: none; }
.app-main { width: 100%; max-width: 1180px; margin: 0 auto; padding: 32px 40px 64px; }
.bottom-nav { display: none; }

.page-header, .page-heading { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; margin-bottom: 24px; }
.page-header > div { min-width: 0; max-width: 760px; }
.page-header h1 + p, .page-heading h1 + p, .page-header .eyebrow + h1 + p { margin-top: 6px; color: var(--muted); font-size: 1rem; }

.exam-banner { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; padding: 14px 16px; border: 1px solid #f1d49a; border-radius: var(--radius); background: var(--amber-100); color: var(--ink); }
.exam-banner:hover { border-color: #e2b75d; text-decoration: none; }
.exam-banner > span:nth-child(2) { display: grid; flex: 1; min-width: 0; }
.exam-banner small { overflow: hidden; color: #6d4a12; text-overflow: ellipsis; white-space: nowrap; }
.exam-banner-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; border-radius: 12px; background: #fff; color: var(--amber-600); }
.exam-banner-action { display: inline-flex; align-items: center; gap: 2px; color: #7a4600; font-size: .88rem; font-weight: 800; white-space: nowrap; }
.exam-banner-action .app-icon { width: 16px; height: 16px; }

/* ----- Sheets (dialogs) ----- */
dialog { color: var(--ink); }
.sheet { width: min(560px, calc(100vw - 32px)); max-height: min(86vh, 760px); padding: 0; border: 0; border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow-lg); overflow: hidden; }
.sheet[open] { display: flex; flex-direction: column; animation: sheet-in .28s cubic-bezier(.2, .8, .2, 1); }
.sheet::backdrop, .story-viewer::backdrop, .image-viewer::backdrop { background: rgba(7, 23, 15, .55); backdrop-filter: blur(3px); }
.sheet-header { display: flex; align-items: flex-start; gap: 12px; padding: 20px 20px 16px; border-bottom: 1px solid var(--line); }
.sheet-header > div { flex: 1; min-width: 0; }
.sheet-header h2 { font-size: 1.2rem; }
.sheet-header p { color: var(--muted); font-size: .88rem; margin-top: 2px; }
.sheet-body { display: grid; gap: 16px; padding: 20px; overflow-y: auto; }
.sheet-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--line); background: var(--surface-2); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(16px); } }

.notification-list { display: grid; overflow-y: auto; }
.notification-item { display: flex; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.notification-item.is-read { opacity: .62; }
.notification-item:not(.is-read) { background: linear-gradient(90deg, var(--lime-100), transparent 60%); }
.notification-thumb { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 auto; border-radius: 14px; background: var(--surface-3); color: var(--green-600); object-fit: cover; }
.notification-exam .notification-thumb { background: var(--amber-100); color: var(--amber-600); }
.notification-copy { display: grid; gap: 3px; min-width: 0; }
.notification-meta { color: var(--muted); font-size: .76rem; font-weight: 650; }
.notification-meta span { color: var(--green-600); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.notification-meta b { margin-left: 4px; padding: 1px 7px; border-radius: var(--pill); background: var(--forest-900); color: #fff; font-size: .68rem; }
.notification-item.is-read .notification-meta b { background: var(--surface-3); color: var(--muted); }
.notification-copy p { color: var(--ink-2); font-size: .88rem; }
.notification-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 4px; font-size: .84rem; }
.notification-actions a { font-weight: 750; }
.notification-actions button { padding: 0; border: 0; background: none; color: var(--muted); font-weight: 650; cursor: pointer; }
.notification-device { display: flex; align-items: center; gap: 10px; flex: 1 1 260px; color: var(--muted); font-size: .82rem; }

.menu-sheet-profile { align-items: center; }
.menu-sheet-profile p { margin: 0; }
.menu-sheet-nav { padding: 4px 16px 16px; overflow-y: auto; }
.menu-sheet-nav .side-nav-label { margin: 14px 4px 8px; color: var(--muted); }
.menu-sheet-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.menu-sheet-grid a { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); }
.menu-sheet-grid a:hover { background: var(--surface-2); text-decoration: none; }
.menu-sheet-grid a.is-active { border-color: #b8dc86; background: var(--lime-100); }
.menu-sheet-grid a > span:last-child { display: grid; min-width: 0; }
.menu-sheet-grid strong { font-size: .88rem; line-height: 1.25; }
.menu-sheet-grid small { overflow: hidden; color: var(--muted); font-size: .74rem; text-overflow: ellipsis; white-space: nowrap; }
.menu-sheet-icon { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 auto; border-radius: 11px; background: var(--surface-3); color: var(--forest-700); }
.menu-sheet-icon .app-icon { width: 18px; height: 18px; }
.menu-sheet-nav .mode-switch { margin-top: 16px; border-color: var(--line-strong); color: var(--forest-700); }
.menu-sheet-logout { padding: 12px 16px 16px; border-top: 1px solid var(--line); }
.menu-sheet-logout button { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 46px; border: 1px solid #efc6c6; border-radius: var(--pill); background: var(--surface); color: var(--red-600); font-weight: 750; cursor: pointer; }
.menu-sheet-logout .app-icon { width: 18px; height: 18px; }

/* ==========================================================================
   Participante — Início
   ========================================================================== */
.home-hero { position: relative; overflow: hidden; padding: 28px; border-radius: var(--radius-xl); background: var(--forest-900); color: #fff; isolation: isolate; }
.home-hero::after { content: ""; position: absolute; top: -140px; right: -90px; z-index: -1; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(198, 242, 78, .32), transparent 65%); }
.home-hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.home-hero-greeting { color: var(--lime-400); font-size: .95rem; font-weight: 700; }
.home-hero h1 { max-width: 560px; margin-top: 6px; color: #fff; font-family: var(--display); font-size: clamp(1.8rem, 2.6vw + 1rem, 2.6rem); font-weight: 600; letter-spacing: -.01em; line-height: 1.05; text-transform: uppercase; }
.home-hero .team-chip { background: rgba(255, 255, 255, .1); color: #fff; }
.home-hero .team-green::before { background: var(--green-500); }
.home-hero .team-blue::before { background: var(--blue-500); }
.home-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 24px 0 0; }
.home-stats div { padding: 14px 16px; border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius); background: rgba(255, 255, 255, .05); }
.home-stats dt { color: rgba(255, 255, 255, .6); font-size: .78rem; font-weight: 650; }
.home-stats dd { margin: 2px 0 0; color: #fff; font-family: var(--display); font-size: 1.9rem; font-weight: 600; line-height: 1.1; }
.home-stats dd small { font-family: var(--font); font-size: .8rem; font-weight: 600; color: rgba(255, 255, 255, .6); }
.home-hero-note { display: flex; align-items: center; gap: 8px; margin-top: 18px; color: rgba(255, 255, 255, .75); font-size: .9rem; }
.home-hero-note .app-icon { color: var(--lime-400); }
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; gap: 24px; margin-top: 24px; }
.home-main, .home-side, .feed-main, .feed-side { display: grid; gap: 18px; min-width: 0; }
.home-side, .feed-side { position: sticky; top: 24px; }
.panel-header h2 { font-size: 1.1rem; }
.task-list { display: grid; gap: 8px; }
.task-row { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); color: var(--ink); transition: border-color .15s, background .15s, transform .15s; }
.task-row:hover { border-color: #b8dc86; background: var(--lime-100); text-decoration: none; }
.task-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 auto; border-radius: 13px; background: var(--green-100); color: var(--green-600); }
.task-special { background: #efe7ff; color: #5b36b8; }
.task-surprise { background: var(--amber-100); color: var(--amber-600); }
.task-copy { display: grid; flex: 1; min-width: 0; }
.task-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-copy small { color: var(--muted); }
.task-go { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--forest-900); color: #fff; }
.task-go .app-icon { width: 16px; height: 16px; }
.panel-more { display: block; margin-top: 10px; color: var(--muted); font-size: .86rem; font-weight: 650; }
.done-state { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--radius); background: var(--green-100); }
.done-state > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--green-600); color: #fff; }
.done-state > div { display: grid; }
.done-state small { color: #2f6a47; }
.feed-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.feed-heading h2 { font-size: 1.1rem; }
.shortcut-list { display: grid; gap: 2px; padding: 8px; }
.shortcut-list a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 13px; color: var(--ink); }
.shortcut-list a:hover { background: var(--surface-2); text-decoration: none; }
.shortcut-list a > span:nth-child(2) { display: grid; flex: 1; min-width: 0; }
.shortcut-list strong { font-size: .92rem; }
.shortcut-list small { overflow: hidden; color: var(--muted); font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.shortcut-list a > .app-icon { width: 16px; height: 16px; color: var(--muted); }
.shortcut-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; border-radius: 12px; background: var(--surface-3); color: var(--forest-700); }
.shortcut-icon .app-icon { width: 19px; height: 19px; }
.notice-board article + article { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.notice-board strong { font-size: .92rem; }
.notice-board p { margin-top: 2px; color: var(--muted); font-size: .86rem; }

.water-card { position: relative; overflow: hidden; padding: 20px; border-radius: var(--radius-lg); background: linear-gradient(145deg, #1d64d8, #3a8bf2); color: #fff; }
.water-card::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 170px; height: 170px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.water-card.is-pending { background: linear-gradient(145deg, #5d7b93, #7d98ad); }
.water-top { display: flex; align-items: center; gap: 12px; }
.water-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: rgba(255, 255, 255, .18); }
.water-label { color: rgba(255, 255, 255, .78); font-size: .8rem; font-weight: 700; }
.water-goal { font-family: var(--display); font-size: 1.9rem; font-weight: 600; line-height: 1.1; }
.water-goal small { font-family: var(--font); font-size: .82rem; font-weight: 600; opacity: .8; }
.water-toggle { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 9px 14px; border: 0; border-radius: var(--pill); background: #fff; color: #1d4fb0; font-size: .86rem; font-weight: 800; cursor: pointer; }
.water-toggle .app-icon { width: 16px; height: 16px; }
.water-toggle.is-active { background: var(--lime-400); color: var(--forest-900); }
.water-toggle:disabled { opacity: .7; cursor: not-allowed; }
.water-status { position: relative; z-index: 1; display: block; margin-top: 8px; color: rgba(255, 255, 255, .82); font-size: .8rem; }
.water-alert { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 12px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .95); color: #1d4fb0; font-size: .86rem; }

/* ----- Social: stories, composer, posts ----- */
.stories { min-width: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.stories-rail { display: flex; align-items: flex-start; gap: 14px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.stories-rail::-webkit-scrollbar { display: none; }
.story-person { display: grid; justify-items: center; gap: 6px; width: 70px; flex: 0 0 auto; padding: 0; border: 0; background: none; cursor: pointer; scroll-snap-align: start; }
.story-person strong { overflow: hidden; width: 100%; color: var(--ink-2); font-size: .74rem; font-weight: 650; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.story-ring { display: grid; place-items: center; width: 64px; height: 64px; padding: 3px; border-radius: 50%; background: conic-gradient(from 200deg, var(--lime-400), var(--green-500), var(--lime-400)); }
.story-person.is-blue .story-ring { background: conic-gradient(from 200deg, #7fb1ff, var(--blue-600), #7fb1ff); }
.story-person.is-seen .story-ring { background: var(--line-strong); }
.story-avatar { display: grid; place-items: center; width: 100%; height: 100%; overflow: hidden; border: 3px solid var(--surface); border-radius: 50%; background: var(--forest-800); color: #fff; font-weight: 800; }
.story-avatar img { width: 100%; height: 100%; object-fit: cover; }
.story-add .story-ring { background: var(--surface-3); }
.story-add .story-avatar { background: var(--surface); color: var(--forest-900); border: 2px dashed var(--line-strong); }
.stories-status { align-self: center; margin: 0; color: var(--muted); font-size: .84rem; }
.stories-status button { margin-left: 8px; padding: 4px 10px; border: 1px solid var(--line-strong); border-radius: var(--pill); background: var(--surface); font-size: .8rem; cursor: pointer; }

.story-viewer { width: min(440px, 100vw); height: min(92vh, 820px); max-width: 100vw; max-height: 100vh; padding: 0; border: 0; border-radius: var(--radius-xl); background: #000; color: #fff; overflow: hidden; }
.story-viewer-inner { position: relative; display: flex; flex-direction: column; height: 100%; }
.story-progress { position: absolute; top: 10px; right: 12px; left: 12px; z-index: 3; display: flex; gap: 4px; }
.story-progress progress { flex: 1; height: 3px; overflow: hidden; border: 0; border-radius: 3px; background: rgba(255, 255, 255, .3); appearance: none; }
.story-progress progress::-webkit-progress-bar { background: rgba(255, 255, 255, .3); }
.story-progress progress::-webkit-progress-value { background: #fff; }
.story-progress progress::-moz-progress-bar { background: #fff; }
.story-viewer-head { position: absolute; top: 20px; right: 10px; left: 14px; z-index: 3; display: flex; align-items: center; gap: 8px; font-size: .88rem; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.story-viewer-head span[data-story-time] { color: rgba(255, 255, 255, .7); }
.story-viewer-tools { display: flex; gap: 4px; margin-left: auto; }
.story-viewer-tools button { display: grid; place-items: center; min-width: 36px; height: 36px; padding: 0 8px; border: 0; border-radius: var(--pill); background: rgba(0, 0, 0, .35); color: #fff; font-size: .8rem; font-weight: 700; cursor: pointer; }
.story-viewer-tools .app-icon { width: 18px; height: 18px; }
.story-stage { display: grid; flex: 1; place-items: center; min-height: 0; }
.story-stage img, .story-stage video { width: 100%; height: 100%; object-fit: contain; }
.story-load-status { position: absolute; color: rgba(255, 255, 255, .8); font-size: .9rem; text-align: center; padding: 0 24px; }
.story-nav { position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .35); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; transform: translateY(-50%); }
.story-prev { left: 8px; }
.story-next { right: 8px; }
.story-viewer-foot { position: absolute; right: 0; bottom: 0; left: 0; z-index: 3; display: grid; gap: 8px; padding: 40px 16px 16px; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); }
.story-viewer-foot p { font-size: .95rem; }
.story-viewer-foot button { justify-self: start; padding: 6px 12px; border: 1px solid rgba(255, 255, 255, .5); border-radius: var(--pill); background: transparent; color: #fff; font-size: .8rem; cursor: pointer; }

.composer { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.composer-top { display: flex; align-items: flex-start; gap: 12px; }
.composer textarea { min-height: 48px; padding: 11px 14px; border-color: transparent; border-radius: var(--radius); background: var(--surface-2); resize: none; }
.composer textarea:focus { background: var(--surface); }
.composer-bar { display: flex; align-items: center; gap: 12px; padding-left: 52px; }
.composer-attach { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: var(--pill); background: var(--surface-3); color: var(--ink-2); font-size: .86rem; font-weight: 700; cursor: pointer; }
.composer-attach:hover { background: var(--line); }
.composer-attach .app-icon { width: 18px; height: 18px; color: var(--green-600); }
.composer-attach input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.composer-attach:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.composer-count { margin-left: auto; color: var(--muted); font-size: .78rem; }
.composer .form-hint { padding-left: 52px; }
.composer .media-preview { padding-left: 52px; }
.form-hint.is-error, .social-upload-status.is-error { color: var(--red-600); font-weight: 650; }

.post-feed { display: grid; gap: 16px; }
.post { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.post-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.post-author { display: grid; flex: 1; min-width: 0; }
.post-author strong { font-size: .95rem; }
.post-author small { color: var(--muted); font-size: .78rem; }
.post-badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: var(--pill); background: var(--lime-100); color: #486a06; font-size: .72rem; font-weight: 800; white-space: nowrap; }
.post-badge.is-private { background: var(--surface-3); color: var(--muted); }
.post-badge .app-icon { width: 13px; height: 13px; }
.post-text { padding: 0 16px 12px; color: var(--ink-2); font-size: .97rem; line-height: 1.55; overflow-wrap: anywhere; }
.post-media { width: 100%; max-height: 640px; object-fit: cover; background: var(--surface-3); }
video.post-media { object-fit: contain; background: #000; }
.post-actions { display: flex; align-items: center; gap: 6px; padding: 8px 10px; }
.post-actions form { display: flex; align-items: center; gap: 8px; }
.like-button, .post-stat { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 12px; border: 0; border-radius: var(--pill); background: transparent; color: var(--ink-2); font-size: .9rem; font-weight: 700; }
.like-button { cursor: pointer; }
.like-button:hover { background: var(--surface-3); }
.like-button.liked { color: #e0364a; }
.like-button.liked .app-icon { fill: currentColor; }
.like-button[disabled] { opacity: .6; }
.like-feedback { color: var(--red-600); font-size: .78rem; }
.like-feedback:empty { display: none; }
.post-remove { margin-left: auto; }
.post-comments { display: grid; gap: 6px; padding: 0 16px 10px; }
.post-comment { color: var(--ink-2); font-size: .9rem; line-height: 1.45; overflow-wrap: anywhere; }
.post-comment strong { color: var(--ink); }
.post-comments-more { color: var(--muted); font-size: .8rem; }
.comment-bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--line); }
.comment-bar input { min-height: 40px; padding: 8px 14px; border-color: transparent; border-radius: var(--pill); background: var(--surface-2); font-size: .92rem; }
.comment-bar button { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 auto; border: 0; border-radius: 50%; background: var(--forest-900); color: #fff; cursor: pointer; }
.comment-bar button .app-icon { width: 17px; height: 17px; }

.feed-layout { display: grid; grid-template-columns: minmax(0, 640px) 300px; justify-content: center; align-items: start; gap: 28px; }
.promo-card { position: relative; overflow: hidden; padding: 22px; border-radius: var(--radius-lg); background: var(--forest-900); color: #fff; }
.promo-card > .app-icon { width: 30px; height: 30px; margin-bottom: 12px; color: var(--lime-400); }
.promo-card h2 { color: #fff; font-size: 1.15rem; }
.promo-card p { margin: 6px 0 16px; color: rgba(255, 255, 255, .72); font-size: .9rem; }

/* ----- Desafios ----- */
.chip-group { display: flex; gap: 8px; margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.chip-group::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; min-height: 38px; padding: 7px 16px; border: 1px solid var(--line-strong); border-radius: var(--pill); background: var(--surface); color: var(--ink-2); font-size: .88rem; font-weight: 700; cursor: pointer; }
.chip:hover { background: var(--surface-3); }
.chip.active { border-color: var(--forest-900); background: var(--forest-900); color: #fff; }
.challenge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.challenge-card { display: flex; flex-direction: column; gap: 10px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s; }
.challenge-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.challenge-card.is-done { background: linear-gradient(180deg, var(--green-100), var(--surface) 55%); }
.challenge-card-top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.challenge-card-top .task-icon { width: 38px; height: 38px; margin-right: 2px; }
.challenge-card h2 { margin-top: 4px; font-size: 1.12rem; }
.challenge-card > p { flex: 1; color: var(--muted); font-size: .92rem; }
.challenge-card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: .8rem; }
.challenge-card-meta > span:not(.points-pill) { display: inline-flex; align-items: center; gap: 5px; }
.challenge-card-meta .app-icon { width: 14px; height: 14px; }
.challenge-card .button { margin-top: 6px; }

.challenge-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); align-items: start; gap: 24px; }
.challenge-hero { padding: 28px; border-radius: var(--radius-xl); background: var(--forest-900); color: #fff; }
.challenge-hero h1 { margin: 16px 0 10px; color: #fff; font-family: var(--display); font-size: clamp(1.9rem, 2.5vw + 1rem, 2.8rem); font-weight: 600; line-height: 1.05; text-transform: uppercase; letter-spacing: 0; }
.challenge-hero > p { color: rgba(255, 255, 255, .78); font-size: 1.02rem; line-height: 1.6; }
.challenge-hero .tag { background: rgba(255, 255, 255, .12); color: #fff; }
.challenge-hero .tag-pinned { background: var(--lime-400); color: var(--forest-900); }
.challenge-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 22px 0 0; }
.challenge-facts div { padding: 12px 14px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); }
.challenge-facts dt { color: rgba(255, 255, 255, .55); font-size: .76rem; font-weight: 700; }
.challenge-facts dd { margin: 2px 0 0; font-weight: 700; font-size: .92rem; }
.rule-box { margin-top: 14px; padding: 14px 16px; border: 1px solid rgba(198, 242, 78, .35); border-radius: var(--radius); background: rgba(198, 242, 78, .08); }
.rule-box strong { display: flex; align-items: center; gap: 8px; color: var(--lime-400); font-size: .9rem; }
.rule-box strong .app-icon { width: 17px; height: 17px; }
.rule-box p { margin-top: 6px; color: rgba(255, 255, 255, .82); font-size: .9rem; line-height: 1.55; }
.rule-box b { color: #fff; }
.participation-card { display: grid; gap: 16px; }
.participation-card h2 { font-size: 1.2rem; }
.state-card { justify-items: center; padding: 32px 24px; text-align: center; }
.state-card p { color: var(--muted); }
.state-icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 20px; background: var(--surface-3); color: var(--muted); }
.state-icon .app-icon { width: 28px; height: 28px; }
.state-card.is-success .state-icon { background: var(--green-600); color: #fff; }
.evidence-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.evidence-options legend { grid-column: 1 / -1; }
.evidence-option { display: block; cursor: pointer; }
.evidence-option input { position: absolute; opacity: 0; pointer-events: none; }
.evidence-option-body { display: grid; justify-items: center; gap: 4px; padding: 16px 10px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--surface); text-align: center; transition: border-color .15s, background .15s; }
.evidence-option-body strong { font-size: .92rem; }
.evidence-option-body small { color: var(--green-600); font-weight: 800; }
.evidence-option-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--surface-3); color: var(--forest-700); }
.evidence-option:hover .evidence-option-body { border-color: var(--line-strong); }
.evidence-option input:checked + .evidence-option-body { border-color: var(--green-500); background: var(--lime-100); }
.evidence-option input:checked + .evidence-option-body .evidence-option-icon { background: var(--green-600); color: #fff; }
.evidence-option input:focus-visible + .evidence-option-body { outline: 3px solid var(--focus); outline-offset: 2px; }
.evidence-panel { display: grid; gap: 10px; }
.photo-sources { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.upload-tile { position: relative; display: grid; justify-items: center; gap: 2px; padding: 18px 10px; border: 2px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface-2); text-align: center; cursor: pointer; }
.upload-tile:hover, .upload-tile:focus-within { border-color: var(--green-500); background: var(--lime-100); }
.upload-tile input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; opacity: 0; cursor: pointer; }
.upload-tile .app-icon { width: 26px; height: 26px; margin-bottom: 4px; color: var(--green-600); }
.upload-tile small { color: var(--muted); font-weight: 450; }
.history-card { margin-top: 24px; padding: 0; }
.history-card > summary { display: flex; align-items: center; gap: 10px; padding: 18px 22px; font-weight: 750; list-style: none; }
.history-card > summary::-webkit-details-marker { display: none; }
.history-card > summary::after { content: ""; width: 9px; height: 9px; margin-left: auto; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
.history-card[open] > summary::after { transform: rotate(225deg); }
.history-list { display: grid; padding: 0 22px 12px; list-style: none; }
.history-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.history-list li > div { display: grid; }
.history-list time { font-weight: 650; font-size: .92rem; }
.history-list small { color: var(--muted); }
.history-list p { flex-basis: 100%; color: var(--muted); font-size: .86rem; }

/* ----- Ranking ----- */
.team-battle { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 22px; border-radius: var(--radius-xl); background: var(--forest-900); color: #fff; }
.team-battle-side { display: grid; gap: 2px; }
.team-battle-side span { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .7); font-size: .86rem; font-weight: 700; }
.team-battle-side span::before { content: ""; width: 10px; height: 10px; border-radius: 50%; }
.team-battle-side.is-green span::before { background: var(--green-500); }
.team-battle-side.is-blue { justify-items: end; text-align: right; }
.team-battle-side.is-blue span::before { background: var(--blue-500); }
.team-battle-side strong { font-family: var(--display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; line-height: 1; }
.team-battle-side strong small { font-family: var(--font); font-size: .9rem; color: rgba(255, 255, 255, .6); }
.team-battle-side.is-leading strong { color: var(--lime-400); }
.team-battle-vs { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .6); font-weight: 800; }
.team-battle-bar { grid-column: 1 / -1; width: 100%; height: 10px; overflow: hidden; border: 0; border-radius: var(--pill); background: var(--blue-500); appearance: none; }
.team-battle-bar::-webkit-progress-bar { background: var(--blue-500); border-radius: var(--pill); }
.team-battle-bar::-webkit-progress-value { background: var(--green-500); border-radius: var(--pill) 0 0 var(--pill); }
.team-battle-bar::-moz-progress-bar { background: var(--green-500); }
.segmented { display: inline-flex; gap: 4px; margin: 20px 0; padding: 4px; border-radius: var(--pill); background: var(--surface-3); max-width: 100%; overflow-x: auto; }
.segmented a { padding: 8px 16px; border-radius: var(--pill); color: var(--ink-2); font-size: .88rem; font-weight: 700; white-space: nowrap; }
.segmented a:hover { text-decoration: none; background: rgba(255, 255, 255, .6); }
.segmented a.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 12px; max-width: 620px; margin: 8px auto 20px; }
.podium-place { position: relative; display: grid; justify-items: center; gap: 6px; padding: 22px 10px 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); text-align: center; }
.podium-place.place-1 { padding-top: 34px; border-color: #e6d27a; background: linear-gradient(180deg, #fff8d9, var(--surface)); }
.podium-place strong { overflow: hidden; max-width: 100%; font-size: .92rem; text-overflow: ellipsis; white-space: nowrap; }
.podium-place b { color: var(--green-600); font-size: .9rem; }
.podium-medal { position: absolute; top: -14px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #c9ced3; color: #fff; font-size: .8rem; font-weight: 800; }
.place-1 .podium-medal { background: #e0a800; }
.place-3 .podium-medal { background: #c47a3d; }
.rank-list { padding: 6px; }
.rank-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius); }
.rank-row + .rank-row { border-top: 1px solid var(--line); }
.rank-row.is-me { border-top-color: transparent; background: var(--lime-100); }
.rank-row.is-me + .rank-row { border-top-color: transparent; }
.rank-pos { width: 34px; color: var(--muted); font-size: .92rem; text-align: center; }
.rank-name { display: grid; flex: 1; min-width: 0; }
.rank-name strong { overflow: hidden; font-size: .95rem; text-overflow: ellipsis; white-space: nowrap; }
.rank-name em { color: var(--green-600); font-style: normal; font-weight: 650; }
.rank-name small { overflow: hidden; color: var(--muted); font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.rank-points { font-family: var(--display); font-size: 1.3rem; font-weight: 600; }

/* ----- Clube ----- */
.club-hero { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-bottom: 24px; padding: 28px; border-radius: var(--radius-xl); background: var(--forest-900); color: #fff; }
.club-hero h1 { color: #fff; font-family: var(--display); font-size: clamp(2rem, 3vw + 1rem, 3rem); font-weight: 600; line-height: 1.02; text-transform: uppercase; letter-spacing: 0; }
.club-hero p { margin-top: 6px; color: rgba(255, 255, 255, .72); }
.club-balance { display: grid; justify-items: end; padding: 14px 20px; border-radius: var(--radius-lg); background: var(--lime-400); color: var(--forest-900); }
.club-balance small { font-weight: 700; }
.club-balance strong { font-family: var(--display); font-size: 2.6rem; font-weight: 600; line-height: 1; }
.club-balance span { font-size: .8rem; font-weight: 700; }
.benefit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.benefit-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.benefit-card.is-soldout { opacity: .7; }
.benefit-cover { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--surface-3); }
.benefit-cover-empty { display: grid; place-items: center; color: var(--green-600); background: linear-gradient(145deg, var(--lime-100), var(--green-100)); }
.benefit-cover-empty .app-icon { width: 40px; height: 40px; }
.benefit-body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 16px; }
.benefit-body p { flex: 1; color: var(--muted); font-size: .9rem; }
.benefit-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.benefit-meta small { color: var(--muted); }
.partner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.partner-card { display: flex; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.partner-card img, .partner-initials { width: 52px; height: 52px; flex: 0 0 auto; border-radius: 14px; object-fit: cover; }
.partner-card img { padding: 4px; border: 1px solid var(--line); background: #fff; object-fit: contain; }
.partner-card.is-light-logo img, .partner-management-logo.is-light-logo { border-color: transparent; background: var(--forest-900); }
.partner-initials { display: grid; place-items: center; background: var(--forest-900); color: var(--lime-400); font-weight: 800; }
.partner-card h3 { font-size: .98rem; }
.partner-card p { margin: 2px 0 6px; color: var(--muted); font-size: .86rem; }

/* ----- Hero de funcionalidades (Nutrição, Plano) ----- */
.feature-hero { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; overflow: hidden; margin-bottom: 24px; padding: 32px; border-radius: var(--radius-xl); background: var(--forest-900); color: #fff; isolation: isolate; }
.feature-hero::after { content: ""; position: absolute; right: -80px; bottom: -120px; z-index: -1; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(198, 242, 78, .28), transparent 65%); }
.feature-hero h1 { color: #fff; font-family: var(--display); font-size: clamp(2rem, 3vw + 1rem, 3rem); font-weight: 600; line-height: 1.02; text-transform: uppercase; letter-spacing: 0; }
.feature-hero p { max-width: 520px; margin: 10px 0 18px; color: rgba(255, 255, 255, .75); }
.feature-hero p:last-child { margin-bottom: 0; }
.feature-hero-icon { display: grid; place-items: center; width: 96px; height: 96px; flex: 0 0 auto; border-radius: 30px; background: rgba(255, 255, 255, .08); color: var(--lime-400); transform: rotate(-6deg); }
.feature-hero-icon .app-icon { width: 46px; height: 46px; }
.content-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.content-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.content-cover { position: relative; display: block; width: 100%; padding: 0; border: 0; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-3); cursor: zoom-in; }
.content-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.content-cover:hover img { transform: scale(1.03); }
.content-zoom { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: var(--pill); background: rgba(7, 23, 15, .7); color: #fff; font-size: .74rem; font-weight: 700; }
.content-zoom .app-icon { width: 13px; height: 13px; }
.content-cover-empty { display: grid; place-items: center; color: var(--green-600); background: linear-gradient(145deg, var(--lime-100), var(--green-100)); cursor: default; }
.content-cover-empty .app-icon { width: 40px; height: 40px; }
.content-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px 18px 18px; }
.content-body h2 { font-size: 1.05rem; }
.content-body p { flex: 1; color: var(--muted); font-size: .9rem; line-height: 1.55; }
.image-viewer { width: min(1000px, 96vw); max-height: 94vh; padding: 0; border: 0; border-radius: var(--radius-lg); background: var(--forest-950); color: #fff; overflow: hidden; }
.image-viewer[open] { display: flex; flex-direction: column; }
.image-viewer header, .image-viewer footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px 10px 18px; }
.image-viewer footer { justify-content: center; }
.image-viewer footer button { min-width: 44px; min-height: 38px; border: 0; border-radius: var(--pill); background: rgba(255, 255, 255, .12); color: #fff; font-weight: 800; cursor: pointer; }
.image-viewer .icon-button { color: #fff; }
.image-viewer-stage { display: grid; flex: 1 1 auto; place-items: center; min-height: 0; overflow: auto; }
.image-viewer-stage img { max-height: 76vh; object-fit: contain; transition: transform .2s; }

/* ----- Plano alimentar ----- */
.plan-summary { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.plan-summary h2 { margin-top: 4px; }
.plan-summary p { color: var(--muted); font-size: .88rem; }
.plan-picker { display: flex; align-items: flex-end; gap: 8px; flex-basis: 100%; padding-top: 14px; border-top: 1px solid var(--line); }
.plan-picker label { flex: 1; }
.plan-picker label > span { color: var(--muted); font-size: .8rem; }
.anchor-nav { position: sticky; top: 12px; z-index: 5; display: flex; gap: 6px; margin: 16px 0 8px; padding: 6px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--pill); background: rgba(255, 255, 255, .92); box-shadow: var(--shadow); backdrop-filter: blur(10px); width: fit-content; max-width: 100%; }
.anchor-nav a { padding: 7px 14px; border-radius: var(--pill); color: var(--ink-2); font-size: .86rem; font-weight: 700; white-space: nowrap; }
.anchor-nav a:hover { background: var(--surface-3); text-decoration: none; }
.plan-note { margin-top: 16px; }
.plan-note h2 { margin-bottom: 8px; }
.plan-block { margin-top: 28px; scroll-margin-top: 80px; }
.plan-block-title { margin-bottom: 14px; font-size: 1.3rem; }
.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.plan-card h3 { margin-bottom: 10px; }
.plan-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.plan-card-head h3 { margin: 0; }
.meal-list { display: grid; gap: 14px; }
.meal-card header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.meal-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--lime-400); color: var(--forest-900); font-weight: 800; }
.meal-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.meal-field { min-width: 0; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2); }
.meal-field + .meal-field { margin-top: 0; }
.plan-card .meal-field + .meal-field { margin-top: 8px; }
.meal-field.is-option { border: 1px solid #d6ebb0; background: var(--lime-100); }
.meal-field h4 { margin: 0 0 4px; color: var(--green-600); font-size: .74rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.meal-field > div { color: var(--ink-2); font-size: .92rem; line-height: 1.6; overflow-wrap: anywhere; }

/* ----- Resultados ----- */
.staff-context { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 20px; color: var(--muted); font-size: .9rem; }
.staff-context strong { color: var(--ink); }
.exam-request { margin-bottom: 20px; }
.metric-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.metric-card { display: grid; gap: 4px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.metric-card.is-primary { border-color: transparent; background: var(--forest-900); color: #fff; }
.metric-card small { color: var(--muted); font-size: .78rem; font-weight: 650; }
.metric-card.is-primary small { color: rgba(255, 255, 255, .65); }
.metric-card strong { font-family: var(--display); font-size: 1.7rem; font-weight: 600; line-height: 1.1; }
.delta { justify-self: start; padding: 2px 8px; border-radius: var(--pill); background: var(--surface-3); color: var(--muted); font-size: .74rem; font-weight: 800; }
.metric-card.is-primary .delta { background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .8); }
.delta.is-up, .delta.is-down { background: var(--lime-100); color: #3f5f05; }
.metric-card.is-primary .delta.is-up, .metric-card.is-primary .delta.is-down { background: var(--lime-400); color: var(--forest-900); }
.results-latest .form-hint { margin-top: 10px; }
.team-note { display: flex; align-items: flex-start; gap: 14px; margin-top: 16px; background: var(--lime-100); border-color: #d6ebb0; }
.team-note p { margin-top: 2px; color: var(--ink-2); }
.history-grid { display: grid; gap: 12px; }
.result-record { padding: 0; }
.result-record > summary { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 16px 20px; list-style: none; }
.result-record > summary::-webkit-details-marker { display: none; }
.result-record > summary small { color: var(--muted); }
.result-record[open] > summary { border-bottom: 1px solid var(--line); }
.result-record > :not(summary) { margin-right: 20px; margin-left: 20px; }
.result-record > :last-child { margin-bottom: 20px; }
.measure-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 16px; }
.measure-grid span { display: grid; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); }
.measure-grid small { color: var(--muted); font-size: .74rem; }
.measure-grid strong { font-size: .98rem; }
.result-record .readable { margin-top: 14px; }
.attachments { display: grid; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.attachments h3 { font-size: .95rem; }
.file-list { display: grid; gap: 8px; padding: 0; list-style: none; }
.file-list li { display: grid; gap: 8px; }
.file-link { display: inline-flex; align-items: center; gap: 8px; justify-self: start; max-width: 100%; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--ink); font-size: .9rem; font-weight: 650; }
.file-link span { overflow-wrap: anywhere; }
.file-link .app-icon { width: 18px; height: 18px; color: var(--green-600); }
.attach-form { padding: 14px; border-radius: var(--radius); background: var(--surface-2); }
.attach-form .button { justify-self: start; }

/* ----- Perfil, consulta, agenda ----- */
.profile-card { display: grid; gap: 22px; max-width: 720px; }
.profile-identity { display: flex; align-items: center; gap: 18px; }
.profile-identity > div { display: grid; justify-items: start; gap: 2px; min-width: 0; }
.profile-identity strong { font-size: 1.1rem; }
.profile-identity small { color: var(--muted); overflow-wrap: anywhere; }
.profile-identity .team-chip { margin-top: 6px; }
.stack-form > .button { justify-self: start; }
.ticket { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; max-width: 720px; }
.ticket-date { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 22px; background: var(--forest-900); color: #fff; }
.ticket-date small { color: var(--lime-400); font-weight: 800; letter-spacing: .08em; }
.ticket-date strong { font-family: var(--display); font-size: 2.2rem; font-weight: 600; line-height: 1; }
.ticket-info { display: flex; flex: 1; flex-wrap: wrap; gap: 12px 28px; margin: 0; }
.ticket-info dt { color: var(--muted); font-size: .78rem; font-weight: 650; }
.ticket-info dd { margin: 0; font-size: 1.05rem; font-weight: 750; }
.agenda { display: grid; gap: 14px; max-width: 760px; }
.agenda-item { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; }
.agenda-item.is-past { opacity: .55; }
.agenda-date { display: grid; place-content: center; height: 64px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); text-align: center; }
.agenda-date strong { font-family: var(--display); font-size: 1.6rem; font-weight: 600; line-height: 1; }
.agenda-date span { color: var(--green-600); font-size: .72rem; font-weight: 800; letter-spacing: .06em; }
.agenda-card { display: grid; justify-items: start; gap: 6px; }
.agenda-card img { width: 100%; max-height: 260px; margin-bottom: 6px; border-radius: var(--radius); object-fit: cover; }
.agenda-card h2 { font-size: 1.05rem; }
.agenda-card p { color: var(--muted); font-size: .9rem; }

/* ----- Questionário ----- */
.questionnaire-page { width: 100%; max-width: 920px; }
.questionnaire-heading { margin-bottom: 24px; }
.questionnaire-heading h1 { margin: 4px 0 8px; }
.questionnaire-heading p { color: var(--muted); }
.questionnaire-notice, .questionnaire-errors { margin: 16px 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-size: .94rem; }
.questionnaire-notice p { margin-top: 6px; color: var(--ink-2); line-height: 1.6; }
.questionnaire-notice.is-success { border-color: #b7dfc4; background: var(--green-100); }
.questionnaire-errors { border-color: #efc6c6; background: var(--red-100); color: #7d2020; }
.questionnaire-errors ul, .questionnaire-notice ul { margin: 10px 0 0; padding-left: 20px; }
.questionnaire-errors li + li, .questionnaire-notice li + li { margin-top: 6px; }
.questionnaire-errors a { color: inherit; text-decoration: underline; }
.questionnaire-private, .questionnaire-saved { margin: 14px 0; color: var(--muted); font-size: .88rem; }
.questionnaire-toolbar { position: sticky; top: 12px; z-index: 6; display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin: 20px 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(255, 255, 255, .95); box-shadow: var(--shadow); backdrop-filter: blur(10px); }
.questionnaire-toolbar > div { flex: 1 1 280px; min-width: 0; }
.questionnaire-toolbar label { display: block; margin-bottom: 6px; font-size: .84rem; }
.questionnaire-toolbar p { margin-top: 6px; color: var(--muted); font-size: .82rem; }
.questionnaire-section { margin-bottom: 20px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.questionnaire-section > header { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.questionnaire-section > header h2 { font-size: 1.25rem; }
.questionnaire-section > header .eyebrow { margin-bottom: 2px; }
.questionnaire-section-number { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 auto; border-radius: 13px; background: var(--lime-400); color: var(--forest-900); font-weight: 800; }
.questionnaire-section-note { margin-bottom: 18px; padding: 12px 14px; border-left: 3px solid var(--lime-400); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--surface-2); color: var(--ink-2); font-size: .92rem; line-height: 1.6; }
.questionnaire-question { min-width: 0; margin: 0; padding: 22px 0; border: 0; border-top: 1px solid var(--line); scroll-margin-top: 100px; }
.questionnaire-question legend { float: left; width: 100%; margin-bottom: 6px; font-size: 1rem; font-weight: 700; line-height: 1.5; }
.questionnaire-question legend + * { clear: both; }
.questionnaire-required { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: var(--pill); background: var(--amber-100); color: var(--amber-600); font-size: .72rem; font-weight: 800; vertical-align: middle; }
.questionnaire-hint, .questionnaire-condition { margin-bottom: 12px; color: var(--muted); font-size: .86rem; }
.questionnaire-condition { padding: 8px 12px; border-radius: var(--radius-sm); background: var(--surface-2); }
.questionnaire-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.questionnaire-option { display: flex; align-items: flex-start; gap: 12px; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--ink-2); font-size: .94rem; font-weight: 500; line-height: 1.45; cursor: pointer; }
.questionnaire-option input { margin-top: 1px; }
.questionnaire-option span { min-width: 0; overflow-wrap: anywhere; }
.questionnaire-option:has(input:checked) { border-color: #a9d36b; background: var(--lime-100); color: var(--ink); }
.questionnaire-option:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.questionnaire-score { max-width: 260px; }
.questionnaire-other { display: grid; gap: 6px; margin-top: 12px; padding: 14px; border-radius: var(--radius-sm); background: var(--surface-2); }
.questionnaire-clear { display: inline-flex; margin-top: 6px; padding: 6px 0; border: 0; background: none; color: var(--green-600); font-size: .86rem; font-weight: 700; text-decoration: underline; cursor: pointer; }
.questionnaire-selection-status { display: block; margin-top: 8px; color: var(--muted); }
.questionnaire-selection-status:empty { display: none; }
.questionnaire-question.has-error { border-top-color: #e6a3a3; }
.questionnaire-field-error { margin-top: 10px; color: var(--red-600); font-size: .88rem; font-weight: 650; }
.questionnaire-finish { display: grid; gap: 14px; padding: 24px; border: 1px solid #c9e27d; border-radius: var(--radius-lg); background: var(--lime-100); scroll-margin-top: 100px; }
.questionnaire-finish p { color: var(--ink-2); }
.questionnaire-finish .button { justify-self: start; }
.questionnaire-step-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin: 20px 0; }
.questionnaire-step-actions [data-step-next] { margin-left: auto; }
.questionnaire-answer-section { margin: 10px 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.questionnaire-answer-section summary { padding: 16px 20px; font-weight: 750; }
.questionnaire-answer-section summary > span { margin-right: 10px; color: var(--green-600); }
.questionnaire-answer-section dl { margin: 0; padding: 0 20px 10px; }
.questionnaire-answer-section dl > div { padding: 14px 0; border-top: 1px solid var(--line); }
.questionnaire-answer-section dt { margin-bottom: 4px; font-weight: 650; }
.questionnaire-answer-section dd { margin: 0; color: var(--ink-2); line-height: 1.6; overflow-wrap: anywhere; }
.questionnaire-answer-section dd ul { padding-left: 20px; }
.questionnaire-answer-other { margin-top: 8px; }

/* ==========================================================================
   Equipe / administração
   ========================================================================== */
.admin-metrics, .redemption-report-metrics, .partner-admin-metrics, .evidence-history-summary, .questionnaire-stats, .catalog-counts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.catalog-counts { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 0; }
.admin-metrics article, .redemption-report-metrics article, .partner-admin-metrics article, .evidence-history-summary article, .questionnaire-stats article, .catalog-counts article { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.redemption-report-metrics article, .partner-admin-metrics article, .evidence-history-summary article, .questionnaire-stats article, .catalog-counts article { display: grid; align-content: start; gap: 2px; }
.admin-metrics article > span { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 auto; border-radius: 13px; background: var(--surface-3); color: var(--forest-700); }
.admin-metrics article > div { display: grid; min-width: 0; }
.admin-metrics small, .redemption-report-metrics small, .partner-admin-metrics small { color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .06em; }
.admin-metrics strong, .redemption-report-metrics strong, .partner-admin-metrics strong, .evidence-history-summary strong, .questionnaire-stats strong, .catalog-counts strong { font-family: var(--display); font-size: 2rem; font-weight: 600; line-height: 1.1; }
.redemption-report-metrics span, .partner-admin-metrics span, .evidence-history-summary span, .questionnaire-stats span, .catalog-counts span { color: var(--muted); font-size: .84rem; }
.metric-alert, .redemption-report-metrics .is-pending { border-color: #f1d49a !important; background: var(--amber-100) !important; }
.metric-alert > span { background: #fff !important; color: var(--amber-600) !important; }
.redemption-report-metrics .is-completed { border-color: #b7dfc4; background: var(--green-100); }
.questionnaire-callout, .redemption-report-link { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; padding: 20px 22px; border: 1px solid #c9e27d; border-radius: var(--radius-lg); background: var(--lime-100); }
.redemption-report-link { margin: 24px 0 0; }
.questionnaire-callout > div, .redemption-report-link > div { flex: 1 1 280px; min-width: 0; }
.questionnaire-callout h2, .redemption-report-link h2 { margin-bottom: 4px; }
.questionnaire-callout p, .redemption-report-link p { color: var(--ink-2); font-size: .92rem; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; }
.quick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.quick-grid a { display: grid; gap: 2px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); color: var(--ink); }
.quick-grid a:hover { border-color: #b8dc86; background: var(--lime-100); text-decoration: none; }
.quick-grid a > span { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 8px; border-radius: 11px; background: var(--forest-900); color: var(--lime-400); }
.quick-grid a .app-icon { width: 18px; height: 18px; }
.quick-grid small { color: var(--muted); }
.compact-rank { display: flex; align-items: center; gap: 12px; padding: 10px 4px; }
.compact-rank + .compact-rank { border-top: 1px solid var(--line); }
.compact-rank > b { width: 28px; color: var(--muted); text-align: center; }
.compact-rank > span:nth-of-type(2) { flex: 1; min-width: 0; font-weight: 650; }
.compact-rank > strong { color: var(--green-600); }

.admin-split { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); align-items: start; gap: 20px; }
.admin-split.wide-form { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); }
.sticky-card { position: sticky; top: 24px; }
.admin-stack { display: grid; gap: 20px; }
.form-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.team-admin-table .table-head, .team-admin-table .table-row { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 150px); }
.admin-limit-badge { padding: 7px 14px; border-radius: var(--pill); background: var(--surface-3); color: var(--ink-2); font-size: .84rem; font-weight: 750; }
.points-fields { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
fieldset > legend + .form-grid { margin-top: 2px; }

.table-card { padding: 20px; }
.data-table { display: grid; }
.table-head, .table-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) minmax(0, .8fr); align-items: start; gap: 16px; }
.table-head { padding: 0 4px 10px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.table-row { padding: 14px 4px; border-bottom: 1px solid var(--line); }
.table-row:last-child { border-bottom: 0; }
.table-row > span { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.table-row small { color: var(--muted); }
.table-row > details { grid-column: 1 / -1; }
.user-access-actions { justify-items: start; gap: 8px !important; }
.participant-plan-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.participant-plan-form .button { grid-column: 1 / -1; justify-self: start; }
.participant-plan-form label { font-size: .8rem; }
.participant-plan-form input, .participant-plan-form select { min-height: 40px; padding-top: 8px; padding-bottom: 8px; font-size: .9rem; }
.admin-team-form { grid-template-columns: minmax(0, 1fr); }
.participant-password-reset { padding: 12px 14px; border-radius: var(--radius); background: var(--surface-2); }
.participant-password-reset > summary { display: inline-flex; align-items: center; gap: 8px; color: var(--green-600); font-size: .86rem; font-weight: 700; }
.participant-password-reset > summary .app-icon { width: 16px; height: 16px; }
.participant-password-reset[open] > summary { margin-bottom: 12px; }
.participant-email-edit, .participant-password-edit { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); align-items: end; gap: 10px; }
.participant-password-edit { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.participant-email-edit .button, .participant-password-edit .button { justify-self: start; }
.table-scroll, .weekly-table-scroll { max-width: 100%; overflow-x: auto; }
.table-scroll table, .weekly-table-scroll table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table-scroll th, .table-scroll td, .weekly-table-scroll th, .weekly-table-scroll td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table-scroll th, .weekly-table-scroll th { color: var(--muted); font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.table-scroll td small { display: block; color: var(--muted); }
.weekly-table-scroll td { white-space: nowrap; }
.weekly-report, .weekly-rule-note { margin-top: 24px; }
.weekly-report h2 { margin-bottom: 8px; }
.weekly-report p { margin-bottom: 8px; color: var(--ink-2); font-size: .92rem; }

.admin-card-list { display: grid; gap: 12px; }
.managed-card { display: grid; gap: 10px; }
.managed-card-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.managed-card-head > div { display: flex; flex-wrap: wrap; gap: 6px; }
.managed-card-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.managed-card > p { color: var(--ink-2); font-size: .92rem; }
.managed-card > small { color: var(--muted); }
.managed-card details { padding: 12px 14px; border-radius: var(--radius); background: var(--surface-2); font-size: .9rem; }
.managed-card details summary { color: var(--green-600); font-weight: 700; }
.managed-card details p { margin: 8px 0; color: var(--ink-2); }
.challenge-daily-hint { color: var(--muted); font-size: .88rem; }
.evidence-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.evidence-tags span { padding: 4px 10px; border-radius: var(--pill); background: var(--lime-100); color: #3f5f05; font-size: .76rem; font-weight: 800; }

.catalog-tabs { display: grid; gap: 14px; }
.tab-list { display: flex; gap: 4px; padding: 4px; overflow-x: auto; border-radius: var(--pill); background: var(--surface-3); width: fit-content; max-width: 100%; }
.tab-list button { flex: 0 0 auto; padding: 8px 18px; border: 0; border-radius: var(--pill); background: transparent; color: var(--ink-2); font-weight: 700; cursor: pointer; }
.tab-list button.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.tab-panel { display: none; max-width: 760px; }
.tab-panel.active { display: block; }
.catalog-overview { margin-top: 28px; }
.published-library { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.management-wide { grid-column: 1 / -1; }
.management-list { display: grid; }
.management-row { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.management-row.compact { grid-template-columns: 48px minmax(0, 1fr) auto; }
.management-row > div:nth-child(2) { display: grid; gap: 2px; min-width: 0; }
.management-row p { color: var(--ink-2); font-size: .88rem; overflow-wrap: anywhere; }
.management-row small { color: var(--muted); }
.management-thumb, .management-icon { width: 48px; height: 48px; border-radius: 13px; object-fit: cover; }
.management-row:not(.compact) .management-thumb, .management-row:not(.compact) .management-icon { width: 54px; height: 54px; }
.management-icon { display: grid; place-items: center; background: var(--surface-3); color: var(--forest-700); font-weight: 800; }
.partner-management-logo { object-fit: contain; background: #fff; border: 1px solid var(--line); }

.evidence-management { display: grid; gap: 16px; }
.evidence-team-filters { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--pill); background: var(--surface-3); width: fit-content; max-width: 100%; overflow-x: auto; }
.evidence-team-filters a { padding: 8px 16px; border-radius: var(--pill); color: var(--ink-2); font-size: .88rem; font-weight: 700; white-space: nowrap; }
.evidence-team-filters a:hover { text-decoration: none; background: rgba(255, 255, 255, .6); }
.evidence-team-filters a.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.evidence-history-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.evidence-filter-actions { display: flex; align-items: center; gap: 14px; align-self: end; }
.evidence-filter-help { color: var(--muted); font-size: .84rem; }
.evidence-history-summary { margin-bottom: 0; }
.evidence-history-heading { display: grid; gap: 2px; }
.evidence-history-heading p { color: var(--ink-2); font-size: .92rem; }
.evidence-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.evidence-review { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.evidence-review > img, .evidence-review > video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--surface-3); }
.evidence-review > video { object-fit: contain; background: #000; }
.evidence-placeholder { display: grid; place-items: center; aspect-ratio: 4 / 3; background: linear-gradient(145deg, var(--lime-100), var(--green-100)); color: var(--green-600); }
.evidence-placeholder .app-icon { width: 40px; height: 40px; }
.evidence-review-body { display: grid; gap: 8px; padding: 16px; }
.challenge-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.challenge-top time { color: var(--muted); font-size: .8rem; }
.evidence-review-body h2 { font-size: 1.02rem; }
.evidence-auto-note { color: var(--green-600); font-weight: 700; }
.evidence-participant-name { font-size: .92rem; }
.evidence-team-label { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .84rem; }
.evidence-team-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.evidence-team-label.is-green::before { background: var(--green-500); }
.evidence-team-label.is-blue::before { background: var(--blue-500); }
.evidence-review blockquote { margin: 0; padding: 10px 12px; border-left: 3px solid var(--lime-400); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--surface-2); color: var(--ink-2); font-size: .9rem; }
.evidence-review .muted { font-size: .84rem; }
.evidence-review-stamp { padding: 8px 10px; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--ink-2); font-size: .82rem; }
.evidence-history-links { display: flex; flex-wrap: wrap; gap: 12px; font-size: .84rem; font-weight: 700; }
.evidence-review-editor { margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--line); }
.evidence-review-editor summary { color: var(--green-600); font-size: .88rem; font-weight: 750; }
.review-form { display: grid; gap: 12px; margin-top: 12px; }
.review-status-help { color: var(--muted); font-size: .8rem; }
.review-form .button { justify-self: start; }
.evidence-empty { display: grid; justify-items: center; gap: 8px; grid-column: 1 / -1; padding: 36px; text-align: center; }
.evidence-empty p { color: var(--muted); }
.evidence-pagination, .questionnaire-pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 20px; color: var(--muted); font-size: .9rem; }

.health-participant-picker { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 18px; margin-bottom: 20px; }
.health-participant-picker p { color: var(--muted); font-size: .9rem; }
.health-participant-picker form { display: flex; align-items: flex-end; gap: 10px; }
.health-participant-picker label { flex: 1; }
.health-participant-picker label > span { font-size: .84rem; }
.health-step-number { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 auto; border-radius: 12px; background: var(--forest-900); color: var(--lime-400); font-weight: 800; }
.health-selection-empty { display: grid; justify-items: center; gap: 8px; padding: 40px 24px; text-align: center; }
.health-selection-empty > span { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--surface-3); color: var(--muted); }
.health-selection-empty p { max-width: 460px; color: var(--muted); }
.health-participant-summary { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 16px; }
.health-participant-identity { display: grid; gap: 2px; min-width: 0; }
.health-participant-identity small { color: var(--green-600); font-size: .72rem; font-weight: 800; letter-spacing: .08em; }
.health-participant-identity p { color: var(--muted); font-size: .9rem; }
.health-participant-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; grid-column: 1 / -1; margin: 0; }
.health-participant-facts div { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); }
.health-participant-facts dt { color: var(--muted); font-size: .74rem; font-weight: 700; }
.health-participant-facts dd { margin: 0; font-weight: 750; }
.health-participant-actions { display: flex; flex-wrap: wrap; gap: 8px; grid-column: 1 / -1; }
.health-entry-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; gap: 20px; margin-top: 24px; }
.health-entry-layout.is-single { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
.health-form-heading { display: flex; align-items: flex-start; gap: 14px; }
.health-form-heading p { color: var(--muted); font-size: .9rem; }
.health-metric-fields { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.health-exam-column { display: grid; gap: 16px; }
.health-exam-column form p { color: var(--muted); font-size: .9rem; }
.exam-request-item { display: grid; gap: 6px; padding: 12px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.exam-request-item small { color: var(--muted); font-weight: 700; }
.exam-request-item p { color: var(--ink-2); font-size: .9rem; }
.exam-request-item form { display: flex; flex-wrap: wrap; gap: 8px; }
.health-record-management { margin-top: 28px; }
.health-record-list { display: grid; gap: 14px; }
.health-record-admin > header { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.health-record-admin > header > div:nth-child(2) { display: grid; flex: 1; min-width: 140px; }
.health-record-admin > header small { color: var(--muted); }
.health-record-quick-values { display: flex; flex-wrap: wrap; gap: 8px; }
.health-record-quick-values span { display: grid; padding: 6px 12px; border-radius: var(--radius-sm); background: var(--surface-2); }
.health-record-quick-values small { font-size: .72rem; }
.health-record-editor { margin-top: 14px; padding: 12px 14px; border-radius: var(--radius); background: var(--surface-2); }
.health-record-editor > summary { display: inline-flex; align-items: center; gap: 8px; color: var(--green-600); font-weight: 750; font-size: .9rem; }
.health-record-editor > summary .app-icon { width: 16px; height: 16px; }
.health-record-editor form { display: grid; gap: 14px; margin-top: 14px; }
.health-edit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.health-edit-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.health-edit-actions small { color: var(--muted); }
.health-record-readonly { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 14px; }
.health-record-readonly span { display: grid; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); }
.health-record-readonly small { color: var(--muted); font-size: .74rem; }
.health-record-readonly p { grid-column: 1 / -1; color: var(--ink-2); }

.redemption-export-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.redemption-report-filters { margin-bottom: 20px; }
.redemption-filter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 14px; }
.redemption-people-report { margin-bottom: 20px; }
.redemption-people-table { display: grid; overflow-x: auto; }
.redemption-people-head, .redemption-person-row { display: grid; grid-template-columns: minmax(180px, 2fr) repeat(5, minmax(70px, .7fr)) minmax(110px, 1fr); align-items: center; gap: 10px; min-width: 760px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.redemption-people-head { color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.redemption-person-row > span:first-child { display: grid; }
.redemption-person-row small { color: var(--muted); }
.redemption-history-list { display: grid; }
.redemption-history-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto; align-items: center; gap: 10px 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.redemption-history-row > div { display: grid; min-width: 0; }
.redemption-history-row small { color: var(--muted); }
.redemption-decision-form, .redemption-processed-at { grid-column: 1 / -1; }
.redemption-decision-form { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 10px; }
.redemption-decision-form label { flex: 1 1 240px; font-size: .8rem; }
.redemption-decision-form > div { display: flex; gap: 8px; }

.meal-plan-admin { grid-template-columns: minmax(0, 280px) minmax(0, 1fr); }
.meal-plan-participant-list { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; padding: 16px; }
.meal-plan-participant-list h2 { margin-bottom: 10px; font-size: 1rem; }
.meal-plan-participant-list nav { display: grid; gap: 4px; }
.meal-plan-participant-list a { display: grid; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--ink); }
.meal-plan-participant-list a:hover { background: var(--surface-2); text-decoration: none; }
.meal-plan-participant-list a.is-active { background: var(--lime-100); }
.meal-plan-participant-list small { color: var(--muted); }
.meal-plan-workspace { display: grid; gap: 16px; min-width: 0; }
.meal-plan-list-item { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.meal-plan-list-item > div:first-child { display: grid; }
.meal-plan-list-item small { color: var(--muted); }
.meal-plan-list-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.meal-plan-section { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.meal-plan-section > summary { padding: 14px 16px; font-weight: 750; }
.meal-plan-section[open] > summary { border-bottom: 1px solid var(--line); }
.meal-plan-section-fields, .meal-plan-section > label { display: grid; gap: 14px; padding: 16px; }
.meal-plan-form > .button { justify-self: start; }

.registration-control { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px; }
.registration-control.is-open { border-color: #b7dfc4; background: linear-gradient(90deg, var(--green-100), var(--surface) 60%); }
.registration-control.is-closed { border-color: #efc6c6; background: linear-gradient(90deg, var(--red-100), var(--surface) 60%); }
.registration-state-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--surface); color: var(--green-600); box-shadow: var(--shadow-sm); }
.is-closed .registration-state-icon { color: var(--red-600); }
.registration-state-icon .app-icon { width: 26px; height: 26px; }
.registration-state-label { color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .08em; }
.registration-control h2 { margin: 2px 0 4px; }
.registration-control p { color: var(--ink-2); font-size: .92rem; }
.registration-close { background: var(--red-600); }
.registration-close:hover { background: #a82626; }

.card > progress { width: 100%; height: 10px; margin: 12px 0; accent-color: var(--green-600); }
.card[role="alert"] { border-color: #efc6c6; background: var(--red-100); color: #7d2020; }
.voucher-admin-preview { width: 100%; max-width: 320px; margin-bottom: 16px; border-radius: var(--radius); object-fit: cover; }
:where(section.card) > :where(form) { display: grid; gap: 14px; }
.auth-card[method] { max-width: 520px; }

.questionnaire-filters { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin: 20px 0; }
.questionnaire-filters label { flex: 1 1 200px; }
.questionnaire-people { display: grid; gap: 10px; }
.questionnaire-person { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.questionnaire-person h2 { font-size: 1rem; }
.questionnaire-person p { color: var(--muted); font-size: .88rem; }
.questionnaire-person small { color: var(--muted); }
.questionnaire-status { padding: 4px 10px; border-radius: var(--pill); background: var(--amber-100); color: var(--amber-600); font-size: .76rem; font-weight: 800; white-space: nowrap; }
.questionnaire-status.is-submitted { background: var(--green-100); color: #13693a; }
.narrow-form { max-width: 560px; }

/* ==========================================================================
   Páginas públicas
   ========================================================================== */
.guest-body { background: var(--forest-950); color: #fff; }
.guest-body main { min-height: calc(100vh - 160px); }
.button-ghost-light { background: transparent; border-color: rgba(255, 255, 255, .3); color: #fff; }
.button-ghost-light:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .5); }
.site-header { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px clamp(16px, 4vw, 48px); background: rgba(7, 23, 15, .82); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.site-brand { width: 104px; }
.site-brand img { width: 100%; height: auto; }
.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav-link { padding: 8px 12px; color: rgba(255, 255, 255, .75); font-size: .92rem; font-weight: 650; }
.site-nav-link:hover { color: #fff; text-decoration: none; }
.site-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; padding: 28px clamp(16px, 4vw, 48px); border-top: 1px solid rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .55); font-size: .86rem; }
.site-footer img { width: 72px; height: auto; opacity: .8; }
.site-footer p { flex: 1; }
.site-footer nav { display: flex; gap: 18px; }
.site-footer a { color: rgba(255, 255, 255, .75); }

.auth-visual-copy em { color: var(--lime-400); font-style: normal; }

/* ----- Entrar / cadastro ----- */
.auth-page { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); width: min(1100px, 100% - 32px); margin: clamp(20px, 4vw, 48px) auto; }
.auth-visual { position: relative; min-height: 520px; overflow: hidden; border-radius: var(--radius-xl); isolation: isolate; }
.auth-visual img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.auth-visual::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(7, 23, 15, .92)); }
.auth-visual-copy { position: absolute; right: 28px; bottom: 28px; left: 28px; }
.auth-visual-copy h1 { color: #fff; font-family: var(--display); font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 600; line-height: .98; text-transform: uppercase; letter-spacing: 0; }
.auth-visual-copy p { margin-top: 12px; color: rgba(255, 255, 255, .8); }
.auth-panel { display: grid; align-items: center; }
.auth-form { display: grid; gap: 16px; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-xl); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); }
.auth-form h2 { font-size: 1.6rem; }
.auth-form > .muted { margin-top: -10px; }
.password-field { display: flex; gap: 8px; margin-top: -10px; }
.password-field input { flex: 1; }
.password-field button { flex: 0 0 auto; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface-2); font-size: .86rem; font-weight: 700; cursor: pointer; }
.auth-switch { color: var(--muted); font-size: .92rem; text-align: center; }
.auth-switch a { font-weight: 750; }
.form-step { display: flex; align-items: center; gap: 10px; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.form-step:first-of-type { border-top: 0; padding-top: 0; }
.form-step > span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--forest-900); color: var(--lime-400); font-size: .84rem; font-weight: 800; }
.form-step small { margin-left: auto; color: var(--muted); }
.status-page { display: grid; justify-items: center; gap: 12px; width: min(560px, 100% - 32px); margin: clamp(40px, 10vh, 96px) auto; text-align: center; }
.status-page h1 { color: #fff; font-family: var(--display); font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 600; text-transform: uppercase; letter-spacing: 0; line-height: 1; }
.status-page > p { color: rgba(255, 255, 255, .72); font-size: 1.05rem; }
.status-page .button-row { justify-content: center; margin-top: 8px; }
.status-page-icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 24px; background: rgba(255, 255, 255, .08); color: var(--lime-400); }
.status-page-icon .app-icon { width: 34px; height: 34px; }
.status-page-icon.is-success { background: var(--lime-400); color: var(--forest-900); }
.status-page.is-inline h1 { color: var(--ink); font-family: var(--font); font-size: 1.6rem; font-weight: 800; text-transform: none; }
.status-page.is-inline > p { color: var(--muted); }
.status-page.is-inline .status-page-icon { background: var(--surface-3); color: var(--muted); }
.ticket-inline { justify-content: center; margin: 8px 0; padding: 16px 22px; border-radius: var(--radius-lg); background: rgba(255, 255, 255, .06); }
.ticket-inline dt { color: rgba(255, 255, 255, .55); }
.ticket-inline dd { color: #fff; }

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 1180px) {
    .home-grid { grid-template-columns: minmax(0, 1fr) 290px; }
    .feed-layout { grid-template-columns: minmax(0, 1fr) 280px; }
    .admin-metrics, .redemption-report-metrics, .partner-admin-metrics, .evidence-history-summary, .questionnaire-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .catalog-counts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .health-participant-picker { grid-template-columns: auto minmax(0, 1fr); }
    .health-participant-picker form { grid-column: 1 / -1; }
}

@media (max-width: 1024px) {
    .app-body { padding-left: 0; padding-top: var(--topbar); padding-bottom: calc(var(--bottombar) + env(safe-area-inset-bottom)); }
    .sidebar { display: none; }
    .topbar { position: fixed; inset: 0 0 auto; z-index: 40; display: flex; align-items: center; justify-content: space-between; height: var(--topbar); padding: 0 12px 0 16px; background: var(--forest-900); color: #fff; }
    .topbar-brand { width: 66px; }
    .topbar-brand img { width: 100%; height: auto; }
    .topbar-actions { display: flex; align-items: center; gap: 6px; }
    .topbar-button { position: relative; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; }
    .topbar-avatar { display: grid; padding: 3px; }
    .topbar .avatar { width: 36px; height: 36px; box-shadow: 0 0 0 2px var(--forest-900), 0 0 0 3px rgba(255, 255, 255, .3); }
    .bottom-nav { position: fixed; inset: auto 0 0; z-index: 40; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); height: calc(var(--bottombar) + env(safe-area-inset-bottom)); padding: 6px 6px env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: rgba(255, 255, 255, .96); backdrop-filter: blur(14px); }
    .bottom-nav a, .bottom-nav button { display: grid; justify-items: center; align-content: center; gap: 3px; padding: 4px 2px; border: 0; border-radius: 14px; background: transparent; color: var(--muted); font-size: .7rem; font-weight: 700; text-decoration: none; cursor: pointer; }
    .bottom-nav .app-icon { width: 22px; height: 22px; padding: 0; }
    .bottom-nav a.is-active, .bottom-nav button.is-active { color: var(--forest-900); }
    .bottom-nav a.is-active .app-icon, .bottom-nav button.is-active .app-icon { box-sizing: content-box; padding: 3px 14px; border-radius: var(--pill); background: var(--lime-400); }
    .app-main { padding: 20px 20px 40px; }
    .toast { top: calc(var(--topbar) + 10px); right: 12px; }
    .home-side, .feed-side, .sticky-card, .meal-plan-participant-list { position: static; }
    .feed-layout { grid-template-columns: minmax(0, 1fr); max-width: 640px; margin: 0 auto; }
    .feed-side { display: none; }
    .home-grid { display: flex; flex-direction: column; align-items: stretch; gap: 18px; }
    .home-main, .home-side { display: contents; }
    .home-main > .panel:first-child { order: 1; }
    .home-side .water-card { order: 2; }
    .home-main > .stories { order: 3; }
    .home-main > .composer { order: 4; }
    .home-main > .feed-heading { order: 5; }
    .home-main > .post-feed { order: 6; }
    .home-side .shortcut-list { order: 7; }
    .home-side .notice-board { order: 8; }
    .challenge-layout, .admin-split, .admin-split.wide-form, .meal-plan-admin, .health-entry-layout, .admin-grid { grid-template-columns: minmax(0, 1fr); }
    .published-library { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
    h1 { font-size: 1.6rem; }
    .app-main { padding: 16px 16px 32px; }
    .page-header { margin-bottom: 18px; }
    .page-header h1 + p { font-size: .94rem; }
    .card, .panel { padding: 18px; border-radius: var(--radius); }
    .home-hero, .feature-hero, .challenge-hero, .club-hero, .team-battle { padding: 22px 18px; border-radius: var(--radius-lg); }
    .home-hero-top { flex-direction: column; }
    .home-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 18px; }
    .home-stats div { padding: 12px 14px; }
    .home-stats dd { font-size: 1.6rem; }
    .water-card { padding: 16px; }
    .water-card .water-top { flex-wrap: wrap; }
    .water-toggle { margin-top: 12px; }
    .water-card.has-goal .water-status { display: none; }
    .feature-hero-icon { display: none; }
    .stories { margin: 0 -16px; padding: 12px 16px; border-width: 1px 0; border-radius: 0; }
    .post { margin: 0 -16px; border-width: 1px 0; border-radius: 0; }
    .composer-bar, .composer .form-hint, .composer .media-preview { padding-left: 0; }
    .composer-attach span { display: none; }
    .composer-attach { padding: 9px; }
    .form-grid, .field-grid.two, .participant-plan-form { grid-template-columns: minmax(0, 1fr); }
    .challenge-grid, .benefit-grid, .content-grid { grid-template-columns: minmax(0, 1fr); }
    .challenge-facts { grid-template-columns: minmax(0, 1fr); }
    .photo-sources { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .team-battle-side strong { font-size: 2rem; }
    .team-battle-vs { width: 34px; height: 34px; }
    .podium { gap: 8px; }
    .podium-place { padding: 18px 6px 14px; }
    .podium-place .avatar-xl { width: 56px; height: 56px; }
    .club-balance { justify-items: start; width: 100%; }
    .plan-grid { grid-template-columns: minmax(0, 1fr); }
    .plan-summary .button-row { width: 100%; }
    .plan-summary .button-row .button { flex: 1; }
    .anchor-nav { top: calc(var(--topbar) + 8px); }
    .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .metric-card { padding: 14px; }
    .metric-card strong { font-size: 1.45rem; }
    .measure-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .result-record > :not(summary) { margin-right: 16px; margin-left: 16px; }
    .questionnaire-toolbar { top: calc(var(--topbar) + 8px); }
    .questionnaire-section { padding: 18px 16px; }
    .questionnaire-options { grid-template-columns: minmax(0, 1fr); }
    .menu-sheet-grid a { flex-direction: column; align-items: flex-start; gap: 8px; }
    .menu-sheet-grid a > span:last-child { width: 100%; }
    .sheet { width: 100vw; max-width: 100vw; max-height: 90vh; margin: auto 0 0; border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
    .sheet[open] { animation-name: sheet-up; }
    .story-viewer { width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
    .admin-metrics, .redemption-report-metrics, .partner-admin-metrics, .evidence-history-summary, .questionnaire-stats { gap: 8px; }
    .admin-metrics article { padding: 14px; gap: 10px; }
    .admin-metrics article > span { width: 36px; height: 36px; }
    .admin-metrics strong, .redemption-report-metrics strong, .partner-admin-metrics strong, .evidence-history-summary strong, .questionnaire-stats strong, .catalog-counts strong { font-size: 1.6rem; }
    .catalog-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .table-head { display: none; }
    .table-row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .management-row, .management-row.compact { grid-template-columns: 44px minmax(0, 1fr); }
    .management-row > .status, .management-row > form { grid-column: 2; justify-self: start; }
    .evidence-history-filters, .redemption-filter-grid { grid-template-columns: minmax(0, 1fr); }
    .evidence-admin-grid { grid-template-columns: minmax(0, 1fr); }
    .health-participant-picker { grid-template-columns: minmax(0, 1fr); }
    .health-participant-picker form { flex-direction: column; align-items: stretch; }
    .health-participant-summary { grid-template-columns: auto minmax(0, 1fr); }
    .registration-control { grid-template-columns: minmax(0, 1fr); }
    .redemption-history-row { grid-template-columns: minmax(0, 1fr); }
    .questionnaire-person { grid-template-columns: minmax(0, 1fr); justify-items: start; }
    .page-header .button, .redemption-export-actions { width: 100%; }
    .redemption-export-actions .button { flex: 1; }
    .site-nav-link { display: none; }
    .site-brand { width: 84px; }
    .auth-page { grid-template-columns: minmax(0, 1fr); width: 100%; margin: 0; gap: 0; }
    .auth-visual { min-height: 230px; border-radius: 0; }
    .auth-visual-copy { right: 20px; bottom: 34px; left: 20px; }
    .auth-visual-copy p { display: none; }
    .auth-form { margin-top: -22px; border-radius: var(--radius-xl) var(--radius-xl) 0 0; box-shadow: none; }
    .guest-body.route-login .site-footer, .guest-body.route-register .site-footer { display: none; }
    .guest-body.route-login main, .guest-body.route-register main { background: var(--surface); }
}
@keyframes sheet-up { from { transform: translateY(40px); opacity: .6; } }

/* ----- Destaque de Nutrição no Início ----- */
.nutri-spotlight { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 24px; margin-top: 18px; padding: 26px 28px; overflow: hidden; border-radius: var(--radius-xl); background: linear-gradient(135deg, #1c7a43, #27a55c 55%, #7cc24a); color: #fff; isolation: isolate; }
.nutri-spotlight::before { content: ""; position: absolute; top: -90px; right: -60px; z-index: -1; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(198, 242, 78, .45), transparent 65%); }
.nutri-spotlight::after { content: ""; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(115deg, transparent 0 40px, rgba(255, 255, 255, .05) 40px 42px); }
.nutri-kicker { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--pill); background: rgba(255, 255, 255, .16); font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.nutri-kicker .app-icon { width: 15px; height: 15px; }
.nutri-spotlight h2 { margin: 12px 0 8px; color: #fff; font-family: var(--display); font-size: clamp(1.8rem, 2.4vw + 1rem, 2.6rem); font-weight: 600; line-height: 1.02; text-transform: uppercase; letter-spacing: 0; }
.nutri-spotlight h2 em { color: var(--lime-400); font-style: normal; }
.nutri-spotlight-copy > p { max-width: 420px; color: rgba(255, 255, 255, .88); }
.nutri-spotlight .button-row { margin-top: 18px; }
.nutri-spotlight-list { display: grid; gap: 10px; }
.nutri-card { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 10px; border-radius: var(--radius); background: rgba(255, 255, 255, .96); color: var(--ink); box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .5); transition: transform .2s cubic-bezier(.3, 1.4, .5, 1); }
.nutri-card:hover { transform: translateX(4px); text-decoration: none; }
.nutri-card img, .nutri-card-icon { width: 58px; height: 58px; flex: 0 0 auto; border-radius: 13px; object-fit: cover; }
.nutri-card-icon { display: grid; place-items: center; background: var(--lime-100); color: var(--green-600); }
.nutri-card-copy { display: grid; flex: 1; min-width: 0; }
.nutri-card-copy small { color: var(--green-600); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.nutri-card-copy strong { overflow: hidden; font-size: .95rem; text-overflow: ellipsis; white-space: nowrap; }
.nutri-card > .app-icon { width: 18px; height: 18px; color: var(--muted); }
.nutri-spotlight-empty { justify-items: center; padding: 24px; border-radius: var(--radius); background: rgba(255, 255, 255, .12); text-align: center; }
.nutri-spotlight-empty .app-icon { width: 34px; height: 34px; }
@media (max-width: 760px) {
    .nutri-spotlight { grid-template-columns: minmax(0, 1fr); padding: 22px 18px; border-radius: var(--radius-lg); }
    .nutri-spotlight .button-row .button { flex: 1 1 auto; }
    .bottom-nav a, .bottom-nav button { font-size: .66rem; }
}