@import './tokens.css';

:root {
  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.14);
  --veto: #ef4444;
  --veto-bg: rgba(239, 68, 68, 0.92);
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
}

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

strong { font-weight: 700; }
.say strong { color: var(--accent-primary); }

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--bg-tertiary);
  padding: 1px 5px;
  border-radius: var(--radius-sm);
}

/* ---- top bar ---- */
.w-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  min-height: 48px;
  padding: var(--space-sm) var(--space-md);
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-default);
}
.w-back {
  flex-shrink: 0;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent-primary);
}
.w-topbar-title {
  font-size: 0.88rem;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.w-main {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md) var(--space-3xl);
}

.w-footer {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md) var(--space-2xl);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}

/* ---- headings ---- */
h1 { font-size: 1.4rem; line-height: 1.4; margin: var(--space-sm) 0 var(--space-md); }
h2 {
  font-size: 1.15rem;
  margin: var(--space-xl) 0 var(--space-md);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--border-default);
}
h3 { font-size: 1.02rem; margin: var(--space-lg) 0 var(--space-sm); color: var(--accent-primary); }
h4 { font-size: 0.95rem; margin: var(--space-md) 0 var(--space-sm); color: var(--text-primary); }

hr { border: 0; border-top: 1px solid var(--border-subtle); margin: var(--space-lg) 0; }
p { margin: 0.5em 0; }
ul, ol { margin: 0.5em 0; padding-left: 1.4em; }
li { margin: 0.25em 0; }

/* ---- legend ---- */
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-md);
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

/* ---- marks: 扣分 / 否决 ---- */
.mark {
  display: inline-block;
  margin: 2px 3px 2px 0;
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  line-height: 1.55;
  font-weight: 500;
}
.mark.penalty {
  color: var(--warning);
  background: var(--warning-bg);
  font-size: 0.82em;
}
.mark.veto {
  color: #ffffff;
  background: var(--veto-bg);
  font-size: 0.85em;
  font-weight: 700;
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.55);
}

/* ---- beats ---- */
.beat {
  border-left: 2px solid var(--border-strong);
  padding: 2px 0 2px var(--space-md);
  margin: var(--space-md) 0;
}
.beat-head {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: 2px;
}
.beat-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2em;
  height: 1.6em;
  padding: 0 6px;
  background: var(--accent-bg-strong);
  color: var(--accent-primary);
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-mono);
}
.beat-cond { font-size: 0.8rem; color: var(--text-muted); }

.say, .act { margin: 0.45em 0; }
.say { font-size: 1.06rem; color: var(--text-primary); }
.act { font-size: 0.92rem; color: var(--text-secondary); }

.role {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0 5px;
  margin-right: 6px;
  border-radius: 4px;
  vertical-align: 2px;
  white-space: nowrap;
}
.say .role { color: #000000; background: var(--accent-primary); }
.act .role {
  color: var(--text-secondary);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-default);
}

.aside {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0.4em 0;
  padding-left: var(--space-md);
}

blockquote.note {
  margin: var(--space-md) 0;
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-secondary);
  border-left: 3px solid var(--accent-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
}
blockquote.note p { margin: 0.35em 0; }

/* ---- tables ---- */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: var(--space-md) 0;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 460px;
  font-size: 0.88rem;
}
th, td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
  vertical-align: top;
}
th {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}
tr:last-child td { border-bottom: 0; }
td.num, th.num {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  white-space: nowrap;
}
tr.row-total td {
  background: var(--accent-bg-subtle);
  font-weight: 700;
  color: var(--accent-primary);
}
tr.row-veto td {
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
}
.stars-3 { color: var(--error); font-weight: 700; white-space: nowrap; }
.stars-2 { color: var(--warning); font-weight: 700; white-space: nowrap; }
.stars-1 { color: var(--text-secondary); font-weight: 700; white-space: nowrap; }

/* ---- index cards ---- */
.score-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}
@media (min-width: 560px) {
  .score-strip { grid-template-columns: repeat(4, 1fr); }
}
.score-cell {
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-sm);
  text-align: center;
}
.score-cell .k { font-size: 0.78rem; color: var(--text-muted); }
.score-cell .v {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--accent-primary);
  font-family: var(--font-mono);
  line-height: 1.3;
}
.score-cell .n { font-size: 0.72rem; color: var(--text-secondary); }

.w-section-title {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin: var(--space-xl) 0 var(--space-sm);
}

.card-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.w-card {
  display: block;
  padding: var(--space-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.w-card:hover {
  border-color: var(--accent-border-strong);
  background: var(--surface-hover);
  text-decoration: none;
}
.w-card .t { font-weight: 700; font-size: 1.02rem; margin-bottom: 3px; }
.w-card .m { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.5; }
.tag {
  display: inline-block;
  font-size: 0.7rem;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--accent-bg);
  color: var(--accent-primary);
  border: 1px solid var(--accent-border);
  margin-right: 4px;
  vertical-align: 1px;
}
.tag.warn {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.35);
}
.tag.muted {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border-color: var(--border-default);
}

/* ---- anchor subnav (deductions) ---- */
.subnav {
  position: sticky;
  top: 48px;
  z-index: 5;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: var(--space-sm) 0;
  margin-bottom: var(--space-md);
  background: rgba(0, 0, 0, 0.92);
  border-bottom: 1px solid var(--border-default);
  scrollbar-width: none;
}
.subnav::-webkit-scrollbar { display: none; }
.subnav a {
  flex-shrink: 0;
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
}
.subnav a:hover {
  color: var(--accent-primary);
  border-color: var(--accent-border);
  text-decoration: none;
}

section.dsec { margin-top: var(--space-xl); }
section.dsec > h2 { margin-top: 0; }

/* ---- bottom tab bar ---- */
body.has-tabbar {
  padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
}
.w-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--border-default);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.w-tabbar a {
  flex: 1;
  min-height: 48px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 4px;
}
.w-tabbar a[aria-current="page"] {
  color: var(--accent-primary);
  box-shadow: inset 0 -2px 0 var(--accent-primary);
}
.w-tabbar a:hover { text-decoration: none; background: var(--surface-hover); }

/* ---- K3 trade chips ---- */
.w-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: var(--space-sm) 0;
  margin-bottom: var(--space-md);
  scrollbar-width: none;
}
.w-chips::-webkit-scrollbar { display: none; }
.w-chips a {
  flex-shrink: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}
.w-chips a[aria-current="page"] {
  background: var(--accent-bg);
  color: var(--accent-primary);
  border-color: var(--accent-border);
}
.w-chips a:hover {
  text-decoration: none;
  border-color: var(--accent-border);
}

/* ---- audio player ---- */
body.has-player.has-tabbar {
  padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px));
}
body.has-player:not(.has-tabbar) {
  padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
}
.w-cta {
  position: sticky;
  top: var(--stick-cta, 48px);
  z-index: 12;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  padding: 16px 14px 12px;
  border-radius: 0 0 16px 16px;
  background: #0a1206;
  border: 1px solid var(--accent-border);
  border-top: none;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.45);
}
.w-cta-btn {
  flex: 1 1 calc(33.33% - 8px);
  min-width: 0;
  min-height: 44px;
  padding: 8px 6px;
  border: none;
  border-radius: 999px;
  background: var(--accent-primary);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.w-cta-btn:active {
  transform: scale(0.98);
}
.w-cta-btn.is-playing {
  background: var(--bg-tertiary);
  color: var(--accent-primary);
  border: 1px solid var(--accent-border);
  box-shadow: none;
}
.w-cta-btn-sec {
  background: var(--bg-tertiary);
  color: var(--accent-primary);
  border: 1px solid var(--accent-border);
  box-shadow: none;
}
.w-cta-btn-sec.is-active {
  background: var(--accent-bg-strong);
  border-color: var(--accent-border-strong);
}
.w-cta-meta {
  flex-basis: 100%;
  max-width: none;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--text-secondary);
  text-align: left;
}
.w-player {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  z-index: 19;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--border-default);
}
.w-player[hidden] { display: none; }
.w-player-title {
  min-width: 0;
  flex: 1;
  font-size: 0.8rem;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.w-player-btn {
  min-height: 40px;
  min-width: 40px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-default);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}
.w-player-btn.is-on {
  background: var(--accent-bg-strong);
  color: var(--accent-primary);
  border-color: var(--accent-border-strong);
}
.w-player-btn:active { transform: scale(0.97); }
.w-player-progress {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.beat.playing {
  border-left-color: var(--accent-primary);
  background: var(--accent-bg-subtle);
}
.w-player-panel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(112px + env(safe-area-inset-bottom, 0px));
  z-index: 19;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--border-default);
}
.w-player-panel[hidden] { display: none; }
.w-player-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  font-size: 0.88rem;
  color: var(--text-primary);
}
.w-player-opt input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-primary);
  cursor: pointer;
}
.w-player-opt label { cursor: pointer; user-select: none; }

/* ---- practice (跟读/练习) ---- */
body.prac-active {
  padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
}
.prac-dock {
  position: sticky;
  top: var(--stick-dock, 96px);
  z-index: 11;
  margin: 4px 0 0;
  padding: 6px 10px 8px;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-default);
  border-radius: 12px;
}
.prac-dock[hidden] { display: none; }
.prac-dock-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
}
.prac-dock .prac-step {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--accent-primary);
  font-family: var(--font-mono);
  white-space: nowrap;
}
.prac-dock .prac-progress {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  white-space: nowrap;
}
.prac-spacer { flex: 1; }
.prac-dock-btn {
  min-height: 36px;
  min-width: 44px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-default);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}
.prac-dock-btn.is-on {
  background: var(--accent-bg-strong);
  color: var(--accent-primary);
  border-color: var(--accent-border-strong);
}
.prac-dock-rec {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #fff;
}
.prac-dock-rec[hidden] { display: none; }
.prac-dock-end {
  background: var(--veto-bg);
  border-color: var(--veto);
  color: #fff;
}
.prac-dock .prac-hint {
  font-size: 0.78rem;
  color: var(--text-secondary);
  text-align: center;
  min-height: 1.3em;
  margin-top: 2px;
}
.prac-settings {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  z-index: 31;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(0, 0, 0, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--border-default);
}
.prac-settings[hidden] { display: none; }
.prac-settings-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.prac-select {
  width: 100%;
  min-height: 40px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--border-default);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-size: 0.9rem;
}
.prac-settings-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  font-size: 0.88rem;
  color: var(--text-primary);
  cursor: pointer;
  user-select: none;
}
.prac-settings-opt input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-primary);
}
.prac-result {
  font-size: 1rem;
  margin: 0.45em 0;
  padding: 6px 10px;
  background: var(--accent-bg-subtle);
  border-left: 3px solid var(--accent-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-primary);
}
.prac-result .role {
  color: #000000;
  background: var(--accent-primary);
}
.prac-device {
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--text-muted);
  text-align: center;
}

/* 跟读：非当前拍淡化；练习：内容隐藏占位 */
body.prac-mode-follow.prac-active .beat:not(.playing):not(.prac-revealed) .say,
body.prac-mode-follow.prac-active .beat:not(.playing):not(.prac-revealed) .act {
  opacity: 0.25;
}
body.prac-mode-prac.prac-active .beat:not(.prac-revealed) .say,
body.prac-mode-prac.prac-active .beat:not(.prac-revealed) .act {
  opacity: 0;
}
body.prac-mode-prac.prac-active .beat .beat-no {
  opacity: 1;
}

/* WeChat → open in browser overlay */
.wx-open-browser {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.78);
}
.wx-open-browser[hidden] { display: none; }
.wx-open-card {
  width: min(320px, 100%);
  padding: 22px 18px 16px;
  border-radius: 14px;
  background: var(--bg-secondary, #fff);
  color: var(--text-primary, #111);
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}
.wx-open-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.wx-open-body {
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 16px;
  color: var(--text-secondary, #333);
}
.wx-open-close {
  min-height: 44px;
  padding: 8px 28px;
  border-radius: 999px;
  border: 1px solid var(--accent-border-strong, #3b82f6);
  background: var(--accent-bg-strong, #dbeafe);
  color: var(--accent-primary, #1d4ed8);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

/* ASR model loading fullscreen mask */
.asr-loading-mask {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.62);
}
@supports (backdrop-filter: blur(4px)) {
  .asr-loading-mask {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    background: rgba(0, 0, 0, 0.5);
  }
}
.asr-loading-mask[hidden] { display: none !important; }
body.asr-mask-open { overflow: hidden; }
.asr-loading-card {
  width: min(360px, 100%);
  padding: 28px 24px 22px;
  border-radius: 16px;
  background: var(--bg-secondary, #fff);
  color: var(--text-primary, #111);
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}
.asr-loading-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 14px;
}
.asr-loading-pct {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}
.asr-loading-bar {
  height: 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin-bottom: 12px;
}
.asr-loading-bar > i {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3b82f6, #2563eb);
  transition: width 0.15s ease-out;
}
.asr-loading-msg {
  font-size: 0.9rem;
  color: var(--text-secondary, #555);
  min-height: 1.2em;
}
.asr-loading-retry {
  min-height: 44px;
  margin-top: 14px;
  padding: 8px 32px;
  border-radius: 999px;
  border: none;
  background: var(--accent-bg-strong, #dbeafe);
  color: var(--accent-primary, #1d4ed8);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}
.asr-loading-retry[hidden] { display: none; }

/* ---- print ---- */
@media print {
  .w-topbar, .w-tabbar, .w-chips, .w-footer, .subnav, .w-player, .w-player-panel, .w-cta, .prac-dock, .prac-settings, .wx-open-browser, .asr-loading-mask { display: none !important; }
  body.has-tabbar, body.has-player, body.prac-active { padding-bottom: 0; }
  .beat.playing { background: transparent; border-left-color: var(--border-strong); }
  .mark {
    background: transparent !important;
    color: inherit !important;
    box-shadow: none !important;
  }
  html { scroll-padding-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .w-card { transition: none; }
}
