/* Practice lobby polish (2026-11): one rhythm for every section, quiet surfaces, colour only where it means something.
   Tokens from app-shell.css (--sh-*). High specificity on purpose: older practice layers use !important. */
html body.ac-training{--pp-gap:44px;--pp-r:20px}
html body.ac-training .training-page{max-width:1080px!important}

/* ---------- today band (HUD) ---------- */
html body.ac-training #game.gh-hud{margin:4px 0 22px!important;gap:12px!important}
html body.ac-training #game :is(.gh-me-card,.gh-quests,.gh-mini,.gh-arcade){border-radius:var(--pp-r)!important;box-shadow:none!important}
html body.ac-training #game .gh-quests,html body.ac-training #game .gh-mini{background:var(--sh-surface)!important;border:1px solid var(--sh-line)!important}
html body.ac-training #game .gh-arcade{background:var(--sh-surface)!important;border:1px solid var(--sh-line)!important;color:var(--sh-text)!important}
html body.ac-training #game .gh-arcade *{color:inherit!important}
html body.ac-training #game .gh-arcade small,html body.ac-training #game .gh-arcade span:not(:first-child){color:var(--sh-muted)!important}
html body.ac-training #game .gh-arcade:hover{border-color:color-mix(in srgb,var(--sh-accent) 45%,var(--sh-line))!important}
html body.ac-training #game .gh-q-bar{height:5px!important;border-radius:99px!important;background:var(--sh-hover)!important;overflow:hidden}
html body.ac-training #game .gh-q-bar>*{background:var(--sh-accent)!important;border-radius:inherit!important}

/* ---------- section rhythm ---------- */
html body.ac-training .pt-lobby{display:flex!important;flex-direction:column!important;gap:0!important}
html body.ac-training .pt-lobby>.lt{order:0}
html body.ac-training .pt-lobby>#practiceTopics{order:1;margin-top:0!important}
html body.ac-training .pt-lobby>#rangeQuestLobby{order:2;margin-top:var(--pp-gap)!important;padding-top:0!important;border-top:0!important}
html body.ac-training .pt-lobby>.pd-deeper{order:3;margin-top:var(--pp-gap)}
html body.ac-training :is(.drill-library-title,.quest-lobby-head h2,.pd-head h2){margin:0!important;font:850 21px/1.25 Pretendard,'Noto Sans KR',system-ui,sans-serif!important;letter-spacing:-.5px!important;color:var(--sh-text)!important}
html body.ac-training :is(.quest-lobby-head p,.pd-head p){margin:4px 0 0!important;font-size:13.5px!important;color:var(--sh-muted)!important}
html body.ac-training .quest-lobby-head{margin-bottom:14px!important;align-items:flex-end!important}
html body.ac-training .toc-heading{font-size:13px!important;font-weight:800!important;color:var(--sh-muted)!important;letter-spacing:.2px!important}

/* street tabs */
html body.ac-training .practice-stage-nav{background:var(--sh-hover)!important;border:0!important;border-radius:14px!important;padding:4px!important}
html body.ac-training .practice-stage-nav button{border-radius:11px!important;font-weight:700!important}
html body.ac-training .practice-stage-nav button[aria-current="true"],html body.ac-training .practice-stage-nav button[aria-pressed="true"],html body.ac-training .practice-stage-nav button[aria-selected="true"]{background:var(--sh-surface)!important;color:var(--sh-text)!important;box-shadow:0 1px 2px #0000001a,0 2px 8px -4px #0000002e!important}

/* topic cards: one shape, no coloured edge stripes */
html body.ac-training .curr-unit:not(.is-featured){border:1px solid var(--sh-line)!important;border-left-width:1px!important;border-radius:var(--pp-r)!important;background:var(--sh-surface)!important;box-shadow:none!important;transition:border-color .2s,transform .2s,box-shadow .2s!important}
html body.ac-training .curr-unit:not(.is-featured)::before{display:none!important}
html body.ac-training .curr-unit:not(.is-featured):hover{border-color:color-mix(in srgb,var(--sh-text) 22%,var(--sh-line))!important;transform:translateY(-2px);box-shadow:0 14px 26px -22px #0009!important}
html body.ac-training .curr-unit.is-featured{border-radius:24px!important;box-shadow:0 18px 34px -26px #0b2a20!important}
html body.ac-training .curr-play{border:1px solid var(--sh-line)!important;border-style:solid!important;border-radius:99px!important;background:var(--sh-surface)!important;min-height:46px!important;font-weight:800!important;color:var(--sh-text)!important;width:auto!important;justify-self:center;align-self:center;padding:0 22px!important;margin:16px auto 0!important;display:flex!important;align-items:center;justify-content:center}
html body.ac-training .curr-play:hover{background:var(--sh-hover)!important}

/* range drills */
html body.ac-training .quest-mission{border:1px solid var(--sh-line)!important;border-radius:var(--pp-r)!important;background:var(--sh-surface)!important;box-shadow:none!important;transition:border-color .2s,transform .2s,box-shadow .2s!important}
html body.ac-training .quest-mission:hover{border-color:color-mix(in srgb,var(--sh-text) 22%,var(--sh-line))!important;transform:translateY(-2px);box-shadow:0 14px 26px -22px #0009!important}
html body.ac-training .quest-level-label{background:var(--sh-hover)!important;color:var(--sh-muted)!important;border:0!important}
html body.ac-training .quest-lobby-note{margin-top:10px!important;font-size:12px!important;color:var(--sh-muted)!important}

/* deeper study */
.pd-head{margin-bottom:14px}
.pd-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.pd-card{display:flex;align-items:center;gap:14px;min-width:0;padding:16px;border-radius:var(--pp-r,20px);background:var(--sh-surface);border:1px solid var(--sh-line);color:var(--sh-text)!important;text-decoration:none!important;transition:border-color .2s,transform .2s,box-shadow .2s}
.pd-card:hover{border-color:color-mix(in srgb,var(--sh-text) 22%,var(--sh-line));transform:translateY(-2px);box-shadow:0 14px 26px -22px #0009}
.pd-icon{flex:none;display:grid;place-items:center;width:44px;height:44px;border-radius:14px;background:var(--sh-hover);color:var(--sh-text)}
.pd-icon svg,.pd-arrow{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.pd-copy{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
html body .pd-copy strong{font-size:15px;font-weight:800;letter-spacing:-.3px;color:var(--sh-text)!important}
html body .pd-copy small{font-size:12.5px;color:var(--sh-muted)!important}
.pd-arrow{flex:none;width:18px;height:18px;color:var(--sh-muted);transition:transform .2s}
.pd-card:hover .pd-arrow{transform:translateX(3px);color:var(--sh-text)}

/* fine print + extras */
html body.ac-training .ht-footnote{margin:var(--pp-gap) 0 16px!important;padding:0!important;border:0!important;text-align:center;font-size:12px!important;line-height:1.6;color:var(--sh-muted)!important}
html body.ac-training :is(details.ht-chapter,details.chapter-free){margin:0 0 10px!important;border:1px solid var(--sh-line)!important;border-radius:var(--pp-r)!important;background:var(--sh-surface)!important;box-shadow:none!important}
html body.ac-training :is(details.ht-chapter,details.chapter-free)>summary{padding:16px 18px!important;font-size:15px!important;font-weight:800!important}

@media(max-width:780px){
 html body.ac-training{--pp-gap:34px;--pp-r:18px}
 .pd-grid{grid-template-columns:1fr;gap:8px}
 .pd-card{padding:13px 14px}
 html body.ac-training :is(.drill-library-title,.quest-lobby-head h2,.pd-head h2){font-size:19px!important}
}
@media(prefers-reduced-motion:reduce){html body.ac-training :is(.curr-unit,.quest-mission,.pd-card){transition:none!important;transform:none!important}}
/* Match the older layer's weight so the stripe and dashed outline really go away. */
html body.ac-training.training-game.pg-2026:not(.table-focus) .curr-unit:not(.is-featured):before{display:none!important}
html body.ac-training.training-game.pg-2026:not(.table-focus) .curr-play{border:1px solid var(--sh-line)!important;background:var(--sh-surface)!important;border-radius:99px!important}
html body.ac-training.training-game.pg-2026:not(.table-focus) .curr-play:hover{background:var(--sh-hover)!important}
html body.ac-training .lt .lt-more{border:1px solid var(--sh-line)!important;border-radius:99px!important;background:var(--sh-surface)!important;min-height:40px;padding:0 18px!important}
@media(min-width:1080px){.lt-toast{left:calc(50% + 126px)}}

/* ---------- 2026-11 pass 2: one heading size, shorter mobile lobby ---------- */
html body.ac-training.training-game.pg-2026:not(.table-focus):not(.pp-lock) :is(.drill-library-title,.quest-lobby-head h2,.pd-head h2){font:800 22px/1.25 var(--sh-font,Pretendard,sans-serif)!important;letter-spacing:-.5px!important}
html body.ac-training.ac-training .quest-lobby-head small{display:none!important}
@media(max-width:780px){
 html body.ac-training.training-game.pg-2026:not(.table-focus):not(.pp-lock) :is(.drill-library-title,.quest-lobby-head h2,.pd-head h2){font-size:20px!important}
 /* topic cards: two-up tiles; the table art stays on the featured card only */
 html body.ac-training.training-game.pg-2026:not(.table-focus):not(.pp-lock) .practice-browse .curr-path{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
 html body.ac-training.training-game.pg-2026:not(.table-focus):not(.pp-lock) .practice-browse .curr-unit.is-featured{grid-column:1/-1}
 html body.ac-training.training-game.pg-2026:not(.table-focus):not(.pp-lock) .curr-unit:not(.is-featured) .curr-unit-summary{display:flex!important;flex-direction:column!important;height:100%!important;min-height:0!important;padding:14px!important;gap:0!important}
 html body.ac-training.training-game.pg-2026:not(.table-focus):not(.pp-lock) .curr-unit:not(.is-featured) .drill-hand{display:none!important}
 html body.ac-training.training-game.pg-2026:not(.table-focus):not(.pp-lock) .curr-unit:not(.is-featured) .curr-unit-copy{display:flex!important;flex-direction:column!important;flex:1!important;min-width:0!important;gap:4px!important}
 html body.ac-training.training-game.pg-2026:not(.table-focus):not(.pp-lock) .curr-unit:not(.is-featured) .curr-unit-copy strong{font-size:15.5px!important;line-height:1.3!important}
 html body.ac-training.training-game.pg-2026:not(.table-focus):not(.pp-lock) .curr-unit:not(.is-featured) .practice-unit-description{font-size:12.5px!important;line-height:1.45!important;display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden!important}
 html body.ac-training.training-game.pg-2026:not(.table-focus):not(.pp-lock) .curr-unit:not(.is-featured) .toc-state{margin-top:auto!important;padding-top:10px!important;font-size:11.5px!important}
 html body.ac-training.training-game.pg-2026:not(.table-focus):not(.pp-lock) .curr-unit:not(.is-featured) .practice-unit-description{margin-top:2px!important}
 /* range drills: smaller art, the whole card is the link */
 html body.ac-training .quest-mission{min-height:0!important;padding:12px 14px!important;gap:12px!important}
 html body.ac-training .quest-mission .quest-card-art{transform:scale(.82);transform-origin:left center;margin-right:-10px}
 html body.ac-training .quest-mission .quest-mission-status{display:none!important}
 html body.ac-training .quest-mission .quest-mission-copy small{display:none!important}
 /* today band: league / badges as one-line buttons */
 html body.ac-training #game .gh-mini{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:8px!important;min-height:52px!important;height:auto!important;padding:0 14px!important;text-align:left!important}
 html body.ac-training #game .gh-mini>*{margin:0!important}
 html body.ac-training #game .gh-mini b{margin-left:auto!important}
 /* deeper study: 2×2 tiles */
 .pd-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .pd-card{flex-direction:column;align-items:flex-start;gap:10px;padding:14px}
 .pd-card .pd-arrow,html body .pd-copy small{display:none}
 .pd-icon{width:38px;height:38px;border-radius:12px}
 html body .pd-copy strong{font-size:14px;line-height:1.35}
}
