:root { --bg: #faf7f2; --fg: #1c1917; --muted: #6b645d; --card: #ffffff; --line: #e8e2d9; --accent: #b45309; --on-accent: #ffffff;
        --brick: #9a3412; --brick-2: #c2410c; --hero: #fff1d0; color-scheme: light dark; }
@media (prefers-color-scheme: dark) {
  :root { --bg: #17130f; --fg: #faf7f2; --muted: #b3aba1; --card: #241f1a; --line: #3b342c; --accent: #f59e0b; --on-accent: #1c1917;
          --brick: #b8480f; --brick-2: #d65a12; --hero: #2a1f12; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: inherit; }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 16px; }

.top { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
@supports (background: color-mix(in srgb, red 50%, transparent)) {
  .top { background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); }
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 3.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; text-decoration: none; }
.logo { color: var(--accent); flex: none; }
.tool-link { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5rem 1rem; border-radius: 999px; background: var(--brick); color: #fff;
             font-weight: 700; text-decoration: none; white-space: nowrap; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); }
.tool-link:hover, .tool-link:focus-visible { background: var(--brick-2); }

.hero { background: radial-gradient(circle at 1px 1px, rgba(180, 83, 9, 0.14) 1.5px, transparent 0) 0 0 / 22px 22px, linear-gradient(180deg, var(--hero), var(--bg)); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center; gap: 1.5rem 2.5rem; padding-top: 2.75rem; padding-bottom: 2.25rem; }
h1 { margin: 0 0 1.25rem; max-width: 22ch; font-size: clamp(1.9rem, 5.5vw, 3.1rem); line-height: 1.1; letter-spacing: -0.02em; }
.btn { display: inline-block; padding: 0.7rem 1.3rem; border-radius: 0.6rem; background: var(--accent); color: var(--on-accent); font-weight: 700; text-decoration: none; }
.btn:hover, .btn:focus-visible { filter: brightness(1.08); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.stats li { padding: 0.7rem 1rem; border: 1px solid var(--line); border-radius: 0.75rem; background: var(--card); }
.stats strong { display: block; font-size: 1.6rem; line-height: 1.1; letter-spacing: -0.01em; }
.stats span { color: var(--muted); font-size: 0.85rem; }

.tool { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin: 0.5rem 0 2.25rem; padding: 1.4rem 1.6rem;
        border-radius: 1rem; background: linear-gradient(135deg, var(--brick), var(--brick-2)); color: #fff; box-shadow: 0 6px 20px rgba(154, 52, 18, 0.28); }
.tool .badge { display: inline-block; margin-bottom: 0.4rem; padding: 0.15rem 0.6rem; border-radius: 999px; background: rgba(255, 255, 255, 0.2); font-size: 0.78rem; font-weight: 700;
               letter-spacing: 0.02em; text-transform: uppercase; }
.tool h2 { margin: 0; font-size: 1.7rem; letter-spacing: -0.01em; }
.tool p { margin: 0.35rem 0 0; max-width: 46ch; opacity: 0.95; }
.tool .btn { background: #fff; color: var(--brick); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); }

section.lots { margin-bottom: 2.25rem; }
h2.section { display: flex; align-items: baseline; gap: 0.6rem; margin: 0 0 0.9rem; font-size: 1.35rem; letter-spacing: -0.01em; }
h2.section small { color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); list-style: none; margin: 0; padding: 0; }
.card { display: flex; flex-direction: column; height: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 0.75rem; background: var(--card);
        color: inherit; text-decoration: none; }
.card:hover, .card:focus-visible { border-color: var(--accent); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08); }
.card img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; background: #fff; border-radius: 0.5rem; }
.name { margin: 0.6rem 0 0.25rem; font-size: 0.9rem; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.meta { margin: 0; color: var(--muted); font-size: 0.8rem; }
.chip { display: inline-block; margin-right: 0.3rem; padding: 0 0.45rem; border-radius: 999px; font-size: 0.72rem; font-weight: 700; border: 1px solid var(--line); }
.chip.new { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.chip.used { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.price { margin: auto 0 0; padding-top: 0.5rem; font-weight: 800; color: var(--accent); }
.empty { color: var(--muted); }
footer { padding: 1.5rem 0 3rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.8rem; }
footer a { color: inherit; }
footer .credit { margin-top: 0.75rem; }
@media (max-width: 52rem) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 30rem) {
  .tool { padding: 1.1rem 1.1rem; }
  .tool .btn { width: 100%; text-align: center; }
  .hero .wrap { padding-top: 2rem; }
  .stats { gap: 8px; }
  .stats li { padding: 0.6rem 0.7rem; }
  .stats strong { font-size: 1.3rem; }
}

[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.bar-right { display: inline-flex; align-items: center; gap: 10px; }
.lang { min-width: 2.6rem; padding: 0.45rem 0.7rem; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: inherit; font: inherit; font-weight: 700;
        font-size: 0.85rem; cursor: pointer; }
.lang:hover, .lang:focus-visible { border-color: var(--accent); }

.shop { margin-bottom: 2.25rem; }
.search { display: block; width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--line); border-radius: 0.6rem; background: var(--card); color: inherit; font: inherit; }
.search:focus-visible, .filters select:focus-visible, .chipbtn:focus-visible, .lang:focus-visible, .linkbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0.8rem 0; }
.chipbtn { padding: 0.4rem 0.9rem; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: inherit; font: inherit; font-size: 0.9rem; cursor: pointer; }
.chipbtn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 700; }
.chipbtn:disabled, .search:disabled, .filters select:disabled { opacity: 0.6; cursor: progress; }
.filters { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); }
.filters select { width: 100%; min-width: 0; padding: 0.6rem 0.7rem; border: 1px solid var(--line); border-radius: 0.6rem; background: var(--card); color: inherit; font: inherit;
                  text-overflow: ellipsis; }
.count { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 1rem 0 0.7rem; color: var(--muted); font-size: 0.9rem; }
.count p { margin: 0; }
.linkbtn { padding: 0; border: 0; background: none; color: var(--accent); font: inherit; text-decoration: underline; cursor: pointer; }
.status { margin: 0 0 0.8rem; color: var(--muted); }
.more { display: block; margin: 1.5rem auto 0; border: 0; font: inherit; cursor: pointer; }
.updated { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.stale { color: var(--accent); font-weight: 700; }
@media (max-width: 40rem) {
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0.7rem -16px; padding: 0 16px 6px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chipbtn { flex: none; white-space: nowrap; }
}
@media (max-width: 30rem) {
  .bar-right { gap: 8px; }
  .tool-link { padding: 0.45rem 0.85rem; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card { padding: 10px; }
}

:root { --bad: #b42318; }
@media (prefers-color-scheme: dark) { :root { --bad: #fda29b; } }
body.cart-open { overflow: hidden; }
.cartbtn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; padding: 0; border: 1px solid var(--line); border-radius: 999px;
           background: var(--card); color: inherit; cursor: pointer; }
.cartbtn svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cartbtn:hover, .cartbtn:focus-visible { border-color: var(--accent); }
.cartcount { position: absolute; top: -6px; right: -6px; min-width: 1.3rem; height: 1.3rem; padding: 0 0.3rem; border-radius: 999px; background: var(--accent); color: var(--on-accent);
             font-size: 0.75rem; font-weight: 800; line-height: 1.3rem; text-align: center; }
.cartbtn:focus-visible, .add:focus-visible, .step button:focus-visible, .cart-x:focus-visible, .cl-rm:focus-visible, .cart-send:focus-visible, .cart-contact input:focus-visible,
.cart-contact textarea:focus-visible, .cart-done .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.grid > li { position: relative; }
.buy { position: absolute; top: 18px; right: 18px; }
.add, .step button { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; padding: 0; border: 0; border-radius: 50%; background: var(--accent);
                     color: var(--on-accent); font: inherit; font-size: 1.5rem; font-weight: 700; line-height: 1; cursor: pointer; }
.add { box-shadow: 0 1px 5px rgba(0, 0, 0, 0.35); }
.step { display: inline-flex; align-items: center; border-radius: 999px; background: var(--accent); color: var(--on-accent); }
.buy .step { box-shadow: 0 1px 5px rgba(0, 0, 0, 0.35); }
.step button { background: transparent; }
.step .n { min-width: 1.5rem; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.step button[aria-disabled="true"] { opacity: 0.4; cursor: default; }

dialog.cart { box-sizing: border-box; width: 100%; max-width: none; max-height: none; margin: auto 0 0; padding: 0; border: 0; border-radius: 1rem 1rem 0 0; overflow: hidden; background: var(--bg);
              color: var(--fg); box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.3); }
dialog.cart::backdrop { background: rgba(0, 0, 0, 0.5); }
.cart-in { display: flex; flex-direction: column; max-height: 90vh; max-height: 90dvh; }
.cart-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0.8rem 1rem 0.6rem; border-bottom: 1px solid var(--line); }
.cart-head h2 { margin: 0; font-size: 1.25rem; }
.cart-x { width: 2.5rem; height: 2.5rem; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: inherit; font: inherit; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.cart-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0.9rem 1rem; }
.cart-foot { padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--bg); }
.cart-send { display: block; width: 100%; border: 0; font: inherit; font-size: 1.05rem; font-weight: 700; cursor: pointer; }
.cart-send[aria-disabled="true"] { opacity: 0.55; cursor: default; }
.cart-notice { margin: 0 0 0.8rem; color: var(--muted); font-size: 0.9rem; }
.cart-changed { margin: 0 0 0.8rem; padding: 0.5rem 0.75rem; border: 1px solid var(--bad); border-radius: 0.5rem; color: var(--bad); font-size: 0.85rem; font-weight: 600; }
.cart-empty { margin: 1.5rem 0; color: var(--muted); text-align: center; }

.cart-lines { list-style: none; margin: 0; padding: 0; }
.cl { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 0.15rem 0.75rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.cl-img { grid-row: span 2; width: 3rem; height: 3rem; object-fit: contain; background: #fff; border-radius: 0.4rem; }
.cl-main { min-width: 0; }
.cl-name { margin: 0; font-size: 0.9rem; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.cl-meta { margin: 0.1rem 0 0; color: var(--muted); font-size: 0.8rem; }
.cl-mark { margin: 0.25rem 0 0; color: var(--bad); font-size: 0.8rem; font-weight: 700; }
.cl.gone .cl-name, .cl.gone .cl-meta, .cl.gone .cl-img { opacity: 0.6; }
.cl-side { display: flex; align-items: center; gap: 8px; }
.cl .step button { width: 2.25rem; height: 2.25rem; font-size: 1.3rem; }
.cl-price { margin: 0 0 0 auto; font-weight: 800; color: var(--accent); text-align: right; line-height: 1.2; }
.cl-price small { display: block; color: var(--muted); font-size: 0.75rem; font-weight: 400; }
.cl-rm { flex: none; width: 2.25rem; height: 2.25rem; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--muted); font: inherit; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.cl.gone .cl-rm { margin-left: auto; }
.cart-total { display: flex; align-items: baseline; gap: 12px; margin: 0.9rem 0 1.1rem; font-size: 1.05rem; }
.cart-total span { margin-right: auto; }
.cart-total strong { font-size: 1.3rem; }
.cart-total .linkbtn { padding: 0.5rem 0.25rem; }

.cart-contact .field { margin: 0 0 0.7rem; }
.cart-contact label { display: block; margin: 0 0 0.2rem; font-size: 0.85rem; font-weight: 600; }
.cart-contact input, .cart-contact textarea { display: block; width: 100%; padding: 0.65rem 0.8rem; border: 1px solid var(--line); border-radius: 0.6rem; background: var(--card); color: inherit; font: inherit; }
.cart-contact input[aria-invalid="true"], .cart-contact textarea[aria-invalid="true"] { border-color: var(--bad); }
.cart-err { margin: 0.2rem 0 0; color: var(--bad); font-size: 0.8rem; font-weight: 600; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cart-fine { margin: 0.2rem 0 0.5rem; color: var(--muted); font-size: 0.78rem; }
.cart-msg { margin: 0.4rem 0 0; min-height: 1.3em; color: var(--muted); font-weight: 600; }
.cart-msg.bad { color: var(--bad); }
.cart-done { padding: 1.75rem 1rem 1.5rem; text-align: center; }
.cart-sent { margin: 0 0 0.5rem; font-size: 1.4rem; font-weight: 800; }
.cart-done .btn { margin-top: 0.75rem; border: 0; font: inherit; font-weight: 700; cursor: pointer; }

@media (prefers-reduced-motion: no-preference) {
  dialog.cart[open] { animation: cart-up 0.2s ease-out; }
  dialog.cart[open]::backdrop { animation: cart-fade 0.2s ease-out; }
}
@keyframes cart-up { from { transform: translateY(2rem); opacity: 0; } }
@keyframes cart-side { from { transform: translateX(2rem); opacity: 0; } }
@keyframes cart-fade { from { opacity: 0; } }
@media (min-width: 48rem) {
  dialog.cart { width: 26rem; height: 100%; margin: 0 0 0 auto; border-radius: 1rem 0 0 1rem; box-shadow: -8px 0 30px rgba(0, 0, 0, 0.3); }
  @media (prefers-reduced-motion: no-preference) { dialog.cart[open] { animation: cart-side 0.2s ease-out; } }
  .cart-in { height: 100%; max-height: none; }
}
@media (max-width: 30rem) {
  .buy { top: 16px; right: 16px; }
  .bar { gap: 8px; }
  .bar-right { gap: 6px; }
  .brand { min-width: 0; font-size: 1.05rem; }
  .brand span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cartbtn { width: 2.25rem; height: 2.25rem; }
  .lang { min-width: 2.25rem; padding: 0.4rem 0.35rem; }
  .tool-link { padding: 0.45rem 0.8rem; }
  .tool-link span { display: none; }
}
@media (max-width: 23.5rem) {
  .brand span { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }       /* the logo alone: the name stays for a screen reader */
}
