:root {
  --navy: #2f3558;
  --brand: #3e74b9;
  --brand-2: #43b47f;
  --brand-light: #eaf1fa;
  --accent: #f9a234;
  --accent-dark: #e48c17;
  --gold: #c99a2e;
  --ok: #1a9c58;
  --danger: #d63a3a;
  --warn: #e5a000;
  --ink: #141b2d;
  --muted: #677089;
  --line: #e2e6ef;
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(15, 42, 107, .08);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Pretendard, "Malgun Gothic", system-ui, -apple-system, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.6; word-break: keep-all; }
a { color: var(--brand); text-decoration: none; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; }
h1, h2, h3 { line-height: 1.3; letter-spacing: -.02em; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.pre { white-space: pre-wrap; }
.nowrap { white-space: nowrap; }
.accent { color: var(--accent); }
.empty { color: var(--muted); padding: 24px 0; }
[hidden] { display: none !important; }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 10px; padding: 11px 18px; font-weight: 700; cursor: pointer; transition: .15s; white-space: nowrap; }
.btn-lg { padding: 15px 26px; font-size: 17px; border-radius: 12px; }
.btn-sm { padding: 8px 13px; font-size: 14px; }
.btn-xs { padding: 5px 10px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--navy); }
.btn-accent { background: var(--accent); color: var(--navy); box-shadow: 0 6px 16px rgba(249, 162, 52, .35); }
.btn-accent:hover { background: var(--accent-dark); }
.btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; border: 1.5px solid rgba(255, 255, 255, .5); }
.btn-ghost:hover { background: rgba(255, 255, 255, .22); }
.btn-ghost-dark { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost-dark:hover { border-color: var(--brand); }
.btn-add { background: var(--brand-light); color: var(--brand); }
.btn-add:hover { background: var(--brand); color: #fff; }
.btn-remove { background: #fdecec; color: var(--danger); }
.btn-remove:hover { background: var(--danger); color: #fff; }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }

/* 헤더 */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--navy); letter-spacing: -.03em; }
.logo-svg { display: block; height: 34px; width: auto; fill: var(--accent); }
.logo-footer .logo-svg { fill: #fff; height: 30px; margin-bottom: 6px; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a { padding: 8px 12px; border-radius: 8px; color: var(--ink); font-weight: 600; font-size: 15px; }
.main-nav a:hover, .main-nav a.active { color: var(--brand); background: var(--brand-light); }
.main-nav .nav-cta { color: var(--navy); margin-left: 8px; padding: 10px 16px; }
.main-nav .nav-cta:hover { color: var(--navy); background: var(--accent-dark); }
.nav-admin { font-size: 13px !important; color: var(--muted) !important; }
.nav-toggle { display: none; background: none; border: 0; font-size: 26px; cursor: pointer; color: var(--navy); }

/* 히어로 */
.hero { background: radial-gradient(1000px 480px at 90% -10%, rgba(62, 116, 185, .55) 0%, transparent 60%), linear-gradient(135deg, #222742, var(--navy) 55%, #384170); color: #fff; padding: 72px 0 80px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 700; letter-spacing: .04em; background: rgba(255, 255, 255, .12); padding: 6px 12px; border-radius: 99px; margin: 0 0 18px; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); margin: 0 0 18px; font-weight: 800; }
.hl { color: var(--accent); }
.hero-sub { font-size: 18px; opacity: .88; margin: 0 0 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat-card { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); border-radius: 18px; padding: 22px; }
.stat-main { grid-column: span 2; background: linear-gradient(135deg, rgba(255, 176, 103, .25), rgba(255, 122, 26, .15)); border-color: rgba(255, 176, 103, .5); }
.stat-label { font-size: 14px; opacity: .85; font-weight: 600; }
.stat-num { font-size: 48px; font-weight: 800; line-height: 1.1; margin-top: 6px; }
.stat-main .stat-num { font-size: 64px; color: #ffcf9e; }
.stat-num small { font-size: 18px; font-weight: 600; margin-left: 4px; }
.stat-link { grid-column: span 2; color: #fff; font-weight: 700; text-align: right; opacity: .9; }

/* 섹션 */
.section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 20px; }
.section-head h2 { margin: 0; font-size: 26px; }
.more { font-weight: 700; font-size: 15px; }
.page-head { background: linear-gradient(135deg, var(--navy), var(--brand)); color: #fff; padding: 44px 0 40px; }
.page-head h1 { margin: 0 0 8px; font-size: clamp(28px, 4vw, 38px); }
.page-head p { margin: 0; opacity: .9; }
.page-head a { color: #ffcf9e; font-weight: 700; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }

.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.quick-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 4px; color: var(--ink); transition: .15s; }
.quick-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand); }
.quick-card .qi { font-size: 30px; }
.quick-card b { font-size: 18px; }
.quick-card span:last-child { color: var(--muted); font-size: 14px; }

.seminar-row { display: flex; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.date-chip { min-width: 62px; text-align: center; background: var(--brand-light); color: var(--brand); border-radius: 12px; padding: 8px 6px; line-height: 1.2; }
.date-chip b { display: block; font-size: 20px; }
.date-chip span { font-size: 12px; font-weight: 600; }
.date-chip.big { min-width: 96px; padding: 16px 10px; }
.date-chip.big b { font-size: 30px; }
.seminar-title { font-weight: 700; }
.post-row { display: flex; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.post-row .post-title { flex: 1; font-weight: 600; }
.tag { display: inline-block; background: var(--brand-light); color: var(--brand); font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; }

.cta-band { background: linear-gradient(120deg, var(--accent), #fdc247); color: var(--navy); padding: 44px 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.cta-inner h2 { margin: 0 0 6px; }
.cta-inner p { margin: 0; opacity: .92; }
.cta-band .btn-accent { background: var(--navy); color: #fff; box-shadow: none; }

/* 입결 */
.adm-group { margin-bottom: 34px; }
.adm-group-title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 20px; }
.adm-badge { padding: 6px 16px; border-radius: 99px; background: var(--brand); color: #fff; font-weight: 800; }
.adm-count { color: var(--muted); font-size: 15px; font-weight: 600; }
.adm-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.adm-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: 0 2px 8px rgba(15, 42, 107, .04); }
.adm-uni { font-size: 22px; font-weight: 800; color: var(--navy); }
.adm-dept { font-weight: 700; color: var(--brand); min-height: 1.6em; }
.adm-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.adm-name { color: var(--ink); font-weight: 700; }
.tier-med .adm-badge { background: linear-gradient(135deg, #b8860b, var(--gold)); }
.tier-med .adm-cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.tier-med .adm-card { background: linear-gradient(160deg, #fffaf0, #fff 60%); border: 2px solid #f0d58c; padding: 24px; }
.tier-med .adm-uni { font-size: 26px; color: #7a5a00; }
.tier-med .adm-dept { color: #b07d00; font-size: 17px; }
.tier-sky .adm-badge { background: linear-gradient(135deg, var(--navy), var(--brand)); }
.tier-sky .adm-card { border: 2px solid #c9d7f7; background: linear-gradient(160deg, #f2f6ff, #fff 60%); }
.tier-etc .adm-badge { background: #4a5873; }
.demo-tag { position: absolute; top: 10px; right: 10px; background: #fff3cd; color: #8a6d00; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; }
.demo-tag.inline { position: static; }
.results-head .tabs { margin-bottom: 18px; }
.result-stats { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 16px; }
.result-stats div { background: rgba(255, 255, 255, .12); border-radius: 14px; padding: 12px 20px; }
.result-stats span { display: block; font-size: 13px; opacity: .85; }
.result-stats b { font-size: 32px; color: #ffcf9e; margin-right: 2px; }

/* 탭 & 칩 */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 2px solid var(--line); margin-bottom: 18px; }
.tab { background: none; border: 0; padding: 12px 20px; font-weight: 700; font-size: 16px; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tab.active { color: var(--brand); border-color: var(--brand); }
.tabs.light { border-color: rgba(255, 255, 255, .25); }
.tabs.light .tab { color: rgba(255, 255, 255, .7); }
.tabs.light .tab.active { color: #fff; border-color: var(--accent); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.chip { border: 1.5px solid var(--line); background: #fff; padding: 7px 16px; border-radius: 99px; font-weight: 600; cursor: pointer; color: var(--ink); }
.chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* 시간표 표 */
.subject-block { margin-bottom: 30px; }
.subject-title { font-size: 20px; margin: 0 0 10px; padding-left: 12px; border-left: 5px solid var(--brand); }
.subj-1 { border-color: #e8590c; } .subj-2 { border-color: #12b886; } .subj-3 { border-color: #ae3ec9; } .subj-4 { border-color: #f59f00; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.tt-table, .status-table, .admin-table { width: 100%; border-collapse: collapse; background: #fff; }
.tt-table th, .tt-table td, .status-table th, .status-table td, .admin-table th, .admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tt-table thead th, .status-table thead th, .admin-table thead th { background: var(--bg-alt); font-size: 14px; color: var(--muted); white-space: nowrap; }
.tt-table tr:last-child td { border-bottom: 0; }
.sess { white-space: nowrap; }
.day { display: inline-block; width: 24px; height: 24px; line-height: 24px; text-align: center; border-radius: 6px; background: var(--brand-light); color: var(--brand); font-weight: 700; font-size: 13px; }

/* 시간표 짜기 */
.planner { display: grid; grid-template-columns: 340px 1fr; gap: 28px; align-items: start; }
.picker { position: sticky; top: 84px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); max-height: calc(100vh - 100px); overflow: auto; }
.step { display: flex; align-items: center; gap: 8px; font-weight: 800; margin: 16px 0 10px; }
.step:first-child { margin-top: 0; }
.step-no { width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 13px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button, .seg a { flex: 1; min-width: 60px; padding: 10px 8px; border: 1.5px solid var(--line); background: #fff; border-radius: 10px; font-weight: 700; cursor: pointer; color: var(--ink); text-align: center; }
.seg button small { color: var(--muted); font-weight: 500; }
.seg button.active, .seg a.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.seg button.active small { color: rgba(255, 255, 255, .8); }
.class-list { display: flex; flex-direction: column; gap: 8px; }
.class-item { display: flex; gap: 10px; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px; }
.class-item.on { border-color: var(--brand); background: var(--brand-light); }
.ci-body { flex: 1; min-width: 0; }
.ci-name { font-weight: 700; }
.ci-meta, .ci-sess { font-size: 13px; color: var(--muted); }
.board { min-width: 0; }
.board-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.board-head h2 { margin: 0; }
.board-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.week-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.week { display: grid; grid-template-columns: 52px repeat(7, minmax(92px, 1fr)); min-width: 700px; }
.wk-corner, .wk-day { position: sticky; top: 0; background: var(--bg-alt); padding: 10px 0; text-align: center; font-weight: 800; border-bottom: 1px solid var(--line); }
.wk-times div { font-size: 12px; color: var(--muted); text-align: right; padding-right: 6px; transform: translateY(-7px); }
.wk-times div:first-child { transform: none; }
.wk-col { position: relative; border-left: 1px solid var(--line); background-image: linear-gradient(to bottom, var(--line) 1px, transparent 1px); }
.wk-block { position: absolute; border-radius: 8px; color: #fff; padding: 5px 7px; font-size: 12px; overflow: hidden; display: flex; flex-direction: column; line-height: 1.3; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
.wk-block b { font-size: 12.5px; }
.wk-block.conflict { outline: 3px solid var(--danger); outline-offset: -1px; }
.selected { margin-top: 20px; }
.selected h3 { margin: 0 0 10px; }
.selected ul { list-style: none; margin: 0; padding: 0; }
.selected li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.selected .dot { width: 12px; height: 12px; border-radius: 4px; }
.selected .sl-name { font-weight: 700; }
.selected .btn { margin-left: auto; }

/* 알림 */
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-weight: 600; }
.alert-danger { background: #fdecec; color: #a61e1e; }
.alert-ok { background: #e6f6ed; color: #136c3e; }
.alert-warn { background: #fff7e0; color: #7a5a00; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* 설명회 */
.seminar-cards { display: flex; flex-direction: column; gap: 18px; }
.seminar-card { display: flex; gap: 24px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px; box-shadow: var(--shadow); }
.sc-body h2 { margin: 0 0 10px; }
.sc-info { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.sc-info b { color: var(--brand); margin-right: 4px; }
.past-title { margin-top: 48px; font-size: 20px; }
.past-list { color: var(--muted); }

/* 블로그 */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.blog-card { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; color: var(--ink); background: #fff; transition: .15s; }
.blog-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.blog-cover { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--brand-light), #dfe8fb) center/cover; display: grid; place-items: center; }
.blog-cover span { font-size: 48px; color: var(--brand); opacity: .35; font-weight: 800; }
.blog-body { padding: 18px 20px; }
.blog-body h2 { font-size: 19px; margin: 8px 0 6px; }
.blog-body p { margin: 0 0 8px; font-size: 14px; }
.post-h1 { font-size: clamp(26px, 4vw, 36px); margin: 16px 0 6px; }
.post-cover { border-radius: 14px; margin: 18px 0; }
.post-body { font-size: 17px; line-height: 1.85; margin-top: 20px; }
.post-cta { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }

/* 폼 */
.card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px; box-shadow: var(--shadow); }
.form label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 14px; }
.form label > input, .form label > select, .form label > textarea, .form label > .btn { display: block; margin-top: 6px; }
.form label em { color: var(--danger); font-style: normal; }
.form input:not([type=checkbox]):not([type=file]), .form select, .form textarea, .filter-bar select { padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; font-size: 16px; font-weight: 500; background: #fff; width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-light); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.row-actions { display: flex; gap: 8px; }
fieldset { border: 0; padding: 0; margin: 0 0 16px; }
legend { font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.check-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.check-chip { margin: 0 !important; cursor: pointer; }
.check-chip input { position: absolute; opacity: 0; pointer-events: none; }
.check-chip span { display: inline-block; padding: 10px 18px; border: 1.5px solid var(--line); border-radius: 99px; font-weight: 700; font-size: 15px; transition: .12s; }
.check-chip input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.check-chip input:focus-visible + span { box-shadow: 0 0 0 3px var(--brand-light); }
.privacy { background: var(--bg-alt); border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; font-size: 13px; }
.privacy p { margin: 4px 0 10px; color: var(--muted); }
.form label.inline > input { margin: 0; }
.form label.inline { display: flex; flex-direction: row; align-items: center; gap: 8px; margin: 0; font-size: 14px; }
.done-box { text-align: center; padding: 50px 20px; }
.done-icon, .m-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 32px; font-weight: 800; margin: 0 auto 14px; color: #fff; background: var(--ok); }
.m-icon.bad { background: var(--danger); }
.m-icon.warn { background: var(--warn); }

/* 시험지 */
.exam-head .hl { color: #ffcf9e; }
.grid-buttons { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.grid-buttons button, .list-buttons button { padding: 12px 8px; border: 1.5px solid var(--line); background: #fff; border-radius: 10px; font-weight: 700; cursor: pointer; }
.list-buttons { display: flex; flex-direction: column; gap: 8px; }
.list-buttons button { text-align: left; padding: 14px 16px; }
.grid-buttons button.active, .list-buttons button.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.subject-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.subject-tabs button { display: flex; flex-direction: column; align-items: center; padding: 14px 6px; border: 1.5px solid var(--line); background: #fff; border-radius: 12px; font-weight: 800; font-size: 17px; cursor: pointer; }
.subject-tabs button small { font-size: 12px; font-weight: 600; color: var(--accent); }
.subject-tabs button.active { background: var(--accent); border-color: var(--accent); color: var(--navy); }
.subject-tabs button.active small { color: #fff; }
.subject-tabs button.done { background: var(--bg-alt); color: #aab0bf; cursor: not-allowed; }
.subject-tabs button.done small { color: #aab0bf; }
.file-drop { display: block !important; border: 2px dashed #c3cde3; border-radius: 14px; padding: 28px; text-align: center; cursor: pointer; background: var(--bg-alt); position: relative; }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-drop span { font-size: 17px; color: var(--brand); }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.thumbs img { width: 84px; height: 110px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.summary { background: var(--brand-light); border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; }
.summary:empty { display: none; }
.modal { position: fixed; inset: 0; background: rgba(10, 20, 45, .55); display: grid; place-items: center; z-index: 100; padding: 16px; }
.modal-box { background: #fff; border-radius: 20px; padding: 30px 26px; width: 100%; max-width: 440px; max-height: 92vh; overflow: auto; text-align: center; }
.modal-box h2 { font-size: 21px; margin: 0 0 12px; }
.modal-box .form { text-align: left; margin-top: 16px; }
.spinner { width: 46px; height: 46px; margin: 10px auto 16px; border: 4px solid var(--brand-light); border-top-color: var(--brand); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.filter-bar { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.filter-bar select { width: auto; }
.status-table td, .status-table th { text-align: center; white-space: nowrap; }
.status-table tbody th { text-align: left; background: var(--bg-alt); }
.pill { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 13px; font-weight: 700; }
.pill-done { background: #e6f6ed; color: var(--ok); }
.pill-need { background: #fff0e4; color: var(--accent-dark); }

/* 관리자 */
.admin { padding: 30px 0 60px; }
.admin-top { display: flex; justify-content: space-between; align-items: center; }
.admin-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.admin-form { margin-bottom: 22px; }
.admin-form h2 { margin-top: 0; font-size: 19px; }
.admin-table td { font-size: 14px; }
.admin-table .memo { max-width: 240px; }
.admin-table tr.dim td, .dim { opacity: .55; }
.inline-form { display: inline; }
.exam-admin-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.exam-admin { padding: 18px; }
.ea-head { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; margin-bottom: 10px; }
.ea-thumbs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 8px; }
.ea-thumbs img { height: 120px; border-radius: 6px; border: 1px solid var(--line); }
.ea-pay { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.acct { background: #fff7e0; padding: 3px 8px; border-radius: 6px; }

/* 푸터 */
.site-footer { background: #252a47; color: rgba(255, 255, 255, .8); padding: 40px 0 20px; margin-top: 0; }
.site-footer a { color: rgba(255, 255, 255, .85); }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.logo-footer { color: #fff; }
.site-footer .muted { color: rgba(255, 255, 255, .6); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; align-content: flex-start; max-width: 520px; }
.copyright { margin-top: 30px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; color: rgba(255, 255, 255, .5); }
.admin-link { color: rgba(255, 255, 255, .3) !important; margin-left: 8px; }

/* 반응형 */
@media (max-width: 1000px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 10px 16px 18px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav-open .main-nav { display: flex; }
  .main-nav a { padding: 12px; }
  .main-nav .nav-cta { margin: 8px 0 0; }
  .hero-inner, .two-col, .planner { grid-template-columns: 1fr; }
  .picker { position: static; max-height: none; }
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .row4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .hero { padding: 48px 0 56px; }
  .stat-num { font-size: 38px; }
  .stat-main .stat-num { font-size: 50px; }
  .section { padding: 40px 0; }
  .quick-grid { gap: 10px; }
  .quick-card { padding: 16px; }
  .row2, .row4 { grid-template-columns: 1fr; }
  .seminar-card { flex-direction: column; gap: 14px; padding: 20px; }
  .card { padding: 20px 16px; }
  .subject-tabs { grid-template-columns: repeat(2, 1fr); }
  .exam-admin-list { grid-template-columns: 1fr; }
  .btn-lg { padding: 14px 20px; font-size: 16px; }
}

/* 인쇄: 시간표만 */
@media print {
  .site-header, .site-footer, .page-head, .picker, .board-actions, .selected .btn, .cta-band { display: none !important; }
  .planner { display: block; }
  .week { min-width: 0; }
  .wk-block { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* 수업 시간표 (학년 탭 + 과목 카드 2열) */
.branch-phones { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.branch-phones a { background: rgba(255, 255, 255, .12); color: #fff !important; font-weight: 600 !important; padding: 7px 14px; border-radius: 99px; font-size: 14px; }
.grade-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.grade-tab { padding: 16px 10px; border: 2px solid var(--line); background: #fff; border-radius: 14px; font-size: 18px; font-weight: 800; color: var(--muted); cursor: pointer; }
.grade-tab.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.tt-grid { column-count: 2; column-gap: 20px; }
.tt-grid .tt-card { break-inside: avoid; display: inline-block; width: 100%; margin-bottom: 20px; }
.tt-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 2px 10px rgba(47, 53, 88, .05); }
.tt-card-title { margin: 0; padding: 14px 20px; font-size: 19px; color: #fff; background: var(--navy); }
.tt-card.subj-0 .tt-card-title { background: var(--navy); }
.tt-card.subj-1 .tt-card-title { background: #43b47f; }
.tt-card.subj-2 .tt-card-title { background: #8a6bc4; }
.tt-card.subj-3 .tt-card-title { background: #3e74b9; }
.tt-card.subj-4 .tt-card-title { background: #e48c17; }
.tt-list { list-style: none; margin: 0; padding: 0; }
.tt-row { padding: 14px 20px; border-top: 1px solid var(--line); }
.tt-row:first-child { border-top: 0; }
.tt-name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-bottom: 6px; }
.tt-name b { font-size: 16px; }
.branch-badge { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: #fff3dc; color: #a86200; }
.branch-badge.b-1 { background: #e3f4ec; color: #237a52; }
.tt-times { display: flex; flex-direction: column; gap: 5px; }
.tt-opt { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.time-chip { font-size: 14px; font-weight: 600; background: var(--bg-alt); border: 1px solid var(--line); padding: 3px 9px; border-radius: 7px; font-variant-numeric: tabular-nums; }
.ntag { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; }
.tag-closed { background: #fdecec; color: var(--danger); }
.tag-new { background: #fff3dc; color: #a86200; }
.tag-info { background: var(--brand-light); color: var(--brand); }
@media (max-width: 900px) { .tt-grid { column-count: 1; } }
@media (max-width: 600px) { .grade-tab { font-size: 15px; padding: 12px 4px; } .tt-row { padding: 12px 14px; } }
.ai-box { font-size: 13px; background: var(--bg-alt); border-radius: 10px; padding: 10px 12px; display: grid; gap: 6px; }
.ai-checks { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.ai-checks span { color: var(--ok); font-weight: 600; }
.ai-checks span.bad { color: var(--danger); }
.pill-bad { background: #fdecec; color: var(--danger); }
.paper-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.paper-grid.math { grid-template-columns: repeat(2, 1fr); }
.paper-grid button { display: flex; flex-direction: column; align-items: center; padding: 12px 6px; border: 1.5px solid var(--line); background: #fff; border-radius: 12px; font-weight: 800; font-size: 16px; cursor: pointer; }
.paper-grid button small { font-size: 12px; font-weight: 600; color: var(--accent-dark); }
.paper-grid button.active { background: var(--accent); border-color: var(--accent); color: var(--navy); }
.paper-grid button.active small { color: var(--navy); }
.paper-grid button.done { background: var(--bg-alt); color: #aab0bf; cursor: not-allowed; }
.paper-grid button.done small { color: #aab0bf; }
.pdf-thumb { width: 84px; height: 110px; border-radius: 8px; border: 1px solid var(--line); background: #fdecec; color: var(--danger); font-size: 11px; font-weight: 700; padding: 6px; overflow: hidden; word-break: break-all; display: flex; align-items: center; text-align: center; }
.subject-tabs { grid-template-columns: repeat(6, 1fr); }
.sticky-first th:first-child { position: sticky; left: 0; z-index: 1; background: var(--bg-alt); }
@media (max-width: 600px) { .subject-tabs { grid-template-columns: repeat(3, 1fr); } }
