:root {
    color-scheme: light;
    --font-sans: "Aptos", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
    --font-mono: "SFMono-Regular", Consolas, monospace;
    --canvas: #f4f5f7;
    --surface: #ffffff;
    --surface-soft: #f8f8fb;
    --surface-strong: #eceef3;
    --inverse: #18172a;
    --ink: #1c1b2b;
    --ink-soft: #515365;
    --muted: #6c6f82;
    --line: #dfe1e8;
    --line-strong: #c9ccd6;
    --primary: #5c42d6;
    --primary-hover: #4930bc;
    --primary-soft: #eeeafd;
    --primary-on: #ffffff;
    --accent: #087f8c;
    --accent-soft: #dff5f4;
    --coral: #c75842;
    --coral-soft: #fbe9e5;
    --success: #147a55;
    --success-soft: #e2f4eb;
    --warning: #94620c;
    --warning-soft: #fff3d6;
    --danger: #b52f49;
    --danger-soft: #fce8ec;
    --info: #3f43a4;
    --info-soft: #ececfa;
    --sidebar: 256px;
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgb(28 27 43 / 6%);
    --shadow-md: 0 14px 34px rgb(28 27 43 / 10%);
    --shadow-lg: 0 28px 72px rgb(15 13 35 / 20%);
    --focus: 0 0 0 3px rgb(92 66 214 / 22%);
    --ease: cubic-bezier(.2, .8, .2, 1);
}

html[data-theme="dark"] {
    color-scheme: dark;
    --canvas: #11111a;
    --surface: #1a1a26;
    --surface-soft: #222230;
    --surface-strong: #2d2e3d;
    --inverse: #0c0c13;
    --ink: #f3f2f8;
    --ink-soft: #c7c6d2;
    --muted: #aaa9b8;
    --line: #343544;
    --line-strong: #4a4b5c;
    --primary: #9a87ff;
    --primary-hover: #b09fff;
    --primary-soft: #2b264a;
    --primary-on: #151124;
    --accent: #5bc3ca;
    --accent-soft: #173a3e;
    --coral: #f18a72;
    --coral-soft: #482b29;
    --success: #63c99d;
    --success-soft: #18392e;
    --warning: #e5b65e;
    --warning-soft: #40331e;
    --danger: #ef7c91;
    --danger-soft: #48252e;
    --info: #a9aaf2;
    --info-soft: #29294c;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 20%);
    --shadow-md: 0 16px 38px rgb(0 0 0 / 28%);
    --shadow-lg: 0 28px 72px rgb(0 0 0 / 42%);
    --focus: 0 0 0 3px rgb(154 135 255 / 28%);
}

/*
 * Jasny motyw jest oparty na referencji design.jpg:
 * dużo białej przestrzeni, delikatne lawendowe linie i trzy akcenty danych.
 * Reguły są jawnie ograniczone do data-theme="light", aby nie zmieniać
 * istniejącego wyglądu wersji ciemnej.
 */
html[data-theme="light"] {
    color-scheme: light;
    --canvas: #ffffff;
    --surface: #ffffff;
    --surface-soft: #fafaff;
    --surface-strong: #f0eff8;
    --inverse: #5442a5;
    --ink: #171725;
    --ink-soft: #4f5274;
    --muted: #6d708f;
    --line: #ececf5;
    --line-strong: #dfe0ee;
    --primary: #5744b7;
    --primary-hover: #49379f;
    --primary-soft: #f1effc;
    --primary-on: #ffffff;
    --accent: #62d8e3;
    --accent-soft: #e4fafc;
    --coral: #f57d62;
    --coral-soft: #fff0ec;
    --success: #16866a;
    --success-soft: #e7f7f0;
    --warning: #a16b16;
    --warning-soft: #fff7e7;
    --danger: #bd4057;
    --danger-soft: #fff0f2;
    --info: #526fb4;
    --info-soft: #f0f4ff;
    --shadow-sm: 0 1px 2px rgb(71 61 132 / 3%);
    --shadow-md: 0 16px 38px rgb(71 61 132 / 12%);
    --shadow-lg: 0 28px 70px rgb(48 39 104 / 18%);
    --focus: 0 0 0 3px rgb(87 68 183 / 18%);
}

html[data-theme="light"] body {
    background: #ffffff;
}

html[data-theme="light"] .sidebar {
    border-right-color: #ececf5;
    background: #ffffff;
    color: #627ebd;
}

html[data-theme="light"] .brand {
    color: #85839f;
}

html[data-theme="light"] .brand-mark {
    border-color: #6552c8;
    background: #5d49c5;
    color: #ffffff;
    box-shadow: 0 10px 24px rgb(82 63 177 / 18%);
}

html[data-theme="light"] .brand b {
    color: #5d49c5;
}

html[data-theme="light"] .main-nav {
    padding-top: 24px;
}

html[data-theme="light"] .nav-link {
    border-color: transparent;
    background: transparent;
    color: #526b9f;
    font-weight: 600;
}

html[data-theme="light"] .nav-link:hover {
    border-color: transparent;
    background: #f7f6fd;
    color: #5744b7;
}

html[data-theme="light"] .nav-link.active {
    border-color: transparent;
    background: #f3f1fc;
    color: #5744b7;
}

html[data-theme="light"] .nav-link.active::before {
    background: #5744b7;
}

html[data-theme="light"] .sidebar-foot {
    border-top-color: #ececf5;
}

html[data-theme="light"] .delivery-health {
    border-color: #ececf5;
    background: #fafaff;
}

html[data-theme="light"] .delivery-health strong {
    color: #353653;
}

html[data-theme="light"] .delivery-health small {
    color: #707492;
}

html[data-theme="light"] .logout {
    color: #7d8fb7;
}

html[data-theme="light"] .topbar {
    min-height: 104px;
    border-bottom-color: transparent;
    background: rgb(255 255 255 / 96%);
    backdrop-filter: blur(12px);
}

html[data-theme="light"] .topbar h1 {
    color: #171725;
    font-weight: 680;
}

html[data-theme="light"] .eyebrow {
    color: #6f7290;
}

html[data-theme="light"] .quick-action {
    color: #5744b7;
}

html[data-theme="light"] .quick-action span {
    background: #5744b7;
}

html[data-theme="light"] .user-badge > span {
    background: #fff0ec;
    color: #e96f54;
}

html[data-theme="light"] .page-content {
    background: #ffffff;
}

html[data-theme="light"] .page-heading h2 {
    color: #171725;
    font-weight: 700;
}

html[data-theme="light"] .page-heading p {
    color: #6d708f;
}

html[data-theme="light"] .btn {
    box-shadow: none;
}

html[data-theme="light"] .btn-primary {
    border-color: #5744b7;
    background: #5744b7;
    color: #ffffff;
    box-shadow: 0 9px 20px rgb(87 68 183 / 14%);
}

html[data-theme="light"] .btn-primary:hover {
    border-color: #49379f;
    background: #49379f;
}

html[data-theme="light"] .btn-secondary {
    border-color: #e2e3ef;
    background: #ffffff;
    color: #616584;
}

html[data-theme="light"] .btn-ghost {
    background: #f1effc;
    color: #5744b7;
}

html[data-theme="light"] .metrics {
    gap: 20px;
}

html[data-theme="light"] .metric {
    min-height: 138px;
    border-color: #ececf5;
    border-radius: 7px;
    background: #ffffff;
    box-shadow: 0 7px 24px rgb(74 64 132 / 5%);
}

html[data-theme="light"] .metric::after {
    display: none;
}

html[data-theme="light"] .metric.featured {
    isolation: isolate;
    overflow: hidden;
    border-color: #5744b7;
    border-radius: 28px;
    background: #5744a6;
    color: #ffffff;
    box-shadow: 0 18px 36px rgb(75 57 151 / 24%);
}

html[data-theme="light"] .metric.featured::before {
    position: absolute;
    right: -62px;
    bottom: -112px;
    z-index: -1;
    width: 210px;
    height: 210px;
    border: 2px solid #67e2ec;
    border-radius: 50%;
    box-shadow: 0 0 0 44px transparent, 0 0 0 46px #67e2ec;
    content: "";
    opacity: .9;
}

html[data-theme="light"] .metric-icon {
    border-radius: 50%;
    background: #f0edfc;
    color: #5744b7;
}

html[data-theme="light"] .metric.featured .metric-icon {
    background: rgb(255 255 255 / 12%);
}

html[data-theme="light"] .metric-icon.cyan {
    background: #ddf9fb;
    color: #23b9c6;
}

html[data-theme="light"] .metric-icon.coral {
    background: #fff0ec;
    color: #f57d62;
}

html[data-theme="light"] .metric-copy strong {
    color: #171725;
    font-weight: 680;
}

html[data-theme="light"] .metric.featured .metric-copy strong,
html[data-theme="light"] .metric.featured .metric-copy span {
    color: #ffffff;
}

html[data-theme="light"] .metric-copy small {
    color: #6f7392;
}

html[data-theme="light"] .metric.featured small {
    color: #d8d4ef;
}

html[data-theme="light"] .panel {
    border-color: #ececf5;
    border-radius: 7px;
    background: #ffffff;
    box-shadow: 0 5px 22px rgb(74 64 132 / 4%);
}

html[data-theme="light"] .panel-header {
    border-bottom-color: #eeeef6;
}

html[data-theme="light"] .panel-header h3 {
    color: #242438;
    font-weight: 680;
}

html[data-theme="light"] .panel-header p {
    color: #707492;
}

html[data-theme="light"] .data-table th {
    border-right: 1px solid #eeeef6;
    background: #ffffff;
    color: #6475a6;
}

html[data-theme="light"] .data-table td {
    border-right: 1px solid #f0f0f7;
    border-bottom-color: #eeeef6;
    color: #4d5275;
}

html[data-theme="light"] .data-table th:last-child,
html[data-theme="light"] .data-table td:last-child {
    border-right: 0;
}

html[data-theme="light"] .data-table tbody tr:hover {
    background: #fbfaff;
}

html[data-theme="light"] .primary-cell {
    color: #343858;
}

html[data-theme="light"] .secondary-line {
    color: #707492;
}

html[data-theme="light"] .field,
html[data-theme="light"] .search-box input,
html[data-theme="light"] .toolbar select,
html[data-theme="light"] .filter-form select {
    border-color: #e1e2ee;
    background: #ffffff;
    color: #34364e;
}

html[data-theme="light"] .field:focus,
html[data-theme="light"] .search-box input:focus,
html[data-theme="light"] .toolbar select:focus,
html[data-theme="light"] .filter-form select:focus {
    border-color: #6d5ac2;
}

html[data-theme="light"] .progress-track {
    background: #efeff7;
}

html[data-theme="light"] .progress-value {
    background: #5744b7;
}

html[data-theme="light"] .mini-bar {
    background: #5744a6;
}

html[data-theme="light"] .mini-bar:nth-child(2n) {
    background: #65d9e3;
}

html[data-theme="light"] .mini-bar:nth-child(3n) {
    background: #f57f64;
}

html[data-theme="light"] .auth-panel {
    background: #ffffff;
}

html[data-theme="light"] .auth-art {
    background: #5744a6;
}

html[data-theme="light"] .sidebar-close {
    color: #6979a8;
}

html[data-theme="light"] .sidebar-close:hover {
    background: #f3f1fc;
    color: #5744b7;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    overflow-x: hidden;
    background: var(--canvas);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
select,
input[type="checkbox"] {
    cursor: pointer;
}

button,
a {
    touch-action: manipulation;
}

a {
    color: inherit;
    text-decoration: none;
}

svg {
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

code {
    font-family: var(--font-mono);
}

::selection {
    background: var(--primary-soft);
}

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1000;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    font-weight: 700;
    transform: translateY(-160%);
    transition: transform 180ms var(--ease);
}

.skip-link:focus {
    transform: translateY(0);
}

.app-shell {
    min-height: 100dvh;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    display: flex;
    width: var(--sidebar);
    flex-direction: column;
    overflow-y: auto;
    border-right: 1px solid rgb(255 255 255 / 8%);
    background: var(--inverse);
    color: #f8f7ff;
    transition: transform 220ms var(--ease);
}

.brand {
    display: flex;
    min-height: 104px;
    align-items: center;
    gap: 12px;
    padding: 24px;
    color: #ffffff;
    font-size: 1rem;
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgb(255 255 255 / 16%);
    border-radius: 11px 4px 11px 4px;
    background: var(--primary);
    color: var(--primary-on);
    font-weight: 800;
    box-shadow: 0 8px 24px rgb(0 0 0 / 22%);
}

.brand b {
    color: #a997ff;
}

.main-nav {
    display: grid;
    gap: 5px;
    padding: 16px 12px 24px;
}

.nav-link {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 44px;
    align-items: center;
    gap: 12px;
    padding: 10px 13px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    background: transparent;
    color: #bbb9ca;
    font-size: .875rem;
    font-weight: 650;
    text-align: left;
    transition: 160ms var(--ease);
}

.nav-link svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

.nav-link:hover {
    border-color: rgb(255 255 255 / 8%);
    background: rgb(255 255 255 / 6%);
    color: #ffffff;
}

.nav-link:active {
    transform: scale(.985);
}

.nav-link.active {
    border-color: rgb(154 135 255 / 24%);
    background: rgb(154 135 255 / 15%);
    color: #ffffff;
}

.nav-link.active::before {
    position: absolute;
    top: 11px;
    bottom: 11px;
    left: -1px;
    width: 3px;
    border-radius: 0 4px 4px 0;
    background: #a997ff;
    content: "";
}

.sidebar-foot {
    margin-top: auto;
    padding: 16px 12px max(16px, env(safe-area-inset-bottom));
    border-top: 1px solid rgb(255 255 255 / 8%);
}

.delivery-health {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    padding: 10px 13px;
    border: 1px solid rgb(255 255 255 / 8%);
    border-radius: var(--radius);
    background: rgb(255 255 255 / 4%);
}

.delivery-health div {
    display: grid;
}

.delivery-health strong {
    font-size: .75rem;
}

.delivery-health small {
    color: #aaa8bb;
    font-size: .6875rem;
}

.health-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #65d6aa;
    box-shadow: 0 0 0 4px rgb(101 214 170 / 14%);
}

.sidebar-close,
.sidebar-backdrop {
    display: none;
}

.content-shell {
    display: flex;
    min-height: 100dvh;
    flex-direction: column;
    padding-left: var(--sidebar);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    min-height: 88px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px clamp(24px, 4vw, 56px);
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: blur(14px);
}

.topbar h1 {
    margin: 1px 0 0;
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 750;
    letter-spacing: -.035em;
    line-height: 1.2;
}

.eyebrow {
    margin: 0;
    color: var(--muted);
    font-size: .6875rem;
    font-weight: 750;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.top-actions,
.user-badge,
.quick-action {
    display: flex;
    align-items: center;
}

.top-actions {
    gap: 16px;
}

.quick-action {
    min-height: 44px;
    gap: 8px;
    color: var(--primary);
    font-size: .8125rem;
    font-weight: 750;
}

.quick-action span {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: var(--primary-on);
    font-size: 1.125rem;
    transition: transform 160ms var(--ease);
}

.quick-action:hover span {
    transform: rotate(90deg);
}

.user-badge {
    min-height: 48px;
    gap: 10px;
    padding: 4px 6px 4px 4px;
    border-radius: var(--radius);
}

.user-badge:hover {
    background: var(--surface-soft);
}

.user-badge > span {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    background: var(--coral-soft);
    color: var(--coral);
    font-size: .8125rem;
    font-weight: 800;
}

.user-badge div {
    display: grid;
}

.user-badge strong {
    font-size: .75rem;
}

.user-badge small {
    color: var(--muted);
    font-size: .6875rem;
}

.mobile-menu {
    display: none;
}

.sidebar-close.icon-button {
    display: none;
}

.page-content {
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
    padding: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 56px) 64px;
    flex: 1;
}

.footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 20px clamp(24px, 4vw, 56px);
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .75rem;
}

.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.page-heading h2 {
    margin: 0 0 6px;
    font-size: clamp(1.625rem, 3vw, 2.125rem);
    font-weight: 780;
    letter-spacing: -.05em;
    line-height: 1.12;
}

.page-heading p {
    max-width: 68ch;
    margin: 0;
    color: var(--muted);
    font-size: .875rem;
}

.heading-actions,
.form-actions,
.actions-cell,
.bulk-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 15px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--ink);
    font-size: .8125rem;
    font-weight: 720;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
    transition: 150ms var(--ease);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: scale(.985);
}

.btn:disabled,
.btn[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: .45;
    transform: none;
}

.btn-primary {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--primary-on);
    box-shadow: 0 8px 20px rgb(92 66 214 / 18%);
}

.btn-primary:hover {
    border-color: var(--primary-hover);
    background: var(--primary-hover);
}

.btn-secondary {
    border-color: var(--line-strong);
    color: var(--ink-soft);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-danger {
    border-color: color-mix(in srgb, var(--danger) 34%, var(--line));
    background: var(--danger-soft);
    color: var(--danger);
}

.btn-danger:hover {
    border-color: var(--danger);
    background: var(--danger);
    color: var(--primary-on);
}

.btn-ghost {
    background: var(--primary-soft);
    color: var(--primary);
    box-shadow: none;
}

.btn-sm {
    min-height: 36px;
    padding: 7px 11px;
    font-size: .75rem;
}

.icon-button {
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: var(--radius);
    background: transparent;
    color: inherit;
}

.icon-button:hover {
    background: var(--surface-soft);
}

.icon-button svg {
    width: 22px;
    height: 22px;
}

.metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.metric {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 142px;
    align-items: center;
    gap: 16px;
    overflow: hidden;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.metric::after {
    position: absolute;
    inset: auto 0 0;
    height: 3px;
    background: var(--line-strong);
    content: "";
}

.metric.featured {
    border-color: var(--inverse);
    background: var(--inverse);
    color: #ffffff;
    box-shadow: var(--shadow-md);
}

.metric.featured::after {
    background: var(--accent);
}

.metric-icon {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 14px 5px 14px 5px;
    background: var(--primary-soft);
    color: var(--primary);
}

.metric.featured .metric-icon {
    background: rgb(255 255 255 / 10%);
    color: #ffffff;
}

.metric-icon.cyan {
    background: var(--accent-soft);
    color: var(--accent);
}

.metric-icon.coral {
    background: var(--coral-soft);
    color: var(--coral);
}

.metric-icon svg {
    width: 23px;
    height: 23px;
}

.metric-copy {
    display: grid;
    min-width: 0;
}

.metric-copy strong {
    font-variant-numeric: tabular-nums;
    font-size: clamp(1.625rem, 3vw, 2rem);
    font-weight: 780;
    letter-spacing: -.055em;
    line-height: 1;
}

.metric-copy span {
    margin-top: 8px;
    font-size: .8125rem;
    font-weight: 720;
}

.metric-copy small {
    margin-top: 2px;
    color: var(--muted);
    font-size: .6875rem;
}

.metric.featured small {
    color: #bdbacd;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(300px, .8fr);
    gap: 20px;
}

.stack {
    display: grid;
    align-content: start;
    gap: 20px;
}

.panel {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.panel-header {
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--line);
}

.panel-header h3 {
    margin: 0;
    font-size: .9375rem;
    font-weight: 750;
}

.panel-header p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: .75rem;
}

.panel-body {
    padding: 22px;
}

.panel-empty {
    padding: 52px 24px;
    color: var(--muted);
    font-size: .875rem;
    text-align: center;
}

.panel-empty strong {
    display: block;
    margin-bottom: 5px;
    color: var(--ink);
    font-size: .9375rem;
}

.panel-link {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    color: var(--primary);
    font-size: .75rem;
    font-weight: 720;
}

.split-panels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.data-table-wrap {
    max-width: 100%;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--line-strong) transparent;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}

.data-table th,
.data-table td {
    padding: 15px 18px;
    border-bottom: 1px solid var(--line);
    font-size: .8125rem;
    text-align: left;
    vertical-align: middle;
}

.data-table th {
    background: var(--surface-soft);
    color: var(--muted);
    font-size: .6875rem;
    font-weight: 780;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.data-table tbody tr {
    transition: background-color 140ms var(--ease);
}

.data-table tbody tr:hover {
    background: var(--surface-soft);
}

.data-table tbody tr:last-child td {
    border-bottom: 0;
}

.data-table td:not(.primary-cell):not(.actions-cell) {
    font-variant-numeric: tabular-nums;
}

.primary-cell {
    font-weight: 690;
}

.primary-cell a:hover {
    color: var(--primary);
}

.secondary-line {
    display: block;
    max-width: 340px;
    overflow: hidden;
    margin-top: 3px;
    color: var(--muted);
    font-size: .6875rem;
    font-weight: 480;
    text-overflow: ellipsis;
}

.checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.badge {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    gap: 7px;
    padding: 4px 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-strong);
    color: var(--ink-soft);
    font-size: .6875rem;
    font-weight: 750;
}

.badge::before {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    content: "";
}

.badge.active,
.badge.completed,
.badge.sent {
    background: var(--success-soft);
    color: var(--success);
}

.badge.unsubscribed,
.badge.paused {
    background: var(--warning-soft);
    color: var(--warning);
}

.badge.bounced,
.badge.failed,
.badge.error,
.badge.security {
    background: var(--danger-soft);
    color: var(--danger);
}

.badge.blocked,
.badge.cancelled {
    background: var(--surface-strong);
    color: var(--muted);
}

.badge.sending,
.badge.scheduled,
.badge.queued,
.badge.info {
    background: var(--primary-soft);
    color: var(--primary);
}

.badge.log-info {
    border-color: color-mix(in srgb, var(--success) 24%, var(--line));
    background: var(--success-soft);
    color: var(--success);
}

.badge.log-warning {
    border-color: color-mix(in srgb, var(--coral) 28%, var(--line));
    background: var(--coral-soft);
    color: var(--coral);
}

.badge.log-error {
    border-color: color-mix(in srgb, var(--danger) 30%, var(--line));
    background: var(--danger-soft);
    color: var(--danger);
}

.badge.log-security {
    border-color: color-mix(in srgb, var(--primary) 26%, var(--line));
    background: var(--primary-soft);
    color: var(--primary);
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .75rem;
}

.toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.filter-form {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
    flex: 1;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    min-width: min(100%, 280px);
    flex: 1;
}

.field,
.search-box input,
.toolbar select,
.filter-form select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    outline: 0;
    background: var(--surface);
    color: var(--ink);
    transition: 150ms var(--ease);
}

.toolbar select,
.filter-form select {
    width: auto;
    min-width: 160px;
}

.field:hover,
.search-box input:hover,
.toolbar select:hover,
.filter-form select:hover {
    border-color: var(--muted);
}

.field:focus,
.search-box input:focus,
.toolbar select:focus,
.filter-form select:focus {
    border-color: var(--primary);
    box-shadow: var(--focus);
}

.field:disabled,
.field[readonly],
select:disabled,
textarea:disabled {
    cursor: not-allowed;
    background: var(--surface-soft);
    color: var(--muted);
    opacity: .82;
}

input::placeholder,
textarea::placeholder {
    color: var(--muted);
    opacity: .78;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.form-group {
    display: grid;
    align-content: start;
    gap: 7px;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-group label {
    color: var(--ink-soft);
    font-size: .75rem;
    font-weight: 720;
}

.form-group small {
    color: var(--muted);
    font-size: .6875rem;
}

.form-group .field-error {
    color: var(--danger);
    font-weight: 700;
}

.field[aria-invalid="true"] {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px var(--danger-soft);
}

textarea.field {
    min-height: 118px;
    resize: vertical;
}

.form-actions {
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.check-row {
    display: flex;
    min-height: 44px;
    align-items: center;
    gap: 10px;
    color: var(--ink-soft);
    font-size: .8125rem;
    cursor: pointer;
}

.list-checks {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.list-checks label {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
    transition: 150ms var(--ease);
}

.list-checks label:hover {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.alert {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding: 12px 15px;
    border: 1px solid;
    border-radius: var(--radius-sm);
    font-size: .8125rem;
}

.alert button {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: currentColor;
    font-size: 1.25rem;
}

.alert.success {
    border-color: var(--success);
    background: var(--success-soft);
    color: var(--success);
}

.alert.error {
    border-color: var(--danger);
    background: var(--danger-soft);
    color: var(--danger);
}

.alert.info {
    border-color: var(--info);
    background: var(--info-soft);
    color: var(--info);
}

.alert.warning {
    border-color: var(--warning);
    background: var(--warning-soft);
    color: var(--warning);
}

.template-editor-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.template-editor-intro small {
    flex: 1;
}

.editor-mode-switch {
    display: flex;
    justify-content: flex-end;
}

.rich-editor {
    min-height: 180px;
    padding: 22px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    outline: 0;
    background: var(--surface);
    line-height: 1.65;
}

.rich-editor:focus {
    border-color: var(--primary);
    box-shadow: var(--focus);
}

.code-editor {
    min-height: 300px;
    font-family: var(--font-mono);
    font-size: .8125rem;
}

.editor-code {
    border-radius: var(--radius-sm);
}

.editor-code[hidden],
.rich-editor[hidden] {
    display: none;
}

.template-html-sections {
    display: grid;
    gap: 14px;
}

.template-html-section {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-soft);
    transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}

.template-html-section.active {
    border-color: var(--primary);
    box-shadow: var(--focus);
}

.template-html-section-heading {
    display: grid;
    gap: 3px;
}

.template-html-section-heading strong {
    color: var(--ink);
    font-size: .8125rem;
}

.template-html-section-heading small {
    color: var(--muted);
}

.template-html-section .code-editor {
    min-height: 180px;
}

.template-html-section:nth-child(2) .rich-editor,
.template-html-section:nth-child(2) .code-editor {
    min-height: 300px;
}

.template-preview-dialog {
    width: min(calc(100% - 32px), 960px);
    height: min(84dvh, 820px);
    max-width: none;
    max-height: none;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    background: var(--surface);
    color: var(--ink);
    box-shadow: var(--shadow-lg);
}

.template-preview-dialog::backdrop {
    background: rgb(12 12 19 / 64%);
    backdrop-filter: blur(3px);
}

.template-preview-shell {
    display: flex;
    height: 100%;
    min-height: 0;
    flex-direction: column;
}

.template-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--surface-soft);
}

.template-preview-header h3,
.template-preview-header p {
    margin: 0;
}

.template-preview-header p {
    margin-top: 3px;
    color: var(--muted);
    font-size: .75rem;
}

.template-preview-frame {
    width: 100%;
    min-height: 0;
    flex: 1;
    border: 0;
    background: #ffffff;
}

body.modal-open {
    overflow: hidden;
}

.confirm-dialog {
    width: min(calc(100% - 32px), 480px);
    max-width: none;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    background: var(--surface);
    color: var(--ink);
    box-shadow: var(--shadow-lg);
}

.confirm-dialog::backdrop {
    background: rgb(12 12 19 / 64%);
    backdrop-filter: blur(3px);
}

.confirm-dialog-card {
    display: grid;
    gap: 24px;
    padding: 24px;
}

.confirm-dialog-copy {
    display: grid;
    gap: 8px;
}

.confirm-dialog-label {
    color: var(--primary);
    font-size: .6875rem;
    font-weight: 780;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.confirm-dialog.is-destructive .confirm-dialog-label {
    color: var(--danger);
}

.confirm-dialog h2,
.confirm-dialog p {
    margin: 0;
}

.confirm-dialog h2 {
    font-size: 1.35rem;
    letter-spacing: -.025em;
}

.confirm-dialog p {
    color: var(--ink-soft);
    line-height: 1.6;
}

.confirm-dialog .confirm-dialog-note {
    color: var(--danger);
    font-size: .8125rem;
    font-weight: 650;
}

.confirm-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.confirm-dialog-actions .btn {
    min-height: 44px;
}

.variable-chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.variable-chip {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding: 5px 8px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: var(--primary-soft);
    color: var(--primary);
    cursor: pointer;
    transition: border-color 150ms var(--ease), background-color 150ms var(--ease), color 150ms var(--ease), transform 150ms var(--ease);
}

.variable-chip code {
    padding: 0;
    background: transparent;
    color: inherit;
    font-size: .75rem;
}

.variable-chip:hover,
.variable-chip:focus-visible {
    border-color: var(--primary);
    outline: 0;
}

.variable-chip:focus-visible {
    box-shadow: var(--focus);
}

.variable-chip.copied {
    border-color: var(--success);
    background: var(--success-soft);
    color: var(--success);
}

.variable-chip:active {
    transform: scale(.98);
}

.progress-track {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--surface-strong);
}

.progress-value {
    height: 100%;
    min-width: 2px;
    border-radius: inherit;
    background: var(--primary);
    transition: width 260ms var(--ease);
}

.status-summary {
    display: grid;
    gap: 18px;
}

.status-line {
    display: grid;
    grid-template-columns: 92px minmax(80px, 1fr) 46px;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: .75rem;
}

.status-line strong {
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.mini-bars {
    display: flex;
    height: 180px;
    align-items: flex-end;
    gap: clamp(5px, 1.2vw, 12px);
    padding: 16px 4px 0;
    border-bottom: 1px solid var(--line);
}

.mini-bar {
    min-height: 4px;
    flex: 1;
    border-radius: 3px 3px 0 0;
    background: var(--primary);
    transform-origin: bottom;
    transition: 150ms var(--ease);
}

.mini-bar:nth-child(2n) {
    background: var(--accent);
}

.mini-bar:hover {
    opacity: .78;
    transform: scaleY(1.03);
}

.auth-page {
    display: grid;
    min-height: 100dvh;
    grid-template-columns: minmax(420px, 560px) 1fr;
    background: var(--surface);
}

.auth-panel {
    display: flex;
    width: 100%;
    max-width: 680px;
    flex-direction: column;
    justify-content: center;
    padding: clamp(36px, 7vw, 80px);
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: clamp(48px, 9vh, 84px);
    font-size: 1.0625rem;
    font-weight: 700;
}

.auth-panel h1 {
    max-width: 16ch;
    margin: 0 0 10px;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 780;
    letter-spacing: -.06em;
    line-height: 1.05;
}

.auth-panel > p,
.key-generator > p {
    max-width: 58ch;
    margin: 0 0 30px;
    color: var(--muted);
    font-size: .875rem;
}

.auth-form {
    display: grid;
    gap: 18px;
}

.auth-form .btn {
    min-height: 48px;
}

.auth-art {
    position: relative;
    display: flex;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    padding: clamp(48px, 8vw, 112px);
    background: var(--inverse);
    color: #ffffff;
}

.auth-art::before,
.auth-art::after {
    position: absolute;
    border: 1px solid rgb(255 255 255 / 12%);
    content: "";
    transform: rotate(18deg);
}

.auth-art::before {
    right: -12%;
    bottom: -22%;
    width: min(48vw, 680px);
    height: min(48vw, 680px);
    border-radius: 50%;
}

.auth-art::after {
    top: 13%;
    left: 9%;
    width: 100px;
    height: 100px;
    border-color: var(--accent);
    border-radius: 26px 8px 26px 8px;
}

.auth-message {
    position: relative;
    z-index: 1;
    max-width: 560px;
}

.auth-message span {
    color: #aaa8ba;
    font-size: .6875rem;
    font-weight: 750;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.auth-message h2 {
    max-width: 12ch;
    margin: 18px 0;
    font-size: clamp(2.5rem, 6vw, 4.75rem);
    font-weight: 760;
    letter-spacing: -.07em;
    line-height: .98;
}

.auth-message p {
    max-width: 48ch;
    color: #bbb9c9;
    font-size: .9375rem;
}

.setup-note {
    margin-top: 16px;
    padding: 12px 14px;
    border-left: 3px solid var(--accent);
    background: var(--surface-soft);
    color: var(--muted);
    font-size: .75rem;
}

.empty-state {
    padding: clamp(48px, 8vw, 88px) 24px;
    text-align: center;
}

.empty-icon {
    display: grid;
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    place-items: center;
    border-radius: 18px 6px 18px 6px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 1.375rem;
}

.empty-state h2 {
    margin: 0 0 8px;
}

.empty-state p {
    margin: 0 0 22px;
    color: var(--muted);
}

.danger-zone {
    border-color: var(--danger);
}

.danger-zone .panel-header {
    color: var(--danger);
}

.profile-theme-panel {
    margin-bottom: 20px;
}

.theme-fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}

.theme-fieldset legend {
    margin-bottom: 10px;
    color: var(--ink-soft);
    font-size: .75rem;
    font-weight: 720;
}

.theme-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.theme-option {
    position: relative;
    display: grid;
    min-height: 148px;
    grid-template-columns: 104px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-soft);
    cursor: pointer;
    transition: border-color 150ms var(--ease), background-color 150ms var(--ease), box-shadow 150ms var(--ease);
}

.theme-option:hover {
    border-color: var(--primary);
}

.theme-option:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-soft);
    box-shadow: var(--focus);
}

.theme-option > input {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 19px;
    height: 19px;
    accent-color: var(--primary);
}

.theme-preview {
    display: grid;
    width: 104px;
    height: 82px;
    grid-template-columns: 24px 1fr;
    grid-template-rows: repeat(3, 1fr);
    gap: 7px;
    padding: 10px;
    border: 1px solid;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.theme-preview::before {
    grid-row: 1 / 4;
    border-radius: 3px;
    content: "";
}

.theme-preview i {
    display: block;
    border-radius: 2px;
}

.theme-preview-light {
    border-color: #d9dbe3;
    background: #ffffff;
}

.theme-preview-light::before {
    background: #1a192b;
}

.theme-preview-light i {
    background: #e9e8f2;
}

.theme-preview-light i:first-of-type {
    background: #6650dd;
}

.theme-preview-dark {
    border-color: #4a4a5d;
    background: #1a1a26;
}

.theme-preview-dark::before {
    background: #0c0c13;
}

.theme-preview-dark i {
    background: #343544;
}

.theme-preview-dark i:first-of-type {
    background: #9a87ff;
}

.theme-option-copy {
    display: grid;
    gap: 3px;
    padding-right: 24px;
}

.theme-option-copy strong {
    font-size: .875rem;
}

.theme-option-copy small {
    color: var(--muted);
    font-size: .75rem;
}

.permission-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.permission-item {
    display: grid;
    min-height: 62px;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 2px 10px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
    cursor: pointer;
}

.permission-item:hover {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.permission-item input {
    grid-row: 1 / 3;
}

.permission-item span {
    font-size: .75rem;
    font-weight: 680;
}

.permission-item code {
    color: var(--muted);
    font-size: .625rem;
}

.key-generator {
    width: 100%;
    max-width: 720px;
}

.key-list {
    display: grid;
    gap: 14px;
    margin: 24px 0;
}

.key-card {
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-soft);
}

.key-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.key-card-header strong,
.key-card-header small {
    display: block;
}

.key-card-header small {
    margin-top: 3px;
    color: var(--muted);
    font-size: .6875rem;
}

.key-value {
    min-height: 48px;
    font-family: var(--font-mono);
    font-size: .75rem;
}

.setup-steps {
    margin: 0;
    padding-left: 22px;
    color: var(--muted);
    font-size: .8125rem;
}

.setup-steps li + li {
    margin-top: 7px;
}

@media (max-width: 1180px) {
    .metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    :root {
        --sidebar: 248px;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 220ms var(--ease);
    }

    .sidebar.open {
        box-shadow: var(--shadow-lg);
        transform: translateX(0);
    }

    .sidebar-close.icon-button {
        position: absolute;
        top: 31px;
        right: 8px;
        z-index: 1;
        display: grid;
        width: 44px;
        height: 44px;
        place-items: center;
        color: #cbc9da;
    }

    .sidebar-close svg {
        width: 21px;
        height: 21px;
    }

    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 30;
        display: block;
        border: 0;
        background: rgb(13 12 25 / 58%);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: 180ms var(--ease);
    }

    .sidebar.open + .sidebar-backdrop {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .menu-open {
        overflow: hidden;
    }

    .content-shell {
        padding-left: 0;
    }

    .mobile-menu {
        display: grid;
        flex: 0 0 auto;
    }

    .topbar .eyebrow,
    .user-badge div,
    .quick-action {
        display: none;
    }

    .split-panels {
        grid-template-columns: 1fr;
    }

    .auth-page {
        grid-template-columns: 1fr;
    }

    .auth-panel {
        max-width: 640px;
        margin: 0 auto;
    }

    .auth-art {
        display: none;
    }
}

@media (max-width: 767px) {
    html[data-theme="light"] .topbar {
        min-height: 76px;
    }

    html[data-theme="light"] .metric {
        min-height: 132px;
    }

    .topbar {
        min-height: 76px;
        gap: 12px;
        padding: 12px 16px;
    }

    .topbar h1 {
        font-size: 1.125rem;
    }

    .page-content {
        padding: 26px 16px 48px;
    }

    .page-heading {
        align-items: stretch;
        flex-direction: column;
        gap: 18px;
        margin-bottom: 22px;
    }

    .heading-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .metrics {
        gap: 10px;
    }

    .metric {
        min-height: 132px;
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        padding: 17px;
    }

    .metric-icon {
        width: 40px;
        height: 40px;
    }

    .panel-header,
    .panel-body {
        padding: 17px;
    }

    .panel-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .form-grid,
    .permission-grid,
    .theme-options,
    .list-checks {
        grid-template-columns: 1fr;
    }

    .form-group.full {
        grid-column: auto;
    }

    .filter-form,
    .bulk-form {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }

    .filter-form select,
    .toolbar select,
    .bulk-form .field,
    .search-box {
        width: 100%;
        min-width: 100%;
    }

    .form-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .form-actions .btn {
        width: 100%;
    }

    .pagination {
        align-items: flex-start;
        flex-direction: column;
    }

    .auth-panel {
        padding: 32px 22px max(32px, env(safe-area-inset-bottom));
    }

    .auth-logo {
        margin-bottom: 48px;
    }

    .key-card-header {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    html[data-theme="light"] .metric {
        min-height: 112px;
    }

    .metrics,
    .heading-actions {
        grid-template-columns: 1fr;
    }

    .metric {
        min-height: 112px;
        align-items: center;
        flex-direction: row;
    }

    .heading-actions .btn {
        width: 100%;
    }

    .template-editor-intro,
    .template-preview-header {
        align-items: stretch;
        flex-direction: column;
    }

    .template-editor-intro .btn,
    .template-preview-header .btn {
        width: 100%;
    }

    .template-preview-dialog {
        width: calc(100% - 16px);
        height: 92dvh;
    }

    .footer span:last-child {
        display: none;
    }
}

@media (pointer: coarse) {
    .btn,
    .btn-sm,
    .panel-link {
        min-height: 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media print {
    .sidebar,
    .topbar,
    .footer,
    .heading-actions,
    .toolbar,
    .form-actions {
        display: none !important;
    }

    .content-shell {
        padding-left: 0;
    }

    .page-content {
        max-width: none;
        padding: 0;
    }
}
