@import url("./tokens.css"); /* ========================================================================== 두레대학 수강신청 — 프로덕션 콘솔 (shadcn/ui new-york 문법의 바닐라 이식) 액센트는 벽돌(申) 하나. 나머지는 무채상 완성도로 말한다. ========================================================================== */ *, *::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); } :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; } /* ── 앱바: 브랜드 · 학점 칩 · 탭. 스티키. ── */ .appbar { background: var(--card); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; } .appbar-inner { max-width: 1180px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-3) var(--space-5); } .brand { font-family: var(--font-display); display: inline-flex; align-items: center; gap: var(--space-2); color: var(--foreground); text-decoration: none; font-weight: 600; font-size: var(--step-1); } .brand-seal { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; background: var(--accent); color: #fff; border-radius: var(--radius); font-size: var(--step-0); font-weight: 600; } .credits { display: inline-flex; align-items: center; gap: 6px; color: var(--muted-foreground); background: var(--muted-2); border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; font-size: var(--step-1); white-space: nowrap; } .credits strong { color: var(--accent-ink); font-size: var(--step-0); font-weight: 600; font-variant-numeric: tabular-nums; } /* 탭 — 언더라인 내비 */ .tabs { max-width: 1180px; margin-inline: auto; display: flex; gap: var(--space-1); padding: 0 var(--space-5); overflow-x: auto; overflow-y: hidden; /* overflow-x:auto 는 반대축을 auto 로 만든다 — 세로 스크롤 금지 */ scrollbar-width: none; /* 좁은 창 가로 스크롤바도 노출 금지 — 스와이프는 유지 */ } .tab { appearance: none; cursor: pointer; font: inherit; font-size: var(--step-0); font-weight: 500; color: var(--muted-foreground); background: none; border: 0; border-bottom: 2px solid transparent; height: 42px; padding: 0 var(--space-2); white-space: nowrap; transition: color 100ms ease, border-color 100ms ease; } .tab:hover { color: var(--foreground); } .tab.is-current { color: var(--foreground); font-weight: 600; border-bottom-color: var(--accent); } /* ── 레이아웃 ── */ .layout { max-width: 1180px; margin-inline: auto; padding: var(--space-5) var(--space-5) 96px; } .view { display: none; } .view.is-on { display: block; } .view:focus { outline: none; } .view > h1 { margin-bottom: 4px; } .view-sub { color: var(--muted-foreground); font-size: var(--step-0); margin-bottom: var(--space-5); max-width: 46em; } #view-catalog.is-on { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-4); align-items: start; } .view > *:not(:first-child):not(.view-sub) { margin-top: 0; } /* ── 카드(장부 판 → 카드) ── */ .sheet { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: var(--space-4); min-width: 0; } .sheet-tt { padding: var(--space-4); } .sheet-note { font-size: var(--step--1); color: var(--faint); margin-top: var(--space-3); } /* ── 빈 상태 ── */ .empty-box { display: grid; gap: var(--space-2); justify-items: start; border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); padding: var(--space-6) var(--space-5); background: var(--muted); } .empty-box p:first-child { font-weight: 600; } .empty-box .muted { font-size: var(--step-0); } .empty-box .btn-line { margin-top: var(--space-2); } /* ── 검색 + 세그먼트 ── */ .toolbar { display: flex; gap: var(--space-3); align-items: center; flex-wrap: wrap; margin-bottom: 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:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; } #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); } /* ── 과목 목록 ── */ .course-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); } .course-row { appearance: none; background: none; cursor: pointer; font: inherit; width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding: var(--space-3) var(--space-2); border: 0; border-bottom: 1px solid var(--border); border-radius: var(--radius); transition: background-color 80ms ease; } .course-row:first-child { border-top: 1px solid var(--border); } .course-row:hover { background: var(--muted); } .course-row:active { scale: 0.995; } .c-main { display: grid; gap: 2px; min-width: 0; } .c-name { font-weight: 600; display: flex; align-items: baseline; gap: var(--space-2); flex-wrap: wrap; } .c-dept { font-size: var(--step--1); font-weight: 500; color: var(--muted-foreground); background: var(--muted-2); border-radius: 4px; padding: 1px 6px; } .c-sub { color: var(--muted-foreground); font-size: var(--step--1); } .c-side { display: grid; gap: 2px; text-align: right; flex: none; font-size: var(--step--1); } .c-credit { font-weight: 500; color: var(--foreground); } .c-seats { color: var(--muted-foreground); } .c-seats.is-low { color: var(--danger); font-weight: 600; } .c-star { color: var(--accent); font-weight: 600; } .c-seal { display: inline-grid; place-items: center; width: 22px; height: 22px; background: var(--accent); color: #fff; border-radius: 4px; font-size: var(--step--1); } .empty { padding: var(--space-4) 0; color: var(--muted-foreground); } /* ── 표 ── */ .table-wrap { overflow-x: auto; overflow-y: hidden; } table { width: 100%; border-collapse: collapse; } th { font-weight: 500; } /* UA 기본 th 볼드 재정의 */ 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; font-size: var(--step-0); } 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); } .ar-sub { background: var(--muted); } .ar-sub th, .ar-sub td { font-weight: 600; } .low-seats { color: var(--danger); font-weight: 600; } /* ── 신청 내역 ── */ .en-sum { color: var(--muted-foreground); margin-bottom: var(--space-4); } .en-sum strong { color: var(--accent-ink); font-size: var(--step-2); font-weight: 600; } .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(--danger); color: var(--danger); } /* ── 공지 게시판 ── */ .notice-list { list-style: none; margin: 0; padding: 0; display: grid; } .notice-list li { display: grid; grid-template-columns: 3.2rem 4rem minmax(0, 1fr); gap: var(--space-3); align-items: baseline; padding: var(--space-3) 0; border-bottom: 1px solid var(--border); } .notice-list li:first-child { border-top: 1px solid var(--border); } .no-kind { font-size: var(--step--1); font-weight: 600; background: var(--muted-2); color: var(--muted-foreground); border-radius: var(--radius); padding: 2px 8px; text-align: center; white-space: nowrap; justify-self: start; } .no-kind[data-kind="변경"] { background: var(--accent-soft); color: var(--accent-ink); } .no-date { color: var(--faint); } .no-body { line-height: var(--leading-normal); word-break: keep-all; max-width: 68ch; } /* ── 시간표 ── */ .timetable-panel { min-width: 0; } .timetable-panel h2 { margin-bottom: 4px; } .tt-hint { font-size: var(--step--1); margin-bottom: var(--space-3); } .tt-scroll { overflow-x: auto; overflow-y: hidden; } .tt { display: grid; grid-template-columns: 2.5rem repeat(5, minmax(4.2rem, 1fr)); grid-auto-rows: minmax(1.35rem, auto); min-width: min(100%, 420px); } .tt-corner { grid-column: 1; grid-row: 1; border-bottom: 1px solid var(--border-strong); } .tt-day { font-size: var(--step--1); font-weight: 600; display: grid; place-items: center; border-bottom: 2px solid var(--border-strong); padding-bottom: var(--space-1); } .tt-hour { font-size: var(--step--2); color: var(--faint); display: grid; place-items: start end; padding: 2px 4px 0 0; position: relative; } .tt-cell { border-left: 1px solid var(--border); border-bottom: 1px solid var(--border); } .tt-block { appearance: none; border: 0; cursor: pointer; display: grid; align-content: start; gap: 2px; padding: var(--space-2); border-radius: var(--radius); text-align: left; overflow: hidden; transition: box-shadow 100ms ease, scale 80ms ease; min-width: 0; } .tt-block:hover { box-shadow: var(--shadow-lg); z-index: 2; } .tt-block:active { scale: 0.98; } .tt-block.is-major { background: var(--accent-soft); color: var(--accent-ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent), inset 3px 0 0 var(--accent); } .tt-block.is-gen { background: var(--muted-2); color: var(--foreground); box-shadow: inset 3px 0 0 var(--border-strong); } .tt-block-name { font-size: var(--step--1); font-weight: 600; line-height: 1.35; word-break: keep-all; } .tt-block-room { font-size: var(--step--2); color: var(--muted-foreground); } .tt-empty { grid-column: 2 / -1; grid-row: 4 / span 8; display: flex; align-items: center; justify-content: center; color: var(--faint); font-size: var(--step--1); border: 1px dashed var(--border-strong); border-radius: var(--radius); pointer-events: none; background: var(--muted); } .status { margin-top: var(--space-3); font-size: var(--step--1); color: var(--muted-foreground); border-top: 1px solid var(--border); padding-top: var(--space-3); min-height: 2.2em; } .status.is-warn { color: var(--danger); } .tt-legend { display: flex; gap: var(--space-4); margin-top: var(--space-2); font-size: var(--step--1); color: var(--muted-foreground); } .key { display: inline-flex; align-items: center; gap: 6px; } .key i { width: 10px; height: 10px; display: inline-block; border-radius: 3px; } .k-major { background: var(--accent-soft); box-shadow: inset 2px 0 0 var(--accent); } .k-gen { background: var(--muted-2); box-shadow: inset 2px 0 0 var(--border-strong); } .k-seal { background: var(--accent); } /* ── 버튼 ── */ .btn-seal, .btn-line, .btn-star { 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; transition: background-color 100ms ease, border-color 100ms ease, color 100ms ease, scale 80ms ease; white-space: nowrap; } .btn-seal { background: var(--accent); border: 1px solid var(--accent); color: #fff; box-shadow: var(--shadow-sm); } .btn-seal:hover:not(:disabled) { background: #9a3412; border-color: #9a3412; } .btn-seal:disabled { opacity: 0.45; cursor: not-allowed; } .btn-line { background: var(--card); border: 1px solid var(--border-strong); color: var(--foreground); box-shadow: var(--shadow-sm); } .btn-line:hover { background: var(--muted); } .btn-star { background: none; border: 1px solid var(--border-strong); color: var(--muted-foreground); } .btn-star:hover { color: var(--accent-ink); border-color: var(--accent); } .btn-star[aria-pressed="true"] { color: var(--accent-ink); border-color: var(--accent); background: var(--accent-soft); font-weight: 600; } .btn-seal:active, .btn-line:active, .btn-star: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: -18px; bottom: -24px; 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-size: var(--step-3); line-height: 1.25; 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; gap: var(--space-3); 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; text-align: right; 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; } .cd-line { color: var(--muted-foreground); font-size: var(--step-0); } .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); } .modal-actions { display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; } .facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); border-block: 1px solid var(--border); padding-block: var(--space-4); } .facts dt { font-size: var(--step--1); color: var(--muted-foreground); } .facts dd { font-weight: 600; margin-top: 2px; } .warn { font-size: var(--step-0); 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); } /* 주간 자리 미니 격자 */ .cd-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-2); } .cd-track { display: grid; justify-items: center; gap: var(--space-1); } .cd-rail { position: relative; width: 100%; height: 92px; border-left: 1px solid var(--border-strong); } .cd-off { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--faint); } .cd-slot { position: absolute; left: 0; right: 4px; border-radius: 3px; } .cd-slot.is-major { background: var(--accent-soft); border-left: 3px solid var(--accent); } .cd-slot.is-gen { background: var(--muted-2); border-left: 3px solid var(--border-strong); } .cd-day-l { font-size: var(--step--2); color: var(--faint); } .cd-day-l.is-on { color: var(--foreground); font-weight: 600; } /* 평가 누적 막대 — 벽돌의 농도 3단 */ .eval-bar { display: flex; height: 14px; border-radius: 4px; overflow: hidden; margin-bottom: var(--space-3); background: var(--muted-2); } .eval-seg { display: block; height: 100%; } .eval-seg.seg-1 { background: var(--accent); } .eval-seg.seg-2 { background: color-mix(in srgb, var(--accent) 55%, #fff); } .eval-seg.seg-3 { background: color-mix(in srgb, var(--accent) 22%, #fff); } .eval-legend { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); } .eval-legend dt { color: var(--muted-foreground); font-size: var(--step--1); } .eval-legend dd { font-weight: 600; font-size: var(--step--1); } /* ── 반응형 ── */ @media (max-width: 900px) { #view-catalog.is-on { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); } .timetable-panel { position: static; } .notice-list li { grid-template-columns: minmax(0, 1fr); gap: var(--space-1); } .no-kind, .no-date { justify-self: start; } .layout { padding: var(--space-4) var(--space-4) 64px; } } @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-0); } .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; } .course-row { flex-direction: column; align-items: flex-start; gap: var(--space-2); } .c-side { text-align: left; display: flex; gap: var(--space-3); align-items: center; } .modal-inner { padding: var(--space-4); } .facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .modal-actions { flex-wrap: wrap; } } /* ── 뷰 공통 요약 스트립 (가온과 같은 문법) ── */ .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; } /* ── 관심 과목 학점 경고 — 오류 예방 ── */ .st-warn { font-size: var(--step-0); line-height: 1.6; word-break: keep-all; border: 1px solid var(--border); border-radius: var(--radius); background: var(--muted-2); color: var(--muted-foreground); padding: 10px 14px; margin-bottom: var(--space-4); font-variant-numeric: tabular-nums; } .st-warn.is-over { background: color-mix(in srgb, var(--accent) 8%, white); border-color: color-mix(in srgb, var(--accent) 30%, white); color: var(--accent-ink); } /* ── 모바일 갸행 수습 — 과목행 부정보는 세그먼트(코드·교수·시간·장소) 단위로만 끊는다 ── */ .c-sub i { font-style: normal; white-space: nowrap; } .view-sub, .no-body, .st-warn, .empty, .notice-list { word-break: keep-all; overflow-wrap: anywhere; text-wrap: pretty; } /* ── 라운드 1: 이수 진행 바 · 학점 게이지 · 관심 추천 ── */ .cr-bar { height: 6px; border-radius: 999px; background: var(--muted-2); overflow: hidden; min-width: 90px; } .cr-bar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; } .cr-total { margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--border); } .cr-total .cr-bar { height: 8px; } .credit-gauge { height: 8px; border-radius: 999px; background: var(--muted-2); overflow: hidden; margin: 10px 0 6px; } .credit-gauge i { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width 200ms ease; } .h-note { font-size: var(--step--1); font-weight: 400; color: var(--muted-foreground); margin-left: 8px; } .st-suggest { margin-top: var(--space-4); }