:root {
    --ink: #111a3f;
    --muted: #687195;
    --line: #dfe7f5;
    --bg: #f4f8fd;
    --panel: #ffffff;
    --primary: #23bde8;
    --primary-dark: #101b7a;
    --primary-soft: #e8f9ff;
    --indigo: #14147e;
    --indigo-soft: #eceeff;
    --green: #0d9f75;
    --green-soft: #ddf9ee;
    --amber: #c57a11;
    --amber-soft: #fff3db;
    --red: #c0362c;
    --red-soft: #fff0ef;
    --violet: #201990;
    --violet-soft: #eeefff;
    --sidebar: #080c32;
    --sidebar-soft: #11185c;
    --shadow: 0 18px 45px rgba(26, 38, 70, .12);
    --soft-shadow: 0 10px 28px rgba(15, 23, 83, .08);
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: "Open Sans", Segoe UI, Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    font-weight: 300;
}
a { color: var(--primary); text-decoration: none; }
small { display: block; color: var(--muted); margin-top: 3px; }

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 250px;
    min-height: 100vh;
    background: var(--sidebar);
    color: white;
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 22px;
    overflow-y: auto;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    margin-bottom: 28px;
}
.logo-brand {
    margin-bottom: 30px;
    min-height: 52px;
    width: 100%;
    background: #ffffff;
    border: 1px solid rgba(35, 189, 232, .24);
    border-radius: 8px;
    padding: 10px 12px;
    box-shadow: 0 12px 26px rgba(0, 0, 0, .16);
}
.logo-brand img {
    display: block;
    width: min(176px, 100%);
    height: auto;
}
.brand span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: var(--primary);
    color: #07111f;
    font-weight: 900;
}
.brand.large { color: var(--ink); font-size: 20px; }
.brand.large.logo-brand {
    margin-bottom: 0;
    min-height: auto;
    width: fit-content;
    box-shadow: none;
}
.brand.large.logo-brand img {
    width: 210px;
}
.login-panel .brand.large.logo-brand {
    padding: 0;
    border: 0;
    background: transparent;
}
.login-panel .brand.large.logo-brand img {
    width: 200px;
}
.main-nav, .sidebar-bottom { display: grid; gap: 7px; }
.sidebar nav a {
    color: #d8e0f0;
    padding: 11px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 11px;
    font-weight: 500;
    position: relative;
}
.sidebar nav a:hover { background: rgba(255,255,255,.08); color: white; }
.sidebar nav a.active {
    background: #e8f9ff;
    color: #071057;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .16);
}
.sidebar nav a.active::before {
    content: "";
    position: absolute;
    left: -18px;
    width: 4px;
    height: 28px;
    border-radius: 0 8px 8px 0;
    background: #23bde8;
}
.nav-icon, .btn-icon {
    display: inline-grid;
    place-items: center;
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}
.nav-icon svg, .btn-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}
.sidebar-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 14px;
    position: sticky;
    bottom: 0;
    background: var(--sidebar);
}

.shell { margin-left: 250px; padding: 28px; }
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 18px;
}
.eyebrow {
    color: var(--primary-dark);
    margin: 0 0 4px;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 500;
}
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: 30px; font-weight: 500; }
h2 { font-size: 19px; font-weight: 500; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.profile-card {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 12px;
    box-shadow: var(--soft-shadow);
}
.profile-card strong { display: block; line-height: 1.1; font-weight: 500; }
.profile-card small { margin: 2px 0 0; }
.avatar {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--primary);
    color: white;
    font-weight: 500;
    object-fit: cover;
}
.user-chip {
    background: #e8eef8;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--ink);
    font-weight: 500;
}

.btn {
    border: 1px solid var(--line);
    background: white;
    color: var(--ink);
    border-radius: 8px;
    padding: 10px 14px;
    cursor: pointer;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
}
.icon-btn {
    border: 1px solid var(--line);
    border-radius: 8px;
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    cursor: pointer;
}
.btn.primary { background: var(--primary); color: white; border-color: var(--primary); }
.btn.primary:hover { background: var(--primary-dark); }
.btn.ghost { background: transparent; color: white; border-color: rgba(255,255,255,.25); }
.top-logout {
    background: var(--indigo);
    border-color: var(--indigo);
    color: white;
}
.top-logout:hover { background: var(--sidebar); }
.btn.small { min-height: 34px; padding: 7px 10px; font-size: 13px; }
.btn.full { width: 100%; }
.danger-link { color: var(--red); margin-left: 8px; }
.link-button {
    border: 0;
    background: transparent;
    color: var(--primary);
    padding: 0;
    font: inherit;
    cursor: pointer;
}
.link-button:hover { color: var(--primary-dark); }
.action-icons {
    display: flex;
    align-items: center;
    gap: 8px;
}
.icon-action {
    appearance: none;
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0;
    color: var(--indigo);
    background: #f8fbff;
    cursor: pointer;
    font: inherit;
}
.icon-action:hover {
    background: var(--indigo);
    border-color: var(--indigo);
    color: white;
}
.icon-action.danger {
    color: var(--red);
    background: #fff7f6;
    border-color: #ffd8d4;
}
.icon-action.danger:hover {
    background: var(--red);
    border-color: var(--red);
    color: white;
}
.icon-action svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.alert {
    border-radius: 8px;
    padding: 12px 14px;
    background: #eaf8f1;
    color: #075b38;
    margin-bottom: 16px;
}
.alert.danger { background: #fff0ef; color: var(--red); }

.dashboard-hero {
    background: #f1fbff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--soft-shadow);
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    padding: 24px;
    margin-bottom: 16px;
}
.dashboard-hero h2 {
    font-size: 28px;
    margin-bottom: 8px;
    color: var(--indigo);
}
.dashboard-hero p:last-child {
    color: var(--muted);
    margin-bottom: 0;
    max-width: 660px;
}
.hero-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}
.metric, .panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--soft-shadow);
}
.metric {
    padding: 16px 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
    min-height: 92px;
}
.metric::after { display: none; }
.metric-copy {
    min-width: 0;
    display: grid;
    align-content: start;
}
.metric-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 8px;
    background: currentColor;
    color: var(--primary);
}
.metric-icon svg {
    width: 22px;
    height: 22px;
    fill: white;
}
.metric span { color: var(--muted); font-weight: 500; }
.metric-copy small { margin: 7px 0 0; }
.metric strong {
    display: block;
    font-size: 20px;
    margin: 10px 0 0;
    font-weight: 500;
    line-height: 1.15;
}
.metric.blue strong { color: #169bc4; }
.metric.blue .metric-icon { color: #23bde8; }
.metric.violet strong { color: var(--indigo); }
.metric.violet .metric-icon { color: var(--indigo); }
.metric.warn strong { color: var(--amber); }
.metric.warn .metric-icon { color: var(--amber); }
.metric.green strong { color: var(--green); }
.metric.green .metric-icon { color: var(--green); }
.panel { padding: 20px; margin-bottom: 16px; }
.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}
.panel-head h2 { margin: 0; }
.client-head {
    align-items: flex-start;
}
.client-title-search {
    display: flex;
    align-items: start;
    flex-wrap: wrap;
    gap: 16px 28px;
}
.client-title-search small {
    margin-top: 0;
}
.client-search {
    margin-bottom: 0;
    align-items: center;
}
.client-search input {
    width: 260px;
    min-width: 260px;
}
.dashboard-grid, .split {
    display: grid;
    grid-template-columns: 1.4fr .9fr;
    gap: 16px;
}
.wide { min-height: 310px; }

.chart-bars {
    height: 240px;
    display: flex;
    align-items: end;
    gap: 14px;
    border-bottom: 1px solid var(--line);
    padding-top: 16px;
    padding-bottom: 8px;
}
.bar-wrap {
    flex: 1;
    min-width: 42px;
    display: grid;
    align-items: end;
    gap: 8px;
    height: 100%;
    text-align: center;
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
}
.bar {
    border-radius: 8px 8px 0 0;
    background: #23bde8;
    color: white;
    padding: 8px 6px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    font-size: 12px;
    font-weight: 500;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
}
.list { display: grid; gap: 8px; }
.list a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: #fbfcff;
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.list a:hover {
    border-color: #b9cae4;
    box-shadow: var(--soft-shadow);
    transform: translateY(-1px);
}

table { width: 100%; border-collapse: collapse; }
th, td {
    text-align: left;
    border-bottom: 1px solid var(--line);
    padding: 13px 10px;
    vertical-align: top;
}
th { color: #28307d; font-size: 14px; text-transform: uppercase; font-weight: 700; }
th.sortable {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}
th.sortable::after {
    content: "↕";
    display: inline-block;
    margin-left: 7px;
    color: #9aa5c4;
    font-size: 11px;
}
th.sortable[aria-sort="ascending"]::after {
    content: "↑";
    color: var(--indigo);
}
th.sortable[aria-sort="descending"]::after {
    content: "↓";
    color: var(--indigo);
}

input, select, textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    min-height: 42px;
    padding: 10px 12px;
    font: inherit;
    background: white;
}
textarea { min-height: 96px; resize: vertical; }
label { display: grid; gap: 7px; color: var(--muted); font-weight: 400; }
.user-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}
.user-photo {
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--primary);
    color: white;
    font-weight: 500;
    object-fit: cover;
    flex: 0 0 auto;
}
.user-photo.small {
    width: 34px;
    height: 34px;
}
.user-photo.large {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 8px 22px rgba(15, 23, 83, .14);
    font-size: 30px;
}
.profile-photo-field {
    width: fit-content;
    display: grid;
    justify-items: center;
    gap: 8px;
    margin-bottom: 4px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcff;
}
.profile-hero {
    display: grid;
    grid-template-columns: 136px minmax(0, 1fr);
    gap: 30px;
    align-items: center;
}
.profile-identity {
    display: grid;
    gap: 12px;
}
.profile-name-input {
    min-height: 52px;
    padding-left: 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    font-size: 30px;
    font-weight: 500;
    color: var(--ink);
}
.profile-name-input:focus {
    outline: 0;
    border-bottom-color: var(--primary);
}
.avatar-upload {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--indigo);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}
.avatar-upload input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.upload-icon {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 8px;
    background: var(--indigo);
    color: white;
}
.upload-icon svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.full-row { grid-column: 1 / -1; }
.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: end;
    margin-bottom: 16px;
}
.toolbar input, .toolbar select { width: auto; min-width: 180px; }

.status {
    display: inline-flex;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 500;
    background: #e8eef8;
}
.status.paid { background: #dff7eb; color: var(--green); }
.status.sent { background: var(--primary-soft); color: #0f7fa2; }
.status.overdue, .status.cancelled { background: #fff0ef; color: var(--red); }
.status.draft { background: #fff7e6; color: var(--amber); }
.status.admin { background: var(--indigo-soft); color: var(--indigo); }
.status.accountant { background: var(--primary-soft); color: #0f7fa2; }
.status.active { background: #dff7eb; color: var(--green); }
.status.inactive { background: #fff0ef; color: var(--red); }

.module-tabs,
.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.form-actions {
    justify-content: flex-end;
}

.items { display: grid; gap: 10px; margin-bottom: 12px; }
.item-row {
    display: grid;
    grid-template-columns: 2fr .8fr .6fr .8fr .7fr .9fr 42px;
    gap: 10px;
}
.line-total-input {
    background: #f8fbff;
    color: var(--indigo);
}
.item-remove {
    background: #fff0ef;
    border-color: #ffd3d0;
    color: var(--red);
    font-size: 22px;
    line-height: 1;
}
.item-remove:hover {
    background: var(--red);
    border-color: var(--red);
    color: white;
}
.invoice-form h2 { margin-top: 20px; }
.invoice-items-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
    margin-bottom: 12px;
}
.invoice-items-head h2 {
    margin: 0;
}
.action-strip {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 16px;
}
.action-strip form { display: flex; gap: 10px; }

.modal-open { overflow: hidden; }
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(4, 9, 28, .58);
    backdrop-filter: blur(4px);
}
.modal-backdrop[hidden] { display: none; }
.modal-card {
    width: min(560px, 100%);
    max-height: calc(100vh - 40px);
    overflow: auto;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .28);
    padding: 0;
}
.modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
    background: var(--indigo);
    color: white;
}
.client-modal-card .modal-head {
    background: #e8f9ff;
    color: var(--indigo);
}
.modal-head .eyebrow {
    margin-bottom: 4px;
    font-size: 11px;
    color: #9ee9ff;
}
.client-modal-card .modal-head .eyebrow {
    color: #0f7fa2;
}
.modal-head h2 {
    margin: 0;
    font-size: 20px;
    color: white;
}
.client-modal-card .modal-head h2 {
    color: var(--indigo);
}
.modal-form {
    padding: 20px;
    gap: 12px;
}
.modal-form input,
.modal-form textarea {
    min-height: 38px;
    padding: 8px 10px;
}
.modal-form textarea {
    min-height: 74px;
}
.modal-close {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .22);
    color: white;
    width: 36px;
    height: 36px;
    font-size: 24px;
    line-height: 1;
}
.client-modal-card .modal-close {
    background: white;
    border-color: #c8eaf4;
    color: var(--indigo);
}
.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 4px;
}
.modal-actions .btn.primary {
    background: var(--indigo);
    border-color: var(--indigo);
}
.modal-actions .btn.primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.invoice-paper {
    background: white;
    border: 0;
    border-radius: 8px;
    padding: 25px 40px;
    margin-bottom: 8px;
    min-height: 1040px;
    display: flex;
    flex-direction: column;
}
.invoice-top, .bill-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 22px;
}
.invoice-logo {
    display: block;
    width: 240px;
    height: auto;
    margin-bottom: 6px;
}
.invoice-logo-text {
    margin-bottom: 6px;
    color: var(--primary);
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
}
.invoice-company h2 {
    margin-bottom: 4px;
    color: var(--ink);
    font-size: 16px;
    white-space: nowrap;
}
.invoice-company p,
.invoice-bill-row p,
.invoice-meta p {
    line-height: 1.7;
}
.invoice-meta { text-align: right; }
.invoice-meta h1 {
    margin-bottom: 4px;
    color: #7f87a6;
    font-size: 34px;
    letter-spacing: 1px;
}
.balance-label {
    display: inline-block;
    margin-top: 14px;
    color: var(--muted);
    font-weight: 500;
}
.balance-due {
    display: inline-block;
    margin-top: 4px;
    color: var(--ink);
    font-size: 30px;
    font-weight: 800;
}
.invoice-bill-row {
    margin-bottom: 36px;
}
.totals {
    width: min(390px, 100%);
    margin-left: auto;
    margin-top: 18px;
}
.totals p {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    padding: 6px 0;
    line-height: 1.25;
}
.totals .grand {
    background: var(--primary-soft);
    color: var(--indigo);
    font-size: 20px;
    padding: 8px 10px;
}
.totals .amount-words {
    display: block;
    color: var(--ink);
    font-size: 12px;
    line-height: 1.25;
}
.totals .amount-words span,
.totals .amount-words strong {
    display: block;
    text-align: left;
}
.totals .amount-words strong {
    margin-top: 2px;
    font-weight: 500;
}
.invoice-bottom {
    margin-top: auto;
}
.invoice-bank-row {
    display: block;
    margin-bottom: 22px;
}
.invoice-bank-row p {
    display: block;
    width: 100%;
}
.invoice-footer {
    border-top: 1px solid #999;
    padding-top: 14px;
    color: var(--ink);
    font-size: 13px;
    line-height: 1.5;
    width: 100%;
    text-align: center;
}
.invoice-footer p {
    margin: 0 0 16px;
    text-align: center !important;
    width: 100%;
}
.invoice-footer strong {
    text-align: center;
}
.invoice-footer p:last-child {
    margin-bottom: 0;
}

.guest-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: #020716;
    overflow: hidden;
    position: relative;
}
.particle-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.login-wrap {
    width: min(750px, calc(100% - 32px));
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    background: #0a0d3d;
    border: 1px solid rgba(120, 151, 195, .3);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .45);
    position: relative;
    z-index: 1;
}
.login-panel {
    min-height: 348px;
    padding: 58px 48px 46px;
    background: white;
    text-align: center;
    color: #555;
    display: grid;
    align-content: center;
    justify-items: center;
}
.login-panel h1 {
    font-size: 24px;
    line-height: 1.02;
    margin: 20px 0 16px;
    font-weight: 700;
}
.login-panel p {
    color: #5d5d5d;
    margin-bottom: 0;
    max-width: 320px;
    line-height: 1.28;
}
.login-card {
    padding: 44px 36px;
    display: grid;
    gap: 14px;
    align-content: center;
    background: #0a0d3d;
    color: white;
}
.login-card h2 {
    color: white;
    text-align: left;
    text-transform: none;
    letter-spacing: 0;
    font-size: 25px;
    font-weight: 700;
    margin: 0 0 4px;
}
.login-card label {
    color: white;
    text-transform: none;
    font-size: inherit;
    letter-spacing: 0;
    font-weight: 500;
}
.login-card input {
    background: white;
    border-color: transparent;
    color: var(--ink);
    min-height: 44px;
    border-radius: 7px;
}
.login-card input:focus {
    border-color: #23bde8;
    outline: 2px solid rgba(35, 189, 232, .16);
}
.login-card .btn.primary {
    min-height: 43px;
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: none;
    font-size: 16px;
}

.print-body { background: white; }
.print-body .invoice-paper { box-shadow: none; border: 0; }
@media print {
    .action-strip, .sidebar, .topbar { display: none; }
    .shell { margin: 0; padding: 0; }
    .invoice-paper { border: 0; padding: 0; }
}

@media (max-width: 1050px) {
    .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-grid, .split, .login-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .sidebar { position: static; width: auto; min-height: auto; }
    .sidebar nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sidebar-bottom { position: static; }
    .shell { margin-left: 0; padding: 18px; }
    .topbar, .invoice-top, .bill-grid, .action-strip, .dashboard-hero { display: grid; }
    .top-actions { justify-content: space-between; }
    .profile-card { min-width: 0; }
    .profile-card strong {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .hero-actions { justify-content: stretch; }
    .hero-actions .btn { width: 100%; }
    .metric-grid, .form-grid { grid-template-columns: 1fr; }
    .item-row { grid-template-columns: 1fr; }
    .toolbar input, .toolbar select { width: 100%; }
    table { display: block; overflow-x: auto; white-space: nowrap; }
    .login-panel, .login-card { padding-left: 28px; padding-right: 28px; }
    .login-panel h1 { font-size: 32px; }
}
