/* dash-widgets.css — 교사 대시보드 위젯 재설계 (2026-11-04 · 결정 D1~D7·H-1~H-3 모두 A · 규칙 §0-B R260)
 *
 * 무엇: ① 크기 체계(키 = 정확한 단 · 1단 140 · 2단 300 · 3단 460) ② 머리 카드(인사·요약 칸 3개·다음 수업·단추 오른쪽 위)
 *       ③ 이번 주 수업(주간 달력) ④ 확인이 필요해요(머리 카드 아래 띠 · 위젯 아님) ⑤ 내 수업 표 ⑥ 공지(게시 중만) ⑦ 체크리스트(접힘)
 * 범위: 교사 화면만 — html.v2:not(.role-student) .dash-view:not(.dash-starter) (학생 대시보드·«시작하기»는 그대로)
 * 글자 = 12·13·14·20·24 · 머리 단추 40 · 위젯 안 단추 36 (R244 ①② 그대로) · 색 = css/common.css 토큰만
 * 자리 계산 = js/dash-layout.js · 머리 카드 = js/dash-head.js · 확인이 필요해요 = js/dash-todo.js · 달력 = js/dash-week.js · 내 수업 = js/dash-lectures.js
 */

/* ───────── ① 크기 체계 ───────── */
html.v2:not(.role-student) .dash-view:not(.dash-starter) .dash-grid { grid-auto-rows: 140px; align-items: stretch; }
html.v2:not(.role-student) .dash-view:not(.dash-starter) .dash-grid.dash-flow { grid-auto-rows: auto; }
/* 키는 자리(줄 수)가 정한다 — 옛 인라인 min-height(최소 키)를 쓰지 않는다 · 넘치는 내용은 위젯 안에서 줄 수로 자른다(fit) */
html.v2:not(.role-student) .dash-view:not(.dash-starter) .dash-grid .dash-widget,
html.v2:not(.role-student) .dash-view:not(.dash-starter) .dash-grid .dash-drop-ph { min-height: 0 !important; overflow: hidden; }
html.v2:not(.role-student) .dash-view:not(.dash-starter) .dash-grid .dash-widget-body { overflow: hidden; display: flex; flex-direction: column; }
html.v2:not(.role-student) .dash-view:not(.dash-starter) .dash-grid.dash-flow .dash-widget { height: auto; }
html.v2:not(.role-student) .dash-view:not(.dash-starter) .dash-grid [data-fit-list] { flex: 1 1 auto; min-height: 0; overflow: hidden; }
/* 위젯 한 줄 — 누르는 자리 · 테두리 상자 없이 헤어라인(R244 ⑤) */
.dw-row { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 2px; border-top: 1px solid var(--border); cursor: pointer; border-radius: var(--radius-xs); }
.dw-row:first-child { border-top: 0; }
.dw-row:hover { background: var(--surface-hover); }
.dw-row:focus-visible { outline: 3px solid var(--primary-tint); outline-offset: -2px; }
.dw-row.is-sm { min-height: 40px; }
.dw-row[hidden] { display: none; }
.dw-row-tx { flex: 1; min-width: 0; }
.dw-row-tx b { display: block; font-size: var(--text-base); font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dw-row-tx span { display: block; font-size: var(--text-sm); color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dw-row-go { flex: none; border: 0; background: transparent; color: var(--primary); font: inherit; font-size: var(--text-base); font-weight: 700; height: 36px; padding: 0 4px; cursor: pointer; white-space: nowrap; }
.dw-row-meta { flex: none; font-size: var(--text-sm); color: var(--text-muted); white-space: nowrap; }
.dw-mk { flex: none; width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: var(--text-sm); font-weight: 800; }
.dw-mk.is-red { background: var(--danger-light); color: var(--danger); }
.dw-mk.is-amb { background: var(--warning-light); color: var(--warning-dark); }
.dw-mk.is-blue { background: var(--primary-soft); color: var(--primary); }
.dw-mk.is-grn { background: var(--success-light); color: var(--success-dark); }
.dw-mk.is-gray { background: var(--bg-subtle); color: var(--text-muted); }   /* 휴강 · 시작 전(R264) */
.dw-pill { display: inline-block; border-radius: 999px; padding: 1px 9px; font-size: var(--text-xs); font-weight: 700; white-space: nowrap; }
.dw-pill.is-amb { background: var(--warning-light); color: var(--warning-dark); }
.dw-pill.is-grn { background: var(--success-light); color: var(--success-dark); }
.dw-pill.is-blue { background: var(--primary-soft); color: var(--primary-dark); }
.dw-more { border: 0; background: transparent; color: var(--primary); font: inherit; font-size: var(--text-base); font-weight: 700; height: 36px; padding: 0 4px; cursor: pointer; white-space: nowrap; }
.dw-more[hidden] { display: none; }

/* ───────── ② 머리 카드 ───────── */
html.v2:not(.role-student) .dash-view:not(.dash-starter) .dash-head.dh-card {
  display: grid; grid-template-columns: minmax(0, 1fr) 400px; grid-template-areas: "hello act" "tiles next";
  gap: 6px 24px; align-items: center; min-height: 0; margin: 0 0 var(--dash-gap, 20px);
  padding: 12px 22px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: none;
}
.dh-card.is-nonext { grid-template-areas: "hello act" "tiles tiles"; }
.dh-card.is-nonext .dh-next { display: none; }
.dh-hello { grid-area: hello; display: flex; align-items: center; gap: 12px; min-width: 0; }
.dh-hello img { width: 40px; height: 40px; object-fit: contain; flex: none; }
.dh-hello-tx { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 8px; min-width: 0; }
.dh-hello h2 { margin: 0; font-size: var(--text-2xl); font-weight: 800; line-height: 1.3; color: var(--text); word-break: keep-all; overflow-wrap: normal; }
.dh-date { font-size: var(--text-sm); font-weight: 700; color: var(--text-muted); white-space: nowrap; }
.dh-act { grid-area: act; display: flex; justify-content: flex-end; gap: 8px; }
html.v2:not(.role-student) .dash-view:not(.dash-starter) .dh-act .btn { height: 40px; }   /* height 로 준다 — min-height 를 주면 손가락 기기의 44 바닥(R152)을 이긴다(R244 ②) */
.dh-tiles { grid-area: tiles; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; min-width: 0; }
.dh-tile { box-sizing: border-box; position: relative; display: flex; flex-direction: column; justify-content: flex-start; gap: 2px; min-width: 0; min-height: 62px;
  padding: 8px 14px; border-radius: var(--radius-sm); border: 1px solid transparent; background: var(--bg-subtle); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.dh-tile:hover { border-color: var(--border-strong); }
.dh-tile:focus-visible { outline: 3px solid var(--primary-tint); outline-offset: 2px; }
.dh-tile-l { display: flex; align-items: center; gap: 6px; font-size: var(--text-sm); font-weight: 700; color: var(--text-muted); }
.dh-tile-i { width: 18px; height: 18px; border-radius: var(--radius-xs); display: inline-flex; align-items: center; justify-content: center; font-size: var(--text-xs); font-weight: 800; background: var(--surface); color: var(--text-muted); }
.dh-tile-v { display: flex; align-items: baseline; gap: 4px; min-width: 0; white-space: nowrap; font-size: var(--text-2xl); font-weight: 800; line-height: 1.15; color: var(--text); }
.dh-tile-v small { font-size: var(--text-base); font-weight: 700; color: var(--text-muted); }
.dh-tile-f { font-size: var(--text-sm); color: var(--text-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dh-tile-f:empty::before { content: '\00a0'; }   /* 쓸 말이 없는 셋째 줄도 한 줄 키를 지킨다 — 불러오는 중 → 다 불러옴에서 카드가 줄지 않게(R352) */
.dh-tile-g { position: absolute; right: 12px; top: 8px; color: var(--text-muted); font-weight: 700; }
.dh-tile.is-warn .dh-tile-i { background: var(--warning-light); color: var(--warning-dark); }
.dh-tile.is-warn .dh-tile-v { color: var(--warning-dark); }
.dh-tile.is-ok .dh-tile-i { background: var(--success-light); color: var(--success-dark); }
.dh-tile.is-new .dh-tile-i { background: var(--primary-soft); color: var(--primary-dark); }
.dh-tile.is-new .dh-tile-v { color: var(--primary-dark); }
.dh-next { grid-area: next; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; min-height: 62px;
  padding: 8px 16px; border-radius: var(--radius-sm); background: var(--primary-soft); border: 1px solid var(--primary-tint); }
.dh-next-tx { min-width: 0; }
.dh-next-k { font-size: var(--text-xs); font-weight: 800; color: var(--primary-dark); }
.dh-next-t { font-size: var(--text-xl); font-weight: 800; line-height: 1.3; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dh-next-m { font-size: var(--text-sm); color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.v2:not(.role-student) .dash-view:not(.dash-starter) .dh-next .btn { height: 40px; flex: none; white-space: nowrap; }
.dh-next.is-live { background: var(--danger-light); border-color: var(--danger-light); }
.dh-next.is-live .dh-next-k { color: var(--danger); }
html.v2:not(.role-student) .dash-view:not(.dash-starter) .dh-next.is-live .btn { background: var(--danger-fill); border-color: var(--danger-fill); color: var(--text-on-primary); }
.dh-next.is-wait .dh-next-k { color: var(--text-muted); }
@media (max-width: 1300px) { html.v2:not(.role-student) .dash-view:not(.dash-starter) .dash-head.dh-card { grid-template-columns: minmax(0, 1fr) 340px; } }
@media (max-width: 1100px) {
  html.v2:not(.role-student) .dash-view:not(.dash-starter) .dash-head.dh-card,
  html.v2:not(.role-student) .dash-view:not(.dash-starter) .dash-head.dh-card.is-nonext { grid-template-columns: 1fr; grid-template-areas: "hello" "next" "tiles"; position: relative; }
  .dh-act { position: absolute; right: 22px; top: 12px; }
  .dh-hello { padding-right: 300px; }
}
@media (max-width: 600px) {
  html.v2:not(.role-student) .dash-view:not(.dash-starter) .dash-head.dh-card { padding: 14px; gap: 10px; }
  .dh-hello { align-items: flex-start; padding-right: 100px; }
  .dh-hello-tx { display: block; }
  .dh-hello h2 { font-size: var(--text-xl); }
  .dh-date { display: block; }
  .dh-hello img { width: 32px; height: 32px; }
  .dh-act { right: 10px; top: 10px; gap: 4px; }
  html.v2:not(.role-student) .dash-view:not(.dash-starter) .dh-act .btn { width: 44px; height: 44px; min-height: 44px; padding: 0; justify-content: center; }
  .dh-act .btn .dh-btn-tx { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .dh-tiles { gap: 8px; }
  .dh-tile { padding: 10px; min-height: 72px; justify-content: space-between; }
  .dh-tile-f, .dh-tile-g, .dh-tile-i { display: none; }
  .dh-tile-l { font-size: var(--text-xs); }
  .dh-tile-v { font-size: var(--text-lg); }
  .dh-next { flex-wrap: wrap; }
  html.v2:not(.role-student) .dash-view:not(.dash-starter) .dh-next .btn { width: 100%; justify-content: center; height: 44px; }
}

/* ───────── ④ 확인이 필요해요 — 머리 카드 아래 띠(위젯 아님 · js/dash-todo.js · 2026-11-24 사용자 결정) ─────────
   할 일이 있을 때만 선다 · 한 번에 한 건(줄 모양은 위젯 줄 .dw-row 그대로) · 제목 옆에 전체 건수 «N건».
   해결되면 그 건은 왼쪽으로 빠지고 다음 건이 오른쪽에서 밀려온다(220ms · 회차 분석 «확인 필요» 큐와 같은 방향 · 움직임을 줄인 기기는 바로 바뀐다). */
.dash-todo { display: flex; align-items: center; gap: 16px; margin: 0 0 var(--dash-gap, 20px); padding: 6px 14px 6px 22px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.dash-todo-h { flex: none; display: flex; align-items: center; gap: 8px; margin: 0; font-size: var(--text-xl); font-weight: 700; letter-spacing: -.01em; color: var(--text); white-space: nowrap; word-break: keep-all; }
.dash-todo-h .ui-ico { width: 20px; height: 20px; color: var(--warning-dark); }
.dash-todo-count { padding: 1px 9px; border-radius: var(--radius-pill); background: var(--bg-subtle); color: var(--text-muted); font-size: var(--text-xs); font-weight: 700; }
/* 편집 중 — 자리는 지키고(빠지면 위젯이 튄다 · R195 ⑥) 누를 수 없다(js/dash-todo.js inert · 누르면 화면을 떠나 편집이 날아간다) */
.dash-todo.is-editing { opacity: .55; }
.dash-todo-stage { flex: 1; min-width: 0; display: grid; padding-left: 16px; border-left: 1px solid var(--border); }
.dash-todo-stage > .dw-row { grid-area: 1 / 1; min-width: 0; border-top: 0; }
.dash-todo-stage > .is-out { animation: dashTodoOut 220ms ease-in forwards; pointer-events: none; }
.dash-todo-stage > .is-in { animation: dashTodoIn 220ms ease-out both; }
@keyframes dashTodoOut { to { transform: translateX(-48px); opacity: 0; } }
@keyframes dashTodoIn { from { transform: translateX(48px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .dash-todo-stage > .is-out, .dash-todo-stage > .is-in { animation: none; } }
@media (max-width: 600px) {
  .dash-todo { flex-wrap: wrap; gap: 2px 12px; padding: 10px 10px 2px 14px; }
  .dash-todo-h { font-size: var(--text-base); }
  .dash-todo-stage { flex: 1 1 100%; padding-left: 0; border-left: 0; }
}

/* ───────── ③ 이번 주 수업 ───────── */
.dw-wk { display: grid; gap: 3px; font-size: var(--text-sm); }
.dw-wk-hd { text-align: center; font-size: var(--text-sm); font-weight: 700; color: var(--text-muted); line-height: 24px; white-space: nowrap; }
.dw-wk-hd.is-today { color: var(--primary); }
.dw-wk-tm { text-align: right; padding-right: 6px; font-size: var(--text-xs); line-height: 30px; color: var(--text-muted); }
.dw-wk-c { min-height: 30px; border-radius: var(--radius-xs); background: var(--surface-hover); }
.dw-wk-c.is-today { background: var(--primary-soft); }
.dw-wk-ev { display: flex; align-items: center; justify-content: space-between; gap: 4px; min-width: 0; min-height: 30px; padding: 0 8px; border: 0; border-radius: var(--radius-xs);
  background: var(--primary-fill); color: var(--text-on-primary); font: inherit; font-size: var(--text-sm); font-weight: 700; cursor: pointer; overflow: hidden; white-space: nowrap; }
.dw-wk-ev span { overflow: hidden; text-overflow: ellipsis; }
.dw-wk-ev em { font-style: normal; font-size: var(--text-xs); flex: none; }
.dw-wk-ev.is-past { background: var(--bg-subtle); color: var(--text-muted); border: 1px solid var(--border); }
.dw-wk-ev.is-miss { background: var(--surface); color: var(--warning-dark); border: 1.5px dashed var(--warning); }
.dw-wk-ev.is-now { background: var(--danger-fill); color: var(--text-on-primary); }
.dw-wk-ev:focus-visible { outline: 3px solid var(--primary-tint); outline-offset: 1px; }
/* 손가락 기기에서는 칸·시각 줄도 44(R152 · 3A 스윕이 아이패드 미니 가로에서 30 을 찾았다 · 마우스 PC 는 30 그대로) */
@media (pointer: coarse) { .dw-wk-c, .dw-wk-ev { min-height: 44px; } .dw-wk-tm { line-height: 44px; } }
/* [R264 · 결정 1A] 주간 캘린더와 같은 표시 — 휴강(회색 칸 · 꼬리표) · 보강(주황 꼬리표) · 시작 전(흐림) · 시간 미정 칩(머리 줄 아래) */
.dw-wk-ev > span:first-child { flex: 1 1 auto; min-width: 0; text-align: left; }
.dw-wk-ev.is-cancel { background: var(--bg-subtle); color: var(--text-muted); border: 1px solid var(--text-muted); }   /* 점선은 «회차 없음»만 */
.dw-wk-ev.is-cancel em { padding: 0 6px; border: 1px solid var(--border-input); border-radius: var(--radius-pill); background: var(--surface); color: var(--text-muted); font-weight: 700; }   /* 테두리 꼬리표 — 다크에서도 밝은 면이 아니다 */
.dw-wk-ev.is-before { background: var(--bg-subtle); color: var(--text-muted); }
.dw-wk-kind { flex: none; padding: 0 6px; border-radius: var(--radius-pill); background: var(--warning-light); color: var(--warning-dark); font-size: var(--text-xs); font-weight: 700; }
.dw-wk-free { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dw-wk-chip { display: block; width: 100%; min-height: 24px; padding: 0 8px; border: 1px dashed var(--border-input); border-radius: var(--radius-pill); background: var(--surface);
  color: var(--text-body); font: inherit; font-size: var(--text-xs); font-weight: 700; text-align: left; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dw-wk-chip.is-past, .dw-wk-chip.is-cancel { color: var(--text-muted); }
.dw-wk-chip.is-cancel { text-decoration: line-through; }
.dw-wk-chip:focus-visible { outline: 3px solid var(--primary-tint); outline-offset: 1px; }
/* [R264 · 결정 2C] 겹친 수업 목록 — 대시보드 ⋯ 메뉴(.dash-wmenu)와 같은 상자 · 줄 = 이름 · 시각 · 상태 */
.dw-wk-pop { position: fixed; z-index: 1200; min-width: 208px; max-width: min(320px, calc(100vw - 16px)); max-height: calc(100vh - 16px); overflow-y: auto; overscroll-behavior: contain; padding: 4px; display: flex; flex-direction: column; gap: 1px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-md); }
.dw-wk-pop-it { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; padding: 6px 12px; border: 0; border-radius: var(--radius-xs);
  background: transparent; font: inherit; font-size: var(--text-sm); color: var(--text); text-align: left; cursor: pointer; }
.dw-wk-pop-it:hover { background: var(--bg-subtle); }
.dw-wk-pop-it:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.dw-wk-pop-it > span { flex: none; font-size: var(--text-xs); color: var(--text-muted); white-space: nowrap; }
.dw-wk-pop-it > span.is-miss { color: var(--warning-dark); }
.dw-wk-pop-it > span.is-now { color: var(--danger); }
@media (pointer: coarse) { .dw-wk-chip, .dw-wk-pop-it { min-height: 44px; } }
.dw-wk-day { display: none; }
html:not(.role-student) .dash-view:not(.dash-starter) .dash-flow .dw-wk { display: none; }
html:not(.role-student) .dash-view:not(.dash-starter) .dash-flow .dw-wk-day { display: block; }
.dw-wk-tabs { display: flex; gap: 4px; margin-bottom: 8px; }
.dw-wk-tabs button { flex: 1; height: 44px; border: 0; border-radius: 8px; background: var(--bg-subtle); color: var(--text-body); font: inherit; font-size: var(--text-sm); font-weight: 700; cursor: pointer; }
.dw-wk-tabs button[aria-selected="true"] { background: var(--primary-fill); color: var(--text-on-primary); }

/* ───────── ⑤ 내 수업 표 ───────── */
.dw-lt { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) 16px; gap: 10px; align-items: center; }
.dw-lt.has-ad { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) 16px; }
.dw-lt > * { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dw-lt-hd { height: 24px; font-size: var(--text-xs); font-weight: 700; color: var(--text-muted); }
.dw-lt.dw-row { min-height: 48px; padding: 4px 2px; font-size: var(--text-sm); color: var(--text-body); }
.dw-lt b { font-size: var(--text-base); color: var(--text); }
.dw-lt-m { display: block; font-size: var(--text-xs); color: var(--text-muted); }
.dw-lt-rep { border: 0; background: transparent; padding: 0; font: inherit; font-size: var(--text-sm); color: var(--text-body); cursor: pointer; text-align: left; }
/* [F-20261128-26-13 · 2026-11-30] 「리포트」 단추 높이 24(종전 21 · WCAG 2.5.8) · 줄(48)은 그대로다.
   ★24 는 손가락 기기가 아닐 때만★ — 손가락 기기는 css/common.css 의 44 바닥(:where · 무게 0)이 받는다. 여기 클래스 규칙이 그것을 이기면 44 → 24 로 작아진다(코드리뷰 2회차).
   «pointer: fine» 로만 걸면 포인터가 «없음»인 기기에서 빠져 «not … coarse» 로 건다(코드리뷰 4회차). */
/* inline-block 그대로 두고 줄 높이로 24 를 만든다 — inline-flex 로 하면 긴 글이 «…» 없이 잘린다(코드리뷰 3회차). */
@media not all and (pointer: coarse) { .dw-lt-rep { min-height: 24px; line-height: 24px; vertical-align: middle; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }
/* 초점 고리는 단추 «안쪽»에 — 칸(.dw-lt > * · overflow:hidden)이 바깥 그림자(전역 button:focus-visible)를 잘랐다(코드리뷰 3회차). */
.dw-lt-rep:focus-visible { box-shadow: none; outline: 2px solid var(--primary); outline-offset: -2px; border-radius: 4px; }
/* ★손가락 기기에서는 이 단추가 44 바닥(css/common.css · R152)을 받아 줄이 48 → 52 로 4px 커진다★ — 손가락 누름 자리 규칙이라 그대로 둔다(코드리뷰 5회차). */
/* 첫 칸 「… 수업 열기」 단추 — 줄이 단추였을 때의 글자 칸 모양 그대로(단추 꾸밈을 걷는다). 키보드 초점은 줄 전체에 그린다(종전 줄 초점과 같은 모양). */
.dw-lt-open { appearance: none; margin: 0; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; display: block; width: 100%; }
/* 수업 이름의 «…» 는 안쪽 줄에 건다 — 단추 자체의 말줄임을 안 그리는 엔진이 있다(파이어폭스 · 코드리뷰 4회차). */
.dw-lt-open b { display: block; overflow: hidden; text-overflow: ellipsis; }
.dw-lt-open:focus-visible { outline: 3px solid var(--primary-tint); outline-offset: 2px; border-radius: 4px; }
/* ★:has() 를 모르는 브라우저(사파리 < 15.4 · 크롬 < 105 · 파이어폭스 < 121)에서는 단추 자체 테두리가 남는다★ — 줄 테두리로 바꾸는 것은 아는 곳만. */
@supports selector(:has(*)) {
  .dw-lt-open:focus-visible { outline: none; box-shadow: none; }   /* 전역 button:focus-visible 그림자도 끈다 — 고리가 둘로 보였다(코드리뷰 2회차) */
  .dw-row:has(> .dw-lt-open:focus-visible) { outline: 3px solid var(--primary-tint); outline-offset: -2px; }
}
.dw-lt-rep:hover { color: var(--primary); text-decoration: underline; }
.dw-lt-ar { color: var(--text-muted); }
.dw-lt-search { height: 36px; width: 160px; border: 1px solid var(--border-input); border-radius: 8px; padding: 0 10px; font: inherit; font-size: var(--text-sm); }
html.v2:not(.role-student) .dash-view:not(.dash-starter) .dash-flow .dw-lt-hd { display: none; }
html.v2:not(.role-student) .dash-view:not(.dash-starter) .dash-flow .dw-lt,
html.v2:not(.role-student) .dash-view:not(.dash-starter) .dash-flow .dw-lt.has-ad { grid-template-columns: minmax(0, 1fr) auto 12px; }
html.v2:not(.role-student) .dash-view:not(.dash-starter) .dash-flow .dw-lt > .dw-lt-c3,
html.v2:not(.role-student) .dash-view:not(.dash-starter) .dash-flow .dw-lt > .dw-lt-c4 { display: none; }

/* ───────── 작은 크기 — 교사코드(1/4 · 낮게) · 요약 지표(1/3 · 낮게) ───────── */
html.v2:not(.role-student) .dash-view:not(.dash-starter) .dash-widget[data-type="profcode"] .alc-code-hint { display: none; }
html.v2:not(.role-student) .dash-view:not(.dash-starter) .dash-widget[data-type="kpis"]:not([data-w="12"]) .dq-kpi-sub { display: none; }

/* ───────── 줄 맞춤 보정 (2026-11-04 실화면) ───────── */
/* 준비한 회차가 없으면 요약 칸이 전체 폭 — 위 grid-template-areas 와 같은 무게로 덮는다 */
html.v2:not(.role-student) .dash-view:not(.dash-starter) .dash-head.dh-card.is-nonext { grid-template-areas: "hello act" "tiles tiles"; }
/* 숨긴 줄은 줄 모양(인라인 display:flex)보다 먼저 숨는다 — 공지 줄은 인라인 style 을 갖고 있다 */
html.v2:not(.role-student) .dash-view:not(.dash-starter) [data-fit-row][hidden] { display: none !important; }
/* 낮은(1단) 위젯은 제목줄 아래 간격을 줄여 두 줄이 들어가게 */
html.v2:not(.role-student) .dash-view:not(.dash-starter) .dash-widget[data-h="3"] .dq-card-h,
html.v2:not(.role-student) .dash-view:not(.dash-starter) .dash-widget[data-collapsed="1"] .dq-card-h { margin-bottom: 4px; }
.dw-row.is-sm { min-height: 36px; padding: 0 2px; }   /* 낮게(1단)에 두 줄 = 36 × 2 = 72 · 제목줄 아래 74px */
/* 공지 — 제목줄 오른쪽에 «모두 보기 · ＋ 새 공지»(따로 한 줄을 쓰지 않는다) · 낮게면 제목만 한 줄 */
html.v2:not(.role-student) .dash-view:not(.dash-starter) .dash-widget[data-type="announce"] .dash-widget-body { position: relative; overflow: visible; }
html.v2:not(.role-student) .dash-view:not(.dash-starter) .dash-widget[data-type="announce"] { overflow: visible; }
html.v2:not(.role-student) .dash-view:not(.dash-starter) .dash-widget[data-type="announce"] .alc-announce-card .alc-card-head { position: absolute; top: 14px; right: 18px; margin: 0; }
html.v2:not(.role-student) .dash-view:not(.dash-starter) .dash-widget[data-type="announce"] .alc-announce-row { padding: 6px 0 !important; align-items: center !important; }
html.v2:not(.role-student) .dash-view:not(.dash-starter) .dash-widget[data-type="announce"][data-h="3"] .alc-announce-meta { display: none; }
html.v2:not(.role-student) .dash-view:not(.dash-starter) .dash-widget[data-type="announce"] .alc-announce-ttl { font-size: var(--text-base); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 낮은 칸 줄 키 36 — 낮게(1단)에 두 줄(36 × 2 = 72 · 제목줄 아래 남는 74px)이 들어간다 · 줄 전체가 누르는 자리라 단추 키는 32 */
/* 공지 줄 키 36(⋮ 단추 36 · R244 ②) — 낮게에 두 줄 · 손가락 기기는 44 바닥(R152) 그대로라 줄이 커지면 fit 이 한 줄을 덜 보인다 */
html.v2:not(.role-student) .dash-view:not(.dash-starter) .dash-widget[data-type="announce"] .alc-announce-row { padding: 0 !important; min-height: 36px; }
/* 편집 중 — 제목줄 오른쪽은 편집 단추(⠿ · ⋯)의 자리다(R195 ⑦) · 휴대폰 머리 단추는 한 줄 */
html.v2:not(.role-student) .dash-view:not(.dash-starter) .dash-widget.editing[data-type="announce"] .alc-card-head { display: none; }
.dh-act { flex-wrap: nowrap; }
@media (max-width: 1100px) { .dh-act { width: max-content; } }
/* 편집 중 «모두 보기»는 누르지 않는다 — 화면을 떠나 편집이 날아간다(옛 .dash-more 와 같은 약속 · 자리는 남겨 키가 그대로) */
.dash-widget.editing .dw-more { visibility: hidden; pointer-events: none; }
/* 한글은 낱말 가운데서 끊지 않는다(R069) — 새 줄·머리 카드·달력 */
.dw-row, .dw-row-tx, .dh-card, .dw-wk, .dw-lt-hd, .dw-wk-pop { word-break: keep-all; }
/* 요약 지표 1/3 · 낮게 — 숫자 세 칸이 한 줄(옛 «720 미만 두 칸 + 마지막 칸 전폭»은 낮은 칸에서 셋째 값이 잘렸다) · 값 24 · 부제는 숨김(위) */
html.v2:not(.role-student) .dash-view:not(.dash-starter) .dash-widget[data-type="kpis"]:not([data-w="12"]) .dq-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
html.v2:not(.role-student) .dash-view:not(.dash-starter) .dash-widget[data-type="kpis"]:not([data-w="12"]) .dq-kpis > .dq-kpi:last-child { grid-column: auto; }
html.v2:not(.role-student) .dash-view:not(.dash-starter) .dash-widget[data-type="kpis"]:not([data-w="12"]) .dq-kpi { padding: 12px 14px; min-width: 0; }
html.v2:not(.role-student) .dash-view:not(.dash-starter) .dash-widget[data-type="kpis"]:not([data-w="12"]) .dq-kpi-val { font-size: var(--text-2xl); white-space: nowrap; }
/* 교사코드 1/4 · 낮게 — 코드와 «복사 · 재발급»이 한 줄(옛 줄바꿈은 낮은 칸에서 «재발급»이 잘렸다) · 설명 문장은 숨김(위) */
html.v2:not(.role-student) .dash-view:not(.dash-starter) .dash-widget[data-type="profcode"] .alc-code-display { flex-wrap: nowrap; gap: 6px; margin: 0; min-width: 0; }
html.v2:not(.role-student) .dash-view:not(.dash-starter) .dash-widget[data-type="profcode"] .alc-code-value { font-size: var(--text-xl); letter-spacing: .08em; padding: 4px 10px; min-width: 0; }
html.v2:not(.role-student) .dash-view:not(.dash-starter) .dash-widget[data-type="profcode"] .alc-code-display .btn { padding: 0 10px; flex: none; }
