feat(skill): 자율 검증 폐쇄 루프 내재화 — 0.6.0
Some checks failed
ci / build (push) Failing after 5s

- 핵심 규칙 6: 완료의 정의는 게이트 통과. 사용자를 QA로 쓰지 않는다
- 5단계 기계 검사 4번째: design-gate 실행 의무화
- references/audit-gate.md: 사고-검사 매핑, SEO/meta 체크리스트, OS/브라우저 특성, 하니스 규칙
- tools/design-gate.mjs: 범용 게이트(메타/SEO·대비·수축·리듬·트랙·스케일×폭 + 옵션 L0/L3/L4, checks 깊은 병합)
- 리듬·트랙 불변식: 숫자 라벨 등폭·빈 셀 트랙 균일·등간격 — 시간표 자동배치 결함 재현 픽스처 검출, 앱 15뷰 통과(오탐 0)

feat(site): 관리 앱 2종 프로덕션 콘솔(v6→v18)

- 가온 학적부 9뷰·두레 수강신청 6뷰: shadcn 문법, Pretendard/Noto Serif/IBM Plex 폰트 전략, 볼드 금지(400/500/600), WCAG AA 대비 전면 교정, 한글 keep-all 조판
- LMS 필수 요소(알림 센터·공지·진도·평가 유형·출결 사유·학점 경고), 12명 기준 데이터 정합, SEO 구조(h1 유일·OG/twitter·og.png)
- 시간표 자동배치 결함 수리(명시적 격자 좌표)
- QA 게이트: L0 stylelint/html-validate · L1 단위 30 · L2 감사 61+불변식 · L3 시각회귀 30화면 · L4 WebKit · L5 키보드 탐색 — npm run verify 실패 시 배포 금지 체인
This commit is contained in:
Yun Chan 2026-08-22 21:22:05 +09:00
parent 78ddc8b61a
commit 72337b7ee0
226 changed files with 18212 additions and 380 deletions

View file

@ -0,0 +1,57 @@
/* 가온 학적부 — 순수 계산 로직. 브라우저와 Node 테스트가 같은 함수를 공유한다. */
(function (global) {
"use strict";
const attSummary = (row) => {
const days = (row || []).filter((v) => v !== null && v !== undefined);
if (!days.length) return "휴학";
const att = days.filter((v) => v === 2).length;
return `${Math.round((att / days.length) * 100)}%`;
};
// 일별 합계 — marks 는 '행 배열'의 목록이다. v11 사고(행 자체를 세어 0/3) 방지가 이 함수의 존재 이유.
const dayTotal = (marks, d) =>
marks.filter((row) => row && row[d] !== null && row[d] !== undefined).length;
const dayPresent = (marks, d) =>
marks.filter((row) => row && row[d] === 2).length;
const counts = (marks) => {
const flat = (marks || []).filter(Boolean).flat();
const att = flat.filter((v) => v === 2).length;
const late = flat.filter((v) => v === 1).length;
const abs = flat.filter((v) => v === 0).length;
return {
att, late, abs, total: flat.length,
rate: flat.length ? Math.round((att / flat.length) * 100) : 0,
};
};
// 명단 통계 — 0명 나눗셈 가드 포함
const rosterStats = (students) => {
const list = students || [];
const active = list.filter((s) => s.status === "재학");
const avgAtt = active.length
? Math.round(active.reduce((a, s) => a + (s.att || 0), 0) / active.length)
: 0;
const hw = active.reduce(
(a, s) => {
const [done, total] = String(s.hw || "0/0").split("/").map(Number);
return { done: a.done + (done || 0), total: a.total + (total || 0) };
},
{ done: 0, total: 0 }
);
return {
total: list.length,
active: active.length,
off: list.length - active.length,
avgAtt,
hwDone: hw.done,
hwTotal: hw.total,
hwRate: hw.total ? Math.round((hw.done / hw.total) * 100) : 0,
};
};
const api = { attSummary, dayTotal, dayPresent, counts, rosterStats };
global.GAON = api;
if (typeof module !== "undefined") module.exports = api;
})(typeof window !== "undefined" ? window : globalThis);

File diff suppressed because it is too large Load diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 111 KiB

View file

@ -0,0 +1,807 @@
@import url("./tokens.css");
/* ==========================================================================
가온 학적부 프로덕션 콘솔 (shadcn/ui new-york 문법의 바닐라 이식)
컨트롤 h-9 · 리듬 · 카드 radius 12px · shadow-sm 문법이 품질.
========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }
* { margin: 0; }
html {
-webkit-text-size-adjust: 100%;
background: var(--muted);
}
body {
background: var(--muted);
color: var(--foreground);
font-family: var(--font-body);
font-synthesis-weight: none;
-webkit-text-size-adjust: 100%; text-size-adjust: 100%; /* 합성 볼드 금지 — 없는 웨이트는 가늘게 떨어진다 */
font-size: var(--step-0);
line-height: var(--leading-normal);
-webkit-font-smoothing: antialiased;
}
:where(h1, h2, h3) { line-height: var(--leading-tight); font-weight: 600; word-break: keep-all; }
strong, b { font-weight: 600; } /* UA 기본 700 볼드 재정의 */
h1, h2.v-h {
font-size: var(--step-4); font-weight: 600;
font-family: var(--font-display); /* 학적부 서류의 명조 결 — 큰 제목에만 */
letter-spacing: -0.01em;
text-wrap: balance;
}
@media (max-width: 680px) {
h1, h2.v-h { font-size: min(1.5rem, 6.4vw); } /* 뷰포트 단위 — 기기 글꼴 확대에도 제목은 부서지지 않는다 */
}
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-0); font-weight: 500; }
:where(p, li, td, th, dd, figcaption) { word-break: keep-all; overflow-wrap: anywhere; }
.mono { font-family: var(--font-mono); font-size: var(--font-mono-size); font-variant-numeric: tabular-nums; }
.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; }
.skip {
position: absolute; left: -9999px; top: 0;
background: var(--primary); color: var(--primary-foreground);
padding: var(--space-3) var(--space-4); z-index: 100; border-radius: var(--radius);
}
.skip:focus { left: var(--space-4); }
.sr-only {
position: absolute; width: 1px; height: 1px; margin: -1px;
overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
/* ── 앱 뼈대: 사이드바 244px + 본문 ── */
.app {
display: grid;
grid-template-columns: 244px minmax(0, 1fr);
min-height: 100dvh;
background: var(--background);
}
.side {
background: var(--background);
border-right: 1px solid var(--border);
display: flex;
flex-direction: column;
gap: var(--space-3);
padding: var(--space-4) var(--space-3);
position: sticky;
top: 0;
height: 100dvh;
overflow-y: auto;
}
.brand {
display: flex; align-items: center; gap: var(--space-2);
color: var(--foreground); text-decoration: none;
font-weight: 600; font-size: var(--step-1);
padding: var(--space-2) var(--space-2) var(--space-3);
}
.brand-mark {
width: 24px; height: 24px; flex: none;
border-radius: var(--radius);
background: var(--accent);
display: grid; place-items: center;
color: #fff; font-size: 12px; font-weight: 600;
}
.brand-mark::after { content: "가"; }
.side-nav { display: grid; gap: 1px; }
.side-group {
font-size: var(--step-1);
font-weight: 500;
color: var(--muted-foreground);
padding: var(--space-4) var(--space-2) var(--space-1);
}
.side-link {
appearance: none; border: 0; background: none; cursor: pointer;
display: flex; align-items: center; gap: var(--space-2);
width: 100%;
text-align: left; color: var(--muted-foreground);
font: inherit; font-size: var(--step-0); font-weight: 500;
height: 34px;
padding: 0 var(--space-2);
border-radius: var(--radius);
transition: background-color 100ms ease, color 100ms ease;
}
.side-link svg { flex: none; opacity: 0.9; }
.side-link:hover { color: var(--foreground); background: var(--muted-2); }
.side-link.is-current { color: var(--foreground); background: var(--muted-2); font-weight: 600; }
.side-link.is-current svg { color: var(--accent); opacity: 1; }
.side-foot {
margin-top: auto;
font-size: var(--step-1);
color: var(--muted-foreground);
line-height: 1.5;
padding: var(--space-3) var(--space-2);
border-top: 1px solid var(--border);
}
/* ── 탑바 ── */
.topbar {
height: 52px;
display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
padding: 0 var(--space-6);
border-bottom: 1px solid var(--border);
background: var(--background);
flex: none;
}
.crumb { display: flex; align-items: center; gap: var(--space-2); font-size: var(--step-0); color: var(--muted-foreground); }
.crumb strong { color: var(--foreground); font-weight: 600; }
.topbar-right { display: flex; align-items: center; gap: var(--space-3); }
.term-badge {
display: inline-flex; align-items: center;
font-size: var(--step-1); font-weight: 500;
color: var(--muted-foreground);
background: var(--muted-2);
border-radius: var(--radius);
padding: 3px 8px;
white-space: nowrap;
}
.avatar {
width: 28px; height: 28px;
display: inline-flex; align-items: center; justify-content: center;
border-radius: 999px;
background: var(--primary); color: var(--primary-foreground);
font-size: var(--step-1); font-weight: 600;
}
/* ── 본문 ── */
.main { min-width: 0; display: flex; flex-direction: column; }
.view { display: none; }
.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 > *:last-child { margin-bottom: var(--space-6); }
/* ── 카드 ── */
.panel {
background: var(--card);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
box-shadow: var(--shadow-sm);
padding: var(--space-5);
min-width: 0;
}
.panel h2 { margin-bottom: var(--space-4); font-size: var(--step-2); }
.panel-note { font-size: var(--step-1); color: var(--faint); margin-top: var(--space-3); }
/* 통계 카드 */
.headline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.headline > div {
background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
box-shadow: var(--shadow-sm); padding: var(--space-4) var(--space-5);
}
.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; }
.dash-grid {
display: grid;
grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
gap: var(--space-4);
align-items: start;
margin-top: var(--space-4);
}
.week-panel { grid-row: span 2; }
/* ── 표 ── */
.table-wrap { overflow-x: auto; overflow-y: hidden; }
table { width: 100%; border-collapse: collapse; }
thead th {
text-align: left; font-weight: 500; font-size: var(--step-1);
color: var(--muted-foreground); padding: 0 var(--space-3) var(--space-3);
border-bottom: 1px solid var(--border);
height: 36px; white-space: nowrap;
}
tbody td, tbody th { padding: var(--space-3); border-bottom: 1px solid var(--border); vertical-align: middle; text-align: left; }
tbody th { font-weight: 500; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody tr { transition: background-color 80ms ease; }
tbody tr:hover { background: var(--muted); }
.tsum { padding: var(--space-3); font-size: var(--step--1); color: var(--muted-foreground); border-top: 1px solid var(--border); font-variant-numeric: tabular-nums; white-space: nowrap; }
.row-open {
appearance: none; border: 0; background: none; padding: 0;
font: inherit; font-weight: 500; color: var(--foreground);
cursor: pointer; text-align: left;
transition: color 80ms ease;
}
.row-open:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
/* ── 배지 ── */
.state {
display: inline-flex; align-items: center;
font-size: var(--step-1); font-weight: 500;
border-radius: var(--radius);
padding: 2px 8px;
white-space: nowrap;
background: var(--success-soft); color: var(--success-ink);
}
.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; }
@keyframes dot-pulse { 50% { opacity: 0.35; } }
.t-warn { color: var(--warning-ink); font-weight: 500; }
/* ── 차트 ── */
.week-chart svg { display: block; width: 100%; height: auto; }
.dist-chart svg { display: block; height: 200px; width: auto; max-width: 100%; margin-inline: auto; }
.dist-chart .bars text { font-size: 11px; font-weight: 600; fill: var(--muted-foreground); }
.dist-body { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--space-6); align-items: center; }
.dist-stats { border-left: 1px solid var(--border); padding-left: var(--space-5); }
.dist-stats > div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); padding: 9px 0; border-bottom: 1px solid var(--border); }
.dist-stats > div:last-child { border-bottom: 0; }
.dist-stats dt { font-size: var(--step-0); color: var(--muted-foreground); }
.dist-stats dd { font-weight: 600; font-variant-numeric: tabular-nums; }
.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-abs { fill: var(--danger); }
.b-hl { fill: var(--accent); }
.week-chart figcaption, .dist-chart figcaption {
display: flex; gap: var(--space-4);
font-size: var(--step-1); color: var(--muted-foreground);
margin-top: var(--space-3);
}
.wk-sum { margin-top: var(--space-4); border-top: 1px solid var(--border); }
.wk-sum thead th { padding: 8px var(--space-2); }
.wk-sum tbody td { padding: 7px var(--space-2); }
.wk-sum tfoot td { padding: 8px var(--space-2); border-top: 1px solid var(--border-strong); font-weight: 600; }
.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; }
.k-att { background: var(--border-strong); }
.k-late { background: #f59e0b; }
.k-abs { background: var(--danger); }
.hl { background: none; padding: 0; font-weight: 600; color: var(--foreground); }
/* ── 마감 목록 ── */
.due-list { list-style: none; margin: 0; padding: 0; display: grid; }
.due-row {
appearance: none; background: none; border: 0;
width: 100%; display: grid; gap: 2px; text-align: left;
font: inherit; padding: var(--space-3);
cursor: pointer; border-bottom: 1px solid var(--border);
transition: background-color 80ms ease;
}
.due-list li:last-child .due-row { border-bottom: 0; }
.due-row: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); }
#q {
font: inherit; color: var(--foreground);
background: var(--card);
border: 1px solid var(--border-strong);
border-radius: var(--radius);
height: 36px;
padding: 0 var(--space-3);
min-width: 13rem;
box-shadow: var(--shadow-sm);
transition: border-color 100ms ease, box-shadow 100ms ease;
}
#q:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent); }
#q::placeholder { color: var(--faint); }
.chips {
display: inline-flex; gap: 2px;
background: var(--muted-2);
border: 1px solid var(--border);
border-radius: 8px;
padding: 3px;
}
.chip {
appearance: none; cursor: pointer; font: inherit;
font-size: var(--step-1); font-weight: 500;
background: none; color: var(--muted-foreground);
border: 0; border-radius: var(--radius);
height: 28px; padding: 0 var(--space-3);
display: inline-flex; align-items: center;
transition: background-color 100ms ease, color 100ms ease, box-shadow 100ms ease;
}
.chip:hover { color: var(--foreground); }
.chip.is-on { background: var(--card); color: var(--foreground); box-shadow: var(--shadow-sm); }
/* ── 출석부 히트맵 ── */
.att-day { text-align: center; }
.att-cell { text-align: center; padding: 3px; }
.att-cell.is-na { color: var(--faint); }
.att-btn {
appearance: none; border: 1px solid transparent; cursor: pointer;
font: inherit; font-size: var(--step-1); line-height: 1; font-weight: 600;
width: 32px; height: 32px;
display: inline-flex; align-items: center; justify-content: center;
border-radius: var(--radius);
transition: transform 100ms ease, box-shadow 100ms ease;
}
.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-abs { background: var(--danger-soft); color: var(--danger-ink); }
.week-nav { display: inline-flex; align-items: center; gap: var(--space-2); }
.week-label { min-width: 4.5em; text-align: center; color: var(--muted-foreground); font-size: var(--step-1); }
.week-nav .btn-line:disabled { opacity: 0.4; cursor: not-allowed; }
/* ── 자료실 ── */
.give-btn {
appearance: none; cursor: pointer; font: inherit;
font-size: var(--step-1); font-weight: 500;
background: none; color: var(--muted-foreground);
border: 1px solid var(--border-strong); border-radius: var(--radius);
height: 28px; padding: 0 10px;
transition: all 100ms ease;
white-space: nowrap;
}
.give-btn:hover { border-color: var(--foreground); color: var(--foreground); }
.give-btn.is-given { background: var(--success-soft); border-color: transparent; color: var(--success-ink); }
/* ── 학사 일정 ── */
.cal-layout {
display: grid;
grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
gap: var(--space-4);
align-items: start;
}
.cal { table-layout: fixed; }
.cal th { text-align: center; font-size: var(--step-1); height: 32px; padding: 0; }
.cal-day {
height: 76px; padding: var(--space-1);
border: 1px solid var(--border);
vertical-align: top;
}
.cal-day:nth-child(7n+6), .cal-day:nth-child(7n+7) { background: var(--muted); }
.cal-day.is-empty { border: 0; background: none !important; }
.cal-num { display: block; color: var(--muted-foreground); font-size: var(--step-1); font-weight: 500; }
.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;
}
.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;
padding: 1px 4px;
}
/* ── 상담 기록 ── */
.counsel-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: var(--space-3);
}
.counsel-card {
appearance: none; cursor: pointer; font: inherit; text-align: left;
display: grid; gap: 4px;
background: var(--card);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
box-shadow: var(--shadow-sm);
padding: var(--space-4);
transition: border-color 100ms ease, box-shadow 100ms ease;
}
.counsel-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-lg); }
.counsel-card:active { scale: 0.995; }
.co-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); }
.co-head strong { font-weight: 600; }
.co-sub { font-size: var(--step-1); }
.co-text { font-size: var(--step-0); line-height: var(--leading-normal); word-break: keep-all; }
.empty-note { color: var(--muted-foreground); font-size: var(--step-0); }
/* ── 버튼 ── */
.btn-primary, .btn-outline, .btn-ghost, .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;
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; }
/* ── 모달 ── */
.modal {
margin: auto;
width: min(94vw, 860px);
max-height: min(86dvh, 760px);
padding: 0;
border: 1px solid var(--border);
border-radius: var(--radius-lg);
background: var(--card);
color: var(--foreground);
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); }
@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); } }
}
.mspread {
display: grid;
grid-template-columns: 264px minmax(0, 1fr);
max-height: min(86dvh, 760px);
}
.mcover {
position: relative;
background: var(--primary);
color: var(--primary-foreground);
padding: var(--space-6);
display: flex; flex-direction: column;
overflow: hidden;
}
.mcover-mark {
position: absolute; right: -14px; bottom: -20px;
font-size: 8rem; font-weight: 600; line-height: 1;
color: rgb(250 250 250 / 0.05);
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;
background: var(--accent);
border-radius: var(--radius);
margin-bottom: var(--space-4);
}
.mcover-name {
font-family: var(--font-display);
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-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);
}
.mcover-stats dt { font-size: var(--step-1); color: #a1a1aa; }
.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); }
.msheet {
position: relative;
background: var(--card);
padding: var(--space-6);
overflow-y: auto;
overscroll-behavior: contain;
display: grid; gap: var(--space-5);
align-content: start;
min-height: 340px;
}
.msec h3 { color: var(--muted-foreground); margin-bottom: var(--space-3); font-weight: 500; font-size: var(--step-0); }
.modal-title { font-size: var(--step-3); letter-spacing: -0.02em; }
.modal-meta { color: var(--muted-foreground); margin-top: 2px; }
.modal-close {
position: absolute; top: var(--space-4); right: var(--space-4);
width: 32px; height: 32px;
display: inline-flex; align-items: center; justify-content: center;
border: 1px solid var(--border); border-radius: var(--radius);
background: var(--card); color: var(--muted-foreground); cursor: pointer;
transition: background-color 100ms ease, color 100ms ease;
z-index: 2;
}
.modal-close:hover { background: var(--muted-2); color: var(--foreground); }
.modal-inner { position: relative; padding: var(--space-6); display: grid; gap: var(--space-4); }
/* 출석 스트립 */
.att-strip { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.att-cell2 { display: grid; justify-items: center; gap: 4px; min-width: 40px; }
.att-mark {
width: 30px; height: 30px;
display: inline-flex; align-items: center; justify-content: center;
font-size: var(--step-1); line-height: 1; font-weight: 600;
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-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); }
/* 상담 타임라인 */
#stu-note-list {
list-style: none; margin: 0 0 var(--space-4); padding: 0;
display: grid;
}
#stu-note-list li {
display: grid; grid-template-columns: 3rem minmax(0, 1fr);
gap: var(--space-3); align-items: baseline;
padding: var(--space-3) 0;
border-bottom: 1px solid var(--border);
font-size: var(--step-0);
}
.note-date { color: var(--faint); font-size: var(--step-1); }
.note-text { word-break: keep-all; }
.note-form { display: flex; gap: var(--space-2); }
.note-form input {
flex: 1; min-width: 0; font: inherit; font-size: var(--step-0);
height: 36px;
border: 1px solid var(--border-strong); border-radius: var(--radius);
background: var(--card); color: var(--foreground);
padding: 0 var(--space-3);
box-shadow: var(--shadow-sm);
}
.note-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent); }
.note-form input::placeholder { color: var(--faint); }
/* 채점 */
.as-summary {
font-size: var(--step-0); color: var(--muted-foreground);
border-top: 1px solid var(--border);
padding-top: var(--space-3);
}
.as-summary strong { color: var(--foreground); font-weight: 600; font-size: var(--step-2); font-variant-numeric: tabular-nums; }
.grade-table input.score {
width: 5rem; font-family: var(--font-mono); font-size: var(--font-mono-size);
text-align: right; color: var(--foreground);
height: 30px;
border: 1px solid var(--border-strong); border-radius: var(--radius);
background: var(--card);
}
.grade-table input.score:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent); }
.modal-actions { display: flex; align-items: center; gap: var(--space-4); }
.modal-note { font-size: var(--step-1); }
/* ── 반응형 ── */
@media (max-width: 900px) {
.app { grid-template-columns: minmax(0, 1fr); }
.side {
position: static; height: auto;
flex-direction: row; align-items: center;
gap: var(--space-3); padding: var(--space-2) var(--space-4);
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; }
.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); }
.headline { gap: var(--space-2); }
.topbar { padding: 0 var(--space-4); min-width: 0; }
.term-badge { display: none; }
.crumb { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-day { height: 56px; }
}
@media (max-width: 680px) {
.mspread { grid-template-columns: minmax(0, 1fr); }
.mcover { padding: var(--space-4); flex-direction: row; align-items: center; gap: var(--space-3); }
.mcover-seal { width: 40px; height: 40px; margin-bottom: 0; font-size: var(--step-1); }
.mcover-name { font-size: var(--step-2); }
.mcover-meta { margin-top: 2px; }
.mcover-stats, .mcover-foot { display: none; }
.mcover-mark { font-size: 5rem; }
.msheet { padding: var(--space-4); min-height: 0; }
.headline { grid-template-columns: minmax(0, 1fr); }
}
/* ── 알림 센터 ── */
.bell-wrap { position: relative; }
.bell {
position: relative; 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 80ms ease, color 80ms ease;
}
.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;
background: var(--danger); border: 2px solid var(--background);
}
.bell-menu {
display: none; position: absolute; top: 40px; right: 0; z-index: 40;
width: min(340px, calc(100vw - 32px));
background: var(--card); border: 1px solid var(--border);
border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden;
}
.bell-menu.is-open { display: block; }
.bell-head {
display: flex; align-items: center; justify-content: space-between;
padding: 10px 14px; border-bottom: 1px solid var(--border);
font-size: var(--step-0); font-weight: 600;
}
.bell-head button {
border: none; background: none; cursor: pointer;
font-size: var(--step--1); color: var(--accent-ink); padding: 2px 4px; border-radius: 4px;
}
.bell-head button:hover { background: var(--accent-soft); }
.ntc { display: flex; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--border); }
.ntc:last-child { border-bottom: 0; }
.ntc .n-ico {
width: 28px; height: 28px; flex: none; border-radius: var(--radius);
display: inline-flex; align-items: center; justify-content: center;
background: var(--muted-2); color: var(--muted-foreground);
}
.ntc.is-unread .n-ico { background: var(--accent-soft); color: var(--accent-ink); }
.ntc p { font-size: var(--step-0); line-height: 1.45; }
.ntc.is-read p { color: var(--muted-foreground); }
.ntc time { display: block; font-size: var(--step--1); color: var(--faint); margin-top: 2px; }
/* ── 태그 칩 (유형·사유) ── */
.tag {
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;
}
.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; }
.tag-warn { background: var(--warning-soft); color: var(--warning-ink); border-color: transparent; }
.tag-ok { background: var(--success-soft); color: var(--success-ink); border-color: transparent; }
/* ── 수업 진행 ── */
.h-note { font-size: var(--step--1); font-weight: 400; color: var(--faint); margin-left: 8px; }
.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-meta { font-size: var(--step--1); color: var(--faint); margin-top: 8px; font-variant-numeric: tabular-nums; }
/* ── 공지 뷰 ── */
.notice-list { list-style: none; display: flex; flex-direction: column; }
.notice-row {
width: 100%; text-align: left; cursor: pointer;
background: none; border: none; border-bottom: 1px solid var(--border);
padding: 14px var(--space-4);
display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px var(--space-3);
}
.notice-list li:last-child .notice-row { border-bottom: 0; }
.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;
background: var(--accent); flex: none;
}
.pin { color: var(--accent-ink); flex: none; }
.n-meta {
grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--space-3);
font-size: var(--step--1); color: var(--faint); font-variant-numeric: tabular-nums;
}
.n-body {
max-width: 68ch;
grid-column: 1 / -1; display: none;
font-size: var(--step-0); line-height: 1.65; color: var(--muted-foreground);
padding-top: 2px;
}
.notice-row.is-open .n-body { display: block; }
/* ── 출결 사유 칩 ── */
.att-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--space-2); }
@media (pointer: coarse) {
.att-btn { width: 40px; height: 40px; }
.chip, .side-link, .give-btn { min-height: 40px; }
}
@media (max-width: 1080px) {
.prog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
.prog-grid { grid-template-columns: minmax(0, 1fr); }
}
/* ── 뷰 공통 요약 스트립 ── */
.statline {
display: flex; flex-wrap: wrap; gap: 8px;
margin-bottom: var(--space-4);
}
.statline > div {
display: inline-flex; align-items: baseline; gap: 6px;
background: var(--card); border: 1px solid var(--border);
border-radius: var(--radius); box-shadow: var(--shadow-sm);
padding: 6px 12px; font-size: var(--step-1); color: var(--muted-foreground);
}
.statline strong {
font-size: var(--step-0); font-weight: 600; color: var(--foreground);
font-variant-numeric: tabular-nums;
}
.statline .warn-ink { color: var(--warning-ink); }
.statline .muted-ink { color: var(--muted-foreground); }
/* ── 리포트 학기 요약 카드(4열) ── */
.headline-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .headline-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .headline-4 { grid-template-columns: minmax(0, 1fr); } }
/* ── 수강생 보호자 · 모달 보호자 블록 ── */
#stu-table td.muted { color: var(--muted-foreground); white-space: nowrap; }
.guard-line { font-size: var(--step-0); font-weight: 500; }
.guard-log {
list-style: none; margin-top: 8px;
font-size: var(--step--1); color: var(--muted-foreground);
display: grid; gap: 4px;
}
/* ── 학사 일정: 유형색 + 범례 + D-day 점 ── */
.cal-ev.is-exam { background: var(--warning-soft); color: var(--warning-ink); }
.cal-ev.is-admin { background: var(--muted-2); color: var(--muted-foreground); }
.cal-ev.is-holi { background: var(--danger-soft); color: var(--danger-ink); }
.cal-legend {
display: flex; flex-wrap: wrap; gap: var(--space-4);
margin-top: var(--space-3); padding-top: var(--space-3);
border-top: 1px solid var(--border);
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;
}
.lg-exam, .ev-dot.is-exam { background: var(--warning); }
.lg-due, .ev-dot.is-due { background: var(--accent); }
.lg-admin, .ev-dot.is-admin { background: var(--border-strong); }
.lg-holi, .ev-dot.is-holi { background: var(--danger); }
.ev-dot { margin-right: 8px; vertical-align: 0; }
/* ── 공지 뷰 툴바 여백 ── */
#view-notice .toolbar { margin-bottom: var(--space-4); }
/* ── 모바일 갸행 수습(v12) — 한글은 어절에서만 끊고, 외톨이 줄을 만들지 않는다 ── */
.view-sub, .n-body, .n-meta, .prog-meta, .stat-sub, .guard-line, .counsel-grid .co-text, .panel-note, .att-chips {
word-break: keep-all;
overflow-wrap: anywhere;
text-wrap: pretty;
}
.due-row span { word-break: keep-all; }
@media (max-width: 680px) {
/* 마감 임박 · 예정 상담 행 — 제목과 메타를 세로로 쌓아 메타가 끊기지 않게 */
.due-row { display: block; }
.due-row span { display: block; }
.due-row .mono { margin-top: 2px; }
/* 공지 행 — 제목이 전체 폭을 쓰고 분류 칩은 아래로 */
.notice-row { grid-template-columns: minmax(0, 1fr); }
.notice-row .tag { justify-self: start; }
}

View file

@ -0,0 +1,65 @@
/* ==========================================================================
가온 학적부 디자인 토큰 (v3: 프로덕션 콘솔)
프리셋: production-console shadcn/ui (new-york) 토큰 체계의 충실한 이식.
컨셉 문장: 실제 학원이 쓰는 같은 관리 콘솔 장식이 아니라 완성도로.
레퍼런스: shadcn/ui 디자인 시스템(zinc 스키마) 프로덕션 SaaS 관리 화면의
사실상 표준 문법. 실측값은 아래 주석.
하지 않은 : 종이/장부 컨셉(철회), 그라디언트, 글로우, 컨셉 워터마크.
색은 무채색 체계 + 상태색 3종 + 액센트 1(에메랄드).
========================================================================== */
:root {
/* 타입 — shadcn 본문 14px, 카드 값 24px tracking-tight */
--step--2: 0.6875rem; /* 11px — 배지/케이션 */
--step--1: 0.75rem; /* 12px — 보조 라벨 */
--step-0: 0.875rem; /* 14px — 본문(sm) */
--step-1: 1rem; /* 16px */
--step-2: 1.125rem; /* 18px — 섹션 제목 */
--step-3: 1.5rem; /* 24px — 카드 값/모달 제목 */
--step-4: 1.875rem; /* 30px — 화면 제목 */
--leading-tight: 1.3;
--leading-normal: 1.6;
--font-body: "Pretendard Variable", Pretendard, -apple-system, sans-serif;
--font-display: "Noto Serif KR", "Pretendard Variable", serif;
--font-mono: "JetBrains Mono", ui-monospace, monospace;
--font-mono-size: 0.8125rem;
/* 색 — shadcn zinc 스키마 */
--background: #fafafa; /* page */
--card: #ffffff;
--foreground: #09090b; /* zinc-950 */
--muted: #fafafa;
--muted-2: #f4f4f5; /* zinc-100 */
--muted-foreground: #64646e; /* zinc-50/gray-100 위 5.2:1 이상 */ /* zinc-500 */
--faint: #6e6e77; /* WCAG 4.5:1 보정 — 본문용 보조색 */
--border: #e4e4e7; /* zinc-200 */
--border-strong: #d4d4d8; /* zinc-300 */
--primary: #18181b; /* zinc-900 */
--primary-foreground: #fafafa;
--ring: #a1a1aa;
--accent: #059669; /* emerald-600 — 이 제품의 단 하나의 브랜드색 */
--accent-soft: #ecfdf5; /* emerald-50 */
--accent-ink: #065f46; /* emerald-800 */
--success: #059669; --success-soft: #ecfdf5; --success-ink: #065f46;
--warning: #b45309; --warning-soft: #fffbeb; --warning-ink: #92400e;
--danger: #dc2626; --danger-soft: #fef2f2; --danger-ink: #991b1b;
--space-1: 0.25rem;
--space-2: 0.5rem;
--space-3: 0.75rem;
--space-4: 1rem;
--space-5: 1.5rem;
--space-6: 2rem;
--space-7: 3rem;
/* 반지름 — shadcn 파생 규칙: base 8px → 컨트롤 6px, 판 12px */
--radius: 6px;
--radius-lg: 12px;
/* 그림자 — Tailwind shadow-sm / shadow-lg 실측값 */
--shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
--shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}