/* The book wizard (dist/book-wizard.js): ① 자료 넣기 → ② 내용 확인 → ③ 회차 정하기 → ④ 활동 고르기 → ⑤ 완성.
   One column on phones (16px gutters, 44px tap targets, nothing scrolls sideways); wider screens put the
   word and sentence lists side by side and the Day cards in two columns. */
body[data-editing="true"] .page-title,body[data-editing="true"] .book-tabs,body[data-editing="true"] .speech-guide{display:none!important}
#studyPanel.book-wizard-host{padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;overflow:visible}
.book-wizard{--bw-ink:var(--ink,var(--n-3e3a32,#3e3a32));--bw-muted:var(--muted,var(--n-716d63,#716d63));--bw-line:var(--line,var(--n-e7dfd2,#e7dfd2));--bw-paper:var(--paper,var(--n-fffdf9,#fffdf9));--bw-cream:var(--cream,var(--n-fffaf2,#fffaf2));--bw-accent:var(--terracotta,var(--n-a94c31,#a94c31));--bw-soft:var(--coral-soft,var(--n-fff0e7,#fff0e7));--bw-sage:var(--sage-dark,var(--n-41664c,#41664c));--bw-sage-soft:var(--sage-soft,var(--n-edf4ec,#edf4ec));--bw-warn:var(--i-9a3d22,#9a3d22);--bw-foot:132px;
 max-width:960px;margin:0 auto;padding:0 0 0;color:var(--bw-ink);box-sizing:border-box;line-height:1.55}
.book-wizard *,.book-wizard *::before,.book-wizard *::after{box-sizing:border-box}
.bw-sr{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.book-wizard button{min-height:44px;font:inherit}
.book-wizard .primary,.book-wizard .secondary{margin:0}
.book-wizard [aria-disabled="true"]{opacity:.5;cursor:not-allowed}
.book-wizard .text-button{background:none;border:0;padding:8px 6px;color:var(--bw-accent);font-weight:700;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.book-wizard .warning{color:var(--bw-warn)}
.book-wizard input,.book-wizard textarea,.book-wizard select{font:inherit;font-size:16px;color:var(--bw-ink);background:var(--n-ffffff,#fff);border:1px solid var(--n-d9cfbf,#d9cfbf);border-radius:10px;padding:10px 12px;min-height:44px;width:100%;scroll-margin-bottom:calc(var(--bw-foot) + 16px);scroll-margin-top:16px}
.book-wizard input:focus-visible,.book-wizard textarea:focus-visible,.book-wizard select:focus-visible{outline:3px solid var(--focus,var(--n-93452e,#93452e));outline-offset:1px}
.book-wizard input[type="checkbox"]{width:22px;height:22px;min-height:0;padding:0;margin:0;accent-color:var(--bw-sage);flex:none}
/* Header and step bar */
.bw-top{background:var(--bw-paper);border:1px solid var(--bw-line);border-radius:18px;padding:16px 18px 10px;margin-bottom:14px}
.bw-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.bw-title{margin:0;font-size:22px;line-height:1.35;overflow-wrap:anywhere}
.bw-close{flex:none}
.bw-steps{margin-top:12px}
.bw-steps ol{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;list-style:none;margin:0;padding:0}
.bw-step{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;padding:6px 6px;border:1px solid var(--bw-line);border-radius:12px;background:var(--n-ffffff,#fff);color:var(--bw-muted);font-size:14px;cursor:pointer;text-align:center;line-height:1.3}
.bw-step-mark{font-size:18px;line-height:1}
.bw-step.is-done{color:var(--bw-sage);border-color:var(--i-c7dacb,#c7dacb);background:var(--bw-sage-soft)}
.bw-step.is-current{background:var(--bw-accent);border-color:var(--bw-accent);color:var(--n-ffffff,#fff);font-weight:700}
.bw-step[aria-disabled="true"]{opacity:.45}
.bw-step-now{display:none;margin:8px 0 0;font-size:14px;font-weight:700;color:var(--bw-accent)}
/* Body */
.bw-body{background:var(--bw-paper);border:1px solid var(--bw-line);border-radius:18px;padding:20px 18px 24px;min-height:260px}
.bw-h2{margin:0 0 6px;font-size:21px;line-height:1.4}
.bw-h2:focus{outline:none}
.bw-h2:focus-visible{outline:3px solid var(--focus,var(--n-93452e,#93452e));outline-offset:3px;border-radius:4px}
.bw-h3{margin:18px 0 8px;font-size:17px}
.bw-h3 small{font-size:13px;font-weight:400;color:var(--bw-muted);margin-left:6px}
.bw-h4{margin:12px 0 4px;font-size:14px;color:var(--bw-muted)}
.bw-lead{margin:0 0 14px;color:var(--bw-muted);font-size:15px}
.bw-help,.bw-hint{margin:6px 0;color:var(--bw-muted);font-size:14px}
.bw-note{margin:10px 0;padding:10px 12px;border-radius:12px;background:var(--yellow-soft,var(--n-fff5d9,#fff5d9));font-size:14px}
.bw-note.warning{background:var(--i-fdebe3,#fdebe3)}
.bw-alert{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:10px 0;padding:10px 12px;border-radius:12px;background:var(--i-fdebe3,#fdebe3);color:var(--bw-warn);font-weight:700;font-size:15px}
.bw-error{display:block;color:var(--bw-warn);font-size:14px;font-weight:700;min-height:0}
.bw-error:empty{display:none}
.bw-label{display:block;font-weight:700;font-size:15px;margin-bottom:6px}
.bw-small{min-height:44px;padding:8px 12px;font-size:14px}
.bw-mini{min-width:44px;min-height:44px;padding:0;border:1px solid var(--bw-line);border-radius:10px;background:var(--n-ffffff,#fff);color:var(--bw-muted);font-size:18px;line-height:1;cursor:pointer}
.bw-loading{padding:40px 0;text-align:center;color:var(--bw-muted)}
.bw-offer{margin:0 0 16px;padding:14px;border:1px solid var(--n-e9cdb5,#e9cdb5);border-radius:14px;background:var(--bw-soft)}
.bw-offer p{margin:0 0 10px;overflow-wrap:anywhere}
.bw-offer-buttons{display:flex;flex-wrap:wrap;gap:8px}
/* ① 자료 넣기 */
.bw-source{display:block;padding:0;border:0;background:none;text-align:left}
.bw-source.document-drop-zone{border-radius:16px}
.bw-source.is-dragging{outline:3px dashed var(--bw-accent);outline-offset:6px}
.bw-choices{display:grid;grid-template-columns:1fr;gap:10px}
.bw-choice{display:flex;align-items:center;gap:14px;width:100%;padding:14px 16px;border:1px solid var(--n-e3d6c4,#e3d6c4);border-radius:16px;background:var(--n-ffffff,#fff);color:var(--bw-ink);text-align:left;cursor:pointer;min-height:72px}
.bw-choice:hover{border-color:var(--bw-accent);background:var(--n-fffaf5,#fffaf5)}
.bw-choice svg{flex:none;width:34px;height:34px;padding:6px;border-radius:12px;background:var(--bw-soft);fill:none;stroke:var(--bw-accent);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.bw-choice-text{display:flex;flex-direction:column;gap:2px;min-width:0}
.bw-choice-text strong{font-size:17px}
.bw-choice-text span{font-size:14px;color:var(--bw-muted)}
.bw-choice[aria-expanded="true"]{border-color:var(--bw-accent);box-shadow:inset 0 0 0 1px var(--bw-accent)}
.bw-paste{display:grid;gap:8px;margin-top:12px}
.bw-paste-text{min-height:140px;resize:vertical}
.bw-paste .primary{justify-self:start}
.bw-drop-note{margin:10px 0 0;font-size:13px;color:var(--bw-muted)}
/* With files listed, the four choices fold into one small 더 넣기 row above the list. */
.bw-more-label{margin:0 0 6px;font-size:14px;font-weight:700;color:var(--bw-muted)}
.bw-source.is-compact .bw-choices{grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:6px}
.bw-source.is-compact .bw-choice{min-height:44px;padding:6px 10px;gap:8px;border-radius:12px}
.bw-source.is-compact .bw-choice svg{width:26px;height:26px;padding:4px;border-radius:8px}
.bw-source.is-compact .bw-choice-text strong{font-size:15px}
.bw-source.is-compact .bw-choice-text span{display:none}
.bw-files{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:8px}
.bw-file{display:grid;grid-template-columns:48px minmax(0,1fr);gap:6px 12px;align-items:center;padding:10px;border:1px solid var(--bw-line);border-radius:14px;background:var(--n-ffffff,#fff)}
.bw-thumb{width:48px;height:48px;border-radius:10px;object-fit:cover;background:var(--bw-cream);display:grid;place-items:center;font-size:12px;color:var(--bw-muted);border:1px solid var(--bw-line)}
.bw-file-text{min-width:0;font-size:14px;overflow-wrap:anywhere}
.bw-file-text strong{font-size:15px}
.bw-file-mark{margin-left:6px;color:var(--bw-sage);font-weight:700}
.bw-file-warn{display:block;margin-top:2px;font-size:13px;color:var(--bw-muted)}
.bw-file.is-failed .bw-file-text>span,.bw-file.is-overflow .bw-file-text>span,.bw-file.is-lost .bw-file-text>span{color:var(--bw-warn)}
.bw-file-tools{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}
.bw-spinner{display:inline-block;width:14px;height:14px;margin-left:6px;border:2px solid var(--n-e3d6c4,#e3d6c4);border-top-color:var(--bw-accent);border-radius:50%;vertical-align:-2px;animation:bw-spin .8s linear infinite}
@keyframes bw-spin{to{transform:rotate(360deg)}}
/* ② 내용 확인 */
.bw-content-tabs{display:flex;gap:6px;margin:12px 0 4px}
.bw-content-tabs [role="tab"]{flex:1;padding:8px 10px;border:1px solid var(--bw-line);border-radius:12px;background:var(--n-ffffff,#fff);color:var(--bw-muted);font-weight:700;cursor:pointer}
.bw-content-tabs [role="tab"][aria-selected="true"]{background:var(--bw-accent);border-color:var(--bw-accent);color:var(--n-ffffff,#fff)}
.bw-content[data-wizard-content="words"] [data-pane="sentences"],.bw-content[data-wizard-content="sentences"] [data-pane="words"]{display:none}
.bw-pane{min-width:0}
/* ② 내용 확인 as sheets (2026-11-04, owner: "엑셀처럼 각 행을 붙여서 많은 줄을 볼 수 있게 … 엑셀 표 위아래 너비보다는 0.5배 더
   크기"): one bordered table per list whose rows touch (a shared 1px line, no gaps or cards), each 30px high (1.5 × a
   spreadsheet's 20px row). Cells are borderless inputs typed in place (16px on phones, so iOS does not zoom); a sentence
   wraps only when it does not fit. Columns: # · 영어 · 뜻 · 회차 · ✕ · ⠿ (on phones a sentence's 영어 sits over its 뜻). */
.bw-pane-head{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:12px;row-gap:0;margin:18px 0 8px}
.bw-pane-head .bw-h3{margin:0}
.bw-paste-hint{margin:0;font-size:13px;line-height:1.5;color:var(--bw-muted)}
.bw-sheet{margin:0 0 10px;border:1px solid var(--n-d9cfbf,#d9cfbf);border-radius:8px;background:var(--n-ffffff,#fff);overflow:hidden}
/* Review 2026-11-04: a word's 뜻 is longer than its 영어 (.8 : 1.2; a sentence's halves stay equal), a cut-off cell ends in
   … and shows its whole text on hover (title), and a 4px gap keeps ✕ off the ⠿ (② also has 되돌리기 for a ✕). */
.bw-sheet-head,.bw-sheet .bw-row{display:grid;grid-template-columns:34px minmax(0,.8fr) minmax(0,1.2fr) 56px 32px 4px 36px;grid-template-areas:"num en ko tag x . grip";align-items:stretch}
.bw-sheet.is-sentences .bw-sheet-head,.bw-sheet.is-sentences .bw-row{grid-template-columns:34px minmax(0,1fr) minmax(0,1fr) 56px 32px 4px 36px}
.bw-sheet-head{min-height:26px;background:var(--bw-cream);border-bottom:1px solid var(--n-d9cfbf,#d9cfbf);font-size:12px;font-weight:700;color:var(--bw-muted)}
.bw-sheet-head>span{display:flex;align-items:center;min-width:0;padding:0 8px;border-right:1px solid var(--n-f1eadf,#f1eadf)}
.bw-sheet-head>span:first-child{justify-content:center;padding:0}
.bw-sheet-head>span:last-child{grid-column:x-start / grip-end;border-right:0}
.bw-sheet-stack{display:none}
.book-wizard .bw-sheet .bw-rows{display:block;list-style:none;margin:0;padding:0}
.bw-sheet .bw-row{min-height:30px;margin:0;padding:0;gap:0;border-bottom:1px solid var(--n-f1eadf,#f1eadf);background:var(--n-ffffff,#fff)}
.bw-sheet .bw-row:last-child{border-bottom:0}
.bw-num{grid-area:num;display:flex;align-items:center;justify-content:center;font-size:12px;color:var(--n-a69a88,#a69a88);background:var(--bw-cream);border-right:1px solid var(--n-f1eadf,#f1eadf)}
.bw-row .bw-en{grid-area:en}
.bw-row .bw-ko{grid-area:ko}
.book-wizard .bw-sheet input,.book-wizard .bw-sheet textarea{display:block;width:100%;min-height:30px;height:30px;margin:0;padding:4px 8px;border:0;border-right:1px solid var(--n-f1eadf,#f1eadf);border-radius:0;background:transparent;font-size:14px;line-height:22px;text-overflow:ellipsis;user-select:text;-webkit-user-select:text}
.book-wizard .bw-sheet textarea{height:auto;resize:none;overflow:hidden}
.book-wizard .bw-sheet input:focus-visible,.book-wizard .bw-sheet textarea:focus-visible{outline:2px solid var(--focus,var(--n-93452e,#93452e));outline-offset:-2px;background:var(--bw-cream)}
.bw-tag{grid-area:tag;display:block;min-width:0;padding:0 6px;border-right:1px solid var(--n-f1eadf,#f1eadf);font-size:12px;line-height:30px;color:var(--bw-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.book-wizard .bw-x{grid-area:x;width:32px;min-height:30px;padding:0;border:0;border-radius:0;background:transparent;color:var(--n-a99781,#a99781);font-size:18px;line-height:1;cursor:pointer}
.bw-x:hover{color:var(--bw-warn);background:var(--n-fdebe3,#fdebe3)}
.book-wizard .bw-sheet .bw-grip{grid-area:grip;width:36px;min-height:30px;border-radius:0}
/* Every wizard ⠿ in the shared grip size (.book-wizard button's font:inherit would make it 16px). */
.book-wizard .press-reorder-grip{font-size:22px;line-height:1}
.bw-missing{margin:6px 0 12px;padding:12px;border-radius:12px;background:var(--yellow-soft,var(--i-fff5d9,#fff5d9))}
.bw-missing p{margin:0 0 8px;font-size:14px}
.bw-add{width:100%}
/* ③ 회차 정하기 */
.bw-count{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:10px 0 6px}
.bw-round{width:48px;min-height:48px;padding:0;font-size:22px!important;line-height:1}
.bw-count-field{display:flex;align-items:center;gap:6px;font-weight:700}
.book-wizard .bw-count-field input{width:84px;text-align:center;font-size:20px;font-weight:700}
.bw-even{margin-left:auto}
.bw-days{display:grid;grid-template-columns:1fr;gap:10px;margin-top:12px}
.bw-day{padding:12px;border:1px solid var(--bw-line);border-radius:14px;background:var(--n-ffffff,#fff);min-width:0}
.bw-day-head{display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px 12px}
.bw-day-name{display:flex;flex-direction:column;gap:2px;font-size:13px;color:var(--bw-muted);flex:1;min-width:150px}
.bw-day-counts{font-size:14px;color:var(--bw-muted);padding-bottom:10px}
.bw-day-preview{margin:10px 0 0;padding-left:18px;font-size:15px}
.bw-day-preview li{overflow-wrap:anywhere}
.bw-day-words{margin:6px 0 0;font-size:14px;color:var(--bw-muted);overflow-wrap:anywhere}
.bw-day-words>span:first-child{font-weight:700;margin-right:4px}
.bw-empty-day{margin:10px 0 0;padding:8px 10px;border-radius:10px;background:var(--bw-cream);font-size:14px;color:var(--bw-muted)}
.bw-expand{margin-top:4px}
.bw-items{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.bw-item{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;padding:6px 0;border-bottom:1px solid var(--n-f1eadf,#f1eadf);background:var(--n-ffffff,#fff)}
/* ③ an opened Day's row ends with its ⠿ after the 회차 select (no ↑ ↓ since 2026-11-04). */
.book-wizard .bw-item-grip{width:40px;min-height:44px}
.bw-item-text{flex:1 1 140px;min-width:0;font-size:15px;overflow-wrap:anywhere}
.bw-item-text small{color:var(--bw-muted);font-size:13px}
/* The 회차 select and the ⠿ end the row, also when it wraps on a phone (review 2026-11-04). */
.bw-item-tools{display:flex;gap:6px;align-items:center;margin-left:auto}
.book-wizard .bw-item-day{width:auto;min-width:96px;padding:8px}
/* ④ 활동 고르기 */
.bw-chips{display:flex;flex-wrap:wrap;gap:8px;max-height:40vh;overflow:auto;padding:2px}
.bw-chip{padding:8px 14px;border:1px solid var(--n-dccfbd,#dccfbd);border-radius:999px;background:var(--n-ffffff,#fff);color:var(--bw-ink);cursor:pointer;font-weight:700}
.bw-chip small{font-weight:400;color:var(--bw-muted);margin-left:2px}
.bw-chip[aria-pressed="true"]{background:var(--bw-accent);border-color:var(--bw-accent);color:var(--n-ffffff,#fff)}
.bw-chip[aria-pressed="true"] small{color:var(--n-fde7dc,#fde7dc)}
.bw-chip.is-full:not([aria-pressed="true"]) small{color:var(--bw-warn);font-weight:700}
.bw-chosen{margin:8px 0 0;font-size:14px;color:var(--bw-muted)}
.bw-now{margin-top:12px;padding:12px;border-radius:14px;background:var(--bw-cream);border:1px solid var(--bw-line)}
.bw-now .bw-h3{margin-top:0}
/* 지금 활동: numbered places (2026-11-04) — a place keeps its number when another is taken out, an empty place waits
   for the next card; each activity ends with ✕ and its ⠿. */
.bw-now-list{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.bw-now-list li{display:flex;align-items:center;gap:10px;min-height:52px;padding:4px 6px 4px 10px;border-radius:12px;background:var(--n-ffffff,#fff)}
.bw-now-number{flex:none;width:16px;font-weight:700;color:var(--bw-accent)}
.bw-now-list li.is-empty{border:1px dashed var(--n-dccfbd,#dccfbd);background:transparent}
/* A place is one line, filled or empty, so ✕ never moves the places below (review 2026-11-04). */
.bw-now-empty{flex:1;min-width:0;font-size:14px;color:var(--bw-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.book-wizard .bw-now-remove{font-size:16px}
.bw-now-help{margin:8px 0 0}
.bw-now-icon svg,.bw-card-icon svg{width:28px;height:28px;fill:none;stroke:var(--bw-accent);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.bw-now-name{flex:1;min-width:0;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bw-now-tools{display:flex;gap:6px}
.bw-now-days{list-style:none;margin:0;padding:0;display:grid;gap:6px;font-size:14px}
.bw-now-days li{padding:8px 10px;background:var(--n-ffffff,#fff);border-radius:10px;overflow-wrap:anywhere}
.bw-now-kinds{color:var(--bw-muted)}
.bw-badge{display:inline-block;padding:1px 8px;border-radius:999px;background:var(--bw-soft);color:var(--bw-accent);font-size:12px;font-weight:700}
.bw-badge.is-soft{background:var(--n-efece6,#efece6);color:var(--bw-muted)}
.bw-list-tools{display:flex;flex-wrap:wrap;gap:4px 14px;margin-top:6px}
.bw-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));grid-auto-flow:row dense;gap:10px}
.bw-card{display:flex;flex-direction:column;border:1px solid var(--bw-line);border-radius:16px;background:var(--n-ffffff,#fff);overflow:hidden;min-width:0}
.bw-card-toggle{display:grid;grid-template-columns:40px minmax(0,1fr);grid-template-areas:"icon text" "tag tag";gap:4px 10px;align-items:center;width:100%;padding:12px;border:0;border-bottom:1px solid var(--n-f1eadf,#f1eadf);background:none;color:var(--bw-ink);text-align:left;cursor:pointer;min-height:76px}
.bw-card-icon{grid-area:icon;display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:var(--bw-soft)}
.bw-card-text{grid-area:text;display:flex;flex-direction:column;min-width:0}
.bw-card-text strong{font-size:16px}
.bw-card-text span{font-size:13px;color:var(--bw-muted)}
.bw-card-tag{grid-area:tag;justify-self:start;padding:2px 10px;border-radius:999px;background:var(--bw-sage-soft);color:var(--bw-sage);font-size:13px;font-weight:700}
.bw-card-tag.is-some{background:var(--n-fff5d9,#fff5d9);color:var(--n-7a5a12,#7a5a12)}
.bw-card.is-all{border-color:var(--n-9fbfa7,#9fbfa7);box-shadow:inset 0 0 0 1px var(--n-9fbfa7,#9fbfa7)}
.bw-card.is-all .bw-card-toggle{background:var(--bw-sage-soft)}
.bw-card.is-some{border-color:var(--n-e6cf8f,#e6cf8f)}
.bw-card-gap{margin:6px 12px 0;font-size:13px;color:var(--bw-warn)}
.bw-card-gap.is-soft{color:var(--bw-muted)}
.bw-card-tools{display:flex;flex-wrap:wrap;gap:4px 8px;align-items:center;padding:4px 10px 8px}
/* A full Day: what to take out instead, right under the tapped card. */
.bw-swap{margin:0 12px 10px;padding:10px 12px;border:1px solid var(--n-f0c9b4,#f0c9b4);border-radius:12px;background:var(--bw-soft)}
.bw-swap-text{margin:0 0 8px;font-size:14px;line-height:1.45}
.bw-swap-chips{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.bw-swap-chip{min-height:44px;padding:8px 12px;border:1px solid var(--bw-accent);border-radius:999px;background:var(--n-ffffff,#fff);color:var(--bw-accent);font-weight:700;cursor:pointer}
.bw-swap-chip:hover{background:var(--n-fffaf5,#fffaf5)}
.bw-demo{grid-column:1/-1;padding:10px;border:1px dashed var(--n-e3d6c4,#e3d6c4);border-radius:16px;background:var(--bw-cream)}
.bw-undo{margin-left:6px}
/* ⑤ 완성 */
.bw-fields{display:grid;gap:16px;margin-top:10px}
.bw-field{display:block;min-width:0}
.bw-fieldset{border:0;margin:0;padding:0}
.bw-fieldset legend{padding:0}
.bw-classes{list-style:none;margin:8px 0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.bw-check{display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:6px 14px;border:1px solid var(--bw-line);border-radius:12px;background:var(--i-ffffff,#fff);cursor:pointer;font-weight:700}
.bw-new-class{margin-top:6px}
.bw-new-class-row{display:flex;gap:8px}
.bw-new-class-row input{flex:1;min-width:0}
.bw-summary{margin-top:18px;padding:14px;border-radius:14px;background:var(--bw-cream);border:1px solid var(--bw-line)}
.bw-summary p{margin:4px 0;overflow-wrap:anywhere}
.bw-progress{list-style:none;margin:14px 0 0;padding:0;display:grid;gap:6px}
.bw-progress li{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:8px 10px;border-radius:10px;background:var(--n-ffffff,#fff);border:1px solid var(--bw-line);font-size:15px}
.bw-progress li.is-done span:first-child{color:var(--bw-sage);font-weight:700}
.bw-progress li.is-failed{border-color:var(--i-e7b9a6,#e7b9a6);color:var(--bw-warn)}
.bw-danger{margin-top:22px;padding-top:12px;border-top:1px solid var(--bw-line)}
/* Footer: always at hand at the bottom of the screen */
.bw-foot{position:sticky;bottom:0;z-index:5;margin-top:14px;padding:10px 14px calc(10px + env(safe-area-inset-bottom,0px));background:color-mix(in srgb,var(--bw-paper) 94%,transparent);border:1px solid var(--bw-line);border-radius:18px 18px 0 0;box-shadow:0 -6px 18px #54482a14;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.bw-foot-status{display:flex;flex-wrap:wrap;align-items:center;gap:2px 6px}
/* The foot's status line lies over the foot's top edge (review 2026-10-30): it shows and goes without growing the foot
   or moving anything on the page. */
.bw-foot{--bw-status-gap:6px}
.bw-status{position:absolute;left:10px;right:10px;bottom:calc(100% + var(--bw-status-gap));z-index:1;box-sizing:border-box;margin:0;padding:8px 12px;font-size:14px;line-height:1.45;color:var(--bw-ink);overflow-wrap:anywhere;background:var(--bw-paper);border:1px solid var(--bw-line);border-radius:12px;box-shadow:0 6px 16px #54482a1f;pointer-events:none}
.bw-status:empty{display:none}
.bw-status.warning{color:var(--bw-warn);font-weight:700}
.bw-foot-buttons{display:flex;align-items:center;justify-content:space-between;gap:8px}
.bw-foot-end{display:flex;gap:8px;margin-left:auto}
.bw-foot-buttons .primary{min-height:48px;padding:12px 18px;font-size:16px}
.bw-foot-buttons .secondary{min-height:48px}
.bw-foot-buttons button{white-space:nowrap}
/* 교재관리 row (dist/teacher-home.js booksHTML) */
.teacher-book-info{margin:0 0 8px;color:var(--muted,var(--n-716d63,#716d63));font-size:14px}
.teacher-book-classes{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 10px;font-size:14px}
.teacher-book-classes>span:first-child{font-weight:700;color:var(--ink,var(--n-3e3a32,#3e3a32))}
.teacher-book-class-chip{display:inline-block;padding:2px 10px;border-radius:999px;background:var(--sage-soft,var(--n-edf4ec,#edf4ec));color:var(--sage-dark,var(--n-41664c,#41664c));font-weight:700}
.teacher-book-classes .teacher-book-no-class{color:var(--muted,var(--n-716d63,#716d63))}
.teacher-book-classes .text-button{min-height:36px;padding:4px 6px;color:var(--terracotta,var(--n-a94c31,#a94c31));font-weight:700;text-decoration:underline;text-underline-offset:3px}
/* The first-book invitation (an empty library here, the homework panel in teacher-home.js) shares one card; its
   grid, gap and 44px button come from teacher-home.css. */
.teacher-first-book{padding:22px;border:1px dashed var(--n-e3d6c4,#e3d6c4);border-radius:16px;background:var(--paper,var(--n-fffdf9,#fffdf9));text-align:center}
/* Teacher preview hub: the Day's own list first, the rest folded */
.preview-hub-label{margin:14px 0 6px;font-weight:700;font-size:15px}
.preview-hub-more{margin-top:12px}
.preview-hub-more summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-weight:700;color:var(--terracotta,var(--n-a94c31,#a94c31))}
@media(min-width:541px){
 .bw-choices{grid-template-columns:repeat(2,minmax(0,1fr))}
 .bw-file{grid-template-columns:48px minmax(0,1fr) auto}
 .bw-file-tools{grid-column:auto;flex-wrap:nowrap}
}
@media(min-width:760px){
 .bw-content-tabs{display:none}
 .bw-content{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);gap:18px}
 .bw-content[data-wizard-content] [data-pane]{display:block}
 .bw-days{grid-template-columns:repeat(2,minmax(0,1fr))}
 .bw-body{padding:24px 26px 28px}
}
@media(max-width:540px){
 /* The 회차 cell shows only its Day numbers (data-short), so 영어 and 뜻 keep their room (review 2026-11-04). */
 .bw-sheet-head,.bw-sheet .bw-row{grid-template-columns:28px minmax(0,.8fr) minmax(0,1.2fr) 34px 32px 4px 36px}
 .bw-sheet-head>span{padding:0 4px}
 .bw-tag[data-short]{display:flex;align-items:center;justify-content:center;padding:0 2px;font-size:0}
 .bw-tag[data-short]::after{content:attr(data-short);font-size:11px;line-height:1}
 .book-wizard .bw-sheet input,.book-wizard .bw-sheet textarea{font-size:16px;padding:4px 6px}
 /* A sentence's 영어 over its 뜻: one row of two 30px lines, so a sentence rarely wraps. */
 .bw-sheet.is-sentences .bw-sheet-head{grid-template-columns:28px minmax(0,1fr) 40px 72px;grid-template-areas:none}
 .bw-sheet.is-sentences .bw-sheet-head>span:nth-child(3){display:none}
 .bw-sheet.is-sentences .bw-sheet-head>span:last-child{grid-column:auto}
 .bw-sheet.is-sentences .bw-sheet-stack{display:inline}
 .bw-sheet.is-sentences .bw-row{grid-template-columns:28px minmax(0,1fr) 40px 32px 4px 36px;grid-template-areas:"num en tag x . grip" "num ko tag x . grip"}
 .book-wizard .bw-sheet.is-sentences .bw-en{border-bottom:1px dashed var(--n-f1eadf,#f1eadf)}
 .bw-top{padding:12px 14px 10px;border-radius:14px}
 .bw-title{font-size:19px}
 .bw-step-name{position:absolute!important;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
 .bw-step{border-radius:50%;width:44px;height:44px;padding:0;justify-self:center}
 .bw-steps ol{gap:4px}
 .bw-step-now{display:block}
 .bw-body{padding:16px 14px 20px;border-radius:14px}
 .bw-h2{font-size:19px}
 .bw-even{margin-left:0}
 .bw-cards{grid-template-columns:1fr}
 .bw-foot{padding:8px 12px calc(8px + env(safe-area-inset-bottom,0px));border-radius:14px 14px 0 0}
 .bw-foot-buttons .primary{padding:12px 14px;font-size:15px}
 .bw-foot-buttons .secondary{padding:10px 12px}
 .book-wizard.is-typing .bw-foot{position:relative;box-shadow:none}
 .bw-foot-buttons.has-save .bw-next-name{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
}
@media(prefers-reduced-motion:reduce){
 .book-wizard *{transition:none!important;animation:none!important;scroll-behavior:auto!important}
}
/* While a saved book is still read here (school.js normally reads it before the wizard opens): blocks at about a
   step's size instead of a line of text (2026-10-30). */
.bw-skeleton{display:grid;gap:12px;padding:8px 0 24px}
.bw-skeleton-block{display:block;height:120px;border:1px solid var(--n-efe4d4,#efe4d4);border-radius:16px;background:var(--n-fffefb,#fffefb)}
.bw-skeleton-block.is-title{height:44px;width:60%}
.bw-skeleton-block.is-short{height:64px}
/* ④ 철자 퍼즐 · 문장 퍼즐 cards: the book's level (dist/builder-level-control.js, styles in teacher-home.css) under 시연 ·
   체험하기; the 단어 익히기 card holds its 알파벳 읽기 (dist/book-settings-control.js) the same way. A narrow card puts the
   choices under the label, sharing the card's width. */
.bw-builder-level,.bw-sentence-level,.bw-letter-reading{padding:2px 10px 6px;border-top:1px dashed var(--bw-line)}
/* 2026-11-05: the compact control (label with its i, then the chips; dist/builder-level-control.js); 문장 퍼즐's level too. */
.bw-builder-level .builder-level-options,.bw-sentence-level .builder-level-options,.bw-letter-reading .builder-level-options{flex:1 1 auto;margin-left:0}
.book-wizard .bw-builder-level .book-option-label,.book-wizard .bw-sentence-level .book-option-label,.book-wizard .bw-letter-reading .book-option-label{font-size:12.5px;font-weight:800}
/* .book-wizard button{font:inherit} would make the chips 16px and clip ‘✓ 어려움’ on a phone: they keep the control's own
   size, and each is at least as wide as its label (the rest of the line is shared out). */
.book-wizard .bw-builder-level .builder-level-option,.book-wizard .bw-sentence-level .builder-level-option,.book-wizard .bw-letter-reading .builder-level-option{flex:1 0 auto;font-size:12.5px;font-weight:700;line-height:1.2}
@media(max-width:360px){.book-wizard .bw-builder-level .builder-level-option,.book-wizard .bw-sentence-level .builder-level-option,.book-wizard .bw-letter-reading .builder-level-option{font-size:12px}}
/* The lifted copies of ② · ③ · ④ rows (dist/press-reorder.js) live under body, so they carry their own look. */
.bw-sheet-ghost{display:grid;grid-template-columns:34px minmax(0,1fr) minmax(0,1fr) 36px;align-items:center;gap:0;padding:0;border-radius:4px;font-size:14px}
.bw-sheet-ghost .bw-num{grid-area:auto;height:100%;border-right:1px solid var(--n-f1eadf,#f1eadf)}
.bw-ghost-cell{min-width:0;padding:0 8px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.bw-ghost-cell.is-ko{color:var(--n-716d63,#716d63)}
.bw-item-ghost{gap:8px;padding:0 4px 0 10px;font-size:15px}
.bw-item-ghost>strong{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.bw-item-ghost>small{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:var(--n-716d63,#716d63)}
.bw-slot-ghost{gap:10px;padding:4px 6px 4px 10px;border-radius:12px;font-weight:700}
.bw-slot-ghost .bw-now-number{color:var(--n-a94c31,#a94c31)}
.bw-slot-ghost .bw-now-name{flex:1;min-width:0}
.bw-slot-ghost svg{width:28px;height:28px;fill:none;stroke:var(--n-a94c31,#a94c31);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
/* A sheet row lets its cells pan sideways (long text in a narrow cell); a hold still lifts it from the # cell or ⠿. */
.bw-sheet .press-reorder-row{touch-action:auto}
/* ≤360px: a narrower #, and an empty place says only 빈 자리. */
@media(max-width:360px){
 .bw-sheet-head,.bw-sheet .bw-row{grid-template-columns:24px minmax(0,.8fr) minmax(0,1.2fr) 30px 32px 4px 36px}
 .bw-sheet.is-sentences .bw-sheet-head{grid-template-columns:24px minmax(0,1fr) 36px 72px}
 .bw-sheet.is-sentences .bw-row{grid-template-columns:24px minmax(0,1fr) 36px 32px 4px 36px}
 .bw-now-empty-more{display:none}
}
/* ② · ③ say how to move a row, next to the paste hint and in an opened Day. */
.bw-move-hint{color:var(--bw-muted)}
.bw-day-help{margin:2px 0 6px;font-size:13px}
