:root {
--bg: #17110d;
--bg-deep: #120d0a;
--card: #221a14;
--card-2: #2a2019;
--inset: #17110d;
--line: #33271f;
--line-2: #3d3027;
--fg: #f3e9dc;
--fg-2: #d9cbb9;
--muted: #b5a593;
--accent: #e8a33d;
--accent-fg: #f4c06f;
--accent-soft: #3a2a1a;
--on-accent: #17110d;
--hop: #8fc25b;
--hop-fg: #cfe6b3;
--hop-soft: #26301c;
--warn: #e3873a;
--danger: #e2674f;
--danger-soft: #3a1c15;
--shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
--f-ui: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
--f-num: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
--r-card: 22px;
--r-btn: 16px;
--maxw: 560px;
color-scheme: dark;
}
@media (prefers-color-scheme: light) {
:root:not([data-theme='dark']) {
--bg: #f6f2ec;
--bg-deep: #ede6dc;
--card: #ffffff;
--card-2: #f8f3ec;
--inset: #f1ebe3;
--line: #e5dcd0;
--line-2: #d6cabb;
--fg: #23180f;
--fg-2: #4a3b2d;
--muted: #6f604f;
--accent: #e8a33d;
--accent-fg: #8a5310;
--accent-soft: #f8e7cb;
--on-accent: #1d140c;
--hop: #5d9a2c;
--hop-fg: #3c6a17;
--hop-soft: #e5f0d6;
--warn: #b9601a;
--danger: #b9412c;
--danger-soft: #f8e0da;
--shadow: 0 18px 40px rgba(60, 40, 20, 0.18);
color-scheme: light;
}
}
:root[data-theme='light'] {
--bg: #f6f2ec;
--bg-deep: #ede6dc;
--card: #ffffff;
--card-2: #f8f3ec;
--inset: #f1ebe3;
--line: #e5dcd0;
--line-2: #d6cabb;
--fg: #23180f;
--fg-2: #4a3b2d;
--muted: #6f604f;
--accent: #e8a33d;
--accent-fg: #8a5310;
--accent-soft: #f8e7cb;
--on-accent: #1d140c;
--hop: #5d9a2c;
--hop-fg: #3c6a17;
--hop-soft: #e5f0d6;
--warn: #b9601a;
--danger: #b9412c;
--danger-soft: #f8e0da;
--shadow: 0 18px 40px rgba(60, 40, 20, 0.18);
color-scheme: light;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
margin: 0;
background: var(--bg);
color: var(--fg);
font: 400 15px/1.45 var(--f-ui);
-webkit-font-smoothing: antialiased;
-webkit-tap-highlight-color: transparent;
overscroll-behavior-y: none;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
svg.fill { fill: currentColor; stroke: none; }
.mono, .num { font-family: var(--f-num); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hidden { display: none !important; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
#app { min-height: 100%; display: flex; flex-direction: column; }
.view {
width: 100%;
max-width: var(--maxw);
margin: 0 auto;
padding-top: max(18px, env(safe-area-inset-top, 0px));
padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
padding-left: max(16px, env(safe-area-inset-left, 0px));
padding-right: max(16px, env(safe-area-inset-right, 0px));
display: flex;
flex-direction: column;
gap: 12px;
}
.view.full { padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
.topbar { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.topbar h1 { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; flex: 1 1 auto; min-width: 0; }
.topbar .sub { font-size: 13px; color: var(--muted); font-weight: 500; }
.topbar .titles { flex: 1 1 auto; min-width: 0; }
.topbar .titles h1 { font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand { display: flex; align-items: center; gap: 10px; flex: 1 1 auto; }
.logo { width: 34px; height: 34px; stroke: none; }
.logo-bg { fill: var(--accent); }
.logo-pot { fill: none; stroke: var(--on-accent); stroke-width: 2.2; }
.logo-steam { fill: none; stroke: var(--on-accent); stroke-width: 2; }
.icon-btn {
width: 44px; height: 44px; flex: 0 0 auto;
display: inline-flex; align-items: center; justify-content: center;
border-radius: 14px; border: 1px solid var(--line-2); background: var(--card); color: var(--fg);
}
.icon-btn:active { transform: scale(0.96); }
.card {
background: var(--card);
border: 1px solid var(--line);
border-radius: var(--r-card);
padding: 16px 18px;
display: flex; flex-direction: column; gap: 12px;
}
.card.tight { gap: 8px; }
.card.inset { background: var(--inset); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase; color: var(--muted); }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card-head h2 { font-size: 19px; font-weight: 750; margin-top: 2px; }
.link { color: var(--accent-fg); font-weight: 650; font-size: 14px; background: none; border: 0; padding: 6px 0; text-decoration: none; }
.section-title { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin: 8px 2px -2px; }
.btn {
min-height: 52px; padding: 0 18px;
border-radius: var(--r-btn); border: 1px solid var(--line-2);
background: var(--card); color: var(--fg);
font-weight: 700; font-size: 15px;
display: inline-flex; align-items: center; justify-content: center; gap: 8px;
transition: transform 0.08s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn.primary { background: var(--accent); color: var(--on-accent); border-color: transparent; font-weight: 800; font-size: 17px; min-height: 56px; }
.btn.hop { background: var(--hop); color: #10180a; border-color: transparent; }
.btn.ghost { background: transparent; }
.btn.danger { background: var(--danger); color: #fff; border-color: transparent; }
.btn.small { min-height: 40px; font-size: 14px; padding: 0 14px; border-radius: 12px; }
.btn:disabled { opacity: 0.45; pointer-events: none; }
.btn.on { background: var(--accent-soft); color: var(--accent-fg); border-color: transparent; }
.btn .st { font-size: 13px; font-weight: 600; opacity: 0.8; }
.btn.on.pump { background: var(--hop-soft); color: var(--hop-fg); }
.row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.row-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; padding: 4px; border-radius: 13px; background: var(--inset); border: 1px solid var(--line); }
.seg button { min-height: 38px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 650; font-size: 14px; padding: 0 6px; }
.seg button[aria-pressed='true'] { background: var(--accent-soft); color: var(--accent-fg); font-weight: 750; }
.pill {
display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px;
border-radius: 18px; border: 1px solid var(--line-2); background: var(--card);
font-weight: 650; font-size: 13px; white-space: nowrap;
}
.dot { width: 8px; height: 8px; border-radius: 4px; background: var(--muted); flex: 0 0 auto; }
.pill.on { color: var(--hop-fg); }
.pill.on .dot { background: var(--hop); }
.pill.busy .dot { background: var(--accent); animation: pulse 1s infinite; }
.pill.lost { color: var(--danger); border-color: var(--danger); }
.pill.lost .dot { background: var(--danger); animation: pulse 1s infinite; }
.pill svg { width: 14px; height: 14px; }
@keyframes pulse { 50% { opacity: 0.3; } }
.thermo { display: flex; align-items: center; gap: 18px; }
.ring { width: 128px; height: 128px; flex: 0 0 auto; }
.ring.big { width: 232px; height: 232px; }
.ring .track { stroke: var(--line); }
.ring .bar { stroke: var(--accent); transition: stroke-dasharray 0.6s ease; }
.ring .bar.boil { stroke: var(--warn); }
.ring .bar.hold { stroke: var(--hop); }
.ring text { fill: var(--fg); stroke: none; }
.ring .t-main { font-family: var(--f-num); font-weight: 700; }
.ring .t-sub { fill: var(--muted); font-family: var(--f-ui); font-weight: 500; }
.kv { display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; min-width: 0; }
.kv .v { font-size: 18px; font-weight: 700; margin-top: 2px; }
.kv .v.mono { font-size: 18px; }
.target-row { display: flex; align-items: center; gap: 8px; }
.target-row .val { flex: 1 1 auto; text-align: center; font-family: var(--f-num); font-weight: 700; font-size: 20px; }
.steps { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.steps .s { display: flex; justify-content: space-between; gap: 10px; color: var(--fg-2); }
.steps .s.first { color: var(--accent-fg); font-weight: 650; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: baseline; gap: 5px; padding: 6px 10px; border-radius: 10px; background: var(--inset); border: 1px solid var(--line); font-size: 13px; color: var(--fg-2); }
.chip b { font-family: var(--f-num); color: var(--fg); font-weight: 700; }
.swatch { width: 14px; height: 14px; border-radius: 4px; border: 1px solid rgba(0, 0, 0, 0.25); align-self: center; }
.progress { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; }
.progress span { height: 6px; border-radius: 3px; background: var(--line); }
.progress span.done { background: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.progress span.now { background: var(--accent); }
.brew-main { align-items: center; text-align: center; padding: 20px 18px 18px; }
.brew-main .stats { width: 100%; }
.stat { background: var(--inset); border-radius: 14px; padding: 10px 12px; text-align: left; border: 1px solid transparent; }
button.stat { border: 1px solid var(--line); width: 100%; }
.stat .l { font-size: 11px; font-weight: 650; letter-spacing: 0.8px; text-transform: uppercase; color: var(--muted); }
.stat .v { font-size: 17px; font-weight: 750; margin-top: 2px; }
.stat .v.mono { font-size: 17px; }
.stat .s { font-size: 12px; color: var(--muted); }
.stat .v.heat-on { color: var(--accent-fg); }
.stat .v.pump-on { color: var(--hop-fg); }
.alert-card {
background: var(--accent); color: var(--on-accent);
border-radius: 24px; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px;
box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 35%, transparent);
animation: pop 0.35s ease;
}
.alert-card .t { font-size: 13px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; display: flex; gap: 10px; align-items: center; }
.alert-card .t .mono { margin-left: auto; letter-spacing: 0; font-size: 15px; }
.alert-card h2 { font-size: 23px; font-weight: 800; letter-spacing: -0.4px; }
.alert-card p { margin: 2px 0 0; font-weight: 600; }
.alert-card .btn { border: 0; }
.alert-card .btn.dark { background: var(--on-accent); color: #f3e9dc; }
.alert-card .btn.outline { background: transparent; color: var(--on-accent); border: 2px solid var(--on-accent); }
.alert-card svg { width: 24px; height: 24px; }
@keyframes pop { from { transform: scale(0.96); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .alert-card { animation: none; } .ring .bar { transition: none; } }
.events { display: flex; flex-direction: column; }
.ev { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.ev:first-child { border-top: 0; }
.ev .when { width: 48px; flex: 0 0 auto; font-family: var(--f-num); font-weight: 700; color: var(--fg-2); }
.ev .what { flex: 1 1 auto; min-width: 0; }
.ev .what b { display: block; font-size: 15px; }
.ev .what span { font-size: 13px; color: var(--muted); }
.ev .badge { flex: 0 0 auto; padding: 4px 10px; border-radius: 10px; font: 700 13px var(--f-num); background: var(--inset); color: var(--fg-2); }
.ev.done { opacity: 0.55; }
.ev.done b { text-decoration: line-through; }
.ev.done .badge { background: var(--hop-soft); color: var(--hop-fg); }
.ev.due .badge { background: var(--accent); color: var(--on-accent); }
.ev.due .when { color: var(--accent-fg); }
.checklist { display: flex; flex-direction: column; gap: 4px; }
.check {
display: flex; gap: 12px; align-items: flex-start; padding: 10px 2px; min-height: 44px; cursor: pointer;
border-top: 1px solid var(--line);
}
.check:first-child { border-top: 0; }
.check input { appearance: none; -webkit-appearance: none; width: 26px; height: 26px; flex: 0 0 auto; margin: 0; border-radius: 8px; border: 2px solid var(--line-2); background: var(--inset); display: grid; place-items: center; cursor: pointer; }
.check input:checked { background: var(--hop); border-color: var(--hop); }
.check input:checked::after { content: ''; width: 7px; height: 13px; border: solid #10180a; border-width: 0 3px 3px 0; transform: rotate(45deg) translate(-1px, -1px); }
.check span { padding-top: 2px; }
.check input:checked + span { color: var(--muted); }
.next-card .row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.next-card b { font-size: 17px; }
.banner { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 16px; border: 1px dashed var(--line-2); color: var(--muted); font-size: 13px; }
.banner.warn { border-style: solid; border-color: var(--danger); color: var(--danger); background: var(--danger-soft); }
.banner.info { border-style: solid; border-color: var(--line-2); background: var(--card); color: var(--fg-2); }
.banner svg { flex: 0 0 auto; }
.banner .btn { margin-left: auto; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span, .field > label { font-size: 13px; font-weight: 650; color: var(--fg-2); }
.input, .select, textarea.input {
width: 100%; min-height: 48px; padding: 0 14px;
border-radius: 13px; border: 1px solid var(--line-2); background: var(--inset); color: var(--fg);
font-size: 16px;
}
textarea.input { padding: 12px 14px; min-height: 90px; resize: vertical; line-height: 1.45; }
.input.num { font-family: var(--f-num); }
.input:focus, .select:focus { border-color: var(--accent); outline: none; }
.select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.unit-wrap { position: relative; }
.unit-wrap .unit { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 13px; pointer-events: none; }
.unit-wrap .input { padding-right: 38px; }
.plan-hint { font-size: 12px; color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.item { display: grid; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); }
.item:first-of-type { border-top: 0; padding-top: 2px; }
.item-head { display: flex; gap: 8px; align-items: center; }
.item-head .select, .item-head .input { flex: 1 1 auto; min-width: 0; }
.item-head .icon-btn { width: 40px; height: 40px; border-radius: 12px; color: var(--muted); }
.mini-label { font-size: 11px; font-weight: 650; letter-spacing: 0.6px; text-transform: uppercase; color: var(--muted); }
.statbar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.statbar .stat { padding: 8px 10px; }
.range { margin-top: 6px; height: 6px; border-radius: 3px; background: var(--line); position: relative; }
.range i { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: color-mix(in srgb, var(--hop) 45%, transparent); }
.range b { position: absolute; top: -3px; width: 4px; height: 12px; border-radius: 2px; background: var(--fg); transform: translateX(-2px); }
.range b.out { background: var(--warn); }
.sticky-stats { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; margin: 0 -4px; padding: 6px 4px; background: var(--bg); }
.water-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.list { display: flex; flex-direction: column; gap: 10px; }
.list-card { text-align: left; width: 100%; cursor: pointer; }
.list-card .row { display: flex; gap: 12px; align-items: center; }
.list-card h3 { font-size: 17px; font-weight: 750; }
.glass { width: 34px; height: 44px; flex: 0 0 auto; border-radius: 4px 4px 10px 10px; position: relative; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.12); }
.glass::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 9px; background: #fbf4e6; opacity: 0.92; }
.tag { display: inline-flex; padding: 3px 9px; border-radius: 8px; font-size: 12px; font-weight: 700; background: var(--inset); color: var(--fg-2); border: 1px solid var(--line); }
.tag.kvasi { background: var(--accent-soft); color: var(--accent-fg); border-color: transparent; }
.tag.lezi { background: var(--hop-soft); color: var(--hop-fg); border-color: transparent; }
.tag.active { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.empty { text-align: center; padding: 28px 18px; color: var(--muted); }
.empty h3 { color: var(--fg); font-size: 17px; margin-bottom: 6px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 11px; letter-spacing: 0.7px; text-transform: uppercase; color: var(--muted); font-weight: 650; padding: 6px 4px; }
.table td { padding: 8px 4px; border-top: 1px solid var(--line); }
.table td.n { font-family: var(--f-num); text-align: right; white-space: nowrap; }
.table th.n { text-align: right; }
.chart { width: 100%; height: auto; display: block; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--muted); stroke: none; font: 500 10px var(--f-num); }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2.2; }
.chart .line.hop { stroke: var(--hop); }
.chart .area { stroke: none; fill: color-mix(in srgb, var(--accent) 16%, transparent); }
.chart .pt { fill: var(--hop); stroke: var(--card); stroke-width: 2; }
.chart .end { fill: var(--accent); stroke: var(--card); stroke-width: 2; }
details.card { gap: 0; padding: 0; }
details.card > summary { list-style: none; padding: 16px 18px; display: flex; align-items: center; gap: 12px; cursor: pointer; min-height: 56px; }
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary b { flex: 1 1 auto; font-size: 16px; }
details.card > summary .chev { transition: transform 0.2s; color: var(--muted); }
details.card[open] > summary .chev { transform: rotate(90deg); }
details.card .calc-body { padding: 0 18px 18px; display: flex; flex-direction: column; gap: 12px; }
.result { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--accent-soft); }
.result span { color: var(--fg-2); font-weight: 600; font-size: 14px; }
.result b { font-family: var(--f-num); font-size: 20px; color: var(--accent-fg); }
.result.alt { background: var(--inset); }
.result.alt b { color: var(--fg); }
.opt { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); min-height: 56px; }
.opt:first-of-type { border-top: 0; }
.opt .txt { flex: 1 1 auto; min-width: 0; }
.opt .txt b { display: block; font-size: 15px; }
.opt .txt span { font-size: 13px; color: var(--muted); }
.switch { appearance: none; -webkit-appearance: none; width: 52px; height: 32px; border-radius: 16px; background: var(--line-2); position: relative; flex: 0 0 auto; cursor: pointer; transition: background 0.15s; margin: 0; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 13px; background: #fff; transition: transform 0.15s; }
.switch:checked { background: var(--hop); }
.switch:checked::after { transform: translateX(20px); }
.radio-card { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--inset); cursor: pointer; min-height: 56px; }
.radio-card input { accent-color: var(--accent); width: 20px; height: 20px; margin: 0; }
.radio-card b { display: block; }
.radio-card span { font-size: 13px; color: var(--muted); }
.radio-card:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.log { font: 12px/1.5 var(--f-num); background: var(--inset); border-radius: 12px; padding: 10px 12px; max-height: 220px; overflow: auto; color: var(--fg-2); white-space: pre-wrap; word-break: break-all; }
.log .out { color: var(--accent-fg); }
.log .err { color: var(--danger); }
.tabbar {
position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
background: color-mix(in srgb, var(--bg-deep) 94%, transparent);
backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
border-top: 1px solid var(--line);
padding: 6px max(8px, env(safe-area-inset-left, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-right, 0px));
}
.tabbar .inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 54px; border: 0; background: none; color: var(--muted); font-size: 11px; font-weight: 650; border-radius: 12px; }
.tabbar button svg { width: 22px; height: 22px; }
.tabbar button[aria-current='page'] { color: var(--accent-fg); font-weight: 750; }
.tabbar .live-dot { position: absolute; margin-left: 18px; margin-top: -26px; width: 8px; height: 8px; border-radius: 4px; background: var(--accent); }
.sheet-wrap { position: fixed; inset: 0; z-index: 50; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.55); opacity: 0; transition: opacity 0.2s; }
.sheet {
position: absolute; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: var(--maxw);
max-height: 88vh; overflow: auto;
background: var(--card); border-radius: 26px 26px 0 0; border: 1px solid var(--line); border-bottom: 0;
padding: 8px max(18px, env(safe-area-inset-left, 0px)) calc(20px + env(safe-area-inset-bottom, 0px)) max(18px, env(safe-area-inset-right, 0px));
transform: translateY(100%); transition: transform 0.22s ease; box-shadow: var(--shadow);
}
.sheet-wrap.open .sheet { transform: none; }
.sheet-wrap.open .sheet-backdrop { opacity: 1; }
.sheet-grip { width: 40px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 4px auto 6px; }
.sheet-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.sheet-head h2 { flex: 1 1 auto; font-size: 20px; font-weight: 800; }
.sheet-body { display: flex; flex-direction: column; gap: 12px; }
.sheet-text { margin: 0; color: var(--fg-2); }
.menu-btn { justify-content: flex-start; }
.menu-btn.danger-text { color: var(--danger); }
.toast {
position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); z-index: 60;
transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
background: var(--fg); color: var(--bg); padding: 12px 18px; border-radius: 14px; font-weight: 650; font-size: 14px;
max-width: calc(100% - 32px); transition: opacity 0.2s, transform 0.2s; box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 700px) {
.view { padding-top: 28px; }
}
.pick-btn {
flex: 1 1 auto; min-width: 0; min-height: 48px; padding: 0 12px 0 14px;
display: flex; align-items: center; gap: 8px; text-align: left;
border-radius: 13px; border: 1px solid var(--line-2); background: var(--inset); color: var(--fg);
font-size: 16px; font-weight: 650;
}
.pick-btn > span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-btn svg { color: var(--muted); }
.pick-btn:active { border-color: var(--accent); }
.pick-search { position: sticky; top: -8px; z-index: 2; background: var(--card); padding: 2px 0 6px; }
.pick-list { display: flex; flex-direction: column; }
.pick-group { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); padding: 14px 2px 4px; }
.pick-row {
display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 6px;
border: 0; border-top: 1px solid var(--line); background: none; color: var(--fg); text-align: left; border-radius: 0;
}
.pick-group + .pick-row { border-top: 0; }
.pick-row:active { background: var(--inset); }
.pick-row.sel { color: var(--accent-fg); }
.pick-row .swatch { width: 18px; height: 18px; border-radius: 5px; }
.pick-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.pick-txt b { font-size: 15px; font-weight: 650; }
.pick-txt span { font-size: 13px; color: var(--muted); font-family: var(--f-num); }
.mine-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.mine-row:first-of-type { border-top: 0; }
.mine-row .pick-txt { cursor: pointer; }