/* 디자인 말 50 — keywords.css의 시리즈 틀 위에 비교 무대와 표본 화면(알림장)만 더한다 */
.dw { --dw-line: rgba(52, 36, 110, 0.18); }

/* ── 목록 ── */
.dw .dw-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.dw .dw-card-btn { min-height: 116px; padding-top: 12px; }
.dw-card-btn__icon {
  display: grid; place-items: center;
  width: 36px; height: 36px; margin-bottom: 6px; border-radius: 6px;
  background: var(--kw-t); color: var(--kw-c); font-size: 16px;
}
.dw .dw-card-btn .kw-card__n { position: absolute; top: 12px; right: 12px; }
.dw .dw-card-btn.is-known .kw-card__n { display: none; }
.dw .dw-card-btn.is-known .dw-card-btn__icon { background: #fff; }
.dw .dw-card-btn .kw-card__ko { font-size: 16.5px; }

/* ── 한 장 카드의 왼쪽 무대: 비교 단추·도구 / 표본 화면 / 달라진 점 한 줄 ──
   표본은 무대 남은 높이 안에 들어오게 줄인다(design_words.js mountScreen). */
.dw .dw-fstage { justify-content: flex-start; gap: 12px; padding: 44px 20px 16px; }
.dw-fbar { display: flex; flex: none; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; width: 100%; }
.dw-fitbox { display: flex; flex: 1 1 0; align-items: center; width: 100%; min-height: 0; }
.dw-fstage .dw-look { flex: none; margin: 0; }
.dw-fstage .dw-range { flex: 1 1 280px; max-width: 440px; }
.dw-ab { display: inline-flex; border: 1px solid var(--dw-line); border-radius: 6px; overflow: hidden; background: #fff; }
.dw-ab button {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 0 12px; border: 0; border-left: 1px solid var(--dw-line);
  background: transparent; color: var(--kw-ink); font-size: 14px; font-weight: 800; cursor: pointer;
}
.dw-ab button:first-child { border-left: 0; }
.dw-ab button i { font-size: 12px; opacity: 0.7; }
.dw-ab button[data-dw-view="bad"][aria-pressed="true"],
.dw-ab button[data-dw-fixshow="before"][aria-pressed="true"] { background: #c2414b; color: #fff; }
.dw-ab button[data-dw-view="good"][aria-pressed="true"],
.dw-ab button[data-dw-fixshow="after"][aria-pressed="true"] { background: #0d8577; color: #fff; }
.dw-ab button[aria-pressed="true"] i { opacity: 1; }
.dw-ab button:focus-visible, .dw-tool:focus-visible, .dw-seg button:focus-visible { outline: 3px solid var(--kw-c); outline-offset: -3px; }
.dw-tool {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 0 12px; border: 1px solid var(--dw-line); border-radius: 6px;
  background: #fff; color: var(--kw-ink); font-size: 14px; font-weight: 800; cursor: pointer;
}
.dw-tool i { color: var(--kw-c); }
.dw-tool[aria-pressed="true"] { background: var(--kw-t); border-color: var(--kw-c); color: var(--kw-d); }
.dw-range { display: flex; align-items: center; gap: 10px; flex: 1 1 200px; font-size: 13px; font-weight: 800; color: var(--kw-muted); }
.dw-range span { white-space: nowrap; }
.dw-range b { color: var(--kw-d); font-variant-numeric: tabular-nums; }
.dw-range input { flex: 1; min-width: 0; accent-color: var(--kw-c); height: 32px; }
.dw-look {
  display: flex; align-items: flex-start; gap: 8px;
  margin: 8px 12px 12px; padding: 10px 12px; border-radius: 6px;
  font-size: 14.5px; line-height: 1.5; font-weight: 800;
}
.dw-look i { margin-top: 3px; }
.dw-look.is-bad { background: #fdeaec; color: #8f2531; }
.dw-look.is-good { background: #e2f4f0; color: #0a5d53; }

.dw-seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--dw-line); border-radius: 6px; overflow: hidden; background: #fff; }
.dw-seg button {
  min-height: 40px; padding: 0 12px; border: 0; border-left: 1px solid var(--dw-line);
  background: transparent; color: var(--kw-ink); font-size: 14px; font-weight: 700; cursor: pointer;
}
.dw-seg button:first-child { border-left: 0; }
.dw-seg button[aria-pressed="true"] { background: var(--kw-c); color: #fff; }
.dw-seg--tool button { font-size: 13px; padding: 0 10px; }
.dw-switch {
  position: relative; flex: none; width: 50px; height: 28px; padding: 0;
  border: 0; border-radius: 14px; background: #c9c4da; cursor: pointer;
}
.dw-switch__knob { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25); transition: transform 0.2s; }
.dw-switch[aria-checked="true"] { background: var(--kw-c); }
.dw-switch[aria-checked="true"] .dw-switch__knob { transform: translateX(22px); }
.dw-switch:focus-visible { outline: 3px solid var(--kw-c); outline-offset: 2px; }

/* ── 퀴즈: 전·후 ── */
.dw-ba { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.dw-ba__pane, .dw-pane { margin: 0; min-width: 0; }
.dw-ba__pane figcaption, .dw-pane figcaption {
  display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: 6px; padding: 3px 10px; border-radius: 4px;
  background: #fff; color: var(--kw-ink); font-size: 14px; font-weight: 900;
}
.dw-ba__pane.is-after figcaption { background: #1d1840; color: #fff; }

/* ── 화면 고치기 ── */
.dw .dw-fix { max-width: 1120px; }
.dw-words { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 18px 0 12px; }
.dw-word {
  position: relative; display: flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 8px 12px; border: 2px solid transparent; border-radius: 8px;
  background: var(--kw-t); color: var(--kw-d); font-size: 15px; font-weight: 900; text-align: left; cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}
.dw-word:hover { transform: translateY(-1px); border-color: var(--kw-c); }
.dw-word:focus-visible { outline: 3px solid var(--kw-c); outline-offset: 2px; }
.dw-word__icon { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 5px; background: #fff; color: var(--kw-c); font-size: 14px; }
.dw-word__ko { flex: 1; line-height: 1.3; }
.dw-word__check { display: none; font-size: 13px; }
.dw-word[aria-pressed="true"] { background: var(--kw-c); color: #fff; box-shadow: 0 10px 18px -14px var(--kw-c); }
.dw-word[aria-pressed="true"] .dw-word__icon { background: rgba(255, 255, 255, 0.2); color: #fff; }
.dw-word[aria-pressed="true"] .dw-word__check { display: block; }
.dw-fixbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.dw-fixbar__count { margin-right: auto; font-size: 15px; font-weight: 800; color: var(--kw-muted); }
.dw-fixbar__count b { color: var(--kw-brand); font-size: 18px; font-variant-numeric: tabular-nums; }
.dw .dw-small { min-height: 42px; padding: 0 14px; font-size: 14px; }
.dw-ab--panes { display: none; margin-bottom: 10px; }
.dw-panes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 16px; border-radius: 8px;
  background-color: #f4f2fa; background-image: radial-gradient(rgba(75, 47, 160, 0.12) 1px, transparent 1px); background-size: 16px 16px; }
.dw-pane.is-before figcaption { color: #8f2531; }
.dw-pane.is-after figcaption { background: #0d8577; color: #fff; }
.dw-compare { margin-top: 16px; }
.dw-compare .kw-copy:disabled { opacity: 0.5; cursor: default; }

/* ── 표본 화면 틀 ── */
.dw-fit { position: relative; width: 100%; overflow: hidden; }
.dw-scr {
  position: absolute; top: 0; left: 0;
  width: var(--w); transform-origin: 0 0;
  background: var(--page); color: var(--body);
  font-family: var(--fb, inherit); font-size: var(--fs-b); line-height: var(--lh); letter-spacing: var(--ls); font-weight: var(--fw-b);
  text-align: left; word-break: keep-all; overflow-wrap: anywhere;
  border-radius: 6px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(26, 20, 51, 0.14), 0 14px 30px -22px rgba(26, 20, 51, 0.6);
  filter: var(--filter);
}
.dw-scr *, .dw-scr *::before, .dw-scr *::after { box-sizing: border-box; }
.dw-scr.is-breakall { word-break: break-all; }
.dw-scr p { margin: 0; }
.has-scroll .dw-body { height: var(--h); overflow-y: auto; overscroll-behavior: contain; }
.dw-bar {
  display: flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 var(--m);
  background: var(--pri); color: #fff; font-weight: 800; font-size: 14px; letter-spacing: 0;
}
.dw-bar__logo { display: grid; place-items: center; width: 26px; height: 26px; border-radius: max(3px, calc(var(--r) - 3px)); background: rgba(255, 255, 255, 0.2); font-size: 13px; }
.dw-bar__sp { flex: 1; }
.dw-bar .dw-ib { color: #fff; }
.dw-kbd { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 4px; background: rgba(255, 255, 255, 0.22); font-size: 12px; }
.is-sticky .dw-bar { position: sticky; top: 0; z-index: 4; }
.sticky-shadow .dw-bar { box-shadow: 0 8px 14px -8px rgba(20, 16, 50, 0.55); }
.is-sticky-head .dw-head { position: sticky; top: 44px; z-index: 3; margin-left: calc(-1 * var(--m)); margin-right: calc(-1 * var(--m)); padding: 8px var(--m); background: var(--page); }

.dw-in { padding: var(--m); }
.has-maxw .dw-in { max-width: calc(var(--maxw) + 2 * var(--m)); margin: 0 auto; }

.dw-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; margin-bottom: var(--sec); }
.dw-head__t { min-width: 0; }
.dw-h { font-family: var(--ft, inherit); font-size: var(--fs-h); line-height: var(--lht); font-weight: var(--fw-h); color: var(--ink); }
.dw-sub { margin-top: var(--ig); font-family: var(--fm, inherit); font-size: var(--fs-m); font-weight: var(--fw-m); color: var(--muted); }
.dw-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.dw-btn {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 0 12px; border: 1px solid transparent; border-radius: var(--r);
  font-size: 13px; font-weight: 800; line-height: 1; white-space: nowrap; letter-spacing: 0;
}
.dw-btn i { font-size: 12px; }
.dw-btn--pri { background: var(--pri); color: #fff; }
.dw-btn--outline { border-color: var(--line); background: var(--surf); color: var(--ink); }
.dw-btn--text { padding: 0 6px; background: transparent; color: var(--pri); }
.dw-btn--sec { background: var(--sec-bg); color: var(--sec-ink); }
.dw-btn--loud { color: #fff; box-shadow: 0 3px 0 rgba(0, 0, 0, 0.25); }
.dw-btn--loud.dw-btn--write { background: #6a3df0; }
.dw-btn--loud.dw-btn--send { background: #16a34a; }
.dw-btn--loud.dw-btn--print { background: #f59e0b; }
.dw-btn--loud.dw-btn--del { background: #dc2626; }

.dw-list { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: var(--g); align-items: start; position: relative; z-index: 1; }
.dw-card {
  position: relative; min-width: 0;
  display: flex; flex-direction: column; gap: var(--ig);
  padding: var(--p); border-radius: var(--r);
  background: var(--surf); border: var(--bd); box-shadow: var(--shd);
}
.bd-none { --bd: 0 solid transparent; }
.bd-light { --bd: 1px solid var(--line); }
.bd-heavy { --bd: 2px solid #111; }
.sh-none { --shd: none; }
.sh-soft { --shd: 0 1px 2px rgba(20, 16, 50, 0.06), 0 8px 18px -12px rgba(20, 16, 50, 0.3); }
.sh-mid { --shd: 0 2px 4px rgba(20, 16, 50, 0.08), 0 14px 26px -12px rgba(20, 16, 50, 0.38); }
.sh-hard { --shd: 6px 6px 0 #111, 0 12px 26px rgba(0, 0, 0, 0.55); }
.dw-card__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dw-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 7px; border-radius: max(3px, calc(var(--r) - 4px));
  font-size: var(--fs-m); font-weight: 800; line-height: 1.5; white-space: nowrap; letter-spacing: 0;
}
.dw-tag i { font-size: 0.9em; }
.dw-tag.is-done { background: #e3f5ea; color: #17703d; }
.dw-tag.is-soon { background: #fdf0dc; color: #8f4506; }
.dw-tag.is-none { background: #fde8ea; color: #ae2236; }
.st-mono .dw-tag { background: var(--sec-bg); color: var(--sec-ink); }
.dw-tag--dot { width: 12px; height: 12px; padding: 0; border-radius: 50%; }
.dw-tag--dot.is-done { background: #22a35a; }
.dw-tag--dot.is-soon { background: #f59e0b; }
.dw-tag--dot.is-none { background: #e23b4e; }
.dw-date { font-family: var(--fm, inherit); font-size: var(--fs-m); font-weight: var(--fw-m); color: var(--muted); white-space: nowrap; }
.dw-card__title { font-family: var(--ft, inherit); font-size: var(--fs-ct); line-height: var(--lht); font-weight: var(--fw-ct); color: var(--ink); }
.dw-card__title.is-clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: var(--clamp); overflow: hidden; }
.dw-card__body { max-width: var(--measure); color: var(--body); }
.dw-card__foot { display: flex; align-items: center; gap: var(--tg); margin-top: 2px; }
.dw-link { margin-right: auto; color: var(--pri); font-size: var(--fs-m); font-weight: 800; white-space: nowrap; }
.dw-ib {
  position: relative; display: inline-grid; place-items: center; flex: none;
  width: var(--tt); height: var(--tt); border-radius: var(--r);
  color: var(--muted); font-size: var(--ic);
}
.dw-ib--bar { margin-right: calc(-0.25 * var(--tt)); }
.dw-em { font-style: normal; }
.dw-bang { display: none; }
.dw-new {
  position: absolute; top: -10px; right: 12px; z-index: 2;
  padding: 2px 8px; border-radius: 4px;
  background: #ffd66b; color: #3b2a00; font-size: 11px; font-weight: 900; line-height: 1.5;
  box-shadow: 0 4px 10px -4px rgba(0, 0, 0, 0.35);
}
.dw-thumb { margin: calc(-1 * var(--p)) calc(-1 * var(--p)) 4px; overflow: hidden; border-radius: var(--r) var(--r) 0 0; background: var(--tint); }
.dw-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fit-fill .dw-thumb img { object-fit: fill; }
.fit-contain .dw-thumb img { object-fit: contain; }

.dw-stats { margin-bottom: var(--g); padding: var(--p); border-radius: var(--r); background: var(--surf); border: var(--bd); box-shadow: var(--shd); }
.dw-stats__h { margin-bottom: 6px; font-size: var(--fs-ct); font-weight: var(--fw-ct); color: var(--ink); }
.dw-stat { display: grid; grid-template-columns: 72px auto; justify-content: start; align-items: baseline; gap: 10px; padding: 5px 0; border-top: 1px solid var(--line); }
.dw-stat span { color: var(--muted); font-size: var(--fs-m); }
.dw-stat b { font-size: calc(var(--fs-b) + 6px); font-weight: 800; color: var(--ink); font-variant-numeric: proportional-nums; }
.num-right .dw-stat { grid-template-columns: 1fr auto; justify-content: stretch; }
.num-right .dw-stat b { text-align: right; }
.is-tnum .dw-stat b { font-variant-numeric: tabular-nums; }

.dw-emptybox { display: grid; justify-items: center; gap: 6px; padding: 28px 16px; border-radius: var(--r); background: var(--surf); border: var(--bd); text-align: center; }
.dw-emptybox__art { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 4px; border-radius: var(--r); background: var(--tint); color: var(--pri); font-size: 24px; }
.dw-emptybox strong { font-size: var(--fs-ct); color: var(--ink); }
.dw-emptybox span { color: var(--muted); }
.dw-emptybox .dw-btn { margin-top: 8px; }
.dw-empty-dry { padding: 6px 0; color: #9a96a8; font-size: 12px; }

.dw-sheet { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; padding: 16px; }
.dw-sheet.scrim-blur { -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur)); background: rgba(20, 16, 50, 0.06); }
.dw-sheet.scrim-blur.is-dim { background: rgba(20, 16, 50, 0.36); }
.dw-dialog {
  display: grid; gap: 6px; width: min(290px, 88%); padding: 18px;
  border-radius: var(--r); background: var(--surf); color: var(--body);
  box-shadow: 0 24px 44px -18px rgba(20, 16, 50, 0.6);
}
.dw-dialog strong { font-size: var(--fs-ct); color: var(--ink); }
.dw-dialog__acts { display: flex; justify-content: flex-end; gap: 6px; margin-top: 8px; }
.scrim-none .dw-dialog { background: rgba(255, 255, 255, 0.3); box-shadow: none; border: 1px solid rgba(0, 0, 0, 0.18); }

/* 정렬 */
.al-title .dw-head { flex-direction: column; align-items: center; text-align: center; }
.al-mixed .dw-head { flex-direction: column; align-items: flex-end; }
.al-mixed .dw-head__t { align-self: stretch; }
.al-mixed .dw-h { text-align: center; }
.al-mixed .dw-sub { text-align: right; }
.al-mixed .dw-card--1 { align-items: center; text-align: center; }
.al-mixed .dw-card--1 .dw-card__top { justify-content: center; }
.al-mixed .dw-card--2 .dw-card__title { text-align: right; }
.al-mixed .dw-card--2 .dw-card__body { padding-left: 22px; }
.al-mixed .dw-card--3 { align-items: flex-end; text-align: right; }

/* 엉망인 칸과 박자 */
.is-messy .dw-list { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0; }
.is-messy .dw-card--1 { width: 62%; margin: 0 0 8px; }
.is-messy .dw-card--2 { width: 31%; margin: 16px 0 0 14px; }
.is-messy .dw-card--3 { width: 44%; margin: 2px 0 0 22px; }
.is-messy .dw-card--4 { width: 46%; margin: 20px 0 0 5px; }
.is-offbeat .dw-head { margin-bottom: 29px; }
.is-offbeat .dw-sub { margin-top: 0; }
.is-offbeat .dw-list { gap: 3px; }
.is-offbeat .dw-card--2 { margin-top: 19px; }
.is-offbeat .dw-card--1 .dw-card__title { margin-top: 9px; }
.is-offbeat .dw-card--2 .dw-card__body { margin-top: 11px; }
.is-offbeat .dw-card--3 .dw-card__foot { margin-top: 17px; }

/* 색 */
.is-rainbow .dw-bar { background: #e53935; }
.is-rainbow .dw-btn--pri { background: #2e9d43; }
.is-rainbow .dw-h { color: #8e24aa; }
.is-rainbow .dw-link { color: #fb8c00; }
.is-rainbow .dw-card--1 .dw-card__title { color: #1e88e5; }
.is-rainbow .dw-card--2 .dw-card__title { color: #e91e63; }
.is-rainbow .dw-card--3 .dw-card__title { color: #009688; }
.acc-many .dw-h, .acc-many .dw-date, .acc-many .dw-link { color: #e8590c; }
.acc-many .dw-bar, .acc-many .dw-btn--pri { background: #e8590c; }
.acc-many .dw-tag { background: #e8590c; color: #fff; }
.acc-many .dw-card--2 { border: 2px solid #e8590c; }
.acc-btn .dw-btn--pri { background: #e8590c; color: #fff; }
.acc-tag .dw-tag.is-soon { background: #e8590c; color: #fff; }
.layer-3 .dw-list { padding: 10px; border-radius: var(--r); background: var(--zone); }
.dw-head--banner {
  margin: calc(-1 * var(--m)) calc(-1 * var(--m)) var(--bmb);
  padding: 18px var(--m) calc(18px + var(--ov));
  background: var(--banner);
}
.dw-head--banner .dw-h, .dw-head--banner .dw-sub { color: #fff; }
.dw-head--banner .dw-btn--pri { background: #fff; color: var(--deep); }
.grad-loud .dw-head--banner .dw-h, .grad-loud .dw-head--banner .dw-sub { color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); }

/* 모양 */
.is-rmix .dw-card--1 { border-radius: 0; }
.is-rmix .dw-card--2 { border-radius: 24px; }
.is-rmix .dw-card--3 { border-radius: 2px; }
.is-rmix .dw-btn { border-radius: 999px; }
.is-rmix .dw-tag { border-radius: 0; }
.is-rmix .dw-ib { border-radius: 50%; }
.is-rmix .dw-bar__logo { border-radius: 50%; }
.dw-card.is-lift { transform: translateY(calc(var(--lift) * -3px)); box-shadow: 0 calc(var(--lift) * 8px) calc(var(--lift) * 16px) -8px rgba(20, 16, 50, 0.42); z-index: 2; }
.dw-card.lift-ring { outline: 2px solid var(--pri); outline-offset: -2px; }
.div-box .dw-card { border: 1px solid #8f8aa3; }
.div-box .dw-card__top, .div-box .dw-card__title, .div-box .dw-card__body, .div-box .dw-card__foot { padding: 4px 6px; border: 1px solid #b9b4c9; }
.div-box .dw-head { padding: 8px; border: 1px solid #8f8aa3; }
.div-box .dw-list { padding: 6px; border: 1px solid #8f8aa3; }
.div-lines .dw-list { gap: 0; border-radius: var(--r); background: var(--surf); border: var(--bd); box-shadow: var(--shd); }
.div-lines .dw-card { border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.div-lines .dw-card + .dw-card { border-top: 1px solid var(--line); }
.fc-ring .dw-btn.is-focus { outline: var(--fw) solid var(--fc); outline-offset: 2px; }

/* 화면 전체 */
.is-dark .dw-btn--outline { background: transparent; }
.is-dark:not(.dk-naive) .dw-bar { background: var(--surf); color: var(--ink); border-bottom: 1px solid var(--line); }
.is-dark:not(.dk-naive) .dw-bar .dw-ib { color: var(--muted); }
.is-dark:not(.dk-naive) .dw-btn--pri { color: #17142b; }
.is-dark:not(.dk-naive) .dw-tag.is-done { background: rgba(34, 163, 90, 0.18); color: #86e3ae; }
.is-dark:not(.dk-naive) .dw-tag.is-soon { background: rgba(245, 158, 11, 0.18); color: #f7c374; }
.is-dark:not(.dk-naive) .dw-tag.is-none { background: rgba(226, 59, 78, 0.2); color: #f6a0aa; }
.dk-naive .dw-card { border: 2px solid #fff; }
.dk-naive .dw-bar { border-bottom: 2px solid #fff; }
.is-inconsistent .dw-card--2 { border-radius: 0; border: 2px dashed #9a94b0; background: #fffbea; padding: 8px 22px; font-family: "AppleMyungjo", "Batang", serif; }
.is-inconsistent .dw-card--2 .dw-card__title { font-size: calc(var(--fs-ct) + 4px); color: #b45309; font-family: inherit; }
.is-inconsistent .dw-card--3 { border-radius: 20px; border: 0; background: #e6f1ff; box-shadow: none; padding: 22px 12px 10px; }
.is-inconsistent .dw-card--3 .dw-card__title { font-size: calc(var(--fs-ct) - 3px); font-weight: 400; }
.is-inconsistent .dw-card--3 .dw-card__top { order: 5; }
.is-btnmix .dw-card--2 .dw-link { padding: 5px 10px; border-radius: 2px; background: #dc2626; color: #fff; }
.is-btnmix .dw-card--3 .dw-link { padding: 3px 12px; border: 2px solid #0d8577; border-radius: 16px; color: #0d8577; }
.flow-bad .dw-head { flex-direction: row-reverse; }
.flow-bad .dw-head__t { text-align: right; }
.flow-bad .dw-h { font-size: var(--fs-b); color: var(--muted); }
.flow-bad .dw-card--2 { background: #ffe066; }
.flow-bad .dw-card--2 .dw-card__title { font-size: calc(var(--fs-h) + 2px); }
.dw-flowlayer { position: absolute; inset: 0; z-index: 8; pointer-events: none; }
.dw-flowlayer svg { position: absolute; inset: 0; overflow: visible; }
.dw-flowlayer polyline { fill: none; stroke: #bf3f73; stroke-width: 2.5; stroke-dasharray: 6 5; stroke-linejoin: round; }
.dw-flowdot {
  position: absolute; display: grid; place-items: center;
  width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%;
  background: #bf3f73; color: #fff; font-size: 13px; font-weight: 900; line-height: 1;
  box-shadow: 0 0 0 3px #fff;
}
.show-touch .dw-card__foot .dw-ib, .show-touch .dw-bar .dw-ib { outline: 1px dashed rgba(191, 63, 115, 0.8); outline-offset: -1px; }
.show-touch .dw-card__foot .dw-ib::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%;
  background: rgba(191, 63, 115, 0.14); border: 1.5px solid rgba(191, 63, 115, 0.6); pointer-events: none;
}

/* 자 대 보기 */
.g-pad .dw-card { box-shadow: inset 0 0 0 var(--p) rgba(13, 133, 119, 0.2), var(--shd); }
.g-margin .dw-in { box-shadow: inset 0 0 0 var(--m) rgba(13, 133, 119, 0.2); }
.g-grid .dw-list::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(90deg, rgba(42, 116, 196, 0.16) 0 calc(50% - var(--g) / 2), transparent 0 calc(50% + var(--g) / 2), rgba(42, 116, 196, 0.16) 0);
  outline: 1px dashed rgba(42, 116, 196, 0.6);
}
.g-maxw .dw-in { outline: 3px dashed rgba(42, 116, 196, 0.7); outline-offset: -3px; }

/* 글자 굵기·강조 */
.emph-all .dw-card__body { font-weight: 700; }
.emph-all .dw-em, .emph-all .dw-loud { color: #e11d48; font-weight: 900; text-decoration: underline; }
.emph-all .dw-bang { display: inline; color: #e11d48; font-weight: 900; }
.emph-all .dw-date { font-weight: 900; text-decoration: underline; }
.emph-weight .dw-em { font-weight: 800; color: var(--ink); }
.emph-color .dw-em { font-weight: 700; color: var(--pri); }
.emph-mark .dw-em { background: linear-gradient(transparent 52%, #ffe58a 52%); color: var(--ink); }

/* ── 반응형 ── */
@media (max-width: 1180px) {
  .dw-words { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .dw-ab--panes { display: inline-flex; }
  .dw-panes { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .dw-panes[data-show="after"] .dw-pane.is-before, .dw-panes[data-show="before"] .dw-pane.is-after { display: none; }
}
/* 휴대폰: 무대는 내용 높이대로 늘고, 표본은 무대 폭 그대로(줄이지 않고) 그린다 */
@media (max-width: 860px) {
  .dw .dw-fstage { gap: 10px; padding: 42px 10px 14px; }
  .dw-fitbox { display: block; flex: none; }
}
@media (max-width: 720px) {
  .dw .dw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dw .dw-card-btn { min-height: 104px; }
  .dw .dw-card-btn .kw-card__ko { font-size: 15.5px; }
  .dw-ba { grid-template-columns: minmax(0, 1fr); }
  .dw-words { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dw-word { min-height: 48px; padding: 6px 10px; font-size: 14px; }
  .dw-ab button { padding: 0 10px; }
}
@media (max-width: 360px) {
  .dw .dw-grid { grid-template-columns: minmax(0, 1fr); }
  .dw-words { grid-template-columns: minmax(0, 1fr); }
}
/* 동작 줄이기: 꾸밈 효과만 끈다. 이 편의 배우는 대상(배치·색·모양)은 움직임 없이 바로 바뀌므로 그대로 보인다. */
@media (prefers-reduced-motion: reduce) {
  .dw-word, .dw-switch__knob { transition: none; }
}
