html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Multi-business account workspace */
.nav-business-switcher {
    margin: 14px 8px 4px;
    padding: 12px !important;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 14px;
    background: rgba(255, 255, 255, .08);
}

.nav-business-switcher label {
    display: block;
    margin-bottom: 6px;
    color: #9fb8d5;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.nav-business-switcher select {
    width: 100%;
    min-height: 44px;
    padding: 8px 30px 8px 10px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 9px;
    color: #fff;
    background: #18355d;
    font-weight: 700;
}

.nav-business-meta,
.nav-business-error {
    display: block;
    margin-top: 7px;
    font-size: .72rem;
    line-height: 1.35;
}

.nav-business-meta { color: #c7d8e8; }
.nav-business-error { color: #ffd0d0; }

.nav-business-loading,
.nav-business-retry {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 9px;
    color: #fff;
    background: #18355d;
    font-weight: 700;
}

.nav-business-loading { color: #c7d8e8; }
.nav-business-retry { cursor: pointer; }
.nav-business-retry:hover { background: #214572; }

.nav-business-switcher a {
    display: inline-block;
    margin-top: 8px;
    color: #82e3c5;
    font-size: .78rem;
    font-weight: 700;
    text-decoration: none;
}

.businesses-page { max-width: 1320px; }
.businesses-page .page-head > div > p:last-child { max-width: 760px; margin-bottom: 0; }

.business-list-grid,
.business-product-grid,
.business-plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.business-card {
    display: grid;
    gap: 20px;
    min-height: 260px;
    padding: 24px;
    border: 1px solid #d5dfeb;
}

.business-card.current {
    border: 2px solid #168264;
    box-shadow: 0 14px 36px rgba(14, 95, 76, .1);
}

.business-card h2 { margin: 0 0 7px; }
.business-card p { margin: 0 0 8px; color: #50647d; }
.business-card small { color: #718096; }
.business-card .btn-secondary { align-self: end; width: 100%; text-align: center; }

.business-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.business-current-label { color: #0c6b52; font-size: .82rem; font-weight: 800; }

.business-add-card {
    display: grid;
    place-content: center;
    gap: 10px;
    min-height: 260px;
    padding: 28px;
    border: 2px dashed #9ab5ad;
    border-radius: 18px;
    color: #0d5f4b;
    background: #f3faf7;
    text-align: center;
}

.business-add-card:hover { border-color: #168264; background: #eaf7f2; }
.business-add-card > span { font-size: 2.6rem; line-height: 1; }
.business-add-card > strong { font-size: 1.25rem; }
.business-add-card > small { max-width: 330px; color: #50647d; line-height: 1.45; }

.business-create-panel { padding: 30px; }
.business-create-head { display: flex; justify-content: space-between; gap: 24px; align-items: start; }
.business-create-head h2 { margin: 0 0 6px; }
.business-create-head p { margin-bottom: 0; color: #50647d; }

.business-step {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 30px 0 14px;
}

.business-step h3 { margin: 0 0 3px; font-size: 1.15rem; }
.business-step p { margin: 0; color: #63738a; }
.business-step-number {
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    height: 42px;
    border-radius: 50%;
    color: #fff;
    background: #0f7559;
    font-size: 1.1rem;
    font-weight: 900;
}

.business-choice-card {
    display: grid;
    gap: 9px;
    min-height: 170px;
    padding: 20px;
    border: 2px solid #d5dfeb;
    border-radius: 15px;
    color: #10243e;
    background: #fff;
    text-align: left;
}

.business-choice-card:hover { border-color: #79b9a8; background: #f7fbfa; }
.business-choice-card.selected { border-color: #14805f; background: #eaf7f2; box-shadow: 0 0 0 3px rgba(20, 128, 95, .08); }
.business-choice-card strong { font-size: 1.08rem; }
.business-choice-card span { color: #5b6c82; line-height: 1.4; }
.business-choice-card small { align-self: end; color: #087052; font-weight: 800; }
.business-choice-card.compact { min-height: 125px; }

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

.business-details-grid label { color: #253c58; font-weight: 800; }
.business-details-grid input { margin-top: 7px; }

.business-cycle-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 520px;
    margin: 16px 0;
    padding: 4px;
    border-radius: 13px;
    background: #e8eef4;
}

.business-cycle-switch button {
    min-height: 48px;
    border: 0;
    border-radius: 10px;
    color: #445972;
    background: transparent;
    font-weight: 800;
}

.business-cycle-switch button.selected { color: #075c47; background: #fff; box-shadow: 0 3px 12px rgba(19, 45, 70, .12); }

.business-checkout-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
    padding: 20px;
    border-radius: 14px;
    color: #064b3b;
    background: #eaf7f2;
}

.business-checkout-summary div { display: grid; gap: 4px; }
.business-checkout-summary > strong { font-size: 1.55rem; }
.business-payment-trust { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 15px 0; color: #53677e; font-size: .86rem; }
.business-checkout-button { width: 100%; min-height: 58px; font-size: 1.08rem; }
.billing-multi-business-card { margin-top: 22px; }

@media (max-width: 760px) {
    .business-create-panel { padding: 20px; }
    .business-create-head { display: grid; }
    .business-details-grid { grid-template-columns: 1fr; }
    .business-checkout-summary { align-items: start; flex-direction: column; }
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}
.workspace-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px 8px 42px;
}

.page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.page-head h1 {
    margin: 0;
    color: #18212f;
    font-size: 30px;
    font-weight: 800;
}

.eyebrow {
    margin: 0 0 4px;
    color: #1f7a5a;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.ops-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
    gap: 16px;
}

.ops-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.surface-panel,
.metric-tile {
    background: #ffffff;
    border: 1px solid #dce3ea;
    border-radius: 8px;
    padding: 18px;
    box-shadow: 0 8px 24px rgba(24, 33, 47, 0.06);
}

.metric-tile {
    color: #18212f;
    text-decoration: none;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.metric-tile span,
.muted {
    color: #657085;
    font-size: 13px;
    font-weight: 700;
}

.metric-tile strong {
    font-size: 22px;
}

.muted-tile {
    opacity: .72;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.section-title h2 {
    margin: 0;
    color: #18212f;
    font-size: 20px;
    font-weight: 800;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 13px;
}

.status-pill.ok {
    background: #eaf2ef;
    color: #14553e;
}

.status-pill.warning {
    background: #fff1d6;
    color: #8a5a00;
}

.status-pill.pending {
    background: #eef2f7;
    color: #4c5868;
}

.field-label {
    display: block;
    margin: 12px 0 6px;
    color: #394456;
    font-size: 13px;
    font-weight: 800;
}

.form-field {
    width: 100%;
    min-height: 42px;
    border: 1px solid #cfd8e3;
    border-radius: 7px;
    padding: 9px 11px;
    color: #18212f;
    background: #f8fafc;
}

.activation-code-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: stretch;
}

.activation-code {
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    font-size: 16px;
    letter-spacing: .04em;
}

.printer-guidance {
    margin-top: 16px;
    border-left: 4px solid #6bbd9e;
}

.printer-guidance p {
    margin: 0;
    color: #526174;
}

.terminal-setup-panel {
    margin-bottom: 18px;
    background: linear-gradient(145deg, #ffffff, #f4faf7);
}

.terminal-setup-heading {
    align-items: flex-start;
}

.terminal-setup-heading .eyebrow {
    margin-bottom: 4px;
}

.terminal-setup-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.terminal-setup-step {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 18px;
    border: 1px solid #d8e3df;
    border-radius: 14px;
    background: #fff;
}

.terminal-step-heading {
    display: flex;
    align-items: center;
    gap: 12px;
}

.terminal-step-number {
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    height: 42px;
    border-radius: 50%;
    background: #dff2ea;
    color: #116448;
    font-size: 1.1rem;
    font-weight: 900;
}

.terminal-step-label {
    color: #167555;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .07em;
}

.terminal-setup-step h3 {
    margin: 2px 0 0;
}

.terminal-setup-step > p {
    flex: 1;
    margin: 14px 0;
    color: #536276;
}

.terminal-download-action,
.terminal-code-action {
    width: 100%;
    min-height: 50px;
}

.terminal-release-meta,
.terminal-code-security {
    display: block;
    margin-top: 9px;
    color: #687488;
    font-size: .8rem;
    line-height: 1.4;
}

.terminal-release-unavailable {
    display: grid;
    gap: 5px;
    margin-top: 14px;
    padding: 14px;
    border-radius: 10px;
    background: #fff3d6;
    color: #62490a;
}

.terminal-step-tip {
    margin-top: auto;
    padding: 13px;
    border-radius: 10px;
    background: #edf5f2;
    color: #315d50;
    font-weight: 700;
}

.terminal-code-step .activation-code-row {
    margin-top: auto;
}

@media (max-width: 1000px) {
    .terminal-setup-grid {
        grid-template-columns: 1fr;
    }
}

.file-field {
    padding: 8px;
}

.btn-primary-action,
.btn-secondary {
    min-height: 42px;
    border: 0;
    border-radius: 7px;
    padding: 9px 14px;
    font-weight: 800;
}

.btn-primary-action {
    width: 100%;
    margin-top: 16px;
    color: #fff;
    background: #1f7a5a;
}

.btn-secondary {
    color: #18212f;
    background: #dce3ea;
}

button:disabled {
    opacity: .55;
}

.status-list {
    margin: 18px 0 0;
}

.status-list div {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #edf1f5;
}

.status-list dt {
    color: #657085;
    font-weight: 800;
}

.status-list dd {
    margin: 0;
    color: #18212f;
    word-break: break-word;
}

.empty-state,
.message-box {
    margin-top: 16px;
    border-radius: 7px;
    padding: 12px;
    font-weight: 700;
}

.empty-state,
.message-box.info {
    background: #eef2f7;
    color: #4c5868;
}

.message-box.success {
    background: #eaf2ef;
    color: #14553e;
}

.message-box.error {
    background: #f7dddd;
    color: #7a1f1f;
}

.onboarding-page {
    max-width: 980px;
}

.onboarding-dashboard-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    margin-bottom: 18px;
    padding: 20px 22px;
    border: 1px solid #c9e1d8;
    border-radius: 10px;
    color: #142236;
    background: linear-gradient(135deg, #f1faf6, #fff 72%);
    text-decoration: none;
    box-shadow: 0 9px 24px rgba(24, 70, 54, .07);
}

.onboarding-dashboard-card:hover {
    color: #142236;
    border-color: #87bea9;
}

.onboarding-dashboard-card h2 {
    margin: 2px 0 5px;
    font-size: 21px;
    font-weight: 850;
}

.onboarding-dashboard-card p {
    margin: 0;
    color: #607084;
}

.dashboard-progress {
    min-width: 120px;
    display: grid;
    text-align: right;
}

.dashboard-progress strong {
    color: #176b4e;
    font-size: 25px;
}

.dashboard-progress span {
    color: #69778a;
    font-size: 12px;
    font-weight: 800;
}

.onboarding-loading {
    min-height: 150px;
    display: grid;
    place-items: center;
    color: #516071;
    font-weight: 800;
}

.onboarding-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 26px;
    border: 1px solid #c9e1d8;
    border-radius: 12px;
    background: linear-gradient(135deg, #f1faf6, #ffffff 68%);
    box-shadow: 0 12px 30px rgba(24, 70, 54, .08);
}

.onboarding-hero.complete {
    border-color: #8ecab4;
    background: linear-gradient(135deg, #e6f7ef, #ffffff 68%);
}

.onboarding-hero h2,
.onboarding-next h2,
.onboarding-step h3 {
    margin: 0;
    color: #142236;
    font-weight: 850;
}

.onboarding-hero h2 { font-size: 25px; }
.onboarding-hero p,
.onboarding-next p,
.onboarding-step p {
    margin: 7px 0 0;
    color: #5d6b7e;
}

.onboarding-score {
    display: inline-block;
    margin-bottom: 7px;
    color: #176b4e;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.onboarding-ring {
    --progress: 0;
    flex: 0 0 auto;
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, #fff 58%, transparent 60%),
        conic-gradient(#238461 calc(var(--progress) * 1%), #dcebe5 0);
    color: #14553e;
    box-shadow: inset 0 0 0 1px rgba(31,122,90,.08);
}

.onboarding-ring strong { font-size: 20px; }

.onboarding-next {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    margin-top: 16px;
    padding: 22px 24px;
    border: 1px solid #ecd18c;
    border-radius: 12px;
    background: #fff9e9;
}

.onboarding-next > div > span {
    color: #8a5a00;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.onboarding-primary {
    min-width: 180px;
    min-height: 46px;
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: 8px;
    padding: 10px 18px;
    color: #fff;
    background: #1f7a5a;
    font-weight: 850;
    text-decoration: none;
    box-shadow: 0 7px 18px rgba(31,122,90,.18);
}

.onboarding-primary:hover {
    color: #fff;
    background: #176a4d;
}

.onboarding-steps {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.onboarding-step {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid #dce3ea;
    border-radius: 10px;
    background: #fff;
}

.onboarding-step.current {
    border-color: #dab75d;
    box-shadow: 0 8px 22px rgba(117, 84, 8, .08);
}

.onboarding-step.done {
    border-color: #cfe3da;
    background: #fbfefd;
}

.step-number {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #607084;
    background: #edf1f5;
    font-weight: 900;
}

.onboarding-step.done .step-number {
    color: #fff;
    background: #238461;
}

.onboarding-step.current .step-number {
    color: #6c4900;
    background: #ffe5a3;
}

.step-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.step-title-row h3 { font-size: 17px; }
.step-status,
.step-later,
.step-link {
    color: #667489;
    font-size: 12px;
    font-weight: 850;
    text-decoration: none;
}

.onboarding-step.done .step-title-row span { color: #176b4e; }
.onboarding-step.current .step-title-row span { color: #8a5a00; }
.step-link { color: #176b4e; padding: 8px; }

.step-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.step-action-button {
    min-width: 150px;
    min-height: 42px;
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: 8px;
    padding: 9px 16px;
    color: #fff;
    background: #1f7a5a;
    box-shadow: 0 6px 16px rgba(31,122,90,.16);
    font: inherit;
    font-size: 14px;
    font-weight: 850;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.step-action-button:hover {
    color: #fff;
    background: #176a4d;
}

.step-action-button:focus-visible {
    outline: 3px solid rgba(31,122,90,.28);
    outline-offset: 3px;
}

.step-action-button:disabled {
    cursor: wait;
    opacity: .68;
}

.onboarding-legal-note {
    margin: 18px 4px 0;
    color: #6b7687;
    font-size: 12px;
    line-height: 1.45;
}

.onboarding-help {
    margin-top: 1rem;
    padding: 1rem 1.15rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid #d7e2e8;
    border-radius: 1rem;
    background: #f7fafb;
}

.onboarding-help div { display: grid; gap: .2rem; }
.onboarding-help strong { color: #0b213d; }
.onboarding-help span { color: #5c6b7c; }

@media (max-width: 700px) {
    .onboarding-help { align-items: stretch; flex-direction: column; }
}

@media (max-width: 900px) {
    .live-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .ops-grid,
    .ops-grid.three {
        grid-template-columns: 1fr;
    }

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

    .onboarding-next {
        grid-template-columns: 1fr;
    }

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

    .dashboard-progress { text-align: left; }

    .onboarding-primary { width: 100%; }
}

@media (max-width: 640px) {
    .onboarding-hero {
        align-items: flex-start;
        flex-direction: column-reverse;
    }

    .onboarding-step {
        grid-template-columns: 36px minmax(0, 1fr);
    }

    .step-actions {
        grid-column: 2;
        justify-content: stretch;
    }

    .step-action-button { width: 100%; }

    .step-later,
    .step-link { display: none; }
}

.login-shell {
    min-height: calc(100vh - 48px);
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-panel {
    width: min(420px, 100%);
    background: #fff;
    border: 1px solid #dce3ea;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 16px 36px rgba(24, 33, 47, .12);
}

.login-panel h1 {
    margin: 0 0 18px;
    color: #18212f;
    font-size: 28px;
    font-weight: 800;
}

.nav-identity {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 12px;
    padding-bottom: 12px;
    color: #fff;
}

.nav-identity span {
    color: rgba(255,255,255,.72);
    font-size: 12px;
    text-transform: uppercase;
}

.logout-link {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
}

.table-panel {
    margin-top: 18px;
}

.table-wrap {
    overflow-x: auto;
}

.ops-table {
    width: 100%;
    border-collapse: collapse;
}

.ops-table th,
.ops-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #edf1f5;
    vertical-align: top;
    color: #18212f;
}

.ops-table th {
    color: #657085;
    font-size: 12px;
    text-transform: uppercase;
    text-align: left;
}

.ops-table td span {
    display: block;
    color: #657085;
    font-size: 12px;
    margin-top: 2px;
}

.forms-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 18px;
}

.forms-grid .form-field {
    margin-bottom: 9px;
}

.wide {
    width: 100%;
    margin-bottom: 12px;
}

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

.ops-table tr {
    cursor: pointer;
}

.ops-table tr:hover td {
    background: #f8fafc;
}

.ops-table tr.selected-row td {
    background: #eef7f3;
}

.table-action {
    width: max-content;
    min-width: 132px;
    padding: 9px 12px;
    white-space: nowrap;
}

@media (max-width: 1100px) {
    .forms-grid {
        grid-template-columns: 1fr;
    }
}

.download-panel .status-list {
    margin-top: 16px;
}

.download-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    width: 100%;
    margin-top: 16px;
    border-radius: 7px;
    background: #18212f;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.download-action:hover {
    color: #fff;
    background: #1f7a5a;
}
.download-link {
    display: inline-flex;
    margin-top: 10px;
    color: #1f7a5a;
    font-weight: 800;
    text-decoration: none;
}

.download-link:hover {
    text-decoration: underline;
}
.credential-box {
    display: grid;
    gap: 6px;
    margin-top: 16px;
    border: 1px solid #b8d8ca;
    border-radius: 7px;
    padding: 12px;
    background: #eef8f3;
    color: #14553e;
    font-weight: 700;
}

.credential-box strong {
    color: #0f3f2e;
    font-size: 16px;
}

.register-panel {
    width: min(520px, 100%);
}

.field-help {
    margin: -7px 0 12px;
    color: #657085;
    font-size: 12px;
}

.auth-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 16px;
    margin-top: 10px;
}

.auth-links .download-link {
    margin-top: 0;
}

.link-button {
    border: 0;
    padding: 0;
    background: transparent;
    color: #1f7a5a;
    font-weight: 800;
    text-decoration: underline;
    cursor: pointer;
}

.link-button:disabled {
    cursor: default;
    opacity: .55;
}

.public-home,
.catalog-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 42px 8px 64px;
}

.public-hero,
.catalog-hero {
    border-radius: 18px;
    padding: clamp(28px, 6vw, 72px);
    background: linear-gradient(135deg, #eff8f4 0%, #ffffff 62%, #e8f0f7 100%);
    border: 1px solid #d6e7df;
}

.public-hero h1,
.catalog-hero h1 {
    max-width: 820px;
    margin: 8px 0 16px;
    color: #14251f;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.02;
    font-weight: 900;
}

.catalog-hero h1 {
    font-size: clamp(32px, 4vw, 50px);
}

.catalog-hero.compact {
    padding: clamp(26px, 4vw, 48px);
}

.public-hero > p,
.catalog-hero > p {
    max-width: 800px;
    color: #53665f;
    font-size: 17px;
    line-height: 1.65;
}

.hero-actions,
.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.primary-cta,
.secondary-cta,
.card-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 9px;
    padding: 10px 18px;
    font-weight: 850;
    text-decoration: none;
}

.primary-cta,
.card-action {
    background: #1f7a5a;
    color: #fff;
}

.primary-cta:hover,
.card-action:hover {
    background: #14553e;
    color: #fff;
}

.secondary-cta {
    border: 1px solid #b8c8c1;
    color: #18382d;
    background: #fff;
}

.trust-row span {
    border-radius: 999px;
    padding: 7px 12px;
    color: #315648;
    background: rgba(255,255,255,.72);
    font-size: 13px;
    font-weight: 800;
}

.product-grid,
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.product-card,
.price-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 280px;
    border: 1px solid #dce3ea;
    border-radius: 14px;
    padding: 24px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(24, 33, 47, .07);
}

.product-card h2,
.price-card h2 {
    margin: 10px 0;
    color: #18212f;
    font-size: 23px;
    font-weight: 850;
}

.product-card p,
.price-card p,
.price-card li {
    color: #657085;
    line-height: 1.55;
}

.product-code {
    color: #1f7a5a;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.product-card .card-action,
.price-card .card-action {
    width: 100%;
    margin-top: auto;
}

.catalog-controls {
    display: grid;
    grid-template-columns: auto minmax(230px, 360px) auto;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    border: 1px solid #dce3ea;
    border-radius: 12px;
    padding: 14px;
    background: #fff;
}

.catalog-controls label {
    color: #394456;
    font-weight: 800;
}

.billing-toggle {
    display: flex;
    justify-self: end;
    border-radius: 9px;
    padding: 3px;
    background: #edf2f5;
}

.billing-toggle button {
    border: 0;
    border-radius: 7px;
    padding: 9px 14px;
    color: #53616d;
    background: transparent;
    font-weight: 800;
}

.billing-toggle button.active {
    color: #14553e;
    background: #fff;
    box-shadow: 0 2px 8px rgba(24, 33, 47, .1);
}

.price-card.featured {
    border: 2px solid #1f7a5a;
    transform: translateY(-6px);
}

.recommended-badge {
    position: absolute;
    top: -13px;
    right: 18px;
    border-radius: 999px;
    padding: 6px 11px;
    color: #fff;
    background: #1f7a5a;
    font-size: 12px;
    font-weight: 850;
}

.price-value {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin: 8px 0;
}

.price-value strong {
    color: #14251f;
    font-size: 34px;
}

.price-value span {
    color: #657085;
}

.price-card ul {
    margin: 8px 0 22px;
    padding-left: 20px;
}

.selection-summary {
    display: grid;
    gap: 3px;
    margin-top: 12px;
    border-radius: 9px;
    padding: 12px;
    color: #14553e;
    background: #eef8f3;
}

.selection-summary span {
    font-size: 20px;
    font-weight: 850;
}

.selection-summary small {
    color: #4f6a60;
}

.billing-page {
    max-width: 1100px;
}

.billing-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.billing-summary-card,
.billing-action-card {
    border: 1px solid #dce3ea;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(24, 33, 47, .07);
}

.billing-summary-card {
    display: grid;
    gap: 6px;
    padding: 20px;
}

.billing-summary-card span,
.billing-total span {
    color: #657085;
    font-size: 13px;
    font-weight: 750;
}

.billing-summary-card strong {
    color: #18212f;
    font-size: 20px;
}

.billing-action-card {
    padding: 26px;
}

.billing-action-card h2 {
    margin: 4px 0 8px;
    color: #18212f;
}

.billing-action-card p {
    color: #657085;
    line-height: 1.55;
}

.billing-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 22px 0;
}

.billing-form-grid label {
    display: grid;
    gap: 7px;
    color: #394456;
    font-weight: 800;
}

.billing-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 16px 0;
    border-radius: 10px;
    padding: 15px;
    background: #eef8f3;
}

.billing-total strong {
    color: #14553e;
    font-size: 24px;
}

.billing-promotion-field { display: grid; gap: 7px; color: #26384c; font-weight: 800; }
.billing-promotion-field small,
.billing-promotion-apply small { color: #657581; font-weight: 650; }
.billing-promotion-apply { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 10px; padding: 14px; border: 1px solid #cddbd7; border-radius: 10px; background: #f4faf8; }
.billing-promotion-apply label { display: grid; gap: 7px; color: #26384c; font-weight: 800; }

.billing-button {
    width: 100%;
    border: 0;
}

.billing-button:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.billing-cancel-button {
    width: 100%;
    margin-top: 12px;
    border: 1px solid #c8d0db;
    border-radius: 10px;
    padding: 12px 18px;
    background: #fff;
    color: #8b2f2f;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.billing-cancel-button:hover {
    border-color: #a84242;
    background: #fff7f7;
}

.billing-cancel-button:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.billing-cancellation-notice {
    display: grid;
    gap: 4px;
    margin-top: 14px;
    border-radius: 10px;
    padding: 14px 16px;
    background: #fff1d6;
    color: #754b00;
}

.billing-cancellation-notice span {
    line-height: 1.45;
}

.billing-quote-calculating {
    background: #eef8f3;
    color: #14553e;
}

.billing-auto-quote-hint {
    display: grid;
    gap: 4px;
    margin-top: 14px;
    border: 1px solid #dce9e3;
    border-radius: 10px;
    padding: 14px 16px;
    background: #f7fbf9;
    color: #536476;
}

.billing-auto-quote-hint strong {
    color: #14553e;
}

.billing-change-card {
    margin-top: 18px;
}

.billing-current-selection {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
    border: 1px solid #dce9e3;
    border-radius: 10px;
    padding: 13px 15px;
    background: #f7fbf9;
    color: #536476;
}

.billing-current-selection strong {
    color: #14553e;
}

.billing-change-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.billing-modules-section {
    margin-top: 26px;
}

.billing-section-head h2 {
    margin: 4px 0 6px;
    color: #18212f;
}

.billing-section-head p:not(.eyebrow) {
    margin: 0 0 18px;
    color: #657085;
}

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

.billing-module-card {
    display: grid;
    gap: 16px;
    border: 1px solid #dce3ea;
    border-radius: 14px;
    padding: 22px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(24, 33, 47, .07);
}

.billing-module-card.enabled {
    border-color: #b8daca;
}

.billing-module-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.billing-module-card h3 {
    margin: 0 0 6px;
    color: #18212f;
}

.billing-module-card p {
    margin: 0;
    color: #657085;
    line-height: 1.5;
}

.billing-module-price {
    color: #14553e;
    font-weight: 850;
}

.billing-module-button {
    border: 1px solid #19815e;
    border-radius: 9px;
    padding: 12px 16px;
    background: #fff;
    color: #146447;
    font: inherit;
    font-weight: 850;
    cursor: pointer;
}

.billing-module-button:hover:not(:disabled) {
    background: #eef8f3;
}

.billing-module-button:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.form-hint.warning {
    color: #986018;
}

.admin-billing-page {
    max-width: 1440px;
}

.admin-pricing-page { max-width: 1440px; gap: 18px; }
.software-update-page { max-width: 1500px; }
.update-summary-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; margin-bottom:18px; }
.update-summary-grid .metric-tile { min-height:104px; }
.update-summary-grid .metric-tile small { display:block; margin-top:4px; color:#657085; }
.update-metric-error { border-color:#efb7b7; background:#fff8f8; }
.update-metric-error strong { color:#a62d2d; }
.rollout-control { margin-bottom:18px; }
.rollout-control h2 { margin:3px 0 4px; }
.rollout-choice-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); gap:10px; margin:18px 0 8px; }
.rollout-choice { min-height:90px; padding:13px; border:2px solid #d8e1e8; border-radius:11px; background:#fff; color:#18212f; text-align:left; cursor:pointer; }
.rollout-choice strong,.rollout-choice span { display:block; }
.rollout-choice span { margin-top:5px; color:#657085; font-size:.8rem; line-height:1.35; }
.rollout-choice.selected { border-color:#1f7a5a; background:#edf8f3; box-shadow:0 0 0 3px rgba(31,122,90,.09); }
.rollout-choice:disabled { opacity:.65; cursor:not-allowed; }
.update-safety-note { display:block; margin-top:10px; }
.update-fleet-panel { margin-bottom:18px; }
.update-device-table td { vertical-align:top; }
.update-device-table td strong,.update-device-table td span,.update-device-table td small { display:block; }
.update-device-table td span,.update-device-table td small { margin-top:4px; color:#657085; }
.update-device-table .connection-note { white-space:nowrap; }
.release-download-action { display:inline-flex; align-items:center; justify-content:center; min-height:38px; padding:8px 12px; border-radius:7px; background:#1f7a5a; color:#fff; font-weight:800; text-decoration:none; white-space:nowrap; }
.release-download-action:hover { color:#fff; background:#176146; }
.release-hash { margin-top:7px; color:#526174; font-size:.78rem; }
.release-hash summary { color:#1f7a5a; cursor:pointer; font-weight:800; }
.release-hash code { display:block; max-width:280px; margin-top:6px; color:#26364a; font-size:.72rem; overflow-wrap:anywhere; user-select:all; }
.update-row-failed td { background:#fff8f8; }
@media (max-width:1100px) { .update-summary-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .rollout-choice-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:700px) { .update-summary-grid,.rollout-choice-grid { grid-template-columns:1fr; } }

.promotion-admin-page { max-width: 1320px; gap: 18px; }
.promotion-create-panel { display: grid; gap: 16px; }
.promotion-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.promotion-form-grid > label { display: grid; gap: 7px; color: #243448; font-weight: 800; }
.promotion-kds-option { grid-template-columns: auto 1fr !important; align-items: center; padding: 13px 15px; border: 1px solid #cddbd7; border-radius: 10px; background: #f4faf8; }
.promotion-kds-option input { width: 20px; height: 20px; }
.promotion-kds-option span { display: grid; gap: 2px; }
.promotion-kds-option small { color: #62717f; font-weight: 600; }
.promotion-reveal { display: flex; justify-content: space-between; align-items: center; gap: 18px; border: 2px solid #52c9a7; background: #effbf7; }
.promotion-reveal h2 { margin: 4px 0; color: #075f49; font-family: Consolas, monospace; letter-spacing: .06em; }
.promotion-reveal-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.kds-promotion-field { display: grid; grid-template-columns: minmax(240px, 1fr) auto; align-items: end; gap: .75rem; grid-column: 1 / -1; }
.kds-promotion-field label { display: grid; gap: .35rem; font-weight: 700; }
.kds-promotion-field small { color: #65748b; font-weight: 500; }
.promotion-list-title { margin-top: 6px; }
.promotion-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.promotion-code-card { display: grid; gap: 14px; }
.promotion-code-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.promotion-code-head h3 { margin: 4px 0 0; }
.promotion-code-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.promotion-code-metrics > div { display: grid; gap: 4px; padding: 10px; border-radius: 8px; background: #f3f7fa; }
.promotion-code-metrics span { color: #617083; font-size: .78rem; font-weight: 800; }
.promotion-code-metrics strong { color: #0b2947; }
.promotion-disable-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }

@media (max-width: 800px) {
    .promotion-form-grid,
    .promotion-list { grid-template-columns: 1fr; }
    .promotion-code-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .promotion-reveal,
    .promotion-disable-row { display: grid; grid-template-columns: 1fr; }
    .billing-promotion-apply,
    .kds-promotion-field { grid-template-columns: 1fr; }
}
.pricing-admin-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pricing-editor-card, .addon-price-editor { display: grid; gap: 16px; }
.pricing-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.pricing-card-head h2 { margin: 2px 0 0; }
.price-pair, .addon-price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.price-pair label, .addon-price-grid label { display: grid; gap: 6px; font-weight: 800; color: var(--ink); }
.price-pair small { color: var(--muted); font-weight: 600; }
.money-input { display: grid; grid-template-columns: 1fr auto; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: #f8fafc; overflow: hidden; }
.money-input:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(31, 132, 99, .12); }
.money-input input { width: 100%; border: 0; outline: 0; background: transparent; padding: 13px 10px; font: inherit; font-size: 1.15rem; font-weight: 800; }
.money-input b { padding: 0 13px; font-size: 1.1rem; }
.pricing-addon-title { margin-top: 12px; }
.kds-price-examples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kds-price-examples > div { display: grid; gap: 3px; padding: 14px; border-radius: 10px; background: #eef6f2; border: 1px solid #d4e9df; }
.kds-price-examples span { color: var(--muted); }

@media (max-width: 1000px) {
    .pricing-admin-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .price-pair, .addon-price-grid, .kds-price-examples { grid-template-columns: 1fr; }
}

.admin-billing-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.billing-alert-strip {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    border: 1px solid #f0c36a;
    border-radius: 12px;
    padding: 14px 16px;
    background: #fff7e7;
    color: #754b00;
}

.billing-alert-strip strong {
    white-space: nowrap;
}

.billing-admin-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.billing-admin-metrics .metric-tile {
    display: grid;
    gap: 5px;
}

.billing-admin-metrics .metric-tile small {
    color: #657085;
    font-size: 12px;
    font-weight: 700;
}

.billing-admin-metrics .metric-warning {
    border-color: #e9bd66;
    background: #fffbf1;
}

.billing-admin-metrics .metric-error {
    border-color: #e4a0a0;
    background: #fff7f7;
}

.billing-filter-panel {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(190px, .45fr) auto auto;
    align-items: end;
    gap: 12px;
    margin-bottom: 18px;
    padding: 18px;
}

.billing-filter-button {
    min-height: 44px;
    white-space: nowrap;
}

.billing-admin-table td,
.billing-webhook-table td {
    vertical-align: top;
}

.billing-admin-table td > span,
.billing-webhook-table td > span {
    display: block;
    margin-top: 4px;
    color: #657085;
    font-size: 12px;
}

.billing-admin-table .status-pill,
.billing-webhook-table .status-pill {
    display: inline-flex;
    margin-top: 0;
}

.status-pill.error {
    background: #fde8e8;
    color: #9b2525;
}

.fiscal-progress {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .5rem;
    margin: 1rem 0;
}

.fiscal-progress span {
    padding: .75rem;
    border-radius: .65rem;
    background: #edf2f7;
    color: #5d6b7a;
    font-size: .82rem;
    font-weight: 700;
    text-align: center;
}

.fiscal-progress span.active {
    background: #e4f3ed;
    color: #086b4c;
}

.fiscal-wizard {
    max-width: 900px;
    margin: 0 auto 1.25rem;
}

.choice-card {
    display: flex;
    gap: .9rem;
    align-items: flex-start;
    padding: 1rem;
    margin: .75rem 0;
    border: 1px solid #d4dde8;
    border-radius: .75rem;
    cursor: pointer;
}

.choice-card:has(input:checked) {
    border-color: #13805d;
    box-shadow: 0 0 0 2px rgb(19 128 93 / 12%);
}

.choice-card.disabled {
    opacity: .55;
    cursor: not-allowed;
}

.choice-card span,
.choice-card small,
.cell-note {
    display: block;
}

.choice-card small,
.cell-note {
    margin-top: .2rem;
    color: #65758a;
    font-size: .78rem;
}

.check-line {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    margin: .9rem 0;
}

.wizard-actions,
.inline-actions,
.fiscal-kpis {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.wizard-actions {
    justify-content: space-between;
    margin-top: 1.25rem;
}

.fiscal-overview {
    margin-bottom: 1.25rem;
}

.fiscal-kpis {
    flex-wrap: wrap;
    padding: .75rem 0 1rem;
}

.fiscal-kpis span {
    padding: .6rem .85rem;
    border-radius: .6rem;
    background: #f2f5f8;
}

.form-field.compact {
    width: auto;
    min-width: 170px;
    margin: 0;
}

.error-text {
    color: #9f2f27;
    max-width: 32rem;
}

.inline-review {
    display: grid;
    grid-template-columns: minmax(190px, .35fr) minmax(320px, 1fr) auto;
    gap: .75rem;
    align-items: end;
    padding: 1rem 0 0;
}

@media (max-width: 760px) {
    .fiscal-progress { grid-template-columns: 1fr; }
    .inline-actions { align-items: stretch; flex-direction: column; }
    .form-field.compact { width: 100%; }
    .inline-review { grid-template-columns: 1fr; }
}

.admin-login-shell {
    background:
        radial-gradient(circle at top right, rgba(27, 128, 92, .12), transparent 38%),
        #f4f7fa;
}

.admin-login-shell .login-panel {
    border-top: 4px solid #0e7654;
}

.admin-recovery-link {
    display: inline-block;
    margin-top: 14px;
}

.admin-mfa-panel {
    width: min(520px, calc(100vw - 40px));
}

.mfa-qr {
    display: flex;
    justify-content: center;
    margin: 18px auto;
}

.mfa-qr svg {
    width: 220px;
    height: 220px;
    padding: 10px;
    background: #fff;
    border: 1px solid #d7dee8;
    border-radius: 12px;
}

.mfa-steps {
    padding-left: 22px;
    color: #4d596c;
}

.mfa-manual-key {
    display: block;
    padding: 12px;
    margin: 10px 0 18px;
    overflow-wrap: anywhere;
    text-align: center;
    background: #f2f5f8;
    border-radius: 8px;
    letter-spacing: .08em;
}

.mfa-code-field {
    font-size: 1.2rem;
    letter-spacing: .12em;
}

.mfa-help {
    margin-top: 8px;
    font-size: .9rem;
}

.rollback-guidance {
    margin: 10px 0 0;
    padding-left: 22px;
}

.rollback-guidance li + li {
    margin-top: 5px;
}

.assignment-delivery-note {
    display: block;
    margin-top: 8px;
}

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

.recovery-code-grid code {
    padding: 10px;
    text-align: center;
    background: #f2f5f8;
    border-radius: 6px;
}

.admin-staff-page {
    max-width: 1320px;
}

.admin-audit-page {
    max-width: 1480px;
}

.security-alert-page {
    max-width: 1480px;
}

.security-alert-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.security-summary-card {
    border: 1px solid #d9e1ea;
    border-radius: 14px;
    background: #fff;
    color: #172235;
    padding: 1rem;
    text-align: left;
}

.security-summary-card span,
.security-summary-card strong {
    display: block;
}

.security-summary-card strong {
    margin-top: .35rem;
    font-size: 1.7rem;
}

.security-summary-card.selected {
    border-color: #237f61;
    box-shadow: 0 0 0 2px rgba(35, 127, 97, .12);
}

.security-summary-card.critical strong {
    color: #a62d2d;
}

.security-alert-list {
    display: grid;
    gap: 1rem;
}

.security-alert-card {
    border: 1px solid #d9e1ea;
    border-left: 5px solid #d59a27;
    border-radius: 12px;
    padding: 1rem;
}

.security-alert-card.severity-high {
    border-left-color: #b73939;
}

.security-alert-heading,
.security-alert-actions,
.security-resolution {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

.security-alert-heading h3 {
    margin: .55rem 0 0;
}

.security-alert-heading time {
    color: #637083;
    white-space: nowrap;
}

.security-alert-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.security-alert-details span,
.security-alert-details strong,
.security-alert-details small {
    display: block;
}

.security-alert-details span,
.security-alert-details small {
    color: #637083;
}

.security-resolution {
    margin-top: .8rem;
    padding: .75rem;
    border-radius: 8px;
    background: #edf7f2;
}

.security-alert-actions {
    justify-content: flex-end;
    margin-top: 1rem;
}

.security-alert-actions .form-field {
    flex: 1;
    margin: 0;
}

@media (max-width: 900px) {
    .security-alert-summary,
    .security-alert-details {
        grid-template-columns: 1fr;
    }

    .security-alert-heading,
    .security-alert-actions,
    .security-resolution {
        align-items: stretch;
        flex-direction: column;
    }
}

.audit-filter-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(220px, .7fr) auto;
    gap: 14px;
    align-items: end;
    margin-bottom: 18px;
}

.audit-filter-button {
    min-height: 46px;
}

.live-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.live-kpi {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.live-kpi strong {
    color: var(--ink, #071b3d);
    font-size: clamp(1.55rem, 2vw, 2.15rem);
}

.live-kpi small {
    color: #60708a;
}

.live-terminal-table td {
    vertical-align: middle;
}

.audit-table code,
.audit-metadata {
    font-size: .78rem;
}

.audit-metadata {
    max-width: 420px;
    max-height: 240px;
    overflow: auto;
    padding: 10px;
    background: #f2f5f8;
    border-radius: 8px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.audit-more-button {
    display: block;
    margin: 18px auto 0;
}

.staff-admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 18px;
}

.admin-staff-page .surface-panel > .field-label {
    display: block;
    margin-top: 12px;
}

.admin-staff-page .surface-panel > .wide {
    margin-top: 12px;
}

.staff-security-summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0;
}

.staff-review-actions {
    display: grid;
    gap: 8px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.staff-customer-page { max-width: 1420px; }
.staff-capacity-panel { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(240px, 1.2fr) auto; align-items: center; gap: 18px; margin-bottom: 18px; }
.staff-capacity-panel > div:first-child strong, .staff-capacity-panel > div:first-child span { display: block; }
.staff-capacity-panel > div:first-child strong { margin: 5px 0 3px; font-size: 1.08rem; }
.staff-capacity-meter { height: 12px; overflow: hidden; background: #e7ecef; border-radius: 999px; }
.staff-capacity-meter span { display: block; height: 100%; background: #17805b; border-radius: inherit; transition: width .2s ease; }
.staff-customer-grid { display: grid; grid-template-columns: minmax(320px, .75fr) minmax(360px, 1.25fr); gap: 18px; margin-bottom: 18px; }
.business-catalog-grid { display: grid; grid-template-columns: minmax(280px, .65fr) minmax(440px, 1.35fr); gap: 18px; margin-bottom: 18px; }
.business-catalog-grid label { display: block; margin: 12px 0 6px; font-weight: 700; }
.business-catalog-grid .btn-primary-action, .business-catalog-grid > .surface-panel > .btn-secondary { width: 100%; margin-top: 12px; }
.catalog-fields-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.catalog-revision-panel { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.catalog-revision-panel > div { display: flex; flex-direction: column; gap: 3px; }
.catalog-revision-panel strong { font-size: 1.8rem; }
.catalog-list-panel { margin-bottom: 18px; }
.catalog-list-panel td small { display: block; color: var(--muted); margin-top: 3px; }
.staff-customer-grid label { display: block; margin: 12px 0 6px; font-weight: 700; }
.staff-customer-grid .btn-primary-action, .staff-customer-grid .btn-secondary { width: 100%; margin-top: 12px; }
.site-check-list { display: grid; gap: 8px; padding: 12px; border: 1px solid #d7dee8; border-radius: 8px; }
.site-check-list label { margin: 0; font-weight: 500; }
.catalog-guide { display:flex; align-items:center; gap:14px; margin:0 0 22px; padding:16px 20px; border:1px solid #d9e2ea; border-radius:16px; background:#fff; }
.catalog-guide-step { flex:1; display:flex; align-items:center; gap:12px; }
.catalog-guide-step > span { display:grid; place-items:center; flex:0 0 36px; height:36px; border-radius:50%; background:#edf2f6; font-weight:900; }
.catalog-guide-step.done > span { background:#1f7a5a; color:#fff; }
.catalog-guide-step div { display:flex; flex-direction:column; }.catalog-guide-step small { color:#657085; }.catalog-guide-arrow { color:#a4afba; font-size:24px; }
.catalog-editor-layout { display:grid; grid-template-columns:minmax(300px,.72fr) minmax(440px,1.28fr); gap:20px; align-items:start; }
.catalog-editor-layout.editing-single { grid-template-columns:minmax(0,980px); justify-content:center; }
.catalog-edit-navigation { display:flex; align-items:center; justify-content:center; gap:18px; max-width:980px; margin:14px auto 0; padding:12px 16px; border:1px solid #cfe1da; border-radius:12px; background:linear-gradient(135deg,#f5fbf8,#eef5f2); box-shadow:0 8px 22px rgba(31,122,90,.08); }
.catalog-edit-navigation > div { display:grid; gap:2px; min-width:0; }
.catalog-edit-navigation strong { color:#173f33; }
.catalog-edit-navigation small { color:#596b65; }
.catalog-back-button { display:inline-flex; align-items:center; gap:8px; flex:0 0 auto; min-height:42px; padding:9px 15px; border:1px solid #1f7a5a; border-radius:9px; background:#fff; color:#17694d; font-weight:850; cursor:pointer; }
.catalog-back-button:hover { background:#1f7a5a; color:#fff; transform:translateY(-1px); box-shadow:0 7px 15px rgba(31,122,90,.18); }
.catalog-back-button:disabled { opacity:.6; cursor:not-allowed; transform:none; }
.catalog-simple-editor { scroll-margin-top: 5rem; }
.catalog-edit-target { display:inline-flex; margin-top:7px; padding:5px 10px; border-radius:999px; color:#17694d; background:#e2f2ec; font-size:.78rem; font-weight:850; }
.catalog-simple-editor.editor-attention { animation: catalog-editor-attention .72s ease-in-out 2; }
@keyframes catalog-editor-attention {
    0%, 100% { border-color:#dce3ea; box-shadow:0 14px 34px rgba(24,33,47,.07); }
    50% { border-color:#49a985; box-shadow:0 0 0 6px rgba(73,169,133,.18), 0 18px 42px rgba(31,122,90,.16); }
}
@media (prefers-reduced-motion: reduce) {
    .catalog-simple-editor.editor-attention { animation:none; border-color:#49a985; box-shadow:0 0 0 5px rgba(73,169,133,.16); }
}
.catalog-simple-editor { padding:24px; }.catalog-simple-editor label { display:block; margin:15px 0 7px; font-weight:800; }
.catalog-image-library { margin-top:20px; padding:18px; border:1px solid #d8e3df; border-radius:14px; background:linear-gradient(135deg,#f6fbf9,#f3f6fb); }
.catalog-library-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.catalog-library-heading div { display:grid; gap:3px; }
.catalog-library-heading small { color:#5d6877; }
.catalog-library-heading > span { padding:5px 9px; border-radius:999px; background:#e2f2ec; color:#17694d; font-size:.75rem; font-weight:800; white-space:nowrap; }
.catalog-library-search { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; margin-top:14px; }
.catalog-library-result { display:grid; grid-template-columns:72px minmax(0,1fr) auto; gap:14px; align-items:center; margin-top:14px; padding:12px; border-radius:12px; background:#fff; border:1px solid #dce5e1; }
.catalog-library-result img { width:72px; height:72px; object-fit:contain; border-radius:9px; background:#f5f7f8; }
.catalog-library-result div { display:grid; gap:2px; }
.catalog-library-result small, .catalog-library-result span, .catalog-library-legal, .catalog-image-credit { color:#5d6877; font-size:.78rem; }
.catalog-library-result a, .catalog-image-credit a { color:#17694d; font-weight:700; }
.catalog-library-legal { display:block; margin-top:10px; }
.catalog-image-credit { margin-top:8px; }
@media (max-width:700px) { .catalog-library-search, .catalog-library-result { grid-template-columns:1fr; } .catalog-library-result img { width:96px; height:72px; } }
@media (max-width:700px) { .catalog-edit-navigation { align-items:stretch; flex-direction:column; } .catalog-back-button { justify-content:center; width:100%; } }
.catalog-step-label { color:#1f7a5a; font-size:12px; font-weight:900; letter-spacing:.08em; }.catalog-large-field { min-height:48px; font-size:17px; }
.catalog-color-palette { display:flex; flex-wrap:wrap; gap:9px; }.catalog-color-choice { width:42px; height:42px; padding:0; border:3px solid transparent; border-radius:11px; box-shadow:0 1px 4px #15243a20; cursor:pointer; }
.catalog-color-choice span { opacity:0; font-weight:900; color:#fff; text-shadow:0 1px 3px #000; }.catalog-color-choice.selected { border-color:#18212f; transform:scale(1.08); }.catalog-color-choice.selected span { opacity:1; }
.catalog-color-choice.inherit { width:58px; background:linear-gradient(135deg,#263244 0 25%,#1f7a5a 25% 50%,#2878b5 50% 75%,#d47b21 75%); }.catalog-color-choice.inherit span { opacity:1; font-size:11px; }
.catalog-category-preview { position:relative; display:grid; place-items:center; min-height:86px; margin-top:16px; border-radius:12px; overflow:hidden; font-size:18px; font-weight:900; }
.catalog-category-preview img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.catalog-category-preview.has-image strong { position:relative; z-index:1; max-width:calc(100% - 24px); padding:7px 12px; border-radius:9px; background:#000a; color:#fff; text-align:center; }
.catalog-form-actions { display:flex; gap:10px; margin-top:20px; }.catalog-form-actions .btn-primary-action { flex:1; }
.catalog-advanced { margin-top:18px; border-top:1px solid #dde4eb; padding-top:15px; }.catalog-advanced summary { color:#1f7a5a; font-weight:800; cursor:pointer; }.catalog-toggle { padding:12px; background:#f5f8fa; border-radius:10px; }
.catalog-money-field { position:relative; }.catalog-money-field input { padding-right:42px; }.catalog-money-field span { position:absolute; right:16px; top:13px; font-weight:900; }
.catalog-appearance-box { margin-top:18px; padding:18px; border:1px solid #d9e2ea; background:#f8fafb; border-radius:14px; }.catalog-appearance-box h3 { margin:0; }
.catalog-sector-box { margin-top:18px; padding:18px; border:1px solid #cfe0d9; border-radius:14px; background:linear-gradient(145deg,#f7fbf9,#eef7f3); }
.catalog-preparation-box { margin-top:18px; padding:20px; border:1px solid #b9d8cc; border-radius:14px; background:#f5fbf8; }
.catalog-preparation-choices { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.catalog-preparation-choice { display:flex; flex-direction:column; align-items:flex-start; gap:4px; min-height:76px; padding:15px 17px; border:2px solid #d5dfe5; border-radius:12px; background:#fff; color:#263244; cursor:pointer; text-align:left; }
.catalog-preparation-choice strong { font-size:1rem; }.catalog-preparation-choice span { color:#596a78; }
.catalog-preparation-choice.active { border-color:#1f7a5a; background:#eaf6f1; box-shadow:0 0 0 3px rgba(31,122,90,.08); }
.catalog-preparation-choice:disabled { opacity:.5; cursor:not-allowed; }
.catalog-preparation-config { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:16px; }
.catalog-preparation-warning { display:flex; flex-direction:column; gap:5px; margin-top:14px; padding:14px; border-radius:10px; background:#fff5db; color:#59430a; }
.catalog-preparation-warning a { color:#176a4d; font-weight:800; }
.catalog-options-box { margin-top:18px; padding:20px; border:1px solid #d9e2eb; border-radius:14px; background:#f8fafc; }
.catalog-option-presets { display:flex; flex-wrap:wrap; gap:10px; margin:14px 0; }
.catalog-option-presets button { min-height:44px; }
.catalog-options-empty { display:flex; flex-direction:column; gap:3px; padding:16px; border:1px dashed #b9c6d3; border-radius:10px; color:#526171; background:#fff; }
.catalog-option-group-card { margin-top:14px; padding:16px; border:1px solid #cad6e2; border-radius:12px; background:#fff; box-shadow:0 4px 14px rgba(25,42,62,.05); }
.catalog-option-group-head { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px; align-items:end; }
.catalog-option-group-head > div { min-width:0; }
.catalog-option-remove { border:0; background:#fff1f1; color:#982d2d; border-radius:8px; min-height:42px; padding:0 14px; font-weight:700; cursor:pointer; }
.catalog-option-simple-settings { display:flex; flex-wrap:wrap; gap:10px; margin:12px 0; }
.catalog-option-simple-settings label { display:flex; align-items:center; gap:8px; min-height:42px; padding:0 12px; border:1px solid #d8e0e8; border-radius:9px; background:#f8fafc; cursor:pointer; }
.catalog-option-value-row { display:grid; grid-template-columns:minmax(150px,1fr) minmax(150px,.65fr) auto 42px; gap:9px; align-items:center; margin-top:9px; }
.catalog-money-field.compact span { min-width:58px; font-size:.85rem; }
.catalog-option-default { display:flex; align-items:center; gap:6px; white-space:nowrap; font-size:.88rem; }
.catalog-option-icon-button { width:42px; height:42px; border:0; border-radius:8px; background:#eef2f6; color:#8a2525; font-size:1.4rem; cursor:pointer; }
.catalog-add-option { margin-top:12px; min-height:42px; border:1px solid #aebdca; border-radius:8px; background:#fff; color:#173b32; padding:0 15px; font-weight:750; cursor:pointer; }
@media (max-width:900px) { .catalog-option-value-row { grid-template-columns:1fr 1fr; } .catalog-option-default { min-height:38px; } .catalog-preparation-choices,.catalog-preparation-config { grid-template-columns:1fr; } }
.catalog-sector-heading { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; margin-bottom:14px; }
.catalog-sector-heading span { color:#147453; font-size:.72rem; font-weight:800; letter-spacing:.06em; }
.catalog-sector-heading h3 { margin:3px 0 0; }.catalog-sector-heading small { max-width:240px; color:#536779; text-align:right; }
.catalog-appearance-grid { display:grid; grid-template-columns:1fr 1fr; gap:18px; }.catalog-file-input { display:block; width:100%; padding:10px; border:1px dashed #9dabb7; border-radius:9px; background:#fff; }
.catalog-remove-image { display:block; margin-top:7px; padding:0; border:0; background:transparent; color:#9b2c2c; font-weight:800; cursor:pointer; }
.catalog-product-preview { display:grid; grid-template-columns:76px 1fr auto; align-items:center; gap:14px; min-height:82px; margin-top:18px; padding:10px 16px; border-radius:12px; box-shadow:0 5px 18px #15243a18; }.catalog-product-preview img { width:76px; height:62px; border-radius:8px; object-fit:cover; }.catalog-product-preview strong { font-size:18px; }.catalog-product-preview span { font-size:19px; font-weight:900; }
.catalog-library { margin-top:20px; }.catalog-category-cards,.catalog-product-cards { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:12px; }
.catalog-category-card,.catalog-product-card { border:0; border-radius:13px; min-height:92px; padding:15px; display:flex; flex-direction:column; align-items:flex-start; justify-content:center; gap:5px; cursor:pointer; box-shadow:0 5px 16px #15243a1c; text-align:left; transition:.15s; }.catalog-category-card:hover,.catalog-product-card:hover { transform:translateY(-2px); }.catalog-category-card strong,.catalog-product-card strong { font-size:17px; }.catalog-product-card { min-height:170px; }.catalog-category-card img,.catalog-product-card img { width:100%; height:76px; object-fit:cover; border-radius:8px; }.catalog-product-card span { font-weight:900; font-size:17px; }.catalog-category-card.inactive,.catalog-product-card.inactive { filter:grayscale(.8); opacity:.58; }
.role-summary { padding: 12px 0; border-bottom: 1px solid #e4e9ef; }
.role-summary strong, .role-summary span { display: block; }
.role-summary span { margin-top: 5px; color: #657085; font-size: .88rem; }
.role-section-title > div { display: flex; align-items: center; gap: 10px; }
.role-section-title .btn-secondary { width: auto; margin: 0; }
.role-summary-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.role-summary-head small { display: block; margin-top: 3px; color: #657085; }
.role-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.role-actions .btn-secondary, .role-actions .btn-danger { width: auto; margin: 0; padding: 7px 10px; }
.role-editor { margin: 12px 0 18px; padding: 16px; border: 1px solid #cfd9e3; border-radius: 10px; background: #f8fafb; }
.role-editor h3 { margin: 0; }
.permission-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.permission-group { min-width: 0; padding: 10px; border: 1px solid #d7dee8; border-radius: 8px; }
.permission-group legend { padding: 0 5px; font-weight: 800; }
.permission-group label { display: flex; align-items: flex-start; gap: 8px; margin: 7px 0; font-weight: 500; }
.permission-group label span, .permission-group label small { display: block; }
.permission-group label small { margin-top: 2px; color: #657085; line-height: 1.3; }
.role-editor-actions { display: flex; gap: 8px; margin-top: 12px; }
.role-editor-actions .btn-primary-action, .role-editor-actions .btn-secondary { margin: 0; }
.staff-actions { white-space: nowrap; }
.staff-actions .btn-secondary { margin-right: 6px; }
.pin-field { max-width: 220px; letter-spacing: .16em; }
.pin-reset-row td { background: #f4f8f6; }
.pin-reset-row td > div { display: flex; align-items: center; gap: 10px; }
.pin-reset-row .form-field { max-width: 190px; }

.selectable-row {
    cursor: pointer;
}

.selectable-row:hover {
    background: #f4f8f6;
}

@media (max-width: 900px) {
    .product-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .catalog-controls {
        grid-template-columns: 1fr;
    }

    .billing-toggle {
        justify-self: stretch;
    }

    .billing-toggle button {
        flex: 1;
    }

    .price-card.featured {
        transform: none;
    }

    .billing-summary-grid,
    .billing-form-grid,
    .billing-module-grid,
    .billing-admin-metrics,
    .billing-filter-panel {
        grid-template-columns: 1fr;
    }

    .admin-billing-actions,
    .billing-alert-strip {
        align-items: stretch;
        flex-direction: column;
    }

    .staff-admin-grid {
        grid-template-columns: 1fr;
    }

    .staff-customer-grid { grid-template-columns: 1fr; }
    .business-catalog-grid, .catalog-fields-row { grid-template-columns: 1fr; }
    .catalog-editor-layout, .catalog-appearance-grid { grid-template-columns: 1fr; }
    .catalog-guide { align-items: flex-start; flex-direction: column; }
    .catalog-guide-arrow { display: none; }
    .staff-capacity-panel { grid-template-columns: 1fr; }
    .permission-groups { grid-template-columns: 1fr; }
    .role-summary-head, .role-editor-actions { align-items: stretch; flex-direction: column; }
    .role-actions { justify-content: flex-start; }
    .pin-reset-row td > div { align-items: stretch; flex-direction: column; }

    .audit-filter-panel {
        grid-template-columns: 1fr;
    }
}
