/* ---- Writing Studio (लेखन कक्ष) — shared with the family's other apps -------------------------------- */
/* Colour names the shared styles use, mapped to Hindi Angan's palette */
.studio, .stroke-rec { --on-teal: var(--on-peacock); --band: var(--peacock-deep); --on-band: #FFFFFF; --band-accent: var(--zari-soft, #F8EACB); }
.studio { --studio-gap: 16px; }
.studio-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 20px; border-radius: var(--r-lg); background: linear-gradient(135deg, var(--leaf-soft), var(--gold-soft)); border: 1px solid var(--line); margin-bottom: 12px; }
.ws-emoji { font-size: 2.6rem; line-height: 1; }
.studio-head > div { flex: 1; min-width: 220px; }
.studio-head h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); }
.studio-head h1 .ml { color: var(--leaf); }
.studio-sub { color: var(--ink-2); font-size: .92rem; margin-top: 2px; }
.studio-modes { display: flex; gap: 6px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: thin; margin-bottom: 8px; }
.studio-mode { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 46px; padding: 6px 14px; border-radius: 999px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); font: 700 .95rem var(--f-ui); cursor: pointer; }
.studio-mode[aria-current="true"] { background: var(--teal); border-color: var(--teal); color: var(--on-teal); }
.studio-loading { padding: 40px; text-align: center; font-size: 1.4rem; }
.studio-body { min-height: 300px; }
/* Home */
.studio-ask { padding: 20px; border-radius: var(--r-lg); background: var(--band); color: var(--on-band); margin-bottom: 18px; background-image: radial-gradient(circle at 90% 0%, rgba(242,184,75,.3), transparent 45%); }
.studio-ask-l { display: block; font: 800 1.4rem var(--f-display); margin-bottom: 10px; color: #fff; }
.studio-ask-row { display: flex; gap: 10px; flex-wrap: wrap; }
.studio-q { flex: 1; min-width: 200px; min-height: 58px; padding: 10px 18px; border-radius: 999px; border: 3px solid var(--band-accent); font: 700 1.3rem var(--f-ui); color: #1B1B1B; background: #fff; }
.studio-q:focus-visible { outline: 3px solid var(--marigold); }
.studio-ask-hint { margin-top: 10px; color: rgba(255,255,255,.88); font-size: .92rem; }
.studio-try { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: #fff; font-weight: 600; }
.studio-ask .studio-chip { background: rgba(0,0,0,.22); color: #fff; border-color: rgba(255,255,255,.35); }
.studio-cards { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(46%, 210px), 1fr)); }
.studio-cards > li { display: grid; animation: rise .5s var(--ease) both; animation-delay: calc(var(--i) * 40ms); }
.ws-card { display: grid; gap: 3px; align-content: start; text-align: left; padding: 18px; min-height: 150px; border-radius: var(--r-lg); border: 1px solid var(--line); background: linear-gradient(150deg, var(--h1), var(--surface)); color: var(--ink); font: inherit; cursor: pointer; text-decoration: none; box-shadow: var(--shadow-1); transition: transform .2s var(--ease); }
.ws-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.studio-card-emoji { font-size: 2.2rem; line-height: 1.1; }
.studio-card-ml { font: 800 1.15rem/1.3 var(--f-display); color: var(--hi); }
.studio-card-en { font-weight: 800; }
.studio-card-about { color: var(--ink-2); font-size: .88rem; }
.studio-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.studio-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 14px; border-radius: 999px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); font: 600 .95rem var(--f-ui); cursor: pointer; }
.studio-chip .ml { font: 700 1.2rem var(--f-ml); }
.studio-chip small { color: var(--ink-2); }
.studio-note { margin-top: 12px; }
/* Libraries */
.studio-groups { margin-bottom: 6px; }
.studio-strip { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: thin; }
.studio-tile { flex: none; min-width: 58px; height: 58px; padding: 0 10px; border-radius: 16px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); font: 700 1.7rem/1 var(--f-ml); cursor: pointer; }
.studio-tile[aria-pressed="true"], .studio-wtile[aria-pressed="true"] { border-color: var(--marigold); background: var(--gold-soft); box-shadow: 0 3px 0 var(--marigold-deep); }
.studio-strip--words { flex-wrap: nowrap; }
.studio-wtile { flex: none; display: grid; justify-items: center; gap: 1px; min-width: 104px; padding: 8px 10px; border-radius: 16px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; }
.studio-wtile .ml { font: 700 1.2rem var(--f-ml); }
.studio-wtile small { font-size: .78rem; color: var(--ink-2); max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.studio-wpic { font-size: 1.6rem; line-height: 1.1; }
.studio-find { display: grid; gap: 8px; margin-bottom: 10px; }
.studio-search, .studio-own { width: 100%; min-height: 50px; padding: 8px 16px; border-radius: 999px; border: 2px solid var(--line-2); background: var(--surface); color: var(--ink); font: 600 1.05rem var(--f-ui); }
.studio-own { font: 700 1.2rem var(--f-ml); }
.studio-own-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.studio-own-row .studio-own { flex: 1; min-width: 200px; }
.studio-kb { margin-bottom: 12px; }
/* Practice panel */
.practice { display: grid; gap: 10px; }
.practice .pr-card { position: relative; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; min-height: 118px; padding: 12px 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); text-align: left; box-shadow: none; }
.practice .pr-card:hover { transform: none; }
.pr-pic { font-size: 2.6rem; line-height: 1; }
.pr-what { flex: 1; min-width: 160px; }
.pr-ml { font: 800 clamp(2rem, 1.4rem + 2.4vw, 3rem)/1.35 var(--f-ml); color: var(--teal-deep); }
.pr-hidden { color: var(--ink-3); font-family: var(--f-display); font-size: 1.6rem; line-height: 1.7; }
.practice .pr-en { font-weight: 700; font-size: 1rem; color: var(--ink); text-transform: capitalize; margin: 0; }
.pr-tr { font-weight: 500; font-style: italic; color: var(--ink-2); text-transform: none; }
.pr-sound { font-size: .85rem; color: var(--ink-2); min-height: 1.3em; margin: 0; }
.pr-card .pr-example { margin-left: auto; padding: 8px 14px; }
.pr-card .pr-example.is-hidden { visibility: hidden; }
@container (max-width: 699px) {
  /* Phones: this step's buttons on one row, the always-there buttons on the row under it */
  .practice > .pr-top { flex-wrap: wrap; row-gap: 8px; overflow: visible; }
  .practice .pr-tools { flex: 1 1 100%; overflow-x: auto; min-height: 48px; scrollbar-width: none; }
  .practice .pr-always { flex: 1 1 100%; margin-left: 0; padding: 8px 0 0; border-left: 0; border-top: 1px dashed var(--line-2); justify-content: space-between; }
  .practice .pr-always .pr-mini { flex: 1; min-width: 0; min-height: 46px; padding: 4px 2px; }
  .practice .pr-always .pr-mini > :last-child { font-size: .66rem; white-space: nowrap; }
}
@container (max-width: 899px) {
  .practice > .pr-card { flex-wrap: nowrap; min-height: 0; height: 96px; padding: 8px 12px; gap: 10px; overflow: hidden; }
  .practice > .pr-card .pr-pic { font-size: 2rem; }
  .practice > .pr-card .pr-ml { font-size: 2.2rem; line-height: 1.2; }
  .practice > .pr-card .pr-ml--word { font-size: 1.6rem; }
  .practice > .pr-card .pr-hidden { font-size: 1.3rem; line-height: 1.9; }
  .practice > .pr-card .pr-sound { display: none; }
  .practice > .pr-card .pr-what { min-width: 0; }
  .practice > .pr-card .pr-en { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .practice > .pr-card .pr-example { display: grid; grid-template-columns: auto auto; align-items: center; column-gap: 6px; padding: 6px 10px; flex: none; }
  .practice > .pr-card .pr-example .pr-ex-pic { font-size: 1.5rem; grid-row: span 2; }
  .practice > .pr-card .pr-example .ml { font-size: 1.1rem; margin: 0; } .practice > .pr-card .pr-example .en { font-size: .8rem; margin: 0; }
}
.pr-card .pr-example .pr-ex-pic { font-size: 1.8rem; }
.pr-stage.is-note .pr-side { display: block; }
.pr-card-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.pr-mini { display: inline-grid; justify-items: center; gap: 1px; min-width: 60px; min-height: 52px; padding: 6px 8px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface-2); color: var(--ink); font: 600 .72rem var(--f-ui); cursor: pointer; }
.pr-mini > :first-child { font-size: 1.2rem; }
.pr-mini[aria-pressed="true"] { background: var(--gold-soft); border-color: var(--gold); }
.pr-steps { display: flex; gap: 4px; overflow-x: auto; padding: 2px; scrollbar-width: thin; }
.pr-step { flex: none; display: inline-flex; align-items: center; gap: 5px; min-height: 44px; padding: 4px 12px; border-radius: 999px; border: 2px solid transparent; background: var(--surface-2); color: var(--ink); font: 700 .9rem var(--f-ui); cursor: pointer; }
.pr-step[aria-current="true"] { background: var(--marigold); color: var(--on-marigold); border-color: var(--marigold-deep); }
.pr-step-arrow { color: var(--ink-3); margin-left: 4px; }
.pr-step[aria-current="true"] .pr-step-arrow { color: inherit; }
.pr-top { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 6px 8px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); overflow-x: auto; scrollbar-width: thin; }
.pr-tools { display: flex; flex-wrap: nowrap; gap: 8px; align-items: center; flex: 1 0 auto; }
.pr-tools > * { flex: none; }
.pr-tools .btn { white-space: nowrap; }
.pr-always { display: flex; gap: 6px; flex: none; margin-left: auto; padding-left: 10px; border-left: 1px dashed var(--line-2); }
.pr-cheer { min-height: 1.5em; margin: 0; font: 800 1.15rem var(--f-display); color: var(--leaf); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* While writing from memory the letter row is covered too */
.studio-strip.is-veiled .studio-tile, .studio-strip.is-veiled .studio-wtile .ml { color: transparent; text-shadow: none; position: relative; }
.studio-strip.is-veiled .studio-tile, .studio-strip.is-veiled .studio-wtile { border-style: dashed; background: var(--surface-2); box-shadow: none; }
.studio-strip.is-veiled .studio-tile::after, .studio-strip.is-veiled .studio-wtile .ml::after { content: "?"; position: absolute; inset: 0; display: grid; place-items: center; font: 700 1.1rem var(--f-ui); color: var(--ink-3); }
.studio-strip.is-veiled .studio-wtile .ml { display: block; min-width: 2.5em; min-height: 1.5em; }
.studio-strip.is-veiled .studio-wpic { visibility: hidden; }
.pr-guide-seg { display: inline-flex; border-radius: 999px; overflow: hidden; border: 2px solid var(--line-2); }
.pr-seg { min-height: 44px; padding: 6px 14px; border: 0; background: var(--surface); color: var(--ink); font: 700 .92rem var(--f-ui); cursor: pointer; }
.pr-seg[aria-pressed="true"] { background: var(--teal); color: var(--on-teal); }
.free-bg { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.free-bg .pr-seg { border-radius: 999px; border: 2px solid var(--line-2); }
.pr-stage { display: grid; gap: 14px; }
.pr-stage.is-copy { grid-template-columns: minmax(0, 220px) minmax(0, 1fr); align-items: stretch; }
.pr-side[hidden] { display: none; }
.pr-model-label { font-weight: 800; color: var(--ink-2); margin-bottom: 4px; }
.pr-model { font: 800 clamp(3rem, 2rem + 4vw, 6rem)/1.3 var(--f-ml); color: #23413A; background: #FFFDF6; border-radius: var(--r-md); border: 2px dashed #D9CBAA; padding: 10px; text-align: center; overflow-wrap: anywhere; }
.pr-stage.is-copy .pr-side { display: grid; align-content: start; }
.pr-example { display: grid; justify-items: center; gap: 2px; padding: 12px; border-radius: var(--r-md); background: var(--gold-soft); text-align: center; }
.pr-ex-pic { font-size: 2.4rem; }
.pr-example .ml { font: 700 1.5rem var(--f-ml); }
.pr-peek { user-select: none; -webkit-user-select: none; touch-action: none; }
.pr-peekpop { position: absolute; left: 50%; top: 100%; transform: translate(-50%, 8px); z-index: 20; padding: 6px 22px; border-radius: 18px; background: #FFFDF6; color: #23413A; border: 3px solid var(--marigold); box-shadow: var(--shadow-2); font: 800 clamp(2.4rem, 2rem + 3vw, 4rem)/1.3 var(--f-ml); pointer-events: none; }
.cmp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; width: 100%; }
.cmp-pane { margin: 0; display: grid; gap: 6px; }
.cmp-pane figcaption { font: 800 .85rem var(--f-ui); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); text-align: center; }
.cmp-pane img, .cmp-canvas { width: 100%; height: auto; aspect-ratio: 5 / 3; object-fit: contain; background: #FFFDF6; border-radius: var(--r-md); border: 2px solid #D9CBAA; display: block; }
.cmp-empty { display: grid; place-items: center; gap: 8px; aspect-ratio: 5 / 3; border-radius: var(--r-md); border: 2px dashed var(--line-2); background: var(--surface-2); padding: 12px; text-align: center; }
@media (max-width: 560px) { .cmp { grid-template-columns: 1fr; } .pr-stage.is-copy { grid-template-columns: 1fr; } }
.rows-wrap { display: grid; gap: 8px; }
.rows { display: grid; gap: 10px; }
.row { display: flex; gap: 10px; align-items: center; }
.row-box { flex: none; border-radius: 12px; overflow: hidden; border: 2px solid #D9CBAA; }
.row-box .wc { height: 100%; } .row-box .wc-stage { height: 100%; border-radius: 0; border: 0; }
.row-clear { flex: none; }
/* Word challenge */
.lc { display: grid; gap: 12px; }
.lc-title { font: 800 1.2rem var(--f-display); }
.lc-dots { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.lc-dots li { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 4px 12px; border-radius: 999px; background: var(--surface-2); border: 2px solid var(--line); font-weight: 700; font-size: .9rem; }
.lc-dots li.is-now { background: var(--marigold); color: var(--on-marigold); border-color: var(--marigold-deep); }
.lc-dots li.is-done { background: var(--leaf-soft); border-color: var(--leaf); }
.lc-word { position: relative; display: grid; justify-items: center; gap: 2px; padding: 16px; border-radius: var(--r-lg); background: #FFFDF6; border: 2px solid #D9CBAA; color: #23413A; overflow: hidden; }
.lc-pic { font-size: 2.6rem; }
.lc-ml { font: 800 clamp(2.6rem, 2rem + 3vw, 4.4rem)/1.3 var(--f-ml); }
.lc-en { font-weight: 700; color: #4A5A55; text-transform: capitalize; }
.lc-word::after { content: "?"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 3rem; background: repeating-linear-gradient(45deg, #F2B84B, #F2B84B 18px, #F5C66B 18px, #F5C66B 36px); transform: translateX(-102%); transition: transform .6s var(--ease); }
.lc-word.is-covering::after, .lc-word.is-covered::after { transform: none; }
.lc-word.is-covered .pr-peekpop { top: 50%; transform: translate(-50%, -50%); }
.lc-extra { display: grid; gap: 10px; }
.lc-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
/* English → Hindi */
.en-out { display: grid; gap: 14px; }
.en-card { display: grid; justify-items: center; gap: 2px; padding: 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); text-align: center; }
.en-en { font: 800 1.6rem var(--f-display); text-transform: capitalize; }
.en-arrow { font-size: 1.4rem; color: var(--ink-3); }
.en-ml { font: 800 clamp(2.6rem, 2rem + 3vw, 4rem)/1.3 var(--f-ml); color: var(--teal-deep); }
.en-tr { font-style: italic; color: var(--ink-2); }
.en-src { font-size: .8rem; color: var(--ink-3); }
.en-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.en-miss { padding: 20px; border-radius: var(--r-lg); background: var(--surface-2); border: 1px dashed var(--line-2); display: grid; gap: 8px; justify-items: start; }
/* Free draw */
.studio-free { display: grid; gap: 10px; }
.free-top { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.free-hint { font: 800 1.1rem var(--f-display); margin-right: auto; }
.free-colors { display: flex; gap: 6px; }
.free-color { width: 36px; height: 36px; border-radius: 50%; border: 3px solid #fff; background: var(--c); box-shadow: 0 0 0 2px var(--line-2); cursor: pointer; }
.free-color[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--marigold); }
/* Surprise */
.studio-surprise-card { display: grid; justify-items: center; gap: 10px; padding: 30px 20px; border-radius: var(--r-xl); background: linear-gradient(150deg, var(--gold-soft), var(--surface)); border: 1px solid var(--line); text-align: center; }
.sp-q { font: 800 1.6rem var(--f-display); }
.sp-pic { font-size: 4rem; line-height: 1; }
.sp-clue { font: 800 2rem var(--f-display); text-transform: capitalize; color: var(--teal-deep); }
.sp-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 8px; }
.stroke-rec { max-width: 680px; width: 96vw; }
.stroke-rec-body { display: grid; gap: 12px; padding: 16px 20px 20px; }

/* ---- The writing canvas ------------------------------------------------------------ */
.wc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; align-items: start; user-select: none; -webkit-user-select: none; }
.wc--none, .wc--mini { display: block; }
.wc-stage { order: 2; position: relative; width: 100%; height: min(58vh, 540px); min-height: 180px; border-radius: 22px; border: 3px solid #D9CBAA; background: #FFFDF6; overflow: hidden; touch-action: none; -webkit-touch-callout: none; overscroll-behavior: contain; cursor: crosshair; box-shadow: inset 0 2px 10px rgba(80,60,20,.08); }
.wc-stage.is-erasing { cursor: cell; }
.wc-stage:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.wc-layer { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.wc-bg, .wc-fx { pointer-events: none; }
.wc-fx { z-index: 2; } .wc-ink { z-index: 1; pointer-events: none; }
.wc-bar { order: 1; display: flex; flex-direction: row; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.wc-group { display: flex; flex-direction: row; gap: 6px; flex: none; }
.wc-group + .wc-group { padding-left: 6px; border-left: 1px dashed var(--line-2); }
.wc-group.wc-navs { margin-left: auto; }
.wc-tool { display: grid; justify-items: center; align-content: center; gap: 1px; width: 66px; min-height: 58px; padding: 4px; border-radius: 16px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font: 700 .7rem/1.1 var(--f-ui); }
.wc-tool:hover { border-color: var(--line-2); background: var(--surface-2); }
.wc-tool.is-on { background: var(--teal); border-color: var(--teal); color: var(--on-teal); }
.wc-tool:disabled { opacity: .4; cursor: default; }
.wc-tool[hidden] { display: none; }
.wc-ic { font-size: 1.45rem; line-height: 1.1; }
.wc-size { display: grid; place-items: center; width: 26px; height: 26px; }
.wc-size i { display: block; border-radius: 50%; background: currentColor; width: 12px; height: 12px; }
.wc-tool[data-size="sm"] .wc-size i { width: 6px; height: 6px; } .wc-tool[data-size="lg"] .wc-size i { width: 20px; height: 20px; }
.wc.is-full { position: fixed; inset: 0; z-index: 300; background: var(--ground); padding: 12px; grid-template-columns: minmax(0, 1fr); align-content: start; }
.wc.is-full .wc-stage, .wc:fullscreen .wc-stage { height: calc(100vh - 100px) !important; }
.wc:fullscreen { background: var(--ground); padding: 12px; }
body.wc-locked { overflow: hidden; }
@media (max-width: 760px) {
  .wc { grid-template-columns: minmax(0, 1fr); }
  .wc-bar { order: 1; }
  .wc-group { flex-direction: row; } .wc-group + .wc-group { padding-top: 0; border-top: 0; padding-left: 6px; border-left: 1px dashed var(--line-2); }
  .wc-tool { width: 58px; min-height: 54px; flex: none; }
  .wc-more .wc-tool:nth-child(3) { display: none; }
  .wc.is-full { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .wc.is-full .wc-stage, .wc:fullscreen .wc-stage { height: calc(100vh - 110px) !important; }
}
@media (max-width: 420px) { .wc-tl { display: none; } .wc-tool { width: 50px; min-height: 50px; } }
:root[data-contrast="high"] .wc-stage { border-color: #000; }
/* Studio layout: keep the writing area on screen */
.studio.is-compact .studio-head { padding: 8px 14px; margin-bottom: 8px; }
.studio.is-compact .ws-emoji { font-size: 1.8rem; }
.studio.is-compact .studio-head h1 { font-size: 1.4rem; }
.studio.is-compact .studio-sub { display: none; }
.studio-practice, .studio-english .en-out { container-type: inline-size; }
/* Practice: steps, then all the buttons, then the message — always at the top and always the same
   height — and the writing area below. On wide screens the letter card sits beside the writing area. */
.practice { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "steps" "top" "cheer" "card" "stage"; }
.practice > .pr-card { grid-area: card; } .practice > .pr-steps { grid-area: steps; } .practice > .pr-top { grid-area: top; } .practice > .pr-cheer { grid-area: cheer; }
.practice > .pr-stage, .practice > .pr-rows { grid-area: stage; }
@container (min-width: 900px) {
  .practice { grid-template-columns: minmax(0, 1fr) 260px; grid-template-areas: "steps steps" "top top" "cheer cheer" "stage card"; align-items: start; }
  .practice > .pr-card { flex-direction: column; align-items: flex-start; min-height: 0; }
  .practice > .pr-card .pr-example { margin-left: 0; align-self: stretch; }
  .practice:has(.pr-rows:not([hidden])) { grid-template-areas: "steps steps" "top top" "cheer cheer" "stage stage"; }
  .practice:has(.pr-rows:not([hidden])) > .pr-card { display: none; }
}
.studio .crumbs { margin-bottom: 8px; }
@media (min-width: 700px) { .studio-modes { flex-wrap: wrap; overflow: visible; } }
.pr-mini > :first-child { font-size: 1.2rem; line-height: 1.1; }
.pr-mini > :last-child { font-size: .72rem; }
.pr-card .pr-ml { font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.2rem); }
.sm-short { display: none; }
.studio.is-compact .sm-long { display: none; } .studio.is-compact .sm-short { display: inline; }
.studio.is-compact .studio-mode { min-height: 42px; padding: 4px 12px; }
@media (min-width: 700px) { .studio.is-compact .studio-modes { flex-wrap: nowrap; overflow-x: auto; } }
.studio.is-compact .studio-surprise { min-height: 42px; padding: .4em 1em; }
.wc-navs .wc-tool { background: var(--gold-soft); }

@media (max-width: 600px) {
  .studio-head { padding: 8px 12px; gap: 8px; }
  .studio-head .hub-en, .studio-sub { display: none; }
  .ws-emoji { font-size: 1.6rem; }
  .studio-head h1 { font-size: 1.3rem; }
  .studio-surprise { min-height: 40px; padding: .35em .9em; font-size: .9rem; }
  .studio-head > div { min-width: 0; }
  .pr-card { padding: 10px 12px; }
  .pr-card .pr-ml { font-size: 2rem; }
  .wc-stage { height: min(52vh, 420px) !important; }
}
@media (max-width: 600px) { .studio-surprise .sp-l { display: none; } .studio-head { flex-wrap: nowrap; } .studio-head h1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .studio-head .speaker { display: none; } }
.pr-card > * { max-width: 100%; }
.pr-card-btns { max-width: 100%; }
.practice > .pr-card .pr-card-btns { width: 100%; }
.pr-card .pr-ml.pr-ml--word { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem); overflow-wrap: anywhere; }
.studio-english .pr-card .pr-pic, .studio-english .pr-card .pr-ml { display: none; }
.pr-mini { flex: 0 0 auto; }
.pr-staff { flex-basis: 100%; font-size: .85rem; color: var(--ink-2); background: var(--surface-2); border: 1px dashed var(--line-2); border-radius: 12px; padding: 8px 12px; }
@media (min-width: 900px) { .studio-find { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: center; } }
.practice .pr-card .pr-hidden { display: flex; align-items: center; gap: 12px; margin: 0; }
.ws-q { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 16px; border: 2px dashed var(--line-2); background: var(--surface-2); color: var(--ink-3); font: 800 2rem var(--f-ui); }
.pr-hidden-t { font: 700 1rem var(--f-ui); color: var(--ink-2); }
@container (max-width: 899px) { .ws-q { width: 48px; height: 48px; font-size: 1.5rem; } .pr-hidden-t { font-size: .9rem; } }
.wc-tool.is-off .wc-ic { opacity: .45; }
