@font-face { font-family: 'TT Interphases Pro'; src: url('./fonts/tt-interphases-pro-regular.ttf') format('truetype'); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: 'TT Interphases Pro'; src: url('./fonts/tt-interphases-pro-medium.ttf') format('truetype'); font-style: normal; font-weight: 500; font-display: swap; }
@font-face { font-family: 'TT Interphases Pro'; src: url('./fonts/tt-interphases-pro-demibold.ttf') format('truetype'); font-style: normal; font-weight: 600; font-display: swap; }
@font-face { font-family: 'TT Interphases Pro'; src: url('./fonts/tt-interphases-pro-bold.ttf') format('truetype'); font-style: normal; font-weight: 700; font-display: swap; }
@font-face { font-family: 'TT Interphases Pro'; src: url('./fonts/tt-interphases-pro-extrabold.ttf') format('truetype'); font-style: normal; font-weight: 800; font-display: swap; }
/* A fonte local é usada quando instalada. Para incorporar o arquivo,
   acrescente url("data:font/woff2;base64,...") ao src abaixo. */
@font-face {
  font-family: "Lastica";
  src: url("./fonts/lastica.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  --ink: #050505;
  --panel: #0a192f;
  --blue: #2563eb;
  --violet: #8b2cf5;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, .16);
  /* TT Interphases Pro em toda a interface; Lastica somente nos destaques explicitamente preservados. */
  --body-font: "TT Interphases Pro", "Segoe UI", Arial, sans-serif;
  --lastica-font: "Lastica", "Arial Narrow", "Trebuchet MS", Arial, sans-serif;
  --display-font: var(--body-font);
}
* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: var(--ink); scroll-behavior: smooth; }
body {
  min-height: 100vh; margin: 0; color: #fff; font-family: var(--body-font);
  background: radial-gradient(circle at 72% 10%, rgba(37,99,235,.16), transparent 24rem),
              radial-gradient(circle at 24% 86%, rgba(139,44,245,.10), transparent 28rem), var(--ink);
}
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, .drop-zone:focus-visible { outline: 2px solid #60a5fa; outline-offset: 3px; }
.icon { width: 19px; height: 19px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon.small { width: 16px; height: 16px; }
.app-shell { min-height: 100vh; }
.topbar {
  position: fixed; z-index: 20; inset: 0 0 auto; height: 72px; display: flex; align-items: center;
  justify-content: space-between; padding: 0 28px; background: rgba(5,5,5,.88);
  border-bottom: 1px solid var(--line); backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 12px; letter-spacing: .08em; font-family: var(--display-font); font-weight: 800; font-size: 18px; }
.brand-mark {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 9px;
  background: url("./logo.svg") center / contain no-repeat;
  box-shadow: 0 0 24px rgba(59, 90, 246, .45);
}
.brand-mark::after { content: none; }
.user-trigger { display: flex; align-items: center; gap: 10px; padding: 6px 9px; color: white; background: transparent; border: 1px solid transparent; border-radius: 14px; transition: .2s; }
.user-trigger:hover { background: rgba(37,99,235,.12); border-color: rgba(96,165,250,.25); }
.avatar { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 50%; background: linear-gradient(135deg,#1d4ed8,#7e22ce); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); font-size: 13px; font-weight: 700; }
.user-name { font-size: 14px; font-weight: 600; }
.side-rail { position: fixed; z-index: 10; inset: 72px auto 0 0; display: flex; flex-direction: column; width: 254px; padding: 22px 16px 18px; background: linear-gradient(180deg,#0a192f,#071323); border-right: 1px solid rgba(148,163,184,.13); }
.nav-list { display: grid; gap: 5px; }
.nav-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 13px; color: var(--muted); text-align: left; font-size: 14px; font-weight: 600; background: transparent; border: 1px solid transparent; border-radius: 12px; transition: .2s; }
.nav-item:hover { color: #fff; background: rgba(37,99,235,.13); }
.nav-item.active { color: #fff; background: linear-gradient(90deg,rgba(37,99,235,.26),rgba(37,99,235,.07)); border-color: rgba(96,165,250,.28); box-shadow: 0 0 18px rgba(37,99,235,.14); }
.sidebar-foot { margin-top: auto; padding: 18px 10px 0; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); }
.online { display: flex; align-items: center; gap: 7px; margin: 11px 0 18px; color: #86efac; }
.online-dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 8px rgba(34,197,94,.7); }
.footer-links { display: grid; gap: 9px; }
.footer-links a { color: var(--muted); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.copyright { color: #64748b; }
.main-content { width: auto; margin-left: 254px; padding: 112px 44px 48px; }
.content-limit { max-width: 1280px; margin: 0 auto; }
.view { display: none; animation: reveal .35s ease both; }
.view.active { display: block; }
@keyframes reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.eyebrow { color: #93c5fd; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3, h4, h5, h6, p { margin-top: 0; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--body-font);
  font-synthesis: none;
}
.hero { max-width: 880px; margin-bottom: 35px; }
.hero h1 { margin: 10px 0 15px; font-family: var(--display-font); font-size: clamp(32px,4vw,52px); line-height: 1.04; letter-spacing: -.04em; }
.hero p { max-width: 810px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.brand { font-family: var(--body-font); }
.hero #welcome-title { text-transform: uppercase; letter-spacing: 0; }

/* Login/cadastro: preservar a tipografia aprovada. */
body[data-page="login"] .brand,
body[data-page="login"] h1,
body[data-page="login"] h2,
body[data-page="login"] h3,
body[data-page="login"] h4,
body[data-page="login"] h5,
body[data-page="login"] h6 {
  font-family: var(--lastica-font);
  font-weight: 400;
  font-synthesis: none;
}

/* Únicos destaques em Lastica fora do login/cadastro. */
body[data-page="dashboard"] #welcome-title,
body[data-page="upload_pdf"] .hero h1,
body[data-page="historico"] .hero h1,
body[data-page="configuracoes"] .hero h1 {
  font-family: var(--lastica-font);
  font-weight: 400;
  font-synthesis: none;
}
.section-heading { margin-bottom: 17px; font-family: var(--display-font); font-size: 19px; }
.glass { background: linear-gradient(145deg,rgba(17,35,63,.72),rgba(7,13,25,.68)); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,.22); backdrop-filter: blur(15px); }
.how-wrap { margin-bottom: 25px; padding: 22px; }
.steps { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; }
.step { min-height: 104px; padding: 14px; background: rgba(5,5,5,.25); border: 1px solid rgba(148,163,184,.10); border-radius: 14px; }
.step-number { display: grid; place-items: center; width: 25px; height: 25px; margin-bottom: 12px; color: #bfdbfe; font-size: 12px; font-weight: 700; background: rgba(37,99,235,.18); border: 1px solid rgba(96,165,250,.35); border-radius: 50%; }
.step p { margin: 0; color: #cbd5e1; font-size: 13px; font-weight: 500; line-height: 1.4; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(340px,.85fr); gap: 22px; }
.card { min-width: 0; padding: 23px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.card-head h2 { margin: 0; font-family: var(--display-font); font-size: 18px; }
.subtle { margin: 0; color: var(--muted); font-size: 13px; }
.processing-list { display: grid; gap: 10px; }
.processing-row { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 13px 12px; background: rgba(5,5,5,.32); border: 1px solid rgba(148,163,184,.10); border-radius: 13px; }
.file-icon { display: grid; place-items: center; width: 34px; height: 34px; color: #93c5fd; background: rgba(37,99,235,.15); border-radius: 10px; }
.file-info { min-width: 0; flex: 1; }
.file-name { overflow: hidden; color: #fff; font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.file-meta { margin-top: 3px; color: #64748b; font-size: 12px; }
.status { flex: 0 0 auto; padding: 5px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.status.done { color: #86efac; background: rgba(34,197,94,.11); }
.status.running { color: #fcd34d; background: rgba(234,179,8,.11); }
.status.suggestion { color: #fde68a; background: rgba(245,158,11,.15); border: 1px solid rgba(245,158,11,.28); }
.status.review { color: #bfdbfe; background: rgba(37,99,235,.15); }
.upload-card { position: relative; overflow: hidden; }
.upload-card::before { position: absolute; top: -100px; right: -90px; width: 210px; height: 210px; background: rgba(139,44,245,.14); border-radius: 50%; filter: blur(30px); content: ""; }
.upload-card > * { position: relative; }
.drop-zone { display: flex; min-height: 250px; flex-direction: column; align-items: center; justify-content: center; padding: 28px; text-align: center; background: rgba(5,5,5,.32); border: 1px dashed rgba(96,165,250,.48); border-radius: 16px; transition: .2s; }
.drop-zone.dragover { background: rgba(139,44,245,.12); border-color: #a78bfa; transform: scale(1.01); }
.upload-orb { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 15px; color: #fff; background: linear-gradient(135deg,var(--blue),var(--violet)); border-radius: 17px; box-shadow: 0 10px 30px rgba(37,99,235,.35); }
.upload-orb .icon { width: 24px; height: 24px; }
.drop-zone h3 { margin-bottom: 7px; font-family: var(--display-font); font-size: 16px; }
.drop-zone p { margin-bottom: 16px; color: var(--muted); font-size: 13px; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 10px 14px; color: #fff; font-size: 13px; font-weight: 700; background: linear-gradient(135deg,var(--blue),#4f46e5); border: 1px solid rgba(147,197,253,.45); border-radius: 10px; box-shadow: 0 10px 20px rgba(37,99,235,.19); transition: .2s; }
.primary-button:hover { filter: brightness(1.12); transform: translateY(-1px); }
.primary-button:disabled { cursor: wait; opacity: .65; }
.format-note { margin: 14px 0 0 !important; color: #64748b !important; font-size: 11px !important; }
.upload-feedback { min-height: 20px; margin: 14px 0 0; color: #bfdbfe; font-size: 13px; font-weight: 600; text-align: center; }
.history-card { overflow: hidden; padding: 0; }
.history-scroll { overflow-x: auto; }
.history-table { width: 100%; border-collapse: collapse; }
.history-table th { padding: 14px 20px; color: #64748b; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-align: left; text-transform: uppercase; background: rgba(5,5,5,.32); }
.history-table td { padding: 16px 20px; color: #cbd5e1; font-size: 14px; border-top: 1px solid rgba(148,163,184,.1); }
.history-table td:first-child { color: #fff; font-weight: 600; }
.overlay { position: fixed; z-index: 30; inset: 0; background: rgba(1,4,10,.66); opacity: 0; pointer-events: none; transition: opacity .25s; }
.overlay.visible { opacity: 1; pointer-events: auto; }
.profile-panel { position: fixed; z-index: 31; top: 0; right: 0; display: flex; width: min(390px,92vw); height: 100vh; height: 100dvh; flex-direction: column; padding: 26px; background: var(--panel); border-left: 1px solid rgba(148,163,184,.2); box-shadow: -20px 0 50px rgba(0,0,0,.4); transform: translateX(105%); transition: transform .3s ease; }
.profile-panel.open { transform: translateX(0); }
.profile-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.profile-head h2 { margin: 0; font-family: var(--display-font); font-size: 20px; }
.icon-close { display: grid; place-items: center; width: 36px; height: 36px; color: #cbd5e1; background: transparent; border: 1px solid rgba(148,163,184,.2); border-radius: 10px; }
.profile-user { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; padding: 17px; background: rgba(37,99,235,.1); border: 1px solid rgba(96,165,250,.18); border-radius: 16px; }
.profile-user .avatar { width: 45px; height: 45px; }
.profile-user-name { font-weight: 700; }
.profile-user-role { margin-top: 3px; color: var(--muted); font-size: 12px; }
.profile-menu { display: grid; gap: 7px; }
.profile-menu button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px; color: #cbd5e1; text-align: left; background: transparent; border: 1px solid transparent; border-radius: 11px; transition: .2s; }
.profile-menu button:hover { color: #fff; background: rgba(37,99,235,.13); border-color: rgba(96,165,250,.18); }
.profile-version { margin-top: auto; padding-top: 18px; color: #64748b; font-size: 12px; border-top: 1px solid var(--line); }
@media (max-width: 1050px) {
  .side-rail { width: 76px; padding: 22px 10px; }
  .side-rail .nav-label, .sidebar-foot { display: none; }
  .nav-item { justify-content: center; padding: 13px; }
  .main-content { margin-left: 76px; padding: 104px 24px 36px; }
  .steps { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
}
@media (max-width: 580px) {
  .topbar { height: 64px; padding: 0 16px; }
  .brand { gap: 9px; font-size: 15px; }
  .brand-mark { width: 27px; height: 27px; }
  .user-name, .user-chevron { display: none; }
  .side-rail { position: fixed; inset: auto 0 0; display: block; width: 100%; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: rgba(10,25,47,.97); border-top: 1px solid rgba(148,163,184,.18); border-right: 0; backdrop-filter: blur(18px); }
  .nav-list { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .nav-item { justify-content: center; padding: 11px 8px; }
  .side-rail .nav-label { display: inline; }
  .main-content { margin-left: 0; padding: 88px 16px calc(92px + env(safe-area-inset-bottom)); }
  .hero { margin-bottom: 27px; }
  .hero p { font-size: 14px; }
  .steps { grid-template-columns: 1fr; }
  .step { display: flex; min-height: auto; align-items: center; gap: 12px; }
  .step-number { flex: 0 0 auto; margin: 0; }
  .how-wrap, .card { padding: 17px; }
  .card-head { align-items: flex-start; }
  .card-head h2 { font-size: 16px; }
  .card-head .subtle { text-align: right; }
  .history-table th, .history-table td { padding: 14px 12px; }
  .history-table th:nth-child(2), .history-table td:nth-child(2) { display: none; }
  .status { padding: 5px 7px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Componentes compartilhados entre as páginas do frontend. */
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button:disabled { cursor: not-allowed; opacity: .5; }
input, select { width: 100%; min-width: 0; padding: 12px 14px; color: #f8fafc; background: #07111e; border: 1px solid #304159; border-radius: 10px; font: inherit; }
input:focus-visible, select:focus-visible { outline: 2px solid #60a5fa; outline-offset: 3px; }
label { display: block; margin-bottom: 8px; color: #cbd5e1; font-size: 14px; }
form { display: grid; gap: 12px; margin-top: 24px; }
form label { margin: 0; }
form button { margin-top: 10px; }
.hero h1 { font-size: clamp(28px,3.2vw,42px); line-height: 1.2; overflow-wrap: anywhere; }
.hero p { margin-bottom: 0; }
.main-content { padding-top: 99px; }
.demo-banner { display: flex; gap: 12px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 30px; border: 1px solid #293660; background: #10152b; color: #c4b5fd; border-radius: 10px; font-size: 12px; }
.demo-banner span { color: #a8b6ce; }
.steps.three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.step h3 { font-size: 14px; margin-bottom: 6px; }
.secondary-button, .danger-button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; padding: 11px 15px; color: #dce8fb; background: #112039; border: 1px solid #2e4565; border-radius: 10px; font-size: 13px; font-weight: 600; }
.secondary-button:hover { background: #1b3050; }
.danger-button { background: #361c27; color: #fecdd3; border-color: #70404b; }
.primary-button, .secondary-button { text-align: center; }
.text-link, .link-button { color: #93c5fd; font-size: 13px; }
.text-link:hover, .link-button:hover { text-decoration: underline; }
.link-button { padding: 12px 0 0; background: none; border: 0; }
.action-stack { display: grid; gap: 10px; margin: 22px 0 6px; }
.empty-state { padding: 32px 15px; color: #94a3b8; text-align: center; }
.empty-state > .icon { height: 32px; width: 32px; margin-bottom: 15px; color: #60a5fa; }
.empty-state h3 { font-size: 17px; color: #e2e8f0; margin-bottom: 9px; }
.empty-state p { max-width: 420px; margin: 0 auto 18px; font-size: 14px; line-height: 1.6; }
.notice { margin: 22px 0; padding: 18px 20px; border: 1px solid #2b3b56; border-radius: 14px; background: #0b1729; }
.notice strong { font-size: 14px; color: #bfdbfe; }
.notice p { margin: 7px 0 0; font-size: 13px; color: #a8b6ce; line-height: 1.6; }
.form-note, .foot-note { margin: 18px 0 0; color: #94a3b8; font-size: 12px; line-height: 1.6; }
.foot-note { margin: 16px 0; }
.history-table td:first-child { max-width: 300px; overflow-wrap: anywhere; }
.history-table small { display: block; margin-top: 6px; font-size: 11px; color: #94a3b8; font-weight: 400; }
.history-table th, .history-table td { padding: 15px 12px; }
.history-table a:hover { color: #93c5fd; }
.dashboard-grid { grid-template-columns: minmax(0,1.15fr) minmax(300px,.85fr); }
.dashboard-grid .card-head { flex-wrap: wrap; }
.upload-layout { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(260px,1fr); gap: 24px; align-items: start; }
.format-tabs { display: flex; gap: 10px; margin-bottom: 22px; }
.format-tabs .icon { display: none; }
.drop-zone h2 { font-size: 20px; }
.error-message { font-size: 14px; color: #fda4af; min-height: 20px; margin: 16px 0; }
.selected-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.selected-head strong { overflow-wrap: anywhere; }
#preview img { display: block; max-width: 100%; max-height: 340px; margin: 0 auto; border-radius: 10px; object-fit: contain; }
.upload-actions { margin-top: 20px; }
.upload-actions p { margin-top: 12px; }
.guidance h2, .settings-grid h2 { font-size: 20px; }
.guidance ul { padding-left: 20px; color: #a8b6ce; line-height: 1.8; font-size: 14px; }
.exam-row { display: grid; grid-template-columns: 72px minmax(100px,1fr) auto 36px; align-items: center; gap: 14px; margin-bottom: 14px; }
.exam-row label { margin: 0; }
.result-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.mnemonic-card { margin-top: 24px; }
.mnemonic-card > button { margin-top: 20px; }
.filters { display: grid; grid-template-columns: 1fr 220px; gap: 18px; margin-bottom: 24px; }
.settings-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.settings-copy { font-size: 14px; line-height: 1.7; color: #a8b6ce; margin-top: 20px; }
.settings-grid .danger-button { margin-top: 20px; }
.settings-grid .subtle { line-height: 1.7; }
.catalog-settings-card .card-head { margin-bottom: 0; }
.catalog-count-button { border: 0; cursor: pointer; font: inherit; }
.catalog-count-button:hover { filter: brightness(1.18); box-shadow: 0 0 0 1px rgba(134,239,172,.22); }
.catalog-add-form { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.catalog-add-grid { display: grid; grid-template-columns: minmax(0,2fr) minmax(180px,.8fr); gap: 16px; }
.catalog-add-grid > div { min-width: 0; }
.catalog-add-grid label { display: block; margin-bottom: 9px; color: #cbd5e1; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.catalog-add-form .primary-button { width: 100%; justify-content: center; margin-top: 4px; }
.catalog-dialog { width: min(920px,calc(100vw - 32px)); max-height: min(80vh,760px); padding: 28px; color: #fff; background: #07111e; border: 1px solid #34465f; border-radius: 18px; box-shadow: 0 20px 80px #0009; }
.catalog-dialog .profile-head { margin-bottom: 20px; }
.catalog-dialog h2 { margin: 6px 0 0; }
.catalog-dialog > label { display: block; margin-bottom: 8px; color: #cbd5e1; font-size: 13px; font-weight: 600; }
.catalog-table-wrap { max-height: 55vh; margin-top: 18px; overflow: auto; border: 1px solid var(--line); border-radius: 14px; }
.catalog-table td:last-child, .catalog-table th:last-child { width: 180px; }
.catalog-table td:last-child strong { color: #93c5fd; letter-spacing: .04em; }

.profile-dialog, .confirm-dialog { color: #fff; background: #0a192f; border: 1px solid #34465f; border-radius: 18px; padding: 28px; width: min(420px,calc(100vw - 32px)); box-shadow: 0 20px 80px #0008; }
dialog::backdrop { background: rgba(1,4,10,.76); backdrop-filter: blur(5px); }
.profile-dialog .nav-item { margin-top: 8px; }
.confirm-dialog p { color: #a8b6ce; line-height: 1.6; }
.toast { position: fixed; z-index: 50; bottom: 24px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px); padding: 14px 20px; color: #dbeafe; background: #152b49; border: 1px solid #406b9b; border-radius: 12px; box-shadow: 0 12px 36px #0008; font-size: 14px; }
.login-layout { min-height: 100vh; display: grid; grid-template-columns: 1.2fr 1fr; gap: 70px; align-items: center; max-width: 1160px; padding: 70px 40px; margin: 0 auto; }
.login-story .brand { margin-bottom: 70px; }
.login-story .eyebrow { display: block; margin-bottom: 22px; }
.login-story h1 { font-size: clamp(32px,4vw,54px); line-height: 1.15; letter-spacing: -.035em; }
.login-story > p { color: #94a3b8; max-width: 470px; font-size: 17px; line-height: 1.7; }
.login-flow { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 38px; color: #93c5fd; font-size: 12px; }
.login-flow .icon { width: 14px; }
.login-card { padding: 36px; }
.login-card h2 { margin: 25px 0 12px; font-size: 24px; }
.login-card .subtle { line-height: 1.6; }
@media (max-width: 1100px) { .dashboard-grid { grid-template-columns: 1fr; } }
@media (max-width: 1050px) { .upload-layout { grid-template-columns: 1fr; } .login-layout { gap: 30px; padding: 40px 24px; } }
@media (max-width: 760px) { .settings-grid { grid-template-columns: 1fr; } .catalog-add-grid { grid-template-columns: 1fr; } .exam-row { grid-template-columns: 1fr 36px; gap: 10px; padding: 16px 0; border-bottom: 1px solid var(--line); } .exam-row label { grid-column: 1 / -1; } .exam-row input { grid-column: 1; } .exam-row .status { grid-row: 3; justify-self: start; } .exam-row button { grid-column: 2; grid-row: 2; } .login-layout { grid-template-columns: 1fr; max-width: 540px; gap: 35px; } .login-story .brand { margin-bottom: 35px; } .login-flow { display: none; } }
@media (max-width: 580px) {
 .nav-list { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 3px; }
 .side-rail { padding-left: 6px; padding-right: 6px; }
 .nav-item { flex-direction: column; gap: 6px; font-size: 9px; padding: 10px 1px; }
 .side-rail .nav-label { white-space: nowrap; }
 .profile-dialog .nav-item { flex-direction: row; font-size: 14px; padding: 12px; }
 .main-content { padding-top: 84px; padding-bottom: calc(120px + env(safe-area-inset-bottom)); }
 .steps.three { grid-template-columns: 1fr; }
 .demo-banner { gap: 5px; }
 .filters { grid-template-columns: 1fr; }
 .history-table th:nth-child(2), .history-table td:nth-child(2) { display: none; }
 .history-table td { font-size: 12px; }
 .toast { bottom: 90px; }
 .card-head { flex-wrap: wrap; }
 .login-card { padding: 25px; }
 .format-tabs { flex-wrap: wrap; }
}

/* Mensagens de validação de sessão e ação de logout. */
.auth-check { min-height: 30vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 48px 24px; color: #cbd5e1; text-align: center; font-size: 15px; }
.auth-check .primary-button { width: auto; }
#logoutButton { cursor: pointer; }
#logoutButton:disabled { opacity: .55; cursor: wait; }

/* Identificador permanente: visível para todas as contas e não editável. */
#settingsUserNumber[readonly] {
  color: #c7d2fe;
  background: rgba(59, 130, 246, .07);
  border-color: rgba(96, 165, 250, .32);
  font-weight: 700;
  letter-spacing: .07em;
  cursor: default;
}
#settingsUserNumber[readonly]:focus {
  outline: 1px solid rgba(96,165,250,.6);
}
.user-number-help { margin: -6px 0 4px !important; font-size: 12px; }
.user-number-summary { margin: 5px 0 2px !important; color: #a5b4fc !important; font-size: 12px; }

/* Catálogo: ações exclusivas do Master Admin. */
.catalog-actions-head { width: 190px; text-align: right; }
.catalog-row-actions { display: flex; justify-content: flex-end; gap: 8px; white-space: nowrap; }
.catalog-action-button {
  padding: 7px 10px;
  color: #cbd5e1;
  background: rgba(30,41,59,.72);
  border: 1px solid rgba(148,163,184,.2);
  border-radius: 9px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.catalog-action-button:hover { color: #fff; border-color: rgba(96,165,250,.45); background: rgba(37,99,235,.18); }
.catalog-action-button.save { color: #bbf7d0; border-color: rgba(34,197,94,.35); }
.catalog-action-button.danger { color: #fecaca; border-color: rgba(248,113,113,.32); background: rgba(127,29,29,.16); }
.catalog-action-button.danger:hover { color: #fff; border-color: rgba(248,113,113,.55); background: rgba(127,29,29,.28); }
.catalog-action-button:disabled { opacity: .5; cursor: wait; }
.catalog-inline-input {
  min-width: 140px;
  width: 100%;
  padding: 8px 10px;
  color: #93c5fd;
  background: #07111e;
  border: 1px solid rgba(96,165,250,.5);
  border-radius: 9px;
  font: inherit;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
