:root {
    --bg: #08090b;
    --bg-soft: #0d0f12;
    --panel: #111318;
    --panel-2: #16191e;
    --panel-3: #1c2026;
    --border: #272b32;
    --border-strong: #373c45;
    --text: #f5f6f7;
    --text-soft: #c3c7cd;
    --muted: #858b95;
    --red: #ed1c24;
    --red-dark: #b90f16;
    --red-soft: rgba(237, 28, 36, .14);
    --green: #27c978;
    --green-soft: rgba(39, 201, 120, .13);
    --amber: #f0a21b;
    --amber-soft: rgba(240, 162, 27, .13);
    --blue: #5499ff;
    --blue-soft: rgba(84, 153, 255, .13);
    --danger: #ff5a61;
    --sidebar: 224px;
    --topbar: 60px;
    --settings-area: 232px;
    --demo-banner: 0px;
    --radius-sm: 7px;
    --radius: 11px;
    --radius-lg: 16px;
    --shadow: 0 18px 50px rgba(0, 0, 0, .3);
    --focus: 0 0 0 3px rgba(237, 28, 36, .28);
    font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color-scheme: dark;
}

/* Lista de espera e relatório compartilhado */
.waiting-list-workspace{display:grid;gap:18px}.waiting-list-filter-grid{display:grid;grid-template-columns:minmax(260px,2fr) repeat(3,minmax(150px,1fr));gap:14px;align-items:end}.waiting-list-filter-grid__search{grid-column:span 2}.waiting-list-filter-grid__actions{display:flex;gap:10px;align-items:center}.waiting-list-summary{display:flex;gap:12px;align-items:stretch;overflow-x:auto;padding-bottom:2px}.waiting-list-summary__total,.waiting-list-summary__chip{border:1px solid var(--border);background:var(--panel);border-radius:12px;padding:14px 16px;display:flex;gap:12px;align-items:center;white-space:nowrap}.waiting-list-summary__total{border-left:4px solid var(--danger);min-width:180px;justify-content:space-between}.waiting-list-summary__total span,.waiting-list-summary__chip span{color:var(--muted);font-size:.78rem}.waiting-list-summary__total strong{font-size:1.65rem;color:var(--text)}.waiting-list-summary__segments{display:flex;gap:10px}.waiting-list-summary__chip strong{color:var(--danger);font-size:1rem}.waiting-list-table td strong,.waiting-list-table td small{display:block}.waiting-list-table td{min-width:120px}.waiting-list-table td:first-child{min-width:190px}.waiting-list-table td:nth-child(2){min-width:170px}.waiting-list-table td:last-child{min-width:120px}.button--compact{padding:8px 10px;font-size:.76rem}.waiting-list-results .panel__header{align-items:center}
@media (max-width:1200px){.waiting-list-filter-grid{grid-template-columns:repeat(2,minmax(180px,1fr))}.waiting-list-filter-grid__search{grid-column:span 2}}
@media (max-width:720px){.waiting-list-filter-grid{grid-template-columns:1fr}.waiting-list-filter-grid__search{grid-column:auto}.waiting-list-filter-grid__actions{flex-wrap:wrap}.waiting-list-summary{display:grid}.waiting-list-summary__segments{overflow-x:auto}}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
.interest-correction-workspace { width: min(100%, 760px); margin-inline: auto; }
.interest-correction-workspace .panel__footer { justify-content: flex-end; }
.scheduling-correction-workspace { width: min(100%, 1040px); margin-inline: auto; display: grid; gap: 18px; }
.scheduling-correction-workspace .panel { overflow: hidden; }
.scheduling-correction-workspace .panel__footer { justify-content: flex-end; }
.scheduling-correction-search-grid { display: grid; grid-template-columns: minmax(280px, 2fr) minmax(170px, 1fr) minmax(190px, 1fr) 150px; gap: 12px; align-items: end; }
.scheduling-correction-search-action { display: flex; align-items: flex-end; }
.scheduling-correction-search-action .button { width: 100%; }
.scheduling-correction-results { display: grid; gap: 10px; padding: 0 18px 18px; }
.scheduling-correction-empty { min-height: 82px; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 18px; color: var(--muted); background: var(--panel-2); border: 1px dashed var(--border); border-radius: var(--radius); text-align: left; }
.scheduling-correction-empty .icon { width: 24px; height: 24px; }
.scheduling-correction-empty strong { display: block; color: var(--text); }
.scheduling-correction-empty p { margin: 2px 0 0; }
.scheduling-correction-result { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 15px 16px; background: var(--panel-2); border: 1px solid var(--border); border-radius: var(--radius); }
.scheduling-correction-result__name { display: block; margin-bottom: 7px; font-size: 14px; }
.scheduling-correction-result__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 12px; }
.scheduling-correction-result__meta span { display: inline-flex; align-items: center; gap: 5px; }
.scheduling-correction-result__meta .icon { width: 14px; height: 14px; }
@media (max-width: 960px) {
    .scheduling-correction-search-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .scheduling-correction-search-grid__query { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
    .scheduling-correction-search-grid { grid-template-columns: 1fr; }
    .scheduling-correction-search-grid__query { grid-column: auto; }
    .scheduling-correction-result { grid-template-columns: 1fr; }
    .scheduling-correction-result .button { width: 100%; }
}
html { min-width: 320px; background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--bg); font-size: 14px; line-height: 1.5; }
body[data-demo-mode="true"] { --demo-banner: 30px; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { color: inherit; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

:focus-visible { outline: none; box-shadow: var(--focus); }
.skip-link { position: fixed; z-index: 999; left: 16px; top: -60px; padding: 10px 14px; background: #fff; color: #111; border-radius: 6px; }
.skip-link:focus { top: calc(var(--demo-banner) + 8px); }
.demo-banner { position: fixed; z-index: 100; inset: 0 0 auto; min-height: var(--demo-banner); display: flex; align-items: center; justify-content: center; gap: 8px; padding: 5px 12px; color: #fff; background: linear-gradient(90deg, #780b10, #b80f16 50%, #780b10); border-bottom: 1px solid rgba(255,89,95,.55); box-shadow: 0 5px 18px rgba(0,0,0,.28); font-size: 9px; font-weight: 900; letter-spacing: .07em; line-height: 1.2; text-align: center; }
.demo-banner span { color: #ff9da1; }
.icon { width: 18px; height: 18px; flex: 0 0 auto; }
.icon-button { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; color: var(--text-soft); background: transparent; border: 1px solid transparent; border-radius: 9px; cursor: pointer; }
.icon-button:hover { color: var(--text); background: var(--panel-3); border-color: var(--border); }

.app-shell { min-height: 100vh; }
.app-shell--settings > .sidebar[hidden] { display: none; }
.app-shell--settings > .app-main { margin-left: 0; }
.app-shell--settings .topbar__menu { display: none; }
.settings-area__brand { margin: -20px -12px 16px; flex: 0 0 auto; }
.settings-area__account { margin: 16px -12px -20px; }
.settings-area__account .sidebar__account-actions { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 901px) {
    .app-shell--settings { --settings-area: var(--sidebar); }
    .app-shell--settings .settings-area { display: flex; flex-direction: column; overflow: hidden; }
    .app-shell--settings .settings-area__header,
    .app-shell--settings .settings-area__search { flex: 0 0 auto; }
    .app-shell--settings .settings-area__navigation { flex: 1; min-height: 0; overflow-y: auto; align-content: start; }
    .app-shell--settings .settings-area__account { flex: 0 0 auto; margin-top: 12px; }
}
@media (max-width: 900px) {
    .settings-area__brand { margin: -14px -15px 12px; }
    .settings-area__account { margin: 14px -15px -12px; }
}
.sidebar { position: fixed; inset: var(--demo-banner) auto 0 0; z-index: 40; width: var(--sidebar); display: flex; flex-direction: column; overflow: hidden; background: radial-gradient(circle at 0 18%, rgba(237,28,36,.085), transparent 31%), linear-gradient(180deg, #0b0d10, #07090b 72%); border-right: 1px solid #262b32; box-shadow: 18px 0 50px rgba(0,0,0,.16); }
.sidebar::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 2px; background: linear-gradient(180deg, transparent 4%, rgba(237,28,36,.82) 24%, rgba(237,28,36,.12) 67%, transparent 96%); pointer-events: none; }
.sidebar__brand { position: relative; height: var(--topbar); display: flex; align-items: center; padding: 0 14px; background: rgba(5,7,9,.52); border-bottom: 1px solid #252a31; }
.brand { min-width: 0; display: flex; flex: 1; align-items: center; gap: 9px; font-size: 11px; font-weight: 800; letter-spacing: .025em; text-transform: uppercase; }
.brand img { width: 75px; height: auto; flex: 0 0 auto; object-fit: contain; }
.brand span { min-width: 0; overflow: hidden; padding-left: 9px; border-left: 1px solid var(--border-strong); text-overflow: ellipsis; white-space: nowrap; }
.sidebar__close { display: none; margin-left: auto; }
.sidebar__nav { position: relative; flex: 1; padding: 15px 10px 18px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #30353d transparent; }
.sidebar__nav-heading { display: flex; align-items: end; justify-content: space-between; gap: 10px; padding: 0 9px 10px; }
.sidebar__nav-heading small { color: #7f8792; font-size: 10px; font-weight: 700; letter-spacing: .035em; }
.sidebar__eyebrow { display: block; padding: 0; color: #929aa5; font-size: 10px; font-weight: 850; letter-spacing: .17em; text-transform: uppercase; }
.nav-link { position: relative; display: flex; align-items: center; gap: 10px; min-height: 43px; margin: 3px 0; padding: 0 10px; color: #a4abb5; font-size: 11px; font-weight: 700; border: 1px solid transparent; border-radius: 8px; transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease; }
.nav-link > .icon { width: 29px; height: 29px; flex: 0 0 auto; padding: 6px; color: #858d98; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.045); border-radius: 7px; transition: color .18s ease, background .18s ease, border-color .18s ease; }
.nav-link::before { content: ""; position: absolute; left: -10px; top: 6px; bottom: 6px; width: 3px; background: var(--red); border-radius: 0 4px 4px 0; opacity: 0; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,.045); border-color: rgba(255,255,255,.055); transform: translateX(2px); }
.nav-link:hover > .icon { color: #f4f5f6; background: rgba(255,255,255,.06); }
.nav-link.is-active { color: #fff; background: linear-gradient(100deg, rgba(186,16,23,.48), rgba(237,28,36,.1) 78%); border-color: rgba(255,68,76,.18); box-shadow: inset 0 1px rgba(255,255,255,.025), 0 8px 18px rgba(0,0,0,.1); }
.nav-link.is-active::before { opacity: 1; }
.nav-link.is-active > .icon { color: #fff; background: rgba(237,28,36,.2); border-color: rgba(255,76,83,.18); }
.sidebar__footer { position: relative; padding: 11px 12px 13px; color: #6f747d; background: linear-gradient(180deg, rgba(15,18,22,.9), rgba(7,9,11,.98)); border-top: 1px solid #252a31; }
.sidebar__profile { min-width: 0; display: flex; align-items: center; gap: 9px; padding: 7px 5px 10px; }
.avatar--sidebar { width: 30px; height: 30px; font-size: 9px; }
.sidebar__profile-copy { min-width: 0; display: block; }
.sidebar__profile-copy strong, .sidebar__profile-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar__profile-copy strong { color: var(--text-soft); font-size: 10px; }
.sidebar__profile-copy small { color: var(--muted); font-size: 9px; }
.sidebar__profile-tools { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; }
.sidebar__profile-tools .icon-button { position: relative; width: 32px; height: 32px; color: #aeb5bf; background: rgba(255,255,255,.035); border-color: rgba(255,255,255,.08); border-radius: 8px; }
.sidebar__profile-tools .icon-button:hover { color: #fff; background: rgba(255,255,255,.085); border-color: #454c56; transform: translateY(-1px); }
.sidebar__profile-tools .icon { width: 15px; height: 15px; }
.sidebar__profile-tools .notification-button__dot { right: 5px; top: 5px; }
.sidebar__account-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.sidebar__account-actions form { margin: 0; }
.sidebar__account-actions a, .sidebar__account-actions button { width: 100%; min-height: 34px; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 8px; color: #969da7; background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.07); border-radius: 7px; font-size: 9px; font-weight: 700; cursor: pointer; transition: color .18s ease, background .18s ease, border-color .18s ease; }
.sidebar__account-actions a:hover { color: #fff; background: rgba(255,255,255,.055); border-color: #424852; }
.sidebar__account-actions button:hover { color: #fff; background: rgba(237,28,36,.14); border-color: rgba(237,28,36,.38); }
.sidebar__account-actions .icon { width: 13px; height: 13px; }
.sidebar-backdrop { display: none; }

.app-main { min-width: 0; min-height: 100vh; margin-left: var(--sidebar); padding-top: var(--demo-banner); background: radial-gradient(circle at 92% 0%, rgba(42,87,123,.08), transparent 32%), var(--bg-soft); }
.topbar { position: sticky; top: var(--demo-banner); z-index: 30; height: var(--topbar); display: flex; align-items: center; padding: 0 20px; background: rgba(10, 12, 15, .94); border-bottom: 1px solid var(--border); box-shadow: 0 8px 24px rgba(0,0,0,.12); backdrop-filter: blur(14px); }
.topbar__menu { display: none; margin-right: 10px; }
.topbar__context { min-width: 0; display: flex; align-items: center; gap: 10px; }
.topbar__marker { width: 3px; height: 30px; flex: 0 0 auto; background: linear-gradient(180deg, #ff4148, #a90c13); border-radius: 999px; box-shadow: 0 0 14px rgba(237,28,36,.3); }
.topbar__context-copy { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.topbar__context strong { overflow: hidden; font-size: 13px; letter-spacing: -.01em; text-overflow: ellipsis; white-space: nowrap; }
.topbar__eyebrow { color: var(--muted); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.topbar__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.notification-button { position: relative; }
.notification-button__dot { position: absolute; right: 9px; top: 8px; width: 7px; height: 7px; background: var(--red); border: 2px solid #0b0c0f; border-radius: 50%; }
.avatar { width: 33px; height: 33px; display: grid; place-items: center; background: linear-gradient(135deg, var(--red), #7f080e); color: #fff; font-size: 10px; font-weight: 800; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; }

.app-content { min-width: 0; }
.app-content--settings { min-height: calc(100vh - var(--topbar) - var(--demo-banner)); display: grid; grid-template-columns: var(--settings-area) minmax(0, 1fr); align-items: start; }
.settings-area { position: sticky; top: calc(var(--topbar) + var(--demo-banner)); height: calc(100vh - var(--topbar) - var(--demo-banner)); min-width: 0; padding: 20px 12px; overflow-y: auto; background: linear-gradient(180deg, rgba(17,21,26,.98), rgba(12,15,19,.98)); border-right: 1px solid var(--border); scrollbar-width: thin; scrollbar-color: #343a43 transparent; }
.settings-area__header { display: grid; gap: 2px; margin: 0 8px 14px; }
.settings-area__header span { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.settings-area__header strong { font-size: 15px; letter-spacing: -.02em; }
.settings-area__search { position: relative; display: block; margin-bottom: 15px; }
.settings-area__search .icon { position: absolute; left: 11px; top: 50%; width: 14px; color: var(--muted); transform: translateY(-50%); pointer-events: none; }
.settings-area__search input { width: 100%; min-height: 38px; padding: 8px 10px 8px 34px; color: var(--text); background: #0b0e12; border: 1px solid var(--border-strong); border-radius: 7px; outline: 0; font-size: 10px; }
.settings-area__search input::placeholder { color: #626975; }
.settings-area__search input:hover { border-color: #4a515c; }
.settings-area__search input:focus { border-color: var(--red); box-shadow: var(--focus); }
.settings-area__navigation { display: grid; gap: 3px; }
.settings-area__section { display: block; margin: 13px 9px 5px; color: #616873; font-size: 8px; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.settings-area__section:first-child { margin-top: 0; }
.settings-area__link { position: relative; min-width: 0; min-height: 40px; display: flex; align-items: center; gap: 9px; padding: 7px 9px; color: #abb1ba; border: 1px solid transparent; border-radius: 7px; transition: background .16s ease, border-color .16s ease, color .16s ease; }
.settings-area__link[hidden] { display: none; }
.settings-area__link > .icon { width: 15px; height: 15px; color: #858c96; }
.settings-area__link-copy { min-width: 0; display: block; flex: 1; }
.settings-area__link-copy strong, .settings-area__link-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.settings-area__link-copy strong { font-size: 10px; }
.settings-area__link-copy small { margin-top: 1px; color: var(--muted); font-size: 8px; }
.settings-area__link:hover { color: #fff; background: rgba(255,255,255,.035); border-color: var(--border); }
.settings-area__link.is-active { color: #fff; background: linear-gradient(90deg, rgba(237,28,36,.72), rgba(185,15,22,.5)); border-color: rgba(255,74,81,.28); box-shadow: inset 3px 0 0 #ff353d; }
.settings-area__link.is-active > .icon { color: #fff; }
.settings-area__link.is-active .settings-area__link-copy small { color: rgba(255,255,255,.72); }
.settings-area__lock { display: grid; place-items: center; color: var(--muted); }
.settings-area__lock .icon { width: 12px; height: 12px; }
.settings-area__content { min-width: 0; }
.page { width: min(1500px, 100%); min-height: calc(100vh - var(--topbar) - var(--demo-banner)); margin: 0 auto; padding: 26px 28px 58px; }
.page--settings-area { width: 100%; max-width: 1280px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.page-heading__kicker { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.page-heading__kicker span { width: 3px; height: 13px; background: var(--red); border-radius: 2px; }
.page-heading h1 { margin: 0; font-size: clamp(24px, 3vw, 32px); line-height: 1.16; letter-spacing: -.035em; }
.page-heading p { max-width: 720px; margin: 7px 0 0; color: var(--muted); }
.page-heading__actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 15px; color: #fff; background: var(--panel-3); border: 1px solid var(--border-strong); border-radius: 7px; font-size: 12px; font-weight: 800; letter-spacing: .02em; cursor: pointer; transition: .16s ease; }
.button:hover { transform: translateY(-1px); background: #252a31; border-color: #4c535e; }
.button--primary { background: var(--red); border-color: var(--red); }
.button--primary:hover { background: #ff252d; border-color: #ff252d; }
.button--confirm { color: #fff; background: #2563eb; border-color: #3b82f6; }
.button--confirm:hover { color: #fff; background: #1d4ed8; border-color: #60a5fa; }
.button--history { color: #fff; background: #2563eb; border-color: #3b82f6; }
.button--history:hover { background: #1d4ed8; border-color: #60a5fa; }
.button--danger { color: #ff8d92; background: var(--red-soft); border-color: rgba(237,28,36,.35); }
.button--ghost { background: transparent; }
.button--danger { color: #ff858a; background: var(--red-soft); border-color: rgba(237,28,36,.35); }
.button--danger:hover { color: #fff; background: var(--red); border-color: var(--red); }
.button--warning { color: #211500; background: #f5a623; border-color: #f5a623; }
.button--warning:hover { color: #15100a; background: #ffc14a; border-color: #ffc14a; }
.button--small { min-height: 32px; padding: 0 10px; font-size: 11px; }
.button .icon { width: 16px; height: 16px; }
.button[disabled] { opacity: .5; pointer-events: none; }

.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.metric-card { position: relative; min-height: 118px; padding: 18px; overflow: hidden; background: linear-gradient(145deg, #15181d, #101216); border: 1px solid var(--border); border-radius: var(--radius); }
.metric-card::after { content: ""; position: absolute; inset: auto 0 0; height: 2px; background: var(--red); opacity: .75; }
.metric-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.metric-card__icon { width: 34px; height: 34px; display: grid; place-items: center; color: var(--red); background: var(--red-soft); border: 1px solid rgba(237,28,36,.18); border-radius: 8px; }
.metric-card strong { display: block; margin-top: 10px; font-size: 29px; line-height: 1; letter-spacing: -.04em; }
.metric-card small { display: block; margin-top: 7px; color: var(--muted); }
.metric-card small b { color: var(--green); }
.metric-card--action { width: 100%; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color .18s ease, transform .18s ease, background .18s ease; }
.metric-card--action:hover { transform: translateY(-2px); border-color: rgba(237,28,36,.52); background: linear-gradient(145deg, #191b20, #121419); }
.metric-card--action:focus-visible { outline: 3px solid rgba(75,145,255,.45); outline-offset: 3px; }
.metric-card--action[aria-pressed="true"] { border-color: rgba(237,28,36,.72); background: linear-gradient(145deg, rgba(104,17,22,.5), #121418); box-shadow: 0 12px 30px rgba(0,0,0,.22); }
.metric-card--action[aria-pressed="true"]::after { height: 3px; opacity: 1; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(270px, .75fr); gap: 18px; align-items: start; }
.content-grid--equal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.content-grid--wide-aside { grid-template-columns: minmax(0, 1.3fr) minmax(330px, .8fr); }
.candidate-create-layout { grid-template-columns: minmax(0, 1fr); width: 100%; }
.candidate-create-layout > aside { display: none; }
@media (min-width: 1280px) and (min-height: 900px) {
    .page:has(.candidate-create-layout.is-waiting-list-mode) { width: 100%; max-width: none; padding-inline: 10px; }
    .page:has(.candidate-create-layout.is-waiting-list-mode) .exam-workflow { margin-inline: 0; }
    .candidate-create-layout.is-waiting-list-mode > .panel > .panel__header { padding-block: 10px; }
    .candidate-create-layout.is-waiting-list-mode > .panel > .panel__header p { display: none; }
    .candidate-create-layout.is-waiting-list-mode > .panel > .panel__body {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "kind kind"
            "search search"
            "person academic";
        gap: 10px 16px;
        padding: 10px 16px;
    }
    .candidate-create-layout.is-waiting-list-mode .candidate-kind-selector { grid-area: kind; }
    .candidate-create-layout.is-waiting-list-mode .candidate-search-section { grid-area: search; }
    .candidate-create-layout.is-waiting-list-mode .candidate-person-section { grid-area: person; }
    .candidate-create-layout.is-waiting-list-mode .candidate-academic-column {
        grid-area: academic;
        display: grid;
        align-content: start;
        gap: 10px;
        min-width: 0;
    }
    .candidate-create-layout.is-waiting-list-mode .candidate-kind-selector {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        justify-self: start;
        min-height: 36px;
    }
    .candidate-create-layout.is-waiting-list-mode .candidate-kind-alert { align-items: center; padding: 8px 11px; }
    .candidate-create-layout.is-waiting-list-mode .candidate-kind-alert > .icon,
    .candidate-create-layout.is-waiting-list-mode .candidate-kind-alert p { display: none; }
    .candidate-create-layout.is-waiting-list-mode .candidate-kind-alert > div { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
    .candidate-create-layout.is-waiting-list-mode .candidate-kind-switch { margin-top: 0; }
    .candidate-create-layout.is-waiting-list-mode .candidate-kind-switch .button { min-height: 32px; padding: 5px 10px; }
    .candidate-create-layout.is-waiting-list-mode .form-section { min-width: 0; margin: 0; padding: 0; border: 0; }
    .candidate-create-layout.is-waiting-list-mode .candidate-person-section,
    .candidate-create-layout.is-waiting-list-mode .candidate-interest-section,
    .candidate-create-layout.is-waiting-list-mode .candidate-registration-section { align-self: start; padding: 10px; border: 1px solid var(--border); border-radius: 9px; }
    .candidate-create-layout.is-waiting-list-mode .form-section__heading { margin-bottom: 7px; }
    .candidate-create-layout.is-waiting-list-mode .form-section__heading p,
    .candidate-create-layout.is-waiting-list-mode .field-help { display: none; }
    .candidate-create-layout.is-waiting-list-mode .form-grid { gap: 7px 9px; }
    .candidate-create-layout.is-waiting-list-mode .field { gap: 3px; }
    .candidate-create-layout.is-waiting-list-mode .form-section__heading h2 { font-size: 17px; }
    .candidate-create-layout.is-waiting-list-mode .field label { font-size: 12px; }
    .candidate-create-layout.is-waiting-list-mode .input,
    .candidate-create-layout.is-waiting-list-mode .select,
    .candidate-create-layout.is-waiting-list-mode .button { min-height: 36px; padding-block: 6px; font-size: 14px; }
    .candidate-create-layout.is-waiting-list-mode .input,
    .candidate-create-layout.is-waiting-list-mode .select,
    .candidate-create-layout.is-waiting-list-mode .textarea { font-size: 15px; }
    .candidate-create-layout.is-waiting-list-mode .candidate-kind-alert strong { font-size: 14px; }
    .candidate-create-layout.is-waiting-list-mode .textarea { min-height: 34px; max-height: 50px; padding-block: 6px; }
    .candidate-create-layout.is-waiting-list-mode .candidate-search-section .form-grid { grid-template-columns: minmax(0, 1fr) 118px; }
    .candidate-create-layout.is-waiting-list-mode .candidate-search-section .col-8,
    .candidate-create-layout.is-waiting-list-mode .candidate-search-section .col-4 { grid-column: auto; }
    .candidate-create-layout.is-waiting-list-mode .search-results { max-height: 92px; overflow-y: auto; }
    .candidate-create-layout.is-waiting-list-mode .candidate-interest-section .form-grid[style] { margin-top: 8px !important; }
    .candidate-create-layout.is-waiting-list-mode > .panel > .panel__footer { padding-block: 9px; }
}
.candidate-kind-selector .candidate-kind-switch { margin-top: 0; }
.candidate-kind-switch { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.stack { display: grid; gap: 18px; }
.panel { min-width: 0; background: linear-gradient(145deg, #14171b, #101216); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 12px 30px rgba(0,0,0,.08); }
.panel--attention { border-color: rgba(239, 27, 35, .72); box-shadow: 0 0 0 3px rgba(239, 27, 35, .12), 0 12px 30px rgba(0,0,0,.12); }
.panel__header { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.panel__header h2, .panel__header h3 { margin: 0; font-size: 14px; }
.panel__header p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.panel__body { padding: 18px; }
.panel__body--flush { padding: 0; }
.panel__footer { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--border); }
.person-data-editor > summary.panel__header { cursor: pointer; list-style: none; }
.person-data-editor > summary.panel__header::-webkit-details-marker { display: none; }
.person-timeline-filter-alert { flex-wrap: wrap; margin: 0 18px 12px; align-items: center; }
.person-timeline-filter-alert .button { margin-left: auto; }
.person-timeline-filters { display: flex; flex-wrap: wrap; gap: 7px; padding: 12px 18px; border-bottom: 1px solid var(--border); }
.person-timeline { display: grid; max-height: 620px; padding: 8px 18px 18px; overflow-y: auto; }
.person-timeline > .muted { padding: 18px 0; }
.person-timeline__item { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 11px; padding: 13px 0; }
.person-timeline__item:not(:last-child)::before { content: ""; position: absolute; left: 10px; top: 34px; bottom: -7px; width: 1px; background: #30353d; }
.person-timeline__dot { position: relative; z-index: 1; width: 21px; height: 21px; margin-top: 1px; background: #181b20; border: 2px solid #707987; border-radius: 50%; box-shadow: 0 0 0 4px #111418; }
.person-timeline__item[data-category="interest"] .person-timeline__dot { border-color: #36bffa; }
.person-timeline__item[data-category="operation"] .person-timeline__dot { border-color: #fdb022; }
.person-timeline__item[data-category="exam"] .person-timeline__dot { border-color: #ed1c24; }
.person-timeline__item[data-category="pedagogical"] .person-timeline__dot { border-color: #9b8afb; }
.person-timeline__item[data-category="commercial"] .person-timeline__dot { border-color: #32d583; }
.person-timeline__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.person-timeline__heading strong { font-size: 12px; line-height: 1.45; }
.person-timeline__date { flex: 0 0 auto; color: var(--muted); font-size: 10px; }
.person-timeline__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 5px; }
.person-timeline__meta p { margin: 0; color: var(--text-soft); font-size: 10px; line-height: 1.5; }
.section-title { display: flex; align-items: center; gap: 9px; margin: 0 0 14px; font-size: 13px; }
.section-title .icon { color: var(--red); }
.muted { color: var(--muted); }
.text-red { color: var(--red); }
.text-green { color: var(--green); }

.toolbar { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.toolbar__search { position: relative; flex: 1; min-width: 180px; }
.toolbar__search .icon { position: absolute; left: 12px; top: 50%; width: 16px; color: var(--muted); transform: translateY(-50%); }
.toolbar__search input { padding-left: 38px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field label, .field legend { color: var(--text-soft); font-size: 11px; font-weight: 700; }
.field label .required { color: var(--red); }
.field small { color: var(--muted); font-size: 10px; }
.field-error { color: #ff8d92 !important; }
.input, .select, .textarea { width: 100%; min-height: 40px; padding: 9px 11px; color: #f4f5f6; background: #0b0d10; border: 1px solid var(--border-strong); border-radius: 7px; outline: 0; }
.input--readonly { display: flex; align-items: center; color: var(--muted); background: #11151a; }
.input::placeholder, .textarea::placeholder { color: #59606b; }
.input:hover, .select:hover, .textarea:hover { border-color: #4a515c; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--red); box-shadow: var(--focus); }
.textarea { min-height: 92px; resize: vertical; }
.select { appearance: none; padding-right: 32px; background-image: linear-gradient(45deg,transparent 50%,#888 50%),linear-gradient(135deg,#888 50%,transparent 50%); background-position: calc(100% - 16px) 17px,calc(100% - 11px) 17px; background-size:5px 5px; background-repeat:no-repeat; }
.input[aria-invalid="true"] { border-color: var(--danger); }
.form-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.col-12 { grid-column: span 12; }.col-8 { grid-column: span 8; }.col-7 { grid-column: span 7; }.col-6 { grid-column: span 6; }.col-5 { grid-column: span 5; }.col-4 { grid-column: span 4; }.col-3 { grid-column: span 3; }.col-2 { grid-column: span 2; }
.text-danger { color: #ff8a8a; font-weight: 700; }
.form-section + .form-section { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--border); }
.form-section__heading { margin-bottom: 15px; }
.form-section__heading h2 { margin: 0; font-size: 14px; }
.form-section__heading p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.candidate-section-icon { width: 26px; height: 26px; display: inline-grid; place-items: center; flex: 0 0 auto; color: #fff; background: linear-gradient(135deg, #c3131b, #7f080e); border: 1px solid rgba(255,83,90,.28); border-radius: 7px; box-shadow: 0 6px 14px rgba(180,12,20,.18); }
.candidate-section-icon .icon { width: 14px; height: 14px; }
.candidate-create-layout .form-section__heading h2 { display: flex; align-items: center; gap: 8px; }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding-top: 20px; }

.table-scroll { width: 100%; max-width: 100%; min-width: 0; overflow-x: auto; overflow-y: hidden; overscroll-behavior-inline: contain; contain: inline-size paint; scrollbar-color: #343942 transparent; }
.data-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.data-table th { padding: 11px 14px; color: #747b85; background: #0d0f12; border-bottom: 1px solid var(--border); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.data-table td { padding: 12px 14px; color: var(--text-soft); border-bottom: 1px solid rgba(39,43,50,.75); font-size: 12px; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table .table-secondary { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.data-table tbody tr:hover { background: rgba(255,255,255,.018); }
.data-table strong { color: var(--text); font-weight: 700; }
.table-actions { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.table-actions .icon-button { width: 31px; height: 31px; }
.candidate-table { min-width: 1120px; }
.candidate-table th { padding-block: 8px; }
.candidate-table td { padding-block: 8px; }
.candidate-table td small { margin-top: 2px; }
.candidate-exam-detail { display: inline-block; max-width: 240px; margin-top: 5px; line-height: 1.35; }
[data-candidate-list] > tr > td:last-child { width: 150px; min-width: 150px; }
[data-candidates-workspace].metrics-grid--compact { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
[data-candidates-workspace] .metric-card { min-height: 88px; padding: 13px 16px; }
[data-candidates-workspace] .participant-status-card { min-height: 78px; padding: 10px 12px; text-align: left; }
[data-candidates-workspace] .participant-status-card strong { font-size: 24px; }
[data-candidates-workspace] .participant-status-card[aria-pressed="true"] { border-color: var(--red); box-shadow: inset 0 -2px 0 var(--red); }
@media (max-width: 1450px) { [data-candidates-workspace].metrics-grid--compact { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
[data-candidate-list] .table-actions {
    min-width: max-content;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    justify-content: end;
    flex-wrap: nowrap;
}
[data-candidate-list] .table-actions .button {
    min-width: max-content;
    flex: 0 0 auto;
    padding-inline: 10px;
    overflow-wrap: normal;
    word-break: normal;
    white-space: nowrap;
}
.candidate-action-box { width: 38px; margin-left: auto; }
.candidate-action-box .operation-action-box__menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: auto;
    z-index: 1000;
    min-width: 150px;
    margin-top: 0;
}
.badge { width: max-content; display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; color: var(--text-soft); background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.08); border-radius: 999px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.badge__dot { width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.badge--success { color: var(--green); background: var(--green-soft); border-color: rgba(39,201,120,.22); }
.badge--warning { color: var(--amber); background: var(--amber-soft); border-color: rgba(240,162,27,.22); }
.badge--danger { color: #ff747a; background: var(--red-soft); border-color: rgba(237,28,36,.25); }
.badge--info { color: var(--blue); background: var(--blue-soft); border-color: rgba(84,153,255,.22); }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px; color: var(--muted); font-size: 11px; border-top: 1px solid var(--border); }
.pagination__pages { display: flex; gap: 4px; }
.pagination__pages a { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 6px; }
.pagination__pages a:hover, .pagination__pages a.is-active { color: #fff; background: var(--red); }
.pagination__buttons { display: flex; align-items: center; gap: 9px; }

.vault-groups { display: grid; gap: 18px; }
.vault-group__heading { display: flex; align-items: center; gap: 12px; }
.vault-group__type { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 38px; color: #fff; background: var(--red); border-radius: 8px; font-size: 16px; font-weight: 850; }
.vault-group__pagination { min-height: 52px; background: var(--panel-2); }
.vault-group__pagination [data-vault-page] { min-width: 96px; color: var(--text-soft); text-align: center; }

.alert { display: flex; align-items: flex-start; gap: 12px; padding: 13px 14px; color: var(--text-soft); background: rgba(255,255,255,.035); border: 1px solid var(--border); border-left: 3px solid var(--blue); border-radius: 8px; }
.alert .icon { color: var(--blue); margin-top: 1px; }
.alert strong { display: block; margin-bottom: 2px; color: #fff; font-size: 12px; }
.alert p { margin: 0; color: var(--muted); font-size: 11px; }
.alert--danger { background: var(--red-soft); border-color: rgba(237,28,36,.25); border-left-color: var(--red); }
.alert--danger .icon { color: var(--red); }
.alert--success { background: var(--green-soft); border-color: rgba(39,201,120,.23); border-left-color: var(--green); }
.alert--success .icon { color: var(--green); }

.progress { height: 7px; overflow: hidden; background: #252931; border-radius: 999px; }
.progress span { display: block; width: var(--value, 0%); height: 100%; background: linear-gradient(90deg, var(--red-dark), var(--red)); border-radius: inherit; }
.progress-row { display: grid; grid-template-columns: 130px 1fr 42px; align-items: center; gap: 12px; margin: 13px 0; color: var(--text-soft); font-size: 11px; }
.progress-row strong { text-align: right; color: var(--text); }
.chart-bars { height: 210px; display: flex; align-items: flex-end; gap: 12px; padding: 20px 10px 0; border-bottom: 1px solid var(--border); }
.chart-bar { flex: 1; min-width: 16px; position: relative; height: var(--value); background: linear-gradient(180deg, #ff2b33, #8e0d13); border-radius: 5px 5px 0 0; }
.chart-bar span { position: absolute; left: 50%; bottom: -23px; color: var(--muted); font-size: 9px; transform: translateX(-50%); }
.donut { --value: 72%; width: 150px; height: 150px; display: grid; place-items: center; margin: 12px auto; background: conic-gradient(var(--red) var(--value), #252931 0); border-radius: 50%; }
.donut::after { content: attr(data-label); width: 104px; height: 104px; display: grid; place-items: center; background: var(--panel); border-radius: 50%; font-size: 21px; font-weight: 800; }

.segmented { display: inline-flex; padding: 3px; background: #0b0d10; border: 1px solid var(--border); border-radius: 8px; }
.segmented button { min-height: 31px; padding: 0 11px; color: var(--muted); background: transparent; border: 0; border-radius: 5px; font-size: 11px; cursor: pointer; }
.segmented button.is-active { color: #fff; background: var(--panel-3); }
.answer-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 0; overflow: hidden; background: #0c0e11; border: 1px solid var(--border); border-radius: 9px; }
.answer-row { display: grid; grid-template-columns: 44px repeat(5, minmax(40px,1fr)); align-items: center; gap: 8px; min-height: 52px; padding: 7px 12px; background: transparent; border: 0; border-radius: 0; }
.answer-row + .answer-row { border-top: 1px solid var(--border); }
.answer-row:hover { background: rgba(255,255,255,.025); }
.answer-row__number { display: grid; place-items: center; width: 34px; height: 34px; color: var(--text); background: #171a1f; border-radius: 7px; font-size: 12px; font-weight: 900; }
.answer-option { position: relative; }
.answer-option input { position: absolute; opacity: 0; pointer-events: none; }
.answer-option span { width: 28px; height: 28px; display: grid; place-items: center; margin: auto; color: #979da6; background: #171a1f; border: 1px solid #343941; border-radius: 50%; font-size: 10px; font-weight: 800; cursor: pointer; }
.answer-option input:focus-visible + span { box-shadow: var(--focus); }
.answer-option input:checked + span { color: #fff; background: var(--red); border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.answer-option:hover span { border-color: var(--red); color: #fff; }
.question-map { display: grid; grid-template-columns: repeat(10, 1fr); gap: 7px; }
.question-map span { display: grid; place-items: center; aspect-ratio: 1; color: var(--muted); background: #0b0d10; border: 1px solid var(--border); border-radius: 6px; font-size: 10px; font-weight: 800; }
.question-map span.is-answered { color: #fff; background: var(--red-soft); border-color: rgba(237,28,36,.4); }
.answer-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; }
.answer-summary div { padding: 11px; background: #0b0d10; border: 1px solid var(--border); border-radius: 7px; text-align: center; }
.answer-summary strong { display: block; font-size: 18px; }
.answer-summary small { color: var(--muted); font-size: 9px; text-transform: uppercase; }

.exam-key { display: grid; gap: 7px; }
.exam-key__row { display: grid; grid-template-columns: 31px repeat(5, 31px) minmax(130px,1fr); gap: 6px; align-items: center; }
.exam-key__row > span:first-child { color: var(--muted); font-size: 10px; font-weight: 800; }
.exam-key__row .select { min-height: 31px; height: 31px; padding-top: 4px; padding-bottom: 4px; font-size: 10px; }
.vault-file { display: flex; align-items: center; gap: 12px; padding: 13px; background: #0b0d10; border: 1px solid var(--border); border-radius: 8px; }
.vault-file__icon { width: 38px; height: 38px; display: grid; place-items: center; color: var(--red); background: var(--red-soft); border-radius: 8px; }
.vault-file__copy { min-width: 0; flex: 1; }
.vault-file__copy strong, .vault-file__copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vault-file__copy small { color: var(--muted); }
.vault-seal { display: flex; align-items: center; gap: 12px; padding: 14px; color: var(--green); background: var(--green-soft); border: 1px solid rgba(39,201,120,.22); border-radius: 9px; }
.vault-seal strong { display: block; font-size: 12px; }
.vault-seal small { color: #8dbaa2; }

.access-matrix { display: grid; grid-template-columns: minmax(150px, 1.4fr) repeat(5, minmax(90px,1fr)); overflow-x: auto; }
.access-matrix > div { min-height: 46px; display: flex; align-items: center; justify-content: center; padding: 9px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); font-size: 11px; }
.access-matrix > div:nth-child(6n+1) { justify-content: flex-start; color: var(--text-soft); }
.access-matrix__head { color: var(--muted); background: #0d0f12; font-size: 9px !important; font-weight: 800; text-transform: uppercase; }
.checkmark { width: 20px; height: 20px; display: grid; place-items: center; color: var(--green); background: var(--green-soft); border-radius: 50%; }
.checkmark .icon { width: 12px; }

.toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; }
.toggle__track { position: relative; width: 38px; height: 21px; background: #30353d; border: 1px solid #414750; border-radius: 999px; transition: .18s ease; }
.toggle__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 13px; height: 13px; background: #adb2ba; border-radius: 50%; transition: .18s ease; }
.toggle input:checked + .toggle__track { background: var(--red); border-color: var(--red); }
.toggle input:checked + .toggle__track::after { left: 20px; background: #fff; }
.toggle input:focus-visible + .toggle__track { box-shadow: var(--focus); }
.toggle__copy strong, .toggle__copy small { display: block; }
.toggle__copy strong { font-size: 11px; }
.toggle__copy small { color: var(--muted); font-size: 10px; }

.fieldset-reset { min-width: 0; margin: 0; padding: 0; border: 0; }
.fieldset-reset legend { margin-bottom: 5px; color: var(--text-soft); font-size: 10px; font-weight: 800; }
.field-help { margin: 0 0 10px; color: var(--muted); font-size: 10px; }
.choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.choice-grid--compact { grid-template-columns: repeat(2, minmax(0,1fr)); }
.choice-card { position: relative; display: flex; min-height: 68px; padding: 12px; background: #0d0f12; border: 1px solid var(--border-strong); border-radius: 8px; cursor: pointer; transition: border-color .16s ease, background .16s ease; }
.choice-card:hover { border-color: #585e68; }
.choice-card input { position: absolute; top: 12px; right: 12px; width: 16px; height: 16px; accent-color: var(--red); }
.choice-card span { display: block; min-width: 0; padding-right: 23px; }
.choice-card strong, .choice-card small { display: block; }
.choice-card strong { color: var(--text-soft); font-size: 11px; }
.choice-card small { margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.35; }
.choice-card:has(input:checked) { background: var(--red-soft); border-color: rgba(237,28,36,.58); }
.choice-card:has(input:focus-visible) { box-shadow: var(--focus); }
.academic-group + .academic-group { margin-top: 16px; }
.academic-group h3 { margin: 0 0 9px; color: var(--text-soft); font-size: 11px; }
.candidate-academic-selectors { align-items: end; margin-bottom: 0; }
.candidate-academic-selectors .field { min-width: 0; }
.commercial-version-filters { display: grid; grid-template-columns: repeat(2, minmax(190px, 1fr)); gap: 10px; min-width: min(100%, 430px); }
.search-results { display: grid; gap: 8px; margin-top: 14px; }
.candidate-search-results-shell { display: grid; gap: 8px; }
.candidate-create-new-button { position: relative; z-index: 2; width: 100%; flex: 0 0 auto; }
.search-result { width: 100%; display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 13px; padding: 12px 14px; color: inherit; text-align: left; background: #0d0f12; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; }
.search-result:hover, .search-result:focus-visible { border-color: var(--red); }
.search-result__copy { min-width: 0; }
.search-result__copy strong, .search-result__copy small { display: block; }
.search-result__copy strong { font-size: 14px; line-height: 1.35; }
.search-result__copy small { margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.search-result__action { min-height: 36px; display: inline-flex; align-items: center; padding: 0 11px; color: #fff; background: rgba(237,28,36,.12); border: 1px solid rgba(237,28,36,.3); border-radius: 6px; font-size: 13px; font-weight: 800; white-space: nowrap; }
.candidate-autocomplete { position: relative; }
.candidate-autocomplete__icon { position: absolute; z-index: 2; left: 14px; top: 23px; width: 18px; height: 18px; color: var(--muted); transform: translateY(-50%); pointer-events: none; }
.candidate-autocomplete__input { padding-left: 44px; }
.candidate-autocomplete__results { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; right: 0; max-height: 310px; margin: 0; padding: 6px; overflow-y: auto; background: #12161b; border: 1px solid var(--border-strong); border-radius: 9px; box-shadow: 0 18px 42px rgba(0,0,0,.48); }
.candidate-autocomplete__results:empty { display: none; }
.candidate-autocomplete__results .search-result { padding: 10px 12px; background: transparent; border: 0; border-radius: 6px; }
.candidate-autocomplete__results .search-result + .search-result { border-top: 1px solid var(--border); border-radius: 0 0 6px 6px; }
.candidate-autocomplete__results .search-result:hover, .candidate-autocomplete__results .search-result:focus-visible { background: rgba(237,28,36,.09); }
.candidate-autocomplete__results .search-result__action { min-height: auto; padding: 0; color: var(--red); background: transparent; border: 0; }
.candidate-autocomplete__results.is-selected { position: static; max-height: none; margin-top: 9px; padding: 0; overflow: visible; background: transparent; border: 0; box-shadow: none; }
.reconciliation-case { display: grid; gap: 14px; padding: 16px; background: #0d0f12; border: 1px solid var(--border); border-radius: 10px; }
.reconciliation-case__people { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.reconciliation-person { display: grid; gap: 5px; padding: 12px; background: #090b0e; border: 1px solid var(--border); border-radius: 8px; }
.reconciliation-person label { display: flex; align-items: center; gap: 8px; color: var(--text-soft); font-weight: 750; }
.reconciliation-person input { accent-color: var(--red); }
.reconciliation-case__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.rectification-application { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 14px; background: #0d0f12; border: 1px solid var(--border); border-radius: 8px; }
.rectification-application strong, .rectification-application small { display: block; }
.rectification-application small { margin-top: 3px; color: var(--muted); }
.answer-row.is-changed { background: var(--red-soft); border-color: rgba(237,28,36,.58); }
.rectification-card { display: grid; gap: 14px; padding: 16px; background: #0d0f12; border: 1px solid var(--border); border-radius: 10px; }
.rectification-card__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.rectification-card__heading strong, .rectification-card__heading small { display: block; }
.rectification-card__heading small { margin-top: 4px; color: var(--muted); }
.rectification-card__reason { margin: 0; padding: 11px 12px; color: var(--text-soft); background: #090b0e; border-left: 3px solid var(--red); border-radius: 6px; }
.rectification-change-list { display: flex; flex-wrap: wrap; gap: 7px; }
.rectification-change-list span { padding: 7px 9px; color: #f5d7d8; background: var(--red-soft); border: 1px solid rgba(237,28,36,.3); border-radius: 999px; font-size: 10px; font-weight: 750; }
.rectification-card__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }

.timeline { position: relative; display: grid; gap: 16px; }
.timeline::before { content: ""; position: absolute; left: 13px; top: 7px; bottom: 7px; width: 1px; background: var(--border-strong); }
.timeline__item { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 11px; }
.timeline__dot { z-index: 1; width: 27px; height: 27px; display: grid; place-items: center; color: var(--red); background: #171a1f; border: 1px solid var(--border-strong); border-radius: 50%; }
.timeline__dot .icon { width: 13px; }
.timeline__copy strong { display: block; font-size: 11px; }
.timeline__copy p { margin: 2px 0; color: var(--muted); font-size: 10px; }
.timeline__copy time { color: #5f6570; font-size: 9px; }

.empty-state { min-height: 250px; display: grid; place-items: center; align-content: center; gap: 9px; padding: 32px; text-align: center; }
.empty-state__icon { width: 56px; height: 56px; display: grid; place-items: center; color: var(--red); background: var(--red-soft); border: 1px solid rgba(237,28,36,.22); border-radius: 14px; }
.empty-state__icon .icon { width: 25px; height: 25px; }
.empty-state h2 { margin: 5px 0 0; font-size: 15px; }
.empty-state p { max-width: 400px; margin: 0 0 5px; color: var(--muted); font-size: 11px; }

.login-page { min-height: 100vh; display: grid; grid-template-columns: minmax(360px,.85fr) minmax(500px,1.15fr); background: #050607; }
.login-brand { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 48px; overflow: hidden; background: radial-gradient(circle at 15% 70%, rgba(237,28,36,.18), transparent 38%), linear-gradient(135deg,#0b0d10,#060709); border-right: 1px solid var(--border); }
.login-brand::before { content: ""; position: absolute; inset: 0; opacity: .2; background-image: linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px); background-size: 34px 34px; mask-image: linear-gradient(to bottom,#000,transparent 82%); }
.login-brand > * { position: relative; z-index: 1; }
.login-brand__logo { width: 175px; }
.login-brand__title { max-width: 540px; }
.login-brand__eyebrow { color: var(--red); font-size: 11px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.login-brand h1 { margin: 13px 0 15px; font-size: clamp(44px,7vw,86px); line-height: .88; letter-spacing: -.07em; text-transform: uppercase; }
.login-brand h1 span { color: var(--red); }
.login-brand p { max-width: 440px; color: #969ca5; }
.login-brand__footer { display: flex; gap: 12px; color: #696f78; font-size: 10px; }
.login-brand__footer .icon { color: var(--red); }
.login-form-wrap { display: grid; place-items: center; padding: 32px; }
.login-card { width: min(440px,100%); padding: 34px; background: linear-gradient(145deg,#14171b,#0d0f12); border: 1px solid var(--border-strong); border-radius: 14px; box-shadow: var(--shadow); }
.login-card__icon { width: 48px; height: 48px; display: grid; place-items: center; color: var(--red); background: var(--red-soft); border: 1px solid rgba(237,28,36,.22); border-radius: 12px; }
.login-card h2 { margin: 21px 0 5px; font-size: 22px; }
.login-card > p { margin: 0 0 25px; color: var(--muted); font-size: 12px; }
.login-card .field + .field { margin-top: 15px; }
.password-field { position: relative; }
.password-field .input { padding-right: 45px; }
.password-field .icon-button { position: absolute; right: 1px; top: 1px; width: 39px; height: 38px; }
.login-card .button { width: 100%; margin-top: 22px; min-height: 45px; }
.login-card__note { display: flex; align-items: center; gap: 8px; margin-top: 18px; color: #676d76; font-size: 10px; }
.login-card__note .icon { width: 14px; color: var(--green); }

.toast-region { position: fixed; z-index: 100; right: 18px; bottom: 18px; display: grid; gap: 8px; }
.toast { min-width: 260px; max-width: 380px; padding: 13px 15px; color: #fff; background: #20242a; border: 1px solid var(--border-strong); border-left: 3px solid var(--green); border-radius: 8px; box-shadow: var(--shadow); animation: toast-in .22s ease; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 1180px) {
    .metrics-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .content-grid, .content-grid--wide-aside { grid-template-columns: 1fr; }
    .answer-grid { grid-template-columns: 1fr; }
    .question-map { grid-template-columns: repeat(10, minmax(28px,1fr)); }
}

@media (max-width: 900px) {
    .sidebar { transform: translateX(-100%); transition: transform .22s ease; box-shadow: var(--shadow); }
    .sidebar__close, .topbar__menu { display: inline-grid; }
    .app-main { margin-left: 0; }
    .app-shell.is-sidebar-open .sidebar { transform: translateX(0); }
    .app-shell.is-sidebar-open .sidebar-backdrop { position: fixed; z-index: 35; inset: 0; display: block; background: rgba(0,0,0,.68); backdrop-filter: blur(2px); }
    .page { padding: 25px 22px 50px; }
    .login-page { grid-template-columns: 1fr; }
    .login-brand { min-height: 330px; padding: 36px; border-right: 0; border-bottom: 1px solid var(--border); }
    .login-brand h1 { font-size: 52px; }
    .login-form-wrap { padding: 28px 20px 50px; }
}

@media (max-width: 760px) {
    .app-content--settings { display: block; }
    .settings-area { position: relative; top: auto; width: 100%; max-width: 100vw; height: auto; padding: 14px 15px 12px; overflow: visible; border-right: 0; border-bottom: 1px solid var(--border); }
    .settings-area__header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 10px; }
    .settings-area__header strong { font-size: 13px; }
    .settings-area__search { margin-bottom: 10px; }
    .settings-area__search input { min-height: 40px; }
    .settings-area__navigation { display: flex; gap: 6px; padding-bottom: 2px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: inline proximity; scrollbar-width: thin; }
    .settings-area__section { display: none; }
    .settings-area__link { min-width: 148px; min-height: 44px; flex: 0 0 auto; scroll-snap-align: start; }
    .settings-area__link-copy small { display: none; }
    .settings-area__content, .page--settings-area, .page--settings-area > * { min-width: 0; }
    .page--settings-area { padding-top: 20px; }
}

@media (max-width: 680px) {
    .reconciliation-case__people { grid-template-columns: 1fr; }
    .person-timeline__heading { align-items: flex-start; flex-direction: column; gap: 4px; }
    .topbar { padding: 0 14px; }
    .demo-banner { gap: 5px; padding-inline: 7px; font-size: 8px; letter-spacing: .035em; }
    .topbar__context { flex: 1; margin-left: 4px; }
    .topbar__eyebrow { display: none; }
    .topbar__marker { height: 24px; }
    .topbar__menu { margin-right: 0; }
    .page { padding: 22px 15px 44px; }
    .page-heading { align-items: stretch; flex-direction: column; gap: 16px; }
    .page-heading__actions .button { flex: 1; }
    .metrics-grid, .content-grid--equal { grid-template-columns: 1fr; }
    .metric-card { min-height: 103px; }
    .toolbar { flex-wrap: wrap; }
    .toolbar__search { flex-basis: 100%; }
    .form-grid { grid-template-columns: 1fr; }
    .commercial-version-filters { grid-template-columns: 1fr; min-width: 100%; }
    .col-12,.col-8,.col-7,.col-6,.col-5,.col-4,.col-3,.col-2 { grid-column: span 1; }
    .form-actions, .panel__footer { flex-direction: column-reverse; align-items: stretch; }
    .form-actions .button, .panel__footer .button { width: 100%; }
    .progress-row { grid-template-columns: 100px 1fr 35px; gap: 8px; }
    .answer-row { grid-template-columns: 34px repeat(5, minmax(0,1fr)); gap: 4px; padding-inline: 6px; }
    .answer-row__number { width: 30px; height: 30px; }
    .question-map { grid-template-columns: repeat(5,1fr); }
    .exam-key__row { grid-template-columns: 25px repeat(5, 31px); }
    .exam-key__row .select { grid-column: 2 / -1; }
    .pagination { flex-direction: column; }
    .login-brand { min-height: 275px; padding: 28px; }
    .login-brand__logo { width: 145px; }
    .login-brand h1 { font-size: 42px; }
    .login-brand p { display: none; }
    .login-card { padding: 25px 20px; }
    .choice-grid, .choice-grid--compact { grid-template-columns: 1fr; }
    .search-result { grid-template-columns: 38px minmax(0,1fr); align-items: start; }
    .search-result__action { grid-column: 2; justify-self: start; }
    .candidate-autocomplete__results .search-result { grid-template-columns: 38px minmax(0,1fr); }
    .candidate-autocomplete__results .search-result__action { grid-column: 2; }
    .rectification-application, .rectification-card__heading { align-items: stretch; flex-direction: column; }
    .rectification-application .button, .rectification-card__actions .button { width: 100%; }
}

@media (max-width: 480px) {
    body[data-demo-mode="true"] { --demo-banner: 38px; }
    .demo-banner { align-content: center; flex-wrap: wrap; gap: 0 5px; padding-block: 3px; font-size: 7px; letter-spacing: .02em; }
    .settings-area__header { display: grid; justify-content: stretch; gap: 2px; }
}

.settings-module { min-width: 0; }
.settings-state { min-height: 112px; display: flex; align-items: center; gap: 15px; padding: 20px; }
.settings-state[hidden], .settings-feedback[hidden], [data-settings-content][hidden] { display: none; }
.settings-state__icon { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; color: var(--red); background: var(--red-soft); border: 1px solid rgba(237,28,36,.2); border-radius: 10px; }
.settings-state__icon .icon { width: 20px; height: 20px; }
[data-settings-loading] .settings-state__icon { animation: settings-spin 1.6s linear infinite; }
.settings-state strong { display: block; margin-bottom: 3px; font-size: 13px; }
.settings-state p { margin: 0; color: var(--muted); font-size: 11px; }
.settings-state--error .settings-state__icon { color: #ff747a; }
.settings-state--error .button { margin-top: 12px; }
.settings-feedback { margin-bottom: 18px; }
.settings-feedback.alert--danger { color: #ffc2c5; }
.settings-fieldset { min-width: 0; display: grid; gap: 18px; margin: 0; padding: 0; border: 0; }
.settings-fieldset--panel { display: block; }
.settings-step__heading { min-width: 0; display: flex; align-items: center; gap: 12px; }
.settings-step__number { width: 31px; height: 31px; display: grid; place-items: center; flex: 0 0 auto; color: var(--red); background: var(--red-soft); border: 1px solid rgba(237,28,36,.2); border-radius: 8px; font-size: 10px; font-weight: 900; letter-spacing: .05em; }
.settings-step { scroll-margin-top: calc(var(--topbar) + 18px); }
.settings-actions { padding-top: 0; }
.settings-toggles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.settings-toggle { position: relative; width: 100%; min-height: 76px; padding: 14px; background: #0b0d10; border: 1px solid var(--border); border-radius: 9px; }
.settings-toggle:hover { background: #0e1014; border-color: var(--border-strong); }
.settings-toggle .toggle__copy { min-width: 0; }
.settings-toggle .toggle__copy strong { color: var(--text); }
.settings-toggle .toggle__copy small { margin-top: 3px; line-height: 1.4; }
.settings-toggle input:disabled ~ * { opacity: .58; cursor: wait; }
.settings-nav__search { display: block; margin-bottom: 12px; }
.settings-nav__search .input { min-height: 38px; }
.settings-nav__links { display: grid; gap: 5px; }
.settings-nav__links a { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 9px 10px; color: var(--text-soft); border: 1px solid transparent; border-radius: 8px; }
.settings-nav__links a[hidden] { display: none; }
.settings-nav__links a:hover { color: var(--text); background: rgba(255,255,255,.025); border-color: var(--border); }
.settings-nav__links a.is-active { color: var(--text); background: var(--red-soft); border-color: rgba(237,28,36,.22); }
.settings-nav__links a > .icon { width: 16px; color: var(--muted); }
.settings-nav__links a.is-active > .icon { color: var(--red); }
.settings-nav__links a span, .settings-nav__links a strong, .settings-nav__links a small { display: block; }
.settings-nav__links a span { min-width: 0; }
.settings-nav__links a strong { font-size: 11px; }
.settings-nav__links a small { margin-top: 1px; color: var(--muted); font-size: 9px; }
.settings-nav__empty { margin: 8px 0 0; color: var(--muted); font-size: 10px; text-align: center; }
.settings-nav__empty[hidden] { display: none; }
.settings-summary__item { display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 12px; }
.settings-summary__item > span { width: 38px; height: 38px; display: grid; place-items: center; color: var(--red); background: var(--red-soft); border: 1px solid rgba(237,28,36,.18); border-radius: 9px; }
.settings-summary__item > span .icon { width: 17px; }
.settings-summary__item strong, .settings-summary__item small { display: block; }
.settings-summary__item strong { font-size: 11px; }
.settings-summary__item small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.settings-profile { display: flex; align-items: center; gap: 11px; }
.settings-profile strong, .settings-profile small { display: block; }
.settings-profile strong { font-size: 12px; }
.settings-profile small { margin-top: 2px; color: var(--muted); font-size: 10px; }

.settings-catalog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 14px; }
.settings-catalog-card { transition: border-color .16s ease, transform .16s ease; }
.settings-catalog-card:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.settings-catalog-options { display: flex; align-content: flex-start; flex-wrap: wrap; gap: 7px; }
.settings-catalog-options > span { display: inline-flex; align-items: center; min-height: 29px; padding: 5px 9px; color: var(--text-soft); background: #0b0e12; border: 1px solid var(--border); border-radius: 999px; font-size: 10px; }
.settings-catalog-options > .muted { width: 100%; border-style: dashed; border-radius: 7px; }

.section-tabs { width: max-content; max-width: 100%; display: flex; align-items: center; gap: 4px; padding: 4px; overflow-x: auto; background: #0b0e12; border: 1px solid var(--border); border-radius: 9px; scrollbar-width: thin; }
.section-tabs a, .section-tabs button { min-height: 34px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; padding: 0 12px; color: var(--muted); background: transparent; border: 1px solid transparent; border-radius: 6px; font-size: 10px; font-weight: 800; cursor: pointer; }
.section-tabs a:hover, .section-tabs button:hover { color: var(--text); background: var(--panel-3); }
.section-tabs a.is-active, .section-tabs button.is-active { color: #fff; background: var(--red); border-color: var(--red); }
.section-tabs--compact { padding: 3px; }
.section-tabs--compact a, .section-tabs--compact button { min-height: 30px; padding-inline: 10px; }
.settings-anchor { scroll-margin-top: calc(var(--topbar) + var(--demo-banner) + 18px); }
.settings-anchor:target { border-color: rgba(237,28,36,.42); box-shadow: 0 0 0 3px rgba(237,28,36,.08); }

.commercial-value-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.additional-fees { border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.additional-fees__header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.additional-fees__header p { margin: 4px 0 0; color: var(--muted); }
.additional-fees__list { display: grid; gap: 10px; margin-top: 14px; }
.additional-fee-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(180px, 1fr) auto; gap: 10px; align-items: end; }
.commercial-options__head,
.commercial-option-row { display: grid; grid-template-columns: minmax(170px, 1.65fr) minmax(74px, .55fr) repeat(3, minmax(118px, 1fr)) minmax(105px, .8fr) auto; gap: 10px; align-items: end; }
.commercial-options__head { margin-top: 16px; padding: 0 4px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.commercial-option-row { padding: 12px; background: #0b0e12; border: 1px solid var(--border); border-radius: 9px; }
.commercial-option-row .field,
.commercial-option-row .money-field { gap: 5px; }
.commercial-option-row__label { display: none; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.commercial-option-row .button { min-height: 40px; }
.money-field { min-width: 0; display: grid; align-content: start; gap: 7px; }
.money-field > span:first-child { color: var(--text-soft); font-size: 11px; font-weight: 700; }
.money-field > span:first-child b { color: var(--red); }
.money-field > span:last-child { min-width: 0; min-height: 40px; display: flex; align-items: stretch; overflow: hidden; background: #0b0d10; border: 1px solid var(--border-strong); border-radius: 7px; }
.money-field > span:last-child:hover { border-color: #4a515c; }
.money-field > span:last-child:focus-within { border-color: var(--red); box-shadow: var(--focus); }
.money-field i { display: grid; place-items: center; padding: 0 10px; color: var(--red); background: var(--red-soft); border-right: 1px solid var(--border); font-size: 10px; font-style: normal; font-weight: 900; }
.money-field input { min-width: 0; width: 100%; padding: 8px 10px; color: var(--text); background: transparent; border: 0; outline: 0; }
.money-field input::placeholder { color: #59606b; }
.money-field input:disabled { color: var(--muted); cursor: not-allowed; }

.discount-grid { display: grid; grid-template-columns: repeat(3, minmax(180px, 1fr)); gap: 8px; }
.discount-grid label { min-width: 0; min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; background: #0b0e12; border: 1px solid var(--border); border-radius: 8px; }
.discount-grid label:hover { border-color: var(--border-strong); }
.discount-grid label:focus-within { border-color: var(--red); box-shadow: var(--focus); }
.discount-grid label > span { display: flex; align-items: center; gap: 6px; }
.discount-grid label > span:first-child { min-width: 0; display: grid; gap: 1px; }
.discount-grid strong { color: var(--text); font-size: 12px; }
.discount-grid small { color: var(--muted); font-size: 8px; }
.discount-grid input { width: 68px; min-height: 32px; padding: 5px 7px; color: var(--text); background: #090b0e; border: 1px solid var(--border-strong); border-radius: 6px; outline: 0; text-align: right; }
.discount-grid i { color: var(--muted); font-size: 9px; font-style: normal; font-weight: 800; }

.document-model-layout { display: grid; grid-template-columns: minmax(220px, .68fr) minmax(0, 1.32fr); gap: 18px; align-items: start; }
.document-model-copy { min-width: 0; padding: 18px; background: #0b0e12; border: 1px solid var(--border); border-radius: 9px; }
.document-model-copy[hidden] { display: none; }
.document-model-copy h3 { margin: 14px 0 7px; font-size: 17px; }
.document-model-copy p { margin: 0 0 18px; color: var(--muted); font-size: 11px; }
.document-model-copy .button { width: 100%; }
.document-model-preview, .document-preview { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 14px; background: #0a0c0f; border: 1px solid var(--border); border-radius: 9px; }
.document-preview--single { grid-template-columns: minmax(0, 1fr); }
.document-preview--single article { width: min(100%, 260px); justify-self: center; }
.document-model-preview article, .document-preview article { aspect-ratio: 210 / 297; min-width: 0; padding: 10%; color: #20242a; background: #f8f8f7; border: 1px solid #d5d7da; box-shadow: 0 8px 22px rgba(0,0,0,.3); }
.document-model-preview article > span, .document-preview article > span { display: block; width: 22%; height: 5px; margin-bottom: 8%; background: var(--red); }
.document-model-preview h4, .document-preview h4 { margin: 0 0 10%; color: #16191e; font-size: 8px; letter-spacing: .08em; }
.document-model-preview i, .document-preview i { display: block; width: 100%; height: 4px; margin: 5px 0; background: #c8cbd0; border-radius: 2px; }
.document-model-preview i:nth-of-type(even), .document-preview i:nth-of-type(even) { width: 76%; }
.document-model-preview b, .document-preview b { display: block; height: 32px; margin: 10% 0; background: #ececef; border-left: 2px solid var(--red); }

.settings-competency-list { display: grid; gap: 8px; }
.settings-competency-list article { min-width: 0; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 12px; background: #0b0e12; border: 1px solid var(--border); border-radius: 8px; }
.settings-competency-list article > span { width: 34px; height: 34px; display: grid; place-items: center; color: var(--red); background: var(--red-soft); border: 1px solid rgba(237,28,36,.2); border-radius: 8px; font-size: 9px; font-weight: 900; }
.settings-competency-list strong { display: block; font-size: 11px; }
.settings-competency-list p { margin: 2px 0 0; color: var(--muted); font-size: 9px; }
.settings-competency-list b { color: var(--text-soft); font-size: 10px; white-space: nowrap; }
.proficiency-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.proficiency-grid article { min-width: 0; padding: 13px; background: #0b0e12; border: 1px solid var(--border); border-top: 2px solid var(--red); border-radius: 8px; }
.proficiency-grid strong, .proficiency-grid span { display: block; }
.proficiency-grid strong { font-size: 11px; }
.proficiency-grid span { margin-top: 4px; color: var(--muted); font-size: 9px; }

.integration-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.integration-flow article { position: relative; min-width: 0; padding: 14px; background: #0b0e12; border: 1px solid var(--border); border-radius: 9px; }
.integration-flow article > span { width: 28px; height: 28px; display: grid; place-items: center; margin-bottom: 12px; color: #fff; background: var(--red); border-radius: 50%; font-size: 9px; font-weight: 900; }
.integration-flow strong { display: block; font-size: 11px; }
.integration-flow p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.integration-flow article:not(:last-child)::after { content: ""; position: absolute; top: 27px; right: -11px; z-index: 1; width: 11px; height: 1px; background: var(--border-strong); }

.empty-inline { min-height: 112px; display: grid; place-items: center; align-content: center; gap: 4px; padding: 20px; color: var(--muted); background: #0b0e12; border: 1px dashed var(--border-strong); border-radius: 8px; text-align: center; }
.empty-inline strong { color: var(--text-soft); font-size: 11px; }
.empty-inline p { max-width: 440px; margin: 0; font-size: 9px; }
@keyframes settings-spin { to { transform: rotate(360deg); } }

@media (max-width: 1180px) {
    .commercial-value-grid, .proficiency-grid, .integration-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .commercial-options__head { display: none; }
    .commercial-option-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .commercial-option-row__label { display: block; }
    .discount-grid { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
    .integration-flow article:nth-child(even)::after { display: none; }
}

@media (max-width: 760px) {
    .document-model-layout { grid-template-columns: 1fr; }
    .section-tabs { width: 100%; }
}

@media (max-width: 680px) {
    .settings-toggles { grid-template-columns: 1fr; }
    .settings-step .panel__header { align-items: flex-start; flex-wrap: wrap; }
    .settings-catalog-grid, .commercial-value-grid, .discount-grid, .proficiency-grid, .integration-flow { grid-template-columns: 1fr; }
    .section-tabs a, .section-tabs button { flex: 1 0 auto; }
    .settings-competency-list article { grid-template-columns: 36px minmax(0, 1fr); gap: 10px; }
    .settings-competency-list b { grid-column: 2; white-space: normal; }
    .integration-flow article:not(:last-child)::after { display: none; }
    .empty-inline { min-height: 96px; padding: 16px; }
    .additional-fees__header { align-items: flex-start; flex-direction: column; }
    .additional-fee-row { grid-template-columns: 1fr; }
    .commercial-option-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .document-model-preview, .document-preview { grid-template-columns: 1fr; padding: 10px; }
    .document-model-preview article, .document-preview article { padding: 9%; }
    .discount-grid label { align-items: flex-start; flex-direction: column; }
    .discount-grid label > span:last-child { align-self: stretch; justify-content: flex-end; }
    .discount-grid input { width: min(100%, 96px); }
}


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

@media print {
    .demo-banner, .sidebar, .topbar, .settings-area, .page-heading__actions, .toolbar, .button, .toast-region { display: none !important; }
    .app-main { margin: 0; padding-top: 0; }
    .app-content--settings { display: block; }
    .page { width: 100%; padding: 0; }
    .panel { box-shadow: none; break-inside: avoid; }
}

/* Optional light theme. Dark remains the default and the user's choice is persisted. */
html[data-theme="light"] {
    --bg: #f3f5f7;
    --bg-soft: #eef1f4;
    --panel: #ffffff;
    --panel-2: #f8f9fb;
    --panel-3: #edf0f3;
    --border: #d9dee5;
    --border-strong: #c4cbd4;
    --text: #171a1f;
    --text-soft: #3e4651;
    --muted: #68717d;
    --red-soft: rgba(237, 28, 36, .09);
    --green: #087a45;
    --green-soft: rgba(8, 122, 69, .09);
    --yellow: #9a6500;
    --yellow-soft: rgba(154, 101, 0, .09);
    --blue: #1765a8;
    --blue-soft: rgba(23, 101, 168, .09);
    --shadow: 0 12px 30px rgba(31, 41, 55, .09);
    --focus: 0 0 0 3px rgba(237, 28, 36, .14);
    color-scheme: light;
}

.theme-toggle > span { display: inline-grid; place-items: center; }
.theme-toggle > span[hidden] { display: none; }
.standalone-theme-toggle { position: fixed; z-index: 80; top: 18px; right: 18px; background: var(--panel); border-color: var(--border); box-shadow: var(--shadow); }

html[data-theme="light"] body { background: var(--bg); color: var(--text); }
html[data-theme="light"] .app-main { background: radial-gradient(circle at 92% 0%, rgba(23,101,168,.055), transparent 32%), var(--bg-soft); }
html[data-theme="light"] .topbar { background: rgba(255,255,255,.94); box-shadow: 0 8px 24px rgba(31,41,55,.07); }
html[data-theme="light"] .notification-button__dot { border-color: #fff; }
html[data-theme="light"] .sidebar { background: radial-gradient(circle at 0 18%, rgba(237,28,36,.07), transparent 31%), linear-gradient(180deg, #fff, #f5f7f9 72%); border-right-color: var(--border); box-shadow: 14px 0 36px rgba(31,41,55,.07); }
html[data-theme="light"] .sidebar__brand { background: rgba(255,255,255,.76); border-bottom-color: var(--border); }
html[data-theme="light"] .sidebar__nav { scrollbar-color: #c5cbd3 transparent; }
html[data-theme="light"] .sidebar__nav-heading small,
html[data-theme="light"] .sidebar__eyebrow { color: var(--muted); }
html[data-theme="light"] .nav-link { color: #4e5865; }
html[data-theme="light"] .nav-link > .icon { color: #687381; background: rgba(17,24,39,.035); border-color: rgba(17,24,39,.06); }
html[data-theme="light"] .nav-link:hover { color: #171a1f; background: #edf0f3; border-color: var(--border); }
html[data-theme="light"] .nav-link:hover > .icon { color: #252a31; background: #e3e7eb; }
html[data-theme="light"] .nav-link.is-active { color: #fff; background: linear-gradient(100deg, #bd1118, #e52a31); border-color: rgba(169,12,19,.22); box-shadow: 0 8px 18px rgba(169,12,19,.14); }
html[data-theme="light"] .nav-link.is-active > .icon { color: #fff; background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.2); }
html[data-theme="light"] .nav-sublink { color: #5c6672; }
html[data-theme="light"] .nav-sublink:hover { color: #171a1f; background: #edf0f3; }
html[data-theme="light"] .nav-sublink.is-active { color: var(--red-dark); background: var(--red-soft); }
html[data-theme="light"] .sidebar__footer { color: var(--muted); background: linear-gradient(180deg, #f8f9fb, #eef1f4); border-top-color: var(--border); }
html[data-theme="light"] .sidebar__account-actions a,
html[data-theme="light"] .sidebar__account-actions button { color: #59636f; background: #fff; border-color: var(--border); }
html[data-theme="light"] .sidebar__account-actions a:hover { color: #171a1f; background: #e9edf1; border-color: var(--border-strong); }
html[data-theme="light"] .sidebar__account-actions button:hover { color: var(--red-dark); background: var(--red-soft); border-color: rgba(237,28,36,.28); }
html[data-theme="light"] .settings-area { background: linear-gradient(180deg, #fff, #f5f7f9); scrollbar-color: #c5cbd3 transparent; }
html[data-theme="light"] .settings-area__search input { color: var(--text); background: #fff; border-color: var(--border-strong); }
html[data-theme="light"] .settings-area__search input::placeholder,
html[data-theme="light"] .settings-area__section { color: var(--muted); }
html[data-theme="light"] .settings-area__link { color: #4e5865; }
html[data-theme="light"] .settings-area__link > .icon { color: #687381; }
html[data-theme="light"] .settings-area__link:hover { color: #171a1f; background: #edf0f3; }
html[data-theme="light"] .settings-area__link.is-active { color: #fff; }

html[data-theme="light"] :where(.panel, .metric-card, .dashboard-metric, .dashboard-scholarship-card, .attendance-session-card, .operation-session-hero, .operation-action-dialog__card, .login-card) {
    background: linear-gradient(145deg, #fff, #f8f9fb);
    border-color: var(--border);
    box-shadow: var(--shadow);
}
html[data-theme="light"] .metric-card--action:hover { background: linear-gradient(145deg, #fff, #f0f3f6); }
html[data-theme="light"] .metric-card--action[aria-pressed="true"] { background: linear-gradient(145deg, rgba(237,28,36,.10), #fff); }
html[data-theme="light"] :where(.input, .select, .textarea) { color: var(--text); background-color: #fff; border-color: var(--border-strong); }
html[data-theme="light"] :where(.input, .select, .textarea)::placeholder { color: #8a929d; }
html[data-theme="light"] :where(.input, .select, .textarea):hover { border-color: #aab2bd; }
html[data-theme="light"] .data-table th { color: #4d5763; background: #f0f3f6; border-color: var(--border); }
html[data-theme="light"] .data-table td { border-color: var(--border); }
html[data-theme="light"] .data-table tbody tr:hover td { background: rgba(23,101,168,.035); }
html[data-theme="light"] :where(.search-result, .choice-card, .eligible-choice, .participant-enrollment__result, .participant-history-registration, .operation-history-item, .scanner-queue-item__select, .scanner-summary > div, .scanner-answer-row) { background: #f8f9fb; border-color: var(--border); }
html[data-theme="light"] :where(.search-result, .choice-card, .eligible-choice, .participant-enrollment__result, .scanner-queue-item__select):hover { background: #eef1f4; }
html[data-theme="light"] :where(.modal, .dialog, .operation-action-dialog)::backdrop { background: rgba(31,41,55,.5); }
html[data-theme="light"] :where(.modal__dialog, .dialog__card, .operation-action-dialog__card) { color: var(--text); background: #fff; border-color: var(--border); box-shadow: 0 28px 80px rgba(31,41,55,.22); }
html[data-theme="light"] .person-timeline__item:not(:last-child)::before { background: var(--border); }
html[data-theme="light"] .person-timeline__dot { background: #fff; box-shadow: 0 0 0 4px #f3f5f7; }
html[data-theme="light"] .button:not(.button--primary):not(.button--confirm):not(.button--history):not(.button--warning):not(.button--danger) { color: #303741; background: #fff; border-color: var(--border-strong); }
html[data-theme="light"] .button:not(.button--primary):not(.button--confirm):not(.button--history):not(.button--warning):not(.button--danger):hover { background: #e9edf1; border-color: #aab2bd; }
html[data-theme="light"] .button--danger { color: #b50f16; }
html[data-theme="light"] .scanner-privacy { color: #17633f; }
html[data-theme="light"] .scanner-privacy p { color: #42765c; }
html[data-theme="light"] .scanner-queue-item__number,
html[data-theme="light"] .scanner-answer-row__number { color: #374151; background: #e7ebef; }
html[data-theme="light"] .scanner-queue-item__remove { color: var(--muted); background: #fff; border-color: var(--border); }

html[data-theme="light"] .login-page { background: var(--bg-soft); }
html[data-theme="light"] .login-form-wrap { background: radial-gradient(circle at 50% 10%, rgba(237,28,36,.05), transparent 34%), var(--bg-soft); }
html[data-theme="light"] .login-card__note { background: #f0f3f6; border-color: var(--border); }

@media (prefers-reduced-motion: reduce) {
    .theme-toggle, .theme-toggle * { transition: none !important; }
}

/* Alpha 7 · Login --------------------------------------------------------- */
.login-body { min-width: 320px; background: #07090b; }
.login-page { position: relative; isolation: isolate; min-height: 100svh; grid-template-columns: minmax(430px, 1.02fr) minmax(520px, .98fr); overflow: hidden; background: radial-gradient(circle at 73% 44%, rgba(35,43,52,.18), transparent 34%), #07090b; }
.login-page::before { content: ""; position: absolute; z-index: -2; inset: 0; opacity: .44; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 64px 64px; pointer-events: none; }
.login-page::after { content: ""; position: absolute; z-index: -1; inset: 4% 2% 5% 8%; opacity: .2; background: radial-gradient(circle at 91% 68%, transparent 0 126px, rgba(153,164,178,.24) 127px 128px, transparent 129px), linear-gradient(113deg, transparent 0 82%, rgba(153,164,178,.18) 82.1% 82.2%, transparent 82.3%), linear-gradient(transparent 70%, rgba(153,164,178,.15) 70.1% 70.25%, transparent 70.35%); border: 1px solid rgba(154,166,181,.08); pointer-events: none; }
.login-brand { min-width: 0; padding: clamp(38px, 5vw, 68px) clamp(42px, 6vw, 92px) 40px clamp(100px, 9vw, 142px); background: radial-gradient(circle at 31% 47%, rgba(237,28,36,.08), transparent 32%); border-right-color: rgba(255,255,255,.035); }
.login-brand::before { opacity: .16; background-size: 52px 52px; mask-image: linear-gradient(to right, #000, transparent 94%); }
.login-brand__logo { width: clamp(145px, 13vw, 188px); filter: drop-shadow(0 7px 18px rgba(0,0,0,.32)); }
.login-brand__title { position: relative; max-width: 520px; padding-left: 30px; }
.login-brand__title::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 5px; width: 7px; background: linear-gradient(#ff2932, #e20e18); box-shadow: 0 0 24px rgba(237,28,36,.2); }
.login-brand h1 { margin: 0; color: #f4f5f7; font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; font-size: clamp(62px, 7.1vw, 102px); font-weight: 400; line-height: .88; letter-spacing: .015em; text-shadow: 0 8px 30px rgba(0,0,0,.35); }
.login-brand h1 span { color: #f01d27; }
.login-brand p { margin: 16px 0 0; color: #8d939c; font-size: clamp(14px, 1.15vw, 18px); letter-spacing: .015em; }
.login-brand__footer { gap: 0; color: #555c66; font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.login-ruler { position: absolute; z-index: 2; inset: 0 auto 0 12px; width: 72px; display: grid; grid-template-rows: repeat(10, 1fr); padding: 30px 0 24px; color: #f02a33; font-size: 10px; font-weight: 850; line-height: 1; pointer-events: none; }
.login-ruler::before, .login-ruler::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; }
.login-ruler::before { width: 25px; background: repeating-linear-gradient(to bottom, #ed1c24 0 1px, transparent 1px 8px); }
.login-ruler::after { width: 49px; background: repeating-linear-gradient(to bottom, #ed1c24 0 2px, transparent 2px 80px); }
.login-ruler span { position: relative; z-index: 1; display: flex; align-items: flex-end; padding: 0 0 2px 51px; }
.login-form-wrap { min-width: 0; padding: clamp(30px, 5vw, 70px); background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.025), transparent 52%); }
.login-card { width: min(526px, 100%); padding: 0; overflow: hidden; background: linear-gradient(145deg, rgba(22,25,29,.97), rgba(14,16,19,.98)); border-color: #343941; border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,.46), inset 0 1px 0 rgba(255,255,255,.025); }
.login-card__body { padding: 30px clamp(28px, 3.6vw, 48px) 32px; }
.login-card__security { display: flex; align-items: center; justify-content: center; gap: 10px; color: #a8adb5; font-size: 11px; }
.login-card__security .icon { width: 19px; height: 19px; color: var(--red); }
.login-card h2 { margin: 24px 0 0; color: #f4f5f6; font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; font-size: clamp(30px, 3vw, 39px); font-weight: 400; letter-spacing: .08em; text-align: center; text-transform: uppercase; }
.login-card__rule { width: 31px; height: 3px; display: block; margin: 14px auto 22px; background: var(--red); border-radius: 4px; }
.login-card__intro { max-width: 390px; margin: -4px auto 20px; color: #777e88; font-size: 10px; line-height: 1.45; text-align: center; }
.login-card .alert { margin-bottom: 20px; }
.login-card .field label { display: block; margin-bottom: 7px; color: #c1c5cb; font-size: 11px; }
.login-card .field + .field { margin-top: 17px; }
.login-input { position: relative; min-width: 0; }
.login-input > .icon { position: absolute; z-index: 1; left: 14px; top: 50%; width: 17px; height: 17px; color: #737a84; transform: translateY(-50%); pointer-events: none; }
.login-input .input { width: 100%; min-height: 44px; padding: 9px 44px 9px 47px; color: #f0f1f3; background: rgba(8,10,12,.56); border-color: #333840; border-radius: 5px; }
.login-input .input::placeholder { color: #676d76; }
.login-input:hover .input { border-color: #454b55; }
.login-input:focus-within > .icon { color: var(--red); }
.login-input.password-field .icon-button { right: 2px; top: 2px; width: 40px; height: 40px; color: #737a84; }
.login-input.password-field .icon-button:hover { color: #fff; background: transparent; border-color: transparent; }
.login-input input:-webkit-autofill { box-shadow: inset 0 0 0 1000px #111419; -webkit-text-fill-color: #f0f1f3; }
.login-remember { position: relative; min-width: 0; display: flex; align-items: center; gap: 9px; margin-top: 18px; color: #9aa0a9; font-size: 10px; cursor: not-allowed; }
.login-remember input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.login-remember > span { width: 16px; height: 16px; flex: 0 0 auto; background: #0b0d10; border: 1px solid #626974; border-radius: 2px; }
.login-remember small { margin-left: auto; color: #555c66; font-size: 8px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.login-card form > .button, .login-card__hub-action { min-height: 44px; margin-top: 24px; background: linear-gradient(90deg, #f11b25, #e7111b); border-radius: 4px; box-shadow: 0 8px 22px rgba(237,28,36,.15); font-size: 11px; font-weight: 900; letter-spacing: .045em; text-transform: uppercase; }
.login-card form > .button:hover, .login-card__hub-action:hover { background: linear-gradient(90deg, #ff3039, #f01822); }
.login-card__hub-action { width: 100%; }
.login-card__note { min-height: 58px; justify-content: center; gap: 10px; margin: 0; padding: 16px 24px; color: #747a83; border-top: 1px solid #30353d; font-size: 10px; text-align: center; }
.login-card__note .icon { width: 18px; color: #7d858f; }

@media (max-width: 1100px) {
    .login-page { grid-template-columns: minmax(390px, .9fr) minmax(500px, 1.1fr); }
    .login-brand { padding-left: 96px; padding-right: 42px; }
    .login-brand h1 { font-size: clamp(60px, 7vw, 78px); }
}

@media (max-width: 900px) {
    .login-page { display: grid; grid-template-columns: 1fr; overflow: visible; }
    .login-brand { min-height: 310px; padding: 32px 36px 32px 96px; border-right: 0; border-bottom: 1px solid var(--border); }
    .login-brand__logo { width: 150px; }
    .login-brand__title { align-self: center; }
    .login-brand h1 { font-size: 62px; }
    .login-brand__footer { display: none; }
    .login-ruler { width: 62px; }
    .login-form-wrap { padding: 34px 20px 54px; }
}

@media (max-width: 560px) {
    .login-brand { min-height: 245px; padding: 24px 20px 24px 70px; }
    .login-brand__logo { width: 132px; }
    .login-brand__title { padding-left: 20px; }
    .login-brand__title::before { width: 5px; }
    .login-brand h1 { font-size: clamp(45px, 14vw, 58px); }
    .login-brand p { margin-top: 10px; font-size: 13px; }
    .login-ruler { left: 7px; width: 49px; padding-block: 20px; font-size: 8px; }
    .login-ruler::before { width: 17px; }
    .login-ruler::after { width: 28px; }
    .login-ruler span { padding-left: 33px; }
    .login-form-wrap { padding: 18px 12px 36px; }
    .login-card__body { padding: 25px 18px 27px; }
    .login-card h2 { font-size: 30px; }
    .login-card__intro { font-size: 9px; }
    .login-remember small { display: none; }
    .login-card__note { padding-inline: 16px; }
}

/* Alpha 7 · Navegação hierárquica ---------------------------------------- */
.nav-group { position: relative; margin: 3px 0; border: 1px solid transparent; border-radius: 9px; transition: background .18s ease, border-color .18s ease; }
.nav-group > summary { list-style: none; margin: 0; cursor: pointer; user-select: none; }
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-group > summary.nav-link { margin: 0; }
.nav-group > summary.nav-link::before { left: -11px; }
.nav-group > summary.nav-link:hover { color: #fff; }
.nav-group[open] { background: rgba(255,255,255,.018); border-color: rgba(255,255,255,.045); }
.nav-group.is-active { background: linear-gradient(105deg, rgba(237,28,36,.14), rgba(255,255,255,.014)); border-color: rgba(237,28,36,.13); }
.nav-group.is-active > summary.nav-link { color: #fff; }
.nav-group.is-active > summary.nav-link::before { opacity: 1; }
.nav-group.is-active > summary.nav-link > .icon { color: #fff; background: rgba(237,28,36,.18); border-color: rgba(255,70,78,.16); }
.nav-group__chevron { width: 22px; height: 22px; display: grid; place-items: center; margin-left: auto; color: #777e88; background: rgba(255,255,255,.025); border-radius: 6px; transition: color .18s ease, background .18s ease, transform .18s ease; }
.nav-group__chevron .icon { width: 12px; height: 12px; }
.nav-group[open] .nav-group__chevron { color: #fff; background: rgba(237,28,36,.12); transform: rotate(90deg); }
.nav-submenu { position: relative; display: grid; gap: 2px; padding: 3px 5px 8px 38px; }
.nav-submenu::before { content: ""; position: absolute; left: 23px; top: 1px; bottom: 12px; width: 1px; background: linear-gradient(180deg, rgba(237,28,36,.58), rgba(255,255,255,.07)); }
.nav-sublink { position: relative; min-width: 0; min-height: 38px; display: flex; align-items: center; gap: 8px; padding: 7px 9px; color: #b0b7c1; border: 1px solid transparent; border-radius: 6px; font-size: 12px; font-weight: 650; transition: color .16s ease, background .16s ease, border-color .16s ease, transform .16s ease; }
.nav-sublink::before { content: ""; position: absolute; left: -18px; width: 7px; height: 7px; background: #181c21; border: 1px solid #5d6570; border-radius: 50%; box-shadow: 0 0 0 3px #0e1114; }
.nav-sublink > .icon { width: 15px; height: 15px; color: #8f97a2; }
.nav-sublink__count { flex: 0 0 auto; margin-left: auto; padding: 2px 6px; font-size: 10px; }
.nav-sublink__count[hidden] { display: none; }
.regua-commercial-ui .cm-table td:nth-child(2) { min-width: 160px; }
.nav-sublink:hover { color: #fff; background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.055); transform: translateX(2px); }
.nav-sublink:hover::before { background: #8c939d; border-color: #b8bec6; }
.nav-sublink.is-active { color: #fff; background: linear-gradient(90deg, rgba(203,17,25,.72), rgba(151,12,18,.34)); border-color: rgba(255,67,75,.22); box-shadow: 0 6px 14px rgba(0,0,0,.12); }
.nav-sublink.is-active::before { background: var(--red); border-color: #ff6268; box-shadow: 0 0 0 3px #161013, 0 0 10px rgba(237,28,36,.52); }
.nav-sublink.is-active > .icon { color: #fff; }

/* Central operacional de provas ------------------------------------------ */
.exam-workflow { position: sticky; top: calc(var(--topbar) + var(--demo-banner)); z-index: 20; display: grid; grid-template-columns: 210px minmax(0,1fr); gap: 10px; margin: -8px 0 18px; padding: 10px; background: rgba(12,15,18,.97); border: 1px solid #3a414b; border-radius: 10px; box-shadow: 0 14px 32px rgba(0,0,0,.16); }
.exam-workflow__heading { display: flex; align-items: center; gap: 11px; padding: 10px 12px; background: rgba(237,28,36,.09); border: 1px solid rgba(237,28,36,.22); border-radius: 7px; }
.exam-workflow__heading > span { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; color: #ff6268; background: rgba(237,28,36,.15); border-radius: 7px; }
.exam-workflow__heading .icon { width: 18px; height: 18px; }
.exam-workflow__heading strong, .exam-workflow__heading small { display: block; }
.exam-workflow__heading strong { font-size: 13px; line-height: 1.25; }
.exam-workflow__heading small { margin-top: 3px; color: #aab1bb; font-size: 10px; line-height: 1.35; }
.exam-workflow__tabs { min-width: 0; display: flex; gap: 7px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; scrollbar-color: #4b535e transparent; }
.exam-workflow__tab { position: relative; min-width: 158px; min-height: 62px; flex: 1 0 158px; display: grid; grid-template-columns: 32px minmax(0,1fr); align-items: center; gap: 9px; padding: 9px 11px; color: #c0c6ce; border: 1px solid transparent; border-radius: 7px; transition: color .16s ease, background .16s ease, border-color .16s ease; }
.exam-workflow__tab:hover { color: #fff; background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.06); }
.exam-workflow__tab.is-active { color: #fff; background: linear-gradient(110deg, rgba(207,17,25,.56), rgba(117,10,15,.26)); border-color: rgba(255,70,78,.2); }
.exam-workflow__index { position: absolute; top: 4px; left: 5px; z-index: 1; min-width: 17px; height: 17px; display: grid; place-items: center; color: #fff; background: #8e1a20; border: 2px solid #111418; border-radius: 999px; font-size: 8px; font-weight: 850; }
.exam-workflow__icon { width: 32px; height: 32px; display: grid; place-items: center; color: #a8b0ba; background: rgba(255,255,255,.05); border-radius: 6px; }
.exam-workflow__icon .icon { width: 16px; height: 16px; }
.exam-workflow__tab.is-active .exam-workflow__icon { color: #fff; background: rgba(237,28,36,.2); }
.exam-workflow__copy { min-width: 0; }
.exam-workflow__copy strong, .exam-workflow__copy small {
    display: block;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: normal;
    word-break: normal;
    white-space: normal;
    text-wrap: balance;
}
.exam-workflow__copy strong { font-size: 12px; line-height: 1.25; }
.exam-workflow__copy small { margin-top: 3px; color: #969eaa; font-size: 9px; line-height: 1.3; }
.exam-workflow__tab.is-active .exam-workflow__copy small { color: rgba(255,255,255,.78); }
.exam-flow-home { display: grid; gap: 14px; }
.exam-flow-hero { position: relative; min-height: 138px; display: flex; align-items: end; justify-content: space-between; gap: 24px; overflow: hidden; padding: 24px; background: radial-gradient(circle at 88% 15%, rgba(237,28,36,.18), transparent 34%), linear-gradient(135deg, #191d23, #0f1216); border: 1px solid #343a44; border-radius: 11px; }
.exam-flow-hero::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: linear-gradient(180deg, #ff343c, #8d1016); }
.exam-flow-hero__copy { position: relative; max-width: 680px; }
.exam-flow-hero .eyebrow { color: #ff6268; font-size: 10px; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.exam-flow-hero h2 { margin: 6px 0 7px; font-size: 22px; letter-spacing: -.025em; }
.exam-flow-hero p { margin: 0; color: #b0b7c1; font-size: 13px; line-height: 1.55; }
.exam-flow-hero .button { position: relative; flex: 0 0 auto; }
.exam-flow-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 11px; }
.exam-flow-card { position: relative; min-width: 0; min-height: 198px; display: flex; flex-direction: column; align-items: flex-start; padding: 19px; overflow: hidden; color: var(--text); background: linear-gradient(145deg, #171b20, #0f1216); border: 1px solid #343a43; border-radius: 9px; transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.exam-flow-card:hover { border-color: rgba(237,28,36,.42); box-shadow: 0 14px 30px rgba(0,0,0,.17); transform: translateY(-2px); }
.exam-flow-card__number { position: absolute; top: 14px; right: 15px; color: #434a54; font-size: 19px; font-weight: 850; letter-spacing: -.04em; }
.exam-flow-card__icon { width: 38px; height: 38px; display: grid; place-items: center; color: #ff4d54; background: rgba(237,28,36,.11); border: 1px solid rgba(237,28,36,.14); border-radius: 8px; }
.exam-flow-card__icon .icon { width: 18px; height: 18px; }
.exam-flow-card__copy { display: block; margin-top: 13px; }
.exam-flow-card__copy strong, .exam-flow-card__copy small { display: block; }
.exam-flow-card__copy strong { font-size: 15px; line-height: 1.3; }
.exam-flow-card__copy small { margin-top: 7px; color: #aeb5bf; font-size: 12px; line-height: 1.5; }
.exam-flow-card__action { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 15px; color: #f0f2f4; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .045em; }
.exam-flow-card__action .icon { width: 11px; height: 11px; color: var(--red); }
.exam-flow-security { display: flex; align-items: center; gap: 12px; padding: 13px 15px; background: rgba(84,153,255,.055); border: 1px solid rgba(84,153,255,.13); border-radius: 8px; }
.exam-flow-security > span { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; color: var(--blue); background: var(--blue-soft); border-radius: 7px; }
.exam-flow-security .icon { width: 17px; height: 17px; }
.exam-flow-security strong, .exam-flow-security p { display: block; margin: 0; }
.exam-flow-security strong { font-size: 13px; }
.exam-flow-security p { margin-top: 4px; color: #aeb5bf; font-size: 11px; line-height: 1.45; }

.attendance-workspace { display: grid; gap: 14px; }
.waiting-follow-up-control { max-width: 1240px; }
.waiting-follow-up-control[data-audience="extensivo-u2"] { max-width: none; }
.waiting-follow-up-control[data-audience="extensivo-u2"] [hidden] { display: none; }
.waiting-follow-up-control[data-audience="extensivo-u2"] .waiting-follow-up-metrics { grid-template-columns: 1fr; }
.waiting-follow-up-control[data-audience="extensivo-u2"] .waiting-follow-up-metric { background: var(--panel); }
.waiting-follow-up-control[data-audience="extensivo-u2"] .waiting-follow-up-footer { padding: 12px 0; border-top: 1px solid var(--border); }
.waiting-follow-up-control[data-audience="extensivo-u2"] .waiting-follow-up-filter .field { min-width: 0; }
.waiting-follow-up-control[data-audience="extensivo-u2"] .waiting-follow-up-search { flex: 1 1 280px; max-width: 450px; }
.waiting-follow-up-control[data-audience="extensivo-u2"] .waiting-follow-up-table td:nth-child(2) { min-width: 220px; overflow-wrap: anywhere; }
.waiting-follow-up-control[data-audience="extensivo-u2"] .waiting-follow-up-table td:nth-child(2) small { display: block; margin-top: 4px; }
.waiting-follow-up-control[data-audience="extensivo-u2"] .waiting-follow-up-table td:nth-child(3) { min-width: 110px; }
.waiting-follow-up-control[data-audience="extensivo-u2"] .waiting-follow-up-table td:nth-child(4) { min-width: 145px; white-space: nowrap; }
@media (max-width: 600px) {
    .waiting-follow-up-control[data-audience="extensivo-u2"] .waiting-follow-up-actions > .button,
    .waiting-follow-up-control[data-audience="extensivo-u2"] .waiting-follow-up-footer > .button { width: 100%; }
    .waiting-follow-up-control[data-audience="extensivo-u2"] .waiting-follow-up-footer .pagination { width: 100%; justify-content: space-between; }
}
.waiting-follow-up-metrics { display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 12px; }
.waiting-follow-up-metric { min-width: 0; display: flex; align-items: center; gap: 13px; padding: 12px 16px; background: linear-gradient(145deg, #15191e, #101317); border: 1px solid var(--border); border-left: 3px solid var(--amber); border-radius: 9px; }
.waiting-follow-up-metric--participants { border-left-color: var(--blue); }
.waiting-follow-up-metric__icon { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; color: var(--amber); background: var(--amber-soft); border-radius: 8px; }
.waiting-follow-up-metric--participants .waiting-follow-up-metric__icon { color: var(--blue); background: var(--blue-soft); }
.waiting-follow-up-metric strong, .waiting-follow-up-metric small { display: block; }
.waiting-follow-up-metric strong { font-size: 25px; line-height: 1; }
.waiting-follow-up-metric small { margin-top: 4px; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.waiting-follow-up-overview { padding: 14px 16px; background: #fff; border: 1px solid #dbe3ec; border-radius: 10px; box-shadow: 0 4px 14px rgba(22,43,65,.05); }
.waiting-follow-up-overview__heading { display: flex; align-items: baseline; gap: 9px; margin-bottom: 10px; }
.waiting-follow-up-overview__heading strong { color: #15243a; font-size: 14px; }
.waiting-follow-up-overview__heading small { color: #65768a; font-size: 11px; }
.waiting-follow-up-overview__items { display: flex; flex-wrap: wrap; gap: 9px; }
.waiting-follow-up-overview__item { display: inline-flex; align-items: center; gap: 5px; min-height: 35px; padding: 8px 13px; color: #344457; background: #f3f5f7; border: 1px solid #d9e0e7; border-radius: 7px; font-size: 12px; font-weight: 700; }
.waiting-follow-up-overview__item strong { color: #172b43; font-size: 15px; }
.waiting-follow-up-overview__item--total { color: #172b43; background: #e8edf2; border-color: #cbd5df; }
.waiting-follow-up-filter { display: grid; grid-template-columns: repeat(3, minmax(170px,1fr)); align-items: end; gap: 14px; }
.waiting-follow-up-filter [data-waiting-follow-up-search] { min-width: 0; }
/* A seta vermelha destaca que estes campos possuem opções de filtro. */
.waiting-follow-up-filter .select {
    padding-right: 40px;
    background-image: linear-gradient(45deg, transparent 50%, #cf1720 50%), linear-gradient(135deg, #cf1720 50%, transparent 50%);
    background-position: calc(100% - 20px) 17px, calc(100% - 13px) 17px;
    background-size: 7px 7px;
    background-repeat: no-repeat;
}
html[data-theme="light"] .waiting-follow-up-filter .select {
    background-image: linear-gradient(45deg, transparent 50%, #c91820 50%), linear-gradient(135deg, #c91820 50%, transparent 50%);
}
.waiting-follow-up-actions, .waiting-follow-up-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.waiting-follow-up-actions { justify-content: flex-start; }
.waiting-follow-up-search { width: min(330px, 100%); margin-left: auto; }
.waiting-follow-up-search .input { min-height: 42px; }
.waiting-follow-up-table th:first-child, .waiting-follow-up-table td:first-child { width: 42px; text-align: center; }
.waiting-follow-up-table td:nth-child(5) { min-width: 210px; }
.waiting-follow-up-table td:nth-child(6) { min-width: 260px; }
.waiting-follow-up-table .select, .waiting-follow-up-table .input { width: 100%; min-width: 0; }
.button--success { color: #fff; background: #0ca678; border-color: #0ca678; }
@media (max-width: 820px) { .waiting-follow-up-filter, .waiting-follow-up-metrics { grid-template-columns: 1fr; }.waiting-follow-up-search { width: 100%; margin-left: 0; } }
.attendance-guide { display: grid; grid-template-columns: 32px minmax(150px,1fr) 20px 32px minmax(150px,1fr) 20px 32px minmax(150px,1fr); align-items: center; gap: 10px; padding: 13px 16px; background: linear-gradient(110deg, rgba(237,28,36,.12), rgba(255,255,255,.018)); border: 1px solid rgba(237,28,36,.16); border-radius: 9px; }
.attendance-guide__number { width: 32px; height: 32px; display: grid; place-items: center; color: #fff; background: #a9141b; border: 1px solid rgba(255,91,98,.28); border-radius: 8px; font-size: 11px; font-weight: 850; }
.attendance-guide strong, .attendance-guide small { display: block; }
.attendance-guide strong { font-size: 10px; }
.attendance-guide small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.attendance-guide__arrow { color: #59616c; }
.attendance-guide__arrow .icon { width: 13px; height: 13px; }
.attendance-filter-panel { padding: 0; }
.attendance-toolbar { display: grid; grid-template-columns: minmax(150px,.6fr) minmax(180px,.8fr) minmax(230px,1.4fr) minmax(125px,.5fr) minmax(150px,.6fr); align-items: end; }
.attendance-toolbar .field { gap: 5px; }
.attendance-toolbar .field > label { font-size: 9px; }
.attendance-search { grid-column: span 4; }
.attendance-search .toolbar__search { min-width: 0; }
.attendance-pagination { position: static; padding: 10px 12px; background: rgba(13,16,20,.96); border: 1px solid var(--border); border-radius: 8px; }
.attendance-pagination > span, .operation-session-pagination > span { color: var(--text-soft); font-weight: 700; white-space: nowrap; }
.attendance-pagination [data-attendance-page], .operation-session-pagination [data-session-page] { min-width: 92px; color: var(--text-soft); text-align: center; white-space: nowrap; }
.attendance-days { display: grid; gap: 18px; }
.attendance-day { display: grid; gap: 10px; }
.attendance-day__header { display: flex; align-items: end; justify-content: space-between; gap: 18px; padding: 0 3px; }
.attendance-day__header .eyebrow { display: block; margin-bottom: 3px; color: var(--red); font-size: 8px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.attendance-day__header h2 { margin: 0; font-size: 15px; text-transform: capitalize; }
.attendance-session-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 11px; }
.attendance-session-card { min-width: 0; min-height: 205px; display: flex; flex-direction: column; padding: 15px; background: linear-gradient(145deg, #171b20, #0f1216); border: 1px solid var(--border); border-radius: 9px; transition: border-color .18s ease, transform .18s ease; }
.attendance-session-card:hover { border-color: rgba(237,28,36,.34); transform: translateY(-2px); }
.attendance-session-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.attendance-session-card__time { color: #fff; font-size: 16px; font-weight: 850; letter-spacing: -.025em; }
.attendance-session-card__copy { margin-top: 14px; }
.attendance-session-card__copy strong, .attendance-session-card__copy small { display: block; }
.attendance-session-card__copy strong { font-size: 12px; }
.attendance-session-card__copy small { margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.attendance-session-card__counters { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 6px; margin: 13px 0; }
.attendance-session-card__counters > span { padding: 7px 6px; background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.045); border-radius: 6px; }
.attendance-session-card__counters strong, .attendance-session-card__counters small { display: block; }
.attendance-session-card__counters strong { font-size: 13px; }
.attendance-session-card__counters small { margin-top: 2px; color: #747c87; font-size: 7px; }
.attendance-session-card__actions { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px; margin-top: auto; }
.attendance-session-card__actions .button, .attendance-session-card__actions form { width: 100%; }
.attendance-session-card__actions form { margin: 0; }
.attendance-empty { padding: 34px; text-align: center; }
.attendance-empty strong { font-size: 13px; }
.attendance-empty p { margin: 6px 0 0; }
.operation-session-workspace.is-attendance-mode .operation-session-layout { grid-template-columns: minmax(0,1fr); }
.operation-session-workspace.is-attendance-mode .operation-session-aside { display: none; }
.operation-session-workspace.is-attendance-mode .operation-row-actions .button { min-width: 82px; }

@media (max-width: 1200px) {
    .exam-workflow { grid-template-columns: 1fr; }
    .exam-workflow__heading { display: none; }
    .exam-flow-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .attendance-session-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 800px) {
    .exam-workflow { position: static; margin-top: -6px; }
    .exam-flow-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .exam-flow-hero { align-items: start; flex-direction: column; }
    .attendance-guide { grid-template-columns: 32px 1fr; }
    .attendance-guide__arrow { display: none; }
    .attendance-toolbar { grid-template-columns: 1fr 1fr; }
    .attendance-search { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
    .exam-flow-grid { grid-template-columns: 1fr; }
    .exam-flow-card { min-height: 154px; }
    .attendance-session-grid, .attendance-toolbar { grid-template-columns: 1fr; }
    .attendance-search { grid-column: auto; }
    .attendance-session-card__counters { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .attendance-session-card__actions { grid-template-columns: 1fr; }
}

/* Alpha 7 · Painel geral -------------------------------------------------- */
.dashboard-workspace { display: grid; gap: 14px; }
.dashboard-workspace.is-loading > :not(.dashboard-status) { opacity: .68; transition: opacity .16s ease; }
.dashboard-demo-notice { margin: 0; }
.dashboard-filter-panel { padding: 11px; }
.dashboard-filters { display: grid; grid-template-columns: repeat(5, minmax(125px, 1fr)) minmax(280px, 1.4fr) auto; gap: 12px; align-items: end; }
.dashboard-filters .field { min-width: 0; }
.dashboard-filters .field label, .dashboard-period legend { display: block; margin-bottom: 6px; color: #aeb4bd; font-size: 10px; font-weight: 700; }
.dashboard-period { min-width: 0; display: grid; grid-template-columns: minmax(120px, 1fr) auto minmax(120px, 1fr); align-items: center; gap: 7px; margin: 0; padding: 0; border: 0; }
.dashboard-period legend { grid-column: 1 / -1; }
.dashboard-period .input { min-width: 0; padding-inline: 9px; }
.dashboard-period > span { color: var(--muted); }
.dashboard-filter-clear { white-space: nowrap; }
.dashboard-journey { position: relative; overflow: hidden; background: linear-gradient(135deg, rgba(25,29,35,.98), rgba(13,16,20,.98)); border: 1px solid #303640; border-radius: 10px; box-shadow: 0 18px 40px rgba(0,0,0,.16); }
.dashboard-journey::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: linear-gradient(180deg, var(--red), #851118); }
.dashboard-journey__header { display: flex; align-items: end; justify-content: space-between; gap: 18px; padding: 14px 17px 12px 19px; border-bottom: 1px solid rgba(255,255,255,.07); }
.dashboard-journey__header .eyebrow { display: block; margin-bottom: 3px; color: var(--red); font-size: 8px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.dashboard-journey__header h2 { margin: 0; font-size: 15px; }
.dashboard-journey__header p { margin: 0; color: var(--muted); font-size: 9px; }
.dashboard-journey__track { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); padding: 9px; }
.dashboard-journey__step { position: relative; min-width: 0; min-height: 68px; display: grid; grid-template-columns: 30px minmax(0,1fr) 14px; align-items: center; gap: 9px; padding: 9px 10px; color: var(--text); border: 1px solid transparent; border-radius: 7px; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.dashboard-journey__step:hover, .dashboard-journey__step:focus-visible { z-index: 1; background: rgba(255,255,255,.045); border-color: rgba(237,28,36,.28); transform: translateY(-1px); }
.dashboard-journey__step:not(:last-child)::after { content: ""; position: absolute; top: 16px; right: -1px; bottom: 16px; width: 1px; background: rgba(255,255,255,.08); }
.dashboard-journey__number { position: absolute; top: 5px; left: 6px; z-index: 1; min-width: 16px; height: 16px; display: grid; place-items: center; color: #fff; background: #a40f16; border: 2px solid #181c21; border-radius: 999px; font-size: 7px; font-weight: 850; }
.dashboard-journey__icon { width: 30px; height: 30px; display: grid; place-items: center; color: #ff5258; background: rgba(237,28,36,.12); border: 1px solid rgba(237,28,36,.16); border-radius: 7px; }
.dashboard-journey__icon .icon { width: 15px; height: 15px; }
.dashboard-journey__copy { min-width: 0; }
.dashboard-journey__copy strong, .dashboard-journey__copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-journey__copy strong { font-size: 9px; }
.dashboard-journey__copy small { margin-top: 3px; color: var(--muted); font-size: 7px; }
.dashboard-journey__arrow { color: #717985; }
.dashboard-journey__arrow .icon { width: 12px; height: 12px; }
.dashboard-scholarship { display: grid; gap: 10px; }
.dashboard-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; padding-inline: 2px; }
.dashboard-section-heading .eyebrow { display: block; margin-bottom: 4px; color: var(--red); font-size: 8px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.dashboard-section-heading h2 { margin: 0; font-size: 16px; }
.dashboard-section-heading p { max-width: 560px; margin: 0; color: var(--muted); font-size: 9px; line-height: 1.45; text-align: right; }
.dashboard-scholarship-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.dashboard-scholarship-card { --scholarship-tone: var(--red); --scholarship-soft: rgba(237,28,36,.15); min-width: 0; min-height: 82px; display: flex; align-items: center; gap: 13px; padding: 13px 14px; background: linear-gradient(145deg, #171b20, #101317); border: 1px solid var(--border); border-left: 3px solid var(--scholarship-tone); border-radius: 7px; }
.dashboard-scholarship-card__icon { width: 43px; height: 43px; flex: 0 0 auto; display: grid; place-items: center; color: var(--scholarship-tone); background: var(--scholarship-soft); border-radius: 7px; }
.dashboard-scholarship-card__icon .icon { width: 21px; height: 21px; }
.dashboard-scholarship-card strong, .dashboard-scholarship-card span:not(.dashboard-scholarship-card__icon) { display: block; }
.dashboard-scholarship-card strong { font-size: 23px; line-height: 1; letter-spacing: -.025em; }
.dashboard-scholarship-card span:not(.dashboard-scholarship-card__icon) { margin-top: 5px; color: #b1b7c0; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.dashboard-scholarship-card--green { --scholarship-tone: #22c55e; --scholarship-soft: rgba(34,197,94,.14); }
.dashboard-scholarship-card--blue { --scholarship-tone: #3b82f6; --scholarship-soft: rgba(59,130,246,.14); }
.dashboard-scholarship-card--warning { --scholarship-tone: #f39c12; --scholarship-soft: rgba(243,156,18,.14); }
.dashboard-scholarship-card--neutral { --scholarship-tone: #aeb4bd; --scholarship-soft: rgba(174,180,189,.12); }
.dashboard-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.dashboard-metric { --dashboard-tone: var(--red); --dashboard-soft: rgba(237,28,36,.13); min-width: 0; min-height: 78px; display: flex; align-items: center; gap: 13px; padding: 11px 14px; color: inherit; text-decoration: none; background: linear-gradient(145deg, #15191e, #101317); border: 1px solid var(--border); border-radius: 7px; box-shadow: 0 8px 20px rgba(0,0,0,.08); transition: border-color .18s ease, transform .18s ease; }
.dashboard-metric:hover, .dashboard-metric:focus-visible { border-color: var(--dashboard-tone); transform: translateY(-1px); }
.dashboard-metric__icon { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; color: var(--dashboard-tone); background: var(--dashboard-soft); border: 1px solid rgba(148, 163, 184, .22); border-radius: 7px; }
.dashboard-metric__icon .icon { width: 22px; height: 22px; }
.dashboard-metric strong { display: block; font-size: 22px; line-height: 1; letter-spacing: -.025em; }
.dashboard-metric span:not(.dashboard-metric__icon) { display: block; margin-top: 5px; color: #a8afb9; font-size: 10px; }
.dashboard-metric--warning { --dashboard-tone: #f39c12; --dashboard-soft: rgba(243,156,18,.13); }
.dashboard-metric--cyan { --dashboard-tone: #22b8cf; --dashboard-soft: rgba(34,184,207,.13); }
.dashboard-metric--blue { --dashboard-tone: #3b82f6; --dashboard-soft: rgba(59,130,246,.13); }
.dashboard-metric--green { --dashboard-tone: #22c55e; --dashboard-soft: rgba(34,197,94,.13); }
.dashboard-metric--purple { --dashboard-tone: #a855f7; --dashboard-soft: rgba(168,85,247,.13); }
.dashboard-analysis-grid, .dashboard-bottom-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.dashboard-bottom-grid { grid-template-columns: minmax(0, 1.65fr) minmax(300px, .8fr); }
.dashboard-analysis-grid .panel, .dashboard-bottom-grid .panel { min-height: 100%; }
.dashboard-analysis-grid .panel__header > .icon { width: 17px; color: #77808c; }
.dashboard-performance__body { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0; }
.dashboard-score { min-width: 0; padding: 3px 18px 4px 0; }
.dashboard-score + .dashboard-score { padding-left: 20px; border-left: 1px solid var(--border); }
.dashboard-score > span { color: #9fa6b0; font-size: 10px; }
.dashboard-score strong { display: block; margin: 9px 0 13px; font-size: 24px; }
.dashboard-score strong small { color: #d9dce1; font-size: 13px; }
.dashboard-competency { min-width: 0; display: grid; grid-template-columns: minmax(150px, 1.35fr) minmax(120px, 1.8fr) 58px; align-items: center; gap: 10px; margin: 10px 0; color: #aeb4bd; font-size: 9px; }
.dashboard-competency > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-competency strong { color: #e5e7eb; font-size: 9px; text-align: right; }
.dashboard-recent .data-table th { font-size: 8px; }
.dashboard-recent .data-table td { font-size: 10px; }
.dashboard-quick-actions .panel__body { display: grid; gap: 7px; padding: 9px; }
.dashboard-quick-actions .panel__body > a { min-width: 0; min-height: 52px; display: grid; grid-template-columns: 34px minmax(0,1fr) 15px; align-items: center; gap: 10px; padding: 7px 10px; color: var(--text); background: rgba(255,255,255,.015); border: 1px solid var(--border); border-radius: 6px; }
.dashboard-quick-actions .panel__body > a:hover { background: rgba(255,255,255,.04); border-color: var(--border-strong); }
.dashboard-quick-actions .panel__body > a > .icon { width: 14px; color: #aeb4bd; }
.dashboard-quick-actions strong, .dashboard-quick-actions small { display: block; }
.dashboard-quick-actions strong { font-size: 10px; }
.dashboard-quick-actions small { margin-top: 2px; overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-action__icon { width: 34px; height: 34px; display: grid; place-items: center; color: var(--red); background: var(--red-soft); border-radius: 6px; }
.dashboard-action__icon .icon { width: 17px; }
.dashboard-action__icon--warning { color: #f39c12; background: rgba(243,156,18,.12); }
.dashboard-action__icon--blue { color: #3b82f6; background: rgba(59,130,246,.12); }
.dashboard-action__icon--green { color: #22c55e; background: rgba(34,197,94,.12); }

@media (max-width: 1250px) {
    .dashboard-filters { grid-template-columns: repeat(5, minmax(125px, 1fr)); }
    .dashboard-period { grid-column: span 3; }
    .dashboard-filter-clear { grid-column: span 1; }
    .dashboard-scholarship-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
    .dashboard-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-period { grid-column: 1 / -1; }
    .dashboard-filter-clear { grid-column: 1 / -1; }
    .dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-scholarship-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-analysis-grid, .dashboard-bottom-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .dashboard-filters, .dashboard-metrics, .dashboard-scholarship-grid, .dashboard-performance__body { grid-template-columns: 1fr; }
    .dashboard-section-heading { align-items: start; flex-direction: column; gap: 5px; }
    .dashboard-section-heading p { text-align: left; }
    .dashboard-journey__header { align-items: start; flex-direction: column; gap: 4px; }
    .dashboard-journey__track { grid-template-columns: 1fr; }
    .dashboard-journey__step:not(:last-child)::after { top: auto; right: 12px; bottom: 0; left: 12px; width: auto; height: 1px; }
    .dashboard-period { grid-template-columns: 1fr; }
    .dashboard-period > span { display: none; }
    .dashboard-score { padding-right: 0; }
    .dashboard-score + .dashboard-score { margin-top: 18px; padding: 18px 0 0; border-top: 1px solid var(--border); border-left: 0; }
    .dashboard-competency { grid-template-columns: minmax(105px, 1.2fr) 1fr 48px; gap: 6px; }
}

.reports-workspace { display: grid; gap: 18px; }
.reports-tabs { display: flex; gap: 8px; width: max-content; max-width: 100%; padding: 5px; background: #0d0f12; border: 1px solid var(--border); border-radius: 10px; }
.reports-tabs__item { min-height: 38px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px; color: var(--muted); border: 1px solid transparent; border-radius: 7px; font-size: 12px; font-weight: 800; text-decoration: none; }
.reports-tabs__item .icon { width: 16px; }
.reports-tabs__item:hover { color: var(--text); background: rgba(255,255,255,.035); }
.reports-tabs__item.is-active { color: #fff; background: var(--red); border-color: rgba(255,255,255,.08); }
.reports-filters__grid { display: grid; grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(150px, 1fr)); gap: 13px; padding: 16px 18px 18px; align-items: end; }
.reports-filters__search { grid-column: span 2; }
.reports-filters__actions { display: flex; justify-content: flex-end; align-items: end; }
.reports-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(310px, 370px); gap: 18px; align-items: start; }
.reports-list-panel { min-width: 0; }
.reports-table { min-width: 790px; }
.reports-table tbody tr { transition: background .16s ease, box-shadow .16s ease; }
.reports-table tbody tr.is-selected { background: rgba(237,28,36,.07); box-shadow: inset 3px 0 var(--red); }
.reports-table td small { display: block; margin-top: 4px; }
.reports-table td:last-child { text-align: right; }
.reports-pagination { padding: 13px 18px; }
.reports-preview { position: sticky; top: 84px; overflow: hidden; }
.reports-preview__body { display: grid; gap: 18px; padding: 18px; }
.reports-preview__empty { min-height: 260px; display: grid; justify-items: center; gap: 8px; padding: 48px 20px; color: var(--muted); text-align: center; place-content: center; }
.reports-preview__empty .icon { width: 34px; height: 34px; color: var(--red); }
.reports-preview__empty strong { color: var(--text); }
.reports-preview__empty p { max-width: 280px; margin: 0; font-size: 11px; line-height: 1.6; }
.reports-preview__heading { display: grid; gap: 4px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.reports-preview__heading strong { font-size: 17px; }
.reports-preview__heading span { font-size: 11px; }
.reports-preview__facts { display: grid; grid-template-columns: 78px minmax(0,1fr); gap: 8px 12px; margin: 0; font-size: 11px; }
.reports-preview__facts dt { color: var(--muted); font-weight: 800; }

/* Relatório operacional --------------------------------------------------- */
.operational-report { display: grid; gap: 14px; }
.operational-report.is-loading > :not([data-operational-status]) { opacity: .68; transition: opacity .16s ease; }
.operational-filter-grid { display: grid; grid-template-columns: repeat(3, minmax(160px, 1fr)) repeat(2, minmax(145px, .8fr)) auto; gap: 12px; align-items: end; padding: 14px 18px 18px; }
.operational-filter-grid .field { min-width: 0; }
.operational-filter-grid label { display: block; margin-bottom: 6px; color: #aeb4bd; font-size: 10px; font-weight: 700; }
.operational-report__metrics .dashboard-metric { pointer-events: none; }
.operational-table { min-width: 1020px; }
.operational-table--sessions { min-width: 980px; }
.operational-table th:not(:first-child), .operational-table td:not(:first-child) { text-align: center; }
.operational-table td { font-variant-numeric: tabular-nums; }
.operational-table td small { display: block; margin-top: 4px; }
.operational-report__definitions { margin: 0; }

@media (max-width: 1250px) {
    .operational-filter-grid { grid-template-columns: repeat(3, minmax(150px, 1fr)); }
}

@media (max-width: 760px) {
    .operational-filter-grid { grid-template-columns: 1fr; }
}
.reports-preview__facts dd { min-width: 0; margin: 0; color: var(--text-soft); overflow-wrap: anywhere; }
.reports-score { display: grid; gap: 8px; padding: 14px; background: rgba(255,255,255,.025); border: 1px solid var(--border); border-radius: 9px; }
.reports-score > div, .reports-competency > div, .reports-preview__document { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.reports-score > div span { color: var(--text-soft); font-size: 11px; font-weight: 700; }
.reports-score > div strong { color: var(--red); font-size: 18px; }
.reports-score__track, .reports-competency__track { display: block; height: 6px; overflow: hidden; background: #24282f; border-radius: 999px; }
.reports-score__track > span, .reports-competency__track > span { display: block; height: 100%; background: linear-gradient(90deg, var(--red), #ff686d); border-radius: inherit; }
.reports-competencies { display: grid; gap: 14px; }
.reports-competencies h3 { margin: 0; font-size: 12px; }
.reports-competency { display: grid; gap: 7px; }
.reports-competency > div span { max-width: 245px; color: var(--text-soft); font-size: 10px; line-height: 1.35; }
.reports-competency > div strong { color: var(--text); font-size: 10px; white-space: nowrap; }
.reports-competency small { font-size: 9px; }
.reports-preview__document { padding-top: 13px; border-top: 1px solid var(--border); }
.reports-preview__document > span:first-child { color: var(--text-soft); font-size: 11px; font-weight: 700; }
.reports-preview__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding-top: 2px; }
.reports-preview__actions .button { width: 100%; justify-content: center; text-align: center; }
.reports-preview__actions > .muted { grid-column: 1 / -1; font-size: 10px; }
.reports-financial-summary { display: grid; gap: 10px; padding: 15px; background: rgba(255,255,255,.025); border: 1px solid var(--border); border-radius: 9px; }
.reports-financial-summary > strong { color: var(--red); font-size: 24px; }
.reports-financial-summary > p { margin: 0; color: var(--text-soft); font-size: 11px; line-height: 1.55; }
.reports-commercial-issue { scroll-margin-top: 84px; }
.reports-commercial-issue .field { align-content: start; }

/* Captação: separa identidade, etapa, prazo e comandos sem alterar o funil. */
.capture-funnel-panel .panel__body { gap: 0; }
.capture-filters {
    display: grid;
    grid-template-columns: minmax(280px, 1.25fr) minmax(190px, .72fr) minmax(230px, 1fr);
    gap: 12px;
    padding: 0 0 18px;
    border-bottom: 0;
}
.capture-filters .toolbar__search { min-width: 0; }
.capture-table-scroll { border: 1px solid var(--border); border-radius: 10px; }
.capture-table { min-width: 1180px; table-layout: fixed; }
.capture-table th:nth-child(1) { width: 29%; }
.capture-table th:nth-child(2) { width: 8%; }
.capture-table th:nth-child(3) { width: 14%; }
.capture-table th:nth-child(4) { width: 14%; }
.capture-table th:nth-child(5) { width: 16%; }
.capture-table th:nth-child(6) { width: 19%; }
.capture-table th { padding: 14px 16px; background: rgba(5, 8, 12, .72); }
.capture-table td { padding: 16px; vertical-align: middle; }
.capture-table__row { transition: background-color .16s ease, box-shadow .16s ease; }
.capture-table__row:hover { background: rgba(255, 255, 255, .025); box-shadow: inset 3px 0 0 rgba(237, 28, 36, .72); }
.capture-person__name,
.capture-person__reference,
.capture-table__deadline strong,
.capture-table__deadline small { display: block; }
.capture-person__name { color: var(--text); line-height: 1.35; }
.capture-person__reference { margin-top: 5px; font-size: 11px; letter-spacing: .02em; }
.capture-table__unit { font-weight: 800; color: #dce7f6; }
.capture-table__interest { color: #dce7f6; line-height: 1.4; }
.capture-table__stage .badge { white-space: nowrap; }
.capture-table__deadline strong { font-size: 12px; line-height: 1.35; }
.capture-table__deadline small { margin-top: 5px; font-size: 10px; line-height: 1.3; }
.capture-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.capture-actions .button { flex: 1 1 120px; justify-content: center; white-space: nowrap; }

@media (max-width: 900px) {
    .capture-filters { grid-template-columns: 1fr; }
}
.reports-privacy-note { margin: 0; }

@media (max-width: 1180px) {
    .reports-filters__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .reports-layout { grid-template-columns: 1fr; }
    .reports-preview { position: static; }
}

@media (max-width: 680px) {
    .reports-filters__grid { grid-template-columns: 1fr; }
    .reports-filters__search { grid-column: span 1; }
    .reports-filters__actions .button { width: 100%; }
    .reports-tabs { width: 100%; }
    .reports-tabs__item { flex: 1; justify-content: center; }
    .reports-preview__actions { grid-template-columns: 1fr; }
}

/* Operação integrada: agenda, participantes e detalhe de sessão */
.operation-toolbar { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); }
.operation-toolbar--proofs { grid-template-columns: minmax(230px, 1.35fr) minmax(150px, .72fr) repeat(3, minmax(145px, 1fr)) auto; }
.operation-form-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.session-name-preview { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.operation-campaign-manager .panel__body { padding-top: 14px; }
.operation-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.operation-summary-card { --operation-tone: var(--red); --operation-soft: rgba(237,28,36,.12); min-width: 0; display: flex; align-items: center; gap: 13px; padding: 15px; background: linear-gradient(145deg, #15191e, #101317); border: 1px solid var(--border); border-radius: 9px; }
.operation-summary-card > span { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; color: var(--operation-tone); background: var(--operation-soft); border: 1px solid rgba(148,163,184,.18); border-radius: 9px; }
.operation-summary-card > span .icon { width: 21px; height: 21px; }
.operation-summary-card strong, .operation-summary-card small { display: block; }
.operation-summary-card strong { font-size: 23px; line-height: 1; }
.operation-summary-card small { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.operation-summary-card--blue { --operation-tone: #4d8dff; --operation-soft: rgba(77,141,255,.13); }
.operation-summary-card--green { --operation-tone: #29c970; --operation-soft: rgba(41,201,112,.13); }
.operation-summary-card--warning { --operation-tone: #f5a623; --operation-soft: rgba(245,166,35,.13); }
.operation-summary-card--danger { --operation-tone: #ef4444; --operation-soft: rgba(239,68,68,.13); }
.participant-directory { min-width: 0; }
.participant-enrollment { overflow: hidden; border-color: rgba(84,153,255,.2); }
.participant-enrollment__form { display: grid; grid-template-columns: minmax(220px,.9fr) auto minmax(280px,1.3fr) auto; align-items: end; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.participant-enrollment__modes { display: flex; align-items: center; gap: 6px; }
.participant-enrollment__modes .button.is-active { color: #fff; background: linear-gradient(90deg, rgba(207,17,25,.72), rgba(151,12,18,.46)); border-color: rgba(255,67,75,.25); }
.participant-enrollment__search .toolbar__search { min-width: 0; }
.participant-enrollment__results { display: grid; gap: 7px; min-height: 55px; padding: 10px 18px 14px; }
.participant-enrollment__results > .muted { align-self: center; margin: 0; font-size: 9px; }
.participant-enrollment__result { display: grid; grid-template-columns: 20px minmax(0,1fr); align-items: center; gap: 10px; padding: 10px 11px; background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.05); border-radius: 7px; cursor: pointer; }
.participant-enrollment__result:has(input:checked) { background: rgba(84,153,255,.09); border-color: rgba(84,153,255,.28); }
.participant-enrollment__result input { width: 16px; height: 16px; accent-color: var(--red); }
.participant-enrollment__result strong, .participant-enrollment__result small { display: block; }
.participant-enrollment__result strong { font-size: 10px; }
.participant-enrollment__result small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.participant-enrollment__more { display: flex; justify-content: center; padding: 3px 18px 14px; }
.participant-enrollment__more .button { min-width: 190px; }
.participant-enrollment__selection { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 18px; background: rgba(20,29,41,.97); border-top: 1px solid rgba(84,153,255,.22); box-shadow: 0 -10px 24px rgba(0,0,0,.2); backdrop-filter: blur(12px); }
.participant-enrollment__selection span { color: #b5bbc4; font-size: 9px; }
.participant-enrollment__selection strong { color: #fff; font-size: 12px; }
.participant-directory .panel__header { min-height: 0; padding: 0 0 14px; border-bottom: 0; }
.participant-directory .participant-filters { padding-inline: 0; }
.participant-directory .participant-search-note { padding-inline: 0; background: transparent; }
.participant-directory .pagination { padding-inline: 0; }
.participant-filters { display: grid; grid-template-columns: minmax(250px, 1.5fr) repeat(3, minmax(150px, 1fr)) auto auto; gap: 10px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.participant-filters__search { min-width: 0; }
.participant-search-note { display: flex; align-items: center; gap: 8px; padding: 9px 18px; color: var(--muted); background: rgba(77,141,255,.05); border-bottom: 1px solid var(--border); font-size: 10px; }
.participant-search-note .icon { width: 15px; color: #69a0ff; }
.participant-table { min-width: 1040px; }
.participant-table td small, .operation-session-table td small { display: block; margin-top: 3px; color: var(--muted); }
.participant-table__actions { display: flex; gap: 6px; white-space: nowrap; }

.operation-session-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 290px); overflow: hidden; }
.operation-session-hero__main { min-width: 0; padding: 22px; }
.operation-session-hero__eyebrow { display: block; margin-bottom: 8px; color: var(--red); font-size: 10px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.operation-session-hero__title { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.operation-session-hero__title h2 { margin: 0; font-size: clamp(21px, 2vw, 29px); }
.operation-session-hero__title p { max-width: 760px; margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.operation-session-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 22px 0 0; }
.operation-session-meta div { min-width: 0; padding-left: 11px; border-left: 2px solid #292e36; }
.operation-session-meta dt { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.operation-session-meta dd { margin: 5px 0 0; color: var(--text-soft); font-size: 11px; font-weight: 700; overflow-wrap: anywhere; }
.operation-session-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.operation-occupancy { display: grid; align-content: center; gap: 10px; padding: 24px; background: linear-gradient(145deg, rgba(237,28,36,.11), rgba(237,28,36,.025)); border-left: 1px solid var(--border); }
.operation-occupancy > span { color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.operation-occupancy > strong { display: flex; align-items: baseline; gap: 5px; font-size: 34px; }
.operation-occupancy > strong small { color: var(--muted); font-size: 14px; }
.operation-occupancy p { margin: 0; color: var(--text-soft); font-size: 10px; }
.operation-session-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(390px, .9fr); gap: 18px; align-items: start; }
.operation-call-summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.operation-session-workspace.is-enrollment-mode .operation-session-hero__main { padding: 12px 18px; }
.operation-session-workspace.is-enrollment-mode .operation-session-hero__title h2 { font-size: clamp(19px, 1.7vw, 25px); }
.operation-session-workspace.is-enrollment-mode .operation-session-hero__title p { display: none; }
.operation-session-workspace.is-enrollment-mode .operation-session-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 13px; }
.operation-session-workspace.is-enrollment-mode .operation-session-controls { margin-top: 9px; padding-top: 8px; }
.operation-session-workspace.is-enrollment-mode .operation-session-controls .button { min-height: 34px; padding-block: 6px; }
.operation-session-workspace.is-enrollment-mode .operation-occupancy { padding: 14px 20px; }
.operation-session-workspace.is-enrollment-mode .operation-call-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.operation-session-workspace.is-enrollment-mode .operation-summary-card { gap: 9px; padding: 9px 12px; }
.operation-session-workspace.is-enrollment-mode .operation-summary-card > span { width: 32px; height: 32px; }
.operation-session-workspace.is-enrollment-mode .operation-summary-card > span .icon { width: 17px; height: 17px; }
.operation-session-workspace.is-enrollment-mode .operation-summary-card strong { font-size: 19px; }
.operation-session-workspace.is-enrollment-mode .operation-summary-card small { margin-top: 2px; font-size: 11px !important; }
.operation-session-aside { min-width: 0; }
.participant-session-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--border); }
.participant-select-all { display: inline-flex; align-items: center; gap: 8px; color: var(--text-soft); font-size: 11px; font-weight: 700; }
.participant-session-toolbar .select { width: min(230px, 100%); }
.operation-call-search { width: min(430px, 100%); margin-left: auto; }
.operation-session-workspace.is-updating-call .operation-session-table,
.operation-session-workspace.is-updating-call .operation-selection-bar { opacity: .6; pointer-events: none; }
.operation-selection-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 18px; color: var(--text-soft); background: rgba(237,28,36,.055); border-bottom: 1px solid rgba(237,28,36,.22); font-size: 10px; }
.operation-selection-bar strong { margin-right: auto; color: var(--text); }
.operation-selection-bar .button { min-height: 32px; padding: 6px 10px; font-size: 10px; }
.operation-session-table { min-width: 780px; }
.operation-session-list-scroll { overflow-y: visible; contain: none !important; overflow-x: visible; }
.operation-check-column { width: 36px; }
.operation-row-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.operation-row-actions .button { min-height: 30px; padding: 5px 9px; font-size: 9px; }
.operation-action-box { width: 138px; position: relative; z-index: 3; }
.operation-action-box > summary { list-style: none; }
.operation-action-box > summary::-webkit-details-marker { display: none; }
.operation-action-box__trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer; }
.operation-action-box__trigger::after { content: "⌄"; color: var(--muted); font-size: 13px; line-height: 1; transition: transform .16s ease; }
.operation-action-box[open] .operation-action-box__trigger::after { transform: rotate(180deg); }
.operation-action-box__menu { display: none; position: absolute; top: 100%; left: 0; z-index: 1000; width: max-content; min-width: 100%; gap: 6px; margin-top: 6px; padding: 7px; background: #15191f; border: 1px solid #353b45; border-radius: 8px; box-shadow: 0 12px 28px rgba(0,0,0,.32); }
.operation-action-box[open] .operation-action-box__menu { display: grid; }
.operation-action-box[open] { z-index: 1200; }
.operation-session-table .operation-action-box[open] { position: relative; z-index: 1200; }
.operation-action-box__menu .button { width: 100%; min-width: 0; white-space: normal; }

.eligible-source-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.eligible-source-switch .button { width: 100%; min-width: 0; }
.eligible-results { display: grid; gap: 7px; max-height: 460px; padding: 0 18px 14px; overflow-y: auto; }
.eligible-choice { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 11px; background: rgba(255,255,255,.02); border: 1px solid var(--border); border-radius: 8px; cursor: pointer; }
.eligible-choice:hover, .eligible-choice:has(input:checked) { border-color: rgba(237,28,36,.45); background: rgba(237,28,36,.05); }
.eligible-choice strong, .eligible-choice small { display: block; }
.eligible-choice small { margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.eligible-choice .eligible-choice__interest { color: var(--text-soft); font-weight: 700; }
.operation-add-batch { display: grid; gap: 9px; }
.operation-add-batch > label { color: var(--text-soft); font-size: 10px; font-weight: 800; }
.operation-add-batch__footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 10px; }

@media (min-width: 1181px) {
    .operation-session-workspace.is-enrollment-mode .operation-session-layout {
        height: clamp(500px, calc(100vh - 150px), 700px);
        align-items: stretch;
    }
    .operation-session-workspace.is-enrollment-mode .operation-session-layout > main,
    .operation-session-workspace.is-enrollment-mode .operation-session-aside,
    .operation-session-workspace.is-enrollment-mode .operation-session-layout > main > .panel,
    .operation-session-workspace.is-enrollment-mode [data-eligible-panel] {
        min-height: 0;
        height: 100%;
    }
    .operation-session-workspace.is-enrollment-mode .operation-session-layout > main > .panel,
    .operation-session-workspace.is-enrollment-mode [data-eligible-panel] {
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    .operation-session-workspace.is-enrollment-mode .operation-session-list-scroll,
    .operation-session-workspace.is-enrollment-mode .eligible-results {
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;
        overflow-y: auto;
    }
    .operation-session-workspace.is-enrollment-mode .operation-session-pagination,
    .operation-session-workspace.is-enrollment-mode .operation-add-batch {
        flex: 0 0 auto;
        background: var(--panel);
    }
}

.operation-history { display: grid; gap: 0; max-height: 520px; padding: 8px 18px 18px; overflow-y: auto; }
.operation-history-item { position: relative; display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 9px; padding: 12px 0; }
.operation-history-item:not(:last-child)::before { content: ""; position: absolute; left: 8px; top: 27px; bottom: -4px; width: 1px; background: #30353d; }
.operation-history-item__dot { position: relative; z-index: 1; width: 17px; height: 17px; display: grid; place-items: center; color: var(--red); background: #16191e; border: 1px solid rgba(237,28,36,.35); border-radius: 50%; }
.operation-history-item strong, .operation-history-item small { display: block; }
.operation-history-item strong { font-size: 10px; }
.operation-history-item small { margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.45; overflow-wrap: anywhere; }

.operation-action-dialog { width: min(590px, calc(100vw - 28px)); max-height: calc(100vh - 40px); padding: 0; color: var(--text); background: transparent; border: 0; overflow: visible; }
.operation-action-dialog::backdrop { background: rgba(2,4,7,.78); backdrop-filter: blur(5px); }
.operation-action-dialog__card { max-height: calc(100vh - 40px); overflow-y: auto; background: #111418; border: 1px solid #343943; border-radius: 12px; box-shadow: 0 28px 80px rgba(0,0,0,.55); }
.participant-history-dialog { width: min(860px, calc(100vw - 28px)); }
.participant-history-dialog__card { display: flex; flex-direction: column; overflow: hidden; }
.participant-history-dialog__header { flex: 0 0 auto; border-bottom: 1px solid var(--border); }
.participant-history-dialog__header h2 { margin-top: 3px; }
.participant-history-dialog__body { min-height: 0; overflow-y: auto; }
.participant-history-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 14px; background: rgba(37,99,235,.07); border: 1px solid rgba(96,165,250,.24); border-radius: 10px; }
.participant-history-summary div { display: grid; gap: 5px; }
.participant-history-summary small { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .05em; }
.participant-history-summary strong { font-size: 12px; overflow-wrap: anywhere; }
.participant-history-section { overflow: hidden; border: 1px solid var(--border); border-radius: 10px; }
.participant-history-section__heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.participant-history-section__heading h3 { margin: 0; font-size: 12px; }
.participant-history-registrations { display: grid; gap: 8px; max-height: 220px; padding: 12px; overflow-y: auto; }
.participant-history-registration { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.06); border-radius: 8px; }
.participant-history-registration strong, .participant-history-registration small { display: block; }
.participant-history-registration strong { font-size: 11px; }
.participant-history-registration small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.participant-history-timeline { max-height: 390px; padding-top: 4px; }
.participant-history-actor { flex-basis: 100%; color: var(--muted); font-size: 10px; }

@media (max-width: 680px) {
    .participant-history-summary { grid-template-columns: 1fr; }
    .participant-history-registration { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 1180px) {
    .operation-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .operation-call-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .participant-enrollment__form { grid-template-columns: 1fr 1fr; }
    .participant-enrollment__form > .button { grid-column: 1 / -1; }
    .participant-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .participant-filters__search { grid-column: 1 / -1; }
    .operation-session-layout { grid-template-columns: 1fr; }
    .operation-session-aside { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}

/* Em tablets, cada participante vira um cartão completo. Isso evita que a
   largura da tabela esconda pessoas ou ações durante a chamada. */
@media (max-width: 1050px) {
    .operation-session-list-scroll { overflow: visible; contain: none; }
    .operation-session-table { min-width: 0; display: block; }
    .operation-session-table thead { display: none; }
    .operation-session-table tbody { display: grid; gap: 10px; }
    .operation-session-table .operation-registration-row { min-width: 0; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 8px 12px; padding: 15px; background: rgba(255,255,255,.022); border: 1px solid var(--border); border-radius: 10px; }
    .operation-session-table .operation-registration-row > td { min-width: 0; display: block; padding: 0; border: 0; overflow-wrap: anywhere; }
    .operation-registration-row__select { grid-column: 1; grid-row: 1 / span 4; padding-top: 2px !important; }
    .operation-registration-row__identity, .operation-registration-row__interest, .operation-registration-row__contact, .operation-registration-row__status { grid-column: 2; }
    .operation-registration-row__identity .table-link { display: block; color: #fff; font-size: 15px; line-height: 1.35; }
    .operation-registration-row__interest { color: var(--text-soft); font-size: 13px; }
    .operation-registration-row__contact { padding-top: 8px !important; border-top: 1px solid rgba(255,255,255,.06) !important; color: var(--text-soft); font-size: 13px; }
    .operation-registration-row__status { padding-top: 3px !important; }
    .operation-registration-row__actions { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-top: 9px !important; border-top: 1px solid rgba(255,255,255,.06) !important; }
    .operation-registration-row__actions .operation-action-box { width: 100%; grid-column: 1 / -1; position: static; z-index: auto; }
    .operation-registration-row__actions .operation-action-box__menu { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .operation-registration-row__actions .operation-action-box__menu { position: static; z-index: auto; min-width: 0; width: 100%; }
    .operation-registration-row__actions .button { width: 100%; min-width: 0 !important; min-height: 44px; padding: 9px 7px; font-size: 12px; white-space: normal; }
    .operation-registration-row--empty { display: block !important; }
    .operation-registration-row__empty { width: 100%; padding: 10px 0 !important; text-align: center; }
}

@media (max-width: 760px) {
    .participant-enrollment__form { grid-template-columns: 1fr; }
    .participant-enrollment__form > .button { grid-column: auto; }
    .participant-enrollment__selection { align-items: stretch; flex-direction: column; }
    .operation-toolbar, .participant-filters, .operation-summary-grid, .operation-call-summary, .operation-session-hero, .operation-session-aside { grid-template-columns: 1fr; }
    .participant-filters__search { grid-column: auto; }
    .operation-session-hero__title, .participant-session-toolbar { align-items: flex-start; flex-direction: column; }
    .operation-session-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .operation-occupancy { border-top: 1px solid var(--border); border-left: 0; }
    .participant-session-toolbar .select { width: 100%; }
    .operation-call-search { width: 100%; margin-left: 0; }
    .operation-selection-bar strong { width: 100%; }
    .operation-add-batch__footer { align-items: stretch; flex-direction: column; }
    .operation-session-list-scroll { overflow: visible; contain: none; }
    .operation-session-table { min-width: 0; display: block; }
    .operation-session-table thead { display: none; }
    .operation-session-table tbody { display: grid; gap: 10px; }
    .operation-session-table .operation-registration-row { min-width: 0; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 7px 10px; padding: 14px; background: rgba(255,255,255,.022); border: 1px solid var(--border); border-radius: 10px; }
    .operation-session-table .operation-registration-row > td { min-width: 0; display: block; padding: 0; border: 0; overflow-wrap: anywhere; }
    .operation-registration-row__select { grid-column: 1; grid-row: 1 / span 4; padding-top: 2px !important; }
    .operation-registration-row__identity, .operation-registration-row__interest, .operation-registration-row__contact, .operation-registration-row__status { grid-column: 2; }
    .operation-registration-row__identity .table-link { display: block; color: #fff; font-size: 15px; line-height: 1.35; }
    .operation-registration-row__interest { color: var(--text-soft); font-size: 13px; }
    .operation-registration-row__contact { padding-top: 7px !important; border-top: 1px solid rgba(255,255,255,.06) !important; color: var(--text-soft); font-size: 13px; }
    .operation-registration-row__status { padding-top: 3px !important; }
    .operation-registration-row__actions { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; padding-top: 8px !important; border-top: 1px solid rgba(255,255,255,.06) !important; }
    .operation-registration-row__actions .operation-action-box { width: 100%; grid-column: 1 / -1; position: static; z-index: auto; }
    .operation-registration-row__actions .operation-action-box__menu { grid-template-columns: 1fr; }
    .operation-registration-row__actions .operation-action-box__menu { position: static; z-index: auto; min-width: 0; width: 100%; }
    .operation-registration-row__actions .button { width: 100%; min-width: 0 !important; min-height: 42px; padding: 8px 6px; font-size: 12px; white-space: normal; }
    .operation-registration-row--empty { display: block !important; }
    .operation-registration-row__empty { width: 100%; padding: 8px 0 !important; text-align: center; }
    .attendance-session-card__copy small { overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; line-height: 1.4; }
    .operation-session-pagination, .attendance-pagination { align-items: stretch; flex-direction: column; }
    .operation-session-pagination .pagination__buttons, .attendance-pagination .pagination__buttons { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
    .operation-session-pagination .button, .attendance-pagination .button { width: 100%; min-width: 0; }
}

/* Densidade visual global ------------------------------------------------ */
:root {
    --sidebar: 224px;
    --settings-area: 240px;
    --topbar: 0px;
    --text-soft: #d2d6dc;
    --muted: #a9b0ba;
}

html, body { width: 100%; max-width: 100%; overflow-x: clip; }
body { font-size: 15px; line-height: 1.5; }
body[data-demo-mode="true"] { --demo-banner: 38px; }
.app-shell, .app-main, .app-content, .page, .page > *, main, section, article, form, fieldset { min-width: 0; max-width: 100%; }
.page :where(p, small, label, legend, dt, dd, th, td) { overflow-wrap: anywhere; }

.demo-banner { font-size: 11px; line-height: 1.3; }
.sidebar__brand { height: 58px; padding-inline: 12px; }
.brand { font-size: 12px; }
.sidebar__nav { padding: 11px 8px 13px; }
.sidebar__nav-heading { padding: 0 9px 6px; }
.sidebar__nav-heading small { display: none; }
.nav-link { min-height: 42px; margin-block: 2px; font-size: 13px; }
.nav-sublink { min-height: 36px; padding-block: 5px; font-size: 12px; }
.sidebar__eyebrow { font-size: 10px !important; }
.sidebar__footer { padding: 8px 10px 10px; }
.sidebar__profile { padding: 4px 3px 8px; }
.sidebar__profile-copy strong { font-size: 12px; }
.sidebar__profile-copy small { font-size: 10px !important; line-height: 1.25; }
.sidebar__account-actions a, .sidebar__account-actions button { min-height: 35px; font-size: 11px; }
.avatar, .avatar--sidebar { font-size: 10px; }

.topbar { display: none; padding-inline: 16px; }
.topbar__marker { height: 26px; }
.topbar__context strong { font-size: 14px; }
.topbar__eyebrow { font-size: 10px; }
.page { width: min(1680px, 100%); padding: 20px 22px 40px; }
.page-heading { margin-bottom: 16px; }
.page-heading__kicker { margin-bottom: 4px; font-size: 11px; }
.page-heading p { max-width: 820px; margin-top: 5px; font-size: 14px; line-height: 1.45; }
.page-heading h1 { font-size: clamp(26px, 2.4vw, 32px); }

.settings-area { padding: 15px 10px; }
.settings-area__header span, .settings-area__section { font-size: 10px; }
.settings-area__header strong { font-size: 16px; }
.settings-area__search input { min-height: 40px; font-size: 13px; }
.settings-area__link { min-height: 44px; }
.settings-area__link-copy strong { font-size: 13px; }
.settings-area__link-copy small { font-size: 10px !important; line-height: 1.35; }

.button { min-height: 40px; padding-inline: 15px; font-size: 13px; }
.button--small { min-height: 36px; font-size: 12px; }
.input, .select, .textarea { min-height: 42px; font-size: 14px; line-height: 1.4; }
.textarea { min-height: 96px; }
.field label, .field legend, .fieldset-reset legend, .money-field > span:first-child { font-size: 13px; line-height: 1.35; }
.field small, .field-help { font-size: 11px; line-height: 1.4; }

.panel__header { min-height: 58px; padding: 13px 17px; }
.panel__header h2, .panel__header h3, .form-section__heading h2 { font-size: 16px; line-height: 1.3; }
.panel__header p, .form-section__heading p { font-size: 13px; line-height: 1.4; }
.panel__body { padding: 17px; }
.panel__footer { padding: 13px 17px; }
.section-title { font-size: 15px; }

.data-table th { padding: 11px 13px; font-size: 12px; line-height: 1.3; }
.data-table td { padding: 12px 13px; font-size: 13px; line-height: 1.4; }
.data-table .table-secondary { font-size: 12px; }
.badge { min-height: 26px; padding: 4px 8px; font-size: 11px; }
.pagination { font-size: 12px; }
.alert strong { font-size: 13px; }
.alert p { font-size: 13px; line-height: 1.45; }
.metric-card__top { font-size: 12px; }
.metric-card small, .operation-summary-card small { font-size: 12px !important; }

.person-timeline__heading strong, .timeline__copy strong { font-size: 14px; }
.person-timeline__date, .person-timeline__meta p, .timeline__copy p, .timeline__copy time { font-size: 13px; }
.toggle__copy strong, .choice-card strong, .search-result__copy strong { font-size: 14px; }
.answer-row__number, .answer-option span, .question-map span, .exam-key__row > span:first-child { font-size: 13px; }

.exam-workflow { grid-template-columns: 205px minmax(0, 1fr); }
.exam-workflow__heading strong { font-size: 13px; }
.exam-workflow__heading small { font-size: 11px !important; }
.exam-workflow__tab { min-width: 160px; min-height: 58px; }
.exam-workflow__index { min-width: 20px; height: 20px; font-size: 11px; }
.exam-workflow__copy strong { font-size: 13px; }
.exam-workflow__copy small { font-size: 11px !important; }
.exam-flow-hero .eyebrow, .attendance-day__header .eyebrow, .dashboard-journey__header .eyebrow, .dashboard-section-heading .eyebrow { font-size: 12px; }
.exam-flow-hero p, .exam-flow-card__copy small, .exam-flow-security p { font-size: 14px !important; }
.exam-flow-card__copy strong { font-size: 17px; }
.exam-flow-card__action { font-size: 12px; }

.attendance-guide strong, .attendance-session-card__copy strong { font-size: 14px; }
.attendance-guide small, .attendance-session-card__copy small { font-size: 12px !important; }
.attendance-session-card__counters small { font-size: 12px !important; }
.attendance-toolbar .field > label { font-size: 13px; }
.attendance-day__header h2 { font-size: 18px; }

.dashboard-filters .field label, .dashboard-period legend { font-size: 13px; }
.dashboard-journey__header h2 { font-size: 18px; }
.dashboard-journey__header p, .dashboard-section-heading p { font-size: 13px; }
.dashboard-journey__step { min-height: 82px; }
.dashboard-journey__number { min-width: 20px; height: 20px; font-size: 11px; }
.dashboard-journey__copy strong { font-size: 14px; }
.dashboard-journey__copy small { font-size: 12px !important; }
.dashboard-scholarship-card span:not(.dashboard-scholarship-card__icon), .dashboard-metric span:not(.dashboard-metric__icon) { font-size: 13px; }
.dashboard-competency, .dashboard-competency strong { font-size: 13px; }
.dashboard-score > span { font-size: 13px; }
.dashboard-recent .data-table th { font-size: 12px; }
.dashboard-recent .data-table td { font-size: 14px; }
.dashboard-quick-actions strong { font-size: 14px; }
.dashboard-quick-actions small { font-size: 12px !important; }

.settings-state p, .settings-nav__empty, .settings-summary__item small, .settings-profile small,
.settings-catalog-options > span, .section-tabs a, .section-tabs button, .money-field i,
.settings-competency-list p, .settings-competency-list b, .proficiency-grid span,
.integration-flow p, .empty-inline p { font-size: 13px; }
.settings-nav__links a strong, .settings-summary__item strong, .settings-competency-list strong,
.proficiency-grid strong, .integration-flow strong, .empty-inline strong { font-size: 14px; }
.settings-step__number, .settings-competency-list article > span, .integration-flow article > span { font-size: 12px; }
.discount-grid strong { font-size: 15px; }
.discount-grid small, .discount-grid i { font-size: 13px !important; }
.discount-grid input { min-height: 40px; font-size: 15px; }
.document-model-copy p { font-size: 14px; }

.reports-tabs { min-width: 0; }
.reports-tabs__item { min-height: 44px; font-size: 14px; }
.reports-preview__empty p, .reports-preview__heading span, .reports-preview__facts,
.reports-score > div span, .reports-competency > div span, .reports-competency > div strong,
.reports-preview__document > span:first-child, .reports-preview__actions > .muted,
.reports-financial-summary > p, .operational-filter-grid label { font-size: 13px; }
.reports-competencies h3 { font-size: 15px; }

.participant-enrollment__results > .muted, .participant-enrollment__result small,
.participant-enrollment__selection span, .participant-search-note, .operation-selection-bar,
.eligible-choice small, .operation-add-batch > label, .operation-add-batch__footer,
.operation-history-item small { font-size: 13px !important; }
.participant-enrollment__result strong, .operation-history-item strong { font-size: 14px; }
.operation-session-hero__title p { font-size: 14px; }
.operation-session-meta dt, .operation-occupancy > span { font-size: 12px; }
.operation-session-meta dd, .operation-occupancy p, .participant-select-all { font-size: 14px; }
.operation-row-actions .button, .operation-selection-bar .button { min-height: 38px; font-size: 13px; }

.login-card__intro, .login-card .field label, .login-card__security, .login-card__note,
.login-remember, .login-brand__footer { font-size: 13px; }
.login-card form > .button, .login-card__hub-action { min-height: 48px; font-size: 14px; }

@media (max-width: 900px) {
    :root {
        --sidebar: min(86vw, 280px);
        --topbar: 50px;
    }
    .topbar { display: flex; }
    .topbar__context { display: none; }
    .topbar__menu { margin-right: 0; }
}

@media (max-width: 680px) {
    body[data-demo-mode="true"] { --demo-banner: 54px; }
    .demo-banner { font-size: 11px; }
    .page { padding: 20px 12px 44px; }
    .page-heading h1 { font-size: clamp(27px, 9vw, 34px); }
    .panel__header, .panel__body, .panel__footer { padding-inline: 15px; }
    .reports-workspace, .reports-filters, .reports-layout, .reports-list-panel, .reports-preview { min-width: 0; max-width: 100%; }
    .reports-tabs { width: 100%; max-width: 100%; overflow-x: auto; }
    .reports-tabs__item { min-width: 0; flex: 1 1 0; padding-inline: 8px; text-align: center; white-space: normal; }
    .reports-filters__grid { min-width: 0; padding-inline: 14px; }
    .reports-filters__grid > * { min-width: 0; max-width: 100%; }
}

@media (max-width: 420px) {
    body[data-demo-mode="true"] { --demo-banner: 60px; }
    .demo-banner { padding-inline: 5px; font-size: 11px; }
    .settings-area { padding-inline: 10px; }
    .settings-area__link { min-width: 165px; }
    .panel__header { align-items: flex-start; flex-wrap: wrap; }
    .operation-session-meta { grid-template-columns: 1fr; }
}

@media (prefers-contrast: more) {
    :root { --border: #555d68; --border-strong: #737d8a; --muted: #d3d7dd; }
    :focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px #b90f16; }
}

/* Scanner OMR local ------------------------------------------------------- */
.scanner-workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: 18px; align-items: start; }
.scanner-workspace__main, .scanner-workspace__aside { min-width: 0; }
.scanner-desktop-download { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 18px 22px; align-items: center; padding: 24px; overflow: hidden; background: linear-gradient(125deg, color-mix(in srgb, var(--red-soft) 45%, var(--panel)) 0%, var(--panel) 68%); border-color: var(--border); border-top: 3px solid var(--red); }
.scanner-desktop-download__visual { width: 72px; height: 72px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, var(--red), var(--red-dark)); border-radius: 20px; box-shadow: 0 8px 20px rgba(189, 18, 28, .18); }
.scanner-desktop-download__visual svg, .scanner-desktop-download__visual .icon { width: 36px; height: 36px; font-size: 36px; }
.scanner-desktop-download__copy { min-width: 0; }
.scanner-desktop-download__eyebrow { display: block; margin-bottom: 6px; color: var(--red); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.scanner-desktop-download h2 { margin: 0; font-size: clamp(19px, 1.5vw, 23px); line-height: 1.25; }
.scanner-desktop-download p { max-width: 680px; margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.scanner-desktop-download__meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; color: var(--text-soft); font-size: 11px; font-weight: 600; }
.scanner-desktop-download__meta span { display: inline-flex; align-items: center; padding: 4px 9px; background: var(--panel); border: 1px solid var(--border); border-radius: 6px; }
.scanner-desktop-download__action { min-width: 0; grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.scanner-desktop-download__action .button { justify-content: center; white-space: nowrap; }
.scanner-desktop-download__action small { max-width: 260px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.scanner-privacy { display: flex; align-items: center; gap: 12px; padding: 13px 15px; color: #a8d8bf; background: var(--green-soft); border: 1px solid rgba(39,201,120,.24); border-radius: 9px; }
.scanner-privacy svg { width: 22px; height: 22px; flex: 0 0 auto; color: var(--green); }
.scanner-privacy strong, .scanner-privacy p { display: block; }
.scanner-privacy p { margin: 3px 0 0; color: #8dbaa2; font-size: 12px; }
.scanner-capture { position: relative; height: clamp(320px, 42vw, 520px); display: grid; place-items: center; overflow: hidden; background: #060708; border: 1px solid var(--border-strong); border-radius: 12px; cursor: pointer; }
.scanner-capture:focus-visible { outline: 3px solid color-mix(in srgb, var(--red) 72%, white); outline-offset: 3px; }
.scanner-capture__video { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.scanner-capture__guide { min-width: 0; min-height: 0; width: auto; height: calc(100% - 28px); aspect-ratio: 1 / 2.9; position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #e4e7eb; background: rgba(12,14,17,.82); border: 1px dashed rgba(255,255,255,.42); border-radius: 8px; text-align: center; pointer-events: none; }
.scanner-capture.is-live .scanner-capture__guide { background: rgba(0,0,0,.08); border-color: rgba(255,255,255,.85); }
.scanner-capture.is-live .scanner-capture__guide > svg, .scanner-capture.is-live .scanner-capture__guide > strong, .scanner-capture.is-live .scanner-capture__guide > small, .scanner-capture.is-live .scanner-capture__guide > .scanner-capture__hint { opacity: 0; }
.scanner-capture__guide > svg { width: 34px; height: 34px; color: var(--red); }
.scanner-capture__guide > strong { font-size: 15px; }
.scanner-capture__guide > small { max-width: 250px; color: var(--muted); font-size: 12px; }
.scanner-capture__hint { max-width: 250px; margin-top: 4px; color: #fff; font-size: 11px; font-weight: 700; }
.scanner-capture__corner { width: 30px; height: 30px; position: absolute; border-color: var(--red); border-style: solid; }
.scanner-capture__corner--tl { top: -2px; left: -2px; border-width: 3px 0 0 3px; }
.scanner-capture__corner--tr { top: -2px; right: -2px; border-width: 3px 3px 0 0; }
.scanner-capture__corner--bl { bottom: -2px; left: -2px; border-width: 0 0 3px 3px; }
.scanner-capture__corner--br { right: -2px; bottom: -2px; border-width: 0 3px 3px 0; }
.scanner-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.scanner-native-camera { display: none; cursor: pointer; }
.scanner-file-button { cursor: pointer; }
.scanner-message { min-height: 20px; margin: 0; font-size: 12px; }
.scanner-message--danger { color: #ff8d92; }
.scanner-message--warning { color: #f0c56e; }
.scanner-message--success { color: #7bddaa; }
.scanner-batch-progress { height: 6px; overflow: hidden; background: #090b0d; border: 1px solid var(--border); border-radius: 999px; }
.scanner-batch-progress span { width: 0; height: 100%; display: block; background: linear-gradient(90deg, var(--red-dark), var(--red)); border-radius: inherit; transition: width .2s ease; }
.scanner-queue { display: grid; gap: 7px; }
.scanner-queue-item { display: grid; grid-template-columns: minmax(0, 1fr) 38px; gap: 7px; align-items: stretch; }
.scanner-queue-item__select { min-width: 0; display: grid; grid-template-columns: 36px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 9px 10px; color: var(--text); background: #0b0d10; border: 1px solid var(--border); border-radius: 8px; text-align: left; cursor: pointer; }
.scanner-queue-item__select:hover, .scanner-queue-item.is-active .scanner-queue-item__select { background: #14171b; border-color: var(--border-strong); }
.scanner-queue-item.is-active .scanner-queue-item__select { box-shadow: inset 3px 0 0 var(--red); }
.scanner-queue-item__number { display: grid; place-items: center; width: 32px; height: 32px; color: var(--muted); background: #191c21; border-radius: 6px; font-size: 11px; font-weight: 900; }
.scanner-queue-item__copy { min-width: 0; display: block; }
.scanner-queue-item__copy strong, .scanner-queue-item__copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scanner-queue-item__copy strong { font-size: 12px; }
.scanner-queue-item__copy small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.scanner-queue-item__remove { color: var(--muted); background: #0b0d10; border: 1px solid var(--border); border-radius: 8px; font-size: 22px; cursor: pointer; }
.scanner-queue-item__remove:hover { color: #fff; background: var(--red-soft); border-color: rgba(237,28,36,.45); }
.scanner-preview { max-width: 700px; margin: 0 auto; overflow: hidden; background: #fff; border: 1px solid var(--border-strong); border-radius: 8px; box-shadow: 0 16px 40px rgba(0,0,0,.3); }
.scanner-preview canvas { width: 100%; height: auto; display: block; }
.scanner-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.scanner-summary > div { padding: 14px; background: #0b0d10; border: 1px solid var(--border); border-radius: 8px; text-align: center; }
.scanner-summary strong { display: block; font-size: 24px; }
.scanner-summary small { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.scanner-answer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.scanner-answer-row { display: grid; grid-template-columns: 38px repeat(5, minmax(34px, 1fr)); gap: 5px; align-items: center; padding: 10px; background: #0b0d10; border: 1px solid var(--border); border-radius: 8px; }
.scanner-answer-row.is-review { background: rgba(240,180,41,.08); border-color: rgba(240,180,41,.58); }
.scanner-answer-row.is-blank { background: rgba(255,255,255,.025); }
.scanner-answer-row.is-invalid { background: rgba(237,28,36,.08); border-color: rgba(237,28,36,.58); }
.scanner-answer-row__number { display: grid; place-items: center; width: 32px; height: 32px; color: #fff; background: #1a1e24; border-radius: 6px; font-size: 12px; font-weight: 900; }
.scanner-answer-row .answer-option span { width: 30px; height: 30px; }
.scanner-blank-button { grid-column: 2 / span 3; min-height: 28px; color: var(--muted); background: transparent; border: 1px solid var(--border); border-radius: 5px; font: inherit; font-size: 10px; cursor: pointer; }
.scanner-blank-button:hover, .scanner-blank-button.is-selected { color: #fff; background: #252a31; border-color: #69727e; }
.scanner-answer-row > small { grid-column: 5 / span 2; color: var(--muted); font-size: 10px; text-align: right; }
.scanner-answer-row.is-review > small { color: #f0c56e; font-weight: 700; }
.scanner-answer-row.is-invalid > small { color: #ff8a8f; font-weight: 700; }
.scanner-import-notice { margin-bottom: 18px; }

.answer-sheet-screen { display: grid; justify-items: center; gap: 16px; }
.answer-sheet-screen__notice { width: min(100%, 920px); }
.answer-sheet-paper { width: min(100%, 840px); background: #fff; box-shadow: 0 20px 60px rgba(0,0,0,.45); }
.answer-sheet-paper svg { width: 100%; height: auto; display: block; }

@media (max-width: 1050px) {
    .scanner-workspace { grid-template-columns: 1fr; }
    .scanner-workspace__aside { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
}

@media (hover: none) and (pointer: coarse) {
    .scanner-capture { display: none; }
    .scanner-native-camera { display: inline-flex; }
    .scanner-actions [data-scanner-start],
    .scanner-actions [data-scanner-capture-button] { display: none; }
    .scanner-workspace.is-safe-live .scanner-capture { display: grid; }
    .scanner-workspace.is-safe-live .scanner-actions [data-scanner-capture-button] { display: inline-flex; }
    .scanner-workspace.is-safe-live [data-scanner-safe-camera],
    .scanner-workspace.is-safe-live [data-scanner-single-camera] { display: none; }
}

@media (max-width: 760px) {
    .scanner-desktop-download { grid-template-columns: 48px minmax(0, 1fr); padding: 16px; }
    .scanner-desktop-download__visual { width: 48px; height: 48px; border-radius: 13px; }
    .scanner-desktop-download__visual svg, .scanner-desktop-download__visual .icon { width: 26px; height: 26px; font-size: 26px; }
    .scanner-desktop-download__action { min-width: 0; grid-column: 1 / -1; }
    .scanner-capture { height: clamp(360px, 62vh, 480px); }
    .scanner-answer-grid { grid-template-columns: 1fr; }
    .scanner-workspace__aside { display: grid; grid-template-columns: 1fr; }
    .scanner-actions { display: grid; grid-template-columns: 1fr; }
    .scanner-actions .button { width: 100%; }
    .scanner-native-camera { display: inline-flex; }
    .scanner-actions [data-scanner-start] { display: none; }
    .scanner-queue-item__select { grid-template-columns: 34px minmax(0,1fr); }
    .scanner-queue-item__select .badge { grid-column: 2; justify-self: start; }
}

@media (max-width: 420px) {
    .scanner-summary { grid-template-columns: repeat(2, 1fr); }
    .scanner-answer-row { grid-template-columns: 32px repeat(5, minmax(0,1fr)); padding-inline: 6px; }
    .scanner-answer-row .answer-option span { width: 27px; height: 27px; }
}

/* Fila de agendamento ---------------------------------------------------- */
/*
 * A tabela possui dez colunas e antes herdava larguras mínimas do componente
 * genérico. Isso criava uma segunda navegação horizontal no rodapé. As
 * proporções abaixo mantêm todas as informações dentro do painel.
 */
.waiting-list-results .table-scroll { overflow-x: hidden; }
.waiting-list-table { width: 100%; min-width: 0; table-layout: fixed; }
.waiting-list-results .table-scroll,
.waiting-list-table,
.waiting-list-table tbody { height: auto !important; min-height: 0 !important; }
.waiting-list-table tbody tr { height: 1px !important; }
.waiting-list-table th,
.waiting-list-table td,
.waiting-list-table td:first-child,
.waiting-list-table td:nth-child(2),
.waiting-list-table td:last-child {
    min-width: 0;
    height: 1px !important;
    padding: 6px 7px;
    line-height: 1.22;
    overflow-wrap: anywhere;
}
.waiting-list-table th:nth-child(1) { width: 3.5%; }
.waiting-list-table th:nth-child(2) { width: 14%; }
.waiting-list-table th:nth-child(3) { width: 7.5%; }
.waiting-list-table th:nth-child(4) { width: 10.5%; }
.waiting-list-table th:nth-child(5) { width: 11%; }
.waiting-list-table th:nth-child(6) { width: 12.5%; }
.waiting-list-table th:nth-child(7) { width: 11.5%; }
.waiting-list-table th:nth-child(8) { width: 13%; }
.waiting-list-table th:nth-child(9) { width: 8%; }
.waiting-list-table th:nth-child(10) { width: 8.5%; }
.waiting-list-table .badge {
    max-width: 100%;
    height: auto;
    justify-content: center;
    text-align: center;
    white-space: normal;
}
.waiting-list-table .button--compact {
    width: 100%;
    min-height: 38px;
    padding-inline: 6px;
    white-space: normal;
}
.waiting-list-table td strong,
.waiting-list-table td small { margin: 0; line-height: 1.22; }
.waiting-list-table td small + small { margin-top: 2px; }
.waiting-list-table .select {
    min-height: 34px;
    height: 34px;
    padding-top: 4px;
    padding-bottom: 4px;
    font-size: 12px;
    background-position: calc(100% - 16px) 13px, calc(100% - 11px) 13px;
}

/* Acompanhamento da lista de espera: mais registros visíveis por tela. */
.waiting-follow-up-table th { padding: 8px 10px; font-size: 11px; }
.waiting-follow-up-table td { padding: 7px 10px; font-size: 13px; line-height: 1.25; }
.waiting-follow-up-table .select,
.waiting-follow-up-table .input {
    min-height: 36px;
    height: 36px;
    padding-top: 5px;
    padding-bottom: 5px;
    font-size: 13px;
}
.waiting-follow-up-table .select {
    background-position: calc(100% - 16px) 14px, calc(100% - 11px) 14px;
}

@media print {
    @page { size: A4 portrait; margin: 0; }
    .answer-sheet-page { background: #fff !important; }
    .answer-sheet-page .demo-banner, .answer-sheet-page .sidebar, .answer-sheet-page .topbar,
    .answer-sheet-page .page-heading, .answer-sheet-page .answer-sheet-screen__notice,
    .answer-sheet-page .toast-region { display: none !important; }
    .answer-sheet-page .app-main, .answer-sheet-page .app-content, .answer-sheet-page .page,
    .answer-sheet-page .answer-sheet-screen { width: 210mm !important; min-width: 210mm !important; max-width: 210mm !important; height: 297mm !important; min-height: 297mm !important; margin: 0 !important; padding: 0 !important; display: block !important; background: #fff !important; }
    .answer-sheet-page .answer-sheet-paper { width: 210mm !important; height: 297mm !important; margin: 0 !important; box-shadow: none !important; }
    .answer-sheet-page .answer-sheet-paper svg { width: 210mm !important; height: 297mm !important; }
}

/* Light-theme coverage for legacy components that still define dark surfaces directly. */
html[data-theme="light"] :where(
    .segmented, .answer-grid, .answer-row__number, .answer-option span, .question-map span,
    .answer-summary div, .vault-file, .access-matrix__head, .candidate-autocomplete__results,
    .reconciliation-case, .reconciliation-person, .rectification-application, .rectification-card,
    .rectification-card__reason, .timeline__dot, .settings-toggle, .settings-catalog-options > span,
    .section-tabs, .commercial-option-row, .money-field > span:last-child, .discount-grid label,
    .discount-grid input, .document-model-copy, .document-model-preview, .document-preview,
    .settings-competency-list article, .proficiency-grid article, .integration-flow article,
    .empty-inline, .exam-workflow, .exam-flow-hero, .exam-flow-card, .waiting-follow-up-metric,
    .attendance-pagination, .dashboard-journey, .reports-tabs, .operation-summary-card,
    .operation-action-box__menu, .operation-history-item__dot, .scanner-batch-progress
) {
    color: var(--text);
    background: #ffffff;
    border-color: var(--border);
    box-shadow: var(--shadow);
}

html[data-theme="light"] :where(
    .settings-toggle:hover, .exam-flow-card:hover, .operation-action-box__menu button:hover
) { background: #eef1f4; }

html[data-theme="light"] .input--readonly { background: #f0f3f6; }
html[data-theme="light"] .answer-option span { color: #59636f; background: #edf0f3; }
html[data-theme="light"] .question-map span,
html[data-theme="light"] .answer-row__number { background: #edf0f3; }
html[data-theme="light"] .candidate-autocomplete__results { box-shadow: 0 18px 42px rgba(31,41,55,.16); }
html[data-theme="light"] .participant-enrollment__selection { color: var(--text); background: rgba(255,255,255,.97); border-top-color: var(--border); box-shadow: 0 -10px 24px rgba(31,41,55,.08); }
html[data-theme="light"] .capture-table th { background: #eef1f4; }
html[data-theme="light"] .nav-sublink::before { background: #fff; border-color: #9aa3ae; box-shadow: 0 0 0 3px #eef1f4; }

html[data-theme="light"] .login-body,
html[data-theme="light"] .login-page { background: #eef1f4; }
html[data-theme="light"] .login-brand { background: radial-gradient(circle at 15% 70%, rgba(237,28,36,.08), transparent 38%), linear-gradient(135deg,#ffffff,#f2f4f7); border-right-color: var(--border); }
html[data-theme="light"] .login-brand__title h1,
html[data-theme="light"] .login-brand__title p,
html[data-theme="light"] .login-brand__footer { color: var(--text); }
html[data-theme="light"] .login-form-wrap { background: radial-gradient(circle at 50% 10%, rgba(237,28,36,.05), transparent 34%), #eef1f4; }
html[data-theme="light"] .login-card { color: var(--text); background: #fff; border-color: var(--border); box-shadow: 0 30px 70px rgba(31,41,55,.14); }
html[data-theme="light"] .login-input .input { color: var(--text); background: #fff; border-color: var(--border-strong); }
html[data-theme="light"] .login-remember > span { background: #fff; border-color: #8a939f; }

/* The live camera area intentionally remains dark for image contrast. */
html[data-theme="light"] .scanner-capture__guide { color: #e4e7eb; }

/* Keep legacy white text readable after its surface becomes light. */
html[data-theme="light"] .alert strong { color: currentColor; }
html[data-theme="light"] .segmented button:not(.is-active),
html[data-theme="light"] .exam-workflow__tab:not(.is-active),
html[data-theme="light"] .exam-flow-card__action,
html[data-theme="light"] .attendance-session-card__time,
html[data-theme="light"] .participant-enrollment__selection strong,
html[data-theme="light"] .operation-registration-row__identity .table-link,
html[data-theme="light"] .dashboard-journey :where(h2, h3, strong, p, small),
html[data-theme="light"] .exam-flow-hero :where(h1, h2, h3, strong, p),
html[data-theme="light"] .exam-flow-card :where(h2, h3, strong, p, small) {
    color: var(--text);
    opacity: 1;
}

html[data-theme="light"] .nav-group > summary.nav-link:hover,
html[data-theme="light"] .nav-group[open] > summary.nav-link:not(.is-active),
html[data-theme="light"] .nav-group[open] .nav-group__chevron { color: var(--text); }
html[data-theme="light"] .nav-group.is-active > summary.nav-link,
html[data-theme="light"] .nav-group.is-active > summary.nav-link > .icon,
html[data-theme="light"] .nav-sublink.is-active,
html[data-theme="light"] .nav-sublink.is-active > .icon { color: #fff; }

html[data-theme="light"] .login-card h2 { color: var(--text); }
html[data-theme="light"] .login-brand h1 { color: var(--text); text-shadow: none; }
html[data-theme="light"] .login-input.password-field .icon-button:hover { color: var(--text); }
html[data-theme="light"] .login-input input:-webkit-autofill {
    box-shadow: inset 0 0 0 1000px #fff;
    -webkit-text-fill-color: var(--text);
}

html[data-theme="light"] .rectification-change-list span { color: #8d171d; }
html[data-theme="light"] .field-error,
html[data-theme="light"] .text-danger { color: #b4232a !important; }
html[data-theme="light"] .settings-feedback.alert--danger { color: #9f1c23; }

html[data-theme="light"] .brand img,
html[data-theme="light"] .login-brand__logo {
    padding: 7px 9px;
    background: #171a1f;
    border-radius: 7px;
    box-sizing: content-box;
}

/* High-contrast light mode: text must remain readable on ordinary office screens. */
html[data-theme="light"] {
    --text: #050607;
    --text-soft: #191c20;
    --muted: #424850;
    --border: #cbd1d8;
    --border-strong: #aeb6c0;
}

html[data-theme="light"] body,
html[data-theme="light"] :where(h1, h2, h3, h4, h5, h6, strong, label, legend, dt, dd, th, td) {
    color: var(--text);
}

html[data-theme="light"] :where(p, small, .muted, .table-secondary, .field-help, .page-heading__kicker, .topbar__eyebrow) {
    color: var(--muted);
    opacity: 1;
}

html[data-theme="light"] :where(.input, .select, .textarea, button, a) { opacity: 1; }
html[data-theme="light"] :where(.input, .select, .textarea) { color: #050607; }
html[data-theme="light"] :where(.input, .select, .textarea)::placeholder { color: #59616b; opacity: 1; }

/* Criação de prova: mantém o formulário completo visível em uma tela desktop. */
@media (min-width: 1181px) and (min-height: 700px) {
    .page--fixed-scheduling {
        height: calc(100dvh - var(--topbar) - var(--demo-banner));
        min-height: 0;
        padding-bottom: 18px;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }
    .page--fixed-scheduling .page-heading { flex: 0 0 auto; margin-bottom: 16px; }
    .page--fixed-scheduling .operation-workspace--sessions {
        flex: 1 1 auto;
        min-height: 0;
        align-items: stretch;
    }
    .operation-workspace--sessions > .panel {
        min-height: 0;
        display: grid;
        grid-template-rows: auto auto minmax(0, 1fr) auto;
        overflow: hidden;
    }
    .operation-workspace--sessions > .panel > .table-scroll {
        min-height: 0;
        overflow-x: auto;
        overflow-y: auto;
        scrollbar-gutter: stable;
    }
    .operation-workspace--sessions > aside { min-height: 0; overflow: hidden; }
    .session-create-panel .panel__header { min-height: 56px; padding: 11px 17px; }
    .session-create-panel .panel__header h2 { font-size: 16px; }
    .session-create-panel .panel__header p { margin-top: 2px; font-size: 12px; line-height: 1.3; }
    .session-create-panel .panel__body { padding: 13px 17px; gap: 10px 12px; }
    .session-create-panel .field { gap: 5px; }
    .session-create-panel .field label,
    .session-create-panel .field legend { font-size: 12px; line-height: 1.3; }
    .session-create-panel :where(.input, .select) { min-height: 39px; padding-block: 7px; font-size: 13px; }
    .session-create-panel .select { background-position-y: 16px; }
    .session-create-panel .textarea { min-height: 56px; max-height: 56px; padding-block: 8px; font-size: 13px; resize: none; }
    .session-create-panel .choice-grid--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
    .session-create-panel .choice-card { min-height: 47px; padding: 9px 8px; align-items: center; }
    .session-create-panel .choice-card input { top: 15px; right: 8px; width: 15px; height: 15px; }
    .session-create-panel .choice-card span { padding-right: 20px; }
    .session-create-panel .choice-card strong { overflow: hidden; font-size: 11px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
    .session-create-panel .choice-card small { display: none; }
    .session-create-panel .field-help,
    .session-create-panel .field small { margin: 0; font-size: 10px !important; line-height: 1.3; }
    .session-create-panel .field:has(#session-title-pattern) > .field-help,
    .session-create-panel .field:has(#session-status) > .field-help { display: none; }
    .session-create-panel .session-name-preview { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .session-create-panel .panel__footer { padding: 11px 17px; }
    .session-create-panel .panel__footer .button { min-height: 40px; padding-inline: 18px; font-size: 13px; }
}

/* Pré-cadastro: formulário completo e legível dentro de uma única tela. */
@media (min-width: 1280px) and (min-height: 820px) {
    .page--fixed-pre-registration {
        height: calc(100dvh - var(--topbar) - var(--demo-banner));
        min-height: 0;
        padding: 14px 18px 12px;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }
    .page--fixed-pre-registration .page-heading {
        flex: 0 0 auto;
        margin-bottom: 10px;
        align-items: center;
    }
    .page--fixed-pre-registration .page-heading__kicker { margin-bottom: 3px; font-size: 11px; }
    .page--fixed-pre-registration .page-heading h1 { font-size: 30px; line-height: 1.1; }
    .page--fixed-pre-registration .page-heading p { margin-top: 3px; font-size: 13px; line-height: 1.35; }
    .page--fixed-pre-registration .exam-workflow {
        position: static;
        flex: 0 0 auto;
        grid-template-columns: 180px minmax(0, 1fr);
        gap: 7px;
        margin: 0 0 10px;
        padding: 6px;
    }
    .page--fixed-pre-registration .exam-workflow__heading { gap: 8px; padding: 6px 8px; }
    .page--fixed-pre-registration .exam-workflow__heading > span { width: 30px; height: 30px; }
    .page--fixed-pre-registration .exam-workflow__heading strong { font-size: 12px; }
    .page--fixed-pre-registration .exam-workflow__heading small { display: none; }
    .page--fixed-pre-registration .exam-workflow__tabs { gap: 5px; padding: 0; }
    .page--fixed-pre-registration .exam-workflow__tab {
        min-width: 130px;
        min-height: 46px;
        grid-template-columns: 28px minmax(0, 1fr);
        gap: 6px;
        padding: 6px 8px;
    }
    .page--fixed-pre-registration .exam-workflow__icon { width: 28px; height: 28px; }
    .page--fixed-pre-registration .exam-workflow__copy strong { font-size: 11px; line-height: 1.2; }
    .page--fixed-pre-registration .exam-workflow__copy small { display: none; }
    .page--fixed-pre-registration .candidate-create-layout.is-waiting-list-mode {
        flex: 0 0 auto;
        min-height: 0;
        align-self: stretch;
    }
    .page--fixed-pre-registration .candidate-create-layout.is-waiting-list-mode > .panel {
        height: auto;
        min-height: 0;
        display: grid;
        grid-template-rows: auto auto auto;
        overflow: hidden;
    }
    .page--fixed-pre-registration .candidate-create-layout.is-waiting-list-mode > .panel > .panel__header {
        display: none;
    }
    .page--fixed-pre-registration .candidate-create-layout.is-waiting-list-mode > .panel > .panel__body {
        min-height: 0;
        grid-template-rows: auto auto auto;
        gap: 10px 16px;
        padding: 10px 16px;
        overflow: visible;
    }
    .page--fixed-pre-registration .candidate-create-layout.is-waiting-list-mode .candidate-kind-selector { min-height: 34px; }
    .page--fixed-pre-registration .candidate-create-layout.is-waiting-list-mode .candidate-kind-switch .button { min-height: 34px; font-size: 13px; }
    .page--fixed-pre-registration .candidate-create-layout.is-waiting-list-mode .candidate-search-section { padding: 10px 12px; background: linear-gradient(145deg, rgba(20,23,27,.96), rgba(13,16,20,.96)); border: 1px solid var(--border); border-radius: 9px; }
    .page--fixed-pre-registration .candidate-create-layout.is-waiting-list-mode .candidate-search-section .input,
    .page--fixed-pre-registration .candidate-create-layout.is-waiting-list-mode .candidate-search-section .button { min-height: 38px; }
    .page--fixed-pre-registration .candidate-create-layout.is-waiting-list-mode .candidate-person-section,
    .page--fixed-pre-registration .candidate-create-layout.is-waiting-list-mode .candidate-interest-section,
    .page--fixed-pre-registration .candidate-create-layout.is-waiting-list-mode .candidate-registration-section { padding: 10px 12px; }
    .page--fixed-pre-registration .candidate-create-layout.is-waiting-list-mode .candidate-person-section {
        align-self: stretch;
    }
    .page--fixed-pre-registration .candidate-create-layout.is-waiting-list-mode .candidate-academic-column {
        align-self: stretch;
        grid-template-rows: 1fr auto;
    }
    .page--fixed-pre-registration .candidate-create-layout.is-waiting-list-mode .candidate-interest-section {
        align-self: stretch;
    }
    .page--fixed-pre-registration .candidate-create-layout.is-waiting-list-mode .form-section__heading { margin-bottom: 6px; }
    .page--fixed-pre-registration .candidate-create-layout.is-waiting-list-mode .form-section__heading h2 { font-size: 16px; }
    .page--fixed-pre-registration .candidate-create-layout.is-waiting-list-mode .form-grid { gap: 8px 10px; }
    .page--fixed-pre-registration .candidate-create-layout.is-waiting-list-mode .field label { font-size: 12px; }
    .page--fixed-pre-registration .candidate-create-layout.is-waiting-list-mode :where(.input, .select) {
        min-height: 38px;
        padding-block: 6px;
        font-size: 14px;
    }
    .page--fixed-pre-registration .candidate-create-layout.is-waiting-list-mode .textarea {
        min-height: 50px;
        max-height: 50px;
        font-size: 14px;
        resize: none;
    }
    .page--fixed-pre-registration .candidate-create-layout.is-waiting-list-mode .candidate-academic-column { gap: 10px; }
    .page--fixed-pre-registration .candidate-create-layout.is-waiting-list-mode .candidate-interest-section .form-grid[style] { margin-top: 8px !important; }
    .page--fixed-pre-registration .candidate-create-layout.is-waiting-list-mode .candidate-academic-selectors > .col-4 {
        grid-column: span 6;
    }
    .page--fixed-pre-registration .candidate-create-layout.is-waiting-list-mode .candidate-academic-selectors > .col-4:last-child {
        grid-column: span 12;
    }
    .page--fixed-pre-registration .candidate-create-layout.is-waiting-list-mode .candidate-interest-section .form-grid[style] > .col-3 {
        grid-column: span 6;
    }
    .page--fixed-pre-registration .candidate-create-layout.is-waiting-list-mode .search-results {
        max-height: 64px;
        overflow-y: auto;
    }
    .page--fixed-pre-registration .candidate-create-layout.is-waiting-list-mode > .panel > .panel__footer {
        min-height: 56px;
        padding: 9px 16px;
    }
    .page--fixed-pre-registration .candidate-create-layout.is-waiting-list-mode > .panel > .panel__footer .button {
        min-height: 38px;
        font-size: 13px;
    }
}

html[data-theme="light"] .nav-link,
html[data-theme="light"] .nav-sublink,
html[data-theme="light"] .settings-area__link { color: #252a30; }
html[data-theme="light"] .sidebar__profile-copy strong { color: #111; }
html[data-theme="light"] .sidebar__profile-copy small { color: #414850; }

html[data-theme="light"] :where(
    .nav-link.is-active, .nav-link.is-active strong, .nav-link.is-active small,
    .nav-sublink.is-active, .settings-area__link.is-active,
    .button--primary, .button--history, .button--success,
    .segmented button.is-active, .reports-tabs__item.is-active,
    .participant-enrollment__modes .button.is-active
) { color: #fff; }

/* Sidebar contrast requested after visual review on the attendance screen. */
html[data-theme="light"] .sidebar :where(.nav-link, .nav-sublink) {
    color: #090a0c !important;
    font-weight: 800;
    opacity: 1;
}

html[data-theme="light"] .sidebar :where(.nav-link, .nav-sublink) > .icon {
    color: #272b31 !important;
    opacity: 1;
}

html[data-theme="light"] .sidebar :where(.nav-link, .nav-sublink):hover {
    color: #000 !important;
    background: #e2e6eb;
    border-color: #aeb6c0;
}

html[data-theme="light"] .sidebar :where(.nav-link, .nav-sublink).is-active {
    color: #fff !important;
    background: linear-gradient(100deg, #a90c13, #df2028);
    border-color: #8f0a10;
    box-shadow: 0 7px 16px rgba(169, 12, 19, .22);
}

html[data-theme="light"] .sidebar :where(.nav-link, .nav-sublink).is-active > .icon {
    color: #fff !important;
}

html[data-theme="light"] .sidebar .nav-group.is-active > summary.nav-link {
    color: #090a0c !important;
}
html[data-theme="light"] .sidebar .nav-group.is-active > summary.nav-link > .icon {
    color: #272b31 !important;
}

html[data-theme="light"] .sidebar__nav-heading :where(span, small),
html[data-theme="light"] .sidebar__account-actions :where(a, button),
html[data-theme="light"] .sidebar__profile-copy :where(strong, small) {
    color: #17191d !important;
    opacity: 1;
}
/* Cadastros de alunos: nomes são exibidos em caixa alta; e-mails mantêm sua grafia. */
.input--uppercase,
.data-table tbody strong,
.operation-registration-row__identity .table-link {
    text-transform: uppercase;
}

/* Sistema visual compacto: aproveita a área útil sem alterar comportamento. */
html:not([data-theme="light"]) {
    --bg: #04070b;
    --bg-soft: #070c12;
    --panel: #0c1219;
    --panel-2: #101821;
    --panel-3: #16202a;
    --border: #202a35;
    --border-strong: #303c49;
}

html:not([data-theme="light"]) .app-main { background: var(--bg-soft); }
html:not([data-theme="light"]) .panel { background: var(--panel); }

:where(h1, h2, h3, h4, h5, h6) { text-wrap: balance; }
:where(p, .field-help, .muted) { text-wrap: pretty; }
:where(.data-table, .metric-card, .dashboard-metric, .dashboard-scholarship-card) { font-variant-numeric: tabular-nums; }

@media (min-width: 1181px) {
    .page {
        width: 100%;
        max-width: 1760px;
        padding: 14px 18px 28px;
    }
    .page-heading { align-items: center; gap: 16px; margin-bottom: 12px; }
    .page-heading__kicker { display: none; }
    .page-heading h1 { font-size: clamp(24px, 2vw, 29px); line-height: 1.1; }
    .page-heading p { max-width: 920px; margin-top: 4px; font-size: 13px; line-height: 1.4; }

    .panel { border-radius: 9px; box-shadow: 0 4px 14px rgba(0,0,0,.14); }
    .panel__header { min-height: 52px; padding: 11px 15px; }
    .panel__header h2, .panel__header h3, .form-section__heading h2 { font-size: 15px; }
    .panel__header p, .form-section__heading p { margin-top: 2px; font-size: 12px; }
    .panel__body { padding: 14px 15px; }
    .panel__footer { padding: 11px 15px; }

    .stack, .content-grid, .reports-workspace, .settings-fieldset { gap: 12px; }
    .content-grid { grid-template-columns: minmax(0, 1.8fr) minmax(250px, .65fr); }
    .content-grid--equal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .content-grid--wide-aside { grid-template-columns: minmax(0, 1.45fr) minmax(300px, .72fr); }
    .metrics-grid { gap: 10px; margin-bottom: 12px; }
    .form-grid { gap: 11px 12px; }
    .form-section + .form-section { margin-top: 16px; padding-top: 16px; }
    .toolbar { gap: 8px; padding: 10px 14px; }

    .exam-workflow {
        grid-template-columns: 190px minmax(0,1fr);
        gap: 7px;
        margin: 0 0 12px;
        padding: 7px;
        border-radius: 9px;
        box-shadow: 0 4px 14px rgba(0,0,0,.12);
    }
    .exam-workflow__heading { gap: 8px; padding: 7px 9px; }
    .exam-workflow__heading > span { width: 30px; height: 30px; }
    .exam-workflow__tab { min-width: 145px; min-height: 52px; padding: 7px 9px; }

    .dashboard-workspace { gap: 10px; }
    .dashboard-filter-panel { padding: 9px; }
    .dashboard-filters { gap: 8px; }
    .dashboard-filters .field label, .dashboard-period legend { margin-bottom: 4px; font-size: 11px; }
    .dashboard-journey__header { padding: 10px 14px; }
    .dashboard-journey__header h2 { font-size: 16px; }
    .dashboard-journey__header p, .dashboard-section-heading p { font-size: 11px; }
    .dashboard-journey__track { padding: 6px; }
    .dashboard-journey__step { min-height: 62px; padding: 7px 8px; }
    .dashboard-journey__copy strong { font-size: 12px; }
    .dashboard-journey__copy small { font-size: 10px !important; }
    .dashboard-scholarship { gap: 7px; }
    .dashboard-scholarship-grid, .dashboard-metrics { gap: 8px; }
    .dashboard-scholarship-card, .dashboard-metric { min-height: 70px; gap: 10px; padding: 9px 11px; background: var(--panel); }
    .dashboard-scholarship-card__icon, .dashboard-metric__icon { width: 36px; height: 36px; }
    .dashboard-scholarship-card__icon .icon, .dashboard-metric__icon .icon { width: 18px; height: 18px; }
    .dashboard-scholarship-card strong, .dashboard-metric strong { font-size: 20px; }
    .dashboard-scholarship-card span:not(.dashboard-scholarship-card__icon),
    .dashboard-metric span:not(.dashboard-metric__icon) { margin-top: 3px; font-size: 11px; }
    .dashboard-analysis-grid, .dashboard-bottom-grid { gap: 10px; }
    .dashboard-score strong { margin: 6px 0 9px; font-size: 22px; }

    .reports-tabs { gap: 5px; padding: 4px; }
    .reports-tabs__item { min-height: 36px; padding: 6px 11px; font-size: 12px; }
    .reports-filters__grid, .operational-filter-grid { gap: 9px; padding: 12px 14px; }
    .reports-layout { gap: 12px; grid-template-columns: minmax(0, 1fr) minmax(290px, 350px); }
    .reports-preview { top: 14px; }
    .reports-preview__body { gap: 12px; padding: 14px; }
    .reports-preview__empty { min-height: 190px; padding: 28px 16px; }

    .settings-area { padding: 12px 8px; }
    .settings-area__header { margin-bottom: 10px; }
    .settings-area__search { margin-bottom: 10px; }
    .settings-area__navigation { gap: 2px; }
    .settings-area__link { min-height: 40px; padding: 6px 8px; }
    .settings-catalog-grid { gap: 10px; }
}

@media (min-width: 1280px) and (min-height: 820px) {
    .page--fixed-pre-registration .candidate-create-layout.is-waiting-list-mode > .panel {
        overflow: visible;
        background: transparent;
        border: 0;
        box-shadow: none;
    }
    .page--fixed-pre-registration .candidate-create-layout.is-waiting-list-mode > .panel > .panel__body {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "search search"
            "kind kind"
            "person academic";
        gap: 9px 14px;
        padding: 0;
        background: transparent;
    }
    .page--fixed-pre-registration .candidate-create-layout.is-waiting-list-mode .candidate-search-section,
    .page--fixed-pre-registration .candidate-create-layout.is-waiting-list-mode .candidate-person-section,
    .page--fixed-pre-registration .candidate-create-layout.is-waiting-list-mode .candidate-interest-section,
    .page--fixed-pre-registration .candidate-create-layout.is-waiting-list-mode .candidate-registration-section {
        background: var(--panel);
        border-color: var(--border);
        box-shadow: 0 4px 14px rgba(0,0,0,.12);
    }
    .page--fixed-pre-registration .candidate-create-layout.is-waiting-list-mode .candidate-kind-switch {
        display: grid;
        grid-template-columns: repeat(2, minmax(150px, 1fr));
        gap: 5px;
        padding: 3px;
        background: var(--panel);
        border: 1px solid var(--border);
        border-radius: 8px;
    }
    .page--fixed-pre-registration .candidate-create-layout.is-waiting-list-mode .candidate-kind-switch .button {
        border-color: transparent;
        box-shadow: none;
    }
    .page--fixed-pre-registration .candidate-create-layout.is-waiting-list-mode > .panel > .panel__footer {
        margin-top: 9px;
        background: var(--panel);
        border: 1px solid var(--border);
        border-radius: 9px;
    }
    .candidate-section-icon { background: #991019; box-shadow: none; }
}

/* Ajustes de densidade validados nas áreas operacionais. */
body { font-size: 14px; }
.input, .select, .textarea { min-height: 40px; font-size: 13px; }
.field label, .field legend, .fieldset-reset legend, .money-field > span:first-child { font-size: 12px; }
.data-table th { padding: 9px 11px; font-size: 11px; }
.data-table td { padding: 10px 11px; font-size: 12px; }
.data-table .table-secondary { font-size: 11px; }

@media (min-width: 1180px) {
    .candidate-create-layout.is-waiting-list-mode > .panel {
        background: transparent;
        border: 0;
        box-shadow: none;
    }
    .candidate-create-layout.is-waiting-list-mode > .panel > .panel__header { display: none; }
    .candidate-create-layout.is-waiting-list-mode > .panel > .panel__body {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(420px, 1fr);
        grid-template-areas:
            "search search"
            "kind kind"
            "person academic";
        gap: 9px 14px;
        padding: 0;
        background: transparent;
    }
    .candidate-create-layout.is-waiting-list-mode .candidate-kind-selector { grid-area: kind; }
    .candidate-create-layout.is-waiting-list-mode .candidate-search-section { grid-area: search; }
    .candidate-create-layout.is-waiting-list-mode .candidate-person-section { grid-area: person; }
    .candidate-create-layout.is-waiting-list-mode .candidate-academic-column { grid-area: academic; }
    .candidate-create-layout.is-waiting-list-mode .candidate-search-section,
    .candidate-create-layout.is-waiting-list-mode .candidate-person-section,
    .candidate-create-layout.is-waiting-list-mode .candidate-interest-section,
    .candidate-create-layout.is-waiting-list-mode .candidate-registration-section {
        padding: 10px 12px;
        background: var(--panel);
        border: 1px solid var(--border);
        border-radius: 9px;
        box-shadow: 0 4px 14px rgba(0,0,0,.12);
    }
    .candidate-create-layout.is-waiting-list-mode > .panel > .panel__footer {
        margin-top: 9px;
        background: var(--panel);
        border: 1px solid var(--border);
        border-radius: 9px;
    }

    .operation-session-hero__main { padding: 14px 16px; }
    .operation-session-meta { margin-top: 12px; }
    .operation-session-controls { margin-top: 10px; padding-top: 10px; }
    .operation-occupancy { padding: 14px 18px; }
    .operation-call-summary { gap: 8px; }
    .operation-summary-card { gap: 9px; padding: 10px 12px; background: var(--panel); }
    .operation-summary-card > span { width: 34px; height: 34px; }
    .operation-summary-card strong { font-size: 20px; }

    .settings-module > .content-grid { gap: 12px; grid-template-columns: minmax(0, 1fr) minmax(270px, 330px); }
    .reports-filters__grid {
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
        gap: 9px 11px;
        padding: 11px 14px 13px;
    }
    .reports-filters__search { grid-column: span 2; }
}

@media (min-width: 1451px) {
    .operation-workspace--sessions {
        grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
        gap: 12px;
    }
}

@media (min-width: 1181px) and (max-width: 1450px) {
    .dashboard-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .dashboard-period { grid-column: span 2; }
    .settings-module > .content-grid,
    .operation-workspace--sessions { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .button, .input, .select { min-height: 44px; }
}

/* Navegação integrada ao sistema visual --------------------------------- */
.sidebar {
    background: var(--bg);
    border-right-color: var(--border);
    box-shadow: none;
}
.sidebar::before { display: none; }
.sidebar__brand {
    background: var(--bg);
    border-bottom-color: var(--border);
}
.brand { gap: 8px; font-size: 11px; }
.brand img { width: 76px; }
.brand span { padding-left: 8px; }
.sidebar__nav { padding: 10px 8px 12px; }
.sidebar__nav-heading { padding: 0 8px 7px; }
.sidebar__eyebrow { color: #727d8a; font-size: 9px !important; }

.nav-link {
    min-height: 40px;
    gap: 9px;
    padding-inline: 9px;
    color: #aab2bd;
    font-size: 12px;
    border-radius: 7px;
    transition: color .16s ease, background .16s ease, border-color .16s ease;
}
.nav-link > .icon {
    width: 27px;
    height: 27px;
    padding: 6px;
    color: #7f8a97;
    background: transparent;
    border-color: var(--border);
    border-radius: 7px;
}
.nav-link:hover {
    color: #fff;
    background: var(--panel);
    border-color: var(--border);
    transform: none;
}
.nav-link.is-active {
    color: #fff;
    background: #251014;
    border-color: #552027;
    box-shadow: none;
}
.nav-link.is-active::before { left: -8px; top: 9px; bottom: 9px; width: 2px; }
.nav-link.is-active > .icon {
    color: #ff6268;
    background: rgba(237,28,36,.09);
    border-color: rgba(237,28,36,.22);
}

.nav-group { margin-block: 2px; border-radius: 8px; }
.nav-group[open], .nav-group.is-active {
    background: transparent;
    border-color: transparent;
}
.nav-group.is-active > summary.nav-link {
    color: #f4f6f8;
    background: transparent;
    border-color: transparent;
}
.nav-group.is-active > summary.nav-link::before { opacity: 0; }
.nav-group.is-active > summary.nav-link > .icon {
    color: #ff6268;
    background: rgba(237,28,36,.08);
    border-color: rgba(237,28,36,.18);
}
.nav-group__chevron { background: transparent; border: 1px solid var(--border); }
.nav-group[open] .nav-group__chevron { color: #fff; background: var(--panel-2); }
.nav-submenu { gap: 1px; padding: 2px 4px 7px 35px; }
.nav-submenu::before {
    left: 21px;
    top: 0;
    bottom: 10px;
    background: #26313d;
}
.nav-sublink {
    min-height: 35px;
    padding: 5px 8px;
    color: #9da7b3;
    font-size: 11px;
    border-radius: 6px;
    transition: color .16s ease, background .16s ease, border-color .16s ease;
}
.nav-sublink::before {
    left: -17px;
    width: 6px;
    height: 6px;
    background: var(--bg);
    border-color: #52606e;
    box-shadow: 0 0 0 3px var(--bg);
}
.nav-sublink:hover { color: #fff; background: var(--panel); border-color: var(--border); transform: none; }
.nav-sublink.is-active {
    color: #fff;
    background: #251014;
    border-color: #552027;
    box-shadow: none;
}
.nav-sublink.is-active::before {
    background: #ed1c24;
    border-color: #ff6b71;
    box-shadow: 0 0 0 3px var(--bg);
}

.sidebar__footer {
    padding: 9px 10px calc(10px + env(safe-area-inset-bottom));
    background: var(--bg);
    border-top-color: var(--border);
}
.sidebar__profile {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 7px 9px;
    padding: 3px 2px 8px;
}
.avatar--sidebar { width: 32px; height: 32px; }
.sidebar__profile-copy { align-self: center; }
.sidebar__profile-copy strong { font-size: 11px; }
.sidebar__profile-copy small { font-size: 9px !important; }
.sidebar__profile-tools {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    margin: 0;
}
.sidebar__profile-tools .icon-button {
    width: 100%;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #9ea8b4;
    background: var(--panel);
    border-color: var(--border);
    border-radius: 7px;
}
.sidebar__profile-tools .icon-button:hover {
    color: #fff;
    background: var(--panel-2);
    border-color: var(--border-strong);
    transform: none;
}
.sidebar__profile-tools .theme-toggle::after { content: "Tema"; font-size: 10px; font-weight: 700; }
.sidebar__profile-tools .notification-button::after { content: "Atividades"; font-size: 10px; font-weight: 700; }
.sidebar__profile-tools .notification-button__dot { right: 8px; top: 6px; }
.sidebar__account-actions { gap: 6px; }
.sidebar__account-actions a, .sidebar__account-actions button {
    min-height: 35px;
    color: #9ea8b4;
    background: transparent;
    border-color: var(--border);
    font-size: 10px;
}

html[data-theme="light"] .sidebar,
html[data-theme="light"] .sidebar__brand,
html[data-theme="light"] .sidebar__footer { background: #f8fafc; }
html[data-theme="light"] .sidebar .nav-group[open],
html[data-theme="light"] .sidebar .nav-group.is-active { background: transparent; border-color: transparent; }
html[data-theme="light"] .sidebar .nav-group.is-active > summary.nav-link {
    color: #17191d !important;
    background: transparent;
}
html[data-theme="light"] .sidebar .nav-sublink.is-active {
    color: #fff !important;
    background: #a81119;
    border-color: #8f0a10;
}
html[data-theme="light"] .sidebar__profile-tools .icon-button { background: #fff; border-color: var(--border); }

/* Console profissional 2026 --------------------------------------------- */
body {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

html:not([data-theme="light"]) :where(
    .panel,
    .exam-workflow,
    .exam-flow-hero,
    .exam-flow-card,
    .dashboard-journey,
    .dashboard-scholarship-card,
    .dashboard-metric,
    .operation-summary-card,
    .reports-tabs,
    .reports-score,
    .reports-financial-summary
) {
    background: #0b1118;
    border-color: #1d2834;
    box-shadow: none;
}

.page-heading h1 { font-weight: 760; letter-spacing: -.025em; }
.page-heading p { color: #929eac; }
.panel { border-radius: 11px; }
.panel__header { background: transparent; border-bottom-color: #1d2834; }
.panel__header h2, .panel__header h3 { font-weight: 720; letter-spacing: -.012em; }

html:not([data-theme="light"]) :where(.input, .select, .textarea) {
    color: #eef2f6;
    background-color: #070d13;
    border-color: #263341;
    border-radius: 8px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.018);
}
html:not([data-theme="light"]) :where(.input, .select, .textarea):hover { border-color: #39495a; }
html:not([data-theme="light"]) :where(.input, .select, .textarea):focus {
    border-color: #c91a22;
    box-shadow: 0 0 0 3px rgba(201,26,34,.14);
}
html:not([data-theme="light"]) :where(.input, .textarea)::placeholder { color: #5f6b78; }

.button {
    border-radius: 8px;
    font-weight: 750;
    box-shadow: none;
}
.button:hover { transform: none; }
.button--primary {
    background: #d71921;
    border-color: #d71921;
}
.button--primary:hover {
    background: #eb2029;
    border-color: #eb2029;
}
html:not([data-theme="light"]) .button--ghost {
    color: #c1c9d2;
    background: #0b1118;
    border-color: #293644;
}
html:not([data-theme="light"]) .button--ghost:hover { color: #fff; background: #121a23; border-color: #3a4959; }

.exam-workflow { border-radius: 11px; }
.exam-workflow__heading {
    background: transparent;
    border-color: transparent;
    border-right: 1px solid var(--border);
    border-radius: 0;
}
.exam-workflow__heading > span {
    color: #ff5960;
    background: #241116;
    border: 1px solid #4d2027;
}
.exam-workflow__tabs { gap: 4px; }
.exam-workflow__tab {
    background: transparent;
    border-color: transparent;
    border-radius: 8px;
    box-shadow: none;
}
.exam-workflow__tab:hover { background: #111923; border-color: #263341; transform: none; }
.exam-workflow__tab.is-active {
    color: #fff;
    background: #1b1115;
    border-color: #522129;
    box-shadow: inset 0 -2px #d71921;
}
.exam-workflow__tab.is-active .exam-workflow__icon { color: #ff6067; background: transparent; }

.exam-flow-hero {
    min-height: 112px;
    padding: 18px 20px;
    background: #0b1118;
    border-radius: 11px;
}
.exam-flow-hero::before { width: 2px; background: #d71921; }
.exam-flow-hero h2 { margin-block: 4px 5px; font-size: 20px; }
.exam-flow-hero p { max-width: 760px; color: #9aa6b3; }
.exam-flow-grid { gap: 10px; }
.exam-flow-card {
    min-height: 158px;
    padding: 16px;
    background: #0b1118;
    border-radius: 10px;
}
.exam-flow-card:hover { border-color: #3b4857; box-shadow: none; transform: none; }
.exam-flow-card__number { color: #374250; font-size: 16px; }
.exam-flow-card__icon { width: 34px; height: 34px; }
html:not([data-theme="light"]) .exam-flow-card__icon { background: #211116; border-color: #472027; }
.exam-flow-card__copy { margin-top: 10px; }
.exam-flow-card__copy strong { font-size: 15px; }
.exam-flow-card__copy small { margin-top: 5px; color: #929daa; line-height: 1.4; }
.exam-flow-card__action { padding-top: 10px; color: #d7dde4; letter-spacing: 0; }

.dashboard-journey { background: #0b1118; }
.dashboard-journey::before { width: 2px; background: #d71921; }
html:not([data-theme="light"]) .dashboard-journey__step:hover { background: #111923; border-color: #263341; transform: none; }
.dashboard-scholarship-card, .dashboard-metric { background: #0b1118; }
.dashboard-metric:hover { transform: none; }

.data-table { border-collapse: separate; border-spacing: 0; }
.data-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    color: #7f8b99;
    background: #080e14;
    border-bottom-color: #263341;
    letter-spacing: .055em;
}
.data-table td { border-bottom-color: #1c2631; }
.data-table tbody tr:nth-child(even) { background: rgba(255,255,255,.012); }
.data-table tbody tr:hover { background: #101821; }
.data-table tbody tr:hover td { color: #e2e7ec; }

.badge { font-weight: 750; }
.badge--success { color: #3bdd91; background: rgba(20,122,74,.18); border-color: rgba(59,221,145,.22); }

.operation-campaign-manager { width: 100%; }
.operation-campaign-manager > .panel__body { max-width: 1180px; }
.operation-campaign-manager .operation-form-actions { display: flex; align-items: center; gap: 8px; }

.choice-card {
    background: #090f16;
    border-color: #263341;
    border-radius: 9px;
}
.choice-card:hover { background: #0e161f; border-color: #3a4959; }
.choice-card:has(input:checked) { background: #1c1014; border-color: #72252d; }

* { scrollbar-width: thin; scrollbar-color: #303c49 transparent; }

.participant-directory {
    overflow: hidden;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 11px;
}

/* Tema claro profissional ----------------------------------------------- */
html[data-theme="light"] {
    --bg: #f7f9fc;
    --bg-soft: #f2f5f9;
    --panel: #ffffff;
    --panel-2: #f8fafc;
    --panel-3: #eef2f6;
    --border: #dce3eb;
    --border-strong: #c7d1dc;
    --text: #17212b;
    --text-soft: #344252;
    --muted: #667486;
    --shadow: 0 1px 2px rgba(20,32,45,.04), 0 10px 28px rgba(20,32,45,.06);
}

html[data-theme="light"] body,
html[data-theme="light"] .app-main { background: var(--bg-soft); }
html[data-theme="light"] :where(
    .panel,
    .participant-directory,
    .exam-workflow,
    .exam-flow-hero,
    .exam-flow-card,
    .dashboard-journey,
    .dashboard-scholarship-card,
    .dashboard-metric,
    .operation-summary-card,
    .reports-tabs,
    .reports-score,
    .reports-financial-summary
) {
    background: #fff;
    border-color: var(--border);
    box-shadow: var(--shadow);
}
html[data-theme="light"] .page-heading h1 { color: #101820; }
html[data-theme="light"] .page-heading p { color: #5d6b7b; }
html[data-theme="light"] .panel__header { border-bottom-color: var(--border); }

html[data-theme="light"] :where(.input, .select, .textarea) {
    color: #17212b;
    background: #fff;
    border-color: #c8d2dd;
    box-shadow: 0 1px 2px rgba(20,32,45,.03);
}
html[data-theme="light"] :where(.input, .select, .textarea)::placeholder { color: #8b97a5; }
html[data-theme="light"] :where(.input, .select, .textarea):hover { border-color: #aab7c4; }
html[data-theme="light"] :where(.input, .select, .textarea):focus {
    border-color: #c91820;
    box-shadow: 0 0 0 3px rgba(201,24,32,.11);
}

html[data-theme="light"] .sidebar,
html[data-theme="light"] .sidebar__brand,
html[data-theme="light"] .sidebar__footer {
    background: #fff;
    border-color: var(--border);
    box-shadow: none;
}
html[data-theme="light"] .sidebar .nav-link { color: #455363 !important; }
html[data-theme="light"] .sidebar .nav-link > .icon {
    color: #718092 !important;
    background: transparent;
    border-color: transparent;
}
html[data-theme="light"] .sidebar .nav-link:hover {
    color: #17212b !important;
    background: #f3f6f9;
    border-color: #e1e7ee;
}
html[data-theme="light"] .sidebar .nav-link.is-active {
    color: #9f1118 !important;
    background: #fff2f3;
    border-color: #f0c9cc;
    box-shadow: none;
}
html[data-theme="light"] .sidebar .nav-link.is-active > .icon { color: #bd151d !important; background: transparent; border-color: transparent; }
html[data-theme="light"] .sidebar .nav-group.is-active > summary.nav-link {
    color: #25313e !important;
    background: transparent;
    border-color: transparent;
}
html[data-theme="light"] .sidebar .nav-sublink { color: #536172 !important; }
html[data-theme="light"] .sidebar .nav-sublink:hover { color: #17212b !important; background: #f3f6f9; border-color: #e1e7ee; }
html[data-theme="light"] .sidebar .nav-sublink.is-active {
    color: #9f1118 !important;
    background: #fff0f1;
    border-color: #efc5c8;
    box-shadow: inset 2px 0 #d71921;
}
html[data-theme="light"] .sidebar .nav-sublink::before { background: #fff; box-shadow: 0 0 0 3px #fff; }
html[data-theme="light"] .sidebar .nav-sublink.is-active::before { background: #d71921; border-color: #d71921; }
html[data-theme="light"] .sidebar__profile-tools .icon-button,
html[data-theme="light"] .sidebar__account-actions :where(a, button) {
    color: #536172;
    background: #fff;
    border-color: #d7dfe8;
}

html[data-theme="light"] .exam-workflow__heading { border-color: transparent var(--border) transparent transparent; }
html[data-theme="light"] .exam-workflow__heading > span {
    color: #bd151d;
    background: #fff2f3;
    border-color: #efc9cc;
}
html[data-theme="light"] .exam-workflow__tab { color: #354353; background: transparent; border-color: transparent; }
html[data-theme="light"] .exam-workflow__tab:hover { color: #17212b; background: #f5f7fa; border-color: #e1e7ee; }
html[data-theme="light"] .exam-workflow__tab.is-active {
    color: #8f1017;
    background: #fff1f2;
    border-color: #efc5c8;
    box-shadow: inset 0 -2px #d71921;
}
html[data-theme="light"] .exam-workflow__tab.is-active .exam-workflow__icon { color: #bd151d; background: transparent; }
html[data-theme="light"] .exam-workflow__tab.is-active .exam-workflow__copy small { color: #76565a; }

html[data-theme="light"] .data-table th {
    color: #5e6c7d;
    background: #f7f9fb;
    border-bottom-color: #d6dee7;
}
html[data-theme="light"] .data-table td { color: #354353; border-bottom-color: #e1e7ee; }
html[data-theme="light"] .data-table tbody tr:nth-child(even) { background: #fbfcfd; }
html[data-theme="light"] .data-table tbody tr:hover,
html[data-theme="light"] .data-table tbody tr:hover td { color: #17212b; background: #f3f6f9; }
html[data-theme="light"] .data-table strong { color: #17212b; }

html[data-theme="light"] .choice-card { background: #fff; border-color: #d6dee7; }
html[data-theme="light"] .choice-card:hover { background: #f7f9fb; border-color: #b9c5d1; }
html[data-theme="light"] .choice-card:has(input:checked) { background: #fff2f3; border-color: #e2aeb2; }

/* Interface operacional unificada --------------------------------------- */
:root {
    --bg: #05090e;
    --bg-soft: #071019;
    --panel: #0c141d;
    --panel-2: #101a24;
    --panel-3: #16212d;
    --border: #22303e;
    --border-strong: #344455;
}

html:not([data-theme="light"]) body,
html:not([data-theme="light"]) .app-shell,
html:not([data-theme="light"]) .app-main { background: var(--bg-soft); }

html:not([data-theme="light"]) .sidebar,
html:not([data-theme="light"]) .sidebar__brand,
html:not([data-theme="light"]) .sidebar__footer {
    background: #081019;
    border-color: var(--border);
}

html:not([data-theme="light"]) .sidebar__nav { background: #081019; }
html:not([data-theme="light"]) .sidebar .nav-link:hover,
html:not([data-theme="light"]) .sidebar .nav-sublink:hover { background: #101a24; }
html:not([data-theme="light"]) .sidebar .nav-link.is-active,
html:not([data-theme="light"]) .sidebar .nav-sublink.is-active {
    color: #fff;
    background: #321319;
    border-color: #6b252d;
}

.page {
    width: 100%;
    max-width: 1920px;
    padding: 14px clamp(14px, 1.25vw, 24px) 28px;
}
.page-heading { margin-bottom: 12px; }
.page-heading h1 { font-size: clamp(24px, 1.7vw, 32px); }
.stack, .content-grid { gap: 12px; }

/* A regra global de duas colunas não pode reservar um aside oculto. */
.candidate-create-layout {
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100%;
}
.candidate-create-layout > aside { display: none; }

@media (min-width: 1180px) {
    .candidate-create-layout > .panel > .panel__body {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(460px, .96fr);
        grid-template-areas:
            "kind kind"
            "search search"
            "person academic";
        gap: 10px 14px;
    }
    .candidate-kind-selector { grid-area: kind; }
    .candidate-search-section { grid-area: search; }
    .candidate-person-section { grid-area: person; }
    .candidate-academic-column { grid-area: academic; }
}

/* Superfície padrão para listagens e tabelas do sistema. */
.participant-directory {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
}
.participant-directory .panel__header {
    min-height: 0;
    padding: 14px 16px 11px;
    border-bottom: 1px solid var(--border);
}
.participant-directory .panel__header h2 { font-size: 16px; }
.participant-directory .panel__header p { margin-top: 3px; font-size: 12px; }
.participant-directory :where(.operation-toolbar--proofs, .participant-filters) {
    gap: 8px;
    padding: 11px 14px;
    background: var(--panel-2);
    border-bottom: 1px solid var(--border);
}
.participant-directory .table-scroll { padding: 0 14px; background: var(--panel); }
.participant-directory .pagination {
    min-height: 48px;
    padding: 9px 14px;
    background: var(--panel-2);
    border-top: 1px solid var(--border);
}

.data-table {
    width: 100%;
    font-variant-numeric: tabular-nums;
}
.data-table th {
    height: 40px;
    padding: 9px 12px;
    font-size: 10px;
    line-height: 1.2;
}
.data-table td {
    padding: 11px 12px;
    line-height: 1.35;
    vertical-align: middle;
}
.data-table tbody tr { transition: background-color .15s ease; }
.data-table .button {
    min-height: 34px;
    padding: 7px 11px;
    font-size: 11px;
    white-space: nowrap;
}
.data-table .badge { min-height: 24px; padding: 4px 8px; white-space: nowrap; }

/* Tabela de inscrições: conteúdo separado e hierarquia escaneável. */
.enrollment-proof-table { table-layout: fixed; min-width: 980px; }
.enrollment-proof-table th:nth-child(1) { width: 36%; }
.enrollment-proof-table th:nth-child(2) { width: 11%; }
.enrollment-proof-table th:nth-child(3) { width: 17%; }
.enrollment-proof-table th:nth-child(4) { width: 14%; }
.enrollment-proof-table th:nth-child(5) { width: 9%; }
.enrollment-proof-table th:nth-child(6) { width: 13%; }
.proof-table__title strong {
    display: -webkit-box;
    overflow: hidden;
    color: var(--text);
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: .005em;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.proof-table__campaign > span {
    display: inline-flex;
    padding: 4px 7px;
    color: var(--text-soft);
    background: var(--panel-2);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 10px;
    line-height: 1.25;
}
.proof-schedule { display: grid; gap: 4px; }
.proof-schedule > strong { color: var(--text); font-size: 11px; }
.proof-schedule > small {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 10px !important;
}
.proof-schedule > small span + span::before { content: "•"; margin-right: 7px; color: #536171; }
.proof-occupancy { display: grid; gap: 7px; }
.proof-occupancy > div { display: flex; align-items: baseline; gap: 6px; }
.proof-occupancy strong { color: var(--text); font-size: 13px; }
.proof-occupancy small { color: var(--muted); font-size: 10px !important; }
.proof-occupancy__track {
    display: block;
    width: 100%;
    max-width: 112px;
    height: 4px;
    overflow: hidden;
    background: var(--panel-3);
    border-radius: 99px;
}
.proof-occupancy__track > span { display: block; height: 100%; background: #d71921; border-radius: inherit; }
.proof-table__action .button { width: 100%; justify-content: center; }

/* Os indicadores informam; não devem competir com a tabela principal. */
.operation-summary-grid { gap: 8px; }
.operation-summary-card { min-height: 86px; padding: 12px; }
.operation-summary-card > span { width: 34px; height: 34px; }
.operation-summary-card strong { font-size: 22px; }

html[data-theme="light"] .participant-directory :where(.operation-toolbar--proofs, .participant-filters),
html[data-theme="light"] .participant-directory .pagination { background: #f7f9fb; }
html[data-theme="light"] .proof-table__campaign > span { background: #f4f7fa; }
html[data-theme="light"] .proof-occupancy__track { background: #e5eaf0; }

@media (max-width: 1180px) {
    .page { padding-inline: 14px; }
    .participant-directory .table-scroll { padding-inline: 10px; }
}

/* Participantes — composição operacional -------------------------------- */
.candidate-overview { display: grid; gap: 10px; }
.candidate-overview__primary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}
.candidate-overview__primary .metric-card {
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 11px;
}
.candidate-overview__primary .metric-card::after { height: 2px; opacity: 1; }
.candidate-overview__primary .metric-card__icon {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    color: #ff3b44;
    background: rgba(215, 25, 33, .14);
    border-color: rgba(215, 25, 33, .28);
    border-radius: 8px;
}
.candidate-overview__primary .metric-card__icon .icon { width: 17px; height: 17px; }
.candidate-overview__primary .metric-card > div { min-width: 0; }
.candidate-overview__primary .metric-card > div > span {
    display: block;
    color: var(--muted);
    font-size: 10px;
    font-weight: 750;
    text-transform: uppercase;
}
.candidate-overview__primary .metric-card strong {
    margin-top: 6px;
    color: var(--text);
    font-size: 22px;
    line-height: 1;
}
.candidate-overview__primary .metric-card--action:hover {
    background: var(--panel-2);
    border-color: var(--border-strong);
    transform: none;
}
.candidate-overview__primary .metric-card--action[aria-pressed="true"] {
    background: #241219;
    border-color: #7b2931;
    box-shadow: inset 0 -2px #ed1c24;
}

.candidate-overview__secondary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}
.participant-summary-strip {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 11px;
    color: var(--text);
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 9px;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.participant-summary-strip:hover { background: var(--panel-2); border-color: var(--border-strong); }
.participant-summary-strip[aria-pressed="true"] { background: #241219; border-color: #7b2931; }
.participant-summary-strip__icon {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    color: #d64b52;
    background: rgba(215, 25, 33, .08);
    border-radius: 7px;
}
.participant-summary-strip__icon .icon { width: 15px; height: 15px; }
.participant-summary-strip > span:not(.participant-summary-strip__icon) {
    color: var(--muted);
    font-size: 10px;
    font-weight: 750;
    text-transform: uppercase;
}
.participant-summary-strip > strong { flex: 0 0 auto; font-size: 14px; }
.participant-summary-strip > small {
    overflow: hidden;
    color: var(--muted);
    font-size: 10px !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.participant-summary-strip > .icon { width: 14px; margin-left: auto; color: var(--muted); }

.candidate-directory {
    overflow: hidden;
    background: var(--panel);
    border-color: var(--border);
    border-radius: 11px;
}
.candidate-directory > .panel__header { display: none; }
.candidate-directory > .toolbar {
    display: grid;
    grid-template-columns: minmax(260px, 1.45fr) repeat(3, minmax(170px, 1fr)) auto;
    gap: 8px;
    padding: 12px 14px;
    background: var(--panel-2);
    border-bottom: 1px solid var(--border);
}
.candidate-directory .table-scroll { padding: 0 14px; }
@media (min-width: 1051px) {
    .candidate-directory .table-scroll { overflow: visible; contain: none; }
    .candidate-directory .candidate-table { min-width: 0; }
}
.candidate-directory .pagination {
    min-height: 48px;
    padding: 8px 14px;
    background: var(--panel-2);
    border-top: 1px solid var(--border);
}
.candidate-filter-clear { min-width: 82px; }

.candidate-table { min-width: 960px; table-layout: fixed; }
.candidate-table th:nth-child(1) { width: 31%; }
.candidate-table th:nth-child(2) { width: 8%; }
.candidate-table th:nth-child(3) { width: 10%; }
.candidate-table th:nth-child(4) { width: 13%; }
.candidate-table th:nth-child(5) { width: 31%; }
.candidate-table th:nth-child(6) { width: 7%; }
.candidate-table [data-candidate-list] > tr > td:last-child { width: 64px; min-width: 64px; }
.candidate-table td { height: 61px; padding-block: 8px; }
.candidate-identity-cell { display: flex; align-items: center; gap: 10px; }
.candidate-avatar {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    color: #e4e9ee;
    background: #253241;
    border: 1px solid #334354;
    border-radius: 50%;
    font-size: 9px;
    font-weight: 800;
}
.candidate-identity-cell > div { min-width: 0; }
.candidate-identity-cell strong,
.candidate-proof-title {
    display: block;
    overflow: hidden;
    color: var(--text);
    font-size: 11px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.candidate-contact-line,
.candidate-exam-detail {
    display: block;
    overflow: hidden;
    margin-top: 3px;
    color: var(--muted);
    font-size: 9px !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.candidate-unit-cell {
    color: #cbd3dc;
    font-size: 10px;
    font-weight: 750;
}
.candidate-unit-cell::before,
.candidate-unit-cell::after { content: none; }
.candidate-academic-cell { color: var(--text-soft); font-size: 11px; }
.candidate-status-cell .badge { font-size: 9px; }
.candidate-proof-cell .candidate-exam-detail + .candidate-exam-detail { color: #8693a1; }
.candidate-action-box { width: 38px; margin-left: auto; }
.candidate-action-box .operation-action-box__trigger {
    width: 38px;
    min-width: 38px;
    min-height: 32px;
    justify-content: center;
    padding: 4px;
    font-size: 12px;
}

html[data-theme="light"] .candidate-overview__primary .metric-card,
html[data-theme="light"] .participant-summary-strip,
html[data-theme="light"] .candidate-directory { background: #fff; }
html[data-theme="light"] .candidate-overview__primary .metric-card--action:hover,
html[data-theme="light"] .participant-summary-strip:hover,
html[data-theme="light"] .candidate-directory > .toolbar,
html[data-theme="light"] .candidate-directory .pagination { background: #f7f9fb; }
html[data-theme="light"] .candidate-avatar { color: #334252; background: #e9eef4; border-color: #d5dde6; }

/* Densidade de cartões e ícones aplicada em todas as áreas operacionais. */
:where(.metric-card__icon, .dashboard-metric__icon, .dashboard-scholarship-card__icon, .operation-summary-card > span) {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
}
:where(.metric-card__icon, .dashboard-metric__icon, .dashboard-scholarship-card__icon, .operation-summary-card > span) > .icon {
    width: 17px;
    height: 17px;
}
:where(.dashboard-metric, .dashboard-scholarship-card, .operation-summary-card) {
    min-height: 72px;
    padding: 10px 12px;
    gap: 10px;
}

@media (max-width: 1300px) {
    .candidate-directory > .toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .candidate-directory > .toolbar .toolbar__search { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
    .candidate-overview__primary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .candidate-overview__secondary { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
    .candidate-overview__primary { grid-template-columns: 1fr; }
    .candidate-directory > .toolbar { grid-template-columns: 1fr; }
    .candidate-directory > .toolbar .toolbar__search { grid-column: auto; }
    .candidate-filter-clear { min-height: 44px; }
}

/* Oficina Design System — base global Tabler ---------------------------- */
:root,
html[data-theme="dark"] {
    --oficina-canvas: #050a10;
    --oficina-canvas-subtle: #07111b;
    --oficina-surface-1: #0b1621;
    --oficina-surface-2: #101c28;
    --oficina-surface-3: #172431;
    --oficina-border: #223242;
    --oficina-border-strong: #34495d;
    --oficina-text: #f2f6fa;
    --oficina-text-soft: #c1ccd7;
    --oficina-muted: #8b9aad;
    --oficina-accent: #ed1c24;
    --oficina-accent-hover: #ff3139;
    --bg: var(--oficina-canvas);
    --bg-soft: var(--oficina-canvas-subtle);
    --panel: var(--oficina-surface-1);
    --panel-2: var(--oficina-surface-2);
    --panel-3: var(--oficina-surface-3);
    --border: var(--oficina-border);
    --border-strong: var(--oficina-border-strong);
    --text: var(--oficina-text);
    --text-soft: var(--oficina-text-soft);
    --muted: var(--oficina-muted);
    --red: var(--oficina-accent);
    --tblr-primary: var(--oficina-accent);
    --tblr-primary-rgb: 237, 28, 36;
    --tblr-body-bg: var(--oficina-canvas-subtle);
    --tblr-body-color: var(--oficina-text);
    --tblr-bg-surface: var(--oficina-surface-1);
    --tblr-bg-surface-secondary: var(--oficina-surface-2);
    --tblr-border-color: var(--oficina-border);
    --tblr-card-bg: var(--oficina-surface-1);
    --tblr-secondary-color: var(--oficina-muted);
}

html:not([data-theme="light"]) :where(body, .app-shell, .app-main) {
    color: var(--oficina-text);
    background: var(--oficina-canvas-subtle);
}
html:not([data-theme="light"]) .app-main {
    background: var(--oficina-canvas-subtle);
}
html:not([data-theme="light"]) :where(
    .panel,
    .card,
    .participant-directory,
    .metric-card,
    .operation-summary-card,
    .dashboard-metric,
    .dashboard-scholarship-card,
    .dashboard-journey,
    .exam-workflow,
    .exam-flow-card,
    .reports-tabs,
    .reports-score,
    .reports-financial-summary
) {
    color: var(--oficina-text);
    background: var(--oficina-surface-1);
    border-color: var(--oficina-border);
    box-shadow: none;
}
html:not([data-theme="light"]) :where(.panel__header, .panel__footer, .toolbar, .pagination) {
    background: var(--oficina-surface-2);
    border-color: var(--oficina-border);
}
html:not([data-theme="light"]) :where(.input, .select, .textarea, .form-control, .form-select) {
    color: var(--oficina-text);
    background-color: #08121c;
    border-color: var(--oficina-border);
}
html:not([data-theme="light"]) :where(.input, .select, .textarea, .form-control, .form-select):hover {
    border-color: var(--oficina-border-strong);
}
html:not([data-theme="light"]) :where(.input, .select, .textarea, .form-control, .form-select):focus {
    border-color: var(--oficina-accent);
    box-shadow: 0 0 0 3px rgba(237, 28, 36, .13);
}
html:not([data-theme="light"]) .data-table th {
    color: #8494a7;
    background: #08121c;
    border-color: var(--oficina-border);
}
html:not([data-theme="light"]) .data-table td { border-color: #1d2b39; }
html:not([data-theme="light"]) .data-table tbody tr:nth-child(even) { background: rgba(255, 255, 255, .012); }
html:not([data-theme="light"]) .data-table tbody tr:hover { background: var(--oficina-surface-2); }
html:not([data-theme="light"]) :where(.operation-action-box__menu, dialog .panel, .dropdown-menu) {
    background: var(--oficina-surface-3);
    border-color: var(--oficina-border-strong);
}
html:not([data-theme="light"]) :where(.sidebar, .sidebar__brand, .sidebar__nav, .sidebar__footer) {
    background: var(--oficina-canvas);
    border-color: var(--oficina-border);
}
.button--primary,
.btn-primary {
    color: #fff;
    background: var(--oficina-accent);
    border-color: var(--oficina-accent);
}
.button--primary:hover,
.btn-primary:hover {
    color: #fff;
    background: var(--oficina-accent-hover);
    border-color: var(--oficina-accent-hover);
}

html[data-theme="light"] {
    --tblr-primary: #c91820;
    --tblr-primary-rgb: 201, 24, 32;
    --tblr-body-bg: #f2f5f9;
    --tblr-body-color: #17212b;
    --tblr-bg-surface: #fff;
    --tblr-bg-surface-secondary: #f7f9fb;
    --tblr-border-color: #dce3eb;
    --tblr-card-bg: #fff;
}

/* Aproveitamento integral da área útil ---------------------------------- */
.page--settings-area,
.waiting-follow-up-control,
.operation-campaign-manager > .panel__body {
    width: 100%;
    max-width: none;
}
.app-content,
.page,
.page > .stack,
.page > .panel,
.page > .card,
.page > form,
.page > section { width: 100%; }
.content-grid > :only-child { grid-column: 1 / -1; }
.content-grid:has(> aside[hidden]),
.content-grid:has(> aside:empty) { grid-template-columns: minmax(0, 1fr); }
.panel__body > .form-grid:last-child { margin-bottom: 0; }

/* Navegação e iconografia coerentes com o sistema ----------------------- */
.sidebar .nav-link > .icon,
.sidebar .nav-sublink > .icon,
.sidebar .nav-group__chevron .icon {
    width: 17px;
    height: 17px;
    stroke-width: 1.8;
}
.sidebar .nav-link > .icon {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    padding: 6px;
    color: #8493a5;
    background: #0b1621;
    border: 1px solid #1e2d3c;
    border-radius: 8px;
}
.sidebar .nav-link:hover > .icon {
    color: #dce4ec;
    background: #101c28;
    border-color: #304356;
}
.sidebar .nav-link.is-active > .icon,
.sidebar .nav-group.is-active > summary.nav-link > .icon {
    color: #ff4b53;
    background: rgba(237, 28, 36, .12);
    border-color: rgba(237, 28, 36, .32);
}
.sidebar .nav-sublink { color: #9aa8b7; }
.sidebar .nav-sublink.is-active {
    color: #fff;
    background: #321319;
    border-color: #6b252d;
    box-shadow: inset 2px 0 var(--oficina-accent);
}
.sidebar .nav-sublink::before { border-color: #53677a; }
.sidebar .nav-sublink.is-active::before {
    background: var(--oficina-accent);
    border-color: #ff5960;
}

/* No celular, oficina-ui.css mantém os spans por especificidade maior que o colapso
   global do grid; sem isto os campos da correção manual ficam espremidos e sobrepostos. */
@media (max-width: 680px) {
    .manual-correction__fields > [class*="col-"] { grid-column: span 1; }
}
/* Correção manual: cartão compacto, mantendo Q1–Q25 em ordem de leitura. */
.manual-correction__fields {
    gap: 10px 12px;
    margin-bottom: 12px;
}
.manual-correction .form-section__heading {
    margin-bottom: 10px;
}
.manual-correction__answer-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
}
.manual-correction__answer-heading > div {
    min-width: 0;
}
.manual-correction__bulk {
    width: min(390px, 48%);
    display: grid;
    gap: 4px;
    flex: 0 0 auto;
}
.manual-correction__bulk > span {
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 700;
}
.manual-correction__bulk .input {
    min-height: 36px;
    height: 36px;
}
.manual-correction__bulk small {
    min-height: 15px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.3;
}
.manual-correction .answer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(9, minmax(36px, auto));
    grid-auto-flow: column;
    gap: 6px;
    padding: 6px;
    overflow: visible;
    background: transparent;
}
.manual-correction .answer-row {
    grid-template-columns: 26px repeat(6, minmax(24px, 1fr));
    gap: 3px;
    min-height: 36px;
    padding: 4px 6px;
    border: 1px solid var(--border);
    border-radius: 7px;
}
.manual-correction .answer-row + .answer-row {
    border-top: 1px solid var(--border);
}
.manual-correction .answer-row__number {
    width: 26px;
    height: 26px;
    border-radius: 6px;
}
.manual-correction .answer-option span {
    width: 24px;
    height: 24px;
}

@media (min-width: 1181px) {
    .manual-correction .correction-candidate-search {
        grid-column: span 6;
    }
    .manual-correction .correction-candidate-search + .field,
    .manual-correction .correction-candidate-search + .field + .field {
        grid-column: span 3;
    }
}

@media (max-width: 800px) and (min-width: 681px) {
    .manual-correction__answer-heading {
        align-items: stretch;
        flex-direction: column;
    }
    .manual-correction__bulk {
        width: 100%;
    }
    .manual-correction .answer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(10, minmax(36px, auto));
    }
    .manual-correction .answer-grid:has([data-answer-row="21"]:not([hidden])) {
        grid-template-rows: repeat(13, minmax(36px, auto));
    }
}

@media (max-width: 680px) {
    .manual-correction__answer-heading {
        align-items: stretch;
        flex-direction: column;
    }
    .manual-correction__bulk {
        width: 100%;
    }
    .manual-correction .answer-grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        grid-auto-flow: row;
    }
    .manual-correction .answer-row {
        grid-template-columns: 34px repeat(6, minmax(0, 1fr));
    }
}

html[data-theme="light"] .sidebar .nav-link > .icon {
    color: #657487;
    background: #f5f7fa;
    border-color: #e0e6ed;
}
/* Melhor legibilidade (letrinhas miúdas) */
:root {
    --regua-font-scale: 1.12;
}

body {
    font-size: 16px !important;
    line-height: 1.55 !important;
}

@media (min-width: 1100px) {
    body {
        zoom: var(--regua-font-scale);
    }
}

@media (max-width: 1099px) {
    body {
        zoom: 1.06;
    }
}

/* Correções pendentes agrupadas por unidade (presentes na prova entram como "Aguardando lançamento"). */
.correction-queue-groups { display: grid; gap: 10px; }
.queue-unit { border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.queue-unit__header { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: var(--text); background: var(--bg-soft); border: 0; text-align: left; cursor: pointer; }
.queue-unit__header:hover { background: var(--panel-2); }
.queue-unit__code { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; background: var(--panel-3); border: 1px solid var(--border); border-radius: 8px; font-size: 12px; font-weight: 800; }
.queue-unit__copy { min-width: 0; flex: 1 1 auto; display: grid; }
.queue-unit__copy strong { font-size: 14px; }
.queue-unit__copy small { color: var(--muted); font-size: 12px; }
.queue-unit__counts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.queue-unit__chevron { color: var(--muted); transition: transform .18s ease; transform: rotate(-90deg); }
.queue-unit.is-open .queue-unit__chevron { transform: none; }
.queue-unit__body { border-top: 1px solid var(--border); }
.queue-unit__pager:not(:empty) { justify-content: flex-end; padding: 10px 14px; border-top: 1px solid var(--border); }
@media (max-width: 680px) {
    .queue-unit__header { flex-wrap: wrap; }
    .queue-unit__counts { order: 4; width: 100%; justify-content: flex-start; }
}

/* Abas da fila de correções: "Por unidade" e "Pesquisar". */
.queue-tabs { display: flex; gap: 4px; padding: 0 18px; border-bottom: 1px solid var(--border); }
.queue-tabs__tab { padding: 11px 14px; color: var(--muted); background: transparent; border: 0; border-bottom: 2px solid transparent; font-weight: 700; cursor: pointer; }
.queue-tabs__tab:hover { color: var(--text); }
.queue-tabs__tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--red); }
.queue-search { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px 12px; align-items: end; }
.queue-search__person { grid-column: span 2; }
.queue-search__actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 10px; }
.queue-search__summary { margin: 0; font-size: 13px; }
@media (max-width: 1180px) { .queue-search { grid-template-columns: repeat(3, minmax(0, 1fr)); } .queue-search__person { grid-column: 1 / -1; } }
@media (max-width: 680px) { .queue-search { grid-template-columns: 1fr; } .queue-search__actions { flex-direction: column-reverse; } }

/* ==========================================================================
   Correção manual — refinamento visual (cartão igual à folha impressa)
   Escopo: somente .manual-correction; scanner e demais telas não mudam.
   ========================================================================== */
.manual-correction .manual-correction__fields { gap: 12px 14px; }
.manual-correction .manual-correction__fields [data-correction-context] {
    margin: 0;
    padding: 9px 12px;
    color: var(--text-soft);
    background: rgba(255,255,255,.03);
    border: 1px dashed var(--border-strong);
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.45;
}
.manual-correction .candidate-autocomplete__results.is-selected .alert { padding: 9px 12px; }
.manual-correction .candidate-autocomplete__results.is-selected .alert p { font-size: 12px; }

/* Cabeçalho do cartão + digitação rápida */
.manual-correction .form-section { margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--border); }
.manual-correction__answer-heading { align-items: flex-end; margin-bottom: 12px; }
.manual-correction__answer-heading h2 { font-size: 16px; }
.manual-correction__bulk { width: min(460px, 52%); }
.manual-correction__bulk .input {
    height: 44px;
    min-height: 44px;
    font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
}
.manual-correction__bulk .input:focus { border-color: var(--red); }
.manual-correction__bulk small { font-size: 11px; }

/* Grade: 2 colunas (Q1–Q10 | Q11–Q20), como a folha impressa; 25 questões = 13 linhas */
.manual-correction .answer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(10, auto);
    grid-auto-flow: column;
    gap: 6px 20px;
    padding: 0;
}
.manual-correction .answer-grid:has([data-answer-row="21"]:not([hidden])) { grid-template-rows: repeat(13, auto); }
.manual-correction .answer-row,
.manual-correction .answer-row + .answer-row {
    grid-template-columns: 34px repeat(6, minmax(0, 1fr));
    gap: 4px;
    min-height: 46px;
    padding: 5px 10px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 9px;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.manual-correction .answer-row:hover { border-color: var(--border-strong); }
.manual-correction .answer-row:has(input:checked) { background: var(--panel-2); }
.manual-correction .answer-row:focus-within { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.manual-correction .answer-row__number {
    width: 30px;
    height: 30px;
    color: var(--muted);
    background: transparent;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}
.manual-correction .answer-row:has(input:checked) .answer-row__number { color: var(--text); }

/* Bolhas */
.manual-correction .answer-option span {
    width: 32px;
    height: 32px;
    color: var(--text-soft);
    background: transparent;
    border: 1.5px solid var(--border-strong);
    font-size: 12px;
    transition: background-color .12s ease, border-color .12s ease, color .12s ease, transform .12s ease;
}
.manual-correction .answer-option:hover span { color: #fff; background: var(--red-soft); border-color: var(--red); }
.manual-correction .answer-option input:checked + span {
    color: #fff;
    background: var(--red);
    border-color: var(--red);
    box-shadow: 0 0 0 3px var(--red-soft);
    transform: scale(1.04);
}
/* X (anulada) separado e em âmbar, para não parecer uma alternativa */
.manual-correction .answer-option:last-child { padding-left: 6px; border-left: 1px solid var(--border); }
.manual-correction .answer-option:last-child span { color: var(--muted); border-style: dashed; }
.manual-correction .answer-option:last-child:hover span { color: var(--amber); background: var(--amber-soft); border-color: var(--amber); }
.manual-correction .answer-option:last-child input:checked + span {
    color: #1a1100;
    background: var(--amber);
    border: 1.5px solid var(--amber);
    box-shadow: 0 0 0 3px var(--amber-soft);
}
.manual-correction .answer-row:has(.answer-option:last-child input:checked) { border-color: rgba(240,162,27,.38); }

/* Rodapé de ações fixo enquanto o cartão está na tela */
.manual-correction .panel > .panel__footer {
    position: sticky;
    bottom: 0;
    z-index: 6;
    background: var(--panel);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 -12px 24px rgba(0,0,0,.28);
}

/* Lateral: acompanha a rolagem */
.manual-correction .content-grid--wide-aside > aside { position: sticky; top: 16px; align-self: start; }
.manual-correction .answer-summary div { padding: 10px 8px; border-radius: 9px; }
.manual-correction .answer-summary strong { font-size: 22px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.manual-correction .answer-summary div:nth-child(2) strong { color: var(--red); }
.manual-correction .answer-summary div:nth-child(3) strong { color: var(--amber); }
.manual-correction .question-map { gap: 6px; }
.manual-correction .question-map span { aspect-ratio: auto; height: 34px; border-radius: 8px; font-size: 12px; transition: background-color .15s ease, border-color .15s ease; }
.manual-correction .question-map span.is-answered { color: #fff; background: rgba(237,28,36,.26); border-color: rgba(237,28,36,.7); }
.manual-correction .question-map span.is-void { color: #ffd38a; background: rgba(240,162,27,.2); border-color: rgba(240,162,27,.7); }
.question-map-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; color: var(--muted); font-size: 11px; }
.question-map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.question-map-legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--panel-3); border: 1px solid var(--border-strong); }
.question-map-legend .is-answered { background: rgba(237,28,36,.26); border-color: rgba(237,28,36,.7); }
.question-map-legend .is-void { background: rgba(240,162,27,.2); border-color: rgba(240,162,27,.7); }
.manual-correction .alert { padding: 11px 12px; }

@media (max-width: 1180px) {
    .manual-correction .content-grid--wide-aside > aside { position: static; }
}
@media (max-width: 800px) {
    .manual-correction__bulk { width: 100%; }
}
@media (max-width: 680px) {
    .manual-correction .panel > .panel__footer { position: static; box-shadow: none; }
    .manual-correction .answer-grid { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
    .manual-correction .answer-row,
    .manual-correction .answer-row + .answer-row { grid-template-columns: 30px repeat(6, minmax(0, 1fr)); padding-inline: 6px; }
    .manual-correction .answer-option span { width: 30px; height: 30px; }
}

html[data-theme="light"] .manual-correction .answer-row,
html[data-theme="light"] .manual-correction .answer-row + .answer-row { background: #fff; }
html[data-theme="light"] .manual-correction .answer-row:has(input:checked) { background: #f6f7f9; }
html[data-theme="light"] .manual-correction .answer-row__number { background: transparent; }
html[data-theme="light"] .manual-correction .answer-option span { color: #4b5563; background: #fff; }
html[data-theme="light"] .manual-correction .answer-option input:checked + span { color: #fff; background: var(--red); }
html[data-theme="light"] .manual-correction .answer-option:last-child input:checked + span { color: #1a1100; background: var(--amber); }
html[data-theme="light"] .manual-correction .manual-correction__fields [data-correction-context] { background: #f8f9fb; }
html[data-theme="light"] .manual-correction .question-map span.is-answered { color: #b90f16; background: rgba(237,28,36,.12); }
html[data-theme="light"] .manual-correction .question-map span.is-void { color: #8a5a00; background: rgba(240,162,27,.16); }

/* ---- Correção manual: segunda passada (desktop, tema claro e celular) ---- */

/* Abas e fila */
.queue-tabs__tab { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; }
.queue-tabs__tab .icon { width: 16px; height: 16px; }
.queue-unit__header { padding: 12px 16px; }
.queue-unit .data-table td { vertical-align: middle; }
.queue-unit .data-table tbody tr { transition: background-color .12s ease; }
.queue-unit .data-table tbody tr:hover { background: rgba(255,255,255,.025); }

/* Candidato escolhido: um resumo compacto, sem repetir a dica de digitação */
.manual-correction .candidate-autocomplete__results.is-selected .alert { margin-top: 8px; padding: 8px 12px; border-radius: 8px; }
.manual-correction .candidate-autocomplete__results.is-selected .alert strong { display: inline; margin: 0 6px 0 0; font-size: 13px; }
.manual-correction .candidate-autocomplete__results.is-selected .alert p { display: inline; margin: 0; }
.manual-correction .correction-candidate-search:has(.candidate-autocomplete__results.is-selected) > small { display: none; }

/* Distribuição dos campos: sem colunas vazias */
@media (min-width: 681px) {
    .manual-correction .manual-correction__fields > .correction-candidate-search { grid-column: 1 / -1; }
    .manual-correction .manual-correction__fields > .field:has(#correction-registration),
    .manual-correction .manual-correction__fields > .field:has(#correction-exam) { grid-column: span 6; }
    .manual-correction .manual-correction__fields > .field:has(#correction-date) { grid-column: span 3; }
    .manual-correction .manual-correction__fields > .field:has(#correction-room) { grid-column: span 4; }
    .manual-correction .manual-correction__fields > .field:has(#correction-owner) { grid-column: span 5; }
}

/* Lateral mais leve */
.manual-correction .content-grid--wide-aside > aside .alert strong { font-size: 13px; }
.manual-correction .content-grid--wide-aside > aside .alert p { font-size: 12px; line-height: 1.45; }

/* Tema claro: linhas do cartão brancas e limpas */
html[data-theme="light"] .manual-correction .answer-grid { background: transparent; box-shadow: none; }
html[data-theme="light"] .manual-correction .answer-row,
html[data-theme="light"] .manual-correction .answer-row + .answer-row { background: #fff; border-color: #e3e7ec; box-shadow: none; }
html[data-theme="light"] .manual-correction .answer-row:has(input:checked) { background: #fbfbfc; }
html[data-theme="light"] .manual-correction .answer-row:focus-within { border-color: var(--red); box-shadow: 0 0 0 3px rgba(237,28,36,.12); }
html[data-theme="light"] .manual-correction .answer-option span { border-color: #cfd5dc; box-shadow: none; }
html[data-theme="light"] .manual-correction .answer-row__number { color: #8a929c; }
html[data-theme="light"] .manual-correction .answer-row:has(input:checked) .answer-row__number { color: #111827; }
html[data-theme="light"] .queue-unit .data-table tbody tr:hover { background: #f8f9fb; }

/* Celular */
@media (max-width: 680px) {
    .manual-correction .manual-correction__fields.form-grid { grid-template-columns: minmax(0, 1fr); }
    .manual-correction .manual-correction__fields.form-grid > .field,
    .manual-correction .manual-correction__fields.form-grid > [class*="col-"] { grid-column: 1 / -1; }
    .manual-correction__answer-heading { gap: 10px; }

    .queue-tabs { padding: 0 10px; }
    .queue-unit__header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px 12px; padding: 12px; }
    .queue-unit__counts { grid-column: 1 / -1; order: initial; width: auto; justify-content: flex-start; }
    .queue-unit__chevron { grid-column: 3; grid-row: 1; }
    /* Tabela vira lista de cartões, sem rolagem lateral */
    .queue-unit .table-scroll,
    [data-correction-queue-search-results].table-scroll { overflow: visible; }
    .queue-unit .data-table thead,
    [data-correction-queue-search-results] .data-table thead { display: none; }
    .queue-unit .data-table,
    .queue-unit .data-table tbody,
    [data-correction-queue-search-results] .data-table,
    [data-correction-queue-search-results] .data-table tbody { display: block; width: 100%; min-width: 0; }
    .queue-unit .data-table tr,
    [data-correction-queue-search-results] .data-table tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 4px 12px;
        padding: 12px;
        border-bottom: 1px solid var(--border);
    }
    .queue-unit .data-table td,
    [data-correction-queue-search-results] .data-table td { display: block; height: auto; min-height: 0; padding: 0; border: 0; color: var(--muted); font-size: 12px; line-height: 1.4; white-space: normal; }
    .queue-unit .data-table td:nth-last-child(2),
    [data-correction-queue-search-results] .data-table td:nth-last-child(2) { font-variant-numeric: tabular-nums; }
    .queue-unit .data-table td:first-child,
    [data-correction-queue-search-results] .data-table td:first-child { color: var(--text); font-size: 14px; }
    .queue-unit .data-table td:not(:last-child),
    [data-correction-queue-search-results] .data-table td:not(:last-child) { grid-column: 1; }
    .queue-unit .data-table td:last-child,
    [data-correction-queue-search-results] .data-table td:last-child { grid-column: 2; grid-row: 1 / span 2; align-self: start; }
    .queue-unit .data-table td .badge,
    [data-correction-queue-search-results] .data-table td .badge { margin: 2px 0; }
    .queue-unit .data-table td[colspan],
    [data-correction-queue-search-results] .data-table td[colspan] { grid-column: 1 / -1; grid-row: auto; }
}
