/* =========================================================
   笔记解析 · iOS 玻璃质感 + 拟物交互
   ========================================================= */

:root {
  --bg-0: #07080f;
  --bg-1: #121427;
  --ink: #f4f6ff;
  --ink-dim: rgba(244, 246, 255, 0.62);
  --ink-faint: rgba(244, 246, 255, 0.38);

  --glass-bg: linear-gradient(155deg, rgba(255, 255, 255, 0.19), rgba(255, 255, 255, 0.05));
  --glass-border: rgba(255, 255, 255, 0.22);
  --glass-inner: inset 0 1px 0 rgba(255, 255, 255, 0.42),
                 inset 0 -1px 0 rgba(255, 255, 255, 0.05);
  --glass-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.75);

  --accent-a: #7b5cff;
  --accent-b: #ff5ea8;
  --accent-c: #ffb86b;

  --spring: cubic-bezier(0.22, 1.18, 0.36, 1);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

[data-theme="light"] {
  --bg-0: #eef1fb;
  --bg-1: #dfe5f6;
  --ink: #16192b;
  --ink-dim: rgba(22, 25, 43, 0.62);
  --ink-faint: rgba(22, 25, 43, 0.36);
  --glass-bg: linear-gradient(155deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.52));
  --glass-border: rgba(255, 255, 255, 0.9);
  --glass-inner: inset 0 1px 0 rgba(255, 255, 255, 0.95),
                 inset 0 -1px 0 rgba(120, 130, 180, 0.12);
  --glass-shadow: 0 26px 50px -28px rgba(40, 50, 90, 0.45);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  background: radial-gradient(120% 90% at 50% -10%, var(--bg-1), var(--bg-0) 70%);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
               "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------------- 背景极光 ---------------- */
.aurora {
  position: fixed;
  inset: -20vmax;
  z-index: 0;
  filter: blur(60px) saturate(140%);
  pointer-events: none;
}
.blob {
  position: absolute;
  display: block;
  border-radius: 50%;
  opacity: 0.55;
  animation: drift 22s ease-in-out infinite alternate;
}
.blob-1 {
  width: 46vmax; height: 46vmax;
  left: -6vmax; top: -8vmax;
  background: radial-gradient(circle at 35% 35%, var(--accent-a), transparent 62%);
}
.blob-2 {
  width: 40vmax; height: 40vmax;
  right: -8vmax; top: 12vmax;
  background: radial-gradient(circle at 40% 40%, var(--accent-b), transparent 64%);
  animation-delay: -7s;
}
.blob-3 {
  width: 34vmax; height: 34vmax;
  left: 22vmax; bottom: -12vmax;
  background: radial-gradient(circle at 45% 45%, var(--accent-c), transparent 66%);
  animation-delay: -13s;
}
@keyframes drift {
  from { transform: translate3d(-2vmax, 1vmax, 0) scale(1); }
  to   { transform: translate3d(3vmax, -2vmax, 0) scale(1.12); }
}
.grain {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ---------------- 玻璃基类 ---------------- */
.glass {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow), var(--glass-inner);
  backdrop-filter: blur(26px) saturate(180%);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
}
.glass::after {
  /* 顶部高光扫过，玻璃的“反光” */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 42%);
  opacity: 0.5;
  pointer-events: none;
  mask-image: linear-gradient(180deg, #000 0%, transparent 45%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 45%);
}

/* ---------------- 布局 ---------------- */
.shell {
  position: relative;
  z-index: 1;
  width: min(880px, 100% - 32px);
  margin: 0 auto;
  padding: 40px 0 64px;
  display: grid;
  gap: 20px;
}

/* ---------------- 顶栏 ---------------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
}
.brand { display: flex; align-items: center; gap: 14px; }

.brand-mark {
  width: 46px; height: 46px;
  border-radius: 15px;
  position: relative;
  background:
    radial-gradient(120% 120% at 25% 18%, #fff 0%, rgba(255,255,255,0) 42%),
    conic-gradient(from 200deg, var(--accent-a), var(--accent-b), var(--accent-c), var(--accent-a));
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.85),
    inset 0 -3px 8px rgba(0, 0, 0, 0.35),
    0 10px 20px -10px rgba(123, 92, 255, 0.9);
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 8px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.2));
  box-shadow: inset 0 -1px 2px rgba(0, 0, 0, 0.25);
}
.brand-gloss {
  position: absolute;
  inset: 3px 8px auto 8px;
  height: 16px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.75), transparent);
  filter: blur(1px);
}
.brand-text h1 {
  margin: 0;
  font-size: 19px;
  letter-spacing: 0.02em;
  font-weight: 650;
}
.brand-text p {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--ink-dim);
}

/* 开关：拟物轨道 + 玻璃旋钮 */
.pill-switch {
  width: 58px; height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.42), rgba(255, 255, 255, 0.12));
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.55),
    inset 0 -1px 0 rgba(255, 255, 255, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.12);
  padding: 0;
  cursor: pointer;
  position: relative;
  transition: background 0.35s var(--spring);
}
.pill-switch__knob {
  position: absolute;
  top: 3px; left: 3px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background:
    radial-gradient(80% 80% at 30% 22%, #fff, #d9dcff 55%, #a9b0e8 100%);
  box-shadow:
    0 2px 5px rgba(0, 0, 0, 0.45),
    inset 0 -1px 1px rgba(0, 0, 0, 0.18),
    inset 0 1px 1px #fff;
  transition: transform 0.4s var(--spring), background 0.3s ease;
}
[aria-pressed="true"].pill-switch {
  background: linear-gradient(180deg, rgba(123, 92, 255, 0.95), rgba(255, 94, 168, 0.9));
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.35),
    inset 0 -1px 0 rgba(255, 255, 255, 0.4),
    0 0 18px rgba(255, 94, 168, 0.4);
}
[aria-pressed="true"] .pill-switch__knob {
  transform: translateX(24px);
  background: radial-gradient(80% 80% at 30% 22%, #fff, #ffe9f4 60%, #ffc6de 100%);
}

/* ---------------- 输入卡片 ---------------- */
.card {
  padding: 22px;
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}
.field__label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-left: 4px;
}
.field__row {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* 输入框：内凹 + 玻璃反光 */
.field__input,
.field__area {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.34), rgba(255, 255, 255, 0.06));
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  padding: 14px 16px;
  outline: none;
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.45),
    inset 0 -1px 0 rgba(255, 255, 255, 0.18);
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s var(--spring);
}
.field__input::placeholder,
.field__area::placeholder { color: var(--ink-faint); }

.field__input:focus,
.field__area:focus {
  border-color: rgba(155, 132, 255, 0.75);
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.45),
    0 0 0 4px rgba(123, 92, 255, 0.18),
    0 0 22px rgba(123, 92, 255, 0.25);
}
.field__area { resize: vertical; min-height: 76px; font-size: 13px; line-height: 1.5; }

/* ---------------- 按钮：拟物按压 ---------------- */
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  position: relative;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 22px;
  border-radius: 16px;
  color: #fff;
  transition: transform 0.16s var(--spring), box-shadow 0.2s ease, filter 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.btn:active { transform: translateY(2px) scale(0.992); }

.btn--primary {
  background: linear-gradient(180deg, #9d86ff 0%, #7b5cff 45%, #6a45f0 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 -2px 6px rgba(50, 20, 120, 0.55),
    0 12px 26px -12px rgba(123, 92, 255, 0.95),
    0 2px 0 rgba(70, 40, 160, 0.6);
  text-shadow: 0 1px 1px rgba(40, 20, 90, 0.55);
}
.btn--primary:hover { filter: brightness(1.06); }
.btn--primary:active {
  box-shadow:
    inset 0 2px 8px rgba(30, 10, 80, 0.6),
    inset 0 -1px 0 rgba(255, 255, 255, 0.25),
    0 4px 12px -8px rgba(123, 92, 255, 0.8);
}

.btn--soft {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.10));
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -2px 4px rgba(0, 0, 0, 0.18),
    0 8px 18px -12px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  text-decoration: none;
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn--icon { padding: 12px; border-radius: 14px; }
.btn--icon svg { width: 22px; height: 22px; fill: currentColor; }
.btn[disabled] { opacity: 0.6; pointer-events: none; }

.btn__spinner {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  display: none;
  animation: spin 0.8s linear infinite;
}
.btn.is-busy .btn__spinner { display: inline-block; }
.btn.is-busy .btn__label { opacity: 0.85; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- 高级选项 ---------------- */
.advanced summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13.5px;
  color: var(--ink-dim);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.advanced summary::-webkit-details-marker { display: none; }
.advanced .chev {
  width: 16px; height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform 0.3s var(--spring);
}
.advanced[open] .chev { transform: rotate(180deg); }
.advanced .hint {
  margin: 10px 4px 10px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-faint);
}

/* ---------------- 状态条 ---------------- */
.status {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-dim);
  padding-left: 4px;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #59d67e;
  box-shadow: 0 0 10px rgba(89, 214, 126, 0.85);
}
.status.is-busy .dot { background: #ffcc66; box-shadow: 0 0 10px rgba(255, 204, 102, 0.9); animation: pulse 1.1s ease-in-out infinite; }
.status.is-error .dot { background: #ff6b81; box-shadow: 0 0 10px rgba(255, 107, 129, 0.9); }
@keyframes pulse { 50% { opacity: 0.35; } }

/* ---------------- 结果区 ---------------- */
.result { display: grid; gap: 18px; }

.card-surf { padding: 22px; border-radius: var(--radius-lg); }

.note-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(160deg, #fff, #cfd6ff);
  box-shadow: inset 0 1px 0 #fff, 0 6px 14px -8px rgba(0, 0, 0, 0.8);
}
.note-head__name { font-weight: 600; font-size: 15px; }
.note-head__meta { font-size: 12.5px; color: var(--ink-faint); margin-top: 2px; }

.badge {
  margin-left: auto;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  color: var(--ink-dim);
}

/* 图片：相框式拟物 */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.shot {
  position: relative;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow:
    0 14px 26px -14px rgba(0, 0, 0, 0.9),
    inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  transition: transform 0.3s var(--spring), box-shadow 0.3s ease;
}
.shot img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
  transition: transform 0.5s var(--spring);
}
.shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.35), transparent 40%);
  opacity: 0.5;
  pointer-events: none;
  mix-blend-mode: screen;
}
.shot:hover { transform: translateY(-3px) rotate(-0.4deg); box-shadow: 0 22px 34px -16px rgba(0, 0, 0, 0.95); }
.shot:hover img { transform: scale(1.06); }

/* 视频 */
.video-wrap {
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 18px;
  background: #000;
  box-shadow:
    0 20px 40px -22px rgba(0, 0, 0, 0.95),
    inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.video-wrap {
  display: block;
  text-align: center;
  background:
    radial-gradient(70% 90% at 50% 40%, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.02) 70%),
    linear-gradient(180deg, rgba(12, 14, 24, 0.72), rgba(8, 9, 16, 0.9));
  backdrop-filter: blur(6px);
}
.video-wrap video {
  display: block;
  width: auto;
  height: 68vh;
  max-width: 100%;
  max-height: 68vh;
  margin: 0 auto;
  background: #000;
}

.note-title {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 650;
}
.note-desc {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-dim);
  white-space: pre-wrap;
  word-break: break-word;
}

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag {
  font-size: 12.5px;
  padding: 6px 11px;
  border-radius: 999px;
  color: #dcd6ff;
  background: linear-gradient(180deg, rgba(123, 92, 255, 0.35), rgba(123, 92, 255, 0.16));
  border: 1px solid rgba(160, 140, 255, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.stats {
  display: flex;
  gap: 18px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  color: var(--ink-dim);
}
.stats b { color: var(--ink); font-weight: 600; }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

/* 骨架屏 */
.skeleton { display: grid; gap: 14px; padding: 22px; }
.sk {
  border-radius: 14px;
  background: linear-gradient(100deg, rgba(255,255,255,.06) 20%, rgba(255,255,255,.16) 40%, rgba(255,255,255,.06) 60%);
  background-size: 220% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  height: 16px;
}
.sk.grid { height: 160px; }
.sk.title { height: 26px; width: 62%; }
@keyframes shimmer { to { background-position: -220% 0; } }

/* 错误态 */
.error-box {
  padding: 22px;
  border-radius: var(--radius-lg);
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255, 107, 129, 0.45);
  background: linear-gradient(160deg, rgba(255, 107, 129, 0.18), rgba(255, 107, 129, 0.06));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 24px 44px -28px rgba(255, 80, 110, 0.7);
}
.error-box h3 { margin: 0; font-size: 15.5px; }
.error-box p { margin: 0; font-size: 13.5px; line-height: 1.7; color: var(--ink-dim); }
.error-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: var(--ink-faint);
}

/* ---------------- 灯箱 ---------------- */
.lightbox[hidden] { display: none !important; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  gap: 16px;
  padding: 24px;
  background: rgba(6, 7, 14, 0.78);
  backdrop-filter: blur(18px) saturate(140%);
  animation: fade 0.25s ease;
}
.lightbox img {
  max-width: min(92vw, 900px);
  max-height: 78vh;
  border-radius: 18px;
  box-shadow: 0 40px 80px -40px #000, inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.lightbox__close {
  position: absolute;
  top: 18px; right: 20px;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(10px);
}
.lightbox__bar { display: flex; align-items: center; gap: 14px; }
.lightbox__index { font-size: 12.5px; color: rgba(255, 255, 255, 0.6); }
@keyframes fade { from { opacity: 0; } }

/* ---------------- Toast ---------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translate(-50%, 20px);
  padding: 12px 20px;
  border-radius: 14px;
  font-size: 13.5px;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.4s var(--spring);
  z-index: 60;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.footnote {
  text-align: center;
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}

/* 进入动画 */
.result > * { animation: rise 0.5s var(--spring) both; }
.result > *:nth-child(2) { animation-delay: 0.06s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(0.99); } }

@media (max-width: 560px) {
  .shell { padding-top: 24px; width: calc(100% - 22px); }
  .actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .brand-text p { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* 示例图的渐变占位 */
.shot__ph {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}
.shot__ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 45% at 30% 25%, rgba(255,255,255,.55), transparent 60%),
    linear-gradient(150deg, rgba(255,255,255,.18), transparent 55%);
  mix-blend-mode: screen;
}

/* ---------------- 浅色主题修正 ---------------- */
[data-theme="light"] .field__input,
[data-theme="light"] .field__area {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(236, 240, 252, 0.9));
  border-color: rgba(150, 160, 200, 0.55);
  color: #16192b;
  box-shadow:
    inset 0 2px 5px rgba(80, 90, 140, 0.22),
    inset 0 -1px 0 #fff;
}
[data-theme="light"] .field__input::placeholder,
[data-theme="light"] .field__area::placeholder { color: rgba(22, 25, 43, 0.4); }
[data-theme="light"] .field__input:focus,
[data-theme="light"] .field__area:focus {
  border-color: rgba(123, 92, 255, 0.8);
  box-shadow:
    inset 0 2px 5px rgba(80, 90, 140, 0.18),
    0 0 0 4px rgba(123, 92, 255, 0.14);
}
[data-theme="light"] .advanced summary {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(150, 160, 200, 0.35);
  color: rgba(22, 25, 43, 0.7);
  box-shadow: inset 0 1px 0 #fff;
}
[data-theme="light"] .btn--soft {
  background: linear-gradient(180deg, #ffffff, #eef1fa);
  border-color: rgba(150, 160, 200, 0.4);
  color: #16192b;
  box-shadow: inset 0 1px 0 #fff, 0 6px 14px -10px rgba(60, 70, 110, 0.55);
}
[data-theme="light"] .btn--ghost {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(150, 160, 200, 0.4);
  color: #16192b;
}
[data-theme="light"] .error-box {
  border-color: rgba(230, 90, 120, 0.4);
  background: linear-gradient(160deg, rgba(255, 190, 205, 0.55), rgba(255, 255, 255, 0.72));
  box-shadow: inset 0 1px 0 #fff, 0 18px 34px -26px rgba(230, 90, 120, 0.6);
}
[data-theme="light"] .error-box h3 { color: #8d2338; }
[data-theme="light"] .error-box p { color: rgba(22, 25, 43, 0.68); }
[data-theme="light"] .error-code { color: rgba(22, 25, 43, 0.45); }
[data-theme="light"] .tag {
  color: #4b3aa8;
  background: linear-gradient(180deg, rgba(123, 92, 255, 0.2), rgba(123, 92, 255, 0.09));
  border-color: rgba(123, 92, 255, 0.28);
}
[data-theme="light"] .badge {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(150, 160, 200, 0.4);
  color: rgba(22, 25, 43, 0.66);
  box-shadow: inset 0 1px 0 #fff;
}
[data-theme="light"] .shot { box-shadow: 0 14px 24px -16px rgba(50, 60, 100, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.9); }
[data-theme="light"] .avatar { box-shadow: inset 0 1px 0 #fff, 0 6px 12px -8px rgba(60, 70, 110, 0.5); }
[data-theme="light"] .stats { border-top-color: rgba(22, 25, 43, 0.1); }
