/*
 * Kork & Kapsel. Plain CSS, no build step.
 *
 * The idea: products are bottles. Each one is drawn in the shape of its type and filled with the colour of the
 * drink; the front page opens on a shelf of them. Everything else stays quiet: bottle-green ink on cool paper,
 * one typeface (Archivo) used narrow for names and headings like a label, normal width for reading.
 */

@font-face {
  font-family: "Archivo";
  src: url("/static/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --paper: #f1f3ee;
  --label: #ffffff;
  --ink: #262626;
  --muted: #5f665f;
  --line: #d5dad1;
  --glass: #23412f;
  --glass-soft: #e2e9e2;
  --cork: #b9895a;
  --cork-dark: #8a5f33;
  --danger: #a3261b;
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #151b17;
    --label: #1c241f;
    --ink: #e8ebe5;
    --muted: #a2aaa2;
    --line: #2e3831;
    --glass: #a8cdb3;
    --glass-soft: #24322a;
    --cork: #c99b6b;
    --cork-dark: #d7b088;
    --danger: #ff8a7f;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html.js .no-js-only { display: none; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--glass); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3 { font-stretch: 72%; font-weight: 780; letter-spacing: -0.005em; color: var(--ink); }
h1 { font-size: clamp(2rem, 5vw, 2.9rem); line-height: 1.02; margin: 0.4rem 0 0.75rem; }
h2 { font-size: 1.45rem; line-height: 1.1; margin: 0; }
h3 { font-size: 1.05rem; margin: 0 0 0.4rem; }
p { margin: 0.5rem 0; max-width: 68ch; }
section { margin: 2.5rem 0; }

.icon { width: 1.15em; height: 1.15em; vertical-align: -0.2em; flex: none; }
.icon-wrap { display: inline-flex; }
:focus-visible { outline: 2px solid var(--glass); outline-offset: 2px; }

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

/* ---------- Header, footer, tab bar ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: baseline;
  gap: 2rem;
  padding: calc(0.85rem + env(safe-area-inset-top, 0px)) max(1.25rem, env(safe-area-inset-right, 0px)) 0.7rem max(1.25rem, env(safe-area-inset-left, 0px));
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-stretch: 68%;
  font-weight: 850;
  font-size: 1.45rem;
  letter-spacing: 0.01em;
  color: var(--glass);
  text-decoration: none;
  white-space: nowrap;
}
.site-nav { display: flex; gap: 1.4rem; flex: 1; }
.site-nav a { color: var(--ink); text-decoration: none; padding: 0.2rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--line); }
.site-nav a.active { border-bottom-color: var(--glass); color: var(--glass); font-weight: 600; }
.account { margin-left: auto; }
.account-link { color: var(--ink); text-decoration: none; }
.account-link.active { color: var(--glass); font-weight: 600; }

main {
  max-width: 70rem;
  margin: 0 auto;
  padding: 1.25rem max(1.25rem, env(safe-area-inset-left, 0px)) 3rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
  padding: 1.5rem 1.25rem 2rem;
}
.site-footer p { margin: 0.5rem auto; text-align: center; }
.footer-links { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }
.footer-links a { color: var(--ink); }

.tab-bar { display: none; }

@media (max-width: 48rem) {
  .site-nav { display: none; }
  .site-header { gap: 0.75rem; align-items: center; }
  .tab-bar {
    display: flex;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    height: calc(60px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--paper);
    border-top: 1px solid var(--line);
  }
  .tab-bar a {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    color: var(--muted); text-decoration: none; font-size: 0.72rem;
  }
  .tab-bar a .icon { width: 22px; height: 22px; }
  .tab-bar a.active { color: var(--glass); font-weight: 650; }
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  font: inherit; font-weight: 600; line-height: 1.2;
  padding: 0.62rem 1rem;
  border-radius: 4px;
  border: 1px solid var(--glass);
  background: var(--glass); color: var(--paper);
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.button:hover { filter: brightness(1.15); }
.button.secondary { background: transparent; color: var(--glass); }
.button.secondary.on { background: var(--glass-soft); }
.button.small { padding: 0.35rem 0.7rem; font-size: 0.875rem; }
.button.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.button:disabled { opacity: 0.5; cursor: not-allowed; }
form.inline { display: inline; margin: 0; }

/* The quiet per-row action: "+ Samling", "Rediger" */
.add {
  font: inherit; font-size: 0.82rem; line-height: 1.2;
  padding: 0.3rem 0.55rem; border-radius: 3px;
  border: 1px solid var(--line); background: var(--label); color: var(--ink);
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.add:hover { border-color: var(--glass); color: var(--glass); }
.quick-add { display: flex; gap: 0.3rem; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.quick-add .ask { font-size: 0.8rem; color: var(--muted); width: 100%; text-align: right; }
.added { color: var(--glass); font-weight: 600; font-size: 0.82rem; }

/* ---------- Forms ---------- */

input, select, textarea {
  font: inherit; color: inherit;
  background: var(--label);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.6rem 0.75rem;
  width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--glass); outline: none; box-shadow: 0 0 0 1px var(--glass); }
input[type="checkbox"], input[type="radio"] { width: auto; accent-color: var(--glass); }
textarea { resize: vertical; }
.stack { display: flex; flex-direction: column; gap: 0.9rem; }
.row { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.row > * { flex: 1 1 10rem; }
.row > .grow { flex: 3 1 14rem; }
.field { display: flex; flex-direction: column; gap: 0.3rem; }
.field .label { font-size: 0.875rem; font-weight: 600; color: var(--muted); }
.checkbox { display: flex; gap: 0.5rem; align-items: center; padding: 0.2rem 0; }
fieldset { border: 1px solid var(--line); border-radius: 6px; padding: 0.75rem 1rem 1rem; margin: 0; display: flex; flex-direction: column; gap: 0.6rem; background: var(--label); }
legend { font-weight: 650; padding: 0 0.35rem; }

.search-field {
  display: flex; align-items: center; gap: 0.5rem;
  max-width: 40rem; margin: 1.25rem 0 0;
  padding: 0.3rem 0.3rem 0.3rem 0.9rem;
  background: var(--label); border: 1px solid var(--line); border-radius: 6px;
}
.search-field:focus-within { border-color: var(--glass); box-shadow: 0 0 0 1px var(--glass); }
.search-field > .icon-wrap { color: var(--muted); }
.search-field input { border: 0; background: transparent; padding: 0.55rem 0.2rem; font-size: 1.05rem; box-shadow: none; }
#explore .search-field { max-width: none; margin: 0 0 1rem; }

/* ---------- Front page ---------- */

.intro { margin: 1.5rem 0 2rem; }
.intro h1 { font-size: clamp(2.6rem, 8vw, 4.6rem); font-stretch: 64%; font-weight: 820; line-height: 0.95; }
.lead { font-size: 1.12rem; color: var(--muted); }

/* The shelf: the one place the design raises its voice */
.shelf { margin: 0 0 2.75rem; }
.shelf-row {
  list-style: none; margin: 0; padding: 0 0.25rem;
  display: flex; gap: 0.15rem; align-items: flex-end;
  overflow-x: auto; scrollbar-width: thin;
}
.shelf-row li { flex: 1 0 auto; }
/* Wide screens: the whole shelf fits; narrow ones scroll sideways */
@media (min-width: 64rem) { .shelf-row li { flex: 1 1 0; min-width: 0; } .shelf-bottle { min-width: 0; } }
.shelf-bottle {
  display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
  min-width: 4rem; padding: 0.5rem 0.15rem 0.6rem;
  color: var(--ink); text-decoration: none; text-align: center;
}
.shelf-bottle .bottle { color: var(--ink); transition: transform 0.2s ease; }
.shelf-bottle:hover .bottle, .shelf-bottle:focus-visible .bottle { transform: translateY(-5px); }
.shelf-label { font-size: 0.78rem; font-stretch: 75%; font-weight: 600; line-height: 1.15; max-width: 5.5rem; }
.shelf-bottle .count { font-size: 0.72rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.shelf-board {
  height: 12px; margin-top: -4px;
  background: linear-gradient(var(--cork), var(--cork-dark));
  border-radius: 2px;
  box-shadow: 0 6px 10px -6px rgba(60, 40, 20, 0.45);
}

.bottle { width: 18px; height: 48px; flex: none; color: var(--ink); }
.bottle-lg { width: 30px; height: 80px; }
/* On the shelf the bottles keep their real proportions: beer and sake shorter, spirits squat, champagne tall */
.shelf .bottle-lg.bottle-sparkling { height: 86px; width: 32px; }
.shelf .bottle-lg.bottle-beer { height: 62px; width: 23px; }
.shelf .bottle-lg.bottle-spirits { height: 66px; width: 30px; }
.shelf .bottle-lg.bottle-round { height: 54px; width: 24px; }
.bottle-xl { width: 64px; height: 170px; }

.summary { font-size: 1.08rem; padding: 1rem 1.2rem; background: var(--label); border: 1px solid var(--line); border-radius: 6px; }
.summary p { margin: 0.3rem 0; }

.onboarding { padding: 1.2rem; border: 1px solid var(--line); border-radius: 6px; background: var(--label); }
.interest-list { display: flex; flex-wrap: wrap; gap: 0.15rem 1.25rem; margin-top: 0.75rem; }
.interest-list .option { width: auto; }

.home-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 3.5rem; align-items: start; }
.home-columns > section { margin: 0; }
@media (max-width: 48rem) { .home-columns { grid-template-columns: 1fr; gap: 0; } .home-columns > section { margin: 2rem 0; } }

.signup { border-top: 1px solid var(--line); padding-top: 2rem; }
.signup h2 { margin-bottom: 0.25rem; }

.section-header { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 0.8rem; }
.section-header .more { white-space: nowrap; font-size: 0.92rem; }

/* Food as a menu card: dish, dotted leader, count */
.menu { list-style: none; margin: 0; padding: 0; columns: 2 12rem; column-gap: 2rem; }
.home-food .menu { columns: 1; }
.menu li { break-inside: avoid; }
.menu-line { display: flex; align-items: baseline; gap: 0.4rem; padding: 0.32rem 0; color: var(--ink); text-decoration: none; }
.menu-line .dish { font-size: 1.05rem; }
.menu-line .leader { flex: 1; border-bottom: 1px dotted var(--muted); transform: translateY(-0.25em); opacity: 0.6; }
.menu-line .count { color: var(--muted); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.menu-line:hover .dish, .menu-line.active .dish { color: var(--glass); text-decoration: underline; text-underline-offset: 0.2em; }

/* ---------- Product rows ---------- */

.shelf-list { border-top: 1px solid var(--line); }
.item { display: flex; align-items: flex-start; gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.item-link { flex: 1; display: flex; gap: 0.9rem; color: var(--ink); text-decoration: none; min-width: 0; }
.item-link:hover .item-name { color: var(--glass); text-decoration: underline; text-underline-offset: 0.18em; }
.item-text { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; padding-top: 0.1rem; }
.item-name { font-stretch: 85%; font-weight: 650; font-size: 1.05rem; line-height: 1.25; }
.item-desc { color: var(--ink); font-size: 0.92rem; }
.item-detail { color: var(--muted); font-size: 0.85rem; }
.item-food { color: var(--glass); font-size: 0.85rem; }
.item-detail.gone { color: var(--cork-dark); }
.item-end { display: flex; flex-direction: column; align-items: flex-end; gap: 0.45rem; }
.price { font-weight: 650; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rating { margin-left: 0.4rem; color: var(--cork-dark); letter-spacing: 0.05em; }
.status { font-size: 0.82rem; font-weight: 600; margin-top: 0.15rem; }
.status.ready { color: var(--glass); }
.status.soon { color: var(--cork-dark); }

/* ---------- Explore ---------- */

.explore-layout { display: grid; grid-template-columns: 15.5rem minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.filters { position: sticky; top: 4.5rem; max-height: calc(100vh - 5.5rem); overflow: auto; padding-right: 0.5rem; }
.filters > summary { display: none; }
.filter-group { margin-bottom: 1.4rem; }
.filter-group .sub-group { margin: 0.35rem 0 0 1.1rem; padding-left: 0.6rem; border-left: 1px solid var(--line); }
.options { display: flex; flex-direction: column; }

.option {
  display: flex; align-items: center; gap: 0.55rem; width: 100%;
  padding: 0.22rem 0; background: none; border: 0; font: inherit; text-align: left;
  color: var(--ink); text-decoration: none; cursor: pointer; font-size: 0.95rem;
}
.option .box {
  width: 14px; height: 14px; flex: none; border: 1.5px solid var(--muted); border-radius: 2px; background: var(--label);
}
.option.active .box {
  border-color: var(--glass); background: var(--glass);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 7.2l2.6 2.6L11 4.4' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E");
}
.option .drop { width: 9px; height: 9px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18); }
.option .option-label { flex: 1; }
.option .count { color: var(--muted); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.option:hover .option-label { color: var(--glass); text-decoration: underline; text-underline-offset: 0.18em; }
.option.active .option-label { font-weight: 600; }

.segmented { display: inline-flex; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; margin-bottom: 0.5rem; }
.segmented a { padding: 0.3rem 0.6rem; font-size: 0.85rem; color: var(--ink); text-decoration: none; border-right: 1px solid var(--line); background: var(--label); }
.segmented a:last-child { border-right: 0; }
.segmented a.active { background: var(--glass); color: var(--paper); }

.active-filters { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin-bottom: 1rem; }
.tag {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.22rem 0.5rem; border: 1px solid var(--glass); border-radius: 3px;
  color: var(--glass); text-decoration: none; font-size: 0.88rem; background: var(--label);
}
.tag .x { font-size: 1rem; line-height: 1; }
.tag:hover { background: var(--glass-soft); }
.active-filters .clear { font-size: 0.88rem; margin-left: 0.3rem; }

.result-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 0.6rem; }
.result-count { font-weight: 650; margin: 0; }
.sort select { width: auto; padding: 0.35rem 0.5rem; }
.follow-keyword {
  display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap;
  padding: 0.7rem 0.9rem; margin-bottom: 0.9rem; background: var(--glass-soft); border-radius: 4px;
}
.pager { display: flex; gap: 1rem; align-items: center; justify-content: center; margin-top: 1.5rem; }
#explore.htmx-request .results { opacity: 0.55; }

@media (max-width: 48rem) {
  .explore-layout { grid-template-columns: 1fr; gap: 0.5rem; }
  .filters { position: static; max-height: none; overflow: visible; padding: 0; }
  .filters > summary {
    display: flex; align-items: center; justify-content: space-between; cursor: pointer;
    padding: 0.65rem 0.9rem; background: var(--label); border: 1px solid var(--line); border-radius: 4px;
    font-weight: 600; list-style: none; margin-bottom: 0.75rem;
  }
  .filters > summary::-webkit-details-marker { display: none; }
  .filters > summary::after { content: "Vis"; color: var(--muted); font-weight: 400; font-size: 0.9rem; }
  .filters[open] > summary::after { content: "Skjul"; }
}

/* ---------- Product page ---------- */

.breadcrumb { margin: 0 0 1rem; font-size: 0.9rem; }
.product-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2rem; align-items: start; }
.product-head .bottle-xl { margin-top: 0.4rem; }
.product-title h1 { font-size: clamp(2rem, 5.5vw, 3.2rem); margin-top: 0; }
.product-desc { font-size: 1.2rem; margin: 0.2rem 0; }
.producer { color: var(--muted); margin: 0.1rem 0; }
.product-notes { color: var(--muted); }
.product-food { font-size: 1.05rem; }
.actions { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; margin: 1.1rem 0 0; }
/* On the product page "+ Samling" sits next to "Følg" and should look like it */
.actions .add { font-size: 1rem; font-weight: 600; padding: 0.62rem 1rem; border-color: var(--glass); color: var(--glass); background: transparent; border-radius: 4px; }
.actions .external { margin-left: 0.5rem; }
@media (max-width: 30rem) {
  .product-head { gap: 1rem; }
  .bottle-xl { width: 40px; height: 106px; }
}

/* Below the head: reading on the left, reference on the right */
.product-body { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(16rem, 1fr); gap: 3.5rem; margin-top: 2.5rem; align-items: start; }
.product-body section { margin: 0 0 2.25rem; }
.product-body h2 { margin-bottom: 0.6rem; }
.product-aside { padding-left: 2rem; border-left: 1px solid var(--line); }
.product-aside h2 { font-size: 1.15rem; }
@media (max-width: 48rem) {
  .product-body { grid-template-columns: 1fr; gap: 0; }
  .product-aside { padding-left: 0; border-left: 0; }
}

.scale { display: grid; grid-template-columns: 5rem 1fr; align-items: center; gap: 1rem; margin: 0.6rem 0; max-width: 30rem; }
.scale-name { color: var(--muted); }
.scale-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.scale-steps .step {
  padding: 0.35rem 0.5rem; text-align: center; font-size: 0.88rem;
  background: var(--glass-soft); color: var(--muted);
}
.scale-steps .step:first-child { border-radius: 3px 0 0 3px; }
.scale-steps .step:last-child { border-radius: 0 3px 3px 0; }
.scale-steps .step.active { background: var(--glass); color: var(--paper); font-weight: 600; }

.serving { display: grid; grid-template-columns: max-content 1fr; gap: 0.3rem 1.5rem; margin: 0 0 0.5rem; }
.serving dt { color: var(--muted); }
.serving dd { margin: 0; font-weight: 600; }
.background h2 + p { margin-bottom: 1.4rem; }
.owned p { margin: 0.2rem 0; }

.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.facts dt, .facts dd { padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); padding-right: 2rem; }
.facts dd { margin: 0; }
.estimate-note { color: var(--muted); font-size: 0.85rem; margin-top: 0.9rem; }
.chart { color: var(--glass); }
.chart svg { width: 100%; height: auto; max-height: 12rem; background: var(--label); border: 1px solid var(--line); border-radius: 4px; }
.chart-legend { color: var(--muted); font-size: 0.85rem; }
.events { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.events li { padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
.event-date { display: block; color: var(--muted); font-size: 0.85rem; font-variant-numeric: tabular-nums; }

/* ---------- Food pages ---------- */

.food-head { max-width: 46rem; }
.from-collection { padding: 1.1rem 1.2rem; background: var(--label); border: 1px solid var(--line); border-radius: 6px; }

/* ---------- Collection ---------- */

.collection-summary { font-size: 1.15rem; }
.type-bar { display: flex; height: 10px; border-radius: 2px; overflow: hidden; gap: 2px; margin: 0.8rem 0 0.3rem; max-width: 40rem; }
.type-legend { color: var(--muted); font-size: 0.85rem; margin: 0; }
.filter-note { color: var(--muted); margin: 0.25rem 0 0.75rem; }
.tabs { display: flex; gap: 1.2rem; border-bottom: 1px solid var(--line); margin: 0 0 1rem; overflow-x: auto; }
.tab { padding: 0.5rem 0; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tab.active { color: var(--glass); border-bottom-color: var(--glass); font-weight: 600; }
.type-legend + .tabs { margin-top: 1.5rem; }
form.filters { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; margin-bottom: 0.75rem; position: static; max-height: none; overflow: visible; padding: 0; }
form.filters select { width: auto; }
form.filters .export { margin-left: auto; font-size: 0.9rem; }
.collection-form { max-width: 36rem; }
.danger-zone { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--line); }

/* ---------- Lists and messages ---------- */

.follows, .launches, .stores { list-style: none; padding: 0; margin: 0.5rem 0; border-top: 1px solid var(--line); }
.follow, .launch, .store {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 0.75rem 0; border-bottom: 1px solid var(--line);
}
.store-name, .launch-title { font-weight: 650; margin: 0; }
.hours { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.hours.closed { color: var(--muted); font-weight: 400; }
.badge {
  display: inline-block; font-size: 0.78rem; font-weight: 600; padding: 0.1rem 0.4rem; border-radius: 3px;
  border: 1px solid var(--line); color: var(--muted); vertical-align: middle; margin-right: 0.3rem;
}
.badge.warn { color: var(--cork-dark); border-color: var(--cork); }
.muted-badge { color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.empty { color: var(--muted); padding: 1rem 0; }
.empty-state { padding: 2rem 1.5rem; border: 1px dashed var(--line); border-radius: 6px; text-align: center; }
.empty-state .empty-title { font-stretch: 75%; font-weight: 750; font-size: 1.35rem; margin: 0 auto 0.25rem; }
.empty-state p { color: var(--muted); margin: 0.4rem auto 1rem; }
.notice { background: var(--glass-soft); color: var(--glass); padding: 0.7rem 1rem; border-radius: 4px; font-weight: 600; }
.error { background: #fbe7e4; color: var(--danger); padding: 0.7rem 1rem; border-radius: 4px; font-weight: 600; }
@media (prefers-color-scheme: dark) { .error { background: #3b1a17; } }
.admin { margin-top: 2rem; padding: 1rem; border: 1px dashed var(--line); border-radius: 6px; }
.admin-table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: 0.9rem; }
.admin-table th, .admin-table td { text-align: left; padding: 0.4rem 0.5rem; border-bottom: 1px solid var(--line); }

@media (max-width: 30rem) {
  .item { gap: 0.6rem; }
  .item-end { min-width: 4.8rem; }
  .facts { grid-template-columns: 1fr; }
  .facts dt { padding-bottom: 0; border-bottom: 0; }
}
