/* Certurion klantportaal, gebaseerd op het ontwerp van 13 oktober 2026.
   De bestaande componentstijlen blijven de PDF-editor en beheerformulieren ondersteunen. */
:root {
    --bg: #f5fafb;
    --text: #0f172a;
    --muted: #475569;
    --line: #d6e6ea;
    --primary: #136680;
    --primary-dark: #0d5065;
    --accent: #1fbfb7;
    --accent-soft: #eaf9f7;
    --surface-soft: #f4f8fa;
    --surface-tint: #eaf6f8;
    --nav: #0d4356;
    --shadow: 0 2px 8px #0f172a04;
}
html { scroll-padding-top: 100px; }
body { background: var(--bg); font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 14px; line-height: 1.55; }
h1 { font-size: 32px; font-weight: 650; line-height: 1.25; letter-spacing: -1px; margin: 0 0 12px; }
h2 { font-size: 18px; font-weight: 650; letter-spacing: -.3px; margin: 0 0 12px; }
h3 { font-size: 16px; margin: 0 0 8px; }
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }
a { color: var(--primary); }
svg { flex-shrink: 0; vertical-align: middle; }
button, .button-link, .link-button { min-height: 44px; padding: 10px 16px; border-radius: 6px; font-weight: 600; font-size: 14px; touch-action: manipulation; }
.button-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
button.secondary, .button-link.secondary { background: #fff; border-color: var(--line); color: var(--primary); }
button.secondary:hover, .button-link.secondary:hover { background: var(--surface-tint); border-color: #a7cdd6; }
button.danger { background: #fff5f5; color: #991b1b; border-color: #efcccc; }
button:disabled { opacity: .6; }
input, select, textarea { background: #fff; color: var(--text); min-width: 0; max-width: 100%; padding: 11px 12px; border-color: #cbd5e1; border-radius: 6px; }
input:not([type="checkbox"]):not([type="radio"]):not([type="color"]), select { min-height: 44px; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--primary); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
.skip-link { position: fixed; left: 12px; top: -80px; background: #fff; padding: 12px 20px; z-index: 100; border-radius: 6px; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.eyebrow { display: block; font-size: 12px; font-weight: 650; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.portal-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 40; width: 248px; height: 100dvh; padding: 32px 16px 20px; background: var(--nav); border: 0; box-shadow: none; transform: none; }
.portal-sidebar .sidebar-header { display: block; position: relative; }
.portal-sidebar > * { flex-shrink: 0; }
.portal-brand { display: block; line-height: 0; padding: 10px; background: #fff; border-radius: 8px; margin-bottom: 24px; }
.portal-brand img { display: block; width: 100%; height: auto; }
.organization-card { display: flex; gap: 10px; align-items: center; border: 1px solid #4b7c8b; padding: 12px; border-radius: 8px; background: #ffffff08; margin-bottom: 24px; color: #fff; }
.organization-card > span:last-child, .sidebar-profile > span:last-child { min-width: 0; }
.organization-card strong, .sidebar-profile strong { display: block; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.organization-card small, .sidebar-profile small { color: #c0e1e8; font-size: 11px; display: block; margin-top: 4px; }
.org-avatar { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; background: #ffffff13; border-radius: 7px; font-weight: 650; }
.portal-nav { gap: 4px; }
.portal-nav .nav-group-label { margin: 18px 12px 8px; padding: 0; color: #b7dce5; font-size: 11px; font-weight: 650; letter-spacing: 1.5px; text-transform: uppercase; }
.portal-nav .nav-group-label:first-of-type { margin-top: 0; }
.portal-nav a { border: 0; padding: 10px 14px; min-height: 44px; gap: 12px; color: #d0e8ee; font-size: 13px; border-radius: 6px; }
.portal-nav a:hover { background: #ffffff12; }
.portal-nav a.is-active { background: var(--accent); color: #062f3c; font-weight: 650; }
.nav-extra { margin-top: 6px; }
.nav-extra summary { padding: 10px 14px; color: #b7dce5; cursor: pointer; font-size: 12px; }
.nav-extra a { margin-top: 4px; }
.sidebar-bottom { margin-top: auto; padding-top: 24px; }
.sidebar-profile { display: flex; gap: 10px; align-items: center; border-top: 1px solid #4b7c8b; padding-top: 16px; }
.profile-avatar { display: inline-grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: #eaf6f8; color: var(--primary); font-size: 12px; font-weight: 650; }
.portal-logout { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 8px; background: transparent; color: #c0e1e8; border-color: transparent; text-align: left; font-size: 12px; }
.portal-logout:hover { background: #ffffff12; border-color: transparent; }
.tenant-return-form { margin-bottom: 16px; }
.tenant-return-form button { width: 100%; font-size: 12px; }
.portal-shell { margin-left: 248px; min-width: 0; }
.portal-topbar { position: sticky; top: 0; z-index: 25; min-height: 80px; padding: 16px 32px; background: #fff; border-bottom: 1px solid var(--line); display: flex; gap: 20px; align-items: center; justify-content: space-between; }
.portal-breadcrumb { display: flex; gap: 14px; align-items: center; color: var(--muted); font-size: 13px; }
.portal-breadcrumb strong { color: var(--text); font-weight: 550; }
.topbar-actions { display: flex; gap: 20px; align-items: center; }
.quick-navigation-button { display: flex; gap: 10px; align-items: center; font-weight: 400; font-size: 12px; min-width: 270px; }
.quick-navigation-button kbd { margin-left: auto; border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; color: var(--muted); font-size: 10px; }
.portal-content { max-width: 1680px; padding: 32px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.portal-footer { display: flex; justify-content: space-between; gap: 16px; padding-top: 12px; color: var(--muted); font-size: 11px; }
.portal-topbar .sidebar-open-button { display: none; }
.panel { border-radius: 12px; padding: 24px; box-shadow: var(--shadow); }
.panel-header { align-items: center; margin-bottom: 20px; }
.panel-header h1, .panel-header h2 { margin-bottom: 6px; }
.panel-header p { color: var(--muted); margin: 0; }
.page-intro { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.page-intro p { color: var(--muted); font-size: 15px; max-width: 65ch; }
.intro-actions { display: flex; gap: 12px; align-items: center; }
.portal-hero { background: var(--primary); color: #fff; padding: 32px; border-radius: 12px; border-left: 5px solid var(--accent); }
.portal-hero .eyebrow, .portal-hero p, .portal-hero .date-label { color: #d0e8ee; }
.portal-hero h1 { margin-bottom: 12px; }
.portal-hero .intro-actions { flex-direction: column; align-items: flex-end; }
.date-label { font-size: 12px; white-space: nowrap; }
.accent-button { background: var(--accent); border-color: var(--accent); color: #062f3c; display: inline-flex; align-items: center; gap: 8px; }
.accent-button:hover { background: #3bcfc7; border-color: #3bcfc7; }
.stats-grid { gap: 16px; }
.stat-card { background: #fff; border-radius: 12px; border-color: var(--line); padding: 22px 24px; box-shadow: var(--shadow); }
.stat-card h2 { font-size: 30px; margin: 8px 0; color: var(--text); font-weight: 600; letter-spacing: -.8px; }
.stat-card p { font-size: 13px; margin: 0; }
.stat-card small { font-size: 11px; color: var(--muted); }
.overview-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.overview-stats .stat-card { position: relative; min-height: 145px; }
.overview-stats .stat-card > svg { position: absolute; top: 24px; right: 24px; color: var(--primary); }
.section-heading { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 16px; }
.section-heading h2 { font-size: 16px; margin: 0; }
.section-heading small { color: var(--muted); font-size: 11px; }
.quick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.quick-card { display: flex; align-items: flex-start; gap: 14px; border: 1px solid var(--line); border-top: 3px solid var(--primary); border-radius: 12px; padding: 24px; background: #fff; text-decoration: none; color: var(--text); min-height: 144px; }
.quick-card:nth-child(2) { border-top-color: #0b746e; }
.quick-card:nth-child(3) { border-top-color: #80d9d3; }
.quick-card:hover { background: #f8fafc; border-color: #8bbdc8; }
.quick-card .eyebrow { font-size: 10px; letter-spacing: 1px; margin-bottom: 6px; }
.quick-card strong { display: block; font-size: 15px; }
.quick-card p { font-size: 12px; color: var(--muted); margin-top: 6px; }
.quick-card > svg:last-child { margin-left: auto; align-self: center; color: var(--primary); }
.product-icon { display: inline-grid; place-items: center; flex-shrink: 0; width: 46px; height: 46px; border-radius: 8px; }
.product-icon.mail { background: #eaf6f8; color: var(--primary); }
.product-icon.sign { background: #eaf9f7; color: #0b746e; }
.product-icon.stamp { background: #e6f4f5; color: var(--primary); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 24px; align-items: start; }
.dashboard-grid > .panel { padding: 0; overflow: hidden; }
.dashboard-grid > .panel .panel-header { padding: 24px 24px 0; }
.text-link { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; white-space: nowrap; font-size: 12px; font-weight: 600; }
.right-rail { display: grid; gap: 20px; }
.attention-item { display: flex; gap: 12px; padding: 12px 0; color: var(--text); text-decoration: none; }
.attention-item strong { font-size: 13px; display: block; }
.attention-item small { display: block; color: var(--muted); margin-top: 3px; font-size: 12px; }
.attention-icon { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; background: #fff6e7; color: #805412; border-radius: 8px; }
.attention-icon.error { background: #fef2f2; color: #991b1b; }
.activity-list { padding-left: 4px; }
.activity-item { position: relative; padding: 0 0 20px 20px; border-left: 1px solid var(--line); }
.activity-item::before { content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); left: -4px; top: 6px; }
.activity-item:last-child { padding-bottom: 0; border-left-color: transparent; }
.activity-item strong { display: block; font-size: 12px; }
.activity-item small { display: block; color: var(--muted); margin-top: 4px; font-size: 11px; }
.quiet-note { display: flex; align-items: flex-start; gap: 10px; border: 1px solid #b9dce3; background: #eaf6f8; border-radius: 10px; color: var(--primary); padding: 20px; }
.quiet-note strong { font-size: 13px; }
.quiet-note p { font-size: 12px; color: var(--muted); margin-top: 6px; }
table { font-size: 13px; width: 100%; border-collapse: collapse; }
th { background: #f4f7fa; color: var(--muted); font-size: 11px; font-weight: 600; padding: 14px 16px; }
td { padding: 16px; border-bottom-color: #eaf0f3; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafcfd; }
.table-scroll { max-width: 100%; overflow-x: auto; }
.record-table { min-width: 0; table-layout: auto; }
.documents-table.record-table, .tickets-table.record-table { min-width: 0; }
.record-table td { vertical-align: middle; }
.doc-cell { display: flex; gap: 10px; align-items: center; min-width: 150px; }
.doc-cell > span:last-child { min-width: 0; }
.doc-cell strong { font-size: 13px; display: block; overflow-wrap: anywhere; }
.doc-cell small { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }
.doc-glyph { display: grid; place-items: center; flex-shrink: 0; width: 32px; height: 38px; color: var(--primary); background: #f4f7fa; border: 1px solid var(--line); border-radius: 6px; }
.table-footer { display: flex; justify-content: space-between; gap: 16px; padding: 16px 24px; color: var(--muted); border-top: 1px solid var(--line); font-size: 11px; }
.status-pill { display: inline-flex; gap: 5px; align-items: center; font-size: 11px; font-weight: 500; line-height: 1.5; padding: 5px 8px; border-radius: 5px; }
.status-pill::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.status-success, .status-sent { background: #eaf9f7; color: #0b6863; }
.status-info, .status-queued { background: #eaf6f8; color: var(--primary); }
.status-pending { background: #fff6e7; color: #805412; }
.status-error, .status-failed { background: #fef2f2; color: #991b1b; }
.empty-state { text-align: center; padding: 48px 24px; color: var(--muted); }
.empty-state > svg { color: #78aab6; margin-bottom: 12px; }
.empty-state h3 { color: var(--text); font-size: 16px; }
.empty-state p { font-size: 13px; margin-bottom: 20px; }
.list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.list-search { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 12px; }
.list-search input { min-width: 180px; }
.local-filter-note { font-size: 11px; color: var(--muted); margin-bottom: 12px; }
.row-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row-actions .button-link { font-size: 12px; min-height: 38px; padding: 6px 10px; }
.ticket-options { min-width: 150px; font-size: 12px; }
.ticket-options summary { cursor: pointer; color: var(--primary); padding: 8px 0; font-weight: 600; }
.ticket-options[open] { padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); }
.ticket-options .ticket-send-form { margin: 10px 0; }
.ticket-options p { margin-bottom: 8px; }
.ticket-options label { font-size: 11px; font-weight: 400; }
.hash-details summary { cursor: pointer; font-size: 12px; color: var(--primary); }
.hash-details .mono { display: block; max-width: 240px; margin-top: 8px; }
.section-form { margin-top: 16px; }
.section-form > summary { cursor: pointer; font-weight: 600; color: var(--primary); padding: 14px 0; }
.section-form[open] > summary { margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.form-grid { gap: 16px; }
.form-grid > button { justify-self: start; }
.form-grid > label { font-size: 13px; }
.two-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.upload-page-header h1 { font-size: 30px; }
.upload-steps, .flow-progress { margin: 24px 0 32px; }
.upload-step { background: #fff; }
.upload-step-heading > span { color: var(--primary); letter-spacing: 1px; text-transform: uppercase; font-size: 11px; }
.upload-step-heading h2 { margin-top: 8px; }
.upload-file-field { background: #f7fbfc; border: 1.5px dashed #9fc7d2; border-radius: 10px; padding: 24px; }
.flow-card, .settings-section, .pdf-builder-wrap, .dns-help { border-radius: 10px; box-shadow: none; }
.settings-tab-button.is-active { background: var(--primary); color: #fff; border-color: var(--primary); }
.settings-save-bar { background: #fff; border-radius: 8px; }
.alert { border-radius: 8px; padding: 14px 18px; margin: 0; font-size: 13px; }
.tenant-context-banner { border-radius: 8px; }
.portal-dialog { width: min(620px, calc(100% - 32px)); border: 1px solid var(--line); border-radius: 16px; padding: 24px; color: var(--text); background: #fff; box-shadow: 0 30px 100px #11152833; max-height: 85dvh; overflow: auto; }
.portal-dialog::backdrop { background: #0c263967; backdrop-filter: blur(3px); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.dialog-heading h2 { margin: 0; font-size: 22px; }
.icon-button { display: inline-grid; place-items: center; padding: 8px; width: 44px; height: 44px; flex-shrink: 0; }
.action-choices, .navigation-results { display: grid; gap: 10px; }
.action-choices a { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); text-decoration: none; }
.action-choices a:hover { background: var(--surface-soft); border-color: #8bbdc8; }
.action-choices a > span:nth-child(2) { flex: 1; min-width: 0; }
.action-choices strong { display: block; font-size: 14px; }
.action-choices small { display: block; color: var(--muted); margin-top: 5px; font-size: 12px; }
.navigation-search { margin-bottom: 20px; font-size: 12px; }
.navigation-results a { display: flex; align-items: center; gap: 14px; padding: 12px; color: var(--text); text-decoration: none; border-radius: 6px; }
.navigation-results a:hover { background: var(--surface-tint); }
.navigation-results a svg:last-child { margin-left: auto; }
.guest-content { max-width: 500px; padding-top: 48px; gap: 24px; }
.guest-brand { display: block; max-width: 220px; margin: 0 auto; }
.guest-brand img { display: block; width: 100%; height: auto; }
.guest-content .panel.narrow { width: 100%; margin: 0; max-width: none; padding: 32px; }
.guest-content .form-grid > button { width: 100%; }
.guest-content small { font-size: 11px; font-weight: 400; }
.evidence-header { display: flex; gap: 14px; align-items: center; }
.evidence-header .eyebrow { margin-bottom: 6px; }
.evidence-header h1 { font-size: 28px; margin-bottom: 6px; }
.evidence-timeline { padding: 0; margin: 20px 0 0; list-style: none; }
.evidence-timeline li { padding: 0 0 24px 24px; border-left: 1px solid var(--line); position: relative; }
.evidence-timeline li::before { content: ""; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; position: absolute; top: 5px; left: -4px; }
.evidence-timeline strong { display: block; font-size: 14px; }
.evidence-timeline small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.evidence-timeline details { margin-top: 8px; font-size: 12px; }
.evidence-timeline pre { max-height: 280px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.platform-header { background: var(--primary); color: #fff; border-left: 5px solid var(--accent); }
.platform-header p, .platform-header .platform-eyebrow { color: #d0e8ee; }
.platform-header .button-link { background: var(--accent); border-color: var(--accent); color: #062f3c; }
.platform-stat { padding: 22px; }
.platform-stat strong { font-size: 30px; }
@media (max-width: 1250px) {
    .dashboard-grid { grid-template-columns: minmax(0, 1fr); }
    .right-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .right-rail > .quiet-note { grid-column: 1 / -1; }
    .quick-card { padding: 20px; flex-wrap: wrap; }
}
@media (max-width: 1000px) { .quick-grid { grid-template-columns: 1fr; } .quick-card { min-height: 100px; flex-wrap: nowrap; align-items: center; } }
@media (max-width: 900px) {
    .portal-sidebar { width: min(280px, calc(100vw - 48px)); transform: translateX(-105%); }
    .sidebar-is-open .portal-sidebar { transform: translateX(0); }
    .portal-shell { margin-left: 0; }
    .portal-topbar { padding: 14px 20px; gap: 12px; min-height: 72px; }
    .portal-topbar .sidebar-open-button { position: static; display: inline-grid; place-items: center; flex-shrink: 0; padding: 8px; background: #fff; color: var(--primary); border-color: var(--line); box-shadow: none; }
    .portal-sidebar .sidebar-close-button { position: absolute; right: -6px; top: -22px; height: 24px; min-height: 24px; width: 24px; border: 0; background: transparent; }
    .sidebar-backdrop { z-index: 35; }
    .portal-content { padding: 24px; }
    .portal-breadcrumb { margin-right: auto; }
    .quick-navigation-button { min-width: 44px; padding: 10px; }
    .quick-navigation-button span, .quick-navigation-button kbd { display: none; }
    .topbar-actions { gap: 12px; }
    .portal-hero { padding: 24px; }
    .two-columns { grid-template-columns: minmax(0, 1fr); }
    .panel-header { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 600px) {
    h1 { font-size: 27px; }
    .portal-topbar { padding: 12px 16px; }
    .portal-breadcrumb { gap: 8px; font-size: 12px; min-width: 0; }
    .portal-breadcrumb > span:first-child { display: none; }
    .portal-breadcrumb strong { overflow-wrap: anywhere; }
    .topbar-actions > .profile-avatar { display: none; }
    .portal-content { padding: 20px 16px; gap: 20px; }
    .panel { padding: 20px; }
    .page-intro { align-items: flex-start; flex-direction: column; gap: 16px; }
    .page-intro p { font-size: 14px; }
    .portal-hero { padding: 24px 20px; }
    .portal-hero .intro-actions { align-items: flex-start; }
    .date-label { display: none; }
    .overview-stats { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .overview-stats .stat-card { min-height: 108px; padding: 18px 20px; }
    .overview-stats .stat-card h2 { margin: 4px 0; }
    .section-heading { flex-direction: column; align-items: flex-start; gap: 6px; }
    .quick-card { padding: 20px 16px; gap: 12px; }
    .quick-card p { font-size: 12px; }
    .quick-card .eyebrow { font-size: 9px; }
    .quick-card strong { font-size: 14px; }
    .product-icon { width: 40px; height: 40px; }
    .right-rail { grid-template-columns: minmax(0, 1fr); }
    .portal-footer { font-size: 10px; }
    .portal-footer span:last-child { display: none; }
    .record-table thead { display: none; }
    .record-table, .record-table tbody { display: block; }
    .record-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 16px; border-bottom: 1px solid var(--line); }
    .record-table td { display: block; padding: 0; border: 0; min-width: 0; }
    .record-table td:first-child { grid-column: 1 / -1; }
    .record-table td:last-child { align-self: center; }
    .record-table .date-column { display: none; }
    .record-table .empty-cell { grid-column: 1 / -1; }
    .documents-table td:nth-child(2), .signing-table td:nth-child(2) { grid-column: 1 / -1; }
    .documents-table td:last-child { grid-column: 1 / -1; }
    .recent-table td:nth-child(2) { grid-column: 1; grid-row: 3; }
    .recent-table td:nth-child(3) { grid-column: 1; grid-row: 2; }
    .recent-table td:last-child { grid-column: 2; grid-row: 2 / 4; }
    .tickets-table td:nth-child(2) { grid-column: 1 / -1; }
    .tickets-table td:last-child { grid-column: 1 / -1; }
    .table-footer { flex-wrap: wrap; padding: 16px; }
    .list-toolbar { align-items: stretch; flex-direction: column; }
    .list-search { flex-wrap: wrap; }
    .list-search input { flex: 1; width: 100%; }
    .intro-actions { flex-wrap: wrap; }
    .upload-page-header { align-items: flex-start; gap: 16px; }
    .upload-page-header h1 { font-size: 26px; }
    .upload-file-field { padding: 16px; }
    .upload-steps { margin: 20px 0; }
    .doc-cell { min-width: 0; }
    .portal-dialog { padding: 20px; }
    .action-choices a { padding: 12px; gap: 10px; }
    .action-choices small { font-size: 11px; }
    .guest-content { padding-top: 32px; }
    .guest-content .panel.narrow { padding: 24px; }
    .evidence-header h1 { font-size: 24px; }
}
.registered-mail-form { display: grid; gap: 20px; }
.registered-mail-form .flow-card { display: grid; gap: 16px; }
.registered-mail-form [hidden] { display: none; }
.mail-attachment-list { max-height: 360px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; }
.mail-attachment-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .8fr); gap: 20px; align-items: center; padding: 14px; border-bottom: 1px solid var(--line); }
.mail-attachment-row[hidden] { display: none; }
.mail-attachment-row > label:first-child:has(input[type="checkbox"]) { display: flex; flex-direction: row; align-items: center; gap: 12px; }
.mail-attachment-row input[type="checkbox"] { flex: 0 0 auto; width: 18px; height: 18px; }
.mail-attachment-row strong { overflow-wrap: anywhere; }
.mail-attachment-row small { display: block; margin-top: 4px; }
.mail-attachment-status { padding: 14px 0; border-bottom: 1px solid var(--line); }
.mail-message-preview { overflow-wrap: anywhere; }
@media (max-width: 720px) { .mail-attachment-row { grid-template-columns: 1fr; gap: 12px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
/* Public recipient access stays independent from the tenant workspace. */
.recipient-mail-page { display: block; min-height: 100vh; margin: 0; padding: 32px 16px; background: #f3f5f8; }
.recipient-mail-card { max-width: 780px; margin: 0 auto; padding: 32px; border-radius: 16px; background: #fff; color: #17212f; box-shadow: 0 8px 30px #17212f0d; overflow-wrap: anywhere; }
.recipient-mail-card > img { object-fit: contain; max-width: 100%; margin-bottom: 24px; }
.recipient-mail-card label { display: grid; gap: 8px; }
.recipient-mail-card [hidden] { display: none !important; }
.recipient-code-form { display: grid; gap: 16px; max-width: 380px; }
.recipient-code-form input { font-size: 24px; letter-spacing: .3em; }
.recipient-attachment { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid #e3e8ef; }
.recipient-mail-note { margin-top: 32px; padding-top: 16px; border-top: 1px solid #e3e8ef; font-size: 13px; color: #596779; }
.mail-verification-choice { display: flex; align-items: center; gap: 10px; }
.mail-verification-choice input { width: auto; }
@media (max-width: 600px) { .recipient-mail-card { padding: 24px 18px; } .recipient-attachment { align-items: flex-start; flex-direction: column; } }
