.roleta-app {
  --green-dark:#1a6b2a; --green-light:#2ea847;
  --ring:#155222; --red:#9b1c1c;
  --bg:#e8f5e9; --surface:#f4f4f2;
  --border:rgba(0,0,0,.10); --text:#1a1a1a; --muted:#888; --danger:#ef4444;
  --header-h: 53px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
  box-sizing: border-box;
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  overscroll-behavior-y: auto;
}
.roleta-app *, .roleta-app *::before, .roleta-app *::after { box-sizing: border-box; }

/* ── HEADER ── */
header {
  display:flex; align-items:center; justify-content:space-between; gap:8px;
  padding:10px 16px; padding-top: calc(10px + var(--safe-top));
  background:#fff; border-bottom:1px solid var(--border);
  position:sticky; top:0; z-index:40; min-height:var(--header-h);
  flex-shrink: 0;
}
.logo { font-size:17px; font-weight:700; color:var(--green-dark); white-space:nowrap; flex-shrink:0; }
.header-actions {
  display:flex; gap:6px; align-items:center;
  flex-shrink: 1; min-width: 0;
}
.header-actions-secondary { display:flex; gap:6px; align-items:center; }
.header-more-wrap { position:relative; display:none; }
.header-menu {
  display:none; position:absolute; top:calc(100% + 6px); right:0;
  background:#fff; border:1px solid var(--border);
  border-radius:10px; box-shadow:0 8px 24px rgba(0,0,0,.12);
  overflow:hidden; z-index:60; min-width:170px;
}
.header-menu.open { display:block; }
.header-menu button {
  display:flex; align-items:center; gap:8px; width:100%;
  padding:11px 14px; font-size:13px; font-weight:500;
  background:none; border:none; cursor:pointer; text-align:left;
  font-family:inherit; color:var(--text);
}
.header-menu button:hover { background:var(--surface); }
.hbtn {
  padding:6px 11px; font-size:12px; font-weight:500;
  background:#fff; border:1px solid var(--border);
  border-radius:8px; cursor:pointer; color:var(--text);
  font-family:inherit; transition:background .15s; white-space:nowrap;
  flex-shrink:0; touch-action: manipulation;
}
.hbtn:hover { background:var(--surface); }

/* ── ROOT APP CONTAINER ── */
.app {
  flex: 1;
  display: grid;
  /* Desktop: wheel | sidebar */
  grid-template-columns: 1fr 340px;
  grid-template-rows: 1fr;
  overflow: hidden;
  min-height: 0;
}

/* ── WHEEL AREA ── */
.wheel-area {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 14px; padding: 20px 16px 28px;
  background: var(--bg); position: relative;
  overflow: hidden; min-height: 0;
}
.wheel-title {
  text-align:center; font-size:clamp(18px,3vw,30px);
  font-weight:900; color:var(--green-dark);
  letter-spacing:1.5px; text-transform:uppercase; line-height:1.1;
}
.wheel-subtitle { text-align:center; font-size:clamp(12px,1.5vw,14px); color:#555; margin-top:2px; }

/* ── WHEEL WRAPPER — scales via JS, centred ── */
.wheel-wrap {
  position: relative;
  /* size set dynamically by resizeWheel() */
  flex-shrink: 0;
}
.pointer-top {
  position:absolute; top:-20px; left:50%; transform:translateX(-50%);
  width:0; height:0;
  border-left:18px solid transparent; border-right:18px solid transparent;
  border-top:34px solid var(--green-dark);
  z-index:10; filter:drop-shadow(0 2px 4px rgba(0,0,0,.3));
}
canvas#wheel { display:block; /* width/height set by JS */ }
.hub {
  position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  border-radius:50%;
  background:radial-gradient(circle at 38% 32%,#c53030,#7f1d1d);
  border:5px solid #fff;
  box-shadow:0 0 0 3px rgba(0,0,0,.2),0 4px 14px rgba(0,0,0,.35);
  z-index:6; cursor:pointer; display:flex; align-items:center; justify-content:center;
  font-weight:900; color:#fff; letter-spacing:1px;
  transition:transform .1s; text-shadow:0 1px 3px rgba(0,0,0,.4);
  /* size set by JS */
}
.hub:hover { transform:translate(-50%,-50%) scale(1.06); }
.hub:active { transform:translate(-50%,-50%) scale(0.96); }

.result-banner {
  position:absolute; bottom:12px; left:50%; transform:translateX(-50%);
  background:var(--green-dark); color:#fff; padding:9px 22px;
  border-radius:100px; font-size:14px; font-weight:700;
  white-space:nowrap; opacity:0; transition:opacity .3s;
  pointer-events:none; box-shadow:0 4px 16px rgba(0,0,0,.2);
  max-width:90%; overflow:hidden; text-overflow:ellipsis;
}
.result-banner.show { opacity:1; }

/* ── SIDEBAR ── */
.sidebar {
  background:#fff; border-left:1px solid var(--border);
  display:flex; flex-direction:column; overflow:hidden; min-height:0;
}
.tabs {
  display:flex; border-bottom:1px solid var(--border); flex-shrink:0;
  overflow-x:auto; -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}
.tabs::-webkit-scrollbar { display:none; }
.tab {
  flex:1; min-width:72px; padding:11px 8px; font-size:11px; font-weight:700;
  text-transform:uppercase; letter-spacing:.5px;
  background:none; border:none; cursor:pointer; color:#aaa;
  border-bottom:2px solid transparent; transition:all .15s; font-family:inherit;
  touch-action: manipulation; white-space:nowrap;
}
.tab.active { color:var(--green-dark); border-bottom-color:var(--green-dark); }
.tab-panel {
  display:none; flex:1; flex-direction:column;
  overflow:hidden; min-height:0; height:100%;
}
.tab-panel.active { display:flex; }

/* ── BOTTOM SHEET (mobile) — sidebar slides up from bottom ── */
.sidebar-toggle {
  display: none;
  position: fixed;
  bottom: calc(16px + var(--safe-bottom));
  right: 16px;
  z-index: 35;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--green-dark); color: #fff;
  border: none; font-size: 14px; font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  align-items: center; justify-content: center;
  flex-direction: column; gap: 1px;
  transition: transform .15s;
  touch-action: manipulation;
  line-height: 1;
}
.sidebar-toggle .fab-icon { font-size: 18px; line-height: 1; }
.sidebar-toggle .fab-label { font-size: 9px; font-weight: 700; letter-spacing: .3px; }
.sidebar-toggle:active { transform: scale(.93); }
.sidebar-toggle.sidebar-open {
  bottom: calc(min(88dvh, calc(100% - var(--header-h) - 8px)) + 12px);
}
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0; background: rgba(0,0,0,.45);
  z-index: 28; backdrop-filter: blur(2px);
  touch-action: none;
}
.sidebar-overlay.show { display: block; }

/* ═══════════════════════════════════════
   RESPONSIVE BREAKPOINTS
═══════════════════════════════════════ */

/* ── TABLET (≤ 900px): sidebar becomes a bottom drawer ── */
@media (max-width: 900px) {
  .app {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    min-height: 0;
  }
  .wheel-area {
    flex: 1;
    min-height: 0;
    height: auto;
    overflow: hidden;
  }
  .sidebar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    height: min(88dvh, calc(100% - var(--header-h) - 8px));
    max-height: min(88dvh, calc(100% - var(--header-h) - 8px));
    padding-bottom: var(--safe-bottom);
    border-left: none;
    border-top: 1px solid var(--border);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 24px rgba(0,0,0,.18);
    transform: translateY(100%);
    transition: transform .35s cubic-bezier(.32,.72,0,1);
    z-index: 30;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .sidebar.open { transform: translateY(0); }
  .sidebar-toggle { display: flex; }
  .header-actions-secondary { display:none; }
  .header-more-wrap { display:block; }
  .hbtn.help-btn .btn-label { display:none; }
  .tabs::before {
    content: '';
    position: absolute;
    top: 8px; left: 50%; transform: translateX(-50%);
    width: 36px; height: 4px;
    background: #ddd; border-radius: 2px;
  }
  .tabs { position: relative; padding-top: 20px; flex-shrink:0; }
  .roleta-app.sidebar-open { overflow:hidden; }
  .roleta-app.sidebar-open .wheel-area { pointer-events:none; }
}

@media (max-width: 480px) {
  :root { --header-h: 48px; }
  header { padding: 8px 12px; padding-top: calc(8px + var(--safe-top)); }
  .logo { font-size: 14px; max-width: 38vw; overflow:hidden; text-overflow:ellipsis; }
  .hbtn { padding: 7px 9px; font-size: 11px; }
  .wheel-area { gap: 8px; padding: 10px 8px 16px; }
  .wheel-title { font-size: clamp(15px, 4.8vw, 20px); letter-spacing: .4px; }
  .wheel-subtitle { font-size: 11px; }
  .sidebar {
    height: min(90dvh, calc(100% - var(--header-h) - 4px));
    max-height: min(90dvh, calc(100% - var(--header-h) - 4px));
    border-radius: 16px 16px 0 0;
  }
  .sidebar-toggle {
    bottom: calc(12px + var(--safe-bottom));
    right: 12px;
    width: 54px; height: 54px;
  }
  .tab { min-width: 64px; font-size: 9px; padding: 10px 4px; }
  .add-row { flex-wrap: wrap; }
  .add-btn { width: 100%; }
  .result-banner { font-size: 12px; padding: 8px 16px; bottom: 8px; }
  .toast { bottom: calc(80px + var(--safe-bottom)); }
}

/* ── LARGE DESKTOP (≥ 1400px) ── */
@media (min-width: 1400px) {
  .app { grid-template-columns: 1fr 380px; }
}

/* ENTRIES */
.entries-scroll,
.settings-scroll,
.help-scroll,
.history-scroll {
  flex:1; min-height:0; overflow-y:auto; overflow-x:hidden;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior:contain;
  touch-action: pan-y;
}
.entries-scroll { padding:8px; }
.entry-item { display:flex; align-items:center; gap:7px; padding:7px 9px; border-radius:8px; margin-bottom:4px; background:var(--surface); border:1px solid var(--border); transition:box-shadow .15s; }
.entry-item:hover { box-shadow:0 2px 8px rgba(0,0,0,.07); }
.entry-swatch { width:26px; height:26px; border-radius:6px; flex-shrink:0; border:2px solid rgba(0,0,0,.12); cursor:pointer; }
.entry-text { flex:1; font-size:13px; background:none; border:none; outline:none; color:var(--text); font-family:inherit; }
.entry-text:focus { background:#fff; border-radius:4px; padding:2px 6px; box-shadow:0 0 0 2px var(--green-light); }
.entry-weight { width:42px; font-size:12px; text-align:center; border:1px solid var(--border); border-radius:6px; padding:3px; background:#fff; outline:none; font-family:inherit; }
.entry-remove { width:22px; height:22px; background:none; border:none; cursor:pointer; color:#ccc; font-size:18px; display:flex; align-items:center; justify-content:center; border-radius:4px; transition:all .1s; flex-shrink:0; }
.entry-remove:hover { color:var(--danger); background:#fef2f2; }

/* ADD SLICE FORM */
.add-slice-form { padding:12px 10px; border-top:1px solid var(--border); background:#fafafa; display:flex; flex-direction:column; gap:8px; flex-shrink:0; }
.add-form-title { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.5px; color:#888; }
.add-row { display:flex; gap:7px; align-items:center; }
.add-input { flex:1; padding:8px 10px; border:1px solid var(--border); border-radius:8px; font-size:13px; background:#fff; outline:none; color:var(--text); font-family:inherit; }
.add-input:focus { border-color:var(--green-light); }
.color-pick { width:36px; height:36px; border-radius:8px; border:2px solid var(--border); cursor:pointer; padding:1px; background:none; flex-shrink:0; }
.add-btn { padding:8px 14px; font-size:13px; font-weight:700; background:var(--green-dark); color:#fff; border:none; border-radius:8px; cursor:pointer; font-family:inherit; transition:background .15s; white-space:nowrap; }
.add-btn:hover { background:#155222; }
.weight-row { display:flex; align-items:center; gap:8px; }
.weight-row label { font-size:12px; color:#666; white-space:nowrap; }
.weight-row input[type=range] { flex:1; accent-color:var(--green-dark); }
.weight-val { font-size:12px; font-weight:700; color:var(--green-dark); min-width:24px; }

/* SETTINGS */
.settings-body { padding:14px; display:flex; flex-direction:column; gap:14px; }
.sg { display:flex; flex-direction:column; gap:6px; }
.sg label { font-size:11px; font-weight:700; color:#888; text-transform:uppercase; letter-spacing:.4px; }
.sg select,.sg input[type=number] { padding:8px 10px; border:1px solid var(--border); border-radius:8px; font-size:13px; background:#fff; color:var(--text); outline:none; width:100%; font-family:inherit; }
.sg select:focus,.sg input[type=number]:focus { border-color:var(--green-light); }
.toggle-row { display:flex; align-items:center; gap:8px; font-size:13px; }
.toggle-row input[type=checkbox] { width:16px; height:16px; accent-color:var(--green-dark); cursor:pointer; }
.hint { font-size:11px; color:#bbb; }
.sbtn { width:100%; padding:9px 12px; font-size:13px; font-weight:500; border:1px solid var(--border); border-radius:8px; background:#fff; color:var(--text); cursor:pointer; font-family:inherit; transition:background .15s; text-align:left; }
.sbtn:hover { background:var(--surface); }
.sbtn.danger { color:var(--danger); border-color:#fecaca; }
.sbtn.danger:hover { background:#fef2f2; }
.bulk-area { width:100%; height:100px; padding:8px 10px; border:1px solid var(--border); border-radius:8px; font-size:12px; background:#fff; color:var(--text); resize:vertical; font-family:inherit; outline:none; }
.bulk-area:focus { border-color:var(--green-light); }
hr.div { border:none; border-top:1px solid var(--border); }

/* Sound upload */
.sound-upload-box {
  border:1.5px dashed var(--border);
  border-radius:10px;
  padding:14px 12px;
  display:flex;
  flex-direction:column;
  gap:10px;
  background:#fafafa;
  transition:border-color .2s;
}
.sound-upload-box.has-file { border-color:var(--green-light); background:#f0faf3; }
.sound-upload-label {
  display:flex; align-items:center; justify-content:center;
  gap:8px; padding:9px 14px;
  background:#fff; border:1px solid var(--border);
  border-radius:8px; cursor:pointer; font-size:13px;
  font-weight:600; color:var(--green-dark);
  transition:background .15s;
}
.sound-upload-label:hover { background:var(--surface); }
.sound-file-info {
  display:none; align-items:center; gap:8px;
  font-size:12px; color:#555;
}
.sound-file-info.show { display:flex; }
.sound-file-name {
  flex:1; overflow:hidden; text-overflow:ellipsis;
  white-space:nowrap; font-weight:600; color:var(--green-dark);
}
.sound-file-remove {
  background:none; border:none; cursor:pointer;
  color:#bbb; font-size:16px; line-height:1;
  padding:0 2px; transition:color .1s;
}
.sound-file-remove:hover { color:var(--danger); }
.sound-preview-row {
  display:none; align-items:center; gap:8px;
}
.sound-preview-row.show { display:flex; }
.sound-preview-btn {
  padding:6px 12px; font-size:12px; font-weight:600;
  background:var(--green-dark); color:#fff;
  border:none; border-radius:7px; cursor:pointer;
  transition:background .15s; flex-shrink:0;
}
.sound-preview-btn:hover { background:#155222; }
.sound-type-row { display:flex; gap:6px; }
.sound-type-btn {
  flex:1; padding:6px 4px; font-size:11px; font-weight:600;
  border:1px solid var(--border); border-radius:7px;
  background:#fff; color:#666; cursor:pointer;
  transition:all .15s; text-align:center;
}
.sound-type-btn.active {
  background:var(--green-dark); color:#fff; border-color:var(--green-dark);
}

/* HISTORY */
.history-body { padding:8px; display:flex; flex-direction:column; gap:4px; }
.hist-item { display:flex; align-items:center; gap:10px; padding:8px 10px; border-radius:8px; background:var(--surface); border:1px solid var(--border); font-size:13px; }
.hist-dot { width:10px; height:10px; border-radius:50%; flex-shrink:0; }
.hist-name { flex:1; font-weight:600; }
.hist-time { font-size:11px; color:#aaa; }
.hist-empty { padding:24px; text-align:center; color:#ccc; font-size:13px; }
.history-footer {
  padding:10px; border-top:1px solid var(--border);
  background:#fafafa; flex-shrink:0;
}
.history-count { font-size:11px; color:#888; text-align:center; margin-bottom:6px; }

/* MODAL */
.modal-overlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,.5); z-index:100; align-items:center; justify-content:center; }
.modal-overlay.show { display:flex; }
.modal { background:#fff; border-radius:20px; padding:36px 32px; max-width:380px; width:90%; text-align:center; animation:popIn .28s cubic-bezier(.34,1.56,.64,1); }
@keyframes popIn { from{transform:scale(.6);opacity:0} to{transform:scale(1);opacity:1} }
.modal-emoji { font-size:52px; margin-bottom:12px; }
.modal-label { font-size:14px; color:#888; margin-bottom:6px; }
.modal-winner { font-size:26px; font-weight:800; color:var(--green-dark); margin-bottom:24px; }
.modal-actions { display:flex; gap:10px; justify-content:center; }
.mbtn { padding:11px 22px; border-radius:100px; font-size:14px; font-weight:700; cursor:pointer; border:none; transition:transform .1s; font-family:inherit; }
.mbtn:active { transform:scale(.97); }
.mbtn.primary { background:var(--green-dark); color:#fff; }
.mbtn.primary:hover { background:#155222; }
.mbtn.secondary { background:var(--surface); color:var(--text); }
.mbtn.secondary:hover { background:#e5e5e2; }

::-webkit-scrollbar { width:4px; }
::-webkit-scrollbar-thumb { background:#ddd; border-radius:2px; }

/* ── LANGUAGE SELECTOR ── */
.lang-select {
  position: relative; display: flex; align-items: center;
}
.lang-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 10px; font-size: 12px; font-weight: 600;
  background: #fff; border: 1px solid var(--border);
  border-radius: 8px; cursor: pointer; color: var(--text);
  font-family: inherit; transition: background .15s;
  white-space: nowrap; user-select: none;
}
.lang-btn:hover { background: var(--surface); }
.lang-btn .lang-flag { font-size: 15px; line-height: 1; }
.lang-dropdown {
  display: none; position: absolute; top: calc(100% + 6px); right: 0;
  background: #fff; border: 1px solid var(--border);
  border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.12);
  overflow: hidden; z-index: 50; min-width: 170px;
}
.lang-dropdown.open { display: block; }
.lang-option {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; font-size: 13px; font-weight: 500;
  cursor: pointer; color: var(--text); transition: background .12s;
}
.lang-option:hover { background: var(--surface); }
.lang-option.active { background: #f0faf3; color: var(--green-dark); font-weight: 700; }
.lang-option .lang-flag { font-size: 16px; }

/* ── HELP TAB ── */
.help-body { padding:12px; display:flex; flex-direction:column; gap:14px; }
.help-card {
  background:var(--surface); border:1px solid var(--border);
  border-radius:10px; padding:12px;
}
.help-card-title {
  font-size:11px; font-weight:700; text-transform:uppercase;
  letter-spacing:.4px; color:var(--green-dark); margin-bottom:8px;
}
.help-steps { list-style:none; display:flex; flex-direction:column; gap:8px; }
.help-steps li {
  display:flex; gap:10px; align-items:flex-start;
  font-size:12px; line-height:1.45; color:#444;
}
.help-step-num {
  flex-shrink:0; width:22px; height:22px; border-radius:50%;
  background:var(--green-dark); color:#fff;
  font-size:11px; font-weight:700;
  display:flex; align-items:center; justify-content:center;
}
.preset-grid { display:grid; grid-template-columns:1fr 1fr; gap:7px; }
.preset-btn {
  padding:9px 8px; font-size:11px; font-weight:600;
  background:#fff; border:1px solid var(--border);
  border-radius:8px; cursor:pointer; text-align:left;
  font-family:inherit; color:var(--text); transition:all .15s;
  line-height:1.35;
}
.preset-btn:hover { border-color:var(--green-light); background:#f0faf3; }
.preset-btn span { display:block; font-size:10px; font-weight:400; color:#888; margin-top:2px; }
.help-code {
  background:#1e1e1e; color:#d4d4d4; border-radius:8px;
  padding:10px; font-size:10px; font-family:Consolas,monospace;
  overflow-x:auto; white-space:pre; line-height:1.5;
  max-height:120px; overflow-y:auto;
}
.help-actions { display:flex; flex-direction:column; gap:6px; }
.help-tip {
  font-size:11px; color:#666; line-height:1.5;
  padding:8px 10px; background:#fffbeb;
  border:1px solid #fde68a; border-radius:8px;
}
.entries-empty-hint {
  padding:16px 12px; text-align:center;
  font-size:12px; color:#888; line-height:1.5;
}
.entries-empty-hint button {
  margin-top:8px; padding:7px 14px; font-size:12px; font-weight:600;
  background:var(--green-dark); color:#fff; border:none;
  border-radius:8px; cursor:pointer; font-family:inherit;
}
.hbtn.help-btn { color:var(--green-dark); border-color:rgba(26,107,42,.25); font-weight:700; }

/* ── TOAST ── */
.toast {
  position:fixed; bottom:20px; left:50%; transform:translateX(-50%) translateY(80px);
  background:#1a1a1a; color:#fff; padding:10px 18px;
  border-radius:100px; font-size:13px; font-weight:600;
  z-index:200; opacity:0; transition:all .3s cubic-bezier(.32,.72,0,1);
  pointer-events:none; max-width:90%; text-align:center;
  box-shadow:0 8px 24px rgba(0,0,0,.2);
}
.toast.show { opacity:1; transform:translateX(-50%) translateY(0); }

/* ── WIZARD / ONBOARDING ── */
.wizard-overlay {
  display:none; position:fixed; inset:0;
  background:rgba(0,0,0,.55); z-index:150;
  align-items:center; justify-content:center; padding:16px;
}
.wizard-overlay.show { display:flex; }
.wizard-box {
  background:#fff; border-radius:18px; padding:28px 24px;
  max-width:420px; width:100%; animation:popIn .28s cubic-bezier(.34,1.56,.64,1);
}
.wizard-step-label { font-size:11px; font-weight:700; color:var(--green-dark); text-transform:uppercase; letter-spacing:.5px; margin-bottom:6px; }
.wizard-title { font-size:20px; font-weight:800; color:var(--text); margin-bottom:8px; line-height:1.2; }
.wizard-desc { font-size:13px; color:#666; line-height:1.55; margin-bottom:20px; }
.wizard-dots { display:flex; gap:6px; justify-content:center; margin-bottom:18px; }
.wizard-dot { width:8px; height:8px; border-radius:50%; background:#ddd; transition:background .2s; }
.wizard-dot.active { background:var(--green-dark); }
.wizard-footer { display:flex; gap:8px; justify-content:flex-end; }
.wbtn {
  padding:10px 18px; border-radius:100px; font-size:13px; font-weight:700;
  cursor:pointer; border:none; font-family:inherit; transition:all .15s;
}
.wbtn.ghost { background:var(--surface); color:var(--text); }
.wbtn.ghost:hover { background:#e5e5e2; }
.wbtn.primary { background:var(--green-dark); color:#fff; }
.wbtn.primary:hover { background:#155222; }
.wbtn.skip { background:none; color:#aaa; margin-right:auto; padding-left:0; }
.wbtn.skip:hover { color:#666; }

@media (max-width: 900px) {
  .preset-grid { grid-template-columns:1fr; }
}
.quick-presets {
  display:flex; gap:6px; padding:8px 8px 4px;
  overflow-x:auto; flex-shrink:0;
  border-bottom:1px solid var(--border);
  background:#fafafa;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}
.quick-presets::-webkit-scrollbar { display:none; }
.quick-preset-chip {
  flex-shrink:0; padding:5px 10px; font-size:11px; font-weight:600;
  background:#fff; border:1px solid var(--border); border-radius:100px;
  cursor:pointer; font-family:inherit; color:var(--green-dark);
  transition:all .15s; white-space:nowrap;
}
.quick-preset-chip:hover { background:#f0faf3; border-color:var(--green-light); }
