:root {
    --bg: #f5efe6;
    --panel: #fffaf3;
    --panel-strong: #fff;
    --ink: #1f1c19;
    --muted: #6f665c;
    --line: #decfbf;
    --brand: #c65a1e;
    --brand-dark: #8d3e12;
    --accent: #177e89;
    --warning: #d69608;
    --danger: #8f5b63;
    --success: #2c7a4b;
    --shadow: 0 18px 44px rgba(85, 53, 28, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

body {
    margin: 0;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(198, 90, 30, 0.18), transparent 30%),
        radial-gradient(circle at right, rgba(23, 126, 137, 0.16), transparent 30%),
        linear-gradient(180deg, #fff8f0 0%, var(--bg) 100%);
}

h1,
h2,
h3,
h4,
strong {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
}

p {
    margin: 0;
}

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

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

.app-shell,
.login-shell,
.public-shell {
    width: min(1360px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 40px;
}

.topbar,
.panel,
.stat-card,
.main-nav,
.alert,
.login-card,
.public-header,
.public-local-card,
.payment-card,
.helper-box,
.child-card {
    background: rgba(255, 250, 243, 0.92);
    border: 1px solid rgba(222, 207, 191, 0.85);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.topbar {
    padding: 24px 28px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
}

.topbar-actions {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.system-clock {
    min-width: 172px;
    padding: 10px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(222, 207, 191, 0.88);
    display: grid;
    gap: 2px;
    text-align: right;
}

.system-clock strong {
    font-size: 1.12rem;
}

.system-clock span,
.system-clock small {
    color: var(--muted);
}

.public-body {
    min-height: 100vh;
    color: #1f2c3a;
    background:
        radial-gradient(circle at top left, rgba(39, 174, 191, 0.18), transparent 30%),
        radial-gradient(circle at top right, rgba(255, 140, 66, 0.18), transparent 28%),
        radial-gradient(circle at bottom right, rgba(255, 196, 86, 0.16), transparent 22%),
        linear-gradient(145deg, #fff8ef 0%, #f4fbff 54%, #eef7fb 100%);
}

.public-shell {
    width: min(1760px, calc(100% - 24px));
    margin: 0 auto;
    padding: 20px 0 30px;
}

.public-header {
    padding: 28px;
    margin-bottom: 18px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: end;
    flex-wrap: wrap;
}

.public-link-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.public-body .public-header,
.public-body .panel,
.public-body .stat-card,
.public-body .public-local-card,
.public-body .helper-box,
.public-body .child-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(250, 253, 255, 0.92));
    border: 1px solid rgba(112, 149, 175, 0.18);
    box-shadow: 0 22px 50px rgba(79, 103, 122, 0.14);
    color: #1f2c3a;
}

.public-body .muted,
.public-body .mini-label,
.public-body .table-note {
    color: #6f8092;
}

.public-body .eyebrow {
    color: #1b8da2;
}

.public-body input,
.public-body select,
.public-body textarea {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(112, 149, 175, 0.22);
    color: #1f2c3a;
}

.public-body input::placeholder,
.public-body textarea::placeholder {
    color: #8d9bab;
}

.public-body .countdown-box,
.public-body .empty-state {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 251, 255, 0.9));
    border: 1px solid rgba(112, 149, 175, 0.14);
}

.public-body .badge {
    background: rgba(255, 140, 66, 0.14);
    color: #b75b25;
}

.public-body .btn-ghost {
    background: rgba(27, 141, 162, 0.1);
    color: #166d7c;
}

.public-body .btn-primary {
    background: linear-gradient(135deg, #ff8f4c, #e5672c);
    color: #fffaf6;
}

.public-body .system-clock,
.live-body .system-clock {
    min-width: 196px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 251, 255, 0.92));
    border-color: rgba(112, 149, 175, 0.18);
    color: #1f2c3a;
}

.public-body .system-clock span,
.public-body .system-clock small,
.live-body .system-clock span,
.live-body .system-clock small {
    color: #6f8092;
}

.user-chip {
    background: rgba(198, 90, 30, 0.08);
    border: 1px solid rgba(198, 90, 30, 0.18);
    padding: 10px 14px;
    border-radius: 999px;
    display: grid;
    gap: 2px;
}

.user-chip span,
.eyebrow,
.muted,
.mini-label,
.table-note {
    color: var(--muted);
}

.eyebrow {
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.76rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.main-nav {
    margin: 18px 0;
    padding: 8px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.main-nav a {
    padding: 12px 16px;
    border-radius: 999px;
    color: var(--muted);
    font-weight: 700;
}

.main-nav a.active,
.main-nav a:hover {
    background: rgba(198, 90, 30, 0.12);
    color: var(--brand-dark);
}

.page-content,
.admin-grid,
.dashboard-grid,
.report-grid {
    display: grid;
    gap: 18px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: end;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

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

.stat-card {
    padding: 20px 22px;
    display: grid;
    gap: 8px;
}

.stat-card span {
    color: var(--muted);
    font-size: 0.92rem;
}

.stat-card strong {
    font-size: 1.9rem;
}

.stat-card.warning {
    background: rgba(255, 238, 201, 0.95);
}

.stat-card.danger {
    background: linear-gradient(180deg, rgba(255, 235, 238, 0.98), rgba(255, 216, 221, 0.96));
    border-color: rgba(214, 98, 109, 0.26);
}

.stat-card.danger span {
    color: #9d3845;
}

.stat-card.danger strong {
    color: #b42336;
}

.stat-card.success {
    background: rgba(223, 244, 228, 0.95);
}

.dashboard-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.9fr);
    align-items: start;
}

.product-pos-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
}

.v2-top-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.9fr);
}

.birthday-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
}

.report-grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

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

.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 18px;
}

.admin-tab {
    min-width: 118px;
    padding: 12px 16px;
    border-radius: 18px;
    border: 1px solid rgba(222, 207, 191, 0.92);
    background: rgba(255, 250, 243, 0.82);
    display: grid;
    gap: 3px;
    box-shadow: 0 10px 24px rgba(85, 53, 28, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.admin-tab:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(85, 53, 28, 0.12);
}

.admin-tab span {
    font-weight: 700;
}

.admin-tab small {
    color: var(--muted);
}

.admin-tab.active {
    color: #fff9f2;
    border-color: rgba(23, 126, 137, 0.18);
    background: linear-gradient(135deg, #177e89, #1d94a0);
}

.admin-tab.active small {
    color: rgba(255, 249, 242, 0.82);
}

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

.admin-scope-meta {
    display: grid;
    gap: 8px;
    min-width: 240px;
    color: var(--muted);
}

.admin-tab-layout {
    display: grid;
    grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
    gap: 18px;
}

.admin-tab-layout-wide {
    grid-template-columns: 1fr;
}

.wide-panel {
    grid-column: 1 / -1;
}

.panel {
    padding: 22px;
}

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

.stack-form,
.inline-form,
.compact-field,
.weekday-group,
.search-toolbar,
.product-list,
.cart-list,
.birthday-reservation-list,
.calendar-events,
.calendar-nav {
    display: grid;
    gap: 12px;
}

.inline-form {
    grid-auto-flow: column;
    grid-auto-columns: minmax(120px, auto);
    align-items: end;
}

.compact-field span,
label span {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.84);
    color: var(--ink);
}

textarea {
    resize: vertical;
}

.checkbox {
    display: flex;
    gap: 10px;
    align-items: center;
}

.checkbox input {
    width: auto;
}

.weekday-group {
    border: 1px dashed var(--line);
    padding: 12px;
    border-radius: 16px;
}

.weekday-group legend {
    padding: 0 8px;
    font-weight: 700;
}

.btn {
    border: 0;
    border-radius: 999px;
    padding: 12px 18px;
    cursor: pointer;
    transition: transform 0.16s ease, opacity 0.16s ease;
    font-weight: 700;
}

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

.btn:disabled {
    opacity: 0.48;
    cursor: not-allowed;
    transform: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff7f2;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--accent), #0f5760);
    color: #eefcfc;
}

.btn-danger {
    background: linear-gradient(135deg, #94626a, var(--danger));
    color: #fff5f6;
}

.btn-ghost {
    background: rgba(198, 90, 30, 0.1);
    color: var(--brand-dark);
}

.btn-block {
    width: 100%;
}

.alert {
    padding: 16px 18px;
    margin-bottom: 18px;
    font-weight: 700;
}

.alert.success {
    background: rgba(223, 244, 228, 0.96);
    color: #205537;
}

.alert.error {
    background: rgba(244, 226, 231, 0.96);
    color: #70444f;
}

.empty-state,
.helper-box {
    display: grid;
    gap: 8px;
    padding: 22px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.7);
}

.active-list {
    display: grid;
    gap: 14px;
}

.search-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 16px;
}

.entry-search-toolbar {
    align-items: end;
}

.search-helper {
    min-height: 100%;
    align-content: center;
}

.calendar-nav {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    align-items: center;
    justify-content: end;
}

.calendar-shell {
    overflow-x: auto;
    padding-bottom: 4px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
}

.birthday-calendar {
    min-width: 840px;
}

.calendar-header {
    text-align: center;
    font-weight: 700;
    color: var(--muted);
    padding: 8px 0;
}

.calendar-cell {
    min-height: 122px;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid rgba(222, 207, 191, 0.85);
    background: rgba(255, 255, 255, 0.72);
    display: grid;
    gap: 10px;
    align-content: start;
}

.calendar-cell.is-empty {
    background: transparent;
    border-style: dashed;
    min-height: 80px;
}

.calendar-cell.is-selected {
    background: rgba(255, 238, 201, 0.95);
    border-color: rgba(214, 150, 8, 0.45);
}

.calendar-cell-head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
}

.calendar-event {
    display: block;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(23, 126, 137, 0.08);
    color: var(--ink);
    font-size: 0.88rem;
    line-height: 1.3;
}

.product-list {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.product-card,
.cart-row,
.birthday-card {
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(222, 207, 191, 0.8);
}

.product-meta,
.cart-row-side {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.cart-list {
    min-height: 120px;
}

.cart-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.qty-button {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(198, 90, 30, 0.08);
    color: var(--brand-dark);
    font-weight: 700;
    cursor: pointer;
}

.compact-empty {
    min-height: 120px;
    align-content: center;
}

.child-card {
    padding: 18px;
    display: grid;
    gap: 14px;
}

.child-card.is-warning {
    background: rgba(255, 240, 211, 0.96);
}

.child-card.is-expired,
tr.is-expired {
    background: rgba(230, 228, 228, 0.95);
}

.child-card.is-finished,
tr.is-finished {
    background: rgba(230, 244, 235, 0.92);
}

.child-card.is-deleted,
tr.is-deleted {
    background: rgba(243, 229, 233, 0.96);
}

.public-entry-grid,
.public-local-grid {
    display: grid;
    gap: 16px;
}

.public-entry-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.public-local-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.public-local-card {
    padding: 22px;
    display: grid;
    gap: 10px;
}

.public-note {
    display: block;
    margin-top: 4px;
}

.public-child-card {
    gap: 12px;
    padding: 16px;
}

.public-card-top,
.public-card-meta {
    display: grid;
    gap: 10px;
}

.public-card-top {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
}

.public-card-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.public-card-meta strong {
    display: block;
    margin-top: 4px;
    font-size: 1rem;
}

.public-child-card .countdown-box {
    padding: 14px 16px;
    gap: 4px;
}

.public-child-card .countdown-box strong {
    font-size: 1.9rem;
    line-height: 1.05;
}

.public-body .child-card.is-active {
    background: linear-gradient(180deg, rgba(239, 253, 248, 0.98), rgba(232, 248, 242, 0.96));
    border-color: rgba(58, 173, 123, 0.22);
}

.public-body .child-card.is-warning {
    background: linear-gradient(180deg, rgba(255, 247, 227, 0.98), rgba(255, 242, 214, 0.96));
    border-color: rgba(228, 171, 57, 0.24);
}

.public-body .child-card.is-expired {
    background: linear-gradient(180deg, rgba(255, 239, 240, 0.98), rgba(255, 231, 233, 0.96));
    border-color: rgba(214, 98, 109, 0.2);
}

.public-body .child-card.is-active .badge {
    background: rgba(58, 173, 123, 0.14);
    color: #25744f;
}

.public-body .child-card.is-warning .badge {
    background: rgba(228, 171, 57, 0.16);
    color: #9a6b11;
}

.public-body .child-card.is-expired .badge {
    background: rgba(214, 98, 109, 0.14);
    color: #9d3845;
}

.live-body {
    min-height: 100vh;
    color: #17314f;
    background:
        radial-gradient(circle at top left, rgba(68, 116, 255, 0.16), transparent 28%),
        radial-gradient(circle at top right, rgba(70, 214, 199, 0.14), transparent 26%),
        linear-gradient(150deg, #f5f9ff 0%, #eef5ff 52%, #f8fbff 100%);
}

.live-shell {
    width: min(1640px, calc(100% - 24px));
    margin: 0 auto;
    padding: 18px 0 30px;
}

.live-header {
    padding: 26px 28px;
    margin-bottom: 18px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: end;
    flex-wrap: wrap;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(245, 250, 255, 0.94));
    border: 1px solid rgba(91, 123, 184, 0.14);
    border-radius: 26px;
    box-shadow: 0 18px 44px rgba(85, 112, 156, 0.14);
}

.live-panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 251, 255, 0.94));
    border: 1px solid rgba(91, 123, 184, 0.14);
}

.live-table-wrap {
    margin-top: 8px;
}

.live-table {
    min-width: 1120px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}

.live-table thead th {
    padding: 18px 20px;
    color: #f6fbff;
    font-size: 1.02rem;
    font-weight: 700;
    background: linear-gradient(135deg, #4566d8, #3657c7);
    border-bottom: 0;
}

.live-table thead th:first-child {
    border-top-left-radius: 22px;
}

.live-table thead th:last-child {
    border-top-right-radius: 22px;
}

.live-table tbody td {
    padding: 18px 20px;
    border-bottom: 1px solid rgba(197, 210, 230, 0.8);
    vertical-align: middle;
    background: rgba(255, 255, 255, 0.9);
}

.live-row.is-warning td {
    background: rgba(255, 246, 225, 0.92);
}

.live-row.is-expired td {
    background: rgba(255, 239, 241, 0.92);
}

.live-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: #143256;
    text-transform: uppercase;
}

.live-chip,
.live-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    padding: 12px 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, #f7fbff, #e7f0fb);
    border: 1px solid rgba(160, 184, 219, 0.4);
    color: #36527a;
    font-weight: 700;
    text-align: center;
}

.live-status {
    min-width: 108px;
    color: #1b7c4d;
    background: linear-gradient(180deg, #eefaf3, #dff4e7);
    border-color: rgba(114, 198, 151, 0.45);
}

.live-row.is-warning .live-status {
    color: #98620a;
    background: linear-gradient(180deg, #fff8e8, #ffefc9);
    border-color: rgba(228, 171, 57, 0.4);
}

.live-row.is-expired .live-status {
    color: #a23f4c;
    background: linear-gradient(180deg, #fff2f3, #ffdfe3);
    border-color: rgba(214, 98, 109, 0.34);
}

.live-countdown strong {
    font-size: 1.18rem;
    color: #2d5deb;
}

.live-row.is-expired .live-countdown strong {
    color: #b54255;
}

.live-row.is-warning .live-countdown strong {
    color: #ae7608;
}

.live-action-form {
    margin: 0;
}

@media (min-width: 1200px) {
    .public-entry-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1520px) {
    .public-entry-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.child-card-head,
.summary-strip,
.mini-grid,
.card-actions,
.payment-grid {
    display: grid;
    gap: 12px;
}

.child-card-head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
}

.countdown-box {
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    display: grid;
    gap: 6px;
}

.countdown-box strong {
    font-size: 1.5rem;
}

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

.mini-grid strong {
    display: block;
    margin-top: 4px;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(198, 90, 30, 0.12);
    color: var(--brand-dark);
    font-size: 0.86rem;
    font-weight: 700;
}

.card-actions {
    grid-template-columns: repeat(4, minmax(0, auto));
    align-items: end;
}

.grow {
    grid-column: 1 / span 2;
}

.table-wrap {
    overflow: auto;
    margin-top: 14px;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
}

th,
td {
    text-align: left;
    padding: 14px 12px;
    border-bottom: 1px solid rgba(222, 207, 191, 0.8);
    vertical-align: top;
}

thead th {
    color: var(--muted);
    font-size: 0.9rem;
}

.table-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.link-action {
    background: transparent;
    border: 0;
    color: var(--accent);
    cursor: pointer;
    font-weight: 700;
    padding: 0;
}

.payment-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.payment-card {
    padding: 18px;
    display: grid;
    gap: 6px;
}

.summary-strip {
    margin-top: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.summary-strip > div {
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.74);
}

.live-v2-shell {
    display: grid;
    gap: 18px;
}

.combo-layout {
    display: grid;
    grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.25fr) minmax(300px, 0.78fr);
    gap: 18px;
    align-items: start;
}

.combo-children-panel,
.combo-products-panel,
.combo-summary-panel {
    min-width: 0;
}

.combo-summary-panel {
    align-self: start;
}

.combo-summary-sticky {
    position: sticky;
    top: 18px;
    display: grid;
    gap: 16px;
}

.bundle-children-list {
    display: grid;
    gap: 12px;
}

.bundle-child-row {
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(222, 207, 191, 0.85);
}

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

.bundle-child-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}

.bundle-child-fields > label {
    min-width: 0;
}

.bundle-child-fields > label:first-child {
    grid-column: 1 / -1;
}

.combo-summary-strip {
    grid-template-columns: 1fr;
    margin-top: 0;
}

.combo-total-card {
    background: linear-gradient(135deg, rgba(23, 126, 137, 0.12), rgba(29, 148, 160, 0.18)) !important;
    border: 1px solid rgba(23, 126, 137, 0.18);
}

.combo-total-card strong {
    color: #0f5760;
}

.combo-cart-list {
    min-height: 160px;
    max-height: 360px;
    overflow: auto;
    padding-right: 4px;
}

.combo-product-list {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.combo-search-toolbar {
    grid-template-columns: 1fr;
}

@media (min-width: 1200px) {
    .bundle-child-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .combo-search-toolbar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1560px) {
    .bundle-child-fields {
        grid-template-columns: minmax(0, 1.05fr) minmax(180px, 0.9fr) minmax(180px, 0.9fr);
    }

    .bundle-child-fields > label:first-child {
        grid-column: auto;
    }
}

@media (max-width: 1480px) {
    .combo-layout {
        grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.1fr);
    }

    .combo-summary-panel {
        grid-column: 1 / -1;
    }

    .combo-summary-sticky {
        position: static;
    }

    .combo-summary-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1080px) {
    .combo-layout {
        grid-template-columns: 1fr;
    }

    .combo-children-panel,
    .combo-products-panel,
    .combo-summary-panel {
        grid-column: auto;
    }

    .combo-summary-strip {
        grid-template-columns: 1fr;
    }
}

.summary-strip span {
    color: var(--muted);
    display: block;
    margin-bottom: 4px;
}

.muted-link {
    color: var(--accent);
    font-weight: 700;
}

.login-body {
    min-height: 100vh;
    display: grid;
    align-items: center;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
}

.login-card {
    width: min(560px, 100%);
    padding: 36px;
    display: grid;
    gap: 18px;
}

.login-brand {
    display: grid;
    gap: 10px;
}

.login-logo {
    width: min(100%, 420px);
    height: auto;
    display: block;
    margin: 0 auto 6px;
}

.demo-box {
    border-radius: 18px;
    padding: 18px;
    background: rgba(23, 126, 137, 0.08);
    border: 1px solid rgba(23, 126, 137, 0.12);
    display: grid;
    gap: 6px;
}

.demo-box span {
    font-weight: 700;
    color: var(--brand-dark);
}

code {
    white-space: pre-wrap;
    font-size: 0.8rem;
}

@media (max-width: 1080px) {
    .dashboard-grid,
    .report-grid,
    .admin-grid,
    .admin-tab-layout,
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .app-shell,
    .login-shell,
    .public-shell,
    .live-shell {
        width: min(100% - 20px, 1360px);
        padding: 16px 0 28px;
    }

    .topbar,
    .panel,
    .login-card,
    .public-header,
    .public-local-card,
    .live-header {
        padding: 18px;
    }

    .inline-form,
    .card-actions {
        grid-auto-flow: row;
        grid-auto-columns: initial;
        grid-template-columns: 1fr;
    }

    .grow {
        grid-column: auto;
    }

    .child-card-head,
    .mini-grid,
    .summary-strip,
    .search-toolbar {
        grid-template-columns: 1fr;
    }

    .admin-scope-card {
        align-items: start;
    }

    .admin-scope-meta {
        min-width: 0;
    }

    .public-header,
    .public-link-bar,
    .live-header {
        justify-content: stretch;
    }

    .public-card-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .birthday-calendar {
        min-width: 720px;
    }

    .calendar-nav {
        grid-auto-flow: row;
        justify-content: stretch;
    }
}
