feat(site,skill): 모바일 앱 수준 UX — 바텀내비·백 키 히스토리·바텀 시트·safe area·PWA 와 L6 시나리오 E2E

- HIG(탭바 5~6·시트)·M3(바텀내비 3~5·48dp)·NN/g·CSS-Tricks 조사(research/mobile-app-ux-v1.md) 후 Nielsen 10 감사로 위반 도출
- 바텀 내비 5탭 + 더보기 바텀 시트(그룹 헤더), 뷰·다이얼로그 pushState/popstate — 안드로이드 백 키가 앱 내 뒤로 작동
- safe area(env+max)·입력 16px(iOS 확대 방지)·coarse 44px 타깃·tap-highlight·overscroll 위생, 인쇄에서 모바일 크롬 제거
- PWA: manifest + sharp 생성 아이콘(가온=장부 문항, 두레=시간표 블록)
- tools/e2e.mjs L6 시나리오: RED 1,742 단언 318 실패 → GREEN 1,762/0, verify 체인 7계층 통과
- 실기기(안드로이드 에뮬레이터·Chrome) 텍스트 근거 검증 — 백 키·시트·탭 전환, iOS 는 WebKit(L4) 대체
- 스킬 내재화: mobile-app-ux.md, audit-gate 7계층·하니스 12~14, design-gate 터치타깃 검사, SKILL.md 규칙 7
- 도그푸드: 게이트가 죽은 선택자 8종·thresholds 병합 버그 적발 — CSS v22(양앱) 범프 후 전체 재검증
This commit is contained in:
Yun Chan 2026-08-23 14:33:15 +09:00
parent 72337b7ee0
commit 14cb138e1a
133 changed files with 2139 additions and 208 deletions

View file

@ -12,10 +12,12 @@
html {
-webkit-text-size-adjust: 100%;
-webkit-tap-highlight-color: transparent;
background: var(--muted);
}
body {
overscroll-behavior-y: none; /* 의도치 않은 pull-to-refresh 차단 */
background: var(--muted);
color: var(--foreground);
font-family: var(--font-body);
@ -46,7 +48,16 @@ h3 { font-size: var(--step-0); font-weight: 500; }
.muted { color: var(--muted-foreground); }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: 2px; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: var(--radius-xs); }
/* 모션 취향 존중 — 무한 루프·등장 모션 전부 정지. 앱은 여전히 완전히 작동한다 */
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
}
.skip {
position: absolute; left: -9999px; top: 0;
@ -91,7 +102,7 @@ h3 { font-size: var(--step-0); font-weight: 500; }
border-radius: var(--radius);
background: var(--accent);
display: grid; place-items: center;
color: #fff; font-size: 12px; font-weight: 600;
color: var(--on-accent); font-size: 12px; font-weight: 600;
}
.brand-mark::after { content: "가"; }
@ -150,7 +161,7 @@ h3 { font-size: var(--step-0); font-weight: 500; }
.avatar {
width: 28px; height: 28px;
display: inline-flex; align-items: center; justify-content: center;
border-radius: 999px;
border-radius: var(--radius-pill);
background: var(--primary); color: var(--primary-foreground);
font-size: var(--step-1); font-weight: 600;
}
@ -162,22 +173,21 @@ h3 { font-size: var(--step-0); font-weight: 500; }
.view.is-on { display: block; }
.view:focus { outline: none; }
.page-head {
display: flex; justify-content: space-between; align-items: flex-start;
gap: var(--space-4);
padding: var(--space-6) var(--space-6) var(--space-5);
}
.page-head h1 { letter-spacing: -0.025em; }
.view-sub { color: var(--muted-foreground); font-size: var(--step-0); margin-top: 4px; max-width: 46em; }
.view-head {
display: flex; justify-content: space-between; align-items: flex-start;
gap: var(--space-4);
padding: var(--space-6) var(--space-6) var(--space-5);
}
.stamp { display: none; }
.view > *:not(.view-head):not(.page-head) { margin-left: var(--space-6); margin-right: var(--space-6); }
.view > *:not(.view-head) { margin-left: var(--space-6); margin-right: var(--space-6); }
.view > *:last-child { margin-bottom: var(--space-6); }
/* 뷰 전환 — 상태 변화를 알리는 70ms 상승. 감사·스크린샷 대기(100ms) 안에 끝난다 */
@media (prefers-reduced-motion: no-preference) {
.view.is-on { animation: view-in 70ms var(--ease-out) both; }
@keyframes view-in { from { opacity: 0; transform: translateY(4px); } }
}
/* ── 카드 ── */
.panel {
background: var(--card);
@ -198,7 +208,7 @@ h3 { font-size: var(--step-0); font-weight: 500; }
}
.headline dt { font-size: var(--step-0); color: var(--muted-foreground); font-weight: 500; }
.headline dd { font-size: var(--step-3); font-weight: 600; letter-spacing: -0.03em; line-height: 1.2; font-variant-numeric: tabular-nums; margin-top: 4px; }
.headline .stat-sub, .rep-stat-sub { font-size: var(--step--1); color: var(--faint); margin: 6px 0 0; margin-inline-start: 0; font-variant-numeric: tabular-nums; }
.headline .stat-sub { font-size: var(--step--1); color: var(--faint); margin: 6px 0 0; margin-inline-start: 0; font-variant-numeric: tabular-nums; }
.dash-grid {
display: grid;
@ -245,7 +255,7 @@ tbody tr:hover { background: var(--muted); }
.state-wait { background: var(--warning-soft); color: var(--warning-ink); }
.state-off { background: var(--muted-2); color: var(--muted-foreground); }
.state-run { background: var(--accent-soft); color: var(--accent-ink); }
.state-run::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--accent); margin-right: 6px; animation: dot-pulse 1.6s ease infinite; }
.state-run::before { content: ""; width: 6px; height: 6px; border-radius: var(--radius-pill); background: var(--accent); margin-right: 6px; animation: dot-pulse 1.6s ease infinite; }
@keyframes dot-pulse { 50% { opacity: 0.35; } }
.t-warn { color: var(--warning-ink); font-weight: 500; }
@ -262,7 +272,7 @@ tbody tr:hover { background: var(--muted); }
.axis line { stroke: var(--border); stroke-width: 1; }
.axis-labels text { font-size: 11px; fill: var(--muted-foreground); }
.b-att { fill: var(--border-strong); }
.b-late { fill: #f59e0b; }
.b-late { fill: var(--late); }
.b-abs { fill: var(--danger); }
.b-hl { fill: var(--accent); }
.week-chart figcaption, .dist-chart figcaption {
@ -277,9 +287,9 @@ tbody tr:hover { background: var(--muted); }
.wk-sum td:first-child, .wk-sum th:first-child { padding-left: 0; white-space: nowrap; }
.wk-sum td:last-child, .wk-sum th:last-child { padding-right: 0; }
.key { display: inline-flex; align-items: center; gap: 6px; }
.key i { width: 8px; height: 8px; display: inline-block; border-radius: 2px; }
.key i { width: 8px; height: 8px; display: inline-block; border-radius: var(--radius-xs); }
.k-att { background: var(--border-strong); }
.k-late { background: #f59e0b; }
.k-late { background: var(--late); }
.k-abs { background: var(--danger); }
.hl { background: none; padding: 0; font-weight: 600; color: var(--foreground); }
@ -297,7 +307,6 @@ tbody tr:hover { background: var(--muted); }
.due-row span:last-child { font-size: var(--step-1); color: var(--muted-foreground); }
.due-row.is-static { cursor: default; }
.due-row.is-static:hover { background: none; }
.hl-count { color: var(--danger-ink); font-weight: 600; background: var(--danger-soft); border-radius: 4px; padding: 0 5px; }
/* ── 검색 + 세그먼트 ── */
.toolbar { display: flex; gap: var(--space-3); align-items: center; flex-wrap: wrap; margin: 0 0 var(--space-4); }
@ -319,7 +328,7 @@ tbody tr:hover { background: var(--muted); }
display: inline-flex; gap: 2px;
background: var(--muted-2);
border: 1px solid var(--border);
border-radius: 8px;
border-radius: var(--radius-md);
padding: 3px;
}
.chip {
@ -349,7 +358,7 @@ tbody tr:hover { background: var(--muted); }
.att-btn:hover { transform: scale(1.08); box-shadow: var(--shadow-sm); }
.att-btn:active { scale: 0.94; }
.att-btn.v-att { background: var(--success-soft); color: var(--success-ink); }
.att-btn.v-late { background: #fef3c7; color: var(--warning-ink); }
.att-btn.v-late { background: var(--late-soft); color: var(--warning-ink); }
.att-btn.v-abs { background: var(--danger-soft); color: var(--danger-ink); }
.week-nav { display: inline-flex; align-items: center; gap: var(--space-2); }
@ -389,15 +398,15 @@ tbody tr:hover { background: var(--muted); }
.cal-day.is-today .cal-num {
display: inline-grid; place-items: center;
width: 22px; height: 22px;
color: #fff; font-weight: 600;
background: #047857; /* 진한 에메랄드 — 흰 숫자 5.4:1 */
border-radius: 999px;
color: var(--on-accent); font-weight: 600;
background: var(--accent-strong); /* 흰 숫자 5.4:1 */
border-radius: var(--radius-pill);
}
.cal-ev {
display: block; margin-top: 2px;
font-size: var(--step--2); line-height: 1.35; word-break: keep-all;
background: var(--accent-soft); color: var(--accent-ink);
border-radius: 4px;
border-radius: var(--radius-xs);
padding: 1px 4px;
}
@ -426,22 +435,21 @@ tbody tr:hover { background: var(--muted); }
.empty-note { color: var(--muted-foreground); font-size: var(--step-0); }
/* ── 버튼 ── */
.btn-primary, .btn-outline, .btn-ghost, .btn-line, .btn-solid {
.btn-line, .btn-solid {
appearance: none; cursor: pointer; font: inherit;
font-size: var(--step-0); font-weight: 500;
height: 36px; padding: 0 var(--space-4);
border-radius: var(--radius);
display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
transition: background-color 100ms ease, border-color 100ms ease, color 100ms ease, scale 80ms ease;
transition: background-color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out), scale var(--dur-1) var(--ease-out);
white-space: nowrap;
}
.btn-primary, .btn-solid { background: var(--primary); border: 1px solid var(--primary); color: var(--primary-foreground); box-shadow: var(--shadow-sm); }
.btn-primary:hover, .btn-solid:hover { background: #27272a; border-color: #27272a; }
.btn-outline, .btn-line { background: var(--card); border: 1px solid var(--border-strong); color: var(--foreground); box-shadow: var(--shadow-sm); }
.btn-outline:hover, .btn-line:hover { background: var(--muted); }
.btn-ghost { background: none; border: 0; color: var(--muted-foreground); padding: 0 var(--space-3); }
.btn-ghost:hover { color: var(--foreground); background: var(--muted-2); }
.btn-primary:active, .btn-outline:active, .btn-line:active, .btn-solid:active, .btn-ghost:active { scale: 0.98; }
.btn-solid { background: var(--primary); border: 1px solid var(--primary); color: var(--primary-foreground); box-shadow: var(--shadow-sm); }
.btn-solid:hover:not(:disabled) { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn-solid:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.btn-line { background: var(--card); border: 1px solid var(--border-strong); color: var(--foreground); box-shadow: var(--shadow-sm); }
.btn-line:hover:not(:disabled) { background: var(--muted); }
.btn-line:active, .btn-solid:active:not(:disabled) { scale: 0.98; }
/* ── 모달 ── */
.modal {
@ -456,7 +464,7 @@ tbody tr:hover { background: var(--muted); }
overflow: hidden;
box-shadow: var(--shadow-xl);
}
.modal::backdrop { background: rgb(9 9 11 / 0.55); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.modal::backdrop { background: var(--backdrop-dim); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
@media (prefers-reduced-motion: no-preference) {
.modal[open] { animation: modal-in 200ms cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(0.99); } }
@ -477,14 +485,14 @@ tbody tr:hover { background: var(--muted); }
.mcover-mark {
position: absolute; right: -14px; bottom: -20px;
font-size: 8rem; font-weight: 600; line-height: 1;
color: rgb(250 250 250 / 0.05);
color: var(--panel-mark);
pointer-events: none; user-select: none;
}
.mcover-seal {
width: 44px; height: 44px;
display: inline-flex; align-items: center; justify-content: center;
font-size: var(--step-2); font-weight: 600;
color: #fff;
color: var(--on-accent);
background: var(--accent);
border-radius: var(--radius);
margin-bottom: var(--space-4);
@ -494,16 +502,16 @@ tbody tr:hover { background: var(--muted); }
font-size: var(--step-3); line-height: 1.2; font-weight: 600;
letter-spacing: -0.02em; word-break: keep-all;
}
.mcover-meta { color: #a1a1aa; font-size: var(--step-1); margin-top: var(--space-2); }
.mcover-stats { margin-top: var(--space-5); border-top: 1px solid rgb(250 250 250 / 0.12); }
.mcover-meta { color: var(--panel-muted); font-size: var(--step-1); margin-top: var(--space-2); }
.mcover-stats { margin-top: var(--space-5); border-top: 1px solid var(--panel-line); }
.mcover-stats > div {
display: flex; justify-content: space-between; align-items: baseline;
padding: var(--space-3) 0;
border-bottom: 1px solid rgb(250 250 250 / 0.12);
border-bottom: 1px solid var(--panel-line);
}
.mcover-stats dt { font-size: var(--step-1); color: #a1a1aa; }
.mcover-stats dt { font-size: var(--step-1); color: var(--panel-muted); }
.mcover-stats dd { font-size: var(--step-1); font-weight: 600; font-variant-numeric: tabular-nums; }
.mcover-foot { margin-top: auto; color: #71717a; font-size: var(--step--2); }
.mcover-foot { margin-top: auto; color: var(--panel-faint); font-size: var(--step--2); }
.msheet {
position: relative;
@ -540,7 +548,7 @@ tbody tr:hover { background: var(--muted); }
border-radius: var(--radius);
}
.att-mark.v-att { background: var(--success-soft); color: var(--success-ink); }
.att-mark.v-late { background: #fef3c7; color: var(--warning-ink); }
.att-mark.v-late { background: var(--late-soft); color: var(--warning-ink); }
.att-mark.v-abs { background: var(--danger-soft); color: var(--danger-ink); }
.att-date { font-size: var(--step--2); color: var(--faint); }
.att-strip-na { font-size: var(--step-1); color: var(--muted-foreground); }
@ -592,26 +600,26 @@ tbody tr:hover { background: var(--muted); }
/* ── 반응형 ── */
@media (max-width: 900px) {
.app { grid-template-columns: minmax(0, 1fr); }
/* 모바일 앱 헤더 — 내비는 바텀 탭으로 이동(HIG·M3), 사이드는 브랜드 바가 된다 */
.side {
position: static; height: auto;
flex-direction: row; align-items: center;
gap: var(--space-3); padding: var(--space-2) var(--space-4);
gap: var(--space-3);
padding: var(--space-2) max(var(--space-4), var(--safe-right)) var(--space-2) max(var(--space-4), var(--safe-left));
border-right: 0; border-bottom: 1px solid var(--border);
overflow-x: auto; overflow-y: hidden;
min-width: 0;
}
.brand { padding: 0 var(--space-2) 0 0; flex: none; white-space: nowrap; } /* 가로 스트립에서 찌그러져 글자가 세로로 쌓이는 것을 막는다 */
.side-nav { display: flex; gap: 2px; flex-wrap: nowrap; flex: 1 1 auto; min-width: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.side-group { display: none; }
.side-link { white-space: nowrap; width: auto; height: 32px; }
.side-foot { display: none; }
.brand { padding: 0; flex: none; white-space: nowrap; } /* 스트립에서 찌그러져 글자가 세로로 쌓이는 것을 막는다 */
.side-nav { display: none; }
.side-foot, .side-kbd { display: none; }
.main { padding-bottom: calc(72px + var(--safe-bottom)); } /* 바텀 내비 + 홈 인디케이터 확보 */
.dash-grid, .cal-layout, .counsel-grid { grid-template-columns: minmax(0, 1fr); }
.week-panel { grid-row: auto; }
.dist-body { grid-template-columns: minmax(0, 1fr); }
.view-head { flex-direction: column; align-items: flex-start; gap: var(--space-2); padding: var(--space-5) var(--space-4) var(--space-4); }
.view > *:not(.view-head):not(.page-head) { margin-inline: var(--space-4); }
.view > *:not(.view-head) { margin-inline: var(--space-4); }
.headline { gap: var(--space-2); }
.topbar { padding: 0 var(--space-4); min-width: 0; }
.topbar { padding: 0 max(var(--space-4), var(--safe-right)) 0 max(var(--space-4), var(--safe-left)); min-width: 0; }
.term-badge { display: none; }
.crumb { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-day { height: 56px; }
@ -639,7 +647,7 @@ tbody tr:hover { background: var(--muted); }
.bell:hover, .bell.is-open { background: var(--muted-2); color: var(--foreground); }
.bell-dot {
position: absolute; top: 4px; right: 4px;
width: 8px; height: 8px; border-radius: 999px;
width: 8px; height: 8px; border-radius: var(--radius-pill);
background: var(--danger); border: 2px solid var(--background);
}
.bell-menu {
@ -656,7 +664,7 @@ tbody tr:hover { background: var(--muted); }
}
.bell-head button {
border: none; background: none; cursor: pointer;
font-size: var(--step--1); color: var(--accent-ink); padding: 2px 4px; border-radius: 4px;
font-size: var(--step--1); color: var(--accent-ink); padding: 2px 4px; border-radius: var(--radius-xs);
}
.bell-head button:hover { background: var(--accent-soft); }
.ntc { display: flex; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--border); }
@ -676,7 +684,7 @@ tbody tr:hover { background: var(--muted); }
display: inline-flex; align-items: center; white-space: nowrap;
font-size: var(--step--2); font-weight: 500;
border: 1px solid var(--border); color: var(--muted-foreground);
border-radius: 999px; padding: 1px 8px;
border-radius: var(--radius-pill); padding: 1px 8px;
}
.tag-quiz { background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; }
.tag-exam { background: var(--warning-soft); color: var(--warning-ink); border-color: transparent; }
@ -688,8 +696,8 @@ tbody tr:hover { background: var(--muted); }
.prog-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
.prog-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-2); }
.prog-head strong { font-size: var(--step-0); font-weight: 600; }
.prog-bar { height: 6px; border-radius: 999px; background: var(--muted-2); overflow: hidden; margin-top: 10px; }
.prog-bar i { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.prog-bar { height: 6px; border-radius: var(--radius-pill); background: var(--muted-2); overflow: hidden; margin-top: 10px; }
.prog-bar i { display: block; height: 100%; border-radius: var(--radius-pill); background: var(--accent); }
.prog-meta { font-size: var(--step--1); color: var(--faint); margin-top: 8px; font-variant-numeric: tabular-nums; }
/* ── 공지 뷰 ── */
@ -704,7 +712,7 @@ tbody tr:hover { background: var(--muted); }
.notice-row:hover { background: var(--muted); }
.n-t { font-size: var(--step-0); font-weight: 600; display: flex; align-items: center; gap: 8px; min-width: 0; word-break: keep-all; }
.notice-row.is-unread .n-t::after {
content: ""; width: 6px; height: 6px; border-radius: 999px;
content: ""; width: 6px; height: 6px; border-radius: var(--radius-pill);
background: var(--accent); flex: none;
}
.pin { color: var(--accent-ink); flex: none; }
@ -777,7 +785,7 @@ tbody tr:hover { background: var(--muted); }
font-size: var(--step--1); color: var(--muted-foreground);
}
.lg-exam, .lg-due, .lg-admin, .lg-holi, .ev-dot {
width: 8px; height: 8px; border-radius: 2px; display: inline-block;
width: 8px; height: 8px; border-radius: var(--radius-xs); display: inline-block;
}
.lg-exam, .ev-dot.is-exam { background: var(--warning); }
.lg-due, .ev-dot.is-due { background: var(--accent); }
@ -805,3 +813,180 @@ tbody tr:hover { background: var(--muted); }
.notice-row { grid-template-columns: minmax(0, 1fr); }
.notice-row .tag { justify-self: start; }
}
/* ── 단축키 안내 — 물리 키 모양의 kbd. 콘솔 앱의 손가락 문법 ── */
kbd {
font-family: var(--font-mono); font-size: var(--step--2); line-height: 1;
color: var(--muted-foreground);
background: var(--card);
border: 1px solid var(--border-strong); border-bottom-width: 2px;
border-radius: var(--radius-xs);
padding: 2px 5px;
white-space: nowrap;
}
.side-kbd {
margin-top: var(--space-2);
padding: 0 var(--space-2) var(--space-2);
font-size: var(--step--2); color: var(--faint);
display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
}
/* ── 탑바 아이콘 버튼(인쇄) — 종과 같은 문법 ── */
.icon-btn {
width: 32px; height: 32px;
display: inline-flex; align-items: center; justify-content: center;
border-radius: var(--radius); border: none; background: none; cursor: pointer;
color: var(--muted-foreground);
transition: background-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out);
}
.icon-btn:hover { background: var(--muted-2); color: var(--foreground); }
/* ── 채점 검증 — 범위 밖 점수는 저장을 막고 이유를 말한다 ── */
.grade-table input.score.is-bad {
border-color: var(--danger);
background: var(--danger-soft);
}
.grade-table input.score[aria-invalid="true"]:focus {
border-color: var(--danger);
box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 15%, transparent);
}
.score-warn {
font-size: var(--step-1); line-height: 1.5; word-break: keep-all;
color: var(--danger-ink);
background: var(--danger-soft);
border: 1px solid color-mix(in srgb, var(--danger) 25%, transparent);
border-radius: var(--radius);
padding: var(--space-2) var(--space-3);
}
/* ── 인쇄 — 학적부의 본연: 활성 화면을 서류로. 크롬은 물러나고 내용만 ── */
@media print {
@page { size: A4; margin: 12mm; }
html, body { background: var(--print-paper); }
.side, .topbar, .skip, .toolbar, .att-chips, .panel-note, .side-kbd, .icon-btn { display: none !important; }
.app { display: block; }
.view { display: none !important; }
.view.is-on { display: block !important; animation: none; }
.view > *:not(.view-head) { margin-inline: 0; }
.view > *:last-child { margin-bottom: 0; }
.view-head { padding: 0 0 10pt; }
h1, h2.v-h { font-size: 15pt; }
.view-sub { font-size: 9.5pt; }
.panel, .headline > div, .statline > div, .counsel-card {
box-shadow: none; border-color: var(--print-line); break-inside: avoid;
}
.statline { display: block; }
.statline > div { border: 0; padding: 0 12pt 0 0; }
.table-wrap { overflow: visible; }
table { font-size: 9.5pt; }
thead th, tbody tr, .due-list li { break-inside: avoid; }
tbody tr:hover { background: none; }
.att-btn { box-shadow: none; }
.att-btn, .att-mark, .state, .tag { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
.row-open, .due-row { text-decoration: none; }
/* 모달(학적 카드·채점)이 열려 있으면 앱 대신 그 서류만 인쇄한다 */
dialog[open].modal {
display: block; position: static; width: 100%; max-height: none;
border: 0; box-shadow: none;
}
dialog[open].modal::backdrop { display: none; }
body:has(dialog[open].modal) .app { display: none; }
.mspread { grid-template-columns: 200pt minmax(0, 1fr); max-height: none; }
.mcover { background: var(--primary) !important; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
.msheet { overflow: visible; }
.modal-close { display: none; }
}
/* 모바일 가로 스트립에는 kbd 안내가 들어갈 자리가 없다 — 기본 규칙보다 뒤에 있어야 이긴다 */
@media (max-width: 900px) {
.side-kbd { display: none; }
}
/* ── 모바일 앱 기반 — 표준 위생(WebKit·M3·CSS-Tricks 조사 research/mobile-app-ux-v1.md) ── */
:is(button, a, input, select, textarea) { touch-action: manipulation; } /* 더블탭 줌 지연 제거 */
@media (max-width: 680px) {
/* iOS 포커스 자동 확대 방지(CSS-Tricks) — #q·.note-form input 가 font:inherit 로
요소 선택자를 덮으므로 같은 명시도 이상으로 파일 뒤에서 이긴다 */
input, select, textarea,
#q, .note-form input, .grade-table input.score { font-size: 16px; }
}
/* ── 바텀 내비 — HIG 탭바(5~6 이하)·M3 바텀 내비(3~5 목적지·48dp). 나머지 화면은 더보기 시트로 ── */
.bottom-nav {
position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
display: none;
background: var(--card);
border-top: 1px solid var(--border);
padding: 6px max(var(--space-2), var(--safe-left)) calc(6px + var(--safe-bottom)) max(var(--space-2), var(--safe-right));
}
@media (max-width: 900px) { .bottom-nav { display: grid; grid-auto-flow: column; } }
.bnav-item {
appearance: none; background: none; border: 0; cursor: pointer; font: inherit;
display: grid; justify-items: center; align-content: center; gap: 3px;
min-height: 52px; min-width: 48px; padding: 4px 2px;
border-radius: var(--radius);
color: var(--muted-foreground);
}
.bnav-item span { font-size: var(--step--2); font-weight: 500; }
.bnav-item.is-current { color: var(--accent-ink); font-weight: 600; }
.bnav-item.is-current svg { color: var(--accent); }
/* ── 더보기 시트 — 전체 화면 원장. 그룹 문법은 데스크톱 내비와 같다 ── */
.more-sheet { width: min(94vw, 440px); }
.more-head {
display: flex; justify-content: space-between; align-items: center;
padding: var(--space-4) var(--space-5) var(--space-2);
}
.more-head h2 { font-size: var(--step-2); }
.more-list {
display: grid; overflow-y: auto; overscroll-behavior: contain;
padding: var(--space-2) var(--space-4) calc(var(--space-4) + var(--safe-bottom));
}
.more-group {
font-size: var(--step-1); font-weight: 500; color: var(--muted-foreground);
padding: var(--space-3) var(--space-2) var(--space-1);
}
.more-item {
appearance: none; background: none; border: 0; cursor: pointer; font: inherit; text-align: left;
display: flex; align-items: center; gap: var(--space-3);
min-height: 48px; padding: var(--space-2);
border-radius: var(--radius); color: var(--foreground);
}
.more-item svg { color: var(--muted-foreground); flex: none; }
.more-item.is-current { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.more-item.is-current svg { color: var(--accent); }
/* ── 바텀 시트(≤680) — 모바일 모달은 하단 시트(NN/g·HIG). 그래버·상단 라운드·내부 스크롤 ── */
@media (max-width: 680px) {
dialog.modal {
top: auto; bottom: 0; left: 0; right: 0;
margin: 0 auto;
width: 100%; max-width: 100%;
max-height: 92dvh;
border-left: 0; border-right: 0; border-bottom: 0;
border-radius: var(--radius-lg) var(--radius-lg) 0 0;
animation: sheet-up var(--dur-3) var(--ease-out) both;
}
dialog.modal::before { /* 그래버 — 시트의 표준 존재 표시 */
content: ""; position: absolute; top: 8px; left: 50%; translate: -50% 0;
width: 36px; height: 4px; border-radius: var(--radius-pill);
background: var(--border-strong); z-index: 3;
}
@keyframes sheet-up { from { transform: translateY(24px); opacity: 0; } }
.modal-inner { max-height: calc(92dvh - 16px); overflow-y: auto; }
.mspread { max-height: 92dvh; }
}
/* ── 터치 타깃 — M3 48dp·HIG 44pt 정신의 44px 하한(coarse 포인터에서만) ── */
@media (pointer: coarse) {
.chip, .give-btn, .btn-line, .btn-solid, .bell-head button { min-height: 44px; }
.icon-btn, .bell, .modal-close { width: 44px; height: 44px; }
#q { min-height: 44px; }
.att-btn { width: 44px; height: 44px; }
.side-link { height: 44px; }
.grade-table input.score { height: 44px; }
}
/* 인쇄·데스크톱에서 모바일 전용 크롬은 존재하지 않는다 */
@media print { .bottom-nav, #more-dialog { display: none !important; } }