:root {
    --pdu-ink: #142d3c;
    --pdu-navy: #102d3d;
    --pdu-navy-deep: #0b2230;
    --pdu-teal: #087f7d;
    --pdu-teal-bright: #12a5a0;
    --pdu-paper: #f6f8f9;
    --pdu-line: #dce5e8;
    --pdu-muted: #627687;
    --pdu-amber: #d09a47;
    font-family: "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
    color: var(--pdu-ink);
    background: var(--pdu-paper);
    font-synthesis: none;
}
html { scroll-behavior: smooth; }
body { min-width: 320px; background: var(--pdu-paper); }
button, input, select, textarea { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #35a9a3; outline-offset: 3px; }
a { color: var(--pdu-teal); }
a:hover { color: #056966; }
.skip-link { position: fixed; top: -60px; left: 16px; z-index: 40; background: #fff; padding: 10px 14px; border-radius: 6px; font-weight: 700; }
.skip-link:focus { top: 12px; }

.app-shell { max-width: none; min-height: 100vh; display: grid; grid-template-columns: 242px minmax(0, 1fr); }
.workspace-shell { min-width: 0; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; overflow-y: auto; padding: 0 10px 14px; border-right: 0; background: var(--pdu-navy); scrollbar-color: #355769 transparent; }
.sidebar-brand { min-height: 82px; padding: 18px 15px; margin-bottom: 7px; border-bottom: 1px solid #ffffff1d; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { flex: 0 0 38px; width: 38px; height: 38px; min-width: 38px; padding: 0; display: grid; place-items: center; border-radius: 9px; background: var(--pdu-teal-bright); position: relative; overflow: hidden; }
.brand-mark::before, .brand-mark::after, .brand-mark-line { content: ""; position: absolute; height: 6px; border-radius: 5px; transform: rotate(-42deg); background: var(--pdu-navy-deep); }
.brand-mark::before { width: 24px; left: 4px; top: 11px; }
.brand-mark::after { width: 23px; right: 3px; bottom: 10px; }
.brand-mark-line { width: 20px; left: 10px; top: 16px; background: #e9ffff; }
.brand-copy { display: grid; gap: 2px; min-width: 0; }
.brand-copy strong { color: #fff; font-size: 17px; letter-spacing: -.025em; font-weight: 730; line-height: 1.1; }
.brand-copy small { color: #a5bbc6; font-size: 10px; font-weight: 500; letter-spacing: .015em; }
.sidebar-nav { padding: 4px 0 14px; }
.nav-caption { display: block; padding: 13px 15px 7px; color: #80a1af; font-size: 10px; font-weight: 750; letter-spacing: .15em; }
.nav-spaced { margin-top: 11px; border-top: 1px solid #ffffff16; padding-top: 18px; }
.nav-link { display: flex; align-items: center; min-height: 36px; gap: 10px; margin: 1px 0; padding: 7px 13px; border-radius: 6px; color: #c0d2db; font-size: 12.5px; font-weight: 560; line-height: 1.35; white-space: normal; transition: background .18s ease, color .18s ease; }
.nav-link::before { content: ""; display: block; flex: 0 0 5px; width: 5px; height: 5px; border: 1px solid #6b8c9b; border-radius: 50%; }
.nav-link:hover { background: #ffffff12; color: #fff; }
.nav-link.active { color: #fff; background: #ffffff17; box-shadow: inset 2px 0 0 var(--pdu-teal-bright); }
.nav-link.active::before { background: var(--pdu-teal-bright); border-color: var(--pdu-teal-bright); }
.sidebar-footer { display: flex; align-items: center; gap: 8px; margin: auto 12px 0; padding-top: 16px; border-top: 1px solid #ffffff20; color: #8eacb8; font-size: 11px; }
.sidebar-footer-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--pdu-teal-bright); }
.sidebar-logout { display: none; margin: 10px 12px 0; }
.sidebar-logout .button { width: 100%; justify-content: flex-start; color: #d8e7ed; }
.sidebar-logout .button:hover { background: #ffffff17; color: #fff; }

.topbar { position: sticky; top: 0; z-index: 10; height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 clamp(24px, 3vw, 48px); background: #fff; border-bottom: 1px solid var(--pdu-line); }
.topbar-start, .topbar-user { display: flex; align-items: center; gap: 14px; }
.topbar-location { display: grid; gap: 3px; }
.topbar-location span { color: #7e94a0; font-size: 9px; letter-spacing: .17em; font-weight: 780; }
.topbar-location strong { color: var(--pdu-ink); font-size: 13px; font-weight: 700; }
.topbar-user { color: var(--pdu-ink); font-size: 12px; }
.user-meta { display: grid; gap: 3px; text-align: right; }
.user-meta strong { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.user-meta span { color: var(--pdu-muted); font-size: 11px; }
.user-avatar { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 50%; background: #d8f0ee; color: #086b68; font-weight: 800; font-size: 12px; }
.logout-button { border-left: 1px solid var(--pdu-line); border-radius: 0; padding-left: 16px; color: #516878; }
.menu-toggle { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; flex-direction: column; gap: 4px; border: 1px solid var(--pdu-line); border-radius: 7px; background: #fff; cursor: pointer; }
.menu-toggle span { display: block; width: 16px; height: 2px; background: var(--pdu-ink); border-radius: 2px; }
.sidebar-scrim[hidden] { display: none; }

.main-content { max-width: 1510px; min-height: calc(100vh - 72px); margin: 0 auto; padding: 38px clamp(24px, 3vw, 48px) 76px; }
.page-heading { margin-bottom: 25px; }
.page-heading-row { align-items: flex-start; }
.page-heading h1, .login-card h1 { margin: 6px 0 7px; color: #102838; font-family: "Aptos Display", "Segoe UI Variable Display", "Segoe UI", sans-serif; font-size: clamp(27px, 2.5vw, 36px); font-weight: 740; letter-spacing: -.04em; line-height: 1.15; }
.page-heading p { margin: 0; }
.eyebrow { color: var(--pdu-teal); font-size: 10px; font-weight: 790; letter-spacing: .15em; }
.muted { color: var(--pdu-muted); font-size: 12.5px; line-height: 1.6; }
h2, h3 { color: var(--pdu-ink); }
.panel { border: 1px solid var(--pdu-line); border-radius: 10px; background: #fff; box-shadow: 0 3px 16px #17334506; }
.panel, .filter-bar, .form-panel, .table-wrap { min-width: 0; max-width: 100%; }
.panel-section-heading h2, .detail-panel h2, .workflow-panel h2, .history-panel h2 { color: var(--pdu-ink); font-size: 16px; letter-spacing: -.015em; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 23px; }
.section-heading h2 { margin: 0 0 4px; font-size: 16px; letter-spacing: -.015em; }
.section-heading p { margin: 0; }

.button { min-height: 38px; padding: 9px 15px; border-radius: 6px; font-size: 12px; font-weight: 700; transition: background .17s ease, border-color .17s ease, transform .17s ease; }
.button:active { transform: translateY(1px); }
.button-primary { background: var(--pdu-teal); color: #fff; box-shadow: none; }
.button-primary:hover { background: #066b69; color: #fff; }
.button-whatsapp { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 11px 18px; border: 1px solid #0a6938; border-radius: 7px; background: #0f7a41; color: #fff; font-size: 13px; box-shadow: 0 5px 14px #0f7a4126; }
.button-whatsapp:hover { border-color: #075a30; background: #096d38; color: #fff; box-shadow: 0 7px 18px #0f7a4133; }
.button-whatsapp svg { flex: 0 0 21px; width: 21px; height: 21px; }
.button-secondary { background: #fff; border-color: #cbdadd; color: #244658; }
.button-secondary:hover { background: #f1f8f8; border-color: #87b8b6; color: #0e6462; }
.button-quiet { color: #456071; }
.button-quiet:hover { background: #eaf1f2; }
.button-danger { border-color: #e7c9c5; background: #fff5f3; color: #a4483e; }
.button-danger:hover { background: #fae8e5; }
.button-small { min-height: 30px; padding: 6px 10px; font-size: 11px; }
.button-wide { min-height: 44px; width: 100%; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.metric-card { min-height: 131px; min-width: 0; gap: 9px; padding: 19px 20px; border: 1px solid var(--pdu-line); border-radius: 9px; background: #fff; box-shadow: 0 3px 15px #17334505; }
.metric-card-soft { background: #f1faf9; border-color: #cfe8e5; }
.metric-label { color: #536e7c; font-size: 11px; font-weight: 700; line-height: 1.4; }
.metric-card strong { color: #0f2c3b; font-size: clamp(22px, 2.2vw, 29px); letter-spacing: -.035em; line-height: 1.08; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.metric-note { color: #78909b; font-size: 11px; line-height: 1.4; }
.metric-card-link { text-decoration: none; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.metric-card-link:hover { border-color: #8fcac5; box-shadow: 0 9px 22px #0b575216; transform: translateY(-2px); }
.metric-card-link:hover .metric-note { color: var(--pdu-teal); }
.dashboard-section-label { margin: 27px 0 12px; color: #5d7783; font-size: 10px; font-weight: 780; letter-spacing: .15em; }
.dashboard-priority { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(265px, .8fr); gap: 15px; margin-bottom: 20px; }
.priority-panel, .journey-panel { padding: 22px; }
.priority-panel h2, .journey-panel h2 { margin: 0 0 5px; font-size: 17px; }
.priority-list { display: grid; margin-top: 20px; }
.priority-item { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid #e9eff0; text-decoration: none; }
.priority-item:hover strong { color: var(--pdu-teal); }
.priority-item strong, .journey-step strong { display: block; color: var(--pdu-ink); font-size: 12px; }
.priority-item small, .journey-step small { display: block; margin-top: 4px; color: var(--pdu-muted); font-size: 11px; line-height: 1.45; }
.priority-count { flex: 0 0 auto; min-width: 31px; padding: 6px 8px; border-radius: 5px; background: #e6f4f3; color: var(--pdu-teal); text-align: center; font-size: 12px; font-weight: 800; }
.journey-list { margin: 18px 0 0; padding: 0; list-style: none; }
.journey-step { display: flex; gap: 12px; padding: 0 0 19px; position: relative; }
.journey-step:not(:last-child)::after { content: ""; position: absolute; left: 9px; top: 21px; bottom: 2px; width: 1px; background: #cbdfe0; }
.journey-index { flex: 0 0 19px; width: 19px; height: 19px; display: grid; place-items: center; border: 1px solid #9bcac7; border-radius: 50%; color: #087d7a; font-size: 9px; font-weight: 800; background: #eaf7f6; }

.filter-bar { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; padding: 16px 18px; background: #fff; border-bottom: 1px solid var(--pdu-line); }
.filter-bar input, .filter-bar select, .field input, .field select, .field textarea, .stack-form input:not([type=checkbox]), .stack-form select, .deactivate-form input, .reference-edit-form input, .reference-edit-form select, .reference-edit-form textarea, .decision-form input, .decision-form textarea, .reminder-outcome-form input, .reminder-outcome-form select { min-height: 39px; border: 1px solid #cad8dd; border-radius: 6px; background: #fff; color: var(--pdu-ink); font-size: 12.5px; }
.filter-bar input:focus, .filter-bar select:focus, .field input:focus, .field select:focus, .field textarea:focus, .stack-form input:focus, .reference-edit-form input:focus, .reference-edit-form select:focus, .reference-edit-form textarea:focus { outline: none; border-color: #0e8d88; box-shadow: 0 0 0 3px #0e8d881a; }
.field label, .stack-form label:not(.check-row), .decision-form label { color: #2e4a59; font-size: 12px; font-weight: 700; }
.field small, .table-sub { color: #708592; font-size: 11px; }
.field textarea, .reference-edit-form textarea { line-height: 1.55; }
.form-panel, .detail-panel, .workflow-panel, .history-panel { padding: 23px; }
.form-grid { gap: 20px 22px; }
.form-section-heading { display: flex; align-items: flex-start; gap: 13px; margin-top: 6px; padding-top: 22px; border-top: 1px solid var(--pdu-line); }
.form-section-heading:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.form-section-number { flex: 0 0 30px; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid #bbdcda; border-radius: 6px; color: #087f7d; background: #eff9f8; font-size: 10px; font-weight: 800; }
.form-section-heading h2 { margin: 1px 0 4px; color: var(--pdu-ink); font-size: 14px; letter-spacing: -.015em; }
.form-section-heading p { margin: 0; color: var(--pdu-muted); font-size: 11px; line-height: 1.5; }
.form-actions { flex-wrap: wrap; }
.check-row input { accent-color: var(--pdu-teal); }

.table-wrap { overflow-x: auto; }
table { min-width: 760px; font-variant-numeric: tabular-nums; }
th { padding: 13px 15px; background: #f4f7f8; border-bottom: 1px solid var(--pdu-line); color: #526c79; font-size: 10px; font-weight: 780; letter-spacing: .07em; }
td { padding: 14px 15px; border-color: #e8eef0; color: #415968; font-size: 12px; }
tbody tr:hover { background: #f8fbfb; }
td strong { color: #1b3949; font-size: 12px; }
.table-link, .back-link, .empty-state a { color: var(--pdu-teal); }
.table-link:hover, .back-link:hover, .empty-state a:hover { color: #056765; text-decoration: underline; }
.status-badge { border-radius: 5px; padding: 5px 8px; font-size: 10px; line-height: 1.25; font-weight: 760; }
.status-active { color: #156f5d; background: #e5f4ed; }
.status-inactive { color: #627482; background: #ebf0f2; }
.status-neutral { color: #2c6077; background: #e7f1f5; }
.alert { border-radius: 7px; padding: 13px 16px; font-size: 12px; }
.alert-success { background: #e9f6f1; border-color: #c5e7d7; color: #205b4b; }
.alert-warning { background: #fff6e8; border-color: #edd8b3; color: #77552b; }
.alert-error { background: #fdf0ee; border-color: #efc9c2; color: #9d4036; }
.empty-state { padding: 22px; text-align: center; }
.empty-icon { background: #e9f5f4; color: var(--pdu-teal); }
.pagination-wrap span[aria-current] { color: var(--pdu-teal); background: #e1f3f1; }
.lead-card, .package-card, .service-card, .aging-bucket, .invoice-detail-grid > div { border-color: var(--pdu-line); border-radius: 8px; background: #fff; }
.reference-edit-form, .deactivate-form { border-color: var(--pdu-line); box-shadow: 0 14px 34px #0b26331c; }
.report-link-grid > .panel { padding: 20px; }
.report-link-grid > .panel .panel-section-heading { padding: 0 0 15px; }
.report-link-grid > .panel p { line-height: 1.6; }
.closing-action-panel { padding: 20px; margin: 14px 0 18px; }
.payment-form .form-grid > div { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.payment-form .form-grid label { color: #2e4a59; font-size: 12px; font-weight: 700; }
.payment-form .form-grid input, .payment-form .form-grid select { width: 100%; min-height: 39px; padding: 9px 11px; border: 1px solid #cad8dd; border-radius: 6px; background: #fff; color: var(--pdu-ink); }
.payment-form .form-grid input:focus, .payment-form .form-grid select:focus { outline: none; border-color: var(--pdu-teal); box-shadow: 0 0 0 3px #0e8d881a; }
.payment-form .table-wrap { margin-top: 22px; }
.payment-form .form-hint { color: var(--pdu-muted); font-size: 11px; line-height: 1.6; }
.detail-list dt, .version-data dt, .invoice-detail-grid span { color: #6a8390; }
.detail-list dd, .version-data dd, .invoice-detail-grid strong { color: #274457; }
.error-panel { max-width: 680px; margin: 7vh auto 0; padding: 42px; }
.error-panel h1 { margin: 8px 0 10px; font-size: clamp(27px, 3vw, 38px); line-height: 1.15; letter-spacing: -.035em; }
.error-panel .muted { margin-bottom: 24px; }

.data-lifecycle-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 15px; align-items: start; }
.data-lifecycle-card { display: grid; gap: 14px; padding: 20px; }
.data-lifecycle-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.data-lifecycle-card-heading h2 { margin: 0 0 5px; font-size: 16px; letter-spacing: -.02em; }
.data-lifecycle-card-heading .muted { margin: 0; font-size: 11px; }
.data-lifecycle-card-heading .status-badge { flex: 0 0 auto; white-space: nowrap; }
.data-lifecycle-policy-form { gap: 12px; }
.data-lifecycle-policy-form .field { display: grid; gap: 6px; }
.data-lifecycle-policy-form .field input, .data-lifecycle-policy-form .field select { width: 100%; padding: 9px 11px; }
.data-lifecycle-policy-form .form-actions { margin: 0; }
.data-lifecycle-card .table-sub { margin: 0; line-height: 1.55; }
.data-lifecycle-card > .muted { margin: 0; padding: 9px 11px; border-left: 2px solid #9ccbc8; border-radius: 0 5px 5px 0; background: #f6faf9; font-size: 11px; }
.reference-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 3px; border-top: 1px solid #edf1f2; }
.data-lifecycle-counts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 9px; margin: 16px 0 0; }
.data-lifecycle-counts > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid #e3ebed; border-radius: 6px; background: #f8fafb; }
.data-lifecycle-counts dt { color: #536e7c; font-size: 11px; text-transform: capitalize; }
.data-lifecycle-counts dd { margin: 0; color: var(--pdu-ink); font-size: 13px; font-weight: 780; font-variant-numeric: tabular-nums; }
.data-lifecycle-card-heading + .table-sub { padding: 10px 12px; border-radius: 6px; background: #f3f8f8; }
.data-lifecycle-counts + p { margin-top: 18px; }
.data-lifecycle-cleanups { margin-top: 20px; }
.data-lifecycle-cleanups h2 { margin-top: 0; font-size: 17px; }
.data-lifecycle-cleanups .table-wrap { margin-top: 14px; }

.auth-shell { display: grid; grid-template-columns: minmax(360px, 48%) minmax(0, 52%); min-height: 100vh; }
.auth-story { min-height: 100vh; position: relative; overflow: hidden; display: flex; flex-direction: column; padding: clamp(34px, 4vw, 62px); background: var(--pdu-navy-deep); color: #fff; }
.auth-brand { position: relative; z-index: 2; align-self: flex-start; }
.auth-brand .brand-copy strong { font-size: 21px; }
.auth-story-copy { position: relative; z-index: 2; max-width: 470px; margin: auto 0; padding-bottom: 80px; }
.auth-story-kicker { color: #79c9c7; font-size: 11px; font-weight: 750; letter-spacing: .18em; }
.auth-story-copy h2 { max-width: 430px; margin: 19px 0 16px; color: #fff; font-family: "Aptos Display", "Segoe UI Variable Display", "Segoe UI", sans-serif; font-size: clamp(34px, 3.7vw, 57px); letter-spacing: -.045em; line-height: 1.1; }
.auth-story-copy > p:last-child { max-width: 360px; color: #bbced7; font-size: 14px; line-height: 1.7; }
.auth-story-footer { position: relative; z-index: 2; margin: 0; color: #7fa3b3; font-size: 11px; }
.auth-network { position: absolute; inset: 0; pointer-events: none; opacity: .63; }
.auth-network span { position: absolute; border: 1px solid #23aba9; border-radius: 28px; transform: rotate(-40deg); }
.auth-network span:nth-child(1) { width: 510px; height: 220px; left: 48%; top: 61%; }
.auth-network span:nth-child(2) { width: 490px; height: 220px; left: 60%; top: 69%; border-color: #43839b; }
.auth-network span:nth-child(3) { width: 370px; height: 150px; left: -18%; top: 75%; border-color: #2f90a0; }
.auth-network span:nth-child(4) { width: 12px; height: 12px; left: 72%; top: 74%; border: 2px solid #2bc0ba; background: var(--pdu-navy-deep); }
.guest-main { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 46px clamp(30px, 6vw, 100px); background: #fbfcfc; }
.guest-brand-mobile { display: none; }
.login-wrap { width: min(100%, 505px); }
.login-card { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.login-card .brand-mark-large { display: none; }
.login-card h1 { margin: 12px 0 9px; font-size: clamp(31px, 3vw, 43px); }
.login-card > .muted { max-width: 430px; margin-bottom: 30px; font-size: 14px; }
.login-card .stack-form { gap: 10px; }
.login-card .stack-form input:not([type=checkbox]) { min-height: 49px; padding: 12px 14px; font-size: 14px; }
.login-card .stack-form label:not(.check-row) { margin-top: 6px; font-size: 12px; }
.login-card .stack-form .button-primary { margin-top: 12px; min-height: 50px; font-size: 13px; }
.login-card .stack-form .muted { margin: 1px 0; text-align: right; }
.login-card .check-row { margin: 4px 0; color: #56717f; }
.login-footnote { margin-top: 25px; padding-top: 20px; border-color: var(--pdu-line); color: #708593; font-size: 11px; }
.login-footnote a { font-weight: 700; }

@media (max-width: 1180px) {
    .app-shell { grid-template-columns: 215px minmax(0, 1fr); }
    .sidebar-brand { padding-inline: 10px; }
    .nav-link { font-size: 12px; }
    .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-priority { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
    .app-shell { display: block; }
    .sidebar { position: fixed; z-index: 30; left: 0; top: 0; bottom: 0; width: min(284px, 84vw); height: 100vh; align-items: stretch; gap: 0; padding: 0 10px 14px; overflow-x: hidden; overflow-y: auto; border: 0; transform: translateX(-105%); transition: transform .23s ease; box-shadow: 15px 0 45px #0922302a; }
    body.nav-open { overflow: hidden; }
    body.nav-open .sidebar { transform: translateX(0); }
    .sidebar-scrim { position: fixed; z-index: 20; inset: 0; width: 100%; border: 0; background: #0b2538a3; cursor: pointer; }
    .menu-toggle { display: flex; }
    .sidebar-logout { display: block; }
    .topbar { padding-inline: 18px; }
    .main-content { padding: 28px 18px 55px; }
    .auth-shell { grid-template-columns: minmax(0, 1fr); }
    .auth-story { display: none; }
    .guest-main { min-height: 100vh; }
    .guest-brand-mobile { display: flex; align-items: center; align-self: flex-start; gap: 10px; width: min(100%, 505px); margin: 0 auto 48px; color: var(--pdu-ink); font-size: 16px; }
}
@media (max-width: 620px) {
    .topbar { height: 64px; }
    .topbar-location span, .user-meta span, .logout-button { display: none; }
    .topbar-location strong { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .user-meta strong { max-width: 94px; font-size: 11px; }
    .topbar-user { gap: 8px; }
    .user-avatar { width: 30px; height: 30px; }
    .main-content { min-height: calc(100vh - 64px); }
    .page-heading-row { align-items: stretch; }
    .page-heading-row > .button, .page-heading-row > .form-actions { width: 100%; }
    .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .metric-card { min-height: 116px; padding: 15px; }
    .metric-card strong { font-size: 21px; }
    .dashboard-priority { gap: 11px; }
    .priority-panel, .journey-panel { padding: 18px; }
    .filter-bar > input, .filter-bar > select, .filter-bar > .button { flex: 1 1 100%; width: 100%; min-width: 0; max-width: 100%; }
    .guest-main { justify-content: flex-start; padding: 26px 23px 45px; }
    .guest-brand-mobile { margin-bottom: clamp(45px, 10vh, 85px); }
    .login-card h1 { font-size: 32px; }
    .data-lifecycle-card { padding: 16px; }
    .data-lifecycle-card-heading { flex-direction: column; }
    .reference-actions .button { flex: 1 1 100%; }
}
@media (max-width: 400px) {
    .metric-grid { grid-template-columns: 1fr; }
    .metric-card { min-height: 96px; }
    .form-actions .button { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media print {
    @page { size: A4; margin: 16mm; }
    body.print-receipt { min-width: 0; background: #fff; color: #111; }
    .print-receipt .app-shell { display: block; min-height: 0; }
    .print-receipt .sidebar, .print-receipt .topbar, .print-receipt .sidebar-scrim, .print-receipt .skip-link, .print-receipt [data-print-receipt] { display: none !important; }
    .print-receipt .main-content { max-width: none; min-height: 0; margin: 0; padding: 0; }
    .print-receipt .page-heading { margin-bottom: 18px; }
    .print-receipt .panel { padding: 0; border: 0; box-shadow: none; }
    .print-receipt .table-wrap { overflow: visible; }
    .print-receipt table { min-width: 0; width: 100%; }
    .print-receipt tr, .print-receipt .invoice-detail-grid > div { break-inside: avoid; }
    .print-receipt th, .print-receipt td { padding: 9px 8px; }
}
