/* Wordstep enterprise visual layer.
   Layout, control metrics and responsive breakpoints are owned by the original stylesheet.
   No transforms are applied to controls, cards, or their layout ancestors. */
:root {
  --ink: #233c33;
  --green: #285d48;
  --muted: #657268;
  --paper: #f5f5ef;
  --line: #dce2d7;
  --ws-forest: #173f34;
  --ws-brass: #b78451;
}
body { background: var(--paper); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
::selection { color: #143c30; background: #d7e6d2; }
header { position: relative; isolation: isolate; background: var(--ws-forest); border-color: #ffffff18; }
header::before { content: ''; position: absolute; z-index: -1; inset: 0 calc(50% - 50vw); background: var(--ws-forest); pointer-events: none; }
.brand { color: #f5f5e9; }
header a.brand { display:inline-flex; align-items:center; gap:.68rem; color:#14392e; font-size:clamp(1.4rem,3vw,1.88rem); font-weight:850; letter-spacing:.025em; line-height:1; white-space:nowrap; }
header .brand span { color:inherit; }
.ws-brand-mark { display:block; flex:none; width:clamp(2.25rem,5vw,2.75rem); height:auto; border-radius:25%; box-shadow:0 2px 7px #14392e24; }
header a.brand:focus-visible { outline:2px solid #507c66; outline-offset:5px; border-radius:.3rem; }
header > .pill { color: #dde8d9; background: #ffffff09; border-color: #ffffff30; border-radius: 5px; }
.pill { background: #f0f3e9; color: #4c654f; border-color: #d7e1d1; border-radius: 6px; }
.eyebrow { color: #7b725b; }
h1 { color: #203e31; }
h2 { color: #294536; }
.hero h1 { position: relative; }
.ws-keyphrase { background: linear-gradient(transparent 82%, #dec39d 82%, #dec39d 94%, transparent 94%); }
.muted { color: var(--muted); }

/* The illustration is mounted inside the measured original decorative panel. */
.art { position: relative; background: #e9eee3; border-radius: 16px; transform: none; box-shadow: inset 0 0 0 1px #d3dece, 0 8px 28px #203e3108; }
.art.ws-art { display: block; height: var(--ws-art-height, 254.9px); overflow: hidden; text-align: left; }
.ws-art-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.art .ws-art-label, .art .ws-art-pron, .art .ws-art-meaning, .art .ws-art-example { position: absolute; margin: 0; color: #4b6653; }
.art .ws-art-label { top: 20px; left: 23px; font-weight: 650; line-height: 1.6; font-size: 10px; letter-spacing: 1.5px; }
.ws-art-word { position: absolute; top: 41px; left: 21px; color: #244c38; font: 500 39px/1.2 Georgia, 'Times New Roman', serif; letter-spacing: -1.4px; }
.art .ws-art-pron { top: 91px; left: 24px; font: 12px/1.6 Georgia, serif; }
.art .ws-art-meaning { top: 119px; left: 24px; font-size: 15px; }
.art .ws-art-meaning small { display: block; font-size: 10px; line-height: 1.8; letter-spacing: 1px; color: #5d7053; }
.art .ws-art-example { left: 23px; right: 23px; bottom: 14px; border-top: 1px solid #cbd7c4; padding-top: 10px; font-size: 12px; color: #4f6651; }
.ws-art-vehicle { position: absolute; right: 5px; bottom: 46px; width: 64%; height: 136px; pointer-events: none; }
.ws-art-vehicle img { display: block; width: 100%; height: 100%; }

.stats { background: #fff; border-color: #d9e2d4; border-radius: 13px; box-shadow: 0 2px 3px #28452f04, 0 8px 24px #28452f04; }
.stats > div { position: relative; border-color: #e0e7db; }
.stats b { color: #244c36; font-variant-numeric: tabular-nums; }
.stats small { color: #7a8475; }
.ws-stat-glyph { position: absolute; right: 23px; top: 5px; width: 24px; height: 24px; color: #789070; opacity: .7; pointer-events: none; }

.card { border-color: #dce3d6; border-radius: 14px; box-shadow: 0 2px 3px #1c3a2504, 0 7px 22px #1c3a2506; }
.ws-topic { position: relative; isolation: isolate; background: #fff; border-color: #d4decc; box-shadow: inset 0 3px 0 #e2e9db, 0 4px 16px #28452f05; transition: border-color .18s ease, box-shadow .18s ease; }
.ws-topic::before { content: ''; position: absolute; z-index: -1; inset: 0; border-radius: inherit; background: radial-gradient(210px circle at var(--ws-spot-x, 80%) var(--ws-spot-y, 0%), #d8e7ca52, transparent 75%); opacity: var(--ws-spot-presence, 0); pointer-events: none; }
.ws-topic:hover, .ws-topic:focus-within { border-color: #9ab18e; box-shadow: inset 0 3px 0 #b3c7a5, 0 7px 24px #28452f0c; }
.ws-topic > .eyebrow { color: #8b704d; }
.topicicon.ws-topic-art { position: relative; filter: none; opacity: 1; }
.ws-topic-art img { position: absolute; width: 58px; height: 58px; top: 1px; right: -7px; pointer-events: none; }

button { color: #344d3c; border-color: #cdd8c5; background: #fff; border-radius: 8px; box-shadow: 0 1px 2px #25462c05; transition: color .16s ease, background-color .16s ease, border-color .16s ease, box-shadow .16s ease; }
button:hover { color: #234b35; background: #eff4e9; border-color: #9ab18e; box-shadow: 0 2px 5px #25462c09; }
button:active { background: #e8efdf; box-shadow: inset 0 1px 3px #203e3115; }
button.primary { background: #285d48; border-color: #285d48; color: #fff; box-shadow: inset 0 1px 0 #ffffff13, 0 2px 3px #244c3612; }
button.primary:hover { background: #1c4937; border-color: #1c4937; color: #fff; }
button.primary:active { background: #143c2d; border-color: #143c2d; }
button:disabled { box-shadow: none; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible, summary:focus-visible { outline-color: #ba8a54; }
main[data-ws-view='home'] nav button:first-child { background: #e8efdf; border-color: #bfcfb4; color: #244b35; }
input, select, #topicFilter, #studyGroup { border-color: #c5d3bd; background: #fff; color: var(--ink); border-radius: 8px; box-shadow: inset 0 1px 3px #244c3605; }
input::placeholder { color: #66735d; }
input:disabled { color: var(--ink); -webkit-text-fill-color: var(--ink); background: #f1f4ec; }
input[type='checkbox'], input[type='radio'] { accent-color: #285d48; box-shadow: none; }
.label { color: #67785c; }

.review-home { position: relative; isolation: isolate; background: #193f34; border-color: #193f34; color: #e5ecdf; border-radius: 14px; box-shadow: 0 6px 22px #1d413214; }
.review-home::before { content: ''; position: absolute; z-index: -1; inset: 0; border-radius: inherit; pointer-events: none; background: url('assets/review-pattern.svg') right center / auto 100% no-repeat; opacity: .2; }
.review-home h2 { color: #f4f3df; }
.review-home .eyebrow { color: #c4b28b; }
.review-home .muted { color: #b7c7ad; }
.review-home .primary { color: #244636; background: #e6eddb; border-color: #e6eddb; }
.review-home .primary:hover { color: #173f30; background: #f5f6e9; border-color: #f5f6e9; }
.review-home button:not(.primary) { color: #f2f3e5; border-color: #728b76; background: #ffffff05; }
.review-home button:not(.primary):hover { background: #ffffff12; border-color: #aebda4; }

.bar { background: #e4ebdc; border-radius: 5px; }
.bar > i { background: #6f9263; }
.wordcard { border-color: #cddac4; background: #fff; box-shadow: 0 3px 5px #1c3a2504, 0 14px 42px #1c3a2507; }
.word { color: #244c37; }
.scene, .visual { position: relative; isolation: isolate; background: #ecf0e5; border-radius: 12px; box-shadow: inset 0 0 0 1px #dde5d5; }
.scene::before, .visual::before { content: ''; position: absolute; z-index: -1; inset: 0; border-radius: inherit; pointer-events: none; background: url('assets/scene-pattern.svg') center / cover no-repeat; opacity: .6; }
.scene p { color: #4a674d; }
.scene i { color: #8e9f7f; }
.scene .ws-memory-image { position: relative; display: inline-block; vertical-align: bottom; }
.ws-memory-image img { position: absolute; inset: 50% auto auto 50%; width: 170px; max-width: 70vw; height: 106px; object-fit: contain; transform: translate(-50%, -50%); pointer-events: none; }
.ws-memory-image.ws-compact-image img { width: 96px; height: 80px; }
.detail .label { color: #777057; }
.detail h2 { color: #31573d; }
.source-link { color: #657b51; text-decoration-color: #c2cfb3; text-underline-offset: 3px; }
.memory-note { color: #647559; }
.sentence { color: #304a39; }
.notice { background: #ecefdf; color: #5d6b4f; border-radius: 8px; box-shadow: inset 3px 0 0 #b6c99b; }
.steps { background: #edf2e4; border-radius: 8px; }
.list { border-color: #e5eadf; }
.level { background: #fff; border-color: #d8e1cf; border-radius: 10px; }
.level:hover { background: #f0f5e9; }
.level span { color: #69795d; }
.good { color: #2c714c; }
.bad { color: #ad543b; }
.correct { background: #edf5e7; border-color: #6b9a57; }
.incorrect { background: #fbefe7; border-color: #bd7d5d; }
#feedback > p.good:first-child, #feedback > p.bad:first-child { background: #eef5e8; border-radius: 6px; box-shadow: 0 0 0 7px #eef5e8; }
#feedback > p.bad:first-child { background: #fcf0e8; box-shadow: 0 0 0 7px #fcf0e8; }
.ws-feedback-mark { position: relative; display: inline-block; }
.ws-feedback-mark svg { position: absolute; inset: 50% auto auto 50%; width: 17px; height: 17px; transform: translate(-50%,-50%); overflow: visible; }
.ws-feedback-mark > span { visibility: hidden; }

/* Playback feedback is a paint-only inset; the original label and hit area remain intact. */
button.ws-audio-control { position: relative; }
.ws-audio-meter { position: absolute; right: 5px; bottom: 4px; width: 18px; height: 9px; display: flex; align-items: center; gap: 2px; opacity: 0; pointer-events: none; }
.ws-audio-meter i { width: 2px; height: 100%; border-radius: 1px; background: currentColor; transform-origin: center; }
button[data-ws-playing='true'] .ws-audio-meter { opacity: .8; }
button[data-ws-playing='true'] { box-shadow: inset 0 -2px 0 #b0c49b, 0 0 0 2px #dce8d2; }
.listening-player { background: #edf2e5; border-color: #d5dfca; }
.listening-player[data-ws-playing='true'] { box-shadow: inset 3px 0 0 #7d9c66; }
.listening-player a { color: #466a3d; }
audio { accent-color: #3d6a48; }
.word-choice, .review-options label { border-color: #d6dfcd; border-radius: 9px; background: #fff; }
.word-choice:has(input:checked), .review-options label:has(input:checked) { background: #edf4e5; border-color: #83a16c; box-shadow: inset 3px 0 0 #6d9255; }
.word-choice small { color: #647359; }
.score-card { position: relative; background: #193f34; border-radius: 14px; box-shadow: 0 8px 25px #234c3612; }
.score-card strong { font-variant-numeric: tabular-nums; }
.score-card small, .score-card > span { color: #d7e4c8; }
.answer-review + .answer-review { border-color: #e0e7d8; }
.answer-review blockquote { border-color: #b4c59c; color: #597149; }
.transcript { background: #fdfdf8; }
footer { color: #66725e; border-color: #dbe2d1; }
footer a { color: #5f7650; text-decoration-color: #b9c9a7; text-underline-offset: 3px; }

@media (max-width: 650px) {
  .art.ws-art { display: none; }
  .ws-stat-glyph { display: none; }
  .ws-topic-art img { width: 55px; height: 55px; }
}
@media (max-width: 380px) { .ws-stat-glyph { display: none; } }
@media (hover: none), (prefers-reduced-motion: reduce) {
  .ws-topic::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  button, .ws-topic { transition: none; }
}
