:root {
    --bg: #f6f2eb;
    --card: #fffdf9;
    --ink: #1e1a16;
    --title: #001C50;
    --muted: #736b62;
    --line: #d9d4ce;
    --accent: #AA1D1F;
    --accent-dark: #001C50;
    --button: #001C50;
    --button-text: #ffffff;
    --tile: #525558;
    --danger: #AA1D1F;
    --shadow: 0 18px 45px rgba(0, 28, 80, 0.10);
}

html {
    min-height: 100%;
}

body {
    min-height: 100%;
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    color: var(--accent-dark);
}

.site-shell {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--line);
    background: rgba(246, 242, 235, 0.94);
    backdrop-filter: blur(12px);
}

.navbar {
    min-height: 68px;
    padding: 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    color: var(--title);
    font-weight: 800;
    letter-spacing: 0;
}

.brand-logo {
    display: block;
    width: auto;
    max-width: 220px;
    max-height: 42px;
    object-fit: contain;
}

.claim {
    margin-left: 18px;
    color: var(--muted);
    font-size: 0.95rem;
}

.nav-link {
    color: var(--ink);
    font-weight: 600;
}

.page {
    min-height: calc(100vh - 154px);
}

.hero {
    min-height: 54vh;
    display: grid;
    align-items: end;
    padding: 64px 0 72px;
    background:
        linear-gradient(120deg, rgba(246, 242, 235, 0.92), rgba(246, 242, 235, 0.54) 48%, rgba(246, 242, 235, 0.16)),
        url("/uploads/site/scanjoy-hero.png") center/cover;
}

.hero-copy {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.hero-logo {
    display: block;
    width: min(310px, 70vw);
    height: auto;
    margin: 0 0 22px;
}

.event-logo-preview {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    min-height: 72px;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--card);
}

.event-logo-preview img {
    display: block;
    max-width: 260px;
    max-height: 90px;
    object-fit: contain;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1,
h2 {
    color: var(--title);
    letter-spacing: 0;
}

h1 {
    margin: 0;
    font-size: clamp(2.1rem, 5vw, 4rem);
    font-weight: 820;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 850;
}

.hero p:last-child {
    margin: 10px 0 0;
    color: var(--ink);
    font-size: 1.35rem;
    font-weight: 700;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.content-band {
    padding: 40px 0 56px;
}

.content-grid {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.content-grid article,
.content-narrow {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--card);
    box-shadow: var(--shadow);
}

.content-grid article {
    padding: 22px;
}

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

.event-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--card);
    box-shadow: var(--shadow);
    padding: 22px;
}

.event-card h2 {
    margin: 0 0 8px;
    font-size: 1.35rem;
}

.event-card p {
    margin: 0 0 5px;
    color: var(--muted);
}

.legal-teaser-grid a {
    font-weight: 800;
}

.content-grid h2 {
    font-size: 1.25rem;
}

.content-grid p,
.legal-copy {
    color: var(--muted);
}

.legal-text {
    white-space: pre-line;
}

.legal-payment-recipient,
.payment-recipient-note {
    border: 1px solid rgba(0, 28, 80, 0.16);
    border-radius: 8px;
    background: rgba(0, 28, 80, 0.05);
    color: var(--ink);
}

.legal-payment-recipient {
    margin-top: 22px;
    padding: 16px;
}

.legal-payment-recipient h2 {
    margin: 0 0 8px;
    font-size: 1.25rem;
}

.legal-payment-recipient p,
.payment-recipient-note {
    margin: 0;
}

.payment-recipient-note {
    padding: 10px 12px;
    font-size: 0.92rem;
}

.legal-consent {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-weight: 500;
    line-height: 1.35;
}

.legal-consent input {
    width: 18px;
    min-width: 18px;
    min-height: 18px;
    margin-top: 2px;
}

.legal-consent .legal-consent-text {
    color: var(--ink);
}

.content-narrow {
    width: min(860px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px;
}

.admin-shell,
.form-panel {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--card);
    box-shadow: var(--shadow);
}

.admin-shell {
    padding: 24px;
}

.form-panel {
    max-width: 460px;
    padding: 28px;
}

.section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.section-head h1,
.form-panel h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.content-narrow h1 {
    font-size: clamp(1.9rem, 4vw, 3rem);
}

.stack-form {
    display: grid;
    gap: 10px;
}

.wide-form {
    gap: 22px;
}

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

.form-grid > div {
    display: grid;
    gap: 7px;
}

.span-2 {
    grid-column: span 2;
}

label {
    color: var(--title);
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    padding: 10px 12px;
}

input[type="color"] {
    padding: 4px;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent);
    outline: 3px solid rgba(170, 29, 31, 0.14);
}

form span,
.validation-summary {
    color: var(--danger);
    font-size: 0.92rem;
}

.button-primary,
.button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 10px 16px;
    font-weight: 800;
}

.button-primary {
    background: var(--button);
    color: var(--button-text);
}

.button-primary:hover {
    color: var(--button-text);
    background: var(--accent);
}

.button-secondary {
    border-color: var(--line);
    background: #fff;
    color: var(--ink);
}

.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.data-table th,
.data-table td {
    padding: 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.data-table th {
    background: rgba(0, 28, 80, 0.06);
    color: var(--title);
}

.data-table td span {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
}

.empty-state {
    border: 1px dashed var(--line);
    border-radius: 8px;
    color: var(--muted);
    padding: 18px;
}

.muted-line {
    margin: 8px 0 0;
    color: var(--muted);
}

.notice {
    margin-bottom: 18px;
    border: 1px solid rgba(0, 28, 80, 0.18);
    border-radius: 8px;
    background: rgba(0, 28, 80, 0.06);
    color: var(--title);
    padding: 12px 14px;
    font-weight: 700;
}

.diagnostic-list {
    display: grid;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.65);
    padding: 10px;
}

.diagnostic-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-left: 4px solid var(--line);
    border-radius: 6px;
    padding: 8px 10px;
}

.diagnostic-row.ok {
    border-left-color: #217346;
}

.diagnostic-row.warning {
    border-left-color: var(--danger);
}

.diagnostic-row span {
    color: var(--muted);
}

.diagnostic-row strong {
    color: var(--title);
    text-align: right;
}

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

.superadmin-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0 14px;
    margin-bottom: 8px;
}

.superadmin-tabs .tab-button {
    flex: 0 0 auto;
}

.superadmin-tab-grid [data-superadmin-tab-panel] {
    display: none;
}

.superadmin-tab-grid [data-superadmin-tab-panel].active {
    display: grid;
}

.admin-block {
    display: grid;
    align-content: start;
    gap: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.45);
}

.span-admin {
    grid-column: 1 / -1;
}

.admin-block h2 {
    margin: 0;
    font-size: 1.35rem;
}

.compact-form {
    gap: 14px;
}

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

.check-grid label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 8px 10px;
}

.check-grid input {
    width: auto;
    min-height: auto;
}

.mini-list {
    display: grid;
    gap: 8px;
}

.mini-list > div {
    border-top: 1px solid var(--line);
    padding-top: 10px;
}

.mini-list span {
    display: block;
    color: var(--muted);
    font-size: 0.92rem;
}

.edit-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    border-top: 1px solid var(--line);
    padding-top: 12px;
}

.edit-card > .stack-form {
    display: none;
}

.admin-list,
.mini-list {
    display: grid;
    gap: 8px;
}

.admin-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

.admin-list-row > div:first-child {
    min-width: 0;
}

.admin-list-row strong {
    display: block;
    color: var(--title);
}

.admin-list-row span {
    display: block;
    color: var(--muted);
    font-size: 0.92rem;
}

.admin-list-row .api-key-line {
    margin-top: 4px;
    color: var(--ink);
}

.api-key-line code {
    display: inline-block;
    max-width: 100%;
    overflow-x: auto;
    vertical-align: bottom;
    color: var(--accent);
    font-size: 0.9rem;
    white-space: nowrap;
}

.code-input {
    font-family: Consolas, "Courier New", monospace;
}

.row-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.delete-form {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.button-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 1px solid rgba(170, 29, 31, 0.28);
    border-radius: 8px;
    background: #fff;
    color: var(--danger);
    padding: 10px 16px;
    font-weight: 800;
}

.row-actions .button-secondary,
.delete-form .button-danger {
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0;
}

.row-actions .button-secondary svg,
.delete-form .button-danger svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.button-danger:hover {
    background: rgba(170, 29, 31, 0.08);
}

.muted-inline {
    align-self: center;
    color: var(--muted);
    font-size: 0.92rem;
}

.product-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.product-list article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 10px;
}

.product-list img,
.product-image-placeholder {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--bg);
}

.product-image-placeholder {
    border: 1px dashed var(--line);
}

.product-list span {
    display: block;
    color: var(--muted);
    font-size: 0.92rem;
}

.product-list .product-edit-card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
}

.product-sort-handle {
    cursor: grab;
    touch-action: none;
}

.product-sort-handle:active {
    cursor: grabbing;
}

.product-sort-handle svg circle {
    fill: currentColor;
    stroke: none;
}

.product-sort-item-sorting {
    position: relative;
    z-index: 2;
    opacity: 0.58;
    box-shadow: 0 12px 28px rgba(0, 28, 80, 0.18);
}

.sponsor-admin-section {
    display: grid;
    gap: 14px;
    border-top: 1px solid var(--line);
    margin-top: 22px;
    padding-top: 18px;
}

.sponsor-admin-section h3 {
    margin: 0;
}

.sponsor-admin-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}

.sponsor-admin-list article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px;
}

.sponsor-admin-preview {
    grid-column: 1 / -1;
    aspect-ratio: 2 / 1;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.sponsor-admin-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-edit-head {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    align-items: center;
}

.product-row-summary {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.order-page {
    background: var(--bg);
    color: var(--ink);
    min-height: calc(100vh - 154px);
    padding-bottom: 34px;
}

.order-hero {
    width: min(1120px, calc(100% - 24px));
    margin: 0 auto;
    padding: 28px 0 16px;
}

.order-hero h1 {
    font-size: clamp(2rem, 6vw, 3.6rem);
}

.order-place-label {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: clamp(1.05rem, 3vw, 1.55rem);
    font-weight: 900;
    text-transform: uppercase;
}

.order-hero p:last-child {
    max-width: 720px;
    margin: 8px 0 0;
    color: var(--muted);
}

.place-choice-panel {
    width: min(760px, calc(100% - 24px));
    margin: 0 auto;
}

.place-choice-list {
    display: grid;
    gap: 10px;
}

.place-choice-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 74px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--card);
    color: var(--ink);
    padding: 14px 16px;
    box-shadow: 0 10px 24px rgba(0, 28, 80, 0.06);
    text-decoration: none;
}

.place-choice-row:hover {
    border-color: var(--accent);
}

.place-choice-row span,
.place-choice-row strong,
.place-choice-row small,
.place-choice-row em {
    display: block;
}

.place-choice-row strong {
    color: var(--title);
    font-size: 1.1rem;
}

.place-choice-row small {
    margin-top: 2px;
    color: var(--accent);
    font-weight: 800;
}

.place-choice-row em {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.92rem;
    font-style: normal;
}

.place-choice-row svg {
    width: 24px;
    min-width: 24px;
    height: 24px;
    fill: none;
    stroke: var(--accent);
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.order-layout {
    width: min(1120px, calc(100% - 24px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 18px;
    align-items: start;
}

.product-tabs {
    grid-column: 1 / -1;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.tab-button {
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--card);
    color: var(--ink);
    padding: 8px 14px;
    font-weight: 800;
    white-space: nowrap;
}

.tab-button.active {
    border-color: var(--button);
    background: var(--button);
    color: var(--button-text);
}

.product-groups {
    min-width: 0;
}

.product-group {
    display: none;
    gap: 10px;
}

.product-group.active {
    display: grid;
}

.product-tile {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--card);
    box-shadow: 0 10px 24px rgba(0, 28, 80, 0.06);
    padding: 9px;
}

.product-tile img {
    width: 74px;
    height: 74px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--bg);
}

.product-info {
    min-width: 0;
}

.product-info strong {
    display: block;
    color: var(--title);
}

.product-info p {
    margin: 2px 0 4px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.25;
}

.product-info span {
    color: var(--ink);
    font-weight: 800;
}

.sponsor-logo-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    border-top: 1px solid var(--line);
    margin-top: 8px;
    padding-top: 16px;
}

.sponsor-logo {
    width: min(240px, 100%);
    aspect-ratio: 2 / 1;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.sponsor-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-actions {
    display: grid;
    grid-template-columns: 62px 44px;
    gap: 6px;
}

.product-actions input {
    min-height: 44px;
    text-align: center;
}

.icon-button {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 8px;
    background: var(--button);
    color: var(--button-text);
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1;
}

.cart-panel {
    position: sticky;
    top: 86px;
    display: grid;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--card);
    box-shadow: var(--shadow);
    padding: 16px;
}

.cart-panel h2 {
    margin: 0;
    font-size: 1.4rem;
}

.cart-items {
    display: grid;
    gap: 8px;
}

.cart-items.empty {
    color: var(--muted);
}

.cart-row,
.cart-total {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.cart-row {
    border-bottom: 1px solid var(--line);
    padding-bottom: 8px;
}

.cart-row-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.cart-remove-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    min-width: 34px;
    height: 34px;
    border: 1px solid rgba(170, 29, 31, 0.35);
    border-radius: 8px;
    background: #fff;
    color: var(--danger);
    cursor: pointer;
}

.cart-remove-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cart-remove-button:hover {
    background: rgba(170, 29, 31, 0.08);
}

.cart-total {
    border-top: 2px solid var(--line);
    color: var(--title);
    padding-top: 12px;
    font-size: 1.15rem;
}

.order-submit {
    width: 100%;
    min-height: 52px;
    font-size: 1.05rem;
}

.admin-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-bottom: 16px;
}

.admin-area-panel {
    display: none;
}

.admin-area-panel.active {
    display: grid;
    gap: 14px;
}

.admin-subtabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-subtabs .tab-button {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
}

.compact-head {
    margin-bottom: 0;
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.filter-form select,
.filter-form input[type="search"] {
    min-width: 180px;
}

.filter-form input[type="search"] {
    flex-basis: 100%;
    min-width: min(360px, 100%);
}

.order-admin-list {
    display: grid;
    gap: 12px;
}

.pager {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    color: var(--muted);
}

.pager .disabled {
    opacity: 0.45;
    pointer-events: none;
}

.analytics-panel {
    display: grid;
    gap: 16px;
}

.segmented-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.button-secondary.active,
.segmented-links .active {
    border-color: var(--button);
    background: var(--button);
    color: var(--button-text);
}

.table-scroll {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--card);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 620px;
}

.data-table th,
.data-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.data-table th {
    color: var(--title);
    font-weight: 850;
}

.data-table th a {
    color: inherit;
}

.data-table td:not(:first-child),
.data-table th:not(:first-child) {
    text-align: right;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.metric-card {
    display: grid;
    gap: 6px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--card);
}

.metric-card span {
    color: var(--muted);
}

.metric-card strong {
    color: var(--title);
    font-size: 1.35rem;
}

.metric-card small {
    color: var(--muted);
}

.chart-panel {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--card);
}

.chart-panel svg {
    width: 100%;
    height: auto;
}

.chart-panel line {
    stroke: var(--line);
    stroke-width: 2;
}

.chart-panel polyline {
    fill: none;
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.chart-panel text {
    fill: var(--muted);
    font-size: 13px;
}

.food-line {
    stroke: var(--accent);
}

.drink-line {
    stroke: var(--title);
}

.chart-legend {
    display: flex;
    gap: 18px;
    color: var(--muted);
    font-weight: 700;
}

.chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.chart-legend i {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-food {
    background: var(--accent);
}

.legend-drink {
    background: var(--title);
}

.order-admin-card {
    display: grid;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--card);
    box-shadow: 0 10px 24px rgba(0, 28, 80, 0.06);
    padding: 14px;
}

.order-admin-head,
.order-admin-actions,
.order-admin-items > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.order-admin-head span,
.order-admin-customer,
.order-admin-items span {
    color: var(--muted);
}

.status-pill {
    border-radius: 999px;
    background: rgba(0, 28, 80, 0.08);
    color: var(--title) !important;
    padding: 6px 10px;
    font-weight: 800;
    white-space: nowrap;
}

.order-admin-items {
    display: grid;
    gap: 6px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 10px 0;
}

.order-admin-actions form {
    display: flex;
    gap: 8px;
}

.order-admin-actions select {
    min-width: 170px;
}

.order-admin-actions .print-form {
    align-items: center;
}

.icon-only {
    width: 42px;
    min-width: 42px;
    height: 42px;
    padding: 0;
}

.icon-only svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.site-footer {
    padding: 26px 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.footer-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.cash-register-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 18px;
}

.cash-register-actions button {
    min-height: 54px;
}

.cash-register-new-order {
    display: inline-flex;
    margin-top: 18px;
}

.footer-grid nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
}

@media (max-width: 720px) {
    .cash-register-actions {
        grid-template-columns: 1fr;
    }
    .claim {
        display: block;
        width: 100%;
        margin: 2px 0 0;
        font-size: 0.82rem;
    }

    .hero {
        min-height: 46vh;
        padding-bottom: 48px;
    }

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

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

    .event-card {
        flex-direction: column;
    }

    .section-head {
        flex-direction: column;
    }

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

    .admin-grid,
    .check-grid,
    .product-list {
        grid-template-columns: 1fr;
    }

    .order-layout {
        grid-template-columns: 1fr;
    }

    .cart-panel {
        position: static;
        order: 3;
    }

    .product-tile {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .product-tile img {
        width: 64px;
        height: 64px;
    }

    .product-actions {
        grid-column: 1 / -1;
        grid-template-columns: 1fr 52px;
    }

    .order-admin-head,
    .order-admin-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .order-admin-actions form {
        width: 100%;
        flex-direction: column;
    }

    .order-admin-actions .print-form {
        align-items: stretch;
    }

    .span-2 {
        grid-column: auto;
    }

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