@import url('https://fonts.googleapis.com/css2?family=Libre+Franklin:wght@400;500;600;700&family=Source+Serif+4:wght@600;700&display=swap');

:root {
    --bg: #f4f8f6;
    --surface: rgba(255, 255, 255, 0.96);
    --surface-strong: #ffffff;
    --text: #13261f;
    --muted: #64756d;
    --line: #dbe8e1;
    --brand: #156f52;
    --brand-soft: #e2f3eb;
    --danger: #c65454;
    --warning: #d28a22;
    --shadow: 0 20px 45px rgba(17, 42, 32, 0.08);
    --radius: 24px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(175, 224, 201, 0.22), transparent 26%),
        linear-gradient(180deg, #f2f8f4 0%, #f8fbf9 100%);
    color: var(--text);
    font-family: "Libre Franklin", "Segoe UI", sans-serif;
    font-size: 11px;
    line-height: 1.34;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 290px 1fr; transition: grid-template-columns 0.2s ease; }
.app-shell.sidebar-collapsed { grid-template-columns: 86px 1fr; }

.sidebar {
    padding: 18px 14px;
    background: #f8fbff;
    color: #17385a;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: sticky;
    top: 0;
    height: 100vh;
    border-right: 1px solid #edf1f5;
    transition: padding 0.2s ease, width 0.2s ease;
}

.brand, .user-chip { display: flex; align-items: center; gap: 14px; }

.brand-lite {
    display: grid;
    gap: 6px;
    padding: 0 8px 14px;
}

.menu-kicker {
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.82rem;
    color: #6f88a5;
    font-weight: 700;
}

.brand-mark, .user-chip span {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #1ea270, #0c5f44);
    color: white;
    font-weight: 700;
    overflow: hidden;
}

.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand small, .user-chip small, .topbar p, .panel-subtitle, .table td small, .empty-state p { color: var(--muted); }

.nav { display: grid; gap: 0; }
.nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 9px 8px;
    border-radius: 10px;
    color: #15385a;
    font-size: 0.8rem;
    font-weight: 500;
    transition: 0.18s ease;
}
.app-shell.sidebar-collapsed .sidebar {
    padding-left: 10px;
    padding-right: 10px;
}
.app-shell.sidebar-collapsed .menu-kicker,
.app-shell.sidebar-collapsed .nav-link span:not(.nav-icon),
.app-shell.sidebar-collapsed .user-line,
.app-shell.sidebar-collapsed .ghost-link {
    display: none;
}
.app-shell.sidebar-collapsed .brand-lite {
    padding: 0 0 14px;
}
.app-shell.sidebar-collapsed .nav-link {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}
.app-shell.sidebar-collapsed .sidebar-foot {
    justify-items: center;
    padding-left: 0;
    padding-right: 0;
}

.nav-link:hover {
    background: #eef4fa;
}

.nav-link.is-active {
    background: #edf4fb;
    color: #102f4b;
    font-weight: 700;
}

.nav-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #31475d;
    flex: 0 0 28px;
}

.nav-icon svg {
    width: 21px;
    height: 21px;
    stroke: currentColor !important;
    fill: none !important;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-icon svg * {
    fill: none !important;
    stroke: currentColor !important;
}

.sidebar-foot {
    margin-top: auto;
    display: grid;
    gap: 10px;
    padding: 8px;
}

.user-line {
    display: grid;
    gap: 4px;
    padding: 0;
    color: #6d8095;
    font-size: 0.74rem;
}

.ghost-link {
    padding: 10px 12px;
    border: 1px solid #e3ebf2;
    border-radius: 10px;
    text-align: center;
    color: #294866;
    background: #fdfefe;
    font-size: 0.76rem;
}

.main-content { padding: 0 26px 28px; }
.topbar-shell {
    margin: 0 -26px 18px;
    border-bottom: 1px solid #e4ece7;
}
.topbar-utility {
    display: grid;
    grid-template-columns: 40px minmax(220px, 640px) auto;
    gap: 12px;
    align-items: center;
    padding: 12px 26px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
}
.topbar {
    padding: 14px 26px 14px;
    background:
        radial-gradient(circle at top right, rgba(194, 221, 210, 0.36), transparent 28%),
        linear-gradient(180deg, rgba(237, 246, 240, 0.72) 0%, rgba(243, 249, 245, 0.55) 100%);
}
.topbar-heading {
    display: grid;
    gap: 6px;
}
.topbar h1 {
    margin: 0;
    font-family: "Source Serif 4", Georgia, serif;
    font-size: clamp(1.18rem, 1.2vw, 1.56rem);
    letter-spacing: -0.03em;
}
.topbar-kicker {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.66rem;
    color: #5d6f8c;
    font-weight: 700;
}
.topbar-search {
    display: flex;
    align-items: center;
    min-height: 40px;
    border: 1px solid #d7e2dc;
    border-radius: 14px;
    background: #ffffff;
    padding: 0 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.topbar-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 0.78rem;
    color: #2a3a33;
}
.topbar-search input::placeholder { color: #7d8b85; }
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-self: end;
    margin-left: auto;
}
.topbar-user,
.topbar-exit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 13px;
    border: 1px solid #d7e2dc;
    background: linear-gradient(180deg, #f5f8f7 0%, #edf2ef 100%);
    font-size: 0.76rem;
    color: #27352f;
}
.topbar-exit { background: #ffffff; }
.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid #d7e2dc;
    background: #ffffff;
    border-radius: 13px;
    padding: 0;
}
.nav-toggle-desktop {
    display: inline-grid;
    place-items: center;
}
.nav-toggle span {
    display: block;
    width: 14px;
    height: 2px;
    background: #1b2a25;
    border-radius: 999px;
    margin: 2px 0;
}

.flash { padding: 14px 16px; border-radius: 16px; margin-bottom: 16px; box-shadow: var(--shadow); }
.flash-success { background: #e5f7ec; }
.flash-error { background: #ffeded; }
.decision-modal[hidden] { display: none; }
.decision-modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
}
.decision-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 33, 28, 0.32);
    backdrop-filter: blur(5px);
}
.decision-modal__dialog {
    position: relative;
    width: min(440px, calc(100vw - 32px));
    padding: 22px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(245,250,247,0.98) 100%);
    border: 1px solid #dce8e1;
    box-shadow: 0 30px 70px rgba(16, 36, 30, 0.2);
}
.decision-modal__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.62rem;
    font-weight: 700;
    color: #6f847a;
    margin-bottom: 8px;
}
.decision-modal__title {
    margin: 0 0 8px;
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 1.08rem;
    color: #172a24;
}
.decision-modal__message {
    margin: 0;
    font-size: 0.8rem;
    color: #56665f;
    line-height: 1.5;
}
.decision-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}
.success-modal[hidden] { display: none; }
.success-modal {
    position: fixed;
    inset: 0;
    z-index: 65;
    display: grid;
    place-items: center;
}
.success-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 33, 28, 0.24);
    backdrop-filter: blur(6px);
}
.success-modal__dialog {
    position: relative;
    width: min(420px, calc(100vw - 32px));
    padding: 24px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,0.99) 0%, rgba(237,247,242,0.98) 100%);
    border: 1px solid #d5e7dd;
    box-shadow: 0 28px 68px rgba(16, 36, 30, 0.22);
}
.success-modal__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.62rem;
    font-weight: 700;
    color: #2f7a5f;
    margin-bottom: 8px;
}
.success-modal__title {
    margin: 0 0 8px;
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 1.08rem;
    color: #172a24;
}
.success-modal__message {
    margin: 0;
    font-size: 0.82rem;
    color: #56665f;
    line-height: 1.5;
}
.success-modal__actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
}
.success-modal-error .success-modal__dialog {
    background: linear-gradient(180deg, rgba(255,255,255,0.99) 0%, rgba(255,244,244,0.98) 100%);
    border-color: #f0d3d3;
}
.success-modal-error .success-modal__eyebrow {
    color: #b55353;
}
.request-code-line {
    margin: 10px 0 0;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #2f7a5f;
}

.grid { display: grid; gap: 22px; }
.grid.cards { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card, .panel, .login-card {
    background: var(--surface);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.card, .panel { padding: 28px; }
.panel-nested { margin-top: 18px; }
.opinion-grid { margin-top: 16px; }
.opinion-card {
    padding: 18px;
    border-radius: 18px;
}
.opinion-card strong {
    display: block;
    margin: 6px 0 8px;
}
.opinion-card p {
    margin: 0;
}
.opinion-card p + p {
    margin-top: 8px;
}
.card h3, .panel h2, .panel h3 { margin-top: 0; margin-bottom: 6px; }
.card h3, .panel h2, .panel h3, .login-form h1, .login-showcase h2, .section-title {
    font-family: "Source Serif 4", Georgia, serif;
}
.metric { font-size: 1.02rem; font-weight: 700; margin-top: 8px; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    background: var(--brand-soft);
    color: var(--brand);
}

.badge.warning { background: #fff2dd; color: var(--warning); }
.badge.danger { background: #ffe4e4; color: var(--danger); }

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 22px;
}
.panel h2 {
    font-size: clamp(0.92rem, 1vw, 1.14rem);
    letter-spacing: -0.03em;
}
.panel-subtitle {
    margin: 10px 0 0;
    max-width: 30ch;
    line-height: 1.35;
    font-size: 0.76rem;
}
.table-wrap { overflow: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}
.table th {
    color: #70827a;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.table tbody tr:hover {
    background: rgba(240, 247, 243, 0.6);
}
.table td strong {
    display: inline-block;
    margin-bottom: 6px;
}
.pagination {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}
.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid #d3e3db;
    background: #ffffff;
    color: var(--text);
    font-size: 0.72rem;
    font-weight: 600;
}
.pagination-link.is-active {
    background: linear-gradient(135deg, #1b8e68, #136248);
    border-color: transparent;
    color: #ffffff;
}
.pagination-link.is-disabled {
    opacity: 0.45;
    cursor: default;
    pointer-events: none;
}

.form-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.field { display: grid; gap: 8px; }
.field.has-error label { color: #9b3f3f; }
.field label {
    font-weight: 700;
    font-size: 0.74rem;
}
.field input, .field select, .field textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid #d3e3db;
    background: var(--surface-strong);
    color: var(--text);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: #9acdb7;
    box-shadow: 0 0 0 4px rgba(135, 197, 168, 0.15);
    background: #fefffe;
}

.field input:invalid,
.field select:invalid,
.field textarea:invalid {
    border-color: #d8b1b1;
    box-shadow: 0 0 0 3px rgba(198, 84, 84, 0.08);
}
.field-error {
    display: none;
    font-size: 0.66rem;
    line-height: 1.35;
    color: #b14d4d;
    margin-top: -2px;
}

.field textarea {
    min-height: 116px;
    resize: vertical;
}
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.wizard-actions { justify-content: flex-end; }
.actions-compact { margin-top: 0; align-items: center; justify-content: flex-end; }
.section-block + .section-block {
    margin-top: 18px;
}
.section-block + .actions-compact,
.section-block + .actions.actions-compact {
    margin-top: 18px;
}
.document-upload-actions {
    margin-top: 14px;
    margin-bottom: 18px;
}
.document-picker {
    display: grid;
    gap: 10px;
}
.document-record {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid #dbe8e1;
    background: linear-gradient(180deg, rgba(245, 250, 247, 0.85) 0%, rgba(255, 255, 255, 0.96) 100%);
}
.document-record-compact {
    padding: 12px 14px;
}
.document-record strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.78rem;
}
.document-record p {
    margin: 0;
    font-size: 0.7rem;
}
.table-actions { display: flex; gap: 12px; align-items: center; justify-content: flex-end; }
.inline-form { margin: 0; }
.inline-form select { min-width: 180px; }
.client-wizard { gap: 14px; }
.wizard-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
}
.wizard-rail {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    padding: 10px;
    border-radius: 16px;
    background: linear-gradient(180deg, #f5faf7 0%, #eef6f1 100%);
    border: 1px solid #dce9e2;
    align-items: stretch;
}
.wizard-progress {
    display: grid;
    gap: 4px;
    padding-bottom: 6px;
    align-content: center;
    grid-column: 1 / -1;
}
.wizard-progress-label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.62rem;
    color: #6f847a;
    font-weight: 700;
}
.wizard-step {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 10px;
    align-items: start;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 14px;
    padding: 10px;
    text-align: left;
    color: var(--text);
    min-width: 0;
    min-height: 84px;
}
.wizard-step > span:last-child { min-width: 0; }
.wizard-step strong {
    display: block;
    font-size: 0.76rem;
    line-height: 1.1;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: auto;
}
.wizard-step small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.6rem;
    line-height: 1.2;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: auto;
}
.wizard-step.is-active {
    border-color: #bbd8ca;
    background: white;
    box-shadow: 0 12px 26px rgba(19, 56, 42, 0.08);
}
.wizard-step-index {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #e3f1e9;
    color: var(--brand);
    font-weight: 700;
}
.wizard-step.is-active .wizard-step-index {
    background: linear-gradient(135deg, #1b8e68, #136248);
    color: white;
}
.wizard-summary {
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid #dce7e1;
    display: grid;
    align-content: center;
    grid-column: 1 / -1;
}
.wizard-summary p {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 0.66rem;
}
.wizard-summary p:last-child { margin-bottom: 0; }
.wizard-content { min-width: 0; }
.wizard-panel {
    display: none;
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(249, 252, 250, 0.96) 0%, rgba(255, 255, 255, 0.98) 100%);
    border: 1px solid #e3ede7;
}
.wizard-panel.is-active { display: block; }
.wizard-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    align-items: end;
}
.wizard-panel-head h3 {
    margin: 0;
    font-size: 0.84rem;
}

.btn, .btn-secondary, .btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 8px 11px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.74rem;
}

.btn {
    background: linear-gradient(135deg, #1b8e68, #136248);
    color: white;
    box-shadow: 0 12px 24px rgba(22, 101, 73, 0.18);
}
.btn-secondary { background: #edf5f0; color: var(--text); }
.btn-link { background: transparent; color: var(--brand); padding: 0; }
.btn-link-danger { color: var(--danger); }
.btn:disabled,
.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}
.client-layout { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); align-items: start; }
.client-layout-single { grid-template-columns: minmax(0, 1fr); }
.client-layout > .panel:not(:first-child) {
    padding: 20px;
}
.client-layout > .panel:not(:first-child) .list {
    gap: 12px;
}
.client-layout > .panel:not(:first-child) .list-item {
    padding: 12px 14px;
    border-radius: 16px;
}
.client-layout > .panel:not(:first-child) .empty-state {
    padding: 18px;
    min-height: 130px;
    display: grid;
    place-items: center;
    border-radius: 16px;
}
.form-grid-wide { grid-template-columns: repeat(3, minmax(160px, 1fr)); }
.field-span-full { grid-column: 1 / -1; }
.field-search-action {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.field-search-action .btn,
.field-search-action .btn-secondary {
    width: 100%;
    min-height: 42px;
}
.payment-search-row {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(220px, 280px);
    gap: 16px;
    align-items: end;
    margin-bottom: 6px;
}

.hero {
    padding: 28px;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.35), transparent 22%), linear-gradient(135deg, #17382d, #1f7a5a 75%);
    color: white;
}

.hero p { color: rgba(255, 255, 255, 0.85); }
.stack, .list { display: grid; gap: 18px; }

.list-item {
    padding: 16px;
    border-radius: 20px;
    background: #f8fbf9;
    border: 1px solid var(--line);
}

.split { display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.muted { color: var(--muted); }
.empty-state { padding: 30px; text-align: center; border: 1px dashed var(--line); border-radius: 18px; }

.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { max-width: 960px; width: 100%; overflow: hidden; display: grid; grid-template-columns: 1.1fr 0.9fr; }

.login-showcase {
    position: relative;
    overflow: hidden;
    padding: 42px;
    background: #13261f;
    color: white;
}
.login-showcase::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(11, 30, 23, 0.86) 0%, rgba(11, 30, 23, 0.58) 42%, rgba(11, 30, 23, 0.18) 72%, rgba(11, 30, 23, 0.06) 100%);
    pointer-events: none;
}
.login-showcase-copy {
    position: relative;
    z-index: 1;
    max-width: 470px;
}
.login-showcase-portrait {
    position: absolute;
    inset: 0;
}
.login-showcase-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    filter: saturate(1.02) contrast(1.02);
    mix-blend-mode: normal;
}

.login-form { padding: 42px; background: white; }
.login-form h1 { font-size: 1.16rem; }
.login-showcase h2 { font-size: 1.24rem; }
.login-form h1, .login-showcase h2 { margin-top: 0; }
.kpi-strip { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); margin-top: 24px; }
.kpi-strip div { background: rgba(255, 255, 255, 0.1); padding: 14px; border-radius: 18px; }
.section-title { margin: 0 0 14px; }

@media (max-width: 960px) {
    .app-shell { grid-template-columns: 1fr; }
    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: 280px;
        transform: translateX(-110%);
        transition: transform 0.25s ease;
        z-index: 20;
        box-shadow: 0 20px 50px rgba(21, 55, 90, 0.18);
    }
    .sidebar.open { transform: translateX(0); }
    .nav-toggle {
        display: inline-flex;
    }
    .nav-toggle-desktop {
        display: inline-grid;
    }
    .main-content { padding: 0 16px 16px; }
    .topbar-shell { margin: 0 -16px 18px; }
    .topbar-utility {
        grid-template-columns: 40px minmax(0, 1fr);
        padding: 14px 16px;
    }
    .topbar-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }
    .topbar {
        padding: 16px;
    }
    .card, .panel { padding: 22px; }
    .login-card { grid-template-columns: 1fr; }
    .kpi-strip { grid-template-columns: 1fr; }
    .login-showcase-portrait {
        inset: 0;
    }
    .login-showcase::after {
        background: linear-gradient(180deg, rgba(11, 30, 23, 0.78) 0%, rgba(11, 30, 23, 0.56) 52%, rgba(11, 30, 23, 0.28) 100%);
    }
    .client-layout,
    .wizard-shell,
    .form-grid-wide { grid-template-columns: 1fr; }
    .wizard-rail {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .wizard-progress,
    .wizard-summary {
        grid-column: 1 / -1;
    }
    .table-actions { justify-content: flex-start; }
}

@media (max-width: 1280px) {
    .wizard-rail {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .form-grid-wide {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }
}
