:root {
  --navy: #0d2c52;
  --blue: #1769aa;
  --blue-soft: #eaf3fb;
  --ink: #18324b;
  --muted: #6b7c8e;
  --line: #e2e9ef;
  --surface: #ffffff;
  --bg: #f4f7fa;
  --green: #147d55;
  --red: #b23b42;
  --radius: 18px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); min-height: 100vh; }
button, input { font: inherit; }
a { color: var(--blue); }
.site-shell { width: min(1120px, calc(100% - 36px)); margin: 0 auto; }
.topbar { height: 82px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--navy); text-decoration: none; }
.brand-mark { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: linear-gradient(145deg, #1d77b7, #0d2c52); font-size: 21px; font-weight: 800; box-shadow: 0 5px 14px #0d2c5222; }
.brand strong { display: block; font-size: 14px; letter-spacing: .14em; }
.brand small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; letter-spacing: .02em; }
.top-actions { display: flex; align-items: center; gap: 14px; }
.top-actions form { margin: 0; }
.admin-label { color: var(--muted); font-size: 13px; }
.login-wrap { min-height: calc(100vh - 154px); display: grid; place-items: center; padding: 44px 0; }
.login-card { width: min(100%, 438px); background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 38px; box-shadow: 0 18px 60px #18324b0b; }
.setup-card { width: min(100%, 490px); }
.eyebrow { color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .16em; margin-bottom: 10px; }
h1, h2, h3, p { margin-top: 0; }
h1 { color: var(--navy); font-size: clamp(27px, 4vw, 36px); letter-spacing: -.04em; line-height: 1.12; margin-bottom: 11px; }
h2 { color: var(--navy); font-size: 21px; letter-spacing: -.025em; margin-bottom: 5px; }
h3 { color: var(--navy); font-size: 15px; margin-bottom: 5px; }
.muted { color: var(--muted); line-height: 1.6; font-size: 14px; }
.form-stack { display: flex; flex-direction: column; gap: 9px; margin-top: 25px; }
label { font-size: 12px; color: #44596e; font-weight: 700; }
input[type="text"], input[type="password"] { width: 100%; height: 47px; background: #fbfcfd; border: 1px solid #dce5ec; border-radius: 10px; padding: 0 13px; outline: none; color: var(--ink); margin-bottom: 8px; transition: border .15s, box-shadow .15s; }
input:focus { border-color: #4d94ca; box-shadow: 0 0 0 3px #1769aa18; }
.button { border: 0; border-radius: 10px; min-height: 43px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; font-weight: 750; cursor: pointer; text-decoration: none; transition: transform .15s, background .15s, opacity .15s; }
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .55; cursor: wait; transform: none; }
.button-primary { color: #fff; background: var(--blue); box-shadow: 0 6px 16px #1769aa24; }
.button-primary:hover { background: #125b95; }
.button-full { width: 100%; margin-top: 9px; min-height: 48px; }
.button-quiet { color: var(--navy); background: #eaf0f5; }
.button-small { min-height: 35px; padding: 0 14px; }
.button-outline { color: var(--blue); border: 1px solid #b8d2e6; background: #fff; }
.button-tiny { min-height: 30px; padding: 0 10px; font-size: 10px; border-radius: 8px; white-space: nowrap; }
.login-foot { border-top: 1px solid var(--line); margin: 24px 0 0; padding-top: 18px; color: #91a0ad; font-size: 11px; text-align: center; }
.dashboard { padding: 42px 0 60px; }
.welcome-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 30px; }
.welcome-row .muted { max-width: 650px; margin-bottom: 0; }
.domain-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; color: #47647d; background: #eaf1f7; border: 1px solid #dce7ef; border-radius: 30px; padding: 9px 13px; font-size: 11px; font-weight: 700; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #24a36e; box-shadow: 0 0 0 3px #24a36e20; }
.upload-card { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 12px 35px #16395808; }
.section-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 22px; }
.section-heading p { color: var(--muted); font-size: 12px; margin-bottom: 0; }
.step-number { flex: 0 0 38px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--blue-soft); color: var(--blue); font-size: 13px; font-weight: 850; }
.drop-zone { min-height: 177px; border: 1.5px dashed #b9ccdc; border-radius: 14px; background: #f9fbfd; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 22px; text-align: center; cursor: pointer; transition: .15s; }
.drop-zone:hover, .drop-zone.is-dragover { border-color: var(--blue); background: #f0f7fc; }
.drop-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.upload-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--blue); font-size: 24px; line-height: 1; margin-bottom: 12px; }
.drop-zone strong { font-size: 14px; color: var(--navy); }
.drop-zone small { display: block; margin-top: 7px; color: #8393a1; font-size: 11px; }
.upload-controls { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-top: 16px; }
.file-name { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.progress-panel { margin-top: 19px; padding: 16px; background: #f7fafc; border: 1px solid var(--line); border-radius: 12px; }
.progress-top { display: flex; justify-content: space-between; gap: 15px; color: var(--navy); font-size: 12px; margin-bottom: 10px; }
.progress-top span { color: var(--blue); font-weight: 800; }
.progress-track { height: 7px; border-radius: 9px; background: #e3ebf1; overflow: hidden; }
.progress-track span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #1769aa, #42a5d9); border-radius: inherit; transition: width .2s ease; }
.small-text { font-size: 11px; margin: 9px 0 0; }
.alert { margin-top: 15px; border-radius: 10px; padding: 12px 14px; font-size: 12px; line-height: 1.5; }
.alert-error { color: #91343a; background: #fff0f0; border: 1px solid #f3d0d0; }
.alert-success { color: #176444; background: #edf9f3; border: 1px solid #cdebdc; }
.notice-line { display: flex; align-items: flex-start; gap: 9px; margin-top: 20px; color: #6d8294; font-size: 11px; line-height: 1.5; }
.notice-icon { flex: 0 0 17px; width: 17px; height: 17px; display: grid; place-items: center; border-radius: 50%; background: #e9f0f6; color: #56738c; font-size: 10px; font-weight: 800; }
.history-section { margin-top: 48px; }
.history-heading { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 17px; }
.history-heading h2 { margin-bottom: 0; font-size: 24px; }
.count-pill { border-radius: 20px; padding: 7px 11px; background: #eaf0f5; color: #536e84; font-size: 11px; font-weight: 700; }
.empty-state { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-align: center; padding: 48px 20px; }
.empty-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; background: #edf4f9; color: #6d91ad; border-radius: 15px; font-size: 23px; margin-bottom: 12px; }
.empty-state strong { display: block; color: var(--navy); font-size: 14px; }
.empty-state p { color: #8595a2; font-size: 12px; margin: 7px 0 0; }
.document-list { display: flex; flex-direction: column; gap: 12px; }
.document-card { background: #fff; border: 1px solid var(--line); border-radius: 15px; overflow: hidden; }
.document-head { display: flex; align-items: center; gap: 13px; padding: 17px 18px; }
.document-symbol { flex: 0 0 39px; width: 39px; height: 43px; display: grid; place-items: center; border-radius: 8px; background: #edf4fa; color: var(--blue); font-size: 9px; font-weight: 900; letter-spacing: .03em; }
.document-info { min-width: 0; flex: 1; }
.document-info h3 { overflow-wrap: anywhere; }
.document-info p { margin-bottom: 0; font-size: 11px; color: #8998a5; }
.state-tag { border-radius: 20px; padding: 6px 9px; font-size: 9px; font-weight: 800; white-space: nowrap; }
.state-complete { background: #eaf7f0; color: var(--green); }
.state-pending { background: #fff6e5; color: #9b6b18; }
.delete-form { margin: 0; }
.icon-button { width: 31px; height: 31px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: #9aa9b6; font-size: 23px; cursor: pointer; }
.icon-button:hover { color: var(--red); background: #fff0f0; }
.pages-details { border-top: 1px solid #edf1f4; }
.pages-details summary { list-style: none; cursor: pointer; padding: 13px 18px; color: var(--blue); font-size: 11px; font-weight: 800; }
.pages-details summary::-webkit-details-marker { display: none; }
.pages-details summary::before { content: "+"; display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 8px; border-radius: 50%; background: #eef5fa; }
.pages-details[open] summary::before { content: "−"; }
.pages-details summary span { margin-left: 7px; color: #94a2ae; font-weight: 500; }
.pages-table-wrap { overflow-x: auto; border-top: 1px solid #edf1f4; }
.pages-table { width: 100%; border-collapse: collapse; min-width: 520px; }
.pages-table th { background: #fafcfd; color: #8494a2; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; text-align: left; padding: 10px 16px; }
.pages-table td { border-top: 1px solid #f0f3f6; padding: 14px 16px; vertical-align: middle; }
.page-number { width: 70px; color: var(--navy); font-size: 12px; font-weight: 800; }
.page-link { display: block; width: fit-content; text-decoration: none; font-size: 12px; font-weight: 750; }
.page-link:hover { text-decoration: underline; }
.text-button { border: 0; background: transparent; color: #8a9aa7; font-size: 10px; padding: 5px 0 0; cursor: pointer; }
.text-button:hover { color: var(--blue); text-decoration: underline; }
.qr-cell { display: flex; align-items: center; gap: 12px; }
.qr-code { width: 148px; height: 148px; padding: 5px; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid #e5ebf0; border-radius: 8px; }
.qr-code canvas, .qr-code img { display: block; max-width: 100%; height: auto; }
.empty-pages { color: #8d9aa5; font-size: 11px; padding: 0 18px 16px; margin: 0; }
.security-settings { margin-top: 25px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.security-settings summary { cursor: pointer; padding: 15px 17px; color: #526b80; font-weight: 750; font-size: 12px; }
.security-settings summary span { margin-left: 8px; color: var(--blue); font-weight: 500; }
.password-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; padding: 0 17px 17px; align-items: end; }
.password-form div { display: flex; flex-direction: column; gap: 6px; }
.password-form input { margin: 0; }
.password-form .button { grid-column: 1 / -1; justify-self: start; }
.footer { min-height: 72px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #9aa7b2; font-size: 10px; }
@media (max-width: 700px) {
  .site-shell { width: min(100% - 24px, 1120px); }
  .topbar { height: 70px; }
  .admin-label { display: none; }
  .dashboard { padding-top: 30px; }
  .welcome-row { align-items: flex-start; flex-direction: column; gap: 14px; }
  .upload-card { padding: 17px; }
  .upload-controls { align-items: stretch; flex-direction: column; }
  .upload-controls .button { width: 100%; }
  .document-head { gap: 9px; padding: 14px 12px; }
  .document-symbol { flex-basis: 34px; width: 34px; height: 38px; }
  .document-info p { line-height: 1.4; }
  .state-tag { display: none; }
  .qr-cell { align-items: flex-start; flex-direction: column; }
  .password-form { grid-template-columns: 1fr; }
  .footer { align-items: flex-start; flex-direction: column; justify-content: center; padding: 15px 0; }
  .login-card { padding: 27px 22px; }
}

/* ==========================================================
   EXPERIENCIA VISUAL 2026 — autenticação e página pública
   ========================================================== */
.login-wrap { padding: 34px 0 48px; }
.login-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  align-items: stretch;
  gap: 46px;
  min-height: 590px;
  padding: 14px 0;
}
.login-story {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 590px;
  padding: 54px 54px 38px;
  color: #fff;
  border-radius: 28px;
  background:
    radial-gradient(circle at 90% 12%, rgba(65, 156, 220, .34), transparent 29%),
    radial-gradient(circle at 12% 92%, rgba(44, 119, 185, .32), transparent 35%),
    linear-gradient(145deg, #123b68 0%, #0d2c52 53%, #081d38 100%);
  box-shadow: 0 26px 65px rgba(13, 44, 82, .17);
}
.login-story::before,
.login-story::after { position: absolute; z-index: -1; content: ""; border: 1px solid rgba(255,255,255,.10); border-radius: 50%; pointer-events: none; }
.login-story::before { width: 390px; height: 390px; right: -185px; top: -160px; box-shadow: 0 0 0 34px rgba(255,255,255,.025), 0 0 0 70px rgba(255,255,255,.018); }
.login-story::after { width: 260px; height: 260px; left: -160px; bottom: -130px; box-shadow: 0 0 0 25px rgba(255,255,255,.025); }
.story-kicker { display: flex; align-items: center; gap: 9px; color: #b9d7f1; font-size: 10px; font-weight: 850; letter-spacing: .17em; }
.story-kicker-dot { width: 7px; height: 7px; border-radius: 50%; background: #5bd5a0; box-shadow: 0 0 0 5px rgba(91,213,160,.13); }
.story-emblem { position: relative; display: grid; place-items: center; width: 72px; height: 72px; margin: 42px 0 27px; border: 1px solid rgba(255,255,255,.27); border-radius: 22px; background: linear-gradient(145deg, rgba(255,255,255,.19), rgba(255,255,255,.055)); box-shadow: 0 12px 30px rgba(0,0,0,.13), inset 0 1px 0 rgba(255,255,255,.18); }
.story-emblem span { color: #fff; font-size: 37px; line-height: 1; font-weight: 900; letter-spacing: -.08em; }
.story-emblem i { position: absolute; width: 8px; height: 8px; right: 12px; top: 12px; border-radius: 50%; background: #60d6a2; box-shadow: 0 0 0 4px rgba(96,214,162,.15); }
.login-story h1 { max-width: 560px; margin: 0 0 18px; color: #fff; font-size: clamp(35px, 4vw, 52px); line-height: 1.07; letter-spacing: -.055em; }
.login-story h1 span { color: #80c9f5; }
.login-story > p { max-width: 490px; margin: 0; color: rgba(232,243,252,.76); font-size: 15px; line-height: 1.8; }
.story-benefits { display: grid; gap: 18px; margin-top: 37px; }
.story-benefits > div { display: flex; align-items: center; gap: 13px; }
.benefit-icon { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.16); border-radius: 12px; color: #a9dafa; background: rgba(255,255,255,.08); font-size: 18px; }
.story-benefits strong, .story-benefits small { display: block; }
.story-benefits strong { margin-bottom: 3px; color: #fff; font-size: 12px; }
.story-benefits small { color: rgba(226,239,249,.62); font-size: 11px; }
.story-bottom { display: flex; align-items: center; gap: 9px; margin-top: auto; padding-top: 38px; color: rgba(226,239,249,.66); font-size: 10px; letter-spacing: .02em; }
.story-shield { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; color: #8be0b7; background: rgba(91,213,160,.14); font-size: 11px; font-weight: 900; }
.auth-card { align-self: center; width: 100%; max-width: 460px; padding: 43px 39px; border: 1px solid rgba(222,232,240,.9); border-radius: 25px; background: rgba(255,255,255,.96); box-shadow: 0 22px 65px rgba(24,50,75,.09), 0 2px 8px rgba(24,50,75,.025); }
.auth-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.auth-heading .eyebrow { margin: 0; }
.auth-icon { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 13px; color: #1769aa; background: #eaf4fc; }
.auth-icon svg, .input-symbol svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.auth-card h2 { margin: 0 0 9px; color: #102d4e; font-size: 29px; letter-spacing: -.045em; }
.auth-card > .muted { margin-bottom: 26px; font-size: 13px; }
.auth-card .form-stack { gap: 9px; margin-top: 0; }
.auth-card label { margin-top: 5px; color: #344e66; font-size: 11px; letter-spacing: .015em; }
.auth-input-wrap { position: relative; display: flex; align-items: center; min-height: 51px; border: 1px solid #dfe8ef; border-radius: 12px; background: #f9fbfd; transition: border .18s ease, box-shadow .18s ease, background .18s ease; }
.auth-input-wrap:focus-within { border-color: #5a9ccc; background: #fff; box-shadow: 0 0 0 4px rgba(23,105,170,.09); }
.auth-input-wrap .input-symbol { display: grid; place-items: center; flex: 0 0 45px; width: 45px; color: #8ba0b2; font-size: 15px; font-weight: 700; }
.auth-input-wrap input { width: 100%; min-width: 0; height: 49px; margin: 0; padding: 0 14px 0 0; border: 0; outline: 0; color: #17324b; background: transparent; box-shadow: none; font-size: 13px; }
.auth-input-wrap input:focus { border: 0; box-shadow: none; }
.auth-input-wrap input::placeholder { color: #a6b3be; }
.auth-card .button-full { min-height: 52px; margin-top: 13px; border-radius: 12px; background: linear-gradient(110deg, #1d78b8, #145b97); box-shadow: 0 9px 20px rgba(23,105,170,.2); font-size: 13px; }
.auth-card .button-full:hover { background: linear-gradient(110deg, #176da9, #0d4d84); }
.auth-card .button-full span { margin-left: 5px; font-size: 17px; font-weight: 500; }
.auth-card .login-foot { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 27px; padding-top: 20px; color: #8495a4; font-size: 10px; }
.foot-lock { display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; color: #23885f; background: #e8f7ef; font-size: 10px; font-weight: 900; }
.auth-card .alert { margin: 0 0 18px; }
.setup-layout .login-story { min-height: 650px; }
.setup-layout .login-story h1 { font-size: clamp(34px, 3.8vw, 48px); }
.setup-card { max-width: 490px; }
.setup-card .notice-line { margin-top: 18px; }

/* Página pública: visualizador com moldura e comandos próprios */
body.public-pdf-page { min-height: 100vh; color: #1a344e; background: #edf2f7; }
.public-header { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 clamp(18px, 4vw, 56px); border-bottom: 1px solid #e2e9ef; background: rgba(255,255,255,.96); }
.public-brand { gap: 12px; }
.public-brand .brand-mark { width: 41px; height: 41px; border-radius: 13px; }
.public-secure { display: inline-flex; align-items: center; gap: 9px; padding: 9px 13px; border: 1px solid #dcebe4; border-radius: 30px; color: #46735e; background: #f2faf5; font-size: 11px; font-weight: 700; }
.public-pdf-main { width: min(1360px, calc(100% - 48px)); margin: 0 auto; padding: 28px 0 22px; }
.pdf-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 18px; padding: 19px 22px; border: 1px solid #e0e8ef; border-radius: 17px; background: #fff; box-shadow: 0 5px 18px rgba(28,57,83,.035); }
.pdf-title-group { display: flex; align-items: center; min-width: 0; gap: 14px; }
.pdf-file-icon { display: grid; place-items: center; flex: 0 0 47px; width: 47px; height: 51px; border-radius: 12px; color: #1769aa; background: #eaf4fb; font-size: 11px; font-weight: 900; letter-spacing: .04em; }
.pdf-title-copy { min-width: 0; }
.pdf-title-copy .eyebrow { margin-bottom: 5px; font-size: 9px; }
.pdf-title-copy h1 { max-width: 680px; overflow: hidden; margin: 0 0 4px; color: #102d4e; font-size: 17px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; letter-spacing: -.02em; }
.pdf-title-copy p { margin: 0; color: #8494a2; font-size: 11px; }
.meta-separator { padding: 0 5px; color: #c1cbd3; }
.pdf-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 9px; }
.pdf-actions .button { min-height: 40px; padding: 0 14px; border-radius: 10px; font-size: 11px; }
.pdf-actions .button-outline { border-color: #dbe5ed; color: #49657c; background: #fff; }
.pdf-viewer-card { overflow: hidden; border: 1px solid #dce5ed; border-radius: 17px; background: #dce4eb; box-shadow: 0 12px 35px rgba(22,48,73,.09); }
.viewer-topline { display: flex; align-items: center; height: 37px; gap: 6px; padding: 0 14px; color: #91a0ac; background: #f9fbfc; border-bottom: 1px solid #e0e7ed; }
.viewer-dot { width: 7px; height: 7px; border-radius: 50%; background: #d3dce4; }
.viewer-label { margin-left: 8px; font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.viewer-page { margin-left: auto; font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.pdf-frame { display: block; width: 100%; height: min(76vh, 1000px); min-height: 590px; border: 0; background: #e2e8ee; }
.public-note { display: flex; align-items: flex-start; justify-content: center; gap: 9px; max-width: 720px; margin: 17px auto 0; color: #73879a; font-size: 11px; line-height: 1.6; text-align: center; }
.public-note .notice-icon { flex: 0 0 17px; }
.public-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 0 clamp(18px, 4vw, 56px); border-top: 1px solid #dfe7ed; color: #8a9aa8; background: #f8fafc; font-size: 10px; }
.public-footer strong { color: #42627d; letter-spacing: .12em; }
.public-empty-wrap { display: grid; min-height: calc(100vh - 132px); place-items: center; padding: 36px 20px; }
.public-empty-card { width: min(100%, 490px); padding: 45px 42px; border: 1px solid #e0e8ef; border-radius: 22px; background: #fff; box-shadow: 0 20px 60px rgba(22,48,73,.07); text-align: center; }
.empty-document-icon { display: grid; place-items: center; width: 58px; height: 63px; margin: 0 auto 23px; border-radius: 14px; color: #1769aa; background: #eaf4fb; font-size: 12px; font-weight: 900; }
.public-empty-card .eyebrow { margin-bottom: 10px; }
.public-empty-card h1 { margin-bottom: 12px; font-size: 27px; }
.public-empty-card p { margin-bottom: 23px; color: #74889a; font-size: 13px; line-height: 1.7; }
.public-empty-card .button { padding: 0 22px; }

@media (max-width: 900px) {
  .login-layout { grid-template-columns: minmax(0, 1fr) minmax(330px, .92fr); gap: 24px; }
  .login-story { padding: 42px 35px 32px; }
  .auth-card { padding: 35px 29px; }
  .pdf-toolbar { align-items: flex-start; flex-direction: column; }
  .pdf-actions { width: 100%; }
}
@media (max-width: 700px) {
  .login-wrap { padding: 22px 0 32px; }
  .login-layout { display: flex; flex-direction: column; gap: 0; min-height: 0; padding: 0; }
  .login-story { min-height: 0; padding: 29px 25px 26px; border-radius: 22px 22px 0 0; }
  .story-emblem { width: 52px; height: 52px; margin: 23px 0 18px; border-radius: 16px; }
  .story-emblem span { font-size: 28px; }
  .login-story h1 { margin-bottom: 10px; font-size: 33px; }
  .login-story > p { font-size: 12px; line-height: 1.6; }
  .story-benefits { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
  .story-benefits > div { align-items: flex-start; gap: 9px; }
  .benefit-icon { flex-basis: 31px; width: 31px; height: 31px; border-radius: 9px; font-size: 14px; }
  .story-benefits strong { font-size: 10px; }
  .story-benefits small { font-size: 9px; line-height: 1.4; }
  .story-bottom { padding-top: 23px; font-size: 9px; }
  .auth-card { max-width: none; padding: 29px 24px 25px; border-radius: 0 0 22px 22px; }
  .auth-card h2 { font-size: 25px; }
  .auth-card > .muted { margin-bottom: 21px; font-size: 12px; }
  .setup-layout .login-story { min-height: 0; }
  .setup-layout .login-story h1 { font-size: 30px; }
  .public-header { height: 66px; padding: 0 15px; }
  .public-brand .brand-mark { width: 36px; height: 36px; }
  .public-brand strong { font-size: 12px; }
  .public-brand small { font-size: 9px; }
  .public-secure { padding: 7px 9px; font-size: 9px; }
  .public-pdf-main { width: calc(100% - 20px); padding: 13px 0 16px; }
  .pdf-toolbar { gap: 14px; margin-bottom: 11px; padding: 14px; border-radius: 13px; }
  .pdf-title-group { gap: 10px; }
  .pdf-file-icon { flex-basis: 39px; width: 39px; height: 43px; font-size: 9px; }
  .pdf-title-copy h1 { max-width: calc(100vw - 105px); font-size: 14px; }
  .pdf-title-copy .eyebrow { font-size: 8px; }
  .pdf-title-copy p { font-size: 10px; }
  .pdf-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .pdf-actions .button { min-height: 39px; padding: 0 8px; font-size: 10px; }
  .pdf-viewer-card { border-radius: 12px; }
  .viewer-topline { height: 30px; padding: 0 10px; }
  .pdf-frame { height: calc(100dvh - 235px); min-height: 430px; }
  .public-note { align-items: flex-start; margin-top: 12px; font-size: 10px; text-align: left; }
  .public-footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 5px; min-height: 57px; padding: 10px 16px; font-size: 9px; }
  .public-empty-card { padding: 35px 24px; }
}
@media (max-width: 390px) {
  .public-secure { gap: 6px; font-size: 8px; }
  .story-benefits { grid-template-columns: 1fr; }
  .story-benefits small { font-size: 10px; }
  .pdf-actions .button { font-size: 9px; }
}
