@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Roboto+Mono:wght@400;500;700&family=Quicksand:wght@500;600;700&family=Poppins:wght@400;600;700&family=Merriweather:wght@400;700&family=Playfair+Display:wght@600;700&family=Nunito:wght@400;700&family=Lora:wght@500;600;700&family=Space+Grotesk:wght@500;600;700&family=Comfortaa:wght@500;600;700&display=swap');

:root {
    --bg: #f4f1ea;
    --panel: #ffffff;
    --input-bg: #ffffff;
    --ink: #2b2620;
    --ink-soft: #6b6255;
    --border: #e3ddd0;
    --brand: #3f6b4f;
    --brand-dark: #2c4d38;
    --accent: #b8863b;
    --danger: #a83c3c;
    --danger-bg: #fbeaea;
    --success: #3f6b4f;
    --success-bg: #eaf3ec;
    --amber: #b8863b;
    --amber-bg: #fbf1e0;
    --info: #3d6fa8;
    --radius: 10px;
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.45;
    transition: background 0.15s ease, color 0.15s ease;
}

.brand, h1, h2.section-title, h3, .auth-card h1 {
    font-family: var(--font-heading);
}

a { color: var(--brand); }

.wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

/* ---------- top bar ---------- */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: var(--brand-dark);
    color: #fff;
    margin-bottom: 28px;
}

.topbar .brand {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.topbar .brand small {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    opacity: 0.75;
    letter-spacing: 0.04em;
}

.topbar .meta {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 0.95rem;
}

.topbar .nav {
    display: flex;
    gap: 4px;
}
.topbar .nav a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
}
.topbar .nav a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.topbar .nav a.active { background: rgba(255,255,255,0.16); color: #fff; }

.theme-form select {
    margin-bottom: 0;
    width: auto;
    padding: 5px 8px;
    font-size: 0.8rem;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
}
.theme-form select option { color: #1a1a1a; }

/* ---------- market page ---------- */
.market-columns {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    align-items: start;
}
@media (max-width: 800px) {
    .market-columns { grid-template-columns: 1fr; }
}

.listing-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.listing-table th, .listing-table td {
    padding: 10px 12px;
    text-align: left;
    font-size: 0.88rem;
    border-bottom: 1px solid var(--border);
}
.listing-table th {
    background: var(--bg);
    color: var(--ink-soft);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.listing-table tr:last-child td { border-bottom: none; }
.listing-table form { display: flex; gap: 6px; align-items: center; margin: 0; }
.listing-table input[type=number] { width: 60px; margin-bottom: 0; }
.listing-table .price { font-weight: 700; color: var(--brand-dark); }

.side-panel {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
}
.side-panel h3 { margin: 0 0 12px; font-size: 1rem; }
.side-panel + .side-panel { margin-top: 16px; }

.topbar .money {
    background: rgba(255,255,255,0.12);
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 600;
}

.topbar a.logout {
    color: #fff;
    opacity: 0.85;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.4);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
}
.topbar a.logout:hover { opacity: 1; background: rgba(255,255,255,0.1); }

/* ---------- auth pages ---------- */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.auth-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 32px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 4px 18px rgba(43, 38, 32, 0.06);
}

.auth-card h1 {
    margin: 0 0 4px;
    font-size: 1.5rem;
    color: var(--brand-dark);
}
.auth-card .sub {
    margin: 0 0 24px;
    color: var(--ink-soft);
    font-size: 0.9rem;
}

/* ---------- forms ---------- */
label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--ink-soft);
}

input[type=text], input[type=password], input[type=number], select {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.95rem;
    background: var(--input-bg);
    color: var(--ink);
    margin-bottom: 14px;
}
input:focus, select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(63,107,79,0.12);
}
/* Plain typed numbers, no spinner arrows — they take up space and
   aren't needed for these quantity/price fields. */
input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

button, .btn {
    display: inline-block;
    background: var(--brand);
    color: #fff;
    border: none;
    padding: 9px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}
button:hover, .btn:hover { background: var(--brand-dark); }
button.secondary, .btn.secondary {
    background: transparent;
    color: var(--brand);
    border: 1px solid var(--brand);
}
button.secondary:hover, .btn.secondary:hover { background: rgba(63,107,79,0.08); }
button:disabled { background: #c9c2b3; cursor: not-allowed; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }

.full-width-btn { width: 100%; padding: 11px; font-size: 1rem; margin-top: 6px; }

/* ---------- flash messages ---------- */
.flash {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.92rem;
}
.flash.success { background: var(--success-bg); color: var(--success); border: 1px solid #cfe4d5; }
.flash.error { background: var(--danger-bg); color: var(--danger); border: 1px solid #f0d3d3; }

/* ---------- section headers ---------- */
h2.section-title {
    font-size: 1.1rem;
    color: var(--brand-dark);
    margin: 36px 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border);
}
h2.section-title:first-of-type { margin-top: 0; }

/* ---------- tabs ---------- */
.tab-nav {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--border);
    margin-bottom: 24px;
}
.tab-btn {
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--ink-soft);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    padding: 10px 16px;
    cursor: pointer;
    transition: color 0.15s ease;
}
.tab-btn:hover { color: var(--ink); }
.tab-btn.active {
    color: var(--brand-dark);
    border-bottom-color: var(--brand);
}

/* ---------- building cards ---------- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.card h3 {
    margin: 0;
    font-size: 1.05rem;
    color: var(--ink);
}
.card .desc {
    margin: 0;
    font-size: 0.83rem;
    color: var(--ink-soft);
}

.badge {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 3px 9px;
    border-radius: 999px;
    white-space: nowrap;
}
.badge.active { background: var(--success-bg); color: var(--success); }
.badge.under_construction { background: var(--amber-bg); color: var(--amber); }
.badge.level { background: #eef0e9; color: var(--ink-soft); }

.status-line {
    font-size: 0.85rem;
    color: var(--ink-soft);
    background: #f8f6f0;
    border-radius: 6px;
    padding: 8px 10px;
}
.status-line strong { color: var(--ink); }

.countdown strong { font-variant-numeric: tabular-nums; color: var(--brand-dark); }
.countdown.ready strong { color: var(--success); }
.countdown-eta { font-size: 0.82em; color: var(--ink-soft); font-weight: 400; }

.progress-bar {
    height: 5px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 5px;
    max-width: 220px;
}
.progress-fill {
    height: 100%;
    background: var(--brand);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.card-actions { margin-top: auto; padding-top: 6px; border-top: 1px dashed var(--border); }
.card-actions form { margin-bottom: 8px; }
.card-actions form:last-child { margin-bottom: 0; }

/* The three building management actions (Upgrade / Move / Demolish)
   sit in one wrapping row rather than stacking vertically. */
.building-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.building-action-row form { margin-bottom: 0; }

.cost-line {
    font-size: 0.78rem;
    color: var(--ink-soft);
    margin-bottom: 6px;
}

.inline-form { display: flex; gap: 8px; align-items: center; }
.inline-form select, .inline-form input[type=number] { margin-bottom: 0; }
.inline-form input[type=number] { width: 70px; }
.town-name-form { margin-bottom: 4px; }
.town-name-form input[type=text] { margin-bottom: 0; width: 220px; }

/* ---------- recipe help tooltip ---------- */
.recipe-help {
    display: inline-block;
    margin-left: 6px;
    vertical-align: middle;
}
.recipe-help summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--border);
    color: var(--ink-soft);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}
.recipe-help summary::-webkit-details-marker { display: none; }
.recipe-help summary:hover { background: var(--brand); color: #fff; }
.recipe-help[open] summary { background: var(--brand); color: #fff; }
.recipe-help-body {
    margin-top: 8px;
    padding: 10px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--ink-soft);
}
.recipe-help-body div { margin-bottom: 4px; }
.recipe-help-body div:last-child { margin-bottom: 0; }

/* ---------- town map ---------- */
.town-map {
    display: grid;
    gap: 6px;
    margin-bottom: 20px;
    max-width: 640px;
}
.town-map.move-mode {
    outline: 3px dashed var(--brand);
    outline-offset: 8px;
    border-radius: 8px;
}
.town-map.move-mode .plot {
    cursor: pointer;
}
.town-map.move-mode .plot:hover {
    outline: 2px solid var(--brand);
    outline-offset: -2px;
}
.plot {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--ink-soft);
    border: 1px dashed var(--border);
    background: var(--panel);
    transition: transform 0.1s ease, background 0.1s ease;
}
.plot:hover { transform: scale(1.06); }
.plot.empty { color: var(--border); font-size: 1.1rem; font-weight: 400; }
.plot.empty:hover { background: var(--success-bg); color: var(--success); border-style: solid; }
.plot.selected {
    background: var(--amber-bg);
    color: var(--amber);
    border: 1px solid var(--amber);
    font-size: 1.1rem;
}
.plot.occupied {
    border-style: solid;
    border-color: var(--border);
    background: var(--panel);
    position: relative;
}
/* Idle and working are the "nothing to see here" states — most of a
   built-out town sits in one of these most of the time, so they stay
   visually quiet (icon on a plain background) rather than painting the
   whole square. A small corner dot still shows the status for anyone
   checking, without dominating the map. */
.plot.occupied.activity-idle::before,
.plot.occupied.activity-working::before {
    content: '';
    position: absolute;
    top: 3px;
    right: 3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1.5px solid var(--panel);
}
.plot.occupied.activity-idle::before { background: var(--success); }
.plot.occupied.activity-working::before { background: var(--amber); }

/* Ready-to-collect and busy are the states worth noticing at a glance —
   one means money or goods are sitting there waiting, the other means
   the building can't be used right now — so these two get the full
   solid-color treatment instead. */
.plot.occupied.activity-ready {
    background: var(--info);
    border-color: var(--info);
    color: #fff;
}
.plot.occupied.activity-busy {
    background: var(--danger);
    border-color: var(--danger);
    color: #fff;
}

/* Custom hover tooltip — richer than the plain browser title, and
   consistent styling across themes. Pure CSS, no JS: the tooltip text
   lives in data-tooltip (newline-separated), shown via ::after. */
.plot.occupied[data-tooltip] {
    overflow: visible;
}
.plot.occupied[data-tooltip]::after {
    content: attr(data-tooltip);
    white-space: pre-line;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--ink);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
    text-align: center;
    line-height: 1.5;
    padding: 8px 12px;
    border-radius: 6px;
    width: max-content;
    max-width: 220px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.12s ease;
    z-index: 20;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.plot.occupied[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
}
.town-map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: -8px 0 20px;
    font-size: 0.78rem;
    color: var(--ink-soft);
}
.town-map-legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.legend-dot.activity-idle { background: var(--success); }
.legend-dot.activity-working { background: var(--amber); }
.legend-dot.activity-ready { background: var(--info); }
.legend-dot.activity-busy { background: var(--danger); }

/* Building detail modal — opened by clicking an occupied plot on the
   Town Map. Every building's card lives in the page already (hidden),
   so opening it is just a class toggle — no extra request needed. */
.building-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.building-modal-overlay.open {
    display: flex;
}
.building-modal-content {
    position: relative;
    background: var(--bg);
    border-radius: var(--radius);
    max-width: 420px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    padding: 44px 4px 4px;
}
.building-modal-content .card {
    border: none;
    border-radius: var(--radius);
}
.building-modal-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border: none;
    background: var(--panel);
    color: var(--ink-soft);
    border-radius: 50%;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    z-index: 1;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.building-modal-close:hover { color: var(--ink); }

@media (max-width: 640px) {
    .building-modal-overlay {
        padding: 0;
        align-items: flex-end;
    }
    .building-modal-content {
        max-width: 100%;
        max-height: 92vh;
        border-radius: var(--radius) var(--radius) 0 0;
    }
}

.plot.locked {
    cursor: not-allowed;
    background: repeating-linear-gradient(45deg, var(--bg), var(--bg) 4px, var(--border) 4px, var(--border) 5px);
    color: var(--ink-soft);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* ---------- footer ---------- */
.site-footer {
    text-align: center;
    padding: 24px 20px 32px;
    color: var(--ink-soft);
    font-size: 0.8rem;
    max-width: 1080px;
    margin: 0 auto;
}
.auth-page .site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
}

/* ---------- resource icons ---------- */
.resource-icon {
    vertical-align: middle;
    margin-right: 2px;
    position: relative;
    top: -1px;
}

/* ---------- inventory table ---------- */
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
}
.inv-item {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
}
.inv-item .qty { font-weight: 700; color: var(--brand-dark); }
.empty-note { color: var(--ink-soft); font-size: 0.88rem; font-style: italic; }

/* ============================================================
   THEMES — each one overrides the CSS variables + fonts declared
   in :root. Applied via body.theme-<name>, set from the logged-in
   user's saved preference.
   ============================================================ */

/* ---------- Industrial: steel grays + blues, monospace headings ---------- */
body.theme-industrial {
    --bg: #e9ebee;
    --panel: #ffffff;
    --input-bg: #ffffff;
    --ink: #20242b;
    --ink-soft: #5b6472;
    --border: #d3d9e0;
    --brand: #4a5b6e;
    --brand-dark: #303c48;
    --accent: #8a94a3;
    --danger: #a83c3c;
    --danger-bg: #f6e3e3;
    --success: #3a6d6f;
    --success-bg: #e2eef0;
    --amber: #9c7a3c;
    --info: #5b8fd4;
    --amber-bg: #f0e9d8;
    --font-body: 'Inter', sans-serif;
    --font-heading: 'Roboto Mono', monospace;
}

/* ---------- Sunset: coral, plum, warm peach, rounded headings ---------- */
body.theme-sunset {
    --bg: #fff5f0;
    --panel: #ffffff;
    --input-bg: #ffffff;
    --ink: #3a2530;
    --ink-soft: #8a6b78;
    --border: #f3ddd0;
    --brand: #d9647a;
    --brand-dark: #b8455f;
    --accent: #e2965a;
    --danger: #b8455f;
    --danger-bg: #fbe6ea;
    --success: #c77a3a;
    --success-bg: #fdece0;
    --amber: #a05ca8;
    --info: #4a90c4;
    --amber-bg: #f5e6f5;
    --font-body: 'Inter', sans-serif;
    --font-heading: 'Quicksand', sans-serif;
}

/* ---------- Midnight: dark mode, navy + teal neon accent ---------- */
body.theme-midnight {
    --bg: #12141c;
    --panel: #1c1f2b;
    --input-bg: #262a38;
    --ink: #e6e8f0;
    --ink-soft: #9aa0b4;
    --border: #2e3342;
    --brand: #4fc3b8;
    --brand-dark: #379188;
    --accent: #f0c675;
    --danger: #e0708a;
    --danger-bg: #3a1a24;
    --success: #4fc3b8;
    --success-bg: #163330;
    --amber: #e0b872;
    --info: #7c8ce8;
    --amber-bg: #3a2f1a;
    --font-body: 'Inter', sans-serif;
    --font-heading: 'Poppins', sans-serif;
}
body.theme-midnight .status-line { background: #232838; }
body.theme-midnight .inv-item { background: var(--panel); }

/* ---------- Harvest: rust, mustard, deep brown, serif headings ---------- */
body.theme-harvest {
    --bg: #f7f0e3;
    --panel: #fffaf0;
    --input-bg: #ffffff;
    --ink: #3a2418;
    --ink-soft: #8a6f57;
    --border: #e6d5b8;
    --brand: #a1472e;
    --brand-dark: #7a341f;
    --accent: #c98a2c;
    --danger: #a1472e;
    --danger-bg: #f6e3dc;
    --success: #6b7f3f;
    --success-bg: #eef2e0;
    --amber: #c98a2c;
    --info: #4a7ba8;
    --amber-bg: #f7ecd6;
    --font-body: 'Merriweather', serif;
    --font-heading: 'Playfair Display', serif;
}

/* ---------- Ocean: blues + teals, clean geometric headings ---------- */
body.theme-ocean {
    --bg: #eef5f7;
    --panel: #ffffff;
    --input-bg: #ffffff;
    --ink: #1c2e33;
    --ink-soft: #5c7680;
    --border: #d3e4e8;
    --brand: #1f7a8c;
    --brand-dark: #145764;
    --accent: #e0a458;
    --danger: #b8455f;
    --danger-bg: #f6e3e6;
    --success: #2f9e8f;
    --success-bg: #e3f5f1;
    --amber: #e0a458;
    --info: #8a6fc4;
    --amber-bg: #fbf0e0;
    --font-body: 'Inter', sans-serif;
    --font-heading: 'Nunito', sans-serif;
}

/* ---------- Forest: deep greens, mossy browns, natural serif headings ---------- */
body.theme-forest {
    --bg: #f0f5ee;
    --panel: #ffffff;
    --input-bg: #ffffff;
    --ink: #24302a;
    --ink-soft: #6b7d68;
    --border: #dde8d8;
    --brand: #2f6b3f;
    --brand-dark: #1f4a2a;
    --accent: #c9832c;
    --danger: #a8462f;
    --danger-bg: #f5e2dc;
    --success: #4f7942;
    --success-bg: #e6f0e0;
    --amber: #c9832c;
    --info: #3d7ab5;
    --amber-bg: #f7ecd6;
    --font-body: 'Inter', sans-serif;
    --font-heading: 'Lora', serif;
}

/* ---------- Space: deep cosmic navy, violet + cyan glow, geometric sci-fi headings ---------- */
body.theme-space {
    --bg: #0a0e1a;
    --panel: #141a2e;
    --input-bg: #1c2540;
    --ink: #e4e6f5;
    --ink-soft: #8890b0;
    --border: #2a3252;
    --brand: #8b5cf6;
    --brand-dark: #6d3fd1;
    --accent: #4fd8e8;
    --danger: #e0567a;
    --danger-bg: #2e1420;
    --success: #4fd8a8;
    --success-bg: #0f2e28;
    --amber: #f0c04f;
    --info: #6fa8f0;
    --amber-bg: #332810;
    --font-body: 'Inter', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
}
body.theme-space .status-line { background: #1c2540; }
body.theme-space .inv-item { background: var(--panel); }

/* ---------- Beach: warm sand, turquoise + coral, breezy rounded headings ---------- */
body.theme-beach {
    --bg: #fdf6e8;
    --panel: #ffffff;
    --input-bg: #ffffff;
    --ink: #3a3020;
    --ink-soft: #8a7d5c;
    --border: #f0e4c8;
    --brand: #2ba0a8;
    --brand-dark: #1f7a80;
    --accent: #e8825a;
    --danger: #d85f4f;
    --danger-bg: #faeae5;
    --success: #4fae8a;
    --success-bg: #e2f2ea;
    --amber: #e0a838;
    --info: #4a7fc9;
    --amber-bg: #faf0d8;
    --font-body: 'Inter', sans-serif;
    --font-heading: 'Comfortaa', sans-serif;
}
