/* Volt: shared styles for every page (#142, NFR-23). Layout follows the wiki wireframes. */

:root {
    --ink: #111827;
    --ink-soft: #374151;
    --muted: #6b7280;
    --line: #e5e7eb;
    --surface: #ffffff;
    --page: #f5f6fa;
    --volt: #facc15;
    --volt-strong: #eab308;
    --volt-soft: #fef9c3;
    --danger: #b91c1c;
    --danger-soft: #fee2e2;
    --info: #1e40af;
    --info-soft: #dbeafe;
    --success: #166534;
    --success-soft: #dcfce7;
    --radius: 14px;
    --radius-small: 10px;
    --shadow: 0 1px 2px rgba(17, 24, 39, 0.06), 0 8px 24px rgba(17, 24, 39, 0.06);
    --gutter: clamp(16px, 4vw, 32px);
    --ease: cubic-bezier(0.65, 0, 0.35, 1); /* ease in and out */
    --speed: 250ms;
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--page);
    color: var(--ink);
    font: 16px/1.55 var(--font);
    overflow-wrap: anywhere;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--ink); text-decoration-color: var(--volt-strong); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

/* Every hover and focus change eases in and out */
a, .link-button, .button-remove, .field-role > div label,
.field input, .field select, .field textarea {
    transition: color var(--speed) var(--ease), background-color var(--speed) var(--ease), border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease), text-decoration-color var(--speed) var(--ease);
}

:focus-visible { outline: 3px solid var(--volt); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem); }
h2 { font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.4rem); }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.page { flex: 1; padding-top: clamp(24px, 4vw, 48px); padding-bottom: 48px; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* Header and navigation */
.site-header { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 10; }
.header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 24px;
    min-height: 64px;
    padding-top: 10px;
    padding-bottom: 10px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: 0.12em;
    text-decoration: none;
}
.brand-bolt {
    display: inline-block;
    color: var(--volt);
    font-size: 1.2em;
    transition: transform 700ms var(--ease);
}
.brand:hover .brand-bolt, .brand:focus-visible .brand-bolt { transform: rotate(360deg); }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.site-nav a, .site-nav .link-button {
    color: #e5e7eb;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.95rem;
}
.site-nav a:hover, .site-nav .link-button:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.site-nav a[aria-current="page"] { color: var(--volt); background: rgba(255, 255, 255, 0.08); font-weight: 600; }
.site-nav .button-accent {
    color: var(--ink);
    background: var(--volt);
    transition: transform var(--speed) var(--ease), background-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.site-nav .button-accent:hover {
    color: var(--ink);
    background: var(--volt-strong);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(250, 204, 21, 0.35);
}
.nav-form { display: inline; margin: 0; }
.link-button { font: inherit; background: none; border: 0; cursor: pointer; }

/* Cards and sections */
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: clamp(20px, 3vw, 32px);
    margin-bottom: 24px;
}
.card-narrow { max-width: 460px; margin-left: auto; margin-right: auto; }
.card-medium { max-width: 760px; margin-left: auto; margin-right: auto; }
.card > :last-child { margin-bottom: 0; }
.page-head { margin-bottom: 24px; }
.page-head p { margin: 0; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.empty-state { border-style: dashed; box-shadow: none; text-align: center; color: var(--muted); }

/* Start page */
.hero {
    background: radial-gradient(circle at 85% 20%, rgba(250, 204, 21, 0.35), transparent 45%), var(--ink);
    color: #fff;
    border-radius: calc(var(--radius) + 6px);
    padding: clamp(28px, 6vw, 72px) clamp(20px, 5vw, 56px);
    margin-bottom: 32px;
}
.hero h1 { font-size: clamp(1.9rem, 1.2rem + 3vw, 3.25rem); max-width: 16ch; }
.hero h1 .highlight { color: var(--volt); }
.hero .lead { color: #d1d5db; font-size: clamp(1rem, 0.95rem + 0.4vw, 1.2rem); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.feature-card h2 { display: flex; align-items: center; gap: 10px; }
.feature-icon {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--volt-soft);
    font-size: 1.2rem;
}

/* Buttons */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    font: 600 1rem/1.2 var(--font);
    text-decoration: none;
    cursor: pointer;
    transition: transform var(--speed) var(--ease), color var(--speed) var(--ease), background-color var(--speed) var(--ease), border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.button:active { transform: translateY(1px); }
.button-primary { background: var(--ink); color: #fff; }
.button-primary:hover { background: var(--ink-soft); }
.button-accent { background: var(--volt); color: var(--ink); }
.button-accent:hover { background: var(--volt-strong); }
.button-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.button-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.button-outline { background: var(--surface); color: var(--ink); border-color: var(--line); }
.button-outline:hover { border-color: var(--ink); }
.button-small { padding: 8px 14px; font-size: 0.9rem; }
.button-block { width: 100%; }

/* Forms */
.form { display: grid; gap: 18px; }
.form-grid { display: grid; gap: 18px 24px; grid-template-columns: 1fr; align-items: start; }
.rating-card, .rating-card > form { display: flex; flex-direction: column; }
.rating-card > form { flex: 1; }
.rating-card button { align-self: flex-start; margin-top: auto; }
textarea[name="restaurant_comment"] { resize: none; }
.rating-field { border: 0; margin: 0; padding: 0; min-width: 0; }
.rating-field legend { padding: 0; font-weight: 600; }
.rating-stars { display: flex; }
.rating-star {
    display: grid;
    place-items: center;
    position: relative;
    width: 44px;
    height: 44px;
    cursor: pointer;
    font-size: 2rem;
    line-height: 1;
    color: var(--ink-soft);
}
.star-icon { position: relative; }
.rating-star:has(:checked) .star-icon::after,
.rating-star:has(~ .rating-star :checked) .star-icon::after { content: "★"; position: absolute; inset: 0; color: #946200; }
@media (hover: hover) {
    .rating-star:hover,
    .rating-star:has(~ .rating-star:hover) { color: #946200; }
}
.rating-field + .field { margin-bottom: 12px; }
.rating-star:has(:focus-visible) { outline: 2px solid var(--ink); border-radius: 4px; }
.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field .field-action { justify-self: start; }
.field small { color: var(--muted); font-size: 0.85rem; }
.field small ul { margin: 4px 0 0; padding-left: 18px; }
.field input:not([type="radio"]):not([type="checkbox"]), .field select, .field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: var(--radius-small);
    background: #fff;
    color: var(--ink);
    font: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.55);
}
.errorlist {
    list-style: none;
    margin: 0;
    padding: 10px 12px;
    border-radius: var(--radius-small);
    background: var(--danger-soft);
    color: var(--danger);
    font-size: 0.9rem;
}
.form-footer { margin: 0; text-align: center; color: var(--muted); }

/* Role choice as segmented buttons (wireframes: Customer / Restaurant / Courier) */
.field-role > div { display: flex; flex-wrap: wrap; gap: 8px; }
.field-role > div > div { flex: 1 1 120px; }
.field-role > div label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: var(--radius-small);
    font-weight: 600;
    cursor: pointer;
    background: #fff;
}
.field-role > div label:has(input:checked) { background: var(--ink); color: #fff; border-color: var(--ink); }
.field-role > div label:has(input:focus-visible) { outline: 3px solid var(--volt); outline-offset: 2px; }
.field-role input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; }

/* Notifications (#144): toasts slide in at the bottom right and count down before sliding out */
.toasts {
    position: fixed;
    right: var(--gutter);
    bottom: var(--gutter);
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    width: min(400px, calc(100vw - 2 * var(--gutter)));
    pointer-events: none;
}
.toast {
    --toast-color: var(--info);
    --toast-soft: var(--info-soft);
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: start;
    gap: 12px;
    width: 100%;
    padding: 14px 14px 18px 16px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-left: 4px solid var(--toast-color);
    border-radius: var(--radius-small);
    background: var(--surface);
    color: var(--ink);
    box-shadow: 0 12px 32px rgba(17, 24, 39, 0.18);
    pointer-events: auto;
    transition: transform 450ms var(--ease), opacity 450ms var(--ease);
}
.js .toast { transform: translateX(calc(100% + 2 * var(--gutter))); opacity: 0; }
.js .toast.is-visible { transform: translateX(0); opacity: 1; }
.js .toast.is-leaving { transform: translateX(calc(100% + 2 * var(--gutter))); opacity: 0; }
.toast-success { --toast-color: var(--success); --toast-soft: var(--success-soft); }
.toast-error { --toast-color: var(--danger); --toast-soft: var(--danger-soft); }
.toast-icon {
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--toast-color);
    color: #fff;
    font: 700 0.85rem/1 var(--font);
}
.toast-info .toast-icon { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 0.95rem; }
.toast-text { margin: 2px 0 0; font-size: 0.95rem; }
.toast-close {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    margin: -2px -4px 0 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--muted);
    font: 400 1.35rem/1 var(--font);
    cursor: pointer;
    transition: color var(--speed) var(--ease), background-color var(--speed) var(--ease);
}
.toast-close:hover { background: var(--toast-soft); color: var(--toast-color); }
.toast-timer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: var(--toast-color);
    opacity: 0.7;
    transform-origin: left center;
}
.js .toast.is-visible .toast-timer { animation: toast-countdown var(--toast-duration, 5000ms) linear forwards; }
.toast:hover .toast-timer, .toast:focus-within .toast-timer { animation-play-state: paused; }
@keyframes toast-countdown {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}


/* Account details */
.details { display: grid; grid-template-columns: 1fr; gap: 4px 24px; margin: 0 0 24px; }
.details dt { color: var(--muted); font-size: 0.9rem; }
.details dd { margin: 0 0 12px; font-weight: 600; }

/* Access denied */
.status-code {
    display: inline-block;
    margin: 0 0 12px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--danger-soft);
    color: var(--danger);
    font-weight: 700;
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; padding: 20px 0; }
.footer-inner p { margin: 0 0 4px; }
.footer-inner p:last-child { margin-bottom: 0; }
.footer-attribution { font-size: 0.8rem; }
.site-footer a { color: inherit; }

/* Pages added in Sprint 3: lists, menu, restaurant settings and working hours */
[hidden] { display: none !important; }
.card-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 16px; }
.card-list.grid { gap: 20px; }
.card-list > .card { margin-bottom: 0; }
.restaurant-name { font-size: 1.1rem; }
.restaurant-list { grid-template-columns: minmax(0, 1fr); }
.customer-map {
    height: 420px;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius-small);
    overflow: hidden;
}
.restaurant-details { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 12px; margin-bottom: 8px; }
.restaurant-details p { margin: 0; }
.restaurant-details .restaurant-rating { margin-left: auto; }
.restaurant-actions { border-top: 1px solid var(--line); padding-top: 12px; margin-bottom: 0; }
.card-link { display: block; text-decoration: none; color: inherit; transition: color var(--speed) var(--ease), background-color var(--speed) var(--ease), border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease); }
.card-link:hover { border-color: var(--ink); }
.card-link h2 { margin-bottom: 0.25em; }
.grid + .card, .grid + h2 { margin-top: 24px; }
.grid > .card { margin-bottom: 0; }
.form-section, #customer-location-fields { display: grid; gap: 12px; border-top: 1px solid var(--line); padding-top: 18px; }
.form-section h2 { margin: 0; }
.form-section p, #customer-location-fields p { margin: 0; }
.location-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.field-check { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.field-check input { width: 18px; height: 18px; accent-color: var(--ink); }
.field-check .errorlist { flex-basis: 100%; }
.hours { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 12px; }
.hours > legend { font-weight: 700; font-size: 1.1rem; padding: 0; margin-bottom: 4px; }
.hours > p { margin: 0; }
.hours-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.hours-day {
    border: 1px solid var(--line);
    border-radius: var(--radius-small);
    padding: 12px 14px;
    margin: 0;
    min-width: 0;
    display: grid;
    gap: 10px;
}
.hours-day > legend { font-weight: 700; padding: 0 6px; }
.hours-times { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.hours-times input { min-width: 0; padding-left: 10px; padding-right: 8px; }
.menu-item { display: grid; gap: 12px; }
.menu-item-title { margin: 0; font-size: 1.05rem; }
.inline-form { display: grid; gap: 12px; align-items: end; grid-template-columns: 1fr; }
.inline-form label { display: grid; gap: 6px; }
.button-danger { background: var(--danger-soft); color: var(--danger); }
.button-danger:hover { background: #fecaca; }
.tag-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px 4px 12px;
    border-radius: 999px;
    background: var(--volt-soft);
    font-size: 0.9rem;
}
span.tag { padding: 2px 10px; }
.tag form { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
/* One style for every remove action: cart lines, menu items and tags (#172). */
.button-remove {
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    border: 0;
    border-radius: 999px;
    padding: 4px 12px;
    background: var(--danger-soft);
    color: var(--danger);
    cursor: pointer;
}
.button-remove:hover { background: #fecaca; }
.menu-list { margin: 0; padding-left: 18px; }
.hours-list { margin-bottom: 0; }
@media (min-width: 720px) {
    .inline-form { grid-template-columns: 2fr 1fr auto; }
    .details.hours-list dd { margin: 0; }
}

/* Restaurant page: menu with "Add to cart" and the customer's cart (FR-53) */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}
.menu-order-list, .cart-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.menu-order-item, .cart-line {
    display: grid;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}
.menu-order-item:last-child, .cart-line:last-child { border-bottom: 0; padding-bottom: 0; }
.menu-order-name, .cart-line-name { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
.add-to-cart { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.quantity-input {
    width: 4.5rem;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: var(--radius-small);
    font: inherit;
    transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.quantity-input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.55); }
.quantity-input[aria-invalid="true"] { border-color: var(--danger); }
.add-to-cart-error { flex-basis: 100%; }
.cart-line { grid-template-columns: 1fr auto; align-items: center; }
.cart-line-name { grid-column: 1 / -1; }
.cart-quantity { display: inline-flex; align-items: center; gap: 8px; }
.cart-quantity form, .cart-remove { margin: 0; }
.cart-quantity-value { min-width: 2ch; text-align: center; font-weight: 700; }
.quantity-button {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    color: var(--ink);
    font: 600 1.1rem/1 var(--font);
    cursor: pointer;
    transition: border-color var(--speed) var(--ease), background-color var(--speed) var(--ease);
}
.quantity-button:hover { border-color: var(--ink); background: var(--volt-soft); }
.cart-line-total { font-weight: 700; text-align: right; }
.cart-total { margin: 16px 0 0; padding-top: 12px; border-top: 2px solid var(--ink); text-align: right; font-size: 1.1rem; }

/* Checkout and order page (FR-46) */
.cart-checkout { margin-top: 16px; }
.cart-closed { margin: 12px 0 0; }
.order-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.order-line { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.order-line:last-child { border-bottom: 0; }
/* FR-16: a history entry's details open below it; its button stays the size of a button. */
.order-line > .button { align-self: flex-start; white-space: nowrap; }
.history-details { margin-top: 8px; }
.history-details > summary { cursor: pointer; font-weight: 600; }
.history-details > p, .history-items { margin: 6px 0 0; }
.history-items { list-style: none; padding: 0; }
@media (max-width: 600px) { .order-line { flex-wrap: wrap; } }
.status-badge {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 999px;
    background: var(--info-soft);
    color: var(--info);
    font-size: 0.9rem;
}
.status-pending { background: var(--volt-soft); color: #854d0e; }
.status-delivered { background: var(--success-soft); color: var(--success); }
.status-prepared { background: #ede9fe; color: #5b21b6; }
.status-available { background: var(--success-soft); color: var(--success); }
.status-off_duty { background: var(--line); color: var(--ink-soft); }
.status-rejected, .status-canceled { background: var(--danger-soft); color: var(--danger); }
.status-open { background: var(--success-soft); color: var(--success); }
.status-closed { background: var(--danger-soft); color: var(--danger); }

/* Order actions: buttons of the same size in one row (#172) */
.order-actions { margin-top: 12px; }
.order-accept { display: grid; gap: 8px; }
.button-row { display: flex; flex-wrap: wrap; align-items: center; align-self: center; gap: 8px; margin: 0; }
.button-row > .button, .button-row > form { flex: 1 1 0; min-width: fit-content; white-space: nowrap; }
.button-row > form { display: flex; margin: 0; }
.button-row > form > .button { flex: 1; }

/* Larger screens (NFR-11: 360 px to 1920 px) */
@media (min-width: 720px) {
    .form-grid { grid-template-columns: 1fr 1fr; }
    .form-grid .field-full, .form-grid .field-role { grid-column: 1 / -1; }
    .details { grid-template-columns: max-content 1fr; }
    .details dd { margin: 0; }
}

/* Small phones */
@media (max-width: 420px) {
    .header-inner { justify-content: center; }
    .site-nav { justify-content: center; }
    .site-nav a, .site-nav .link-button { padding: 6px 9px; font-size: 0.9rem; }
    .hero-actions .button { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}

/* #193: one shared page layout */
/* B3: one way back, at the top left of the page */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 0.95rem;
    text-decoration: none;
}
.back-link::before { content: "\2190"; }
.back-link:hover { color: var(--ink); }
.back-link + .page-head { margin-top: 0; }
/* B1: a narrow page keeps its title, back link and cards in one column */
.page-narrow { max-width: calc(760px + 2 * var(--gutter)); }
/* B4: a form's own button is as wide as its label; only the one action a page exists for fills the width */
.form > .button:not(.button-block) { justify-self: start; }
.page-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
/* B7: order rows show the badge next to the number */
.order-line strong + .status-badge { margin-left: 6px; }
.order-line > div > .status-badge + .muted { margin-top: 2px; }
/* C3: the price summary reads like a receipt */
.order-summary { margin-top: 12px; text-align: right; }
.order-summary > p { margin: 0 0 4px; }
.order-summary > .cart-total { margin-top: 12px; }
/* C4: balances and earnings as a figure */
.stat { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.01em; }
/* C6: settings sections in one card */
.settings-card { display: grid; gap: 18px; }
.settings-card h2 { font-size: 1.2rem; margin: 0; }
