@font-face { font-family: Outfit; src: url('fonts/outfit-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: Outfit; src: url('fonts/outfit-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: Outfit; src: url('fonts/outfit-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: Inter; src: url('fonts/inter-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url('fonts/inter-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: Inter; src: url('fonts/inter-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
:root {
  --brand: #1f5bff; --brand-dark: #0a2357; --navy: #0a2357; --navy-deep: #0a2357;
  --ink: #0b1b33; --ink-2: #334155; --muted: #5b6478; --on-navy: #c9d6f2;
  --on-navy-muted: #c9d6f2; --accent-light: #8fb0ff; --bg: #f6f7fb; --bg-customer: #f6f7fb;
  --surface: #fff; --surface-2: #f8fafc; --line: #e4e8f0; --line-strong: #cbd5e1; --tint: #e3ebff;
  --ok-bg: #e6f7ef; --ok: #0b7a4b; --warn-bg: #fff3df; --warn: #a84b05;
  --danger-bg: #fdecea; --danger: #b42318; --neutral-bg: #eef1f5; --neutral: #475467;
  --shadow-card: 0 1px 2px rgba(15,27,45,.06), 0 16px 32px -24px rgba(11,45,99,.35);
  --shadow-raised: 0 1px 2px rgba(15,27,45,.08), 0 24px 48px -16px rgba(11,45,99,.35);
  --shadow-button: 0 1px 0 rgba(255,255,255,.25) inset, 0 8px 18px -6px rgba(20,95,206,.65);
  --radius-control: 10px; --radius-card: 16px; --radius-customer: 20px; --radius-pill: 999px;
  font: 15px/1.5 Inter, 'Segoe UI', Arial, sans-serif; color: var(--ink); background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3 { font-family: Outfit, 'Segoe UI', sans-serif; letter-spacing: -.01em; line-height: 1.2; }
h1 { font-size: 32px; } h2 { font-size: 18px; } h3 { font-size: 17px; }
a { color: var(--brand); } a:hover { color: var(--brand-dark); }
:focus-visible { outline: 1.5px solid var(--brand); outline-offset: 2px; box-shadow: 0 0 0 4px rgba(20,95,206,.14); }
[hidden] { display: none !important; }
form { display: grid; gap: 10px; }
input, select, button { font: inherit; }
input, select, textarea { font-size: 16px; }
input:not([type=checkbox]), select { min-height: 44px; width: 100%; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-control); background: var(--surface-2); color: var(--ink); }
button, .button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px; border: 1px solid var(--brand); border-radius: 12px; background: var(--brand); color: white; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; box-shadow: var(--shadow-button); }
button:hover, .button:hover { background: var(--brand-dark); color: white; }
.button.secondary, button.secondary { background: white; color: var(--ink-2); border-color: var(--line-strong); box-shadow: none; }
.button.danger, button.danger { background: var(--danger); border-color: var(--danger); color: white; }
button:disabled, .button[aria-disabled=true] { opacity: .5; cursor: not-allowed; }
[role=alert], .warning { color: var(--danger); }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px max(24px, calc((100vw - 1120px) / 2)); background: white; box-shadow: 0 2px 10px rgba(11,45,99,.12); position: relative; z-index: 1; }
.topbar a { text-decoration: none; } .brand-logo { display: block; height: 40px; width: auto; max-width: 100%; }
.topbar form { display: block; } .topbar-items { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.content { max-width: 1120px; margin: 32px auto; padding: 0 24px; }
.heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.panel, .notice, .table-wrap, .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.panel, .notice { padding: 24px; margin: 16px 0; } .panel form { max-width: 32rem; margin: 16px 0; }
.notice { background: var(--tint); } .warning-row { background: #fffbf5; }
.mail-result { padding: 12px 16px; border-radius: 12px; font-weight: 600; }
.mail-result-success { background: var(--ok-bg); color: var(--ok); }
.mail-result-error { background: var(--danger-bg); color: var(--danger); }
fieldset { display: grid; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
fieldset label small { display: block; margin-left: 24px; color: var(--muted); }
table { border-collapse: collapse; width: 100%; min-width: 760px; text-align: left; }
th, td { padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-size: 12px; }
.table-wrap { overflow-x: auto; } tbody tr { position: relative; } .row-link { font-weight: 600; } .row-open { position: relative; }
.tabs { display: inline-flex; padding: 4px; gap: 4px; background: #f1f5f9; border-radius: 10px; }
.tabs a { padding: 6px 14px; text-decoration: none; color: var(--neutral); } .tabs a[aria-current] { color: var(--ink); background: white; border-radius: 8px; font-weight: 600; box-shadow: 0 1px 2px rgba(15,27,45,.12); }
.badge { display: inline-flex; border-radius: var(--radius-pill); padding: 3px 10px; font-size: 13px; font-weight: 600; background: var(--neutral-bg); color: var(--neutral); white-space: nowrap; }
.badge-active { background: var(--ok-bg); color: var(--ok); } .badge-active::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #16a34a; align-self: center; margin-right: 6px; }
.badge-error, .badge-needs_reset, .badge-orphaned { background: var(--warn-bg); color: var(--warn); } .badge-failed { background: var(--danger-bg); color: var(--danger); } .badge-open, .badge-redeeming { background: var(--tint); color: var(--brand); }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 16px; } .breadcrumb span::before { content: ' / '; padding: 0 6px; }
.actions, .copy-row { display: flex; gap: 8px; flex-wrap: wrap; } .copy-row input { min-width: 0; flex: 1 1 300px; font-family: Consolas, 'Courier New', monospace; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr); gap: 24px; align-items: start; } .danger-zone { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 16px; }
.detail-grid .table-wrap table { min-width: 0; }
.detail-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.detail-path { margin: 8px 0 4px; color: var(--on-navy-muted); font-size: 13px; }
.detail-heading .badge-active { color: #bbf7d0; background: rgba(34,197,94,.18); border: 1px solid rgba(74,222,128,.5); }
.detail-heading .badge-active::before { background: #4ade80; }
.detail-overview h2, .detail-invitations h2 { margin: 0 0 16px; font-size: 17px; }
.detail-overview dl { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px 24px; margin: 0; }
.detail-overview dt { color: var(--muted); font-size: 13px; }
.detail-overview dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.detail-shares { overflow: hidden; padding: 0; }
.detail-shares h2 { margin: 0; padding: 20px 24px 12px; font-size: 17px; }
.detail-shares .table-wrap { border: 0; border-radius: 0; box-shadow: none; }
.detail-shares th, .detail-shares td { padding: 14px 24px; }
.detail-shares td:first-child { font-weight: 600; }
.access-list-table table { width: 100%; table-layout: fixed; }
.access-list-table th, .access-list-table td { padding: 10px 8px; overflow-wrap: anywhere; }
.access-list-table .email-value { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.access-list-table tr[hidden] { display: none; }
.access-list-table th:nth-child(4) { width: 155px; }
.access-list-table th:nth-child(5) { width: 110px; }
.access-list-table th:last-child { width: 95px; }
.access-list-table th:nth-child(4), .access-list-table td:nth-child(4), .access-list-table th:nth-child(5), .access-list-table td:nth-child(5) { white-space: nowrap; }
@media (max-width: 576px) {
  .detail-shares table, .detail-shares tbody, .detail-shares tr, .detail-shares td { display: block; width: 100%; }
  .detail-shares thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .detail-shares tr { padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .detail-shares td { padding: 5px 0; border: 0; }
  .detail-shares td[data-label]::before { content: attr(data-label); display: block; color: var(--muted); font-size: 12px; }
}


.detail-invitations ol { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.detail-invitations li { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--ink-2); }
.detail-invitations .badge { min-width: 84px; justify-content: center; }
.detail-invitation-note { color: var(--muted); font-size: 13px; }
.detail-actions { display: flex; flex-direction: column; gap: 20px; }
.detail-actions h2 { margin: 0; font-size: 17px; }
.detail-action { display: flex; flex-direction: column; gap: 8px; }
.detail-action p { margin: 0; color: var(--muted); font-size: 13px; }
.detail-action .button.secondary { color: var(--brand); border-color: var(--brand); }
.detail-action button.secondary:disabled { color: #94a3b8; border-color: var(--line); background: var(--surface-2); opacity: 1; }
.detail-actions .danger-zone { margin: 0; padding-top: 20px; }
.detail-actions .danger-zone h3 { margin: 0; color: var(--danger); font: 700 12px/1.5 'Segoe UI', sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.detail-actions .danger-zone .button { color: var(--danger); border-color: var(--danger); background: white; box-shadow: none; }
.confirm-card { max-width: 640px; } .small { min-height: 36px; padding: 6px 10px; font-size: 13px; }
.centered { min-height: calc(100vh - 80px); display: grid; place-items: center; padding: 16px; } .card { width: min(100%, 512px); padding: 32px; box-shadow: var(--shadow-raised); }
.customer-card { border-radius: var(--radius-customer); } .customer-card h1 { font-size: 24px; } .customer-logo { display: block; width: 180px; max-width: 100%; height: auto; margin: 0 auto 24px; }
.contact { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 32px; color: var(--muted); }
.steps { display: flex; list-style: none; margin: 0 0 24px; padding: 0; gap: 8px; counter-reset: step; } .steps li { flex: 1; padding-bottom: 8px; border-bottom: 3px solid var(--line); color: var(--muted); font-size: 13px; counter-increment: step; } .steps li::before { content: counter(step) '. '; } .steps li[aria-current] { color: var(--brand); border-color: var(--brand); font-weight: 700; }
.password-field { display: flex; gap: 8px; } .password-field input { flex: 1; min-width: 0; } .password-toggle { padding-inline: 10px; }
.access-cards { display: grid; gap: 16px; } .customer-card .access-card { border: 1px solid var(--line); border-radius: 12px; padding: 16px; } .access-icon, .message-icon { width: 40px; height: 40px; color: var(--brand); }
.success-mail-info { padding: 16px; margin-bottom: 16px; background: var(--tint); border: 1px solid var(--line); border-radius: 12px; }
@media (max-width: 768px) { .detail-grid { grid-template-columns: 1fr; gap: 0; } .topbar { flex-wrap: wrap; } }
@media (max-width: 576px) { .card { padding: 24px; } }
.brand-band { color: white; background-color: var(--navy); background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1.4px); background-size: 22px 22px; border-bottom: 4px solid var(--brand); }
.brand-band-inner { max-width: 1120px; margin: auto; padding: 36px 24px 96px; }
.brand-band h1 { margin: 0; color: white; } .brand-band p { color: var(--on-navy); }
.content-overlap { position: relative; margin-top: -72px; padding-bottom: 56px; }
.portal-name { color: var(--muted); font-size: 13px; font-weight: 600; border-left: 1px solid var(--line); padding-left: 16px; }
.topbar-items { margin-left: auto; } .nav-current { padding: 8px 12px; border-radius: 8px; background: var(--tint); font-weight: 600; }
.customer-page { background: var(--bg-customer); } .customer-band { height: 200px; background-color: var(--navy); background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1.4px); background-size: 22px 22px; border-bottom: 4px solid var(--brand); }
.customer-centered { position: relative; max-width: 560px; margin: -120px auto 0; padding: 0 16px 48px; }
.customer-card { width: 100%; } .customer-logo { padding: 12px; width: 204px; background: white; border: 1px solid var(--line); border-radius: 12px; }
@media (max-width: 576px) { .topbar { padding: 12px 16px; } .content { padding-left: 16px; padding-right: 16px; } .brand-band-inner { padding-left: 16px; padding-right: 16px; } }
.hero-eyebrow { color: var(--on-navy-muted); text-transform: uppercase; letter-spacing: .08em; font-size: 13px; font-weight: 600; }
.hero-button, .hero-button:hover { background: white; color: var(--navy); border-color: white; box-shadow: var(--shadow-raised); }
.brand-band .breadcrumb, .brand-band .breadcrumb a { color: var(--on-navy); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin-bottom: 24px; }
.stat { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: var(--shadow-card); }
.stat span { color: var(--muted); font-size: 13px; } .stat strong { font-size: 26px; } .stat-warning { background: var(--warn-bg); color: var(--warn); } .stat-warning span { color: var(--warn); }
.filter-info { color: var(--muted); font-size: 13px; margin-left: 16px; } .content-overlap > .table-wrap { margin-top: 16px; }
.list-search { margin-top: 16px; max-width: 360px; }
.list-search label { display: block; font-weight: 600; }
.recipient-cell .row-link { font-weight: 700; }
.recipient-cell small { display: block; color: var(--muted); }
.field-error { border-color: #d92d20 !important; } .customer-message { text-align: center; } .next-steps { text-align: left; padding: 16px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; } .customer-message .button { width: 100%; margin-top: 16px; }
@media (max-width: 576px) { .stats { gap: 8px; } .stat { padding: 12px 8px; } .stat strong { font-size: 22px; } .filter-info { display: block; margin: 8px 0; } }
.service-state::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--muted); } .service-state.service-connected::before { background: #16a34a; } .service-state.service-failed::before { background: var(--danger); } .service-warning { background: var(--warn-bg); color: var(--warn); border-color: #fbd5a8; }
.service-state.service-timezone-warning::before { background: var(--warn); }
.customer-band { height: 300px; } .customer-centered { margin-top: -276px; } .customer-logo { margin: 0 auto 18px; }
.customer-centered > .steps { color: white; justify-content: center; margin: 0 0 18px; } .customer-centered > .steps li { color: var(--on-navy); border-color: rgba(255,255,255,.3); text-align: center; } .customer-centered > .steps li[aria-current] { color: white; border-color: white; }
.customer-welcome { text-align: center; color: white; margin: 0 0 20px; } .customer-welcome h1 { font-size: 24px; margin: 0; overflow-wrap: anywhere; } .customer-welcome p { color: var(--on-navy); margin: 4px 0 0; }
.customer-welcome small { font-size: 14px; }
.customer-page .customer-centered { margin: 0 auto; }
.customer-top { position: relative; isolation: isolate; padding-top: 24px; }
.customer-top > .steps { color: white; justify-content: center; margin: 0 0 18px; align-items: center; flex-wrap: nowrap; gap: 8px; }
.customer-top > .steps li { color: var(--on-navy); text-align: center; border: 0; flex: 0 1 auto; display: flex; align-items: center; gap: 6px; padding: 0; white-space: nowrap; }
.customer-top > .steps li[aria-current] { color: white; }
.customer-top > .steps li::before { content: counter(step); display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; border: 2px solid rgba(255,255,255,.45); border-radius: 50%; font-size: 12px; }
.customer-top > .steps li[aria-current]::before { background: white; border-color: white; color: var(--navy); }
.customer-top > .steps li + li::after { content: ''; order: -1; width: 28px; height: 2px; margin-right: 2px; background: rgba(255,255,255,.35); }
.customer-top::before { content: ''; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); background: var(--navy); border-bottom: 4px solid var(--brand); }
.customer-welcome-title { font-size: 24px; font-weight: 700; overflow-wrap: anywhere; }
.customer-welcome p, .customer-welcome small { color: white; }
.trust-notices { display: grid; grid-template-columns: repeat(auto-fit, minmax(135px,1fr)); gap: 10px; margin-top: 12px; } .trust-notices div { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: white; box-shadow: 0 1px 2px rgba(15,27,45,.06); color: var(--ink-2); font-size: 12px; } .trust-notices svg { flex: none; width: 18px; height: 18px; color: var(--brand); }
.customer-folders { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 16px; padding: 0; }
.customer-folders li { padding: 4px 10px; border-radius: 10px; background: var(--tint); color: var(--ink-2); font-size: 13px; }
.customer-centered > .contact { text-align: center; border: 0; margin-top: 12px; padding: 0; }
.customer-centered > .contact p { margin: 4px 0; }
.customer-centered > .contact a { display: inline-block; min-width: 24px; min-height: 24px; line-height: 24px; }
.customer-contacts { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.customer-contact { min-width: 0; max-width: 100%; }
.customer-contact .contact-heading { color: var(--ink-2); font-weight: 600; }
.customer-contact-primary .contact-name { color: var(--ink); font-size: 16px; font-weight: 700; }
.customer-contact-deputy { font-size: 13px; }
.contact-phone, .contact-email span { white-space: nowrap; }
.contact-email { overflow-wrap: normal; word-break: normal; }
.customer-legal-links { display: flex; justify-content: center; gap: 16px; margin-top: 12px; font-size: 12px; }
.customer-centered > .steps { align-items: center; flex-wrap: nowrap; gap: 8px; }
.customer-centered > .steps li { flex: 0 1 auto; display: flex; align-items: center; gap: 6px; padding: 0; border: 0; white-space: nowrap; }
.customer-centered > .steps li::before { content: counter(step); display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; border: 2px solid rgba(255,255,255,.45); border-radius: 50%; font-size: 12px; }
.customer-centered > .steps li[aria-current]::before { background: white; border-color: white; color: var(--navy); }
.customer-centered > .steps li + li::after { content: ''; order: -1; width: 28px; height: 2px; margin-right: 2px; background: rgba(255,255,255,.35); }
.customer-form { gap: 8px; }
.customer-form label { font-size: 14px; font-weight: 600; margin-top: 8px; }
.customer-form .password-field { gap: 0; border: 1px solid var(--line-strong); border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.customer-form .password-field:has(.field-error) { border: 1.5px solid #d92d20; background: white; }
.customer-form .password-field:focus-within { outline: 1.5px solid var(--brand); box-shadow: 0 0 0 4px rgba(20,95,206,.14); }
.customer-form .password-field input { border: 0 !important; background: transparent; border-radius: 0; }
.customer-form .password-toggle { min-width: 46px; border: 0; border-radius: 0; background: transparent; }
.customer-form .length-hint { margin: 8px 0; font-size: 14px; color: var(--muted); }
.customer-form-error { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--danger-bg); color: #8a1c12; font-size: 14px; }
.customer-form-error svg { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.customer-fields-cleared { margin: 16px 0 0; text-align: center; font-size: 13px; color: var(--muted); }
.customer-used, .customer-expired, .customer-technical { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.customer-used h1, .customer-expired h1, .customer-technical h1 { margin: 0; font-size: 21px; line-height: 1.3; }
.customer-used p, .customer-expired p, .customer-technical p { margin: 0; color: var(--neutral); font-size: 14px; }
.customer-message-icon { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; }
.customer-message-icon svg { width: 26px; height: 26px; }
.customer-message-icon-warn { background: var(--warn-bg); color: var(--warn); }
.customer-message-icon-blue { background: var(--tint); color: var(--brand); }
.customer-expired .next-steps { width: 100%; font-size: 14px; color: var(--ink-2); }
.customer-expired .next-steps ol { display: grid; gap: 10px; list-style: none; counter-reset: expired-step; margin: 10px 0 0; padding: 0; }
.customer-expired .next-steps li { display: flex; align-items: flex-start; gap: 10px; counter-increment: expired-step; }
.customer-expired .next-steps li::before { content: counter(expired-step); display: flex; flex: none; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: white; font-size: 12px; font-weight: 700; }
.customer-expired .button { margin-top: 0; min-height: 48px; }
.customer-expired .button.secondary { color: var(--brand); border-color: var(--brand); }
.customer-used-warning { display: flex; gap: 10px; width: 100%; padding: 14px; border-radius: 12px; background: var(--danger-bg); color: #8a1c12; text-align: left; font-size: 14px; }
.customer-used-warning svg, .customer-used .button svg { flex: none; width: 18px; height: 18px; }
.customer-used .button { margin-top: 0; min-height: 48px; }
.customer-technical .button { margin-top: 0; min-height: 48px; }
.customer-technical .button svg { width: 18px; height: 18px; }
@media (max-width: 576px) { .customer-card { padding: 24px 20px; } .customer-centered { padding-left: 20px; padding-right: 20px; } }

/* Login */
body.login-page { background: var(--navy-deep); }
.lg-layout { min-height: 100vh; display: flex; flex-wrap: wrap; }
.lg-brand { flex: 1 1 600px; min-width: 0; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 36px; padding: 44px 56px 40px; color: #fff; background-color: var(--navy-deep); background-image: radial-gradient(circle at 78% 62%, rgba(20,95,206,.55) 0, rgba(20,95,206,0) 46%), radial-gradient(circle at 10% 0%, rgba(54,131,240,.25) 0, rgba(54,131,240,0) 40%), radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.4px); background-size: 100% 100%, 100% 100%, 24px 24px; }
.lg-brandrow { display: flex; align-items: center; gap: 14px; }
.lg-logo-chip { background: #fff; border-radius: 12px; padding: 8px 12px; box-shadow: 0 10px 30px -10px rgba(0,0,0,.6); }
.lg-logo-chip img { display: block; height: 30px; width: auto; }
.lg-divider { width: 1px; height: 24px; background: rgba(255,255,255,.25); }
.lg-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #a9c2ec; }
.lg-hero { display: flex; flex-direction: column; gap: 16px; max-width: 520px; }
.lg-hero h1 { margin: 0; font-size: 48px; line-height: 1.05; font-weight: 700; letter-spacing: -.02em; }
.lg-hero h1 span { color: var(--accent-light); }
.lg-hero p { margin: 0; max-width: 460px; font-size: 17px; line-height: 1.55; color: #c3d4f1; }
.lg-art { position: relative; height: 300px; max-width: 560px; }
.lg-card { position: absolute; box-sizing: border-box; border-radius: 18px; padding: 18px; }
.lg-card strong { font-size: 14px; font-weight: 600; }
.lg-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.lg-icon { width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex: none; }
.lg-icon svg { width: 17px; height: 17px; }
.lg-icon-tint { background: var(--tint); } .lg-icon-ok { width: 28px; height: 28px; border-radius: 9px; background: #22c55e; }
.lg-card-invite { left: 0; top: 34px; width: 240px; background: #fff; color: var(--ink); transform: rotate(-4deg); box-shadow: 0 30px 60px -20px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.6); }
.lg-line { display: block; height: 9px; border-radius: 5px; background: var(--line); margin-bottom: 8px; }
.lg-line-long { width: 85%; } .lg-line-short { width: 60%; margin-bottom: 14px; }
.lg-chip { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-radius: 10px; background: #f1f5f9; font-size: 12px; color: var(--neutral); }
.lg-chip code { font-family: Consolas, 'Courier New', monospace; } .lg-chip b { color: var(--brand); }
.lg-card-password { left: 172px; top: 128px; width: 250px; z-index: 2; background: #fff; color: var(--ink); transform: rotate(2deg); box-shadow: 0 36px 70px -20px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.6); }
.lg-fakefield { display: flex; align-items: center; gap: 4px; margin: 10px 0; padding: 10px 12px; border: 1.5px solid var(--brand); border-radius: 10px; box-shadow: 0 0 0 4px rgba(20,95,206,.15); }
.lg-fakefield i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.lg-fakefield em { width: 2px; height: 16px; margin-left: 2px; background: var(--brand); }
.lg-fakebutton { display: flex; align-items: center; justify-content: center; height: 34px; border-radius: 10px; background: var(--brand); color: #fff; font-size: 13px; font-weight: 600; }
.lg-card-cloud { left: 376px; top: 22px; width: 178px; padding: 16px; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.28); transform: rotate(5deg); box-shadow: 0 30px 60px -24px rgba(0,0,0,.6); }
.lg-card-cloud .lg-card-head { gap: 8px; margin-bottom: 12px; } .lg-card-cloud strong { font-size: 13px; }
.lg-folder { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 12px; color: #dce7fa; }
.lg-folder svg { width: 14px; height: 14px; }
.lg-arrow { position: absolute; left: 300px; top: 60px; width: 90px; height: 60px; transform: rotate(-8deg); }
.lg-facts { margin: auto 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 560px; }
.lg-facts div { padding-top: 14px; border-top: 1px solid rgba(255,255,255,.16); }
.lg-facts dt { font-family: Outfit, 'Segoe UI', sans-serif; font-size: 22px; font-weight: 600; }
.lg-facts dd { margin: 2px 0 0; font-size: 12px; color: #a9c2ec; }
.lg-formside { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 48px 24px; background: #f4f7fb; border-radius: 32px 0 0 32px; box-shadow: -30px 0 60px -30px rgba(0,0,0,.5); }
.lg-form { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 22px; }
.lg-formhead h2 { margin: 0; font-size: 32px; line-height: 1.15; font-weight: 600; }
.lg-formhead p { margin: 6px 0 0; color: var(--muted); }
.lg-form form { display: flex; flex-direction: column; gap: 8px; }
.lg-form label { font-weight: 600; font-size: 14px; margin-top: 10px; }
.lg-field { display: flex; align-items: center; border: 1px solid #d5dde8; border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgba(15,27,45,.05); color: var(--muted); transition: border-color .15s, box-shadow .15s; }
.lg-field:focus-within { border-color: var(--brand); box-shadow: 0 0 0 5px rgba(20,95,206,.13); color: var(--brand); }
.lg-field > svg { width: 18px; height: 18px; margin-left: 16px; flex: none; }
.lg-form .lg-field input { flex: 1; min-width: 0; width: auto; min-height: 50px; padding: 14px 12px; border: 0; background: transparent; color: var(--ink); outline: none; box-shadow: none; }
.lg-form .lg-field input:focus-visible { outline: none; box-shadow: none; }
.lg-form .lg-toggle { min-height: 40px; margin-right: 6px; padding: 6px 10px; border: 0; background: transparent; color: var(--neutral); font-size: 13px; box-shadow: none; }
.lg-form .lg-toggle:hover { background: #f1f5f9; color: var(--ink); }
.lg-form .lg-submit { margin-top: 18px; min-height: 54px; gap: 10px; border: 0; border-radius: 14px; background: var(--navy); box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 14px 28px -12px rgba(11,45,99,.8); }
.lg-form .lg-submit:hover { background: #0e3778; }
.lg-submit span { width: 26px; height: 26px; border-radius: 50%; background: var(--brand); display: flex; align-items: center; justify-content: center; }
.lg-submit svg { width: 15px; height: 15px; }
.lg-error { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--danger-bg); color: var(--danger); font-size: 14px; }
.lg-hint { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.lg-hint svg { width: 16px; height: 16px; flex: none; }
.lg-foot { margin: 24px 0 0; font-size: 12px; color: var(--muted); letter-spacing: .02em; text-align: center; }
@media (max-width: 1100px) { .lg-art { transform: scale(.85); transform-origin: left top; height: 260px; } }
@media (max-width: 899px) {
  .lg-layout { display: block; }
  .lg-brand { padding: 20px 24px 56px; gap: 16px; }
  .lg-hero h1 { font-size: 26px; } .lg-hero p, .lg-art, .lg-facts { display: none; }
  .lg-formside { margin-top: -32px; min-height: calc(100vh - 140px); justify-content: flex-start; padding: 40px 20px 32px; border-radius: 28px 28px 0 0; box-shadow: 0 -20px 40px -20px rgba(0,0,0,.5); }
  .lg-formhead h2 { font-size: 26px; }
  .lg-divider, .lg-eyebrow { display: none; }
}

/* New access */
.new-access-grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.new-access-panel, .new-access-help { min-width: 0; margin: 0; }
.new-access-panel { flex: 999 1 560px; padding: 28px; }
.new-access-help { flex: 1 1 300px; display: flex; flex-direction: column; gap: 16px; }
.new-access-panel .new-access-form { max-width: none; margin: 0; display: flex; flex-direction: column; gap: 24px; }
.new-access-panel .new-access-form + .new-access-form, .new-access-panel .new-access-field + .new-access-form { margin-top: 24px; }
.new-access-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.new-access-field > label, .new-access-label, .new-access-folders legend { font-weight: 600; }
.new-access-field input, .new-access-field select { background: var(--surface); }
.new-access-field small { color: var(--muted); font-size: 13px; }
.new-access-selected { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-control); background: var(--surface); }
.new-access-selected span { min-width: 0; overflow-wrap: anywhere; }
.new-access-selected a { flex: none; }
.new-access-panel .new-access-form > button.secondary { align-self: flex-start; }
.new-access-targets { min-width: 0; margin: 0; padding: 0; border: 0; }
.new-access-targets legend { padding: 0; margin-bottom: 10px; font-weight: 600; }
.target-group { display: grid; gap: 8px; }
.target-group h3 { margin: 12px 0 0; font-size: 15px; }
.target-item { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px; border: 1px solid var(--line-strong); border-radius: 10px; cursor: pointer; }
.target-item:has(input:checked) { border-color: var(--brand); background: #f5f9ff; }
.target-item input[type=radio] { flex: none; width: 18px; height: 18px; min-height: 0; margin: 0; padding: 0; accent-color: var(--brand); }
.target-details { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.target-details small { display: block; margin: 0; color: var(--muted); }
.target-item .badge { white-space: normal; }
.new-access-targets > small { color: var(--muted); }
.new-access-folders { display: block; min-width: 0; margin: 0; padding: 0; border: 0; }
.new-access-folders legend { padding: 0; margin-bottom: 10px; }
.new-access-folder-grid, .new-access-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.new-access-folder-grid { gap: 12px; }
.new-access-fields { gap: 16px; }
.new-access-folder { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border: 2px solid var(--line-strong); border-radius: 12px; background: var(--surface); cursor: pointer; }
.new-access-folder:has(input:checked) { border-color: var(--brand); background: #f5f9ff; }
.new-access-folder input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--brand); }
.new-access-folder > span { display: flex; flex-direction: column; gap: 4px; }
.new-access-folder-title { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.new-access-folder-title svg { flex: none; width: 18px; height: 18px; color: var(--brand); }
.new-access-folder small { display: block; margin: 0; color: var(--neutral); font-size: 13px; }
.new-access-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; border-top: 1px solid var(--line); }
.new-access-actions button, .new-access-actions .button { padding: 12px 20px; border-radius: 10px; }
.new-access-help h2 { margin: 0; font-size: 17px; }
.new-access-steps { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 0; list-style: none; }
.new-access-steps li { display: flex; gap: 12px; color: var(--ink-2); }
.new-access-steps li > span:first-child { display: flex; flex: none; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--tint); color: var(--brand); font-size: 14px; font-weight: 700; }
.new-access-warning { display: flex; gap: 10px; padding: 12px 14px; border-radius: 10px; background: #f1f5f9; color: var(--ink-2); font-size: 13px; }
.new-access-warning svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--neutral); }
.staff-steps { color: var(--on-navy); margin: 20px 0 0; align-items: center; }
.staff-steps li { flex: 0 1 auto; display: flex; align-items: center; gap: 6px; padding: 0; border: 0; color: var(--on-navy); }
.staff-steps li::before { content: counter(step); display: flex; flex: none; align-items: center; justify-content: center; width: 22px; height: 22px; border: 2px solid rgba(255,255,255,.45); border-radius: 50%; font-size: 12px; }
.staff-steps li[aria-current] { color: white; }
.staff-steps li[aria-current]::before { background: white; border-color: white; color: var(--navy); }
.staff-steps li + li::after { content: ''; order: -1; width: 28px; height: 2px; margin-right: 2px; background: rgba(255,255,255,.35); }
.new-branch-actions { margin-top: 20px; }
.target-list-scroll { max-height: 480px; overflow-y: auto; }
.target-group-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.target-group-heading h3 { margin: 8px 0; }
.target-item { padding: 5px 10px; }
.target-details { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.target-details small { text-align: right; }
#release-fields { display: grid; gap: 24px; }
.awaiting-target { opacity: .55; }
@media (min-width: 1000px) { .new-access-help { position: sticky; top: 20px; } }
@media (max-width: 576px) {
  .new-access-panel { padding: 24px; }
  .new-access-folder-grid, .new-access-fields { grid-template-columns: 1fr; }
  .new-access-actions { flex-direction: column; align-items: stretch; }
  .new-access-form > button, .folder-actions .button, .folder-actions button { width: 100%; }
  .folder-actions { display: flex; flex-direction: column; gap: 10px; }
  .access-list-table { overflow: visible; }
  .access-list-table table, .access-list-table tbody, .access-list-table tr, .access-list-table td { display: block; width: 100%; min-width: 0; }
  .access-list-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .access-list-table tr { padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .access-list-table td { padding: 5px 0; border: 0; overflow-wrap: anywhere; }
  .access-list-table td[data-label]::before { content: attr(data-label); display: block; color: var(--muted); font-size: 12px; }
  .access-list-table .row-open { width: 100%; }
  .breadcrumb, .panel, .brand-band-inner { overflow-wrap: anywhere; }
  .topbar-items { min-width: 0; margin-left: 0; }
  .staff-steps li { min-width: 0; overflow-wrap: anywhere; }
  .target-details { flex-wrap: wrap; }
}

/* Redesign: the same brand surface is used throughout the portal. */
.lg-brand {
  justify-content: space-between;
  background-color: var(--navy);
  background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: 22px 22px;
}
.lg-hero { gap: 28px; }
.lg-shield { display: inline-flex; width: 64px; height: 64px; align-items: center; justify-content: center; background: var(--brand); border-radius: 18px; box-shadow: 0 12px 32px rgba(31,91,255,.45); }
.lg-shield svg { width: 30px; height: 30px; }
.lg-summary { margin: 0; color: var(--on-navy); font-size: 13px; }
.lg-formside { background: var(--bg); border-radius: 0; box-shadow: none; }
.lg-form .lg-submit { background: var(--brand); }
.lg-form .lg-submit:hover { background: var(--brand-dark); }
.lg-form .lg-toggle { min-height: 44px; }
.language-switch { display: inline-flex; align-items: center; gap: 0; white-space: nowrap; }
.language-switch button { min-width: 44px; min-height: 44px; padding: 8px; background: transparent; border: 0; box-shadow: none; color: var(--ink); }
.language-switch button:hover, .language-switch button[aria-current] { color: var(--brand-dark); text-decoration: underline; }
.login-page > .language-switch, .customer-page > .language-switch { position: absolute; z-index: 2; top: 8px; right: 16px; }
.customer-page > .language-switch button { color: white; }
.customer-page > .language-switch { color: white; }
@media (max-width: 899px) {
  .lg-brand { min-height: 0; }
  .lg-formside { margin-top: 0; border-radius: 0; box-shadow: none; }
  .login-page > .language-switch, .login-page > .language-switch button { color: white; }
}

/* Staff navigation and overview follow the dotted brand band. */
.staff-page .topbar {
  color: white; background-color: var(--navy);
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 22px 22px; box-shadow: none;
  padding: 18px max(24px, calc((100vw - 1152px) / 2));
}
.staff-page .brand-logo { height: 40px; padding: 4px 8px; background: white; border-radius: 8px; }
.staff-page .portal-name { color: #c9d6f2; border-color: rgba(255,255,255,.25); }
.staff-page .topbar a, .staff-page .language-switch, .staff-page .language-switch button { color: white; }
.staff-page .nav-current { display: inline-flex; align-items: center; min-height: 44px; background: rgba(255,255,255,.14); border-radius: 999px; }
.staff-page .service-state { display: inline-flex; align-items: center; min-height: 44px; }
.staff-page .topbar button.secondary { background: transparent; border-color: rgba(255,255,255,.5); color: white; }
.staff-page .brand-band { border-bottom: 0; }
.staff-page .brand-band-inner, .staff-page .content { max-width: 1200px; }
.staff-page .brand-band h1 { font-size: 40px; }
.staff-page .hero-eyebrow { color: #a9c4ff; text-transform: none; letter-spacing: 0; font-size: 15px; }
.staff-page .stats { grid-template-columns: repeat(4, minmax(0,1fr)); }
.staff-page .stat { gap: 14px; padding: 20px; border-radius: 16px; background: white; }
.staff-page .stat strong { font-family: Outfit, sans-serif; font-size: 36px; line-height: 1; color: var(--ink); }
.staff-page .small, .staff-page .tabs a { min-height: 44px; }
.staff-page .tabs a { display: inline-flex; align-items: center; }
.staff-page a:not(.button) { display: inline-flex; align-items: center; min-height: 44px; }
.staff-page .target-item { min-height: 44px; }
.list-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.list-toolbar .filter-info { margin-left: 0; }
.list-toolbar .list-search { margin: 0 0 0 auto; flex: 1 1 220px; max-width: 360px; }
.list-search label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.access-list-table th a { color: inherit; text-decoration: none; font: inherit; letter-spacing: inherit; }
.access-list-table th a span { margin-left: 4px; font-size: 12px; }
.recipient-avatar { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-right: 10px; vertical-align: top; border-radius: 12px; font-weight: 600; background: #eef1f5; color: #334155; }
.avatar-company { background: #0a2357; color: white; }
.avatar-person { background: #eef3ff; color: #1f5bff; }
.avatar-doctor { background: #e6f7ef; color: #0b7a4b; }
.recipient-info { display: inline-block; max-width: calc(100% - 54px); vertical-align: top; }
.folder-tag { display: inline-block; margin: 2px 3px 2px 0; padding: 3px 8px; border-radius: 6px; background: #f1f3f8; color: #334155; font-size: 12px; }
.access-list-table th:nth-child(4), .access-list-table th:nth-child(5) { width: auto; }
.access-list-table th:nth-child(4), .access-list-table td:nth-child(4) { white-space: normal; }
@media (max-width: 576px) { .list-toolbar .list-search { flex-basis: 100%; max-width: none; margin-left: 0; } }
@media (max-width: 768px) {
  .staff-page .stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .staff-page .brand-band h1 { font-size: 30px; }
  .staff-page .topbar { padding: 12px 16px; }
  .staff-page .portal-name { display: none; }
  .staff-page .topbar-items { flex-basis: 100%; }
  .staff-page .language-switch { position: absolute; top: 8px; right: 16px; }
  .staff-steps { flex-wrap: wrap; }
  .staff-steps li { flex-shrink: 0; overflow-wrap: normal; }
}

/* Customer steps and cards use the same brand surface as the staff pages. */
.customer-top { padding: 28px 4px 56px; }
.customer-top::before { background-color: var(--navy); background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px); background-size: 20px 20px; border: 0; }
.customer-logo { width: 166px; margin: 0 0 20px; }
.customer-card { position: relative; margin-top: -36px; border-radius: 16px; }
.customer-welcome { text-align: left; color: var(--ink); margin: 0 0 20px; }
.customer-welcome p { color: var(--ink-2); }
.customer-welcome small { color: var(--ink-2); }
.customer-welcome-title { font: 700 24px/1.2 Outfit, sans-serif; color: var(--ink) !important; }
.customer-success-heading { display: flex; align-items: center; gap: 12px; }
.customer-success-heading h1 { margin: 0; }
.customer-success-heading > span { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); font-size: 24px; }
.customer-centered > .contact a { min-height: 44px; line-height: 44px; }
.customer-card .access-card { border-radius: 12px; padding: 16px; }
.customer-card .access-card .button { min-height: 44px; }
.customer-request { text-align: left; }
.customer-request .customer-message-icon { margin-bottom: 16px; font-size: 24px; }
.customer-request form { margin-top: 20px; padding: 16px; border-radius: 12px; background: var(--bg); text-align: left; }
.customer-request form p { margin: 0; color: var(--muted); font-size: 13px; }
@media (max-width: 576px) {
  .customer-top > .steps { justify-content: flex-start; white-space: normal; }
  .customer-top > .steps li { white-space: normal; }
  .customer-card { padding: 24px 20px; }
}
