/* ══════════════════════════════════════════════════════════
   Obfusca — Dark OLED design system
   palette: slate-950 base / green-500 accent  (ui-ux-pro-max)
   ══════════════════════════════════════════════════════════ */

:root {
  /* surfaces */
  --bg:            #0B1120;
  --bg-grad:       radial-gradient(1100px 640px at 78% -12%, #16243F 0%, transparent 62%),
                   radial-gradient(760px 520px at 6% 4%, #10202B 0%, transparent 58%);
  --surface:       #0F172A;
  --surface-2:     #151F35;
  --surface-3:     #1B2740;
  --muted:         #272F42;

  /* text */
  --fg:            #F8FAFC;
  --fg-2:          #CBD5E1;
  --fg-3:          #94A3B8;
  --fg-4:          #64748B;

  /* lines */
  --line:          rgba(148, 163, 184, .14);
  --line-strong:   rgba(148, 163, 184, .26);

  /* brand */
  --accent:        #22C55E;
  --accent-soft:   rgba(34, 197, 94, .13);
  --accent-line:   rgba(34, 197, 94, .38);
  --on-accent:     #04220F;
  --danger:        #EF4444;
  --danger-soft:   rgba(239, 68, 68, .12);

  /* shape */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-full: 999px;

  /* elevation */
  --e-1: 0 1px 2px rgba(0,0,0,.4);
  --e-2: 0 6px 20px -6px rgba(0,0,0,.55);
  --e-3: 0 24px 60px -18px rgba(0,0,0,.75);
  --glow: 0 0 24px -4px rgba(34,197,94,.45);

  /* motion */
  --t-fast: 140ms cubic-bezier(.22,.61,.36,1);
  --t-base: 220ms cubic-bezier(.22,.61,.36,1);

  /* type */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Pretendard",
          "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;

  --z-modal: 100;
  --z-lock: 200;
  --z-toast: 300;
}

/* ── reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
/* 클래스의 display 선언이 [hidden]을 덮지 않도록 */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  background-image: var(--bg-grad);
  background-attachment: fixed;
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:where(a, button, input, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

.ico { width: 18px; height: 18px; flex: none; }

/* ══════════════════ 잠금 화면 ══════════════════ */
.lock {
  position: fixed; inset: 0; z-index: var(--z-lock);
  display: grid; place-items: center;
  padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
  background: var(--bg);
  background-image: var(--bg-grad);
  animation: fade-in var(--t-base) both;
}
.lock[hidden] { display: none; }

.lock__inner {
  width: 100%; max-width: 340px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.lock__badge {
  width: 60px; height: 60px; display: grid; place-items: center;
  border-radius: var(--r-lg);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  box-shadow: var(--glow);
  margin-bottom: 20px;
}
.lock__badge svg { width: 28px; height: 28px; }
.lock__title { font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.lock__sub { margin-top: 6px; color: var(--fg-3); font-size: 14px; }

.pin { display: flex; gap: 14px; margin: 28px 0 4px; }
.pin__dot {
  width: 13px; height: 13px; border-radius: var(--r-full);
  border: 1.5px solid var(--line-strong);
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.pin__dot.is-on {
  background: var(--accent); border-color: var(--accent);
  transform: scale(1.12); box-shadow: var(--glow);
}
.pin__field {
  position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none;
}
.lock__error {
  min-height: 22px; margin-top: 10px;
  color: var(--danger); font-size: 13px; font-weight: 500;
}
.lock.is-wrong .lock__inner { animation: shake 420ms cubic-bezier(.36,.07,.19,.97); }

.keypad {
  margin-top: 12px; width: 100%;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.key {
  height: 60px; border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--fg);
  font-size: 20px; font-weight: 500;
  display: grid; place-items: center;
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
  -webkit-tap-highlight-color: transparent;
}
.key:hover { background: var(--surface-3); border-color: var(--line-strong); }
.key:active { transform: scale(.96); background: var(--accent-soft); border-color: var(--accent-line); }
.key--ghost { background: transparent; color: var(--fg-3); font-size: 14px; }
.key--ghost svg { width: 22px; height: 22px; }

/* ══════════════════ 앱 셸 ══════════════════ */
.app { display: flex; flex-direction: column; min-height: 100dvh; }
.app[hidden] { display: none; }

.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px clamp(16px, 4vw, 32px);
  padding-top: max(12px, env(safe-area-inset-top));
  background: rgba(11, 17, 32, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar__brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.topbar__logo {
  width: 34px; height: 34px; flex: none; display: grid; place-items: center;
  border-radius: 10px; background: var(--accent-soft);
  border: 1px solid var(--accent-line); color: var(--accent);
}
.topbar__logo svg { width: 19px; height: 19px; }
.topbar__name { font-size: 17px; font-weight: 650; letter-spacing: -.02em; }
.topbar__tag {
  font-size: 13px; color: var(--fg-4);
  padding-left: 10px; margin-left: 2px; border-left: 1px solid var(--line);
  white-space: nowrap;
}
.topbar__actions { display: flex; align-items: center; gap: 8px; }

@media (max-width: 560px) { .topbar__tag { display: none; } }

/* ── layout ────────────────────────────────────────────── */
.layout {
  flex: 1;
  width: 100%; max-width: 1360px; margin: 0 auto;
  padding: clamp(16px, 3vw, 28px) clamp(16px, 4vw, 32px) 32px;
  display: grid; gap: clamp(16px, 2vw, 22px);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 1024px) {
  .layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

.foot {
  padding: 18px clamp(16px, 4vw, 32px);
  padding-bottom: max(18px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--fg-4); font-size: 12.5px; text-align: center;
}

/* ── panel ─────────────────────────────────────────────── */
.panel {
  background: linear-gradient(180deg, var(--surface) 0%, #0D1526 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--e-2);
  padding: clamp(16px, 2.4vw, 22px);
  display: flex; flex-direction: column; gap: 16px;
  min-width: 0;
}
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel__title { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.panel__meta {
  font-size: 12.5px; color: var(--fg-4);
  font-variant-numeric: tabular-nums;
}

/* ── editor ────────────────────────────────────────────── */
.editor {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #0A1120;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.editor:focus-within {
  border-color: var(--accent-line);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.editor__area {
  display: block; width: 100%;
  min-height: 168px; resize: vertical;
  padding: 14px 16px;
  background: none; border: 0; outline: none;
  font-size: 16px; line-height: 1.7; color: var(--fg);
}
.editor__area::placeholder { color: var(--fg-4); }
.editor__bar { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── buttons ───────────────────────────────────────────── */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--fg-2);
  --btn-line: var(--line);
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 44px; padding: 0 14px;
  border-radius: var(--r-md);
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-line);
  font-size: 14px; font-weight: 500; white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast),
              border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { --btn-fg: var(--fg); --btn-line: var(--line-strong); background: var(--surface-2); }
.btn:active { transform: scale(.975); }
.btn[disabled] { opacity: .42; pointer-events: none; }

.btn--ghost { --btn-line: transparent; }
.btn--ghost:hover { --btn-line: var(--line); }
.btn--soft { --btn-bg: var(--surface-2); }
.btn--soft:hover { --btn-bg: var(--surface-3); }
.btn--icon { width: 44px; padding: 0; }
.btn--sm { position: relative; min-height: 36px; padding: 0 11px; font-size: 13px; }
.btn--sm .ico { width: 15px; height: 15px; }
/* 시각 크기는 유지하되 터치 영역은 44px 이상 확보 */
.btn--sm::after { content: ""; position: absolute; inset: -4px; }
.btn--sm.btn--icon { width: 38px; padding: 0; }
.btn--lg { min-height: 52px; font-size: 15.5px; font-weight: 600; }

.btn--primary {
  --btn-bg: var(--accent); --btn-fg: var(--on-accent); --btn-line: var(--accent);
  box-shadow: var(--glow);
}
.btn--primary:hover { --btn-bg: #2BD96B; --btn-fg: var(--on-accent); --btn-line: #2BD96B; }

.btn--danger-ghost:hover { --btn-bg: var(--danger-soft); --btn-fg: #FCA5A5; --btn-line: rgba(239,68,68,.32); }

.btn--copy.is-done {
  --btn-bg: var(--accent-soft); --btn-fg: var(--accent); --btn-line: var(--accent-line);
}

.kbd {
  margin-left: 2px; padding: 2px 6px; border-radius: 6px;
  background: rgba(0,0,0,.22); border: 1px solid rgba(0,0,0,.25);
  font-size: 11px; font-weight: 600; letter-spacing: .02em;
}
.badge {
  min-width: 20px; height: 20px; padding: 0 6px;
  display: inline-grid; place-items: center; border-radius: var(--r-full);
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  color: var(--accent); font-size: 11.5px; font-weight: 650;
  font-variant-numeric: tabular-nums;
}

/* ── options ───────────────────────────────────────────── */
.options { display: grid; gap: 18px; }
.field { display: grid; gap: 10px; }
.field__label {
  font-size: 12px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--fg-4);
}

.field__hint {
  font-size: 11px; font-weight: 500; letter-spacing: 0;
  text-transform: none; color: var(--fg-4); opacity: .85;
}

.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.seg input { position: absolute; opacity: 0; width: 0; height: 0; }
.seg__box {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  min-height: 56px; padding: 6px 4px;
  border-radius: var(--r-md);
  background: var(--surface-2); border: 1px solid var(--line);
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
  text-align: center;
}
.seg__box b { font-size: 13.5px; font-weight: 600; color: var(--fg-2); }
.seg__box i { font-size: 10.5px; font-style: normal; color: var(--fg-4); letter-spacing: -.01em; }
.seg:hover .seg__box { border-color: var(--line-strong); }
.seg input:checked + .seg__box {
  background: var(--accent-soft); border-color: var(--accent-line);
  box-shadow: inset 0 0 0 1px rgba(34,197,94,.18);
}
.seg input:checked + .seg__box b { color: var(--accent); }
.seg input:checked + .seg__box i { color: rgba(34,197,94,.72); }
.seg input:focus-visible + .seg__box { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── 스타일 칩 ─────────────────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { display: inline-flex; }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip__box {
  display: inline-flex; align-items: baseline; gap: 7px;
  min-height: 40px; padding: 0 13px;
  border-radius: var(--r-full);
  background: var(--surface-2); border: 1px solid var(--line);
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
  cursor: pointer;
}
.chip__box b { font-size: 13.5px; font-weight: 550; color: var(--fg-3); }
.chip__box i {
  font-size: 12px; font-style: normal; color: var(--fg-4);
  letter-spacing: .02em;
}
.chip:hover .chip__box { border-color: var(--line-strong); background: var(--surface-3); }
.chip input:checked + .chip__box {
  background: var(--accent-soft); border-color: var(--accent-line);
}
.chip input:checked + .chip__box b { color: var(--accent); }
.chip input:checked + .chip__box i { color: rgba(34, 197, 94, .8); }
.chip input:focus-visible + .chip__box { outline: 2px solid var(--accent); outline-offset: 2px; }

.switches { display: grid; gap: 4px; }
.switch {
  display: flex; align-items: center; gap: 12px;
  min-height: 48px; padding: 4px 2px;
  border-radius: var(--r-md);
  transition: background var(--t-fast);
}
.switch:hover { background: rgba(148,163,184,.05); }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch__track {
  position: relative; flex: none;
  width: 42px; height: 25px; border-radius: var(--r-full);
  background: var(--muted); border: 1px solid var(--line-strong);
  transition: background var(--t-fast), border-color var(--t-fast);
}
.switch__thumb {
  position: absolute; top: 2px; left: 2px;
  width: 19px; height: 19px; border-radius: var(--r-full);
  background: var(--fg-3);
  transition: transform var(--t-base), background var(--t-fast);
}
.switch input:checked + .switch__track { background: var(--accent-soft); border-color: var(--accent); }
.switch input:checked + .switch__track .switch__thumb { transform: translateX(17px); background: var(--accent); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch__text { display: grid; gap: 0; min-width: 0; }
.switch__text b { font-size: 14px; font-weight: 500; color: var(--fg-2); }
.switch__text i { font-size: 12px; font-style: normal; color: var(--fg-4); }

.seed { display: flex; align-items: center; gap: 10px; padding-left: 2px; }
.seed__label { font-size: 13px; color: var(--fg-3); }

.input {
  width: 100%; min-height: 44px; padding: 0 13px;
  border-radius: var(--r-md);
  background: #0A1120; border: 1px solid var(--line); color: var(--fg);
  outline: none; font-size: 15px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.input::placeholder { color: var(--fg-4); }
.input:focus { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.input--sm { width: 120px; min-height: 40px; font-variant-numeric: tabular-nums; }

.actions { display: grid; }
.actions .btn { width: 100%; }

/* ── results ───────────────────────────────────────────── */
.results { display: grid; gap: 12px; }
.results:empty { display: none; }

.card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface-2);
  overflow: hidden;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  animation: rise var(--t-base) both;
}
.card:hover { border-color: var(--line-strong); }

.card__head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 10px 9px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(148,163,184,.035);
}
.card__label { display: flex; align-items: center; gap: 9px; min-width: 0; }
.card__tag {
  flex: none; padding: 3px 9px; border-radius: var(--r-full);
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  color: var(--accent); font-size: 11.5px; font-weight: 650; white-space: nowrap;
}
.card__name {
  font-size: 12.5px; color: var(--fg-4);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 14px;
  border-top: 1px solid var(--line);
  background: rgba(148, 163, 184, .035);
}
.card__read { font-size: 11.5px; font-weight: 550; color: var(--fg-3); }
.card__stat {
  font-size: 11.5px; color: var(--fg-4); font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.card__body {
  padding: 14px;
  font-size: 15.5px; line-height: 1.85;
  white-space: pre-wrap; word-break: break-word;
  max-height: 190px; overflow: auto;
  color: var(--fg);
  user-select: text;
  -webkit-user-select: text;
}
.card__body::-webkit-scrollbar { width: 8px; }
.card__body::-webkit-scrollbar-thumb { background: var(--muted); border-radius: var(--r-full); }

/* ── empty ─────────────────────────────────────────────── */
.empty {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 8px; padding: 40px 18px;
  border: 1px dashed var(--line-strong); border-radius: var(--r-lg);
  background: rgba(148,163,184,.025);
}
.empty[hidden] { display: none; }
.empty__ico {
  width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 4px;
  border-radius: var(--r-md); background: var(--surface-2);
  border: 1px solid var(--line); color: var(--fg-4);
}
.empty__ico svg { width: 22px; height: 22px; }
.empty__title { font-size: 14.5px; font-weight: 550; color: var(--fg-2); }
.empty__desc { font-size: 13px; color: var(--fg-4); max-width: 34ch; }

/* ══════════════════ modal ══════════════════ */
.modal { position: fixed; inset: 0; z-index: var(--z-modal); display: flex; }
.modal[hidden] { display: none; }
.modal__scrim {
  position: absolute; inset: 0;
  background: rgba(2, 6, 16, .68);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  animation: fade-in var(--t-fast) both;
}
.modal__box {
  position: relative; margin: auto;
  width: min(560px, 100%);
  max-height: min(88dvh, 780px);
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  box-shadow: var(--e-3);
  overflow: hidden;
  animation: pop var(--t-base) both;
}
.modal__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 12px 14px 20px;
  border-bottom: 1px solid var(--line);
}
.modal__title { font-size: 16px; font-weight: 600; }
.modal__body { padding: 18px 20px 22px; overflow: auto; display: grid; gap: 14px; }

.savebar { display: flex; gap: 8px; }
.savebar .btn { flex: none; }

.searchbar { position: relative; }
.searchbar__ico {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--fg-4); pointer-events: none;
}
.input--search { padding-left: 38px; }
.input--search::-webkit-search-cancel-button { filter: invert(.6); }

.vault { display: grid; gap: 8px; }
.vault__empty { color: var(--fg-4); font-size: 13.5px; text-align: center; padding: 22px 0; }
.vault__empty[hidden] { display: none; }

.vitem {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center;
  padding: 11px 11px 11px 14px;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface-2);
  transition: border-color var(--t-fast), background var(--t-fast);
  animation: rise var(--t-fast) both;
}
.vitem:hover { border-color: var(--line-strong); background: var(--surface-3); }
.vitem__main { min-width: 0; display: grid; gap: 2px; }
.vitem__name {
  font-size: 14px; font-weight: 550; color: var(--fg);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vitem__preview {
  font-size: 12.5px; color: var(--fg-4);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vitem__date { font-size: 11.5px; color: var(--fg-4); font-variant-numeric: tabular-nums; }
.vitem__acts { display: flex; gap: 6px; }

/* ══════════════════ toast ══════════════════ */
.toasts {
  position: fixed; z-index: var(--z-toast);
  left: 50%; transform: translateX(-50%);
  bottom: max(20px, env(safe-area-inset-bottom));
  display: grid; gap: 8px; justify-items: center;
  width: min(420px, calc(100vw - 32px));
  pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 9px;
  padding: 11px 16px;
  border-radius: var(--r-full);
  background: rgba(21, 31, 53, .96);
  border: 1px solid var(--line-strong);
  box-shadow: var(--e-3);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 14px; font-weight: 500; color: var(--fg);
  animation: toast-in var(--t-base) both;
  max-width: 100%;
}
.toast.is-out { animation: toast-out var(--t-fast) both; }
.toast--ok { border-color: var(--accent-line); }
.toast--ok .ico { color: var(--accent); }
.toast--err { border-color: rgba(239,68,68,.42); }
.toast--err .ico { color: var(--danger); }

/* ══════════════════ animation ══════════════════ */
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise {
  from { opacity: 0; transform: translateY(7px); }
  to   { opacity: 1; transform: none; }
}
@keyframes pop {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
  to   { opacity: 1; transform: none; }
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(14px) scale(.96); }
  to   { opacity: 1; transform: none; }
}
@keyframes toast-out {
  from { opacity: 1; transform: none; }
  to   { opacity: 0; transform: translateY(8px) scale(.97); }
}
@keyframes shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-7px); }
  40%, 60% { transform: translateX(7px); }
}

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

/* ── narrow phones ─────────────────────────────────────── */
@media (max-width: 400px) {
  .seg__box { padding: 6px 2px; }
  .seg__box i { font-size: 10px; }
  .savebar { flex-wrap: wrap; }
  .savebar .btn { flex: 1 0 100%; }
}
