:root {
  --bg: #fbf8f3; --surface: #ffffff; --surface-2: #f5efe6; --ink: #1d2230; --ink-2: #3b4150; --muted: #6c6f78; --line: #e7dfd3;
  --copper: #b2602b; --copper-ink: #8f4a1e; --copper-soft: #f7eadf; --herb: #2c6a4c; --herb-soft: #e5f1ea;
  --shadow: 0 1px 2px rgba(29, 34, 48, .05), 0 8px 24px -12px rgba(29, 34, 48, .18);
  --r: 16px; --r-sm: 10px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", Georgia, "Noto Serif", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #15161a; --surface: #1d1e24; --surface-2: #24252c; --ink: #efe9e1; --ink-2: #d4cec6; --muted: #a29d96; --line: #31323a;
    --copper: #e38b52; --copper-ink: #f0a777; --copper-soft: #2d231c; --herb: #7cc6a0; --herb-soft: #1b2a22;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -14px rgba(0,0,0,.6); color-scheme: dark; }
}
:root[data-theme="dark"] { --bg: #15161a; --surface: #1d1e24; --surface-2: #24252c; --ink: #efe9e1; --ink-2: #d4cec6; --muted: #a29d96; --line: #31323a;
    --copper: #e38b52; --copper-ink: #f0a777; --copper-soft: #2d231c; --herb: #7cc6a0; --herb-soft: #1b2a22;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -14px rgba(0,0,0,.6); color-scheme: dark; }
.theme-btn { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; width: 38px; height: 38px; display: grid; place-items: center; cursor: pointer; color: var(--ink-2); flex: none; }
.theme-btn svg { width: 18px; height: 18px; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--sans); }
a { color: var(--copper-ink); text-underline-offset: 3px; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); } .ink { color: var(--ink); } .small { font-size: .9rem; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); margin: .2em 0 .35em; }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); margin: 0 0 .6em; }
h3 { font-size: 1.15rem; margin: 0 0 .4em; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--copper) 60%, transparent); outline-offset: 2px; border-radius: 6px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 12px; min-height: 62px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-size: 1.32rem; font-weight: 600; letter-spacing: -.01em; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand .v { color: var(--copper); }
.subnav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-bottom: 8px; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
.subnav::-webkit-scrollbar { display: none; }
.subnav a { text-decoration: none; color: var(--ink-2); padding: 6px 11px; border-radius: 999px; font-size: .9rem; white-space: nowrap; border: 1px solid transparent; }
.subnav a:hover { background: var(--surface-2); }
.subnav a[aria-current="page"] { color: var(--copper-ink); background: var(--copper-soft); border-color: color-mix(in srgb, var(--copper) 30%, transparent); font-weight: 600; }
.kitchen { white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 12px; font-size: .88rem; cursor: pointer; color: var(--ink-2); }
.kitchen .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.kitchen.on { border-color: var(--herb); color: var(--herb); }
.kitchen.on .dot { background: var(--herb); box-shadow: 0 0 0 4px var(--herb-soft); }
.kitchen[hidden] { display: none; }
.tools-r { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.pick { position: relative; display: flex; align-items: center; }
.pick select { min-width: 0; appearance: none; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 28px 6px 12px; font-size: .9rem; max-width: 170px; cursor: pointer; }
.pick::after { content: ""; position: absolute; right: 12px; width: 6px; height: 6px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg) translateY(-2px); pointer-events: none; }
@media (max-width: 720px) {
  .kitchen .kl { display: none; }
  .kitchen { padding: 9px; }
  .pick select { max-width: 132px; font-size: .85rem; padding-right: 24px; }
  .brand { font-size: 1.15rem; } .brand svg { width: 30px; height: 30px; }
  .tools-r .lang-pick select { max-width: 92px; }
}
/* hero */
.hero { padding: 40px 0 18px; }
.hero .lead { font-size: clamp(1.05rem, 1.7vw, 1.2rem); color: var(--ink-2); max-width: 680px; margin: 0 0 22px; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--copper-ink); font-weight: 600; }
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: currentColor; }

/* cards & forms */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 20px; }
.tool-grid { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: start; }
@media (min-width: 900px) { .tool-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } .tool-grid.wide { grid-template-columns: 1fr; } }
.result { background: linear-gradient(180deg, var(--surface), var(--surface-2)); }
.result h2 { font-size: 1.05rem; font-family: var(--sans); font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
label, .lbl { display: block; font-size: .86rem; font-weight: 600; color: var(--ink-2); margin: 0 0 6px; }
.field { margin-bottom: 14px; }
.row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
input[type=text], input[type=number], input:not([type]), select, textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 11px 12px; font-size: 1rem; min-height: 46px; }
textarea { min-height: 230px; resize: vertical; line-height: 1.5; font-size: .98rem; }
input:focus, select:focus, textarea:focus { border-color: var(--copper); outline: none; box-shadow: 0 0 0 3px var(--copper-soft); }
input.num, .tbl .n, .eq b, .big b { font-variant-numeric: tabular-nums; }
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 8px 12px; border-radius: 9px; cursor: pointer; font-size: .92rem; color: var(--ink-2); }
.seg button[aria-pressed=true] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px; font-size: .88rem; cursor: pointer; color: var(--ink-2); }
.chip:hover, .chip[aria-pressed=true] { border-color: var(--copper); color: var(--copper-ink); background: var(--copper-soft); }
.btn { display: inline-flex; align-items: center; gap: 8px; border: 0; background: var(--copper); color: #fff; border-radius: 11px; padding: 11px 16px; font-weight: 600; text-decoration: none; cursor: pointer; font-size: .95rem; }
.btn:hover { background: var(--copper-ink); }
.btn.ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--copper); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* results */
.big { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 4px 0 10px; }
.big b { font-family: var(--serif); font-size: clamp(2.4rem, 6vw, 3.4rem); line-height: 1; color: var(--herb); font-weight: 600; }
.big span { font-size: 1.15rem; color: var(--ink-2); }
.eqs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 12px 0; }
.eq { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.eq span { font-size: .78rem; color: var(--muted); }
.eq b { font-size: 1.15rem; }
.eq em { font-style: normal; font-size: .82rem; color: var(--ink-2); }
.eq.hi { border-color: color-mix(in srgb, var(--herb) 45%, var(--line)); background: var(--herb-soft); }
.eq.hi b { color: var(--herb); }
.src { font-size: .82rem; color: var(--muted); margin: 10px 0 0; }

/* recipe */
.r-list { list-style: none; margin: 0; padding: 0; }
.r-list li { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.r-row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.r-name { font-weight: 600; }
.r-name.unk { font-weight: 500; color: var(--ink-2); }
.r-amt { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--herb); white-space: nowrap; font-size: 1.05rem; }
.r-alt { text-align: right; color: var(--ink-2); font-size: .88rem; }
.r-orig { color: var(--muted); font-size: .8rem; margin-top: 2px; }
.r-text { margin: 12px 0; }
.r-text.changed { border-left: 3px solid var(--copper); padding-left: 10px; }
.legend { font-size: .82rem; color: var(--muted); margin-top: 10px; }
.factor { font-family: var(--serif); color: var(--copper-ink); font-size: 1.1rem; font-weight: 600; }

/* smart box */
.smart { padding: 22px; }
.smart input { font-size: 1.25rem; min-height: 58px; border-radius: 14px; }
.s-res { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.s-name { font-weight: 600; color: var(--ink-2); }
.s-vals { display: flex; flex-wrap: wrap; gap: 8px; }
.s-vals span { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 6px 12px; font-variant-numeric: tabular-nums; }
.s-vals span.main { background: var(--herb-soft); border-color: transparent; color: var(--herb); font-weight: 700; font-size: 1.2rem; }

/* tables */
.tbl { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tbl th, .tbl td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.tbl th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
.tbl .n { text-align: right; white-space: nowrap; }
.tbl tfoot td { font-weight: 700; border-bottom: 0; }
.tbl tr.hi td { background: var(--herb-soft); color: var(--herb); font-weight: 600; }
.tbl-wrap { overflow-x: auto; }
.cost-tbl input { min-height: 38px; padding: 6px 8px; font-size: .92rem; min-width: 64px; }
.cost-tbl td:first-child input { min-width: 130px; }
.x { border: 0; background: none; font-size: 1.3rem; color: var(--muted); cursor: pointer; padding: 4px 8px; }

/* sections */
section { padding: 26px 0; }
#tool { margin-bottom: 18px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.tile { display: flex; gap: 14px; align-items: flex-start; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; transition: transform .15s, border-color .15s, box-shadow .15s; }
.tile:hover { transform: translateY(-2px); border-color: var(--copper); box-shadow: var(--shadow); }
.tile .ic { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--copper-soft); color: var(--copper-ink); display: grid; place-items: center; }
.tile .ic svg { width: 24px; height: 24px; }
.tile b { display: block; font-size: 1.02rem; margin-bottom: 2px; }
.tile span { font-size: .88rem; color: var(--muted); }
.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.why div { border-top: 2px solid var(--copper); padding-top: 12px; }
.why p { color: var(--ink-2); margin: 0; }
.prose { max-width: 760px; color: var(--ink-2); }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; margin-bottom: 8px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--copper); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 14px; color: var(--ink-2); }
.crumbs { font-size: .85rem; color: var(--muted); padding-top: 18px; }
.crumbs a { color: var(--muted); }

/* footer */
footer { margin-top: 40px; border-top: 1px solid var(--line); background: var(--surface-2); padding: 30px 0 40px; font-size: .9rem; color: var(--muted); }
.foot { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
footer a { color: var(--ink-2); text-decoration: none; }
footer a:hover { color: var(--copper-ink); }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.langs { display: flex; flex-wrap: wrap; gap: 6px 14px; }

@media print {
  .top, footer, .no-print, .faq, .crumbs, .tiles, section.more { display: none !important; }
  body { background: #fff; color: #000; }
  .card { box-shadow: none; border: 0; padding: 0; }
  .tool-grid { display: block; }
  .tool-grid > .card:first-child { display: none; }
  .r-orig { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media (max-width: 600px) { #o-table th:last-child, #o-table td:last-child { display: none; } }
@media (max-width: 520px) { .tools-r { gap: 6px; } }

/* ---------- illustration palette ---------- */
:root { --art-blob: #f4e6d8; --art-blob-2: #e3f0e8; --art-shadow: rgba(29,34,48,.10); --art-copper-1: #c9773e; --art-copper-2: #9a4f20; --art-panel: #fbf3ea; --art-screen: #1d2230; --art-screen-ink: #8fe0b4; --art-plate: #d7c8b8; --art-bowl: #e9e2d8; --art-bowl-rim: #cfc3b4; --art-flour: #fffaf2; --art-flour-dot: #e6dccd; --art-glass: #d9ecf5; --art-glass-edge: #9fc3d6; --art-milk: #ffffff; --art-milk-2: #eef3f6; --art-mark: #6d93a8; --art-wood: #c99a6b; --art-wood-2: #b5844f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --art-blob: #2a221c; --art-blob-2: #1b2a22; --art-shadow: rgba(0,0,0,.35); --art-panel: #2a2420; --art-screen: #0f1013; --art-plate: #4a4038; --art-bowl: #3a3631; --art-bowl-rim: #554d44; --art-flour: #ece5da; --art-flour-dot: #c9bfb1; --art-glass: #1f3440; --art-glass-edge: #5f8aa1; --art-milk: #e7edf1; --art-milk-2: #c9d6de; --art-mark: #8fb3c7; } }
:root[data-theme="dark"] { --art-blob: #2a221c; --art-blob-2: #1b2a22; --art-shadow: rgba(0,0,0,.35); --art-panel: #2a2420; --art-screen: #0f1013; --art-plate: #4a4038; --art-bowl: #3a3631; --art-bowl-rim: #554d44; --art-flour: #ece5da; --art-flour-dot: #c9bfb1; --art-glass: #1f3440; --art-glass-edge: #5f8aa1; --art-milk: #e7edf1; --art-milk-2: #c9d6de; --art-mark: #8fb3c7; }

/* ---------- hero with illustration ---------- */
.hero { position: relative; }
.hero::before { content: ""; position: absolute; inset: -40px -10vw auto; height: 520px; z-index: -1; pointer-events: none;
  background: radial-gradient(600px 300px at 85% 30%, color-mix(in srgb, var(--copper) 12%, transparent), transparent 70%), radial-gradient(500px 260px at 10% 10%, color-mix(in srgb, var(--herb) 10%, transparent), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 8px; align-items: center; }
.hero-art { width: 100%; max-width: 440px; height: auto; margin: 0 auto; overflow: visible; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 24px; } .hero-art { max-width: 470px; } }
@media (max-width: 899px) { .hero-art { max-width: 260px; margin: -4px auto 8px; } }
.tool-head { display: flex; align-items: center; gap: 16px; }
.tool-head .big-ic { flex: none; width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; color: var(--copper-ink);
  background: linear-gradient(135deg, var(--copper-soft), color-mix(in srgb, var(--herb) 12%, var(--surface))); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--copper) 20%, transparent); }
.tool-head .big-ic svg { width: 32px; height: 32px; }
@media (max-width: 600px) { .tool-head .big-ic { width: 50px; height: 50px; border-radius: 14px; } .tool-head .big-ic svg { width: 26px; height: 26px; } }

/* ---------- ingredient icons ---------- */
.gi { --gfg: #8a6d3b; display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 11px; color: var(--gfg); background: color-mix(in srgb, var(--gfg) 15%, var(--surface)); vertical-align: middle; }
.gi svg { width: 19px; height: 19px; }
.g-flour { --gfg: #9a6b2f; } .g-grain { --gfg: #8b7020; } .g-sugar { --gfg: #b04a6e; } .g-fat { --gfg: #a37b05; } .g-liquid { --gfg: #2f6fa8; }
.g-dairy { --gfg: #4a6a96; } .g-egg { --gfg: #c0682a; } .g-baking { --gfg: #6a4fa0; } .g-other { --gfg: #7a5137; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .gi { color: color-mix(in srgb, var(--gfg) 55%, #fff); background: color-mix(in srgb, var(--gfg) 22%, var(--surface)); } }
:root[data-theme="dark"] .gi { color: color-mix(in srgb, var(--gfg) 55%, #fff); background: color-mix(in srgb, var(--gfg) 22%, var(--surface)); }
.r-name { display: inline-flex; align-items: center; gap: 10px; }
.r-list .r-orig, .r-list .r-alt { padding-left: 44px; }
.r-list .r-alt { text-align: left; }
.tbl td .gi { width: 28px; height: 28px; border-radius: 9px; margin-right: 8px; }
.tbl td .gi svg { width: 16px; height: 16px; }
.m-head { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink-2); margin-bottom: 2px; }

/* ---------- motion ---------- */
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { 0% { opacity: 0; transform: translateY(10px) scale(.96); } 100% { opacity: 1; transform: none; } }
@keyframes flash { 0% { background-color: var(--herb-soft); } 100% { background-color: transparent; } }
.float-a { animation: floatY 6s ease-in-out infinite; }
.float-b { animation: floatY 7s ease-in-out -2s infinite; }
.float-c { animation: floatY 5s ease-in-out -1s infinite; }
.spin-slow { animation: spin 60s linear infinite; }
.badge { animation: floatY 4.5s ease-in-out infinite; }
.badge.b2 { animation-delay: -1.5s; } .badge.b3 { animation-delay: -3s; }
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .tiles .tile.reveal:nth-child(2) { transition-delay: .05s; } .js .tiles .tile.reveal:nth-child(3) { transition-delay: .1s; } .js .tiles .tile.reveal:nth-child(4) { transition-delay: .15s; }
.js .tiles .tile.reveal:nth-child(5) { transition-delay: .2s; } .js .tiles .tile.reveal:nth-child(6) { transition-delay: .25s; } .js .tiles .tile.reveal:nth-child(7) { transition-delay: .3s; }
.tile .ic { transition: transform .25s ease; }
.tile:hover .ic { transform: rotate(-8deg) scale(1.08); }
.updated { animation: flash .9s ease-out; border-radius: 12px; }
.s-vals span, .eq, .r-list li { animation: pop .35s ease both; }
.r-list li:nth-child(2) { animation-delay: .03s; } .r-list li:nth-child(3) { animation-delay: .06s; } .r-list li:nth-child(4) { animation-delay: .09s; } .r-list li:nth-child(n+5) { animation-delay: .12s; }
.btn { transition: transform .15s ease, background-color .15s ease; } .btn:active { transform: scale(.97); }
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: .22s ease both vtOut; }
::view-transition-new(root) { animation: .28s ease both vtIn; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) {
  .float-a, .float-b, .float-c, .spin-slow, .badge, .s-vals span, .eq, .r-list li, .updated { animation: none !important; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ---------- language & country menu ---------- */
.locale { position: relative; }
.locale summary { list-style: none; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 12px; cursor: pointer; font-size: .9rem; color: var(--ink-2); white-space: nowrap; }
.locale summary::-webkit-details-marker { display: none; }
.locale summary svg { width: 18px; height: 18px; }
.locale summary b { font-weight: 700; letter-spacing: .03em; }
.locale[open] summary { border-color: var(--copper); }
.locale-panel { position: absolute; right: 0; top: calc(100% + 8px); width: min(320px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 14px; z-index: 30; animation: pop .2s ease both; }
.locale-panel label { margin-top: 10px; } .locale-panel label:first-child { margin-top: 0; }
.locale-panel select { min-height: 42px; }
.locale-panel p { margin: 8px 0 0; line-height: 1.4; }
