/* The user's handwritten revision: swapped home panels, larger words, manual units.
   Existing learning forms, storage and exercise button metrics remain unchanged. */
:root { --ws-glass: rgba(255,255,255,.48); --ws-glass-line: rgba(255,255,255,.88); --ink: #123729; --muted: #52665a; }
body { background-color: #f3f7f0; background-image: radial-gradient(ellipse at 12% 8%,#d9e9d3 0,transparent 42%),radial-gradient(ellipse at 90% 22%,#d6e6e2 0,transparent 43%),radial-gradient(ellipse at 44% 78%,#e9e7d5 0,transparent 47%); background-attachment: fixed; }
header { background: #ffffff2b; border-bottom-color: #ffffffa1; -webkit-backdrop-filter: blur(24px) saturate(145%); backdrop-filter: blur(24px) saturate(145%); }
header::before { background: transparent; }
header > .pill, .pill { background: #ffffff55; border-color: #ffffffc9; box-shadow: inset 0 1px 0 #ffffffd1,0 2px 7px #1c493b04; }
.stats, .card, .notice, .steps, .score-card, .word-choice, .review-options label { border-color: var(--ws-glass-line); background-color: var(--ws-glass); box-shadow: inset 0 1px 0 #ffffffc9,0 9px 30px #244b3c08; -webkit-backdrop-filter: blur(23px) saturate(145%); backdrop-filter: blur(23px) saturate(145%); }
.card { border-radius: 23px; }
.review-home { color: #254632; background: #e2eedb73; border-color: #ffffffd6; }
.review-home::before { display: none; }
.review-home h2 { color: #113e29; }
.review-home .muted { color: #486044; }
.review-home .primary::after { display: none; }
.scene, .visual, .listening-player { background: #e6eee06b; box-shadow: inset 0 1px 0 #ffffffdb; -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); }
.scene::before, .visual::before { display: none; }
.scene span, .visual { font-family: 'Apple Color Emoji','Segoe UI Emoji','Noto Color Emoji',sans-serif; }
input, select, #topicFilter, #studyGroup { background-color: #ffffff61; border-color: #ffffffed; box-shadow: inset 0 1px 1px #ffffffd9,0 2px 12px #21413205; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
button { background: #ffffff6e; border-color: #ffffffd6; box-shadow: inset 0 1px 0 #ffffffc9,0 2px 8px #244b3c06; }
button:hover { background: #ffffffad; border-color: #a8c2af; box-shadow: inset 0 1px 0 #fff,0 3px 12px #244b3c0a; }
button.primary, .review-home .primary { background: linear-gradient(165deg,#1b6148f2,#08482deb); border-color: #397c5fc4; color: #fff; box-shadow: inset 0 1px 0 #ffffff4a,0 4px 12px #0c442819; }
button.primary:hover, .review-home .primary:hover { background: linear-gradient(165deg,#236b50,#0b4b30); color: #fff; border-color: #4a8e70; }
.review-home button:not(.primary) { background: #ffffff6b; border-color: #ffffffeb; color: #244a32; }
.score-card { background: #144b39e8; color: #fff; border-color: #ffffff66; }
.correct, .word-choice:has(input:checked), .review-options label:has(input:checked) { background-color: #daeacec2; border-color: #80a67d; }
.incorrect { background-color: #fae6d9cc; border-color: #c4947c; }

/* Only the two panels explicitly marked in the PDF change places. */
.hero.ws-glass-layout { grid-template-columns: minmax(0,1.15fr) minmax(320px,.85fr); align-items: center; row-gap: 24px; }
.ws-home-intro { min-width: 0; }
.ws-home-summary { min-width: 0; display: grid; gap: 14px; }
.ws-home-summary .stats { margin: 0; padding: 15px 0; border-radius: 20px; }
.ws-home-summary .stats > div { padding-left: 13px; font-size: 11px; border-right-color: #c9d7ca; }
.ws-home-summary .stats b { font-size: 25px; }
.ws-home-summary .ws-stat-glyph { display: none; }
.ws-home-summary .review-home { display: block; margin: 0; padding: 20px; border-radius: 22px; }
.ws-home-summary .review-home .eyebrow { font-size: 10px; letter-spacing: 1px; }
.ws-home-summary .review-home h2 { margin-top: 3px; font-size: 23px; }
.ws-home-summary .review-home p { font-size: 14px; }
.ws-home-summary #reviewHome:empty { display: none; }
.hero.ws-glass-layout > .art.ws-art.ws-studio { grid-column: 1/-1; position: relative; inset: auto; display: block; min-height: 0; height: clamp(370px,39vw,450px); width: auto; margin: 0; border-radius: 28px; background: #ffffff22; border: 1px solid #ffffff8c; box-shadow: inset 0 1px 0 #ffffffc2,0 13px 40px #284d3b05; }
.ws-glass-layout .ws-studio-badge { display: inline-block; max-width: none; left: 24px; top: 18px; padding: 7px 13px; font-size: 12px; background: #ffffff70; border: 1px solid #ffffffe3; box-shadow: inset 0 1px 0 #fff; }
.ws-glass-layout .art .ws-hand-note { display: block; right: 29px; top: 14px; font-size: 30px; }
.ws-glass-layout .ws-studio-arrow { display: block; top: 71px; right: 14px; width: 80px; height: 90px; }
.ws-glass-layout .ws-studio-viewport { top: 59px; bottom: 58px; left: 8px; right: 8px; border-radius: 0; }
.ws-reel { background: linear-gradient(135deg,#ffffffbb,#ffffff42); background-color: color-mix(in srgb,var(--reel-color) 31%,transparent); -webkit-backdrop-filter: blur(18px) saturate(145%); backdrop-filter: blur(18px) saturate(145%); box-shadow: inset 0 1px 0 #ffffffd9; }
.ws-reel-art.ws-native-emoji { display: flex; align-items: center; justify-content: center; font-family: 'Apple Color Emoji','Segoe UI Emoji','Noto Color Emoji',sans-serif; font-weight: 400; font-style: normal; line-height: 1; }
.ws-reel-rim { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.ws-reel-rim path { fill: none; stroke: #ffffffd9; stroke-width: 1.1; vector-effect: non-scaling-stroke; }
.ws-glass-layout .ws-studio-caption { display: flex; left: 26px; bottom: 18px; right: 70px; height: 25px; }
.ws-glass-layout .ws-studio-caption strong { font-size: 21px; line-height: 25px; }
.ws-glass-layout .art .ws-studio-caption span { font-size: 13px; line-height: 25px; }
.ws-glass-layout button.ws-carousel-toggle { right: 18px; bottom: 8px; top: auto; }
.ws-carousel-toggle::before { -webkit-backdrop-filter: blur(15px); backdrop-filter: blur(15px); }
.ws-glass-layout .ws-mobile-note { display: none; }
.ws-keyphrase::after { background: #c6ddb2aa; }

/* Native, manually scrolled unit shelf. It has no autoplay clock or timer. */
.ws-unit-tools { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 21px 0 1px; }
.ws-unit-tools #topicCount { margin: 0; color: #264b36; font-weight: 600; }
.ws-unit-hint { display: block; color: #526b57; font-size: 12px; margin-top: 4px; }
.ws-unit-navigation { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.ws-unit-range { font: 500 12px/1.6 'Wordstep Inter',sans-serif; font-variant-numeric: tabular-nums; color: #526b57; white-space: nowrap; }
button.ws-unit-arrow { width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 50%; display: grid; place-items: center; }
.ws-unit-arrow svg { width: 17px; height: 17px; }
.ws-unit-arrow:disabled { opacity: .35; }
#unitCards.ws-unit-rail { --unit-card-width: 320px; --unit-gap: 20px; display: flex; align-items: stretch; gap: var(--unit-gap); overflow-x: auto; overflow-y: hidden; padding: 19px 20px 29px; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #718e7466 transparent; -webkit-overflow-scrolling: touch; perspective: 1600px; cursor: grab; }
#unitCards.ws-unit-rail[data-dragging='true'] { cursor: grabbing; scroll-snap-type: none; user-select: none; }
#unitCards.ws-unit-rail::-webkit-scrollbar { height: 5px; }
#unitCards.ws-unit-rail::-webkit-scrollbar-thumb { background: #718e7466; border-radius: 10px; }
#unitCards.ws-unit-rail:focus-visible { outline: 2px solid #658c69; outline-offset: 3px; border-radius: 16px; }
#unitCards.ws-unit-rail > .card { position: relative; flex: 0 0 var(--unit-card-width); min-width: 0; min-height: 326px; padding: 26px 24px 93px; scroll-snap-align: start; overflow-wrap: anywhere; background: #ffffff5e; border-color: #ffffffec; border-radius: 26px; box-shadow: inset 0 1px 0 #fffffff0,inset 0 -1px 0 #ffffff80,0 9px 26px #244b3c09; transform: translateY(var(--unit-dip,0px)) rotateY(var(--unit-yaw,0deg)) scale(var(--unit-scale,1)); transform-origin: 50% 50%; }
#unitCards .ws-topic::before { display: none; }
#unitCards .ws-topic:hover, #unitCards .ws-topic:focus-within { border-color: #a1bda7; box-shadow: inset 0 1px 0 #fff,0 10px 30px #244b3c0d; }
#unitCards.ws-unit-rail .topicicon { position: absolute; top: 20px; right: 20px; float: none; width: 54px; height: 58px; border-radius: 19px; display: grid; place-items: center; font: 40px/1 'Apple Color Emoji','Segoe UI Emoji','Noto Color Emoji',sans-serif; filter: none; opacity: 1; background: #ffffff40; border: 1px solid #ffffffc4; box-shadow: inset 0 1px 0 #fff; }
#unitCards.ws-unit-rail .eyebrow { display: block; margin-right: 57px; font-size: 11px; line-height: 19px; color: #4c6a4e; }
#unitCards.ws-unit-rail h2 { font-size: 25px; line-height: 1.25; margin-top: 7px; margin-right: 54px; }
#unitCards.ws-unit-rail p { font-size: 15px; }
#unitCards.ws-unit-rail .muted { font-size: 13px; color: #506353; }
#unitCards.ws-unit-rail .primary { position: absolute; bottom: 24px; left: 24px; }
#unitCards.ws-unit-rail:empty { padding-top: 0; padding-bottom: 0; }

@media (max-width: 760px) {
  .hero.ws-glass-layout { grid-template-columns: 1fr; gap: 21px; }
  .ws-home-summary .stats { padding: 14px 0; }
  .ws-home-summary .review-home .actions { flex-wrap: wrap; }
  .hero.ws-glass-layout > .art.ws-art.ws-studio { height: clamp(285px,57vw,355px); }
  .ws-glass-layout .ws-studio-viewport { top: 58px; bottom: 51px; }
  .ws-glass-layout .ws-studio-badge { left: 14px; top: 14px; font-size: 10px; padding: 6px 10px; }
  .ws-glass-layout .art .ws-hand-note { top: 14px; right: 22px; font-size: 24px; }
  .ws-glass-layout .ws-studio-arrow { top: 65px; right: 3px; width: 57px; height: 66px; }
  .ws-glass-layout .ws-studio-caption { left: 18px; bottom: 15px; }
  .ws-glass-layout .ws-studio-caption strong { font-size: 18px; }
  .ws-glass-layout .art .ws-studio-caption span { font-size: 12px; }
  .ws-glass-layout .ws-reel-art, .ws-glass-layout .ws-reel-copy, .ws-glass-layout .ws-reel-unit { display: block; }
  .ws-glass-layout .ws-reel-art.ws-native-emoji { display: flex; }
  .ws-glass-layout .ws-reel-mobile-label { display: none; }
  .ws-glass-layout button.ws-carousel-toggle { bottom: 5px; right: 9px; top: auto; }
  .ws-unit-range { display: none; }
  .ws-unit-tools { gap: 10px; }
  .ws-unit-hint { font-size: 11px; }
}
@media (max-width: 370px) {
  .ws-glass-layout .art .ws-hand-note { top: 13px; right: 10px; font-size: 21px; }
  .ws-glass-layout .ws-studio-badge { font-size: 9px; padding: 6px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  #unitCards.ws-unit-rail > .card { transform: none; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .card, .stats, #unitCards.ws-unit-rail > .card { background-color: #f5f8f0ed; }
}
@media (prefers-reduced-transparency: reduce) {
  .card, .stats, .notice, .review-home, #unitCards.ws-unit-rail > .card, .ws-reel { background-color: #f5f8f0; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
