@font-face {
  font-family: "SF Pro Text";
  src: url("/assets/SF-Pro.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "SF Pro Display";
  src: url("/assets/SF-Pro.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #080808;
  --surface: #171717;
  --raised: #202022;
  --pressed: #2a2a2d;
  --border: #303033;
  --border-strong: #404044;
  --text: #f7f7f7;
  --muted: #929296;
  --subtle: #65656a;
  --accent: #2f9bff;
  --success: #34c759;
  --danger: #ff453a;
  --primary: #f2f2f2;
  --primary-text: #111;
}

* { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: clip; }
html { background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body:has(dialog[open]) { overflow: hidden; }
button, input, textarea, select { font: inherit; }
h1, h2, h3, .step h3, .filter-card h3 { font-family: "SF Pro Display", "SF Pro Text", sans-serif; }
button { cursor: pointer; }
button, input, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hidden { display: none !important; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.shell {
  width: min(760px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 16px calc(96px + env(safe-area-inset-bottom));
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 84px;
  padding: calc(14px + env(safe-area-inset-top)) 0 14px;
  background: #080808f2;
  backdrop-filter: blur(18px);
}
.brand { display: flex; min-width: 0; align-items: center; gap: 11px; }
.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
  color: var(--text);
}
.brand-mark svg { width: 21px; height: 21px; }
.eyebrow { display: block; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .08em; }
.topbar h1 { margin: 2px 0 0; font-size: 23px; font-weight: 700; letter-spacing: -.025em; }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.online { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 600; }
.online i { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px #34c75914; }
.language-switch { display: flex; padding: 3px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
.language-switch button {
  min-width: 36px;
  height: 30px;
  padding: 0 9px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  transition: color .18s ease, background .18s ease, transform .12s ease;
}
.language-switch button.active { background: var(--primary); color: var(--primary-text); }
.language-switch button:active { transform: scale(.96); }

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--raised);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  transition: transform .12s ease, background .18s ease, border-color .18s ease, opacity .18s ease;
}
.button svg { width: 18px; height: 18px; }
.button:hover { background: var(--pressed); border-color: #4b4b50; }
.button:active { transform: scale(.98); }
.button.primary { border-color: var(--primary); background: var(--primary); color: var(--primary-text); }
.button.primary:hover { background: #fff; }
.button.wide { width: 100%; }
.button:disabled { cursor: wait; opacity: .5; }
.create-button { border-radius: 999px; }
.icon-button {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  transition: transform .12s ease, background .18s ease;
}
.icon-button:hover { background: var(--raised); }
.icon-button:active { transform: scale(.96); background: var(--pressed); }

.view-enter { animation: view-enter .22s ease-out both; }
.status-row { display: flex; justify-content: space-between; margin: 8px 2px 12px; color: var(--muted); font-size: 13px; }
.filter-grid { display: grid; gap: 10px; }
.filter-card {
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  animation: panel-enter .22s ease-out both;
}
.filter-card.inactive { opacity: .68; }
.filter-preview-strip { display: flex; min-height: 116px; align-items: center; overflow: hidden; padding: 14px 18px; border-bottom: 1px solid #252527; background: radial-gradient(circle at 50% -35%, #3a3a3d, #111 68%); }
.filter-preview { position: relative; display: grid; width: 86px; height: 86px; flex: 0 0 86px; place-items: center; overflow: hidden; margin-left: -22px; border: 1px solid #ffffff12; border-radius: 50%; background: #bfc0c0; box-shadow: 0 0 0 2px #171717; }
.filter-preview:first-child { margin-left: 0; }
.filter-preview img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; }
.filter-preview i { display: none; color: #4a4a4e; font-size: 24px; font-style: normal; font-weight: 650; }
.filter-preview.failed img { display: none; }
.filter-preview.failed i { display: block; }
.filter-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 0; }
.filter-card h3 { overflow: hidden; margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -.02em; text-overflow: ellipsis; white-space: nowrap; }
.filter-card small { display: block; overflow: hidden; margin-top: 4px; color: var(--muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.filter-card-head .toggle { min-width: 58px; height: 44px; padding: 0 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--raised); color: var(--muted); font-size: 12px; font-weight: 750; transition: transform .12s ease, color .18s ease, background .18s ease; }
.filter-card-head .toggle.on { color: var(--success); }
.filter-card-head .toggle:active { transform: scale(.95); }
.filter-condition-chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 14px 16px; }
.filter-condition-chips > span { max-width: 100%; overflow: hidden; padding: 8px 11px; border-radius: 9px; background: var(--raised); color: var(--text); font-size: 13px; font-weight: 550; text-overflow: ellipsis; white-space: nowrap; }
.filter-info-row { display: flex; min-height: 70px; align-items: center; justify-content: space-between; gap: 12px; margin: 0 16px; padding: 13px; border: 1px solid #242426; border-radius: 12px; background: #0e0e0f; }
.filter-info-label { display: flex; min-width: 0; align-items: center; gap: 10px; }
.filter-info-label > svg { width: 22px; height: 22px; flex: 0 0 22px; }
.filter-info-label b { display: block; font-size: 14px; }
.filter-info-label small { margin-top: 2px; font-size: 11px; }
.filter-info-row > b { flex: 0 0 auto; font-size: 15px; font-weight: 600; }
.filter-markets { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 16px 0; }
.filter-markets > span { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.filter-markets img { width: 25px; height: 25px; object-fit: contain; border-radius: 7px; }
.filter-markets b { font-weight: 550; }
.filter-card-footer { display: grid; grid-template-columns: minmax(0, 1fr) 58px; gap: 10px; padding: 14px 16px 16px; }
.filter-card-footer button { display: flex; min-height: 52px; align-items: center; justify-content: center; gap: 9px; border: 1px solid var(--border); border-radius: 12px; font-size: 16px; font-weight: 650; transition: transform .12s ease, background .18s ease; }
.filter-card-footer button:active { transform: scale(.98); }
.filter-edit { background: #39393b; color: var(--text); }
.filter-edit:hover { background: #444447; }
.filter-delete { background: #3a181b; color: var(--danger); }
.filter-delete:hover { background: #4a1c20; }
.filter-card-footer svg { width: 21px; height: 21px; }

.empty {
  display: grid;
  min-height: 390px;
  place-items: center;
  align-content: center;
  padding: 38px 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  text-align: center;
}
.empty-mark { display: grid; width: 56px; height: 56px; place-items: center; border: 1px solid var(--border); border-radius: 15px; background: var(--raised); color: var(--text); }
.empty-mark svg { width: 24px; height: 24px; }
.empty h2 { margin: 20px 0 7px; font-size: 20px; }
.empty p { max-width: 420px; margin: 0 0 22px; color: var(--muted); font-size: 14px; line-height: 1.5; }

.form-head { display: flex; align-items: center; gap: 13px; margin: 10px 0 16px; }
.form-head h2 { margin: 3px 0 0; font-size: 28px; font-weight: 700; letter-spacing: -.025em; }
#filter-form { display: grid; gap: 11px; }
.panel {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  animation: panel-enter .24s ease-out both;
}
.panel:nth-of-type(2) { animation-delay: .025s; }
.panel:nth-of-type(3) { animation-delay: .05s; }
.panel:nth-of-type(4) { animation-delay: .075s; }
.panel:nth-of-type(5) { animation-delay: .1s; }
.panel:nth-of-type(6) { animation-delay: .125s; }
.panel:nth-of-type(7) { animation-delay: .15s; }
.panel:nth-of-type(8) { animation-delay: .175s; }
.panel:nth-of-type(9) { animation-delay: .2s; }
.panel:nth-of-type(10) { animation-delay: .225s; }
.step { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.step > span { min-width: 29px; padding: 4px 6px; border: 1px solid var(--border-strong); border-radius: 8px; color: var(--muted); font-size: 10px; font-weight: 750; text-align: center; }
.step > i { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; background: var(--raised); color: var(--text); }
.step > i svg { width: 16px; height: 16px; }
.step h3 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.step em { margin-left: auto; color: var(--muted); font-size: 11px; font-style: normal; font-weight: 600; }
.hint { margin: -4px 0 14px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.inline-hint { margin: 8px 2px 0; }
.field { display: grid; gap: 7px; margin-top: 11px; }
.field > span { color: #d8d8da; font-size: 15px; font-weight: 500; }
.field small, .switch-line small { color: var(--muted); font-size: 13px; line-height: 1.4; }
input, textarea, select, .search {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
  background: #0d0d0e;
  color: var(--text);
  font-size: 16px;
  font-weight: 400;
  transition: border-color .18s ease, background .18s ease;
}
input::placeholder, textarea::placeholder { color: var(--subtle); }
input:focus, textarea:focus, select:focus { border-color: var(--border-strong); background: #111; }
textarea { resize: vertical; }
.grid { display: grid; gap: 9px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.segmented { display: flex; margin: 9px 0; padding: 4px; border: 1px solid var(--border); border-radius: 12px; background: #0d0d0e; }
.segmented.wrap { flex-wrap: wrap; }
.segmented button {
  flex: 1;
  min-width: 78px;
  min-height: 38px;
  padding: 0 9px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  transition: color .18s ease, background .18s ease, transform .12s ease;
}
.segmented button.active { background: var(--raised); color: var(--text); box-shadow: inset 0 0 0 1px #303033; }
.segmented button:active { transform: scale(.98); }
.switch-line { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 14px; }
.switch-line > span { display: grid; gap: 3px; }
.switch-line b { font-size: 15px; font-weight: 600; }
.switch-line input {
  appearance: none;
  position: relative;
  width: 44px;
  min-height: 26px;
  height: 26px;
  flex: 0 0 44px;
  padding: 2px;
  border: 0;
  border-radius: 999px;
  background: #39393d;
  transition: background .18s ease;
}
.switch-line input::before { display: block; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #0008; content: ""; transition: transform .2s cubic-bezier(.2,.8,.2,1); }
.switch-line input:checked { background: var(--accent); }
.switch-line input:checked::before { transform: translateX(18px); }

.picker-button {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #0d0d0e;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  text-align: left;
  transition: transform .12s ease, background .18s ease, border-color .18s ease, opacity .18s ease;
}
.picker-button:hover { border-color: var(--border-strong); background: #111; }
.picker-button:active { transform: scale(.99); }
.picker-button:disabled { cursor: not-allowed; opacity: .45; }
.picker-button b { display: inline-flex; align-items: center; gap: 5px; color: var(--accent); font-size: 12px; }
.picker-button b svg { width: 15px; height: 15px; }
.picker-button.compact { margin-top: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 5px;
  padding: 4px 5px 4px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--raised);
  color: var(--text);
  font-size: 12px;
  font-weight: 550;
  animation: chip-in .16s ease-out both;
  transition: opacity .15s ease, transform .15s ease;
}
.chip.removing { opacity: 0; transform: scale(.88); }
.chip-remove { display: grid; width: 22px; height: 22px; place-items: center; padding: 0; border: 0; border-radius: 50%; background: #303033; color: var(--muted); transition: color .15s ease, background .15s ease, transform .12s ease; }
.chip-remove:hover { background: #3a3a3e; color: var(--text); }
.chip-remove:active { transform: scale(.88); }
.chip-remove svg { width: 13px; height: 13px; }

.choice-grid, .market-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 11px; }
.choice-grid, .choice-grid label, .panel { min-width: 0; }
.choice-grid label, .market-grid label { display: flex; min-height: 56px; align-items: center; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: #101010; font-size: 15px; font-weight: 500; }
.choice-grid input, .market-grid input { width: 19px; min-height: auto; height: 19px; margin: 0 9px 0 0; padding: 0; accent-color: var(--accent); }
.choice-grid small { display: block; margin-left: auto; color: var(--muted); }
.market-grid label { gap: 10px; }
.market-grid input { order: 3; margin: 0 0 0 auto; }
.market-icon { display: inline-grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; overflow: hidden; border-radius: 10px; background: var(--raised); }
.market-icon img { width: 100%; height: 100%; object-fit: contain; }
.subpanel { margin-top: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: #0d0d0e; }
.save-bar { padding: 4px 0 calc(8px + env(safe-area-inset-bottom)); }
.save-bar .button { min-height: 52px; border-radius: 12px; font-size: 16px; }
.notice { margin: 8px 0 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); font-size: 13px; animation: notice-in .2s ease-out both; }

dialog {
  width: min(720px, calc(100% - 22px));
  height: min(720px, calc(100dvh - 24px));
  padding: 16px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 28px 90px #000c;
}
dialog[open] { display: grid; grid-template-rows: auto auto auto minmax(0, 1fr) auto; gap: 10px; animation: dialog-enter .22s cubic-bezier(.2,.8,.2,1) both; }
dialog::backdrop { background: #000c; animation: backdrop-enter .18s ease-out both; }
.sheet-handle { display: none; width: 40px; height: 4px; margin: -3px auto 2px; border-radius: 999px; background: var(--border-strong); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.dialog-head h3 { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.dialog-head p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.search-wrap { position: relative; display: block; }
.search-wrap > svg { position: absolute; z-index: 1; top: 50%; left: 13px; width: 18px; height: 18px; color: var(--muted); transform: translateY(-50%); pointer-events: none; }
.search-wrap input { padding-left: 42px; }
.picker-tools { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12px; }
.picker-tools > div { display: flex; gap: 6px; }
.picker-tools button { min-height: 38px; padding: 0 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--raised); color: var(--text); font-size: 12px; font-weight: 600; }
.picker-list { display: grid; min-height: 0; align-content: start; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.picker-list.visual-picker-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: max-content; gap: 8px; }
.picker-item { display: flex; min-height: 46px; align-items: center; gap: 9px; padding: 10px; border: 1px solid transparent; border-radius: 11px; color: var(--text); font-size: 13px; transition: background .15s ease, border-color .15s ease; }
.picker-item:hover { border-color: var(--border); background: var(--raised); }
.picker-item input { width: 17px; min-height: auto; height: 17px; padding: 0; accent-color: var(--accent); }
.visual-item { position: relative; display: flex; min-width: 0; height: auto; min-height: 0; flex-direction: column; align-items: stretch; gap: 7px; padding: 8px; border-color: var(--border); background: #101011; cursor: pointer; }
.visual-item.selected { border-color: #55555a; background: var(--raised); }
.visual-item > input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.visual-preview { display: grid; width: 100%; min-height: 0; aspect-ratio: 1; flex: 0 0 auto; overflow: hidden; place-items: center; border: 1px solid #242426; border-radius: 10px; background: var(--raised); color: var(--muted); font-size: 22px; }
.visual-preview img { width: 100%; height: 100%; object-fit: contain; }
.backdrop-swatch { width: 56%; aspect-ratio: 1; border: 1px solid #ffffff17; border-radius: 9px; box-shadow: inset 0 1px 1px #fff2, 0 6px 18px #0005; }
.visual-info { display: grid; min-width: 0; flex: 0 0 auto; align-content: center; gap: 2px; }
.visual-info b { display: -webkit-box; overflow: hidden; min-height: 28px; font-size: 12px; font-weight: 650; line-height: 14px; text-overflow: ellipsis; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.visual-info small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.visual-check { position: absolute; top: 7px; right: 7px; display: grid; width: 21px; height: 21px; place-items: center; border: 1px solid var(--border-strong); border-radius: 50%; background: #202022; color: transparent; transform: scale(.82); transition: color .16s ease, background .16s ease, transform .18s cubic-bezier(.2,.8,.2,1); }
.visual-check svg { width: 13px; height: 13px; }
.visual-item.selected .visual-check { border-color: var(--text); background: var(--text); color: var(--primary-text); transform: scale(1); }
.picker-empty { grid-column: 1 / -1; padding: 64px 15px; color: var(--muted); font-size: 13px; text-align: center; }
.skeleton { min-height: 0; aspect-ratio: 1; border: 1px solid var(--border); border-radius: 12px; background: var(--raised); animation: skeleton-pulse 1.1s ease-in-out infinite alternate; }

@keyframes view-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes panel-enter { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
@keyframes chip-in { from { opacity: 0; transform: scale(.88); } to { opacity: 1; transform: none; } }
@keyframes notice-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes dialog-enter { from { opacity: 0; transform: scale(.98) translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes backdrop-enter { from { opacity: 0; } to { opacity: 1; } }
@keyframes skeleton-pulse { from { opacity: .42; } to { opacity: .9; } }

@media (max-width: 640px) {
  .shell { padding: 0 12px calc(88px + env(safe-area-inset-bottom)); }
  .topbar { min-height: 74px; gap: 8px; }
  .brand-mark { width: 38px; height: 38px; flex-basis: 38px; border-radius: 11px; }
  .topbar h1 { font-size: 19px; }
  .online { display: none; }
  .create-button { width: 42px; min-height: 42px; padding: 0; }
  .create-button span { display: none; }
  .language-switch button { min-width: 32px; height: 28px; padding: 0 7px; }
  .form-head { margin-top: 6px; }
  .form-head h2 { font-size: 22px; }
  .panel { padding: 14px; }
  .step { gap: 7px; }
  .step > i { width: 28px; height: 28px; }
  .grid.two { grid-template-columns: 1fr; }
  .choice-grid { grid-template-columns: 1fr; }
  .market-grid { grid-template-columns: 1fr 1fr; }
  #number-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
  #number-types { width: 100%; overflow: hidden; }
  #number-types button { min-width: 0; max-width: 100%; }
  .card-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  dialog {
    width: calc(100% - 16px);
    max-width: none;
    height: min(86dvh, 760px);
    max-height: calc(100dvh - 16px);
    margin: auto 8px 8px;
    padding: 10px 12px calc(12px + env(safe-area-inset-bottom));
    border: 1px solid var(--border-strong);
    border-radius: 16px;
  }
  dialog[open] {
    grid-template-rows: auto auto auto auto minmax(0, 1fr) auto;
    gap: 10px;
    animation-name: sheet-enter;
  }
  .sheet-handle { display: block; }
  .dialog-head .icon-button:focus-visible { outline: 0; }
  .picker-tools { min-height: 38px; }
  .picker-tools button { min-height: 36px; padding: 0 13px; }
  .picker-list { grid-template-columns: 1fr; gap: 8px; padding-right: 2px; }
  .picker-list.visual-picker-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .visual-item { padding: 7px; }
  #picker-apply { min-height: 50px; }
  .dialog-head h3 { font-size: 20px; }
  @keyframes sheet-enter { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
}

@media (max-width: 390px) {
  .brand .eyebrow { display: none; }
  .topbar-actions { gap: 6px; }
  .language-switch button { min-width: 29px; padding: 0 5px; }
  .choice-grid { grid-template-columns: 1fr; }
  .segmented button { min-width: 68px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
