:root {
    --ink: #0a0e15;
    --navy: #0a0e15;
    --navy-2: #171d27;
    --paper: #f3f4f5;
    --surface: #ffffff;
    --line: #d8dce1;
    --muted: #68717e;
    --gold: #aeb5be;
    --gold-light: #eef0f2;
    --danger: #a03a3a;
    --success: #24684f;
    --shadow: 0 18px 50px rgba(10, 14, 21, .09);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--paper); }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body, input, button, textarea, select { font-size: 15px; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.topbar { position: fixed; z-index: 20; top: 0; right: 0; left: 0; height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; color: #fff; background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.08); }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.client-logo { display: block; width: auto; object-fit: contain; }
.client-logo-header { width: 183px; height: 52px; }
.portal-label { padding-left: 15px; color: rgba(255,255,255,.55); border-left: 1px solid rgba(255,255,255,.18); font-size: 9px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.topbar-user { display: flex; align-items: center; gap: 10px; }
.topbar-user strong, .topbar-user small { display: block; text-align: right; }
.topbar-user strong { font-size: 13px; }
.topbar-user small { margin-top: 2px; color: rgba(255,255,255,.6); font-size: 11px; }
.security-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #58c899; box-shadow: 0 0 0 4px rgba(88,200,153,.12); }
.icon-button { margin-left: 8px; padding: 8px 10px; color: rgba(255,255,255,.68); background: transparent; border: 1px solid rgba(255,255,255,.18); cursor: pointer; }
.icon-button:hover { color: #fff; border-color: rgba(255,255,255,.45); }

.sidebar { position: fixed; z-index: 10; top: 76px; bottom: 0; left: 0; width: 235px; display: flex; flex-direction: column; justify-content: space-between; padding: 30px 16px 20px; color: #fff; background: var(--navy); }
.sidebar nav { display: grid; gap: 6px; }
.sidebar nav a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: rgba(255,255,255,.66); border-left: 2px solid transparent; transition: .2s ease; }
.sidebar nav a span { color: var(--gold); font-family: Georgia, serif; font-size: 11px; }
.sidebar nav a:hover, .sidebar nav a.active { color: #fff; background: rgba(255,255,255,.06); border-left-color: var(--gold); }
.sidebar-note { padding: 15px; border: 1px solid rgba(174,181,190,.32); background: rgba(174,181,190,.06); }
.sidebar-note strong, .sidebar-note span { display: block; }
.sidebar-note strong { color: var(--gold-light); font-size: 12px; }
.sidebar-note span { margin-top: 6px; color: rgba(255,255,255,.56); font-size: 11px; line-height: 1.5; }

.content { min-height: 100vh; margin-left: 235px; padding: 116px 38px 60px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: 1400px; margin: 0 auto 28px; }
.page-heading h1 { margin: 5px 0 7px; font-family: Georgia, serif; font-size: clamp(30px, 4vw, 46px); font-weight: 400; letter-spacing: -.8px; }
.page-heading p { margin: 0; color: var(--muted); }
.eyebrow { color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.status-pill { display: inline-flex; align-items: center; gap: 9px; padding: 9px 13px; color: var(--success); background: #e4f0eb; border: 1px solid #c4ddd3; font-size: 12px; font-weight: 700; }
.status-pill span { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.back-link { display: inline-flex; margin: 0 0 18px; color: var(--muted); font-size: 13px; }
.back-link:hover { color: var(--ink); }

.button { display: inline-flex; min-height: 43px; align-items: center; justify-content: center; padding: 0 18px; border: 1px solid transparent; font-weight: 700; cursor: pointer; transition: .18s ease; }
.button-primary { color: #fff; background: var(--navy); border-color: var(--navy); }
.button-primary:hover { background: var(--navy-2); }
.button-secondary { color: var(--navy); background: transparent; border-color: #aeb7b2; }
.button-secondary:hover { background: #fff; border-color: var(--navy); }
.button-wide { width: 100%; }

.flash { max-width: 1400px; margin: 0 auto 20px; padding: 13px 16px; border: 1px solid; font-weight: 600; }
.flash-success { color: #205e48; background: #e7f4ee; border-color: #bcddce; }
.flash-danger { color: #8b3030; background: #faeaea; border-color: #eac0c0; }
.flash-warning { color: #755a25; background: #faf2df; border-color: #e8d6aa; }

.auth-main { min-height: 100vh; }
.login-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(420px, .8fr); }
.login-intro { position: relative; display: grid; place-items: center; overflow: hidden; padding: 64px 7vw; color: #fff; background: linear-gradient(135deg, rgba(10,14,21,.99), rgba(10,14,21,.91)), radial-gradient(circle at 70% 30%, #37404d, var(--navy)); }
.login-intro::after { position: absolute; right: -15%; bottom: -35%; width: 560px; height: 560px; border: 1px solid rgba(174,181,190,.2); border-radius: 50%; content: ""; box-shadow: 0 0 0 80px rgba(174,181,190,.035), 0 0 0 160px rgba(174,181,190,.02); }
.login-copy { position: relative; z-index: 2; width: min(100%, 700px); }
.client-logo-login { width: min(430px, 72%); height: auto; margin: 0 auto 54px; }
.login-intro h1 { max-width: 680px; margin: 12px 0 20px; font-family: Georgia, serif; font-size: clamp(50px, 6vw, 86px); font-weight: 400; line-height: .98; letter-spacing: -2px; }
.login-intro p { max-width: 530px; margin: 0; color: rgba(255,255,255,.68); font-size: 18px; line-height: 1.6; }
.login-assurances { display: flex; gap: 30px; margin-top: 65px; }
.login-assurances span { color: rgba(255,255,255,.72); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.login-assurances b { margin-right: 8px; color: var(--gold); font-family: Georgia, serif; }
.login-card { display: grid; place-items: center; padding: clamp(40px, 7vw, 100px); background: var(--paper); }
.login-form-wrap { width: min(100%, 470px); }
.login-signature { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; }
.login-signature span { width: 32px; height: 1px; background: var(--ink); }
.login-card h2 { margin: 34px 0 8px; font-family: Georgia, serif; font-size: 34px; font-weight: 400; }
.login-card > p { margin: 0 0 28px; color: var(--muted); line-height: 1.5; }
.stack-form { display: grid; gap: 17px; }
.stack-form label, .settings-grid label { display: grid; gap: 8px; color: #48524d; font-size: 12px; font-weight: 700; letter-spacing: .4px; }
input, textarea, select { width: 100%; color: var(--ink); background: #fff; border: 1px solid #cfd3cf; border-radius: 0; outline: none; }
input, select { height: 46px; padding: 0 13px; }
textarea { min-height: 90px; padding: 12px 13px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(174,181,190,.2); }
.confidential-hint { margin-top: 24px; padding: 13px; color: var(--muted); background: #e9ebee; border-left: 3px solid var(--gold); font-size: 11px; line-height: 1.5; }

.search-bar { display: flex; max-width: 1400px; margin: 0 auto 18px; gap: 10px; }
.search-bar input { flex: 1; }
.mailbox-switcher { display: grid; grid-template-columns: repeat(5, minmax(170px, 1fr)); max-width: 1400px; margin: 0 auto 18px; gap: 10px; }
.mailbox-switcher-scoped { grid-template-columns: minmax(260px, 430px); }
.mailbox-tile { display: flex; min-width: 0; align-items: center; gap: 11px; padding: 14px; background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 25px rgba(10,14,21,.04); transition: .18s ease; }
.mailbox-tile:hover, .mailbox-tile.active { border-color: #8f98a5; box-shadow: inset 0 -3px var(--navy), 0 10px 28px rgba(10,14,21,.07); }
.mailbox-icon { display: grid; width: 38px; height: 38px; flex: none; place-items: center; color: #fff; background: var(--navy); font-family: Georgia, serif; }
.mailbox-tile > span:last-child { min-width: 0; }
.mailbox-tile strong, .mailbox-tile small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mailbox-tile strong { font-size: 12px; }
.mailbox-tile small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.mail-card, .panel, .message-card, .legal-card, .request-card, .generated-link { max-width: 1400px; margin-right: auto; margin-left: auto; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.mail-header { display: flex; justify-content: space-between; padding: 14px 20px; color: var(--muted); background: #f7f8f9; border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.mail-row { display: grid; grid-template-columns: 42px minmax(150px, .7fr) minmax(280px, 2fr) auto; align-items: center; gap: 14px; padding: 17px 20px; border-bottom: 1px solid #ebe9e3; transition: .16s ease; }
.mail-row:last-child { border-bottom: 0; }
.mail-row:hover { background: #f7f8fa; box-shadow: inset 3px 0 var(--gold); }
.sender-avatar { display: grid; width: 38px; height: 38px; flex: none; place-items: center; color: #fff; background: var(--navy); font-family: Georgia, serif; }
.sender-avatar.large { width: 48px; height: 48px; font-size: 18px; }
.mail-sender strong, .mail-sender small, .mail-subject strong, .mail-subject small, .mail-meta time, .mail-meta b { display: block; }
.mail-sender strong, .mail-subject strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-sender small, .mail-subject small, .mail-meta time { margin-top: 5px; color: var(--muted); font-size: 11px; }
.mail-meta { text-align: right; }
.mail-meta b { color: var(--gold); font-size: 10px; text-transform: uppercase; }
.empty-state { padding: 65px 24px; text-align: center; }
.empty-state h3 { margin: 0 0 8px; font-family: Georgia, serif; font-size: 28px; font-weight: 400; }
.empty-state p { margin: 0 0 20px; color: var(--muted); }

.message-card { padding: clamp(24px, 4vw, 54px); }
.message-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.message-header h1 { max-width: 900px; margin: 10px 0 0; font-family: Georgia, serif; font-size: clamp(28px, 4vw, 45px); font-weight: 400; line-height: 1.12; }
.message-header time { color: var(--muted); font-size: 12px; white-space: nowrap; }
.classification { display: inline-flex; padding: 5px 8px; color: #5b4420; background: #f1e4c9; border: 1px solid #dbc394; font-size: 9px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; }
.classification-sigiloso { color: #7e2f2f; background: #f5dddd; border-color: #e4b3b3; }
.sender-block { display: flex; align-items: center; gap: 13px; margin: 28px 0 20px; }
.sender-block strong, .sender-block small { display: block; }
.sender-block small { margin-top: 4px; color: var(--muted); }
.message-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.message-tags span { padding: 7px 9px; color: #53605a; background: #eff1ec; font-size: 11px; }
.message-body { max-width: 880px; padding: 38px 0; color: #34413b; font-family: Georgia, serif; font-size: 17px; line-height: 1.85; }
.attachments { padding-top: 26px; border-top: 1px solid var(--line); }
.attachments h2 { font-family: Georgia, serif; font-size: 23px; font-weight: 400; }
.attachment-row { display: flex; align-items: center; gap: 14px; padding: 15px; background: #f5f6f7; border: 1px solid #dce0e4; }
.attachment-row:hover { border-color: var(--gold); }
.attachment-row span:nth-child(2) { flex: 1; }
.attachment-row strong, .attachment-row small { display: block; }
.attachment-row small { margin-top: 5px; color: var(--muted); font-size: 11px; }
.attachment-row b { color: var(--navy); font-size: 12px; }
.file-icon { display: grid; width: 42px; height: 49px; place-items: center; color: #fff; background: #934343; font-size: 10px; font-weight: 800; }

.viewer-toolbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; max-width: 1400px; margin: 0 auto 14px; padding: 14px 16px; color: #fff; background: var(--navy); }
.viewer-toolbar .back-link { margin: 0; color: rgba(255,255,255,.7); }
.viewer-toolbar > div { text-align: center; }
.viewer-toolbar strong, .viewer-toolbar span { display: block; }
.viewer-toolbar div span { margin-top: 3px; color: rgba(255,255,255,.58); font-size: 10px; }
.viewer-toolbar > .classification { justify-self: end; }
.viewer-warning { max-width: 1400px; margin: 0 auto 18px; padding: 10px 14px; color: #725729; background: #f4ead5; border: 1px solid #e2cda5; text-align: center; font-size: 11px; font-weight: 700; }
.document-viewer { display: grid; max-width: 1080px; margin: 0 auto; gap: 25px; }
.document-page { position: relative; min-height: 980px; overflow: hidden; padding: 105px 90px 70px; background: #fff; border: 1px solid #d3d0c8; box-shadow: 0 22px 60px rgba(20,34,30,.14); user-select: none; }
.document-page img { position: relative; z-index: 1; display: block; width: 100%; height: auto; pointer-events: none; }
.document-text { position: relative; z-index: 1; color: #202823; font-family: Georgia, serif; font-size: 18px; line-height: 2; white-space: normal; }
.document-page footer { position: absolute; z-index: 3; right: 60px; bottom: 28px; left: 60px; padding-top: 11px; color: #8b918d; border-top: 1px solid #deded8; text-align: center; font-size: 10px; }
.watermark-grid { position: absolute; z-index: 2; inset: -10%; display: grid; grid-template-columns: repeat(3, 1fr); align-content: space-around; transform: rotate(-25deg); pointer-events: none; }
.watermark-grid span { padding: 10px; color: rgba(122,81,35,.16); font-size: 10px; font-weight: 800; text-align: center; white-space: nowrap; }
.request-card { display: grid; grid-template-columns: .8fr 1.2fr; gap: 30px; margin-top: 24px; padding: 25px; }
.request-card h3 { margin: 0 0 5px; font-family: Georgia, serif; font-size: 23px; font-weight: 400; }
.request-card p { margin: 0; color: var(--muted); }
.request-card form { display: flex; align-items: flex-end; gap: 10px; }
.request-card textarea { min-height: 70px; }
.document-empty { background: #fff; border: 1px solid var(--line); }

.security-lock { position: fixed; z-index: 9999; inset: 0; display: grid; place-items: center; padding: 20px; color: #fff; background: rgba(10, 22, 19, .985); }
.security-lock[hidden] { display: none; }
.lock-card { max-width: 470px; padding: 45px; border: 1px solid rgba(174,181,190,.5); text-align: center; }
.client-logo-lock { width: min(280px, 80%); margin: 0 auto 25px; }
.lock-card h2 { margin: 0 0 10px; font-family: Georgia, serif; font-size: 32px; font-weight: 400; }
.lock-card p { margin: 0 0 24px; color: rgba(255,255,255,.6); line-height: 1.6; }
.lock-card .button { color: var(--navy); background: var(--gold-light); border-color: var(--gold-light); }

.legal-card { max-width: 900px; padding: clamp(26px, 5vw, 58px); }
.legal-card h2 { font-family: Georgia, serif; font-size: 30px; font-weight: 400; }
.legal-card p, .legal-card li { color: #46514c; line-height: 1.7; }
.legal-card li { margin-bottom: 9px; }
.muted { color: var(--muted) !important; font-size: 12px; }
.accept-form { display: grid; justify-items: start; gap: 18px; margin-top: 28px; padding-top: 23px; border-top: 1px solid var(--line); }
.check-row { display: flex !important; grid-column: auto; align-items: flex-start; gap: 10px !important; font-weight: 500 !important; line-height: 1.5; }
.check-row input { width: 17px; height: 17px; flex: none; margin-top: 2px; }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1400px; margin: 0 auto 24px; gap: 14px; }
.metric-grid article { padding: 23px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.metric-grid span, .metric-grid strong, .metric-grid small { display: block; }
.metric-grid span { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; }
.metric-grid strong { margin: 14px 0 5px; font-family: Georgia, serif; font-size: 42px; font-weight: 400; }
.metric-grid small { color: #8b928d; }
.metric-grid .alert-metric { color: #fff; background: var(--navy); border-color: var(--navy); }
.metric-grid .alert-metric span, .metric-grid .alert-metric small { color: rgba(255,255,255,.62); }
.panel { margin-bottom: 22px; }
.panel > header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.panel > header h2, .panel > header p { margin: 0; }
.panel > header h2 { font-family: Georgia, serif; font-size: 24px; font-weight: 400; }
.panel > header p { margin-top: 5px; color: var(--muted); font-size: 12px; }
.panel > header a { color: var(--gold); font-size: 12px; font-weight: 700; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 16px; border-bottom: 1px solid #ebe9e3; text-align: left; vertical-align: top; }
th { color: var(--muted); background: #f6f7f8; font-size: 10px; letter-spacing: .7px; text-transform: uppercase; }
td { font-size: 12px; }
td small { display: block; margin-top: 4px; color: var(--muted); }
.severity, .status { display: inline-flex; padding: 4px 7px; background: #eceeea; font-size: 9px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; }
.severity-high, .severity-critical, .status-denied { color: #8e3030; background: #f5dede; }
.severity-medium, .status-pending { color: #76591f; background: #f5ead2; }
.severity-info, .status-approved { color: #236049; background: #ddf0e8; }
.split-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, .6fr); max-width: 1400px; margin: 0 auto; gap: 22px; align-items: start; }
.compact-panel { padding-bottom: 22px; }
.compact-panel > form, .compact-panel > .integration-status, .compact-panel > .confidential-hint { margin-right: 22px; margin-left: 22px; }
.profile-grid { grid-template-columns: minmax(310px, .65fr) minmax(0, 1.35fr); }
.user-list { display: grid; }
.user-row { display: grid; grid-template-columns: 38px minmax(220px, 1fr) auto; align-items: center; gap: 13px; padding: 16px 20px; border-bottom: 1px solid #ebe9e3; }
.user-row.disabled { opacity: .55; background: #f4f5f6; }
.user-row strong, .user-row small { display: block; }
.user-row small { margin-top: 5px; color: var(--muted); font-size: 10px; }
.row-actions, .inline-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.row-actions form, .inline-actions form { margin: 0; }
.row-actions button, .inline-actions button { padding: 6px 8px; color: var(--navy); background: transparent; border: 1px solid #c9ceca; font-size: 10px; font-weight: 700; cursor: pointer; }
.mailbox-action { display: flex; align-items: center; gap: 5px; }
.mailbox-action select { width: 125px; height: 30px; padding: 0 6px; font-size: 10px; }
.row-actions button:hover, .inline-actions button:hover { border-color: var(--navy); }
.danger-text { color: var(--danger) !important; }
.settings-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 17px; padding: 22px; }
.settings-grid .full { grid-column: 1 / -1; }
.integration-status { display: flex; align-items: center; gap: 12px; padding: 18px 0; }
.integration-status strong, .integration-status small { display: block; }
.integration-status small { margin-top: 4px; color: var(--muted); }
.sync-form { margin-top: 4px; }
.mailbox-admin-list { display: grid; }
.mailbox-admin-list article { display: grid; grid-template-columns: 38px minmax(220px, 1fr) auto; align-items: center; gap: 13px; padding: 17px 20px; border-bottom: 1px solid #e8eaed; }
.mailbox-admin-list article:last-child { border-bottom: 0; }
.mailbox-admin-list strong, .mailbox-admin-list small { display: block; }
.mailbox-admin-list small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.mailbox-admin-meta { text-align: right; }
.generated-link { margin-bottom: 22px; padding: 18px; }
.generated-link strong, .generated-link small { display: block; }
.generated-link input { margin: 10px 0 6px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.generated-link small { color: var(--danger); }
.access-guide { display: grid; grid-template-columns: repeat(2, 1fr); max-width: 1400px; margin: 0 auto 22px; gap: 12px; }
.access-guide > div { display: flex; align-items: flex-start; gap: 13px; padding: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.access-guide-number { display: grid; width: 34px; height: 34px; flex: none; place-items: center; color: #fff; background: var(--navy); font-family: Georgia, serif; font-size: 11px; }
.access-guide strong, .access-guide small { display: block; }
.access-guide small { margin-top: 5px; color: var(--muted); line-height: 1.5; }

@media (max-width: 1050px) {
    .sidebar { width: 190px; }
    .content { margin-left: 190px; padding-right: 24px; padding-left: 24px; }
    .metric-grid { grid-template-columns: repeat(2, 1fr); }
    .mailbox-switcher { grid-template-columns: repeat(2, minmax(190px, 1fr)); }
    .split-grid { grid-template-columns: 1fr; }
    .login-layout { grid-template-columns: 1fr; }
    .login-intro { min-height: 48vh; padding: 55px 8vw; }
    .login-intro h1 { font-size: 56px; }
    .login-card { min-height: 52vh; }
}

@media (max-width: 760px) {
    .topbar { height: 66px; padding: 0 14px; }
    .topbar-user > span:nth-child(2), .security-dot { display: none; }
    .client-logo-header { width: 132px; height: 42px; }
    .portal-label { display: none; }
    .sidebar { position: fixed; z-index: 19; top: auto; right: 0; bottom: 0; width: auto; height: 62px; flex-direction: row; padding: 0; overflow-x: auto; border-top: 1px solid rgba(255,255,255,.1); }
    .sidebar nav { display: flex; width: max-content; }
    .sidebar nav a { flex-direction: column; justify-content: center; min-width: 96px; gap: 2px; padding: 7px 10px; border: 0; border-top: 2px solid transparent; font-size: 10px; }
    .sidebar nav a.active { border-top-color: var(--gold); border-left-color: transparent; }
    .sidebar nav a span { font-size: 9px; }
    .sidebar-note { display: none; }
    .content { margin-left: 0; padding: 92px 14px 90px; }
    .page-heading { align-items: flex-start; flex-direction: column; }
    .page-heading h1 { font-size: 34px; }
    .mail-row { grid-template-columns: 38px minmax(0, 1fr) auto; }
    .mail-sender { display: none; }
    .mail-subject strong { white-space: normal; }
    .mail-meta b { display: none; }
    .message-header { flex-direction: column; }
    .message-tags { display: grid; }
    .viewer-toolbar { grid-template-columns: 1fr auto; }
    .viewer-toolbar > div { display: none; }
    .document-page { min-height: 650px; padding: 70px 35px 55px; }
    .document-text { font-size: 15px; line-height: 1.75; }
    .watermark-grid { grid-template-columns: repeat(2, 1fr); }
    .watermark-grid span { font-size: 7px; }
    .request-card { grid-template-columns: 1fr; }
    .request-card form { align-items: stretch; flex-direction: column; }
    .metric-grid { grid-template-columns: 1fr 1fr; }
    .user-row { grid-template-columns: 38px 1fr; }
    .row-actions { grid-column: 1 / -1; justify-content: flex-start; }
    .mailbox-action { flex-wrap: wrap; }
    .mailbox-action select { width: 145px; }
    .settings-grid { grid-template-columns: 1fr; }
    .settings-grid .full { grid-column: auto; }
    .login-intro { min-height: 52vh; padding: 36px 24px; }
    .client-logo-login { width: min(280px, 78%); margin-bottom: 28px; }
    .login-intro h1 { font-size: 44px; }
    .login-intro p { font-size: 15px; }
    .login-assurances { display: none; }
    .login-card { padding: 42px 24px 60px; }
    .login-card h2 { margin-top: 35px; }
    .mailbox-switcher { display: flex; overflow-x: auto; padding-bottom: 5px; }
    .mailbox-tile { min-width: 230px; }
    .mailbox-admin-list article { grid-template-columns: 38px 1fr; }
    .mailbox-admin-meta { grid-column: 1 / -1; text-align: left; }
    .access-guide { grid-template-columns: 1fr; }
}

@media print {
    html, body { display: none !important; visibility: hidden !important; }
}
