:root {
    --ink: #252422; --muted: #6d6860; --brand: #272624; --brand-hover: #403c36;
    --accent: #c2a477; --accent-soft: #f3ece0; --accent-ink: #775a2e;
    --line: #dedbd5; --surface: #f6f5f2; --surface-hover: #f0ede7; --danger: #a32e37;
    color-scheme: light;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink); font-size: 16px; line-height: 1.5; background: var(--surface);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 4px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(1.8rem, 3vw, 2.2rem); letter-spacing: -.04em; line-height: 1.2; margin-bottom: .7rem; font-weight: 650; }
h2 { font-size: 1.3rem; letter-spacing: -.025em; font-weight: 650; }
h3 { font-size: 1rem; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; padding: .7rem 1.1rem; border: 1px solid transparent; font-size: .875rem; line-height: 1.4; font-weight: 600; text-decoration: none; cursor: pointer; }
.button-primary { background: var(--brand); color: #fff; }
.button-primary:hover { background: var(--brand-hover); }
.button-secondary { background: #fff; border-color: var(--line); color: var(--ink); }
.button-secondary:hover { background: var(--surface-hover); }
.button-danger { background: var(--danger); color: #fff; }
.button-danger:hover { background: #84262d; }
.button-danger-outline { color: var(--danger); background: #fff; border-color: #e2bec2; }
.button-danger-outline:hover { background: #fff1f2; }
.button-full { width: 100%; }
.button-icon { width: 44px; height: 44px; padding: 0; flex-shrink: 0; }
.button-icon svg { display: block; width: 20px; height: 20px; }
.text-link { color: var(--accent-ink); font-size: .875rem; font-weight: 600; text-underline-offset: 4px; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 1rem; font-weight: 750; letter-spacing: .1em; line-height: 1.2; text-decoration: none; }
.brand-logo { width: 100%; max-width: 210px; padding: .75rem; background: #fff; border: 1px solid var(--accent); border-radius: 12px; }
.brand-logo img { display: block; width: 100%; height: auto; }
.login-layout { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100svh; padding: 2rem 1rem; }
.login-card { width: 100%; max-width: 440px; padding: 2rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 4px 20px #27262408; }
.login-heading { text-align: center; margin-bottom: 1.75rem; }
.login-logo { display: block; width: 128px; max-width: 100%; height: auto; margin: 0 auto 1.5rem; }
.login-heading h1 { font-size: 1.5rem; letter-spacing: -.025em; margin-bottom: .5rem; }
.login-heading p { margin-bottom: 0; }
.login-form { display: grid; gap: 1.25rem; }
.login-form .button { min-height: 46px; font-size: 1rem; }
.field { display: flex; flex-direction: column; gap: .45rem; }
label { font-size: .875rem; font-weight: 600; }
input:not([type=checkbox]):not([type=hidden]), select, textarea { width: 100%; min-height: 46px; padding: .65rem .85rem; background: #fff; color: var(--ink); border: 1px solid #cbc6bd; border-radius: 7px; }
textarea { resize: vertical; }
input::placeholder { color: #817a70; }
select { appearance: none; padding-right: 2.5rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%236d6860' stroke-width='1.5'/%3E%3C/svg%3E"); background-position: right .75rem center; background-repeat: no-repeat; }
input[type=checkbox] { accent-color: var(--accent-ink); width: 18px; height: 18px; vertical-align: middle; margin: 0 .5rem 0 0; }
.login-note { text-align: center; font-size: .875rem; color: var(--muted); line-height: 1.7; margin: 1.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.login-footer { margin: 1.5rem 0 0; text-align: center; font-size: .8125rem; color: var(--muted); }
.admin-layout { display: flex; min-height: 100svh; }
.sidebar { width: 245px; flex-shrink: 0; background: var(--brand); color: #e5dfd5; padding: 2rem 1.5rem; display: flex; flex-direction: column; }
.sidebar .brand { margin-bottom: 2rem; }
.nav-label { padding: 0; color: #c7bca9; font-size: .7rem; letter-spacing: .13em; margin-bottom: .8rem; }
.sidebar nav { display: grid; gap: .4rem; }
.sidebar nav a { padding: .5rem .9rem; font-size: .9rem; text-decoration: none; border-radius: 7px; }
.sidebar nav a:hover { background: #ffffff0c; }
.sidebar nav a[aria-current=page] { color: var(--brand); background: var(--accent); font-weight: 650; }
.sidebar :focus-visible { outline-color: var(--accent); }
.sidebar-group { display: flex; flex-direction: column; }
.sidebar-group + .sidebar-group { margin-top: 1.5rem; }
.sidebar-footer { margin-top: auto; padding-top: 3rem; font-size: .75rem; color: #ddd4c6; display: flex; align-items: center; gap: .5rem; }
.status-indicator { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.admin-main { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.topbar { min-height: 90px; padding: 1rem 2.5rem; background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.topbar-label { font-size: .875rem; }
.topbar .muted { color: inherit; }
.account-nav { display: flex; align-items: center; gap: .75rem; font-size: .875rem; }
.account-nav strong { display: block; font-weight: 600; }
.account-nav .small { display: block; font-size: .75rem; }
.account-nav .logout-form { margin-left: 1rem; }
.avatar { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--avatar-background, var(--accent-soft)); color: var(--avatar-foreground, var(--accent-ink)); border: 1px solid currentColor; border-radius: 50%; width: 38px; height: 38px; font-weight: 650; font-size: .75rem; }
.content { padding: 2.8rem 2.5rem; width: 100%; margin: 0 auto; flex: 1; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; margin-bottom: 2rem; }
.page-heading p { margin: 0; }
.page-heading > .button { flex-shrink: 0; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-bottom: 2rem; }
.stat-card { padding: 1.6rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; display: grid; gap: .4rem; }
.stat-card:hover { border-color: var(--accent); }
.stat-card > span:first-child { font-size: .875rem; font-weight: 600; }
.stat-card strong { font-size: 2.6rem; font-weight: 550; letter-spacing: -.04em; }
.welcome-panel { display: grid; grid-template-columns: 1.1fr 1fr; padding: 2rem; gap: 2rem; }
.welcome-panel p { max-width: 32rem; }
.access-summary { padding: 1.5rem; background: var(--surface); border-radius: 8px; }
.access-summary p { font-size: .875rem; display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; }
.access-summary p:last-child { margin-bottom: 0; }
.badge { display: inline-flex; align-items: center; border-radius: 5px; padding: .2rem .55rem; font-size: .875rem; font-weight: 500; white-space: nowrap; }
.badge-active { color: #23613e; background: #e5f4e8; }
.badge-neutral { color: #615b52; background: #efede9; }
.badge-danger { color: #9c3030; background: #fff0f0; }
.badge-admin { color: var(--accent-ink); background: var(--accent-soft); }
.badge-deposit, .badge-warning { color: #7b4b12; background: #fff4d6; }
.role-badges { display: flex; gap: .4rem; flex-wrap: wrap; }
.count { display: inline-block; vertical-align: middle; background: var(--accent-soft); color: var(--accent-ink); font-size: 1rem; letter-spacing: 0; padding: .25rem .6rem; border-radius: 7px; }
.filters { display: flex; align-items: flex-end; gap: 1rem; padding: 1.5rem; flex-wrap: wrap; }
.search-field { flex: 1; min-width: 180px; }
.filters > .field:not(.search-field) { min-width: 165px; }
.filters .text-link { padding-bottom: .75rem; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .875rem; }
th { background: #e9e7e3; color: #615b52; text-align: left; font-weight: 550; padding: .9rem 1.5rem; white-space: nowrap; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
td { padding: 1.2rem 1.5rem; border-bottom: 1px solid #eeece8; }
td .small { display: block; font-size: .75rem; }
tbody tr:hover { background: #faf9f7; }
.align-right { text-align: right; }
.user-name { display: flex; align-items: center; gap: .75rem; text-decoration: none; font-weight: 600; }
.user-name:hover { text-decoration: underline; text-underline-offset: 4px; }
.empty-state { text-align: center; padding: 4rem 1rem; }
.table-footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.5rem; }
.pagination { display: flex; gap: .5rem; }
.breadcrumb { display: inline-block; margin-bottom: 1.5rem; }
.form-panel { padding: 2rem; }
.form-panel h2 { margin-bottom: 1.5rem; }
.form-panel form > div { margin-bottom: 1.25rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
input[type=color].user-color-picker { display: block; width: 5rem; padding: .25rem; cursor: pointer; }
.form-section > div { margin-bottom: 1.25rem; }
.form-panel label { display: inline-block; margin-bottom: .4rem; }
.form-panel div[id$=_roles] { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin: .3rem 0; }
.form-panel div[id$=_roles] label { margin: 0 1rem 0 0; }
.form-section { padding-top: 1.75rem; margin-top: 1.75rem; border-top: 1px solid var(--line); }
.user-form { max-width: 780px; }
.user-form > .form-panel + .form-panel, .invoice-form > .form-panel + .form-panel, .assignment-form > .form-panel + .form-panel { margin-top: 1.5rem; }
.user-form > .form-panel > div:not(:last-child), .invoice-form > .form-panel > div:not(:last-child), .assignment-form > .form-panel > div:not(:last-child) { margin-bottom: 1.25rem; }
.help-text { font-size: .875rem; color: var(--muted); margin-top: .5rem; }
.form-panel ul, .user-form > ul, .invoice-form > ul, .assignment-form > ul, .invoice-inline-form ul { padding: .8rem 1rem .8rem 2rem; color: var(--danger); background: #fff2f3; border-radius: 6px; font-size: .875rem; }
.form-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.form-panel .form-actions { margin-bottom: 0; }
.notice { background: var(--accent-soft); padding: 1rem; border-radius: 7px; font-size: .875rem; }
.details-panel { padding: 2rem; }
.details-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; margin: 0; }
dt { font-size: .875rem; color: var(--muted); margin-bottom: .5rem; }
dd { margin: 0; overflow-wrap: anywhere; }
.danger-panel { display: flex; align-items: center; gap: 2rem; padding: 1.5rem 2rem; margin-top: 2rem; }
.danger-panel h2 { font-size: 1.1rem; }
.danger-panel p { font-size: .875rem; margin-bottom: 0; }
.danger-panel .button { flex-shrink: 0; }
.alert { padding: 1rem 1.2rem; border-radius: 8px; margin-bottom: 1.5rem; font-size: .875rem; }
.alert-success { background: #e6f3e8; color: #275d3b; border: 1px solid #c9e2d0; }
.alert-error { background: #fff0f1; color: var(--danger); border: 1px solid #f0d1d4; }
.admin-footer { display: flex; justify-content: space-between; padding: 1.3rem 2.5rem; font-size: .75rem; color: var(--muted); }
.account-page { min-height: 100svh; display: grid; place-items: center; padding: 2rem; }
.account-card { max-width: 600px; padding: 3rem; }
.driver-layout { height: 100dvh; display: flex; flex-direction: column; }
.impersonation-banner { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; padding: 1rem; background: #fff4d6; color: #674510; border-bottom: 1px solid #e8cf93; }
.impersonation-banner p { margin: 0; overflow-wrap: anywhere; }
.invoice-form { max-width: 1100px; }
.invoice-form > .form-panel { max-width: none; }
.invoice-item { border: 1px solid var(--line); border-radius: 8px; padding: 1.25rem; margin: 0 0 1.5rem; min-width: 0; }
.invoice-item legend { padding: 0 .5rem; font-size: .875rem; font-weight: 600; }
.invoice-item-fields { display: grid; grid-template-columns: 2fr .7fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.invoice-item-fields > div { min-width: 0; }
.invoice-details { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.invoice-details address { font-style: normal; margin-top: .75rem; }
.invoice-page-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .6rem; }
.invoice-status-form { display: grid; gap: .75rem; margin-top: 1rem; }
.invoice-status-form label { display: block; margin-bottom: .4rem; }
.invoice-status-form ul { color: var(--danger); }
.invoice-lines { overflow: hidden; }
.invoice-lines thead th:nth-child(5) { width: 15rem; }
.invoice-lines thead th:last-child { width: 1%; }
#invoice-lines-frame, #quote-lines-frame { display: block; }
#invoice-lines-frame[busy], #quote-lines-frame[busy] { opacity: .65; }
#invoice-note-frame, #quote-note-frame { display: block; margin-bottom: 2rem; scroll-margin-top: 1rem; }
#invoice-note-frame[busy], #quote-note-frame[busy] { opacity: .65; }
.invoice-note-content { overflow-wrap: anywhere; }
.invoice-line-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: .75rem; }
.invoice-line-actions .text-danger { color: var(--danger); }
.invoice-inline-form td { vertical-align: top; }
.invoice-inline-name input, .invoice-inline-name textarea { min-width: 10rem; }
.invoice-inline-quantity input { min-width: 5rem; }
.invoice-inline-price input { min-width: 7rem; }
.invoice-inline-form .invoice-line-actions { flex-wrap: nowrap; }
.invoice-new-line .invoice-line-actions { display: grid; grid-template-columns: repeat(2, max-content); gap: .5rem; }
.invoice-line-save-more { grid-column: 1 / -1; }
.invoice-inline-form ul { text-align: left; margin-bottom: .5rem; }
.invoice-lines-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.5rem; }
.invoice-lines-heading h2 { margin-bottom: .4rem; }
.invoice-lines-heading p { margin-bottom: 0; }
.invoice-lines-heading > .button { flex-shrink: 0; }
.invoice-line-editor { max-width: none; background: var(--surface); border-top: 1px solid var(--line); scroll-margin-top: 1rem; }
.invoice-line-delete { background: #fff5f5; }
.invoice-editor-row > td { padding: 0; }
.invoice-line-active, .invoice-lines tr:target { background: var(--accent-soft); }
.invoice-lines tr[id] { scroll-margin-top: 1rem; }
.amount { white-space: nowrap; font-variant-numeric: tabular-nums; }
.invoice-summary { scroll-margin-top: 1rem; }
.invoice-summary th, .invoice-summary td { padding: .8rem 1.5rem; background: none; color: var(--ink); border: 0; vertical-align: middle; }
.invoice-summary tr:first-child > th, .invoice-summary tr:first-child > td { padding-top: 1.5rem; }
.invoice-summary .invoice-discount-input { padding-right: calc(1.5rem - .85rem - 1px); }
.invoice-discount-input input { max-width: 12rem; min-width: 8rem; text-align: right; font-variant-numeric: tabular-nums; }
.invoice-summary-actions { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-width: 100px; }
.invoice-discount-errors ul { margin: 0; padding: .8rem 1rem .8rem 2rem; color: var(--danger); background: #fff2f3; border-radius: 6px; font-size: .875rem; }
.invoice-summary-total > th, .invoice-summary-total > td:not(.invoice-summary-spacer) { border-top: 1px solid var(--line); padding-top: 1rem; padding-bottom: 1.5rem; font-weight: 650; }
.invoice-summary-total .amount { font-size: 1.25rem; }
.button:disabled { opacity: .5; cursor: not-allowed; }
.invoice-payments { margin-top: 1.5rem; scroll-margin-top: 1rem; }
.payment-totals { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; padding: 0 1.5rem 1.5rem; margin: 0; }
.payment-totals dt { color: var(--muted); font-size: .875rem; }
.payment-totals dd { margin: .25rem 0 0; font-size: 1.25rem; font-weight: 650; }
.payment-credit { color: var(--accent-ink); }
.payment-note { max-width: 24rem; overflow-wrap: anywhere; }
.payment-empty { padding: 0 1.5rem 1.5rem; margin: 0; }
.planning-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.time-entry-panel { margin-bottom: 1.5rem; overflow: hidden; }
.time-entry-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: .75rem 1.5rem; }
.time-entry-title h1 { margin-bottom: 0; }
.time-report-stats { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
#time-report-weeks > tbody > tr > th[scope=row], #time-report-weeks > tfoot > tr > th[scope=row] { background: transparent; }
.time-entry-week { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; }
.time-entry-week p { margin: 0; }
.time-entry-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: 1.5rem; }
.time-entry-heading h2 { margin: 0; }
.time-entry-help { padding: 1rem 1.5rem; margin: 0; }
.time-entry-dates { white-space: nowrap; }
.time-entry-details-row > td { padding: 0; }
.time-entry-details > summary { padding: .8rem 1.5rem; background: var(--surface); font-size: .875rem; font-weight: 600; cursor: pointer; }
.time-entry-details[open] > summary { border-bottom: 1px solid var(--line); }
.time-entry-slots { background: #fff; }
.admin-layout:has(.planning-panel) { height: 100dvh; }
.content:has(> .planning-panel) { display: flex; flex-direction: column; min-height: 0; }
.content:has(> .planning-panel) > :not(.planning-panel) { flex-shrink: 0; }
.planning-panel { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; min-height: 400px; }
.planning-panel > :not(.planning-calendar) { flex-shrink: 0; }
.planning-filters { display: flex; align-items: end; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }
.planning-filters .field { width: min(100%, 420px); }
.planning-calendar {
    flex: 1; min-height: 0;
    --fc-monarch-primary: var(--brand);
    --fc-monarch-primary-foreground: #fff;
    --fc-monarch-primary-over: var(--brand-hover);
    --fc-monarch-primary-down: #514a40;
    --fc-monarch-secondary: var(--accent-soft);
    --fc-monarch-secondary-foreground: var(--accent-ink);
    --fc-monarch-secondary-over: #e9ddca;
    --fc-monarch-secondary-down: #dfcdb1;
    --fc-monarch-tertiary: var(--brand);
    --fc-monarch-tertiary-foreground: #fff;
    --fc-monarch-tertiary-over: var(--brand-hover);
    --fc-monarch-tertiary-down: #514a40;
    --fc-monarch-event: var(--brand);
    --fc-monarch-event-contrast: #fff;
    --fc-monarch-highlight: #c2a47733;
    --fc-monarch-now: var(--danger);
    --fc-monarch-selected: var(--accent);
    --fc-monarch-selected-foreground: var(--brand);
    --fc-monarch-selected-over: #b99a6b;
    --fc-monarch-selected-down: #ae8f61;
    --fc-monarch-outline: var(--accent-ink);
    --fc-monarch-popover: #fff;
    --fc-monarch-background: #fff;
    --fc-monarch-faint: #2726240a;
    --fc-monarch-muted: #27262414;
    --fc-monarch-strong: #27262426;
    --fc-monarch-stronger: #27262433;
    --fc-monarch-strongest: #27262440;
    --fc-monarch-foreground: var(--ink);
    --fc-monarch-faint-foreground: #aaa399;
    --fc-monarch-muted-foreground: var(--muted);
    --fc-monarch-border: var(--line);
    --fc-monarch-strong-border: #bfb8ad;
}
.planning-calendar .fc { font-family: inherit; }
.planning-context-menu { position: fixed; z-index: 100; width: min(22rem, calc(100vw - 1rem)); max-height: min(26rem, calc(100dvh - 1rem)); overflow-y: auto; padding: .5rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 8px 30px #27262430; }
.planning-context-heading { padding: .4rem .6rem 0; margin-bottom: .25rem; font-weight: 650; }
.planning-context-current { padding: 0 .6rem .5rem; margin-bottom: .25rem; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.planning-context-menu button { display: flex; flex-direction: column; align-items: flex-start; width: 100%; min-height: 44px; padding: .6rem; border: 0; border-radius: 6px; background: #fff; color: var(--ink); text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.planning-context-menu button:hover, .planning-context-menu button:focus-visible { background: var(--surface); }
.planning-context-menu button[aria-checked="true"] { background: var(--accent-soft); font-weight: 600; }
.planning-context-separator { border-top: 1px solid var(--line); margin: .5rem 0; }
.planning-context-menu .planning-context-delete { color: var(--danger); }
.planning-weekdays { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.planning-weekdays label { margin: 0 .75rem 0 0; }
.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; }
@media (max-width: 1100px) {
    .sidebar { width: 215px; padding: 1.5rem 1rem; }
    .topbar { padding: 1rem 1.5rem; justify-content: flex-end; }
    .content { padding: 2rem 1.5rem; }
    .topbar-label { display: none; }
    .welcome-panel { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .login-layout { padding: 1.5rem 1rem; }
    .login-card { padding: 1.5rem; }
    .admin-layout { flex-direction: column; }
    .sidebar { width: 100%; padding: 1.25rem; }
    .sidebar .brand { margin-bottom: 1.5rem; }
    .sidebar .brand-logo { max-width: 150px; }
    .sidebar nav { display: flex; gap: .5rem; }
    .sidebar-group + .sidebar-group { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #ffffff20; }
    .sidebar-footer { display: none; }
    .planning-panel { padding: .75rem; }
    .planning-calendar .fc-header-toolbar { flex-wrap: wrap; gap: .75rem; }
    .topbar { min-height: 78px; padding: 1rem; }
    .account-nav { width: 100%; }
    .account-nav .logout-form { margin-left: auto; }
    .account-nav .avatar { display: none; }
    .content { padding: 1.75rem 1rem; }
    .page-heading { align-items: flex-start; flex-direction: column; }
    .stats-grid { gap: .6rem; }
    .stat-card { padding: 1rem; }
    .stat-card .small { display: none; }
    .stat-card strong { font-size: 2rem; }
    .welcome-panel, .form-panel, .details-panel { padding: 1.4rem; }
    .form-grid, .details-grid { grid-template-columns: 1fr; }
    .danger-panel { align-items: flex-start; flex-direction: column; padding: 1.5rem; }
    .admin-footer { padding: 1rem; }
    .table-footer { flex-wrap: wrap; }
    .account-card { padding: 1.5rem; }
    .invoice-item-fields { grid-template-columns: 1fr 1fr; }
    .invoice-item-fields .item-name { grid-column: 1 / -1; }
    .invoice-details { grid-template-columns: 1fr; }
    .invoice-lines-heading { flex-direction: column; align-items: flex-start; }
    .sidebar nav { flex-wrap: wrap; }
}
