/* 단어 섹션: 수능 단어 분석(/word/sat/), 단어 홈(/word/), 단어장(/wman/), 단어 카드 패널.
   ps2.css, ps2-legacy.css 다음에 불러온다. 규칙은 #pw(목록) · #wh(단어 홈) · #wm(단어장) · .pwx(패널) 안에서만 적용된다.
   선택자 앞의 :is(#pw, #wh, #wm, .pwx) 는 ps2-legacy.css 의 "#main h1", "#main button:not([class])" 같은 규칙보다 우선하게 하려는 것이다. */

#main:has(#pw), #main:has(#wm) { overflow: visible; }

#pw, #wh, #wm, .pwx { color: var(--ps-ink); }
#pw *, #wh *, #wm *, .pwx * { box-sizing: border-box; }
#pw button, #wh button, #wm button, .pwx button { font: inherit; color: inherit; cursor: pointer; }
#pw p, #wh p, #wm p, .pwx p { margin: 0; }
#pw ol, #pw ul, #wh ul, #wm ul, #wm ol, .pwx ol, .pwx ul { margin: 0; padding: 0; list-style: none; line-height: inherit; }
#pw li, #wh li, #wm li, .pwx li, #pw li + li, #wm li + li, .pwx li + li { margin: 0; line-height: inherit; }
#pw a, #wh a, #wm a, .pwx a { text-decoration: none; }
#pw svg, #wh svg, #wm svg, .pwx svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
:is(#pw, #wh, #wm, .pwx) [hidden] { display: none !important; }
:is(#pw, #wm) .pw-search input:focus, :is(#pw, #wm) .pw-search input { border: 0 !important; box-shadow: none; background: transparent; }
#wh .wh-search input, #wh .wh-search input:focus { border: 0 !important; box-shadow: none; background: transparent; }
:is(#pw, #wh, #wm) h1, :is(#pw, #wh, #wm) h2, :is(#pw, #wh, #wm) h3 { text-wrap: balance; }

/* ───────── 머리 ───────── */
:is(#pw, #wh, #wm, .pwx) .pw-hero {
    display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 32px; border-radius: 28px; overflow: hidden;
    background: radial-gradient(560px 280px at 100% 0%, rgba(34, 197, 94, .30), transparent 70%), radial-gradient(420px 240px at 0% 100%, rgba(37, 99, 235, .22), transparent 70%), var(--ps-night);
    color: #fff;
}
:is(#pw, #wh, #wm, .pwx) .pw-hero .pw-eyebrow { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #c9f5d9 !important; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; }
:is(#pw, #wh, #wm, .pwx) .pw-hero h1 { margin: 14px 0 10px; color: #fff; font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.15; }
:is(#pw, #wh, #wm, .pwx) .pw-hero p { max-width: 620px; color: rgba(255, 255, 255, .78); font-size: 15.5px; line-height: 1.7; }
:is(#pw, #wh, #wm, .pwx) .pw-hero p b { color: #fff; font-weight: 700; }
:is(#pw, #wh, #wm, .pwx) .pw-stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
:is(#pw, #wh, #wm, .pwx) .pw-stats > div { min-width: 104px; padding: 14px 16px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 18px; background: rgba(255, 255, 255, .07); backdrop-filter: blur(6px); }
:is(#pw, #wh, #wm, .pwx) .pw-stats dt { color: rgba(255, 255, 255, .62); font-size: 12px; font-weight: 600; }
:is(#pw, #wh, #wm, .pwx) .pw-stats dd { margin: 4px 0 0; color: #fff; font-size: 21px; font-weight: 800; letter-spacing: -0.03em; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* 학년도 */
:is(#pw, #wh, #wm, .pwx) .pw-years { display: flex; gap: 6px; margin: 18px -4px 0; padding: 4px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
:is(#pw, #wh, #wm, .pwx) .pw-years::-webkit-scrollbar { display: none; }
:is(#pw, #wh, #wm, .pwx) .pw-years a { flex: none; display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border: 1px solid var(--ps-line); border-radius: 999px; background: #fff; color: var(--ps-ink-2) !important; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; transition: border-color .2s, background .2s, color .2s; }
:is(#pw, #wh, #wm, .pwx) .pw-years a:hover { border-color: var(--ps-ink); color: var(--ps-ink) !important; }
:is(#pw, #wh, #wm, .pwx) .pw-years a.is-on { border-color: var(--ps-ink); background: var(--ps-ink); color: #fff !important; }

:is(#pw, #wh, #wm, .pwx) .pw-tip { margin: 14px 0 0 !important; padding: 13px 18px; border-radius: 16px; background: #fff8e1; color: #6b4a00; font-size: 14.5px; line-height: 1.6; }
:is(#pw, #wh, #wm, .pwx) .pw-tip b { padding: 1px 6px; border-radius: 6px; background: var(--ps-mark); color: #3d2c00; }
:is(#pw, #wh, #wm, .pwx) .pw-tip span { font-weight: 800; color: #3d2c00; }

/* ───────── 도구 막대 (스크롤해도 위에 붙어 있다) ───────── */
:is(#pw, #wh, #wm, .pwx) .pw-bar {
    position: sticky; top: calc(var(--ps-header-h) + 10px); z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 0 0; padding: 10px;
    border: 1px solid var(--ps-line); border-radius: 20px; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(12px); box-shadow: var(--ps-shadow-sm);
}
:is(#pw, #wh, #wm, .pwx) .pw-search { flex: 1 1 190px; display: flex; align-items: center; gap: 10px; height: 46px; margin: 0; padding: 0 16px; border: 1px solid transparent; border-radius: 14px; background: var(--ps-bg-soft); color: var(--ps-ink-3); transition: border-color .2s, background .2s, box-shadow .2s; }
:is(#pw, #wh, #wm, .pwx) .pw-search:focus-within { border-color: var(--ps-brand); background: #fff; box-shadow: 0 0 0 4px rgba(14, 138, 67, .12); }
:is(#pw, #wh, #wm, .pwx) .pw-search input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: var(--ps-ink); font: inherit; font-size: 16px; font-weight: 600; }
:is(#pw, #wh, #wm, .pwx) .pw-search input::placeholder { color: var(--ps-ink-3); font-weight: 500; }
:is(#pw, #wh, #wm, .pwx) .pw-search input::-webkit-search-cancel-button { cursor: pointer; }
:is(#pw, #wh, #wm, .pwx) .pw-seg { flex: none; display: inline-flex; padding: 4px; border-radius: 14px; background: var(--ps-bg-soft); }
:is(#pw, #wh, #wm, .pwx) .pw-seg button { height: 38px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: var(--ps-ink-2); font-size: 14px; font-weight: 700; transition: background .2s, color .2s, box-shadow .2s; }
:is(#pw, #wh, #wm, .pwx) .pw-seg button.is-on { background: #fff; color: var(--ps-ink); box-shadow: var(--ps-shadow-sm); }
:is(#pw, #wh, #wm, .pwx) .pw-my { flex: none; display: flex; gap: 8px; }
:is(#pw, #wh, #wm, .pwx) .pw-mybtn { display: inline-flex; align-items: center; gap: 7px; height: 46px; padding: 0 14px; border: 1px solid var(--ps-line-strong); border-radius: 14px; background: #fff; color: var(--ps-ink) !important; font-size: 14.5px; font-weight: 700; white-space: nowrap; transition: border-color .2s, transform .2s var(--ps-ease), background .2s; }
:is(#pw, #wh, #wm, .pwx) .pw-mybtn:hover { border-color: var(--ps-ink); }
:is(#pw, #wh, #wm, .pwx) .pw-mybtn:active { transform: scale(.97); }
:is(#pw, #wh, #wm, .pwx) .pw-mybtn b { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--ps-brand); color: #fff; font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
:is(#pw, #wh, #wm, .pwx) .pw-mybtn b.is-bump { animation: pw-bump .5s var(--ps-ease); }
:is(#pw, #wh, #wm, .pwx) .pw-mybtn--play { border-color: transparent; background: var(--ps-brand); color: #fff !important; box-shadow: 0 10px 22px -12px rgba(14, 138, 67, .7); }
:is(#pw, #wh, #wm, .pwx) .pw-mybtn--play:hover { border-color: transparent; background: var(--ps-brand-strong); }
@keyframes pw-bump { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }

/* 첫 글자 */
:is(#pw, #wh, #wm, .pwx) .pw-filters { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px 14px; margin: 14px 0 0; }
:is(#pw, #wh, #wm, .pwx) .pw-alpha { flex: 1 1 320px; display: flex; flex-wrap: wrap; gap: 5px; }
:is(#pw, #wh, #wm, .pwx) .pw-alpha button { min-width: 34px; height: 34px; padding: 0 9px; border: 1px solid var(--ps-line); border-radius: 10px; background: #fff; color: var(--ps-ink-2); font-size: 13.5px; font-weight: 700; transition: border-color .15s, background .15s, color .15s; }
:is(#pw, #wh, #wm, .pwx) .pw-alpha button:hover { border-color: var(--ps-ink); color: var(--ps-ink); }
:is(#pw, #wh, #wm, .pwx) .pw-alpha button.is-on { border-color: var(--ps-brand); background: var(--ps-brand); color: #fff; }

/* ───────── 목록 ───────── */
:is(#pw, #wh, #wm, .pwx) .pw-listhead { display: flex; align-items: center; gap: 12px; margin: 26px 0 8px; padding: 0 6px; color: var(--ps-ink-3); font-size: 13.5px; }
:is(#pw, #wh, #wm, .pwx) .pw-listhead b { color: var(--ps-ink); font-size: 17px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
:is(#pw, #wh, #wm, .pwx) .pw-listhead__sort::before { content: "·"; margin-right: 12px; }
:is(#pw, #wh, #wm, .pwx) .pw-pdf { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--ps-bg-soft); color: var(--ps-ink-2) !important; font-size: 13px; font-weight: 700; }
:is(#pw, #wh, #wm, .pwx) .pw-pdf:hover { background: var(--ps-ink); color: #fff !important; }
:is(#pw, #wh, #wm, .pwx) .pw-pdf svg { width: 15px; height: 15px; }

:is(#pw, #wh, #wm, .pwx) .pw-list { border-top: 1px solid var(--ps-line); }
:is(#pw, #wh, #wm, .pwx) .pw-list.is-loading { opacity: .45; transition: opacity .15s; }
:is(#pw, #wh, #wm, .pwx) .pw-row { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto 168px auto; align-items: center; gap: 0 14px; min-height: 60px; padding: 8px 6px; border-bottom: 1px solid var(--ps-line); transition: background .15s; }
:is(#pw, #wh, #wm, .pwx) .pw-row:hover { background: var(--ps-bg-soft); }
:is(#pw, #wh, #wm, .pwx) .pw-row.is-open { background: var(--ps-brand-soft); }
:is(#pw, #wh, #wm, .pwx) .pw-rank { color: var(--ps-ink-3); font-size: 13px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
:is(#pw, #wh, #wm, .pwx) .pw-word { justify-self: start; max-width: 100%; padding: 6px 2px; border: 0; background: none; color: var(--ps-ink) !important; font-size: 19px; font-weight: 700; letter-spacing: -0.01em; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:is(#pw, #wh, #wm, .pwx) .pw-word:hover { color: var(--ps-brand) !important; }
:is(#pw, #wh, #wm, .pwx) .pw-lv { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
:is(#pw, #wh, #wm, .pwx) .pw-lv--0 { padding: 0; }
:is(#pw, #wh, #wm, .pwx) .pw-lv--1 { background: var(--ps-brand-soft); color: var(--ps-brand-strong); }
:is(#pw, #wh, #wm, .pwx) .pw-lv--2 { background: #e8f0fe; color: #1d4ed8; }
:is(#pw, #wh, #wm, .pwx) .pw-lv--3 { background: #f1eafe; color: #6d28d9; }
:is(#pw, #wh, #wm, .pwx) .pw-freq { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
:is(#pw, #wh, #wm, .pwx) .pw-freq i { flex: 1; height: 6px; border-radius: 999px; background: var(--ps-bg-soft); overflow: hidden; }
:is(#pw, #wh, #wm, .pwx) .pw-row:hover .pw-freq i { background: #e9edf2; }
:is(#pw, #wh, #wm, .pwx) .pw-freq u { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--ps-brand-bright), var(--ps-brand)); text-decoration: none; }
:is(#pw, #wh, #wm, .pwx) .pw-freq b { min-width: 44px; font-size: 15px; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
:is(#pw, #wh, #wm, .pwx) .pw-freq small { margin-left: -8px; color: var(--ps-ink-3); font-size: 12px; }
:is(#pw, #wh, #wm, .pwx) .pw-acts { display: flex; gap: 6px; }
:is(#pw, #wh, #wm, .pwx) .pw-btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 34px; padding: 0 13px; border: 1px solid var(--ps-line-strong); border-radius: 999px; background: #fff; color: var(--ps-ink) !important; font-size: 13.5px; font-weight: 700; white-space: nowrap; transition: border-color .15s, background .15s, color .15s, transform .15s var(--ps-ease); }
:is(#pw, #wh, #wm, .pwx) .pw-btn:hover { border-color: var(--ps-ink); }
:is(#pw, #wh, #wm, .pwx) .pw-btn:active { transform: scale(.95); }
:is(#pw, #wh, #wm, .pwx) .pw-btn--save { border-color: transparent; background: var(--ps-brand-soft); color: var(--ps-brand-strong) !important; }
:is(#pw, #wh, #wm, .pwx) .pw-btn--save:hover { border-color: var(--ps-brand); }
:is(#pw, #wh, #wm, .pwx) .pw-btn--save::before { content: "+"; font-size: 16px; font-weight: 800; line-height: 1; }
:is(#pw, #wh, #wm, .pwx) .pw-row.is-saved .pw-btn--save { background: var(--ps-brand); color: #fff !important; }
:is(#pw, #wh, #wm, .pwx) .pw-row.is-saved .pw-btn--save::before { content: "✓"; font-size: 13px; }
:is(#pw, #wh, #wm, .pwx) .pw-empty { padding: 44px 16px !important; border-bottom: 1px solid var(--ps-line); color: var(--ps-ink-3); text-align: center; }
:is(#pw, #wh, #wm, .pwx) .pw-more { display: flex; justify-content: center; padding: 22px 0 6px; }
:is(#pw, #wh, #wm, .pwx) .pw-morebtn { height: 46px; padding: 0 26px; border: 1px solid var(--ps-line-strong); border-radius: 999px; background: #fff; font-size: 15px; font-weight: 700; }
:is(#pw, #wh, #wm, .pwx) .pw-morebtn:hover { border-color: var(--ps-ink); }
:is(#pw, #wh, #wm, .pwx) .pw-morebtn[disabled] { opacity: .5; cursor: default; }

/* ───────── 알림 ───────── */
.pw-toast { position: fixed; left: 50%; bottom: 28px; z-index: 600; display: flex; align-items: center; gap: 14px; max-width: calc(100vw - 32px); padding: 13px 18px; border-radius: 16px; background: var(--ps-ink); color: #fff; font-size: 14.5px; font-weight: 600; box-shadow: var(--ps-shadow-lg); transform: translate(-50%, 24px); opacity: 0; pointer-events: none; transition: transform .3s var(--ps-ease), opacity .3s; }
.pw-toast.is-on { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.pw-toast a { color: #8ff0b4 !important; font-weight: 800; white-space: nowrap; text-decoration: none; }

/* ───────── 단어 카드 패널 ───────── */
.pwx { position: fixed; inset: 0; z-index: 250; visibility: hidden; }
.pwx.is-on { visibility: visible; }
.pwx-dim { position: absolute; inset: 0; background: rgba(11, 19, 36, .42); opacity: 0; transition: opacity .3s; }
.pwx.is-on .pwx-dim { opacity: 1; }
.pwx-panel { outline: 0; position: absolute; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: min(580px, 100vw); background: #fff; box-shadow: var(--ps-shadow-lg); transform: translateX(104%); transition: transform .38s var(--ps-ease); }
.pwx.is-on .pwx-panel { transform: none; }
.pwx-close { position: absolute; top: 16px; right: 16px; z-index: 3; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--ps-bg-soft); color: var(--ps-ink-2); }
.pwx-close:hover { background: var(--ps-ink); color: #fff; }
.pwx-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.pwx-wait { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; height: 60%; color: var(--ps-ink-3); font-size: 14.5px; }
.pwx-spin { width: 30px; height: 30px; border: 3px solid var(--ps-line); border-top-color: var(--ps-brand); border-radius: 50%; animation: pw-spin .8s linear infinite; }
@keyframes pw-spin { to { transform: rotate(360deg); } }

.pwc-head { position: relative; padding: 30px 28px 20px; background: linear-gradient(180deg, var(--ps-brand-soft), #fff); }
.pwc-head__main { display: flex; align-items: center; gap: 12px; padding-right: 44px; }
.pwc-head h2 { margin: 0; font-family: var(--ps-serif); font-size: clamp(32px, 6vw, 42px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; overflow-wrap: anywhere; }
.pwc-audio { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--ps-line-strong); border-radius: 50%; background: #fff; color: var(--ps-ink); transition: border-color .2s, background .2s, color .2s, transform .2s var(--ps-ease); }
.pwc-audio:hover { border-color: var(--ps-brand); color: var(--ps-brand); }
.pwc-audio.is-playing { border-color: var(--ps-brand); background: var(--ps-brand); color: #fff; transform: scale(1.06); }
.pwc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.pwc-chip { display: inline-flex; align-items: center; gap: 3px; height: 26px; padding: 0 11px; border: 1px solid var(--ps-line); border-radius: 999px; background: #fff; color: var(--ps-ink-2); font-size: 12.5px; font-weight: 600; }
.pwc-chip b { color: var(--ps-ink); font-weight: 800; }
.pwc-chips .pw-lv { height: 26px; padding: 0 11px; font-size: 12.5px; }
.pwc-save { display: inline-flex; align-items: center; gap: 8px; height: 42px; margin-top: 16px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--ps-ink); color: #fff !important; font-size: 14.5px; font-weight: 700; transition: background .2s, transform .2s var(--ps-ease); }
.pwc-save:hover { background: #1c2740; }
.pwc-save:active { transform: scale(.97); }
.pwc-save.is-saved { background: var(--ps-brand-soft); color: var(--ps-brand-strong) !important; cursor: default; }
.pwc-save.is-saved svg { fill: currentColor; }

.pwc-tabs { position: sticky; top: 0; z-index: 2; display: flex; gap: 4px; padding: 0 20px; border-bottom: 1px solid var(--ps-line); background: #fff; }
.pwc-tabs button { position: relative; height: 50px; padding: 0 12px; border: 0; background: none; color: var(--ps-ink-3) !important; font-size: 15.5px; font-weight: 700; }
.pwc-tabs button b { margin-left: 2px; color: inherit; font-size: 13px; font-weight: 700; }
.pwc-tabs button.is-on { color: var(--ps-ink) !important; }
.pwc-tabs button.is-on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--ps-brand); }
.pwc-pane { padding: 20px 28px 48px; }
.pwc-none { padding: 28px 0; color: var(--ps-ink-3); font-size: 15px; line-height: 1.7; }
.pwc-scope { margin-bottom: 12px !important; color: var(--ps-ink-3); font-size: 13.5px; }
.pwc-loading { padding: 40px 0; color: var(--ps-ink-3); font-size: 14.5px; text-align: center; }

.pwc-sent { padding: 18px 0; border-bottom: 1px solid var(--ps-line); }
.pwc-sent:first-child { padding-top: 4px; }
.pwc-sent__en { font-family: var(--ps-serif); font-size: 17.5px; line-height: 1.7; color: var(--ps-ink); }
.pwx mark { padding: 1px 3px; border-radius: 5px; background: var(--ps-mark); color: inherit; font-weight: 700; }
.pwc-sent__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 10px; }
.pwc-tag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--ps-bg-soft); color: var(--ps-ink-2); font-size: 12.5px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pwc-mean { color: var(--ps-ink-2); font-size: 13.5px; }
.pwc-mean b { color: var(--ps-brand-strong); }
.pwc-sent__acts { display: inline-flex; gap: 14px; margin-left: auto; }
.pwc-link { padding: 0; border: 0; background: none; color: var(--ps-brand) !important; font-size: 13.5px; font-weight: 700; }
.pwc-link:hover { color: var(--ps-brand-strong) !important; text-decoration: underline !important; }
.pwc-link[aria-expanded="true"] { color: var(--ps-ink-3) !important; }
.pwc-more { display: block; width: 100%; height: 46px; margin-top: 18px; border: 1px solid var(--ps-line-strong); border-radius: 14px; background: #fff; font-size: 14.5px; font-weight: 700; }
.pwc-more:hover { border-color: var(--ps-ink); }
.pwc-more small { margin-left: 6px; color: var(--ps-ink-3); font-size: 12.5px; font-weight: 500; }

.pwc-q { margin-top: 14px; }
.pwc-qbox { padding: 18px 20px; border: 1px solid var(--ps-line); border-radius: 18px; background: var(--ps-bg-soft); }
.pwc-qins { font-size: 15px; font-weight: 700; line-height: 1.6; }
.pwc-qimg { margin-top: 12px !important; text-align: center; }
.pwc-qimg img { max-width: 100%; height: auto; border-radius: 10px; }
.pwc-qtext { margin-top: 12px; padding: 16px 18px; border-radius: 14px; background: #fff; font-family: var(--ps-serif); font-size: 16px; line-height: 1.8; overflow-wrap: anywhere; }
.pwc-qtext p { margin: 0 0 10px; }
.pwc-qnote { margin-top: 10px !important; color: var(--ps-ink-3); font-size: 14px; }
.pwc-qch { display: grid; gap: 6px; margin-top: 12px !important; }
.pwc-qch li { display: flex; gap: 10px; padding: 9px 14px; border-radius: 12px; background: #fff; font-size: 15px; line-height: 1.55; }
.pwc-qch i { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin-top: 1px; border: 1px solid var(--ps-line-strong); border-radius: 50%; color: var(--ps-ink-2); font-size: 12px; font-style: normal; font-weight: 700; }
.pwc-qacts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pwc-btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 18px; border: 1px solid var(--ps-line-strong); border-radius: 999px; background: #fff; color: var(--ps-ink) !important; font-size: 14px; font-weight: 700; transition: background .2s, border-color .2s, transform .2s var(--ps-ease); }
.pwc-btn:hover { border-color: var(--ps-ink); }
.pwc-btn:active { transform: scale(.97); }
.pwc-btn--primary { border-color: transparent; background: var(--ps-brand); color: #fff !important; }
.pwc-btn--primary:hover { border-color: transparent; background: var(--ps-brand-strong); }
.pwc-btn[disabled] { opacity: .6; cursor: default; }

/* 뜻 · 사용법 */
.pwu-sec { padding: 20px 0; border-bottom: 1px solid var(--ps-line); }
.pwu-sec:first-child { padding-top: 4px; }
.pwu-sec:last-child { border-bottom: 0; }
.pwu-sec > h3 { display: flex; align-items: baseline; gap: 8px; margin: 0 0 12px; font-size: 15px; font-weight: 800; letter-spacing: -0.02em; }
.pwu-sec > h3 small { color: var(--ps-ink-3); font-size: 12px; font-weight: 500; }
.pwu-badge { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 999px; background: var(--ps-brand-soft); color: var(--ps-brand-strong); font-size: 12.5px; font-weight: 800; }
.pwu-badge--ai { background: var(--ps-ink); color: #fff; }
.pwu-expl { font-size: 15.5px; line-height: 1.8; overflow-wrap: anywhere; user-select: none; }
.pwu-expl img { max-width: 100%; height: auto; }
.pwu-expl p { margin: 0 0 10px; }
.pwu-core { padding: 18px 20px; border-radius: 18px; background: var(--ps-brand-soft); }
.pwu-core p { color: var(--ps-ink); font-size: 16.5px; font-weight: 600; line-height: 1.7; }
.pwu-pos { display: inline-block; margin-bottom: 6px; color: var(--ps-brand-strong); font-size: 12.5px; font-weight: 800; }
.pwu-ai h4 { margin: 22px 0 10px; font-size: 14px; font-weight: 800; color: var(--ps-ink-2); letter-spacing: -0.01em; }
.pwu-means { counter-reset: pwu; }
.pwu-means > li, .pwu-pats > li { position: relative; padding: 12px 0 12px 34px; border-top: 1px solid var(--ps-line); }
.pwu-means > li:first-child, .pwu-pats > li:first-child { border-top: 0; }
.pwu-means > li::before { counter-increment: pwu; content: counter(pwu); position: absolute; left: 0; top: 13px; display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ps-ink); color: #fff; font-size: 12px; font-weight: 800; }
.pwu-pats > li { padding-left: 0; }
.pwu-mean { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.pwu-mean b { font-size: 16px; font-weight: 800; }
.pwu-mean i { color: var(--ps-ink-3); font-size: 12.5px; font-style: normal; font-weight: 600; }
.pwx code { padding: 3px 8px; border-radius: 8px; background: var(--ps-bg-soft); color: #1d4ed8; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13.5px; font-weight: 600; }
.pwu-ex { margin-top: 6px !important; font-size: 15px; line-height: 1.6; }
.pwu-ex span { font-family: var(--ps-serif); font-size: 16px; }
.pwu-ex small { display: block; color: var(--ps-ink-3); font-size: 13.5px; }
.pwu-sat > li { padding: 14px 16px; border-radius: 16px; background: var(--ps-bg-soft); }
.pwu-sat > li + li { margin-top: 8px; }
.pwu-sat__en { margin-top: 8px !important; font-family: var(--ps-serif); font-size: 16px; line-height: 1.7; }
.pwu-sat__ko { margin-top: 6px !important; color: var(--ps-ink-2); font-size: 14.5px; line-height: 1.65; }
.pwu-sat__pt { margin-top: 8px !important; padding-top: 8px; border-top: 1px dashed var(--ps-line-strong); color: var(--ps-brand-strong); font-size: 14px; font-weight: 600; line-height: 1.6; }
.pwu-conf > li { display: flex; align-items: baseline; gap: 10px; padding: 6px 0; font-size: 14.5px; line-height: 1.6; }
.pwu-tip { margin-top: 20px !important; padding: 14px 16px; border-radius: 14px; background: #fff8e1; color: #6b4a00; font-size: 14.5px; line-height: 1.65; }
.pwu-tip b { margin-right: 6px; color: #3d2c00; }
.pwu-by { margin-top: 14px !important; color: var(--ps-ink-3); font-size: 12.5px; }
.pwu-by a { color: var(--ps-ink-2) !important; text-decoration: underline !important; }
.pwu-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px !important; border: 1px dashed var(--ps-line-strong) !important; border-radius: 18px; margin: 4px 0 8px; font-size: 15px; line-height: 1.65; }
.pwu-cta small { color: var(--ps-ink-3); font-size: 12.5px; }
.pwu-msg { color: var(--ps-red); font-size: 14px; font-weight: 600; }
.pwu-ctx > li { padding: 10px 0; border-top: 1px solid var(--ps-line); font-size: 15px; }
.pwu-ctx > li:first-child { border-top: 0; padding-top: 0; }
.pwu-ctx b { margin-left: 8px; font-weight: 800; }
.pwu-ctx p { margin-top: 4px !important; color: var(--ps-ink-2); font-size: 14px; line-height: 1.6; }
.pwu-dict h5 { margin: 14px 0 6px; color: var(--ps-ink-3); font-size: 12.5px; font-weight: 700; }
.pwu-dict h5:first-child { margin-top: 0; }
.pwu-dict li { position: relative; padding: 3px 0 3px 16px; font-size: 15px; line-height: 1.6; }
.pwu-dict li::before { content: ""; position: absolute; left: 3px; top: 13px; width: 5px; height: 5px; border-radius: 50%; background: var(--ps-line-strong); }
.pwu-dict .pwu-dictex li { color: var(--ps-ink-2); font-family: var(--ps-serif); font-style: italic; }

/* ───────── 단어 홈 (/word/) ───────── */
#wh .pw-hero { align-items: center; }
:is(#pw, #wh, #wm, .pwx) .wh-search { display: flex; gap: 8px; max-width: 520px; margin-top: 20px; padding: 6px; border-radius: 18px; background: #fff; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .5); }
:is(#pw, #wh, #wm, .pwx) .wh-search input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border: 0; outline: 0; background: transparent; color: var(--ps-ink); font: inherit; font-size: 16px; font-weight: 600; }
:is(#pw, #wh, #wm, .pwx) .wh-search button { flex: none; height: 46px; padding: 0 20px; border: 0; border-radius: 13px; background: var(--ps-brand); color: #fff !important; font-size: 15px; font-weight: 700; }
:is(#pw, #wh, #wm, .pwx) .wh-search button:hover { background: var(--ps-brand-strong); }
:is(#pw, #wh, #wm, .pwx) .wh-sec { margin-top: 36px; }
:is(#pw, #wh, #wm, .pwx) .wh-sec > h2 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 14px; font-size: 21px; font-weight: 800; letter-spacing: -0.03em; }
:is(#pw, #wh, #wm, .pwx) .wh-sec > h2 small { color: var(--ps-ink-3); font-size: 13.5px; font-weight: 500; letter-spacing: 0; }
:is(#pw, #wh, #wm, .pwx) .wh-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
:is(#pw, #wh, #wm, .pwx) .wh-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
:is(#pw, #wh, #wm, .pwx) .wh-tile { position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 148px; padding: 22px; border: 1px solid var(--ps-line); border-radius: 22px; background: #fff; color: var(--ps-ink) !important; transition: transform .25s var(--ps-ease), box-shadow .25s, border-color .25s; }
:is(#pw, #wh, #wm, .pwx) .wh-tile:hover { transform: translateY(-3px); border-color: var(--ps-line-strong); box-shadow: var(--ps-shadow); }
:is(#pw, #wh, #wm, .pwx) .wh-tile__ico { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin-bottom: 8px; border-radius: 13px; background: var(--ps-brand-soft); color: var(--ps-brand-strong); }
:is(#pw, #wh, #wm, .pwx) .wh-tile__ico svg { width: 21px !important; height: 21px !important; }
:is(#pw, #wh, #wm, .pwx) .wh-tile--blue .wh-tile__ico { background: #e8f0fe; color: #1d4ed8; }
:is(#pw, #wh, #wm, .pwx) .wh-tile--amber .wh-tile__ico { background: #fff3d6; color: #a85a00; }
:is(#pw, #wh, #wm, .pwx) .wh-tile--dark { border-color: transparent; background: var(--ps-night); color: #fff !important; }
:is(#pw, #wh, #wm, .pwx) .wh-tile--dark .wh-tile__ico { background: rgba(255, 255, 255, .12); color: #8ff0b4; }
:is(#pw, #wh, #wm, .pwx) .wh-tile--dark span { color: rgba(255, 255, 255, .72) !important; }
:is(#pw, #wh, #wm, .pwx) .wh-tile strong { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
:is(#pw, #wh, #wm, .pwx) .wh-tile span { color: var(--ps-ink-2); font-size: 14px; line-height: 1.6; }
:is(#pw, #wh, #wm, .pwx) .wh-tile em { margin-top: auto; padding-top: 10px; color: var(--ps-brand); font-size: 13.5px; font-style: normal; font-weight: 800; }
:is(#pw, #wh, #wm, .pwx) .wh-tile--dark em { color: #8ff0b4; }
:is(#pw, #wh, #wm, .pwx) .wh-years { display: flex; flex-wrap: wrap; gap: 8px; }
:is(#pw, #wh, #wm, .pwx) .wh-years a { display: inline-flex; align-items: center; justify-content: center; min-width: 70px; height: 44px; padding: 0 16px; border: 1px solid var(--ps-line); border-radius: 14px; background: #fff; color: var(--ps-ink) !important; font-size: 15.5px; font-weight: 700; font-variant-numeric: tabular-nums; transition: border-color .2s, background .2s, color .2s, transform .2s var(--ps-ease); }
:is(#pw, #wh, #wm, .pwx) .wh-years a:hover { border-color: var(--ps-ink); transform: translateY(-2px); }
:is(#pw, #wh, #wm, .pwx) .wh-years a.is-all { border-color: transparent; background: var(--ps-ink); color: #fff !important; }
:is(#pw, #wh, #wm, .pwx) .wh-years a.is-new { border-color: var(--ps-brand); color: var(--ps-brand-strong) !important; }
:is(#pw, #wh, #wm, .pwx) .wh-list { display: grid; gap: 6px; margin-top: 14px !important; color: var(--ps-ink-2); font-size: 14.5px; }
:is(#pw, #wh, #wm, .pwx) .wh-list li { position: relative; padding-left: 18px; }
:is(#pw, #wh, #wm, .pwx) .wh-list li::before { content: ""; position: absolute; left: 3px; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--ps-brand); }
:is(#pw, #wh, #wm, .pwx) .wh-pdf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
:is(#pw, #wh, #wm, .pwx) .wh-card { padding: 26px; border: 1px solid var(--ps-line); border-radius: 24px; background: #fff; }
:is(#pw, #wh, #wm, .pwx) .wh-card--free { background: linear-gradient(180deg, #fffdf3, #fff); border-color: #f1e7c4; }
:is(#pw, #wh, #wm, .pwx) .wh-card--pro { background: linear-gradient(180deg, #f3f8ff, #fff); border-color: #cfe0ff; }
:is(#pw, #wh, #wm, .pwx) .wh-card h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 19px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.35; }
:is(#pw, #wh, #wm, .pwx) .wh-card p { color: var(--ps-ink-2); font-size: 14.5px; line-height: 1.75; }
:is(#pw, #wh, #wm, .pwx) .wh-card p b { color: var(--ps-ink); }
:is(#pw, #wh, #wm, .pwx) .wh-badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; }
:is(#pw, #wh, #wm, .pwx) .wh-badge--free { background: #dcfce7; color: #166534; }
:is(#pw, #wh, #wm, .pwx) .wh-badge--pro { background: #ffe4e6; color: #9f1239; }
:is(#pw, #wh, #wm, .pwx) .wh-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
:is(#pw, #wh, #wm, .pwx) .wh-tags span { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px; background: #fff; border: 1px solid var(--ps-line); color: var(--ps-ink-2); font-size: 12.5px; font-weight: 600; }
:is(#pw, #wh, #wm, .pwx) .wh-dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
:is(#pw, #wh, #wm, .pwx) .wh-dl a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 42px; border: 1px solid var(--ps-line); border-radius: 12px; background: #fff; color: var(--ps-ink) !important; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
:is(#pw, #wh, #wm, .pwx) .wh-dl a:hover { border-color: var(--ps-ink); }
:is(#pw, #wh, #wm, .pwx) .wh-dl a svg { width: 14px !important; height: 14px !important; color: var(--ps-ink-3); }
:is(#pw, #wh, #wm, .pwx) .wh-card details { margin-top: 12px; }
:is(#pw, #wh, #wm, .pwx) .wh-card summary { color: var(--ps-brand); font-size: 14px; font-weight: 700; cursor: pointer; }
:is(#pw, #wh, #wm, .pwx) .wh-note { margin-top: 14px !important; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px dashed #f0b4b4; color: #a42a2a !important; font-size: 13.5px !important; font-weight: 600; line-height: 1.6 !important; }
:is(#pw, #wh, #wm, .pwx) .wh-pro-list { display: grid; gap: 8px; margin-top: 14px !important; font-size: 14.5px; color: var(--ps-ink-2); }
:is(#pw, #wh, #wm, .pwx) .wh-pro-list li { position: relative; padding-left: 24px; line-height: 1.6; }
:is(#pw, #wh, #wm, .pwx) .wh-pro-list li::before { content: "✓"; position: absolute; left: 2px; color: #1d4ed8; font-weight: 800; }
:is(#pw, #wh, #wm, .pwx) .wh-pro-list b { color: var(--ps-ink); }
:is(#pw, #wh, #wm, .pwx) .wh-cta { display: flex; align-items: center; justify-content: center; height: 50px; margin-top: 18px; border-radius: 14px; background: linear-gradient(135deg, #2563eb, #1d4ed8); color: #fff !important; font-size: 15.5px; font-weight: 800; box-shadow: 0 14px 28px -14px rgba(37, 99, 235, .7); transition: transform .2s var(--ps-ease); }
:is(#pw, #wh, #wm, .pwx) .wh-cta:hover { transform: translateY(-2px); }
:is(#pw, #wh, #wm, .pwx) .wh-small { margin-top: 12px !important; color: var(--ps-ink-3) !important; font-size: 13px !important; text-align: center; }
:is(#pw, #wh, #wm, .pwx) .wh-fold { margin-top: 14px; border: 1px solid var(--ps-line); border-radius: 18px; background: #fff; }
:is(#pw, #wh, #wm, .pwx) .wh-fold > summary { display: flex; align-items: center; gap: 10px; padding: 16px 20px; font-size: 15.5px; font-weight: 700; cursor: pointer; list-style: none; }
:is(#pw, #wh, #wm, .pwx) .wh-fold > summary::-webkit-details-marker { display: none; }
:is(#pw, #wh, #wm, .pwx) .wh-fold > summary::after { content: "+"; margin-left: auto; color: var(--ps-ink-3); font-size: 20px; font-weight: 500; }
:is(#pw, #wh, #wm, .pwx) .wh-fold[open] > summary::after { content: "−"; }
:is(#pw, #wh, #wm, .pwx) .wh-fold__body { padding: 0 20px 20px; font-size: 15px; line-height: 1.8; }
:is(#pw, #wh, #wm, .pwx) .wh-soon { display: flex; flex-wrap: wrap; gap: 8px; }
:is(#pw, #wh, #wm, .pwx) .wh-soon span { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border: 1px dashed var(--ps-line-strong); border-radius: 999px; color: var(--ps-ink-3); font-size: 13.5px; font-weight: 600; }

:is(#pw, #wh, #wm, .pwx) .wh-sticky { display: none; }

/* ───────── 단어장 (/wman/) ───────── */
:is(#pw, #wh, #wm, .pwx) .wm-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 24px; }
:is(#pw, #wh, #wm, .pwx) .wm-head h1 { margin: 0; font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.15; }
:is(#pw, #wh, #wm, .pwx) .wm-head p { margin-top: 8px !important; color: var(--ps-ink-2); font-size: 15.5px; }
:is(#pw, #wh, #wm, .pwx) .wm-head__acts { display: flex; gap: 8px; margin-left: auto; }
:is(#pw, #wh, #wm, .pwx) .wm-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
:is(#pw, #wh, #wm, .pwx) .wm-stat { flex: 1 1 130px; padding: 16px 18px; border: 1px solid var(--ps-line); border-radius: 18px; background: #fff; }
:is(#pw, #wh, #wm, .pwx) .wm-stat span { display: block; color: var(--ps-ink-3); font-size: 12.5px; font-weight: 600; }
:is(#pw, #wh, #wm, .pwx) .wm-stat b { display: block; margin-top: 4px; font-size: 24px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
:is(#pw, #wh, #wm, .pwx) .wm-stat--go { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-color: transparent; background: var(--ps-night); color: #fff !important; transition: transform .25s var(--ps-ease); }
:is(#pw, #wh, #wm, .pwx) .wm-stat--go:hover { transform: translateY(-2px); }
:is(#pw, #wh, #wm, .pwx) .wm-stat--go span { color: rgba(255, 255, 255, .7); }
:is(#pw, #wh, #wm, .pwx) .wm-stat--go b { font-size: 19px; }
:is(#pw, #wh, #wm, .pwx) .wm-stat--go svg { width: 26px !important; height: 26px !important; color: #8ff0b4; }

:is(#pw, #wh, #wm, .pwx) .wm-add { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) auto; gap: 8px; margin-top: 22px; padding: 10px; border: 1px solid var(--ps-line); border-radius: 20px; background: var(--ps-bg-soft); }
:is(#pw, #wh, #wm, .pwx) .wm-add input { min-width: 0; height: 48px; padding: 0 16px; border: 1px solid transparent; border-radius: 13px; outline: 0; background: #fff; color: var(--ps-ink); font: inherit; font-size: 16px; font-weight: 600; transition: border-color .2s, box-shadow .2s; }
:is(#pw, #wh, #wm, .pwx) .wm-add input:focus { border-color: var(--ps-brand); box-shadow: 0 0 0 4px rgba(14, 138, 67, .12); }
:is(#pw, #wh, #wm, .pwx) .wm-add input::placeholder { color: var(--ps-ink-3); font-weight: 500; }
:is(#pw, #wh, #wm, .pwx) .wm-add button { height: 48px; padding: 0 22px; border: 0; border-radius: 13px; background: var(--ps-brand); color: #fff !important; font-size: 15px; font-weight: 700; white-space: nowrap; }
:is(#pw, #wh, #wm, .pwx) .wm-add button:hover { background: var(--ps-brand-strong); }
:is(#pw, #wh, #wm, .pwx) .wm-add button[disabled] { opacity: .6; }

:is(#pw, #wh, #wm, .pwx) .wm-tools { position: sticky; top: calc(var(--ps-header-h) + 10px); z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; padding: 10px 12px; border: 1px solid var(--ps-line); border-radius: 18px; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(12px); }
:is(#pw, #wh, #wm, .pwx) .wm-check { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 0 6px; color: var(--ps-ink-2); font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
:is(#pw, #wh, #wm, .pwx) .wm-check input, :is(#pw, #wh, #wm, .pwx) .wm-row input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: var(--ps-brand); cursor: pointer; }
:is(#pw, #wh, #wm, .pwx) .wm-tools .pw-search { flex: 1 1 180px; height: 42px; }
:is(#pw, #wh, #wm, .pwx) .wm-tools .pw-btn[disabled] { opacity: .4; cursor: default; }
:is(#pw, #wh, #wm, .pwx) .wm-tools .pw-btn--danger:not([disabled]) { border-color: #f3c2c4; color: var(--ps-red) !important; }
:is(#pw, #wh, #wm, .pwx) .wm-tools .pw-btn--danger:not([disabled]):hover { border-color: var(--ps-red); background: #fdecec; }

:is(#pw, #wh, #wm, .pwx) .wm-list { margin-top: 10px !important; }
:is(#pw, #wh, #wm, .pwx) .wm-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; padding: 14px 8px; border-bottom: 1px solid var(--ps-line); transition: background .15s; }
:is(#pw, #wh, #wm, .pwx) .wm-row:hover { background: var(--ps-bg-soft); }
:is(#pw, #wh, #wm, .pwx) .wm-row.is-hidden { display: none; }
:is(#pw, #wh, #wm, .pwx) .wm-row__main { min-width: 0; }
:is(#pw, #wh, #wm, .pwx) .wm-row__top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
:is(#pw, #wh, #wm, .pwx) .wm-word { padding: 0; border: 0; background: none; color: var(--ps-ink) !important; font-size: 19px; font-weight: 700; letter-spacing: -0.01em; text-align: left; overflow-wrap: anywhere; }
:is(#pw, #wh, #wm, .pwx) .wm-word:hover { color: var(--ps-brand) !important; }
:is(#pw, #wh, #wm, .pwx) .wm-sat { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; background: #fff3d6; color: #8a4b00; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
:is(#pw, #wh, #wm, .pwx) .wm-box { display: inline-flex; gap: 3px; }
:is(#pw, #wh, #wm, .pwx) .wm-box i { width: 7px; height: 7px; border-radius: 50%; background: var(--ps-line-strong); }
:is(#pw, #wh, #wm, .pwx) .wm-box i.is-on { background: var(--ps-brand); }
:is(#pw, #wh, #wm, .pwx) .wm-mean { margin-top: 3px !important; color: var(--ps-ink-2); font-size: 14.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
:is(#pw, #wh, #wm, .pwx) .wm-mean.is-empty { color: var(--ps-ink-3); font-style: italic; }
:is(#pw, #wh, #wm, .pwx) .wm-meta { margin-top: 3px !important; color: var(--ps-ink-3); font-size: 12px; }
:is(#pw, #wh, #wm, .pwx) .wm-row__acts { display: flex; gap: 6px; }
:is(#pw, #wh, #wm, .pwx) .wm-empty { padding: 56px 20px; border: 1px dashed var(--ps-line-strong); border-radius: 22px; margin-top: 22px; text-align: center; color: var(--ps-ink-2); }
:is(#pw, #wh, #wm, .pwx) .wm-empty strong { display: block; margin-bottom: 8px; color: var(--ps-ink); font-size: 19px; font-weight: 800; }
:is(#pw, #wh, #wm, .pwx) .wm-empty .pw-mybtn { margin-top: 18px; }
:is(#pw, #wh, #wm, .pwx) .wm-pager { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
:is(#pw, #wh, #wm, .pwx) .wm-pager a, :is(#pw, #wh, #wm, .pwx) .wm-pager span { display: inline-flex; align-items: center; height: 42px; padding: 0 18px; border: 1px solid var(--ps-line-strong); border-radius: 999px; background: #fff; color: var(--ps-ink) !important; font-size: 14.5px; font-weight: 700; }
:is(#pw, #wh, #wm, .pwx) .wm-pager span { opacity: .35; }
:is(#pw, #wh, #wm, .pwx) .wm-pager a:hover { border-color: var(--ps-ink); }
:is(#pw, #wh, #wm, .pwx) .wm-login { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 60px 20px; border-radius: 28px; background: var(--ps-bg-soft); text-align: center; }
:is(#pw, #wh, #wm, .pwx) .wm-login strong { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
:is(#pw, #wh, #wm, .pwx) .wm-login p { max-width: 420px; color: var(--ps-ink-2); font-size: 15.5px; line-height: 1.7; }

/* 단어 고치기 창 */
:is(#pw, #wh, #wm, .pwx) .wm-modal { position: fixed; inset: 0; z-index: 260; display: flex; align-items: center; justify-content: center; padding: 20px; visibility: hidden; }
:is(#pw, #wh, #wm, .pwx) .wm-modal.is-on { visibility: visible; }
:is(#pw, #wh, #wm, .pwx) .wm-modal__dim { position: absolute; inset: 0; background: rgba(11, 19, 36, .45); opacity: 0; transition: opacity .25s; }
:is(#pw, #wh, #wm, .pwx) .wm-modal.is-on .wm-modal__dim { opacity: 1; }
:is(#pw, #wh, #wm, .pwx) .wm-modal__box { position: relative; width: min(520px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; padding: 28px; border-radius: 26px; background: #fff; box-shadow: var(--ps-shadow-lg); transform: translateY(16px) scale(.98); opacity: 0; transition: transform .3s var(--ps-ease), opacity .25s; }
:is(#pw, #wh, #wm, .pwx) .wm-modal.is-on .wm-modal__box { transform: none; opacity: 1; }
:is(#pw, #wh, #wm, .pwx) .wm-modal h2 { margin: 0 0 18px; font-size: 21px; font-weight: 800; letter-spacing: -0.03em; }
:is(#pw, #wh, #wm, .pwx) .wm-field { display: block; margin: 0 0 14px; }
:is(#pw, #wh, #wm, .pwx) .wm-field > span { display: block; margin-bottom: 6px; color: var(--ps-ink-2); font-size: 13px; font-weight: 700; }
:is(#pw, #wh, #wm, .pwx) .wm-field input, :is(#pw, #wh, #wm, .pwx) .wm-field textarea { display: block; width: 100%; padding: 13px 16px; border: 1px solid var(--ps-line-strong); border-radius: 14px; outline: 0; background: #fff; color: var(--ps-ink); font: inherit; font-size: 16px; line-height: 1.6; transition: border-color .2s, box-shadow .2s; }
:is(#pw, #wh, #wm, .pwx) .wm-field input { font-weight: 700; }
:is(#pw, #wh, #wm, .pwx) .wm-field textarea { min-height: 150px; resize: vertical; }
:is(#pw, #wh, #wm, .pwx) .wm-field input:focus, :is(#pw, #wh, #wm, .pwx) .wm-field textarea:focus { border-color: var(--ps-brand); box-shadow: 0 0 0 4px rgba(14, 138, 67, .12); }
:is(#pw, #wh, #wm, .pwx) .wm-field small { display: block; margin-top: 6px; color: var(--ps-ink-3); font-size: 12.5px; text-align: right; }
:is(#pw, #wh, #wm, .pwx) .wm-field small.is-over { color: var(--ps-red); font-weight: 700; }
:is(#pw, #wh, #wm, .pwx) .wm-modal__acts { display: flex; gap: 8px; margin-top: 20px; }
:is(#pw, #wh, #wm, .pwx) .wm-modal__acts .pwc-btn { flex: 1; height: 48px; font-size: 15px; }
:is(#pw, #wh, #wm, .pwx) .wm-modal__acts .pwc-btn--ghost { flex: 0 0 auto; }
:is(#pw, #wh, #wm, .pwx) .wm-err { margin-top: 10px !important; color: var(--ps-red); font-size: 14px; font-weight: 600; }

/* ───────── 좁은 화면 ───────── */
@media (max-width: 1100px) {
    :is(#pw, #wh, #wm, .pwx) .pw-row { grid-template-columns: 40px minmax(0, 1fr) auto 120px auto; }
    :is(#pw, #wh, #wm, .pwx) .wh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
    :is(#pw, #wh, #wm, .pwx) .pw-hero { padding: 24px 20px; border-radius: 24px; }
    :is(#pw, #wh, #wm, .pwx) .pw-stats > div { flex: 1; min-width: 0; padding: 12px; }
    :is(#pw, #wh, #wm, .pwx) .pw-stats dd { font-size: 17px; }
    :is(#pw, #wh, #wm, .pwx) .pw-bar { flex-wrap: wrap; top: calc(var(--ps-header-h) + 6px); }
    :is(#pw, #wh, #wm, .pwx) .pw-search { flex: 1 1 100%; }
    :is(#pw, #wh, #wm, .pwx) .pw-seg { flex: 1 1 100%; }
    :is(#pw, #wh, #wm, .pwx) .pw-seg button { flex: 1; padding: 0 6px; }
    :is(#pw, #wh, #wm, .pwx) .pw-mybtn { height: 46px; padding: 0 13px; }
    :is(#pw, #wh, #wm, .pwx) .pw-mybtn span { display: none; }
    :is(#pw, #wh, #wm, .pwx) .pw-alpha { flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; padding: 0 0 4px; scrollbar-width: none; }
    :is(#pw, #wh, #wm, .pwx) .pw-alpha::-webkit-scrollbar { display: none; }
    :is(#pw, #wh, #wm, .pwx) .pw-alpha button { flex: none; }
    :is(#pw, #wh, #wm, .pwx) .pw-row { grid-template-columns: 30px minmax(0, 1fr) auto; grid-template-areas: "rank word freq" ". acts acts"; gap: 6px 10px; padding: 12px 2px; }
    :is(#pw, #wh, #wm, .pwx) .pw-rank { grid-area: rank; text-align: left; }
    :is(#pw, #wh, #wm, .pwx) .pw-word { grid-area: word; }
    :is(#pw, #wh, #wm, .pwx) .pw-row > .pw-lv { display: none; }
    :is(#pw, #wh, #wm, .pwx) .pw-freq { grid-area: freq; }
    :is(#pw, #wh, #wm, .pwx) .pw-freq i { display: none; }
    :is(#pw, #wh, #wm, .pwx) .pw-acts { grid-area: acts; }
    :is(#pw, #wh, #wm, .pwx) .pw-listhead__sort { display: none; }
    .pwx-panel { top: auto; left: 0; right: 0; width: 100%; height: 92vh; height: 92dvh; border-radius: 26px 26px 0 0; transform: translateY(104%); }
    .pwc-head { padding: 26px 20px 18px; }
    .pwc-pane { padding: 18px 20px 44px; }
    .pwc-tabs { padding: 0 12px; }
    .pwc-sent__acts { margin-left: 0; width: 100%; }
    :is(#pw, #wh, #wm, .pwx) .wh-grid, :is(#pw, #wh, #wm, .pwx) .wh-grid--2, :is(#pw, #wh, #wm, .pwx) .wh-pdf { grid-template-columns: minmax(0, 1fr); }
    :is(#pw, #wh, #wm, .pwx) .wh-tile { min-height: 0; }
    :is(#pw, #wh, #wm, .pwx) .wh-sticky { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--ps-line); background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); }
    :is(#pw, #wh, #wm, .pwx) .wh-sticky .wh-cta { margin-top: 0; height: 48px; }
    #wh { padding-bottom: 60px; }
    :is(#pw, #wh, #wm, .pwx) .wm-add { grid-template-columns: minmax(0, 1fr); }
    :is(#pw, #wh, #wm, .pwx) .wm-head__acts { margin-left: 0; width: 100%; }
    :is(#pw, #wh, #wm, .pwx) .wm-head__acts .pw-mybtn { flex: 1; justify-content: center; }
    :is(#pw, #wh, #wm, .pwx) .wm-head__acts .pw-mybtn span { display: inline; }
    :is(#pw, #wh, #wm, .pwx) .wm-row { grid-template-columns: 26px minmax(0, 1fr); }
    :is(#pw, #wh, #wm, .pwx) .wm-row__acts { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
    .pwx-panel, .pwx-dim, .wm-modal__box, .pw-toast { transition: none; }
}
