/* ============================================================
   PanLite · 样式表
   设计基调：冷白底 + 湖蓝主色 + 玻璃拟态，支持深色模式
   ============================================================ */

:root {
  --primary: #0891b2;
  --primary-dark: #0e7490;
  --accent: #38bdf8;
  --bg-page: #fbfdff;
  --bg-body: radial-gradient(circle at 12% -10%, #dbeafe 0%, transparent 42%),
             radial-gradient(circle at 90% 6%, #cffafe 0%, transparent 34%),
             #fbfdff;
  --bg-card: #ffffffcc;
  --bg-card-solid: #ffffff;
  --bg-input: #ffffff99;
  --bg-hover: #0891b20d;
  --bg-soft: #f0f7fa;
  --text-1: #1f2937;
  --text-2: #4b5563;
  --text-3: #9ca3af;
  --border: #d9e5ec;
  --border-2: #bcd3de;
  --shadow-sm: 0 1px 2px #0000000d;
  --shadow-md: 0 4px 14px -4px #0000001f;
  --shadow-lg: 0 14px 40px -12px #0000002e;
  --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-xl: 26px;
  --fast: .15s ease; --norm: .25s ease;
}

html[data-theme="dark"] {
  --primary: #22d3ee;
  --primary-dark: #06b6d4;
  --accent: #7dd3fc;
  --bg-page: #0b1116;
  --bg-body: radial-gradient(circle at 12% -10%, #0c2b38 0%, transparent 42%),
             radial-gradient(circle at 90% 6%, #122437 0%, transparent 34%),
             #0b1116;
  --bg-card: #131c23cc;
  --bg-card-solid: #131c23;
  --bg-input: #1a252daa;
  --bg-hover: #22d3ee14;
  --bg-soft: #16212a;
  --text-1: #e6edf3;
  --text-2: #9aa7b4;
  --text-3: #6b7684;
  --border: #243039;
  --border-2: #33434e;
  --shadow-sm: 0 1px 2px #0000004d;
  --shadow-md: 0 4px 14px -4px #00000066;
  --shadow-lg: 0 14px 40px -12px #00000099;
}

* { box-sizing: border-box; }

/* 关键：类上的 display:flex/grid 会覆盖 UA 的 [hidden]{display:none}，
   导致 hidden 元素仍然占位并拦截点击。这里统一强制隐藏。 */
[hidden] { display: none !important; }

html, body {
  margin: 0; padding: 0;
  min-height: 100%;
}

body {
  background: var(--bg-body);
  background-attachment: fixed;
  color: var(--text-1);
  font-family: "Manrope", "Noto Sans SC", -apple-system, BlinkMacSystemFont,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

button { font-family: inherit; cursor: pointer; }
input { font-family: inherit; }
svg { width: 100%; height: 100%; display: block; }
.dim { color: var(--text-3); }

/* ---------- 导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 10px clamp(14px, 4vw, 34px);
  background: color-mix(in srgb, var(--bg-page) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  display: flex; align-items: center; gap: 10px;
  color: inherit; text-decoration: none;
}
.nav-brand:hover { text-decoration: none; }

.brand-mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  flex: none;
  display: block;
}
.brand-mark img { display: block; width: 100%; height: 100%; border-radius: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 15.5px; font-weight: 800; letter-spacing: -.2px; }
.brand-text em {
  font-style: normal; font-size: 10.5px; font-weight: 600;
  color: var(--primary); letter-spacing: .4px;
}

.nav-actions { display: flex; gap: 6px; }

.icon-btn {
  width: 38px; height: 38px; padding: 9px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--bg-card);
  color: var(--text-2);
  transition: var(--fast);
}
.icon-btn:hover { background: var(--bg-hover); color: var(--primary); border-color: var(--primary); }
.icon-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.ico-moon { display: none; }
html[data-theme="dark"] .ico-sun { display: none; }
html[data-theme="dark"] .ico-moon { display: block; }

/* ---------- 布局 ---------- */
.wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: clamp(22px, 5vw, 48px) clamp(14px, 4vw, 24px) 60px;
}

/* ---------- Hero ---------- */
.hero { text-align: center; margin-bottom: 26px; }

.hero-title {
  margin: 0 0 8px;
  font-size: clamp(23px, 4.6vw, 36px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.22;
  /* 渐变只在同色系内过渡，避免末尾出现刺眼的金色 */
  background: linear-gradient(100deg, var(--primary-dark), var(--primary) 55%, color-mix(in srgb, var(--primary) 72%, var(--accent)));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--primary);
}
.hero-sub {
  margin: 0 0 22px;
  font-size: clamp(12.5px, 2.4vw, 14px);
  color: var(--text-2);
}
.hero-sub strong { color: var(--primary); font-weight: 700; }

/* ---------- 搜索框 ---------- */
.search-box {
  display: flex; align-items: center; gap: 6px;
  padding: 6px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
  transition: var(--norm);
}
.search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 14%, transparent), var(--shadow-md);
}
@media (max-width: 560px) {
  .search-box { flex-wrap: wrap; border-radius: var(--r-lg); }
}

.cat-wrap { position: relative; flex: none; }

.cat-trigger {
  display: flex; align-items: center; gap: 5px;
  height: 42px; padding: 0 12px;
  border: 0; border-radius: 20px;
  background: var(--bg-soft);
  color: var(--text-2);
  font-size: 13px; font-weight: 600;
  white-space: nowrap;
  transition: var(--fast);
}
.cat-trigger:hover { color: var(--primary); background: var(--bg-hover); }
.cat-trigger svg { width: 14px; height: 14px; flex: none; transition: transform var(--fast); }
.cat-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }

.cat-menu {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 30;
  min-width: 170px; max-height: 320px; overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-card-solid);
  box-shadow: var(--shadow-lg);
  animation: pop .16s ease;
}
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } }

.cat-item {
  display: flex; align-items: center; gap: 9px;
  width: 100%; padding: 9px 11px;
  border: 0; border-radius: 9px;
  background: transparent;
  color: var(--text-1);
  font-size: 13.5px; text-align: left;
  transition: var(--fast);
}
.cat-item:hover { background: var(--bg-hover); }
.cat-item[aria-selected="true"] { background: var(--bg-hover); color: var(--primary); font-weight: 700; }
.cat-item img { width: 17px; height: 17px; border-radius: 4px; flex: none; }
.cat-item .dot { width: 17px; height: 17px; border-radius: 50%; flex: none; }

.search-input {
  flex: 1; min-width: 0;
  height: 42px; padding: 0 8px;
  border: 0; background: transparent;
  color: var(--text-1);
  font-size: 15px;
  outline: none;
}
.search-input::placeholder { color: var(--text-3); }
.search-input::-webkit-search-cancel-button { display: none; }

.act-btn {
  display: flex; align-items: center; gap: 6px;
  border: 0; border-radius: 20px;
  transition: var(--fast);
  flex: none;
}
.act-btn.clear {
  width: 36px; height: 36px; padding: 9px;
  background: transparent; color: var(--text-3);
}
.act-btn.clear:hover { color: var(--text-1); background: var(--bg-hover); }

.act-btn.go {
  height: 42px; padding: 0 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; font-size: 14px; font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 3px 12px -3px var(--primary);
}
.act-btn.go svg { width: 16px; height: 16px; flex: none; }
.act-btn.go:hover { filter: brightness(1.08); transform: translateY(-1px); }
.act-btn.go:active { transform: translateY(0); }
@media (max-width: 560px) {
  .act-btn.go { flex: 1; justify-content: center; padding: 0 14px; }
  .cat-wrap, .search-input { flex: 1 1 60%; }
}

/* ---------- 热词 ---------- */
.hot {
  display: flex; flex-wrap: wrap; gap: 7px; justify-content: center;
  margin-top: 16px;
}
.hot-chip {
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg-card);
  color: var(--text-2);
  font-size: 12.5px;
  transition: var(--fast);
}
.hot-chip:hover:not(:disabled) {
  border-color: var(--primary); color: var(--primary);
  background: var(--bg-hover); transform: translateY(-1px);
}
.hot-chip:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- 状态条 ---------- */
.statusbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  margin: 20px 0 4px; padding: 11px 15px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-card);
  font-size: 13px;
}
.status-left { display: flex; align-items: center; gap: 9px; color: var(--text-2); }
.status-right { display: flex; align-items: center; gap: 8px; }
.statusbar .meta { color: var(--text-3); font-size: 12px; }
.statusbar.is-error { border-color: #ef444455; background: color-mix(in srgb, #ef4444 7%, var(--bg-card)); }
.statusbar.is-error .status-left { color: #dc2626; }
html[data-theme="dark"] .statusbar.is-error .status-left { color: #f87171; }

.spinner {
  width: 15px; height: 15px; flex: none;
  border: 2px solid var(--border-2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.mini-btn {
  padding: 5px 12px;
  border: 1px solid var(--border-2);
  border-radius: 8px;
  background: var(--bg-card-solid);
  color: var(--text-2);
  font-size: 12.5px; font-weight: 600;
  transition: var(--fast);
}
.mini-btn:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- 结果 ---------- */
.results { margin-top: 24px; display: flex; flex-direction: column; gap: 26px; }

.group { animation: fadeUp .3s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }

.group-head {
  display: flex; align-items: center; gap: 9px;
  margin-bottom: 11px;
}
.group-head img, .group-head .dot {
  width: 22px; height: 22px; border-radius: 6px; flex: none;
}
.group-head .dot { border-radius: 50%; }
.group-head h3 { margin: 0; font-size: 15px; font-weight: 700; }
.group-head .count {
  padding: 2px 9px;
  border-radius: 20px;
  background: var(--bg-soft);
  color: var(--text-2);
  font-size: 11.5px; font-weight: 700;
}

.cards { display: flex; flex-direction: column; gap: 9px; }

.card {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: var(--norm);
}
.card:hover {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.card-body { flex: 1; min-width: 0; }
.card-title {
  margin: 0 0 7px;
  font-size: 14px; font-weight: 600; line-height: 1.5;
  color: var(--text-1);
  word-break: break-word;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 11.5px; color: var(--text-3);
}
.card-meta .src {
  padding: 1px 7px; border-radius: 5px;
  background: var(--bg-soft); color: var(--text-2);
  max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.card-meta .pwd {
  padding: 1px 7px; border-radius: 5px;
  background: #f59e0b1f; color: #b45309; font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
html[data-theme="dark"] .card-meta .pwd { color: #fbbf24; background: #f59e0b26; }

.card-actions { display: flex; gap: 6px; align-items: center; flex: none; }

.pill-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 13px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--bg-card-solid);
  color: var(--text-2);
  font-size: 12.5px; font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: var(--fast);
}
.pill-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--bg-hover); text-decoration: none; }
.pill-btn.primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-color: transparent; color: #fff;
}
.pill-btn.primary:hover { filter: brightness(1.1); color: #fff; }
.pill-btn svg { width: 14px; height: 14px; }
@media (max-width: 620px) {
  .card { flex-direction: column; gap: 10px; }
  .card-actions { width: 100%; }
  .card-actions .pill-btn { flex: 1; justify-content: center; }
}

/* 分组底部「展开全部 / 收起」 */
.group-foot { margin-top: 8px; display: flex; justify-content: center; }
.more-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  border: 1px dashed var(--border-2);
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  font-size: 12.5px; font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--fast);
}
.more-btn:hover {
  border-color: var(--primary);
  border-style: solid;
  color: var(--primary);
  background: var(--bg-hover);
}
.more-btn svg { width: 14px; height: 14px; flex: none; transition: transform .2s ease; }
.more-btn svg.up { transform: rotate(180deg); }
.more-rest { color: var(--text-3); font-weight: 500; }

/* 设置里的热词快捷选择 */
.hot-picks { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.pick {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-card-solid);
  color: var(--text-2);
  font-size: 11.5px;
  cursor: pointer;
  transition: var(--fast);
}
.pick:hover { border-color: var(--primary); color: var(--primary); background: var(--bg-hover); }

.empty {
  padding: 54px 20px;
  text-align: center;
  color: var(--text-3);
}
.empty svg { width: 54px; height: 54px; margin: 0 auto 14px; color: var(--border-2); }
.empty h3 { margin: 0 0 6px; color: var(--text-2); font-size: 16px; }
.empty p { margin: 0; font-size: 13px; }

.skeleton-wrap { display: flex; flex-direction: column; gap: 10px; }
.skel-card {
  height: 66px;
  border-radius: var(--r-md);
  background: linear-gradient(90deg, var(--bg-soft) 25%, var(--bg-card-solid) 50%, var(--bg-soft) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- 精选合集 ---------- */
.section { margin-top: 46px; }

.section-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  margin-bottom: 15px;
}
.section-head h2 {
  margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -.3px;
}

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  padding: 5px 13px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg-card);
  color: var(--text-2);
  font-size: 12.5px; font-weight: 600;
  transition: var(--fast);
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-color: transparent; color: #fff;
}

.coll-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 9px; }

.coll-item {
  display: flex; align-items: center; gap: 9px;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-card);
  color: var(--text-1);
  font-size: 13px; text-align: left;
  transition: var(--fast);
}
.coll-item:hover {
  border-color: var(--primary); background: var(--bg-hover);
  transform: translateY(-1px); text-decoration: none;
  color: var(--primary);
}
.coll-item img { width: 18px; height: 18px; border-radius: 4px; flex: none; }
.coll-item span {
  flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.skel-line {
  height: 42px; border-radius: var(--r-md);
  background: linear-gradient(90deg, var(--bg-soft) 25%, var(--bg-card-solid) 50%, var(--bg-soft) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite;
}

.section-foot { margin-top: 14px; text-align: center; }

.ghost-btn {
  padding: 9px 20px;
  border: 1px solid var(--border-2);
  border-radius: 10px;
  background: var(--bg-card);
  color: var(--text-2);
  font-size: 13px; font-weight: 600;
  transition: var(--fast);
}
.ghost-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--bg-hover); }
.ghost-btn.full { width: 100%; }

.danger-btn {
  padding: 9px 20px;
  border: 1px solid #ef444455;
  border-radius: 10px;
  background: transparent;
  color: #dc2626;
  font-size: 13px; font-weight: 600;
  transition: var(--fast);
}
.danger-btn:hover { background: #ef444414; }
html[data-theme="dark"] .danger-btn { color: #f87171; }

/* ---------- 页脚 ---------- */
.foot {
  margin-top: 52px; padding-top: 22px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.foot-note { margin: 0 0 6px; font-size: 12px; color: var(--text-3); line-height: 1.7; }
.foot-note a { color: var(--text-2); text-decoration: underline; }

/* ---------- 抽屉 / 弹层 ---------- */
.drawer-mask, .modal-mask {
  position: fixed; inset: 0; z-index: 60;
  background: #00000059;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: fade .2s ease;
}
@keyframes fade { from { opacity: 0; } }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 61;
  width: min(400px, 92vw);
  display: flex; flex-direction: column;
  background: var(--bg-card-solid);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  animation: slideIn .26s cubic-bezier(.4, 0, .2, 1);
}
@keyframes slideIn { from { transform: translateX(100%); } }

.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.drawer-head h3 { margin: 0; font-size: 16px; font-weight: 800; }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 22px; }
.drawer-body .icon-btn { width: 34px; height: 34px; padding: 8px; }

.field { display: flex; flex-direction: column; gap: 7px; }
.field-label { font-size: 13px; font-weight: 700; color: var(--text-1); }
.field-hint { font-size: 11.5px; color: var(--text-3); line-height: 1.55; }

.field input[type="url"], .field input[type="number"] {
  width: 100%; height: 40px; padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-input);
  color: var(--text-1);
  font-size: 13.5px;
  outline: none;
  transition: var(--fast);
}
.field input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 15%, transparent); }

.switch {
  display: flex; align-items: center; gap: 9px;
  font-size: 13px; color: var(--text-2); cursor: pointer;
}
.switch input { width: 17px; height: 17px; accent-color: var(--primary); cursor: pointer; }

.health-list { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; }
.health-row {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 11px;
  border-radius: 9px;
  background: var(--bg-soft);
}
.health-row .tag {
  padding: 1px 8px; border-radius: 20px;
  font-size: 11px; font-weight: 700; flex: none;
}
.health-row.ok .tag { background: #10b98122; color: #059669; }
.health-row.bad .tag { background: #ef444422; color: #dc2626; }
html[data-theme="dark"] .health-row.ok .tag { color: #34d399; }
html[data-theme="dark"] .health-row.bad .tag { color: #f87171; }
.health-row .ep {
  flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px; color: var(--text-2);
}

/* ---------- 二维码弹层 ---------- */
.modal-mask { display: grid; place-items: center; padding: 20px; }
.modal {
  position: relative; z-index: 61;
  width: min(340px, 92vw);
  padding: 24px;
  border-radius: var(--r-lg);
  background: var(--bg-card-solid);
  box-shadow: var(--shadow-lg);
  text-align: center;
  animation: popIn .22s cubic-bezier(.4, 0, .2, 1);
}
@keyframes popIn { from { opacity: 0; transform: scale(.94); } }
.modal h3 { margin: 0 0 16px; font-size: 16px; font-weight: 800; }
.modal-close {
  position: absolute; top: 12px; right: 12px;
  width: 30px; height: 30px; padding: 7px;
  border: 0; border-radius: 8px;
  background: transparent; color: var(--text-3);
}
.modal-close:hover { background: var(--bg-hover); color: var(--text-1); }

.qr-holder {
  width: 210px; height: 210px; margin: 0 auto 14px;
  padding: 10px;
  border-radius: var(--r-md);
  background: #fff;
  display: grid; place-items: center;
}
.qr-holder canvas, .qr-holder img { width: 100%; height: 100%; image-rendering: pixelated; }
.qr-url {
  margin: 0 0 14px;
  font-size: 11.5px; color: var(--text-3);
  word-break: break-all; line-height: 1.5;
  max-height: 54px; overflow: hidden;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 34px; z-index: 90;
  transform: translateX(-50%);
  padding: 10px 20px;
  border-radius: 12px;
  background: var(--text-1);
  color: var(--bg-page);
  font-size: 13px; font-weight: 600;
  box-shadow: var(--shadow-lg);
  animation: toastIn .22s cubic-bezier(.4, 0, .2, 1);
  pointer-events: none;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 12px); } }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
