/* ───────────────────────────────────────────────────────────
   영남이공대학교 사이버보안과 포털 — 공통 스타일
   Breakpoints: mobile <768, tablet 768–1023, desktop ≥1024, large ≥1440
   ─────────────────────────────────────────────────────────── */
:root {
  --primary: #8EA8F6;       /* 학과 브랜드 컬러 */
  --primary-50: #F4F6FD;
  --primary-100: #E9EEFC;
  --primary-200: #D3DDF9;
  --primary-300: #AFC1F4;
  --primary-600: #6583DE;
  --primary-700: #3F5CBF;   /* 버튼 · 링크 (흰 글자 대비 확보) */
  --primary-800: #2F4796;
  --navy: #1F2D4D;          /* 상단 바 · 표 머리선 */
  --accent: #6583DE;
  --ink: #222834;
  --ink-2: #3D4452;
  --muted: #687080;
  --line: #D8DCE3;
  --line-2: #E9ECF0;
  --bg: #F3F4F6;
  --card: #FFFFFF;
  --danger: #C8323F;
  --danger-50: #FBEDEE;
  --success: #1E7F55;
  --success-50: #E8F4EE;
  --warn: #A86A00;
  --warn-50: #FDF4E3;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow-sm: none;
  --shadow: 0 2px 6px rgba(31, 45, 77, .08);
  --shadow-lg: 0 8px 24px rgba(31, 45, 77, .18);
  --header-h: 64px;
  --util-h: 34px;          /* 상단 유틸 바 (모바일 0) */
  --sidebar-w: 240px;
  --tap: 44px;
  --font: "Pretendard", "Noto Sans KR", "Malgun Gothic", "맑은 고딕", "Apple SD Gothic Neo", system-ui, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-gutter: stable; }  /* 스크롤바 유무로 화면이 좌우로 밀리지 않게 */
body {
  margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.6; color: var(--ink);
  background: var(--bg); overflow-x: hidden; word-break: keep-all; overflow-wrap: anywhere;
}
img { max-width: 100%; display: block; }
a { color: var(--primary-700); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.35; color: var(--ink); }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--primary-300); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hidden { display: none !important; }
svg.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ─────────── Header ─────────── */
.app-header {
  position: sticky; top: var(--util-h); z-index: 40; height: var(--header-h);
  display: flex; align-items: center; gap: 12px; padding: 0 20px;
  background: #fff; border-bottom: 1px solid var(--line);
}
.app-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px;
  background: var(--primary);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); min-width: 0; border-radius: 4px; padding: 4px; margin-left: -4px; }
.brand:hover { text-decoration: none; }
.brand img { width: 46px; height: 46px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-size: 15px; letter-spacing: -.2px; }
.brand-text span { font-size: 11px; color: var(--muted); letter-spacing: .6px; }
.header-spacer { flex: 1; }
.header-title { font-weight: 700; font-size: 17px; color: var(--navy); white-space: nowrap; letter-spacing: -.2px; }
.header-user { display: flex; align-items: center; gap: 8px; padding-left: 14px; margin-left: 4px; border-left: 1px solid var(--line); }
.header-user .who { display: flex; align-items: center; gap: 4px; font-weight: 600; white-space: nowrap; }
.icon-btn {
  display: inline-grid; place-items: center; width: var(--tap); height: var(--tap); border-radius: 4px;
  border: 0; background: transparent; color: var(--ink-2); cursor: pointer; transition: background .15s;
}
.icon-btn:hover { background: var(--primary-50); color: var(--primary-800); }
.icon-btn:active { background: var(--primary-100); }
.menu-toggle { display: none; margin-left: -8px; }

/* ─────────── 상단 유틸 바 (기관 포털형) ─────────── */
.util-bar { position: sticky; top: 0; z-index: 41; background: var(--navy); color: #C9D1E3; font-size: 13px; }
.util-inner a { color: #fff; }
.util-inner a:hover { color: #fff; }
.util-inner { display: flex; align-items: center; gap: 14px; height: 34px; padding: 0 20px; }
.util-inner .grow { flex: 1; }
.util-inner .who { display: inline-flex; align-items: center; gap: 4px; color: #fff; font-weight: 600; }
.util-inner .sep { width: 1px; height: 12px; background: rgba(255,255,255,.25); }
.util-btn { background: none; border: 0; color: #C9D1E3; cursor: pointer; font-size: 13px; padding: 4px 2px; min-height: 30px; }
.util-btn:hover { color: #fff; text-decoration: underline; }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 10px; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }
.breadcrumb .cur { color: var(--ink-2); font-weight: 600; }
/* 날짜 입력: "2026-09-29(화)" 표시 + 투명한 기본 입력칸을 위에 겹침 */
.date-field { position: relative; display: flex; align-items: center; gap: 8px; cursor: pointer; font-variant-numeric: tabular-nums; }
.date-field .date-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.date-field > .icon { color: var(--ink-2); width: 18px; height: 18px; flex: none; }
.date-field > input[type=date] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; margin: 0; font-size: 16px; }
.date-field > input[type=date]::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.date-field.focus { border-color: var(--primary-600); box-shadow: 0 0 0 3px rgba(142, 168, 246, .35); }
.date-field.empty .date-text { color: var(--muted); }
.date-field.sun .date-text { color: var(--danger); }
.date-field.sat .date-text { color: var(--primary-700); }
.date-field.disabled { background: var(--line-2); color: var(--muted); cursor: not-allowed; }
@media (max-width: 767px) {
  .date-nav { gap: 4px; }
  .date-nav .date-field { padding: 0 10px; justify-content: center; }
  .date-nav .date-field > .icon { display: none; }
  .date-nav .date-field .date-text { flex: none; text-overflow: clip; }
}
@media (max-width: 359px) { .date-nav .date-field .date-text { font-size: 14px; } }

/* ─────────── Layout ─────────── */
.app-shell { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: calc(100vh - var(--header-h)); }
.sidebar {
  position: sticky; top: calc(var(--util-h) + var(--header-h)); height: calc(100vh - var(--util-h) - var(--header-h)); overflow-y: auto;
  background: var(--card); border-right: 1px solid var(--line); padding: 18px 12px 24px;
}
.side-section + .side-section { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.side-label { font-size: 11px; font-weight: 700; letter-spacing: .8px; color: var(--muted); padding: 0 12px 6px; text-transform: uppercase; }
.side-link {
  display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 8px 12px; border-radius: 4px;
  color: var(--ink-2); font-weight: 500; transition: background .15s, color .15s;
}
.side-link:hover { background: var(--primary-50); color: var(--primary-800); text-decoration: none; }
.side-link.active { background: var(--primary-50); color: var(--primary-800); font-weight: 700; box-shadow: inset 3px 0 0 var(--primary-700); }
.side-link .ext { margin-left: auto; width: 14px; height: 14px; opacity: .55; }
.side-link .count { margin-left: auto; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; border-radius: 99px; padding: 0 7px; line-height: 18px; }
.side-collapse { display: none; }
.scrim { display: none; }

.main { min-width: 0; padding: 28px 32px 120px; }
.container { max-width: 1180px; margin: 0 auto; }
.container.wide { max-width: 1360px; }

/* ─────────── Page header ─────────── */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 2px solid var(--navy); }
.page-head h1 { font-size: 25px; letter-spacing: -.5px; display: flex; align-items: center; gap: 10px; color: var(--navy); }
.page-head h1 .icon { width: 26px; height: 26px; color: var(--primary-600); }
.page-head .sub { color: var(--muted); font-size: 14px; margin-top: 2px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.back-link { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 14px; margin-bottom: 8px; min-height: 32px; }

/* ─────────── Card ─────────── */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-pad { padding: 22px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.card-head h2, .card-head h3 { font-size: 16px; }
.card-body { padding: 20px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.empty { padding: 48px 16px; text-align: center; color: var(--muted); }
.empty .icon { width: 40px; height: 40px; margin: 0 auto 10px; color: var(--primary-300); }

/* ─────────── Buttons ─────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: var(--tap); padding: 0 18px;
  border-radius: 4px; border: 1px solid transparent; font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .05s; text-decoration: none !important;
  user-select: none;
}
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--primary-700); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--primary-800); }
.btn-soft { background: var(--primary-100); color: var(--primary-800); }
.btn-soft:hover:not(:disabled) { background: var(--primary-200); }
.btn-outline { background: #fff; border-color: #C3C8D1; color: var(--ink-2); }
.btn-outline:hover:not(:disabled) { border-color: var(--primary-300); color: var(--primary-800); background: var(--primary-50); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover:not(:disabled) { background: #C53348; }
.btn-danger-soft { background: var(--danger-50); color: var(--danger); }
.btn-danger-soft:hover:not(:disabled) { background: #F9D6DC; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover:not(:disabled) { background: #178457; }
.btn-ghost { background: transparent; color: var(--muted); padding: 0 10px; }
.btn-ghost:hover:not(:disabled) { color: var(--primary-800); background: var(--primary-50); }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 14px; border-radius: 4px; }
.btn-xs { min-height: 30px; padding: 0 10px; font-size: 13px; border-radius: 3px; }
.btn-block { width: 100%; }
.btn-lg { min-height: 52px; font-size: 16px; }
.btn.loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.loading::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.6); border-top-color: #fff; animation: spin .7s linear infinite; }
.btn-outline.loading::after, .btn-soft.loading::after { border-color: var(--primary-200); border-top-color: var(--primary-700); }
@keyframes spin { to { transform: rotate(360deg); } }
.link-btn { background: none; border: 0; padding: 6px 4px; color: var(--muted); cursor: pointer; font-size: 14px; min-height: 36px; }
.link-btn:hover { color: var(--primary-800); text-decoration: underline; }

/* ─────────── Forms ─────────── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .field-label { font-weight: 600; font-size: 14px; color: var(--ink-2); }
.field .req { color: var(--danger); margin-left: 2px; }
.field .hint { font-size: 13px; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: var(--tap); padding: 10px 14px; border: 1px solid var(--line); border-radius: 4px; background: #fff;
  font-size: 16px; /* iOS 자동 확대 방지 */ transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--primary-300); }
.input:focus, .select:focus, .textarea:focus { outline: 0; border-color: var(--primary-600); box-shadow: 0 0 0 3px rgba(142, 168, 246, .35); }
.input:disabled, .select:disabled, .textarea:disabled { background: var(--line-2); color: var(--muted); cursor: not-allowed; }
.input.invalid { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(224, 71, 91, .12); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236B7390' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; flex-wrap: wrap; }
.check {
  display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 4px;
  background: var(--primary-50); cursor: pointer; min-height: var(--tap); transition: border-color .15s, background .15s;
}
.check:hover { border-color: var(--primary-300); }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--primary-700); flex: none; cursor: pointer; }
.check.checked { border-color: var(--primary-600); background: var(--primary-100); }
.checkbox-inline { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; cursor: pointer; }
.checkbox-inline input { width: 20px; height: 20px; accent-color: var(--primary-700); }
.pw-rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 4px 12px; padding: 12px 14px; background: var(--line-2); border-radius: 4px; font-size: 13px; margin: 0; list-style: none; }
.pw-rules li { display: flex; align-items: center; gap: 6px; color: var(--muted); transition: color .15s; }
.pw-rules li::before { content: "○"; font-weight: 700; width: 14px; text-align: center; }
.pw-rules li.ok { color: var(--success); font-weight: 600; }
.pw-rules li.ok::before { content: "✓"; }
.pw-match { font-size: 13px; min-height: 20px; }
.pw-match.ok { color: var(--success); }
.pw-match.bad { color: var(--danger); }

/* Segmented / chips */
.segmented { display: inline-flex; padding: 4px; background: var(--line-2); border-radius: 4px; gap: 4px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.segmented::-webkit-scrollbar { display: none; }
.segmented button { border: 0; background: transparent; min-height: 38px; padding: 0 14px; border-radius: 4px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
.segmented button:hover { color: var(--ink); }
.segmented button.active { background: #fff; color: var(--primary-800); box-shadow: var(--shadow-sm); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 4px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-weight: 600; cursor: pointer; white-space: nowrap;
}
.chip:hover { border-color: var(--primary-300); color: var(--primary-800); }
.chip.active { background: var(--primary-700); border-color: var(--primary-700); color: #fff; }
.chip .n { font-size: 12px; background: var(--danger); color: #fff; border-radius: 99px; padding: 0 6px; line-height: 18px; }

/* ─────────── Badges ─────────── */
.role-badge { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 3px; font-size: 11.5px; font-weight: 800; color: #fff; flex: none; line-height: 1; }
.role-worker { background: #AD9AEE; }
.role-ta { background: #E38A2E; }
.role-professor { background: #6C5CE7; }
.role-alumni { background: #7B8497; }
.role-freshman { background: #E0598B; }
.role-employee { background: #5B6B86; }
.role-leave { background: #B08968; }
.role-council { background: #2BA37E; }
.role-admin { background: #1C2440; }
.name-with-badges { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
/* 학년: 이름의 절반 크기 숫자, 이름과 권한 배지 사이 */
.grade-mark { font-size: .55em; font-weight: 700; color: var(--muted); align-self: flex-end; margin: 0 1px .2em -2px; line-height: 1; }
.util-inner .grade-mark { color: #C9D1E3; }
.status {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 3px; font-size: 12.5px; font-weight: 700; white-space: nowrap; border: 1px solid currentColor;
}

.st-pending { background: var(--warn-50); color: var(--warn); }
.st-approved { background: var(--primary-100); color: var(--primary-800); }
.st-rented { background: #EFEAFE; color: #6A4FD8; }
.st-returned { background: var(--success-50); color: var(--success); }
.st-rejected { background: var(--danger-50); color: var(--danger); }
.st-cancelled, .st-ended { background: var(--line-2); color: var(--muted); }
.st-applied { background: var(--success-50); color: var(--success); }
.st-available { background: var(--success-50); color: var(--success); }
.tag { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 3px; font-size: 12px; font-weight: 700; background: var(--line-2); color: var(--muted); }
.tag-edited { background: #FFF1E6; color: #C2621B; }
.tag-new { background: var(--danger); color: #fff; }

/* ─────────── Toast ─────────── */
.toast-wrap { position: fixed; z-index: 100; top: calc(var(--util-h) + var(--header-h) + 12px); right: 20px; display: flex; flex-direction: column; gap: 10px; pointer-events: none; max-width: min(420px, calc(100vw - 32px)); }
.toast {
  pointer-events: auto; display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 4px;
  background: var(--navy); color: #fff; box-shadow: var(--shadow-lg); font-weight: 500; animation: toast-in .2s ease-out; border-left: 4px solid var(--primary);
}
.toast .icon { margin-top: 2px; }
.toast.success .icon { color: #6EE7B7; }
.toast.error { background: #8E1F31; }
.toast.leaving { animation: toast-out .2s ease-in forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-8px); } }

/* ─────────── Modal ─────────── */
.modal-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(20, 26, 50, .45); display: grid; place-items: center; padding: 24px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal {
  width: min(560px, 100%); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); display: flex; flex-direction: column;
  background: #fff; border-radius: 6px; box-shadow: var(--shadow-lg); animation: pop .18s ease-out;
}
.modal.lg { width: min(760px, 100%); }
@keyframes pop { from { opacity: 0; transform: scale(.97) translateY(6px); } }
/* 창 바깥을 누르면 흔들림 (닫히지 않음) */
.modal.shake { animation: modal-shake .42s cubic-bezier(.36, .07, .19, .97) both; }
@keyframes modal-shake {
  10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-7px); } 40%, 60% { transform: translateX(7px); }
}
@media (prefers-reduced-motion: reduce) { .modal.shake { animation: none; outline: 3px solid var(--primary-300); } }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 18px 20px 12px; }
.modal-head h2 { font-size: 18px; flex: 1; }
.modal-body { padding: 4px 20px 16px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px 18px; border-top: 1px solid var(--line-2); flex-wrap: wrap; }

/* ─────────── Login ─────────── */
.auth-page {
  /* 위쪽 고정: 탭(학생/조교·교수·교직원)을 바꿔 카드 높이가 달라져도 카드·탭 위치가 그대로 */
  min-height: 100vh; min-height: 100dvh; display: grid; place-items: start center; padding: 48px 16px 32px;
  background:
    linear-gradient(var(--navy) 0 180px, var(--bg) 180px);
}
.auth-card { width: min(460px, 100%); padding: 30px 30px 26px; border-radius: 6px; background: #fff; box-shadow: var(--shadow); border: 1px solid var(--line); border-top: 4px solid var(--primary); }
.auth-brand { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; margin-bottom: 22px; }
.auth-brand img { width: 72px; height: 72px; }
.auth-brand h1 { font-size: 22px; letter-spacing: -.4px; }
.auth-brand p { color: var(--muted); font-size: 14px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; background: var(--line-2); border-radius: 4px; margin-bottom: 20px; }
.auth-tabs button { min-height: 46px; border: 0; border-radius: 4px; background: transparent; font-weight: 700; color: var(--muted); cursor: pointer; }
.auth-tabs button.active { background: #fff; color: var(--primary-800); box-shadow: var(--shadow-sm); }
.auth-links { display: flex; justify-content: center; gap: 4px; margin-top: 12px; }
.auth-links span { color: var(--line); align-self: center; }
.auth-foot { margin-top: 18px; text-align: center; font-size: 12px; color: var(--muted); }
.notice-box { padding: 12px 14px; border-radius: 4px; background: var(--primary-50); border: 1px solid var(--primary-200); color: var(--ink-2); font-size: 14px; display: flex; gap: 10px; }
.notice-box .icon { color: var(--primary-700); margin-top: 2px; }
.notice-box.warn { background: var(--warn-50); border-color: #F3D9A4; }
.notice-box.warn .icon { color: var(--warn); }
.notice-box.danger { background: var(--danger-50); border-color: #F5C2CA; }
.notice-box.danger .icon { color: var(--danger); }
.steps { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; font-size: 13px; color: var(--muted); }
.steps .dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--line-2); font-weight: 700; }
.steps .on .dot { background: var(--primary-700); color: #fff; }
.steps .on { color: var(--ink); font-weight: 600; }
.steps .step { display: flex; align-items: center; gap: 6px; }
.steps .bar { flex: 1; height: 2px; background: var(--line); }

/* ─────────── Home ─────────── */
.hero {
  position: relative; overflow: hidden; border-radius: 6px; padding: 26px 28px; margin-bottom: 22px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--primary);
}
.hero h1 { font-size: 24px; letter-spacing: -.4px; position: relative; }
.hero p { color: var(--ink-2); margin-top: 6px; position: relative; }
.hero .row { margin-top: 12px; position: relative; }
.hero .today { font-weight: 700; color: var(--primary-800); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 6px; background: #fff;
  border: 1px solid var(--line); color: var(--ink); box-shadow: var(--shadow-sm); min-height: 132px;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.tile:hover { text-decoration: none; border-color: var(--primary-700); background: var(--primary-50); }
.tile:active { transform: translateY(0); }
.tile .ti { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-100); color: var(--primary-700); }
.tile .ti .icon { width: 26px; height: 26px; }
.tile b { font-size: 17px; letter-spacing: -.2px; }
.tile .tile-ext { width: 14px; height: 14px; color: var(--muted); vertical-align: -1px; }
.tile span { font-size: 13px; color: var(--muted); }
.tile .n { position: absolute; top: 16px; right: 16px; background: var(--danger); color: #fff; font-size: 12px; font-weight: 700; padding: 0 8px; line-height: 22px; border-radius: 99px; }
.tile.staff .ti { background: #EFEAFE; color: #6A4FD8; }
.tile.admin .ti { background: var(--navy); color: #fff; }
.home-section-label { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--muted); font-size: 13px; margin: 26px 0 12px; letter-spacing: .3px; }
.home-section-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.home-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 26px; }
.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list li { border-top: 1px solid var(--line-2); }
.mini-list li:first-child { border-top: 0; }
.mini-list a { display: flex; align-items: center; gap: 10px; padding: 12px 20px; color: var(--ink); min-height: 48px; }
.mini-list a:hover { background: var(--primary-50); text-decoration: none; }
.mini-list .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-list .d { font-size: 13px; color: var(--muted); white-space: nowrap; }

/* ─────────── Table ─────────── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table { border-top: 2px solid var(--navy); }
.table th { text-align: left; font-size: 14px; font-weight: 700; color: var(--ink); background: #F5F6F8; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr { transition: background .12s; }
.table tbody tr.clickable { cursor: pointer; }
.table tbody tr.clickable:hover { background: var(--primary-50); }

.table .num { width: 70px; color: var(--muted); text-align: center; }
.table .date { width: 150px; color: var(--muted); white-space: nowrap; }
.table .author { width: 170px; }
.table .actions { text-align: right; white-space: nowrap; }
.post-title { font-weight: 600; color: var(--ink); }
.post-title .cc { color: var(--primary-700); font-weight: 700; margin-left: 4px; font-size: 13px; }

/* 게시판 모바일 리스트 */
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li a { display: block; padding: 14px 16px; border-bottom: 1px solid var(--line-2); color: var(--ink); }
.post-list li a:hover { text-decoration: none; background: var(--primary-50); }
.post-list .meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-top: 4px; }

.pagination { display: flex; justify-content: center; gap: 6px; padding: 16px; flex-wrap: wrap; }
.pagination button { min-width: 40px; min-height: 40px; border-radius: 4px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-weight: 600; }
.pagination button:hover:not(:disabled) { border-color: var(--primary-300); }
.pagination button.active { background: var(--primary-700); color: #fff; border-color: var(--primary-700); }
.pagination button:disabled { opacity: .4; cursor: default; }
/* 이전/다음: 글자와 화살표가 있는 넓은 버튼 */
.pagination button.pg-step { display: inline-flex; align-items: center; gap: 4px; padding: 0 14px; min-height: 42px; color: var(--primary-800);
  border-color: var(--primary-300); background: var(--primary-50); }
.pagination button.pg-step:hover:not(:disabled) { background: var(--primary-100); border-color: var(--primary-600); }
.pagination button.pg-step .icon { width: 16px; height: 16px; }
.pagination button.pg-step:disabled { background: #fff; border-color: var(--line); color: var(--muted); }
.pagination button:not(.pg-step) { min-height: 42px; min-width: 42px; }
.search-bar { display: flex; gap: 8px; }
.search-bar .input { max-width: 320px; }

/* ─────────── Post detail / comments ─────────── */
.post-head { padding: 22px 24px 16px; border-bottom: 1px solid var(--line-2); }
.post-head h1 { font-size: 22px; letter-spacing: -.3px; }
.post-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: 14px; margin-top: 10px; }
.post-meta .sep { color: var(--line); }
.post-body { padding: 24px; white-space: pre-wrap; font-size: 16px; line-height: 1.75; min-height: 120px; }
.post-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 0 24px 20px; flex-wrap: wrap; }
.comments { margin-top: 18px; }
.comment-form { display: flex; gap: 10px; align-items: flex-end; padding: 16px 20px; }
.comment-form .textarea { min-height: 52px; height: 52px; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment { padding: 14px 20px; border-top: 1px solid var(--line-2); }
.comment .c-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.comment .c-head b { font-weight: 700; }
.comment .c-time { color: var(--muted); font-size: 13px; }
.comment .c-body { margin-top: 6px; white-space: pre-wrap; }
.comment .c-actions { display: flex; gap: 2px; margin-top: 4px; margin-left: -8px; flex-wrap: wrap; }
.comment.deleted .c-body { color: var(--muted); font-style: italic; }
.comment .replies { list-style: none; margin: 10px 0 0; padding: 0 0 0 18px; border-left: 3px solid var(--primary-100); }
.comment .replies .comment { padding: 10px 0 10px 14px; border-top: 0; }
.reply-box { margin-top: 10px; display: flex; gap: 8px; align-items: flex-end; }
.reply-box .textarea { min-height: 48px; height: 48px; }

/* ─────────── Timetable (desktop) ─────────── */
.tt-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.date-nav { display: flex; align-items: center; gap: 6px; }
.date-nav .input { width: auto; min-width: 160px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12.5px; color: var(--muted); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.tt-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tt { --cols: 14; display: grid; grid-template-columns: 120px repeat(var(--cols), minmax(58px, 1fr)); min-width: 940px; }
.tt-h { font-size: 12px; font-weight: 700; color: var(--muted); padding: 10px 6px; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line-2); background: #FAFBFE; position: relative; }
.tt-h.now { color: var(--primary-800); background: var(--primary-100); }
.tt-corner { border-left: 0; }
.tt-room { display: flex; align-items: center; padding: 0 14px; font-weight: 700; font-size: 14px; border-bottom: 1px solid var(--line-2); background: #fff; position: sticky; left: 0; z-index: 2; min-height: 78px; }
.tt-cell { border-left: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); min-height: 78px; }
.tt-cell.past { background: repeating-linear-gradient(-45deg, #FAFBFE, #FAFBFE 6px, #F3F5FA 6px, #F3F5FA 12px); }
.tt-cell.free { cursor: pointer; }
.tt-cell.free:hover { background: var(--primary-50); box-shadow: inset 0 0 0 2px var(--primary-200); }
.tt-block {
  margin: 5px 3px; padding: 6px 8px; border-radius: 4px; font-size: 12px; line-height: 1.35; overflow: hidden; z-index: 1;
  border-left: 4px solid; cursor: pointer; display: flex; flex-direction: column; gap: 1px; min-width: 0;
}
.tt-block b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt-block span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt-block .subj { font-weight: 700; font-size: 12.5px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tt-block:hover { filter: brightness(.97); box-shadow: var(--shadow); }
.k-lecture { background: #E7EEFF; border-color: #5B7BE6; color: #233B8F; }
.k-special { background: #FFF1E3; border-color: #E8892C; color: #8A4A0B; }
.k-rental { background: #EEE9FF; border-color: #7C62E8; color: #3E2A9A; }
.k-rental.pending { background: #FFF8E6; border-color: #D9A21B; color: #7A5600; border-left-style: dashed; }
.k-rental.returned { background: #EAF6F0; border-color: #3DAA7D; color: #1E6B4B; }
.k-cbt { background: #E4F6F4; border-color: #1DA39A; color: #0D5F59; }
.k-etc { background: #F0F1F5; border-color: #8A91A6; color: #3F4557; }
.lg-lecture { background: #5B7BE6; } .lg-special { background: #E8892C; } .lg-rental { background: #7C62E8; }
.lg-pending { background: #D9A21B; } .lg-cbt { background: #1DA39A; } .lg-etc { background: #8A91A6; }

/* Timetable (mobile list) */
.tt-mobile { display: none; }
.slot-list { list-style: none; margin: 0; padding: 0; }
.slot { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line-2); align-items: stretch; min-height: 60px; }
.slot:first-child { border-top: 0; }
.slot .hh { font-weight: 800; color: var(--ink-2); font-variant-numeric: tabular-nums; padding-top: 8px; }
.slot.past .hh { color: var(--muted); font-weight: 600; }
.slot .sb { border-radius: 4px; padding: 8px 12px; border-left: 4px solid; font-size: 14px; }
.slot .sb b { display: block; }
.slot .free-slot { display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px dashed var(--line); border-radius: 4px; padding: 6px 6px 6px 12px; color: var(--muted); font-size: 14px; min-height: 44px; }
.slot.past .free-slot { background: var(--line-2); border-style: solid; border-color: transparent; }
.slot.now .hh { color: var(--primary-800); }
.slot.now .hh::after { content: "지금"; display: block; font-size: 11px; font-weight: 700; color: #fff; background: var(--primary-700); border-radius: 3px; text-align: center; margin-top: 2px; width: 34px; }

/* ─────────── Rental lists ─────────── */
.flow { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: 13px; color: var(--muted); padding: 12px 16px; background: var(--primary-50); border: 1px solid var(--primary-200); border-radius: 4px; }
.flow .fs { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 3px; background: #fff; border: 1px solid var(--line); font-weight: 700; color: var(--ink-2); }
.flow .fs i { width: 20px; height: 20px; border-radius: 50%; background: var(--primary-700); color: #fff; font-style: normal; display: grid; place-items: center; font-size: 11px; }
.flow .arrow { color: var(--primary-600); }
.apply-menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.apply-menu .tile { min-height: 150px; }
.res-list { display: flex; flex-direction: column; gap: 12px; }
.res-item { display: flex; align-items: center; gap: 16px; padding: 18px 20px; }
.res-item .ri-icon { width: 52px; height: 52px; border-radius: 4px; display: grid; place-items: center; background: var(--primary-100); color: var(--primary-700); flex: none; }
.res-item .ri-icon .icon { width: 28px; height: 28px; }
.res-item.busy .ri-icon { background: #EFEAFE; color: #6A4FD8; }
.res-item .ri-main { flex: 1; min-width: 0; }
.res-item .ri-main b { font-size: 16px; }
.res-item .ri-sub { font-size: 13.5px; color: var(--muted); margin-top: 3px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.res-item .ri-side { display: flex; align-items: center; gap: 10px; flex: none; }
.res-item.clickable { cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.res-item.clickable:hover { border-color: var(--primary-300); box-shadow: var(--shadow); }
.res-item.disabled { opacity: .92; }
.qty { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 20px; color: var(--primary-800); }
.qty small { font-size: 13px; color: var(--muted); font-weight: 600; }
.qty.zero { color: var(--danger); }
.who-line { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13.5px; }
.who-line b { color: var(--ink); font-weight: 700; }
.kv { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 8px 12px; font-size: 14.5px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; }

/* 신청내역 카드 / 표 */
.app-table td.fields { font-size: 13.5px; color: var(--ink-2); }
.app-cards { display: none; }
.app-card { padding: 16px 18px; }
.app-card .ac-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.app-card .ac-head b { font-size: 15px; }
.app-card .kv { grid-template-columns: 96px minmax(0, 1fr); font-size: 14px; }
.app-card .ac-actions { display: flex; gap: 8px; margin-top: 14px; }
.app-card .ac-actions .btn { flex: 1; }

/* ─────────── Calendar ─────────── */
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.cal-head h2 { font-size: 20px; min-width: 130px; text-align: center; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-dow { padding: 10px 8px; font-size: 12.5px; font-weight: 700; color: var(--muted); text-align: center; border-bottom: 1px solid var(--line); background: #FAFBFE; }
.cal-dow.sun, .cal-day.sun .dn { color: var(--danger); }
.cal-dow.sat, .cal-day.sat .dn { color: var(--primary-700); }
.cal-day { min-height: 116px; padding: 6px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 3px; min-width: 0; cursor: default; }
.cal-day:nth-child(7n) { border-right: 0; }
.cal-day.other { background: #FBFCFE; }
.cal-day.other .dn { opacity: .4; }
.cal-day .dn { font-size: 13px; font-weight: 700; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; }
.cal-day.today .dn { background: var(--primary-700); color: #fff !important; }
.cal-day.selected { background: var(--primary-50); box-shadow: inset 0 0 0 2px var(--primary-300); }
.cal-ev { font-size: 12px; padding: 2px 7px; border-radius: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; border: 0; text-align: left; font-weight: 600; min-height: 22px; }
.cal-ev:hover { filter: brightness(.95); }
.cal-more { font-size: 11.5px; color: var(--muted); padding-left: 6px; }
.cal-dots { display: none; gap: 3px; justify-content: center; flex-wrap: wrap; }
.cal-dots i { width: 6px; height: 6px; border-radius: 50%; }
.c-blue { background: #E1E8FF; color: #2C47A8; } .d-blue { background: #5B7BE6; }
.c-purple { background: #ECE6FF; color: #5436C4; } .d-purple { background: #7C62E8; }
.c-green { background: #DDF4EA; color: #17714D; } .d-green { background: #2BA37E; }
.c-orange { background: #FFEBD6; color: #9A5310; } .d-orange { background: #E8892C; }
.c-red { background: #FDE2E6; color: #A62236; } .d-red { background: #E0475B; }
.c-gray { background: #ECEEF3; color: #4A5165; } .d-gray { background: #8A91A6; }
.c-teal { background: #DDF2F2; color: #0F6464; } .d-teal { background: #1C9C9C; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 12px 16px 0; font-size: 13px; color: var(--ink-2); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend i { width: 12px; height: 12px; border-radius: 2px; }
.cat-tag { display: inline-block; padding: 1px 7px; border-radius: 3px; font-size: 12px; font-weight: 700; vertical-align: 1px; }
.cat-field { border: 0; padding: 0; margin: 0; }
.cat-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.cat-pick { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px; border: 1px solid var(--line);
  border-radius: 4px; cursor: pointer; background: #fff; font-size: 13.5px; text-align: center; min-height: var(--tap); }
.cat-pick input { position: absolute; opacity: 0; }
.cat-pick .sw { width: 100%; height: 12px; border-radius: 2px; }
.cat-pick:hover { border-color: var(--primary-300); }
.cat-pick:has(input:checked) { border-color: var(--primary-700); box-shadow: inset 0 0 0 1px var(--primary-700); background: var(--primary-50); }
.cat-pick:has(input:focus-visible) { outline: 3px solid var(--primary-300); }
.day-panel { margin-top: 16px; }
.ev-item { display: flex; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line-2); cursor: pointer; align-items: flex-start; }
.ev-item:first-child { border-top: 0; }
.ev-item:hover { background: var(--primary-50); }
.ev-item .bar { width: 4px; align-self: stretch; border-radius: 3px; }
.color-picks { display: flex; gap: 8px; flex-wrap: wrap; }
.color-picks label { cursor: pointer; }
.color-picks input { position: absolute; opacity: 0; }
.color-picks span { display: block; width: 34px; height: 34px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.color-picks input:checked + span { box-shadow: 0 0 0 3px var(--ink-2); }
.color-picks input:focus-visible + span { outline: 3px solid var(--primary-300); }

/* ─────────── Lost & found ─────────── */
.lost-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.lost-card { overflow: hidden; cursor: pointer; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.lost-card:hover { border-color: var(--primary-700); }
.lost-img { aspect-ratio: 4 / 3; background: var(--line-2); display: grid; place-items: center; color: var(--muted); overflow: hidden; position: relative; }
.lost-img img { width: 100%; height: 100%; object-fit: cover; }
.lost-img .tag { position: absolute; top: 10px; left: 10px; }
.lost-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.lost-body b { font-size: 16px; }
.lost-body .m { font-size: 13px; color: var(--muted); display: flex; gap: 4px 10px; flex-wrap: wrap; }
.lost-card.returned { opacity: .7; }
.lost-detail-img { border-radius: 4px; overflow: hidden; background: var(--line-2); margin-bottom: 16px; }
.lost-detail-img img { width: 100%; max-height: 420px; object-fit: contain; }
.file-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 2px dashed var(--line); border-radius: 4px; padding: 20px; text-align: center; color: var(--muted); cursor: pointer; min-height: 120px; }
.file-drop:hover { border-color: var(--primary-300); background: var(--primary-50); }
.file-drop img { max-height: 180px; border-radius: 3px; }

/* ─────────── AC ─────────── */
.ac-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ac-card { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.ac-card .top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ac-card .top b { font-size: 16px; }
.ac-state { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; padding: 4px 12px; border-radius: 99px; font-size: 13px; }
.ac-on { background: #E0F2FE; color: #0369A1; }
.ac-off { background: var(--line-2); color: var(--muted); }
.ac-broken { background: var(--danger-50); color: var(--danger); }
.ac-none { background: var(--warn-50); color: var(--warn); }
.ac-card .btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ac-card .btns .btn.active { box-shadow: inset 0 0 0 2px var(--primary-700); }

/* ─────────── Admin ─────────── */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { padding: 16px 18px; }
.stat .v { font-size: 26px; font-weight: 800; color: var(--primary-800); font-variant-numeric: tabular-nums; }
.stat .l { font-size: 13px; color: var(--muted); }
.role-checks { display: flex; flex-wrap: wrap; gap: 6px; }
.role-check { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 12px; border-radius: 4px; border: 1px solid var(--line); cursor: pointer; font-size: 14px; font-weight: 600; background: #fff; user-select: none; }
.role-check input { width: 18px; height: 18px; accent-color: var(--primary-700); margin: 0; }
.role-check:hover { border-color: var(--primary-300); }
.role-check.on { background: var(--primary-100); border-color: var(--primary-600); color: var(--primary-800); }
.user-cards { display: none; }
.user-card { padding: 16px; }
.user-card .uc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.inactive-row { opacity: .55; }

/* ─────────── Notification FAB & panel ─────────── */
.fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; border: 0;
  background: var(--primary-700); color: #fff; display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 4px 12px rgba(31, 45, 77, .3); transition: background .15s;
  margin-bottom: env(safe-area-inset-bottom);
}
.fab:hover { background: var(--primary-800); }
.fab:active { transform: scale(.96); }
.fab .icon { width: 26px; height: 26px; }
.fab .badge {
  position: absolute; top: -2px; right: -2px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 99px;
  background: #E5243B; color: #fff; font-size: 12.5px; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff;
}
.notif-panel {
  position: fixed; right: 24px; bottom: 96px; z-index: 70; width: 400px; max-height: min(620px, calc(100vh - 140px));
  display: flex; flex-direction: column; background: #fff; border-radius: 6px; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  animation: pop .18s ease-out;
}
.notif-panel .np-head { display: flex; align-items: center; gap: 8px; padding: 16px 18px; border-bottom: 1px solid var(--line-2); }
.notif-panel .np-head h2 { font-size: 17px; flex: 1; }
.notif-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; }
.notif-item { display: flex; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); cursor: pointer; width: 100%; text-align: left; background: #fff; border-left: 0; border-right: 0; border-top: 0; }
.notif-item:hover { background: var(--primary-50); }
.notif-item.unread { background: #F6F8FF; }
.notif-item .ni-dot { width: 8px; height: 8px; border-radius: 50%; background: transparent; margin-top: 8px; flex: none; }
.notif-item.unread .ni-dot { background: var(--danger); }
.notif-item .ni-icon { width: 36px; height: 36px; border-radius: 4px; display: grid; place-items: center; background: var(--primary-100); color: var(--primary-700); flex: none; }
.notif-item .ni-icon .icon { width: 18px; height: 18px; }
.notif-item .ni-msg { font-size: 14px; color: var(--ink); }
.notif-item:not(.unread) .ni-msg { color: var(--muted); }
.notif-item .ni-time { font-size: 12px; color: var(--muted); margin-top: 2px; }

.admin-warn { margin-bottom: 18px; }
.loading-page { display: grid; place-items: center; padding: 80px 0; color: var(--muted); }
.spinner { width: 32px; height: 32px; border-radius: 50%; border: 3px solid var(--primary-100); border-top-color: var(--primary-700); animation: spin .8s linear infinite; }


/* ─────────── 관리자: 명단 검색 / 명단 추가 ─────────── */
.search-input { position: relative; }
.search-input > .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-input .input { padding-left: 44px; min-height: 50px; font-size: 16px; }
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filter-row .select { width: auto; min-width: 140px; }
.filter-actions { display: flex; gap: 8px; margin-left: auto; }
mark { background: #FFE58A; color: inherit; border-radius: 3px; padding: 0 1px; }
.roster-drop { min-height: 180px; gap: 8px; }
.roster-drop .icon { width: 36px; height: 36px; color: var(--primary-600); }
.roster-drop b { color: var(--ink-2); }
.roster-drop.drag { border-color: var(--primary-600); background: var(--primary-100); }
.preview-card { border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; }
.preview-card .uc-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
code { background: var(--line-2); padding: 1px 6px; border-radius: 3px; font-size: 13px; }
@media (max-width: 767px) {
  .filter-row .select { flex: 1 1 calc(50% - 4px); min-width: 0; }
  .filter-actions { width: 100%; margin-left: 0; }
  .filter-actions .btn { flex: 1; }
}
@media (max-width: 359px) {
  .filter-actions { flex-direction: column; }
  .filter-row .select { flex-basis: 100%; }
}

@media (min-width: 768px) { .header-user { display: none; } }
@media (max-width: 767px) { .util-bar { display: none; } :root { --util-h: 0px; } }


/* ─────────── 마이페이지 ─────────── */
.profile-card { display: flex; align-items: center; gap: 16px; padding: 18px 22px; margin-bottom: 16px; border-left: 5px solid var(--primary); }
.profile-avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 22px; font-weight: 800; flex: none; }
.profile-name { font-size: 19px; }
.mypage-tabs { margin-bottom: 16px; }
.my-tt-card { overflow-x: auto; }
.my-tt { display: grid; grid-template-columns: 44px repeat(var(--days), minmax(96px, 1fr)); grid-template-rows: 38px repeat(var(--rows), 56px); min-width: 520px; }
.mt-day, .mt-corner { display: grid; place-items: center; font-weight: 700; font-size: 14px; background: #F5F6F8; border-bottom: 2px solid var(--navy); border-left: 1px solid var(--line); }
.mt-corner { border-left: 0; }
.mt-hour { font-size: 12px; color: var(--muted); text-align: right; padding: 3px 8px 0 0; border-top: 1px solid var(--line-2); font-variant-numeric: tabular-nums; }
.mt-cell { border-top: 1px solid var(--line-2); border-left: 1px solid var(--line-2); cursor: pointer; }
.mt-cell:hover { background: var(--primary-50); }
.mt-block { margin: 2px; padding: 6px 8px; border: 0; border-radius: 4px; text-align: left; display: flex; flex-direction: column; gap: 1px; overflow: hidden;
  font-size: 12px; line-height: 1.35; cursor: pointer; color: #fff; z-index: 1; min-width: 0; }
.mt-block b { font-size: 13px; white-space: normal; }
.mt-block span { opacity: .92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-block:hover { filter: brightness(1.06); }
.tc0 { background: #4A67C7; } .tc1 { background: #2E8B6E; } .tc2 { background: #C0662A; } .tc3 { background: #7A57C9; }
.tc4 { background: #1F8A9A; } .tc5 { background: #B2455D; } .tc6 { background: #5B6B86; } .tc7 { background: #8A7A1E; }
.bulk-bar { margin-bottom: 10px; gap: 10px; }
.my-list { list-style: none; margin: 0; padding: 0; }
.my-list li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); }
.my-list li:first-child { border-top: 0; }
.my-list input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--primary-700); flex: none; }
.my-list .ml-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; color: var(--ink); }
.my-list .ml-main:hover { text-decoration: none; }
.my-list .ml-main:hover b, .my-list .ml-main:hover .ml-content { text-decoration: underline; }
.my-list .ml-content { white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.my-list .cc { color: var(--primary-700); font-weight: 700; font-size: 13px; }
.my-list .ml-actions { display: flex; gap: 2px; flex: none; }
@media (max-width: 767px) {
  .my-tt { grid-template-columns: 30px repeat(var(--days), minmax(0, 1fr)); grid-template-rows: 34px repeat(var(--rows), 50px); min-width: 0; }
  .mt-hour { padding-right: 4px; font-size: 11px; }
  .mt-block { padding: 4px 5px; font-size: 10.5px; }
  .mt-block b { font-size: 11.5px; line-height: 1.25; }
  .my-list li { flex-wrap: wrap; padding: 12px; }
  .my-list .ml-actions { width: 100%; justify-content: flex-end; }
  .profile-card { padding: 14px 16px; }
}

.btn-kakao { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 54px; border-radius: 6px;
  background: #FEE500; color: rgba(0, 0, 0, .85); font-weight: 700; font-size: 16px; text-decoration: none !important; }
.btn-kakao:hover { background: #F5DC00; }
.btn-kakao:focus-visible { outline: 3px solid var(--primary-300); outline-offset: 2px; }
.kakao-sym { width: 20px; height: 20px; flex: none; }
.notice-box .kakao-sym { background: #FEE500; border-radius: 4px; padding: 2px; width: 22px; height: 22px; }
.kakao-steps { margin: 16px 0 6px; padding: 12px 14px 12px 32px; background: var(--line-2); border-radius: 6px; font-size: 13.5px; color: var(--ink-2); }
.kakao-steps li + li { margin-top: 4px; }
.sid-note { color: var(--primary-800); font-weight: 600; }
.auth-help { text-align: center; font-size: 13px; color: var(--muted); margin-top: 4px; }
.pw-admin { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.pw-admin h3 { font-size: 15px; display: flex; align-items: center; gap: 6px; }

.restrict-box { margin-bottom: 14px; }
/* 2단계 인증 · 보안 기록 */
.mfa-card { padding: 14px 18px; margin-bottom: 16px; }
.mfa-row { display: flex; align-items: center; gap: 14px; }
.mfa-ic { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--warn-50); color: var(--warn); flex: none; }
.mfa-ic.on { background: var(--success-50); color: var(--success); }
.mfa-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mfa-steps { margin: 0 0 12px; padding-left: 20px; font-size: 14px; }
.mfa-qr { display: grid; place-items: center; padding: 8px; }
.mfa-qr img { border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.mfa-secret { font-size: 13px; letter-spacing: 1px; word-break: break-all; }
.mfa-input { font-size: 22px; letter-spacing: 8px; text-align: center; font-variant-numeric: tabular-nums; }
.stat.warn .v { color: var(--warn); }
.stat.danger .v { color: var(--danger); }
.sec-detail { max-width: 360px; overflow-wrap: anywhere; }
@media (max-width: 767px) { .mfa-row { flex-wrap: wrap; } .mfa-row .btn { width: 100%; } }
/* 학생회 */
.council-tabs { margin-bottom: 16px; }
.seg-link { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 3px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.seg-link:hover { color: var(--ink); text-decoration: none; }
.seg-link.active { background: #fff; color: var(--primary-800); box-shadow: var(--shadow-sm); }
.council-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.council-card { display: flex; flex-direction: column; gap: 8px; padding: 18px; color: var(--ink); border-top: 3px solid #0E8A8A; }
.council-card:hover { text-decoration: none; border-color: #0E8A8A; background: #FAFDFD; }
.council-card .cc-top { display: flex; gap: 6px; flex-wrap: wrap; }
.council-card .cc-title { font-size: 17px; }
.council-card .cc-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13.5px; color: var(--ink-2); }
.council-card .cc-meta .icon { width: 15px; height: 15px; vertical-align: -2px; color: var(--muted); }
/* 마감(신청 마감·정원 마감·진행일 지남): 카드 전체 회색 */
.council-card.is-closed { background: #EEF0F3; border-color: #D5D9E0; border-top-color: #A3AAB8; color: var(--muted); }
.council-card.is-closed .cc-title, .council-card.is-closed .cc-meta { color: var(--muted); }
.council-card.is-closed:hover { background: #E7EAEE; border-color: #C3C8D1; border-top-color: #8F97A6; }
@media (max-width: 767px) { .council-list { grid-template-columns: minmax(0, 1fr); } }
.cp-note { text-align: right; padding: 0 24px 8px; margin: 0; }
@media (max-width: 767px) { .cp-note { padding: 0 16px 8px; } }
/* 홈: 한 줄에 4개 타일, 학생회(노랑)·취업현황(초록) */
.tiles.tiles-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* 취업현황 카드 */
.career-card { border-top-color: #2BA37E; cursor: pointer; }
.career-card:hover { border-color: #2BA37E; background: #F7FCFA; }
/* 취업현황 등록: 학번·성별 한 줄 (휴대폰 포함) */
.cr-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.cr-pair .role-check { min-height: var(--tap); }
.cert-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.cert-tags .tag { background: #E8F4EE; color: #1E6B4B; }
.cert-tags .tag-hit { background: #FFE58A; color: var(--ink); }
.cc-note { white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile.tile-yellow .ti { background: #FFF1BF; color: #A86A00; }
.tile.tile-yellow:hover { border-color: #D9A21B; background: #FFFBEA; }
.tile.tile-green .ti { background: #D8F2E6; color: #1E7F55; }
.tile.tile-green:hover { border-color: #2BA37E; background: #F0FAF5; }
@media (max-width: 1023px) { .tiles.tiles-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 359px) { .tiles.tiles-4 { grid-template-columns: minmax(0, 1fr); } }
.kind-picks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.kind-pick { display: flex; align-items: center; gap: 8px; min-height: var(--tap); padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; cursor: pointer; background: #fff; }
.kind-pick input { width: 20px; height: 20px; accent-color: var(--danger); margin: 0; flex: none; }
.kind-pick .icon { color: var(--muted); }
.kind-pick:hover { border-color: #EDC4C8; }
.kind-pick.on { border-color: var(--danger); background: var(--danger-50); box-shadow: inset 0 0 0 1px var(--danger); }
.kind-pick.on .icon { color: var(--danger); }
@media (max-width: 767px) { .kind-picks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ═══════════════ Large desktop ≥1440 ═══════════════ */
@media (min-width: 1440px) {
  :root { --sidebar-w: 272px; }
  .main { padding: 32px 48px 120px; }
  body { font-size: 15.5px; }
}

/* ═══════════════ Laptop 1024–1279 ═══════════════ */
@media (max-width: 1279px) {
  :root { --sidebar-w: 220px; }
  .main { padding: 24px 24px 110px; }
  .ac-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tt { grid-template-columns: 104px repeat(var(--cols), minmax(52px, 1fr)); min-width: 0; }
  .tt-room { padding: 0 10px; font-size: 13px; }
  .tt-block { padding: 5px 6px; font-size: 11.5px; }
}

/* ═══════════════ Tablet 768–1023: 접히는 아이콘 사이드바 ═══════════════ */
@media (max-width: 1023px) {
  :root { --sidebar-w: 76px; }
  .sidebar { padding: 14px 10px; }
  .side-label, .side-link .txt, .side-link .ext { display: none; }
  .side-link { justify-content: center; padding: 10px; min-height: 48px; position: relative; }
  .side-link .count { position: absolute; top: 4px; right: 6px; margin: 0; }
  .side-collapse { display: flex; }
  body.sidebar-open .app-shell { grid-template-columns: 240px minmax(0, 1fr); }
  body.sidebar-open .sidebar { padding: 18px 12px; }
  body.sidebar-open .side-label, body.sidebar-open .side-link .txt, body.sidebar-open .side-link .ext { display: initial; }
  body.sidebar-open .side-link { justify-content: flex-start; }
  body.sidebar-open .side-link .count { position: static; margin-left: auto; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-cols { grid-template-columns: minmax(0, 1fr); }
  .header-title { font-size: 15px; }
  /* 태블릿 시간표: 표 영역만 가로 스크롤 */
  .tt { grid-template-columns: 96px repeat(var(--cols), 64px); min-width: max-content; }
  .ac-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .table .author { width: 130px; }
  .table .date { width: 120px; }
}

/* ═══════════════ Mobile <768: 전용 레이아웃 ═══════════════ */
@media (max-width: 767px) {
  :root { --header-h: 56px; }
  body { font-size: 15px; }
  .app-header { padding: 0 12px; gap: 6px; }
  .menu-toggle { display: inline-grid; }
  .brand img { width: 34px; height: 34px; }
  .brand-text span { display: none; }
  .brand-text b { font-size: 14px; }
  .header-title { display: none; }
  .header-user { padding-left: 0; border-left: 0; margin-left: 0; }
  .header-user .who { display: none; }
  .app-shell { display: block; }
  /* 사이드바 → 햄버거 드로어 */
  .sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; height: 100%; width: min(300px, 84vw); z-index: 90; padding: 16px 12px 32px;
    transform: translateX(-102%); transition: transform .22s ease-out; box-shadow: var(--shadow-lg); border-right: 0;
  }
  .side-label, .side-link .txt, .side-link .ext { display: initial !important; }
  .side-link { justify-content: flex-start !important; min-height: 48px; }
  .side-link .count { position: static !important; margin-left: auto !important; }
  .side-collapse { display: none; }
  .drawer-head { display: flex !important; }
  body.drawer-open .sidebar { transform: none; }
  body.drawer-open .scrim { display: block; position: fixed; inset: 0; z-index: 85; background: rgba(20, 26, 50, .45); animation: fade .15s; }
  body.drawer-open { overflow: hidden; }

  .main { padding: 16px 16px 110px; }
  .page-head { margin-bottom: 14px; }
  .page-head h1 { font-size: 20px; }
  .page-head .page-actions { width: 100%; }
  .page-head .page-actions .btn { flex: 1; }
  .card-pad, .card-body { padding: 16px; }
  .card-head { padding: 14px 16px; }
  .grid-2, .grid-3, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-actions { flex-direction: column-reverse; }
  .form-actions .btn { width: 100%; }

  .hero { padding: 20px 18px; border-radius: 6px; }
  .hero h1 { font-size: 19px; }
  .tiles, .apply-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile { padding: 16px 14px; min-height: 112px; border-radius: 6px; gap: 8px; }
  .tile .ti { width: 42px; height: 42px; border-radius: 50%; }
  .tile b { font-size: 15.5px; }
  .tile span { display: none; }
  .apply-menu .tile span { display: block; font-size: 12px; }

  /* 게시판 표 → 세로 목록 */
  .board-table { display: none; }
  .board-mobile { display: block !important; }
  .search-bar { width: 100%; }
  .search-bar .input { max-width: none; }
  .post-head { padding: 18px 16px 14px; }
  .post-head h1 { font-size: 19px; }
  .post-body { padding: 18px 16px; font-size: 15.5px; }
  .post-foot { padding: 0 16px 16px; }
  .post-foot .btn { flex: 1; }
  .comment { padding: 12px 16px; }
  .comment .replies { padding-left: 10px; }
  .comment .replies .comment { padding-left: 10px; }
  .comment .replies .replies { padding-left: 6px; border-left-width: 2px; }
  .comment-form { padding: 12px 16px; flex-direction: column; align-items: stretch; }
  .reply-box { flex-direction: column; align-items: stretch; }

  /* 시간표 → 강의실 선택 + 세로 목록 */
  .tt-desktop { display: none; }
  .tt-mobile { display: block; }
  .tt-toolbar { padding: 12px; }
  .date-nav { width: 100%; }
  .date-nav .input { flex: 1; min-width: 0; }
  .legend { display: none; }

  .res-item { padding: 14px; gap: 12px; flex-wrap: wrap; }
  .res-item .ri-icon { width: 44px; height: 44px; }
  .res-item .ri-side { width: 100%; justify-content: space-between; }
  .res-item .ri-side .btn { flex: 1; }
  .kv { grid-template-columns: 96px minmax(0, 1fr); }

  /* 신청내역/사용자 관리: 표 → 카드 */
  .app-table-wrap, .user-table-wrap { display: none; }
  .app-cards, .user-cards { display: flex; flex-direction: column; gap: 12px; }

  .cal-day { min-height: 58px; padding: 4px 2px; align-items: center; cursor: pointer; }
  .cal-day .cal-ev, .cal-day .cal-more { display: none; }
  .cal-day .cal-dots { display: flex; }
  .cal-dow { padding: 8px 2px; }
  .cal-head h2 { font-size: 18px; min-width: 0; }

  .ac-grid { grid-template-columns: minmax(0, 1fr); }
  .lost-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .lost-body { padding: 10px 12px 12px; }
  .lost-body b { font-size: 14.5px; }

  /* 모달 → 바텀시트 */
  .modal-backdrop { padding: 0; place-items: end stretch; }
  .modal, .modal.lg { width: 100%; max-height: 92vh; max-height: 92dvh; border-radius: 10px 10px 0 0; animation: sheet .22s ease-out; padding-bottom: env(safe-area-inset-bottom); }
  @keyframes sheet { from { transform: translateY(40px); opacity: .5; } }
  .modal-foot .btn { flex: 1; }

  .fab { right: 16px; bottom: 16px; width: 58px; height: 58px; }
  .notif-panel { left: 0; right: 0; bottom: 0; width: 100%; max-height: 82vh; max-height: 82dvh; border-radius: 10px 10px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .toast-wrap { left: 16px; right: 16px; top: calc(var(--header-h) + 8px); max-width: none; }
  .auth-card { padding: 26px 20px 22px; border-radius: 6px; }
  .auth-brand img { width: 60px; height: 60px; }
  .auth-brand h1 { font-size: 19px; }
}

@media (max-width: 359px) {
  .tiles, .apply-menu { grid-template-columns: 1fr; }
  .lost-grid { grid-template-columns: 1fr; }
  .brand-text { display: none; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 6px; }
}

/* 가로 모드 스마트폰: 높이 좁을 때 */
@media (max-height: 480px) and (orientation: landscape) {
  .modal, .modal.lg { max-height: 96vh; }
  .notif-panel { max-height: 90vh; }
  .auth-page { place-items: start center; }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (hover: none) {
  .tile:hover, .lost-card:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
.drawer-head { display: none; align-items: center; justify-content: space-between; padding: 0 4px 12px; margin-bottom: 8px; border-bottom: 1px solid var(--line-2); }
.board-mobile { display: none; }

/* ─── 개인정보 수집·이용 동의 ─── */
.privacy-box { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); padding: 12px 14px; }
.privacy-box summary { cursor: pointer; display: flex; align-items: center; gap: 6px; list-style: none; }
.privacy-box summary::-webkit-details-marker { display: none; }
.privacy-box summary svg { width: 16px; height: 16px; color: var(--primary-700); flex: none; }
.privacy-terms { max-height: 240px; overflow-y: auto; margin-top: 10px; padding: 10px 12px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 13px; line-height: 1.6; }
.privacy-terms h4 { font-size: 13px; margin: 10px 0 4px; }
.privacy-terms ul { margin: 0; padding-left: 18px; }
.privacy-terms p { margin: 0 0 6px; }
.privacy-check { margin-top: 10px; align-items: flex-start; gap: 8px; font-size: 14px; }
.privacy-check input { margin-top: 3px; flex: none; }
.req-tag { color: var(--danger); }
.privacy-card { max-width: 560px; }
.privacy-history { margin: 0; padding-left: 18px; }

/* ─── 게시판: 조회수 · 상단 고정 (관리자 글 7일 / HOT 3일) ─── */
.table .views { width: 64px; color: var(--muted); text-align: center; white-space: nowrap; }
.hot-mark { color: var(--danger); font-weight: 800; font-size: 12px; letter-spacing: .02em; }
.pin-mark { color: var(--ink-2); font-weight: 700; font-size: 12px; }
.table tr.row-hot > td { background: #FDF1F1; }
.table tr.row-hot:hover > td { background: #FAE6E6; }
.table tr.row-admin > td { background: #F1F2F4; }
.table tr.row-admin:hover > td { background: #E8EAED; }
.post-list li.row-hot { background: #FDF1F1; }
.post-list li.row-admin { background: #F1F2F4; }

/* ─── 노트북 초기화 안내 ─── */
.reset-guide { white-space: pre-wrap; line-height: 1.75; overflow-wrap: anywhere; }

/* ─── 설문조사 · 수요조사 ─── */
.survey-card { border-top-color: var(--primary-600); }
.survey-card:hover { border-color: var(--primary-600); background: var(--primary-50); }
.sv-kind { font-weight: 700; }
.sv-kind.demand { background: var(--warn-50); color: var(--warn); }
.sv-kind.survey { background: var(--primary-100); color: var(--primary-800); }
.sv-q-title { font-size: 16px; margin: 0 0 12px; line-height: 1.5; }
.sv-q-title .req { margin-left: 2px; }
.sv-options { display: flex; flex-direction: column; gap: 6px; }
.sv-option { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; background: var(--card); }
.sv-option:hover { border-color: var(--primary-300); }
.sv-option:has(input:checked) { border-color: var(--primary-600); background: var(--primary-50); }
.sv-option input { width: 18px; height: 18px; flex: none; accent-color: var(--primary-700); }
.sv-option:has(input:disabled) { cursor: default; opacity: .75; }
.sv-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.sv-bar-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 4px; font-size: 14px; }
.sv-bar { height: 10px; background: var(--line-2); border-radius: 5px; overflow: hidden; }
.sv-bar > span { display: block; height: 100%; background: var(--primary-600); border-radius: 5px; min-width: 2px; }
.sv-answers { list-style: none; margin: 0; padding: 0; max-height: 420px; overflow-y: auto; }
.sv-answers li { padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.sf-q { display: flex; flex-direction: column; gap: 10px; }
.sf-q-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sf-q-head .grow { flex: 1; }
.sf-q-head .select { width: auto; min-width: 120px; }
.sf-opts { display: flex; flex-direction: column; gap: 6px; }
.sf-opt { display: flex; align-items: center; gap: 8px; }
.sf-mark { width: 16px; height: 16px; border: 2px solid var(--line); flex: none; }
.sf-mark.single { border-radius: 50%; }
.sf-mark.multi { border-radius: 3px; }
.sf-opts .btn-ghost { align-self: flex-start; }
.rot-up { transform: rotate(90deg); }
.rot-down { transform: rotate(90deg); }


/* ─── 사이드바: 외부 링크 상단 고정 + 메뉴만 스크롤 ─── */
.sidebar { display: flex; flex-direction: column; overflow: hidden; padding-bottom: 0; }
.sidebar > * { flex: none; }
.side-ext { padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.sidebar .side-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; margin: 0; padding: 16px 0 24px; border-top: 0; }
@media (max-width: 767px) {
  .sidebar .side-scroll { padding-bottom: 32px; }
}

/* ─── 노트북 대여자 등록 ─── */
.rb-results { list-style: none; margin: 6px 0 0; padding: 0; max-height: 240px; overflow-y: auto; border: 1px solid var(--line-2); border-radius: var(--radius); }
.rb-results:empty { display: none; }
.rb-item { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; width: 100%; min-height: 44px; padding: 8px 12px; border: 0; border-bottom: 1px solid var(--line-2); background: var(--card); text-align: left; cursor: pointer; font: inherit; color: var(--ink); }
.rb-item:hover:not(:disabled) { background: var(--primary-50); }
.rb-item:disabled { cursor: not-allowed; opacity: .6; }
.rb-empty { padding: 10px 12px; }
.rb-picked { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--primary-300); background: var(--primary-50); border-radius: var(--radius); }
.rb-picked .btn { margin-left: auto; }

/* 설문: 참여 완료 + 응답 수정 */
.sv-done { align-items: center; }
.sv-done-body { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.sv-done-body .status { align-self: flex-start; }
.sv-done > .btn { flex: none; }
@media (max-width: 520px) { .sv-done { flex-wrap: wrap; } .sv-done > .btn { width: 100%; } }

/* ═══════════════════════════════════════════════════════════════════
   디자인 개편 (2026.09) — 기능은 그대로, 대학 포털 스타일로 정리
   · 글꼴 Pretendard(자체 호스팅) · 흰 바탕 + 선으로 구획 · 그림자·둥근 모서리 최소화
   · 알림은 헤더 아이콘으로, 모바일은 하단 탭 메뉴
   ═══════════════════════════════════════════════════════════════════ */
@font-face { font-family: "Pretendard"; font-weight: 400; font-display: swap; src: url("/static/fonts/Pretendard-Regular.subset.woff2") format("woff2"); }
@font-face { font-family: "Pretendard"; font-weight: 500; font-display: swap; src: url("/static/fonts/Pretendard-Medium.subset.woff2") format("woff2"); }
@font-face { font-family: "Pretendard"; font-weight: 600; font-display: swap; src: url("/static/fonts/Pretendard-SemiBold.subset.woff2") format("woff2"); }
@font-face { font-family: "Pretendard"; font-weight: 700 900; font-display: swap; src: url("/static/fonts/Pretendard-Bold.subset.woff2") format("woff2"); }
:root {
  --font: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", "Noto Sans KR", sans-serif;
  --line: #DDE1E7;
  --line-2: #ECEEF2;
  --ink: #1B2130;
  --ink-2: #3A4252;
  --muted: #6B7383;
  --radius: 4px;
  --shadow: 0 1px 3px rgba(20, 30, 55, .08);
}
body { letter-spacing: -.01em; }
h1, h2, h3, h4 { letter-spacing: -.025em; }
.app-shell { background: #fff; }

/* 헤더 */
.app-header { border-bottom: 1px solid var(--line); }
.app-header::after { height: 2px; }
.brand-text b { font-size: 16px; font-weight: 700; }
.header-title { font-size: 15px; font-weight: 600; color: var(--ink-2); }
.notif-btn { position: relative; }
.notif-btn .badge {
  position: absolute; top: 5px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: #E5243B; color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; letter-spacing: 0;
}
@media (min-width: 768px) {
  /* PC: 헤더 오른쪽에는 알림만 (이름·마이페이지·로그아웃은 상단 유틸 바) */
  .header-user { display: flex; border-left: 0; padding-left: 0; }
  .header-user > :not(.notif-btn) { display: none; }
}
.notif-panel { top: calc(var(--util-h) + var(--header-h) + 8px); bottom: auto; right: 20px; max-height: min(620px, calc(100vh - var(--util-h) - var(--header-h) - 24px)); border-radius: var(--radius); }

/* 사이드 메뉴 */
.sidebar { background: #FAFBFC; }
.side-label { font-size: 12px; letter-spacing: 0; text-transform: none; color: #8A92A1; font-weight: 600; }
.side-link { min-height: 40px; font-weight: 500; color: var(--ink-2); }
.side-link .icon { width: 18px; height: 18px; color: #7C8494; stroke-width: 1.8; }
.side-link:hover { background: #EEF2FD; }
.side-link.active { background: #fff; color: var(--primary-800); box-shadow: inset 3px 0 0 var(--primary-700), 0 0 0 1px var(--line-2); }
.side-link.active .icon { color: var(--primary-700); }

/* 페이지 제목 */
.page-head { border-bottom: 2px solid var(--ink); padding-bottom: 16px; margin-bottom: 24px; }
.page-head h1 { font-size: 27px; font-weight: 700; color: var(--ink); gap: 0; }
.page-head h1 > .icon { display: none; }
.page-head .sub { font-size: 14.5px; margin-top: 6px; }
.breadcrumb { font-size: 12.5px; }

/* 카드·버튼·표: 평평하게 */
.card { box-shadow: none; border-color: var(--line); }
.card-head { background: #FAFBFC; }
.btn { font-weight: 600; letter-spacing: -.01em; }
.btn-outline { border-color: #C9CED7; }
.table th { font-weight: 600; }
.segmented { border-radius: var(--radius); }

/* ─── 홈 ─── */
.hero {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: var(--navy); color: #fff; border: 0; border-radius: var(--radius); padding: 30px 32px; margin-bottom: 8px;
  box-shadow: inset 0 3px 0 var(--primary);
}
.hero .hero-kicker { color: #AFC1F4; font-size: 13.5px; font-weight: 600; margin: 0 0 6px; }
.hero h1 { color: #fff; font-size: 26px; font-weight: 700; }
.hero .hero-date { margin: 0; color: #D6DDEE; font-size: 15px; }
.hero .today { color: #fff; font-weight: 700; }
.home-note { display: flex; align-items: center; gap: 6px; margin: 12px 0 0; color: var(--muted); font-size: 13.5px; }
.home-note .icon { width: 16px; height: 16px; }
.home-h { display: flex; align-items: baseline; gap: 8px; font-size: 18px; font-weight: 700; margin: 30px 0 12px; }
.home-h span { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
/* 바로가기: 칸이 선으로 이어진 격자 */
.quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.qm { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 22px 22px 20px; background: #fff; color: var(--ink); min-height: 128px; transition: background .15s; }
.qm:hover { background: #F4F7FE; text-decoration: none; }
.qm:hover b { color: var(--primary-800); }
.qm > .icon { width: 30px; height: 30px; stroke-width: 1.6; color: var(--primary-700); margin-bottom: 8px; }
.qm b { font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.qm .qm-desc { font-size: 13px; color: var(--muted); }
.qm .tile-ext { width: 13px; height: 13px; color: var(--muted); vertical-align: 0; }
.qm .n { position: absolute; top: 14px; right: 14px; background: #E5243B; color: #fff; font-size: 12px; font-weight: 700; padding: 0 7px; line-height: 20px; border-radius: 10px; }
.qm.tile-yellow > .icon { color: #B7791F; }
.qm.tile-green > .icon { color: #2F7D5B; }
.quick-staff .qm > .icon { color: #5B4BC4; }
.quick-staff .qm.admin > .icon { color: var(--ink); }
/* 게시판형 패널 */
.home-cols { gap: 28px 32px; margin-top: 34px; }
.panel { border-top: 2px solid var(--ink); min-width: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 2px 12px; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-size: 17px; font-weight: 700; }
.panel .more { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; color: var(--muted); font-weight: 500; }
.panel .more .icon { width: 14px; height: 14px; }
.panel .more:hover { color: var(--primary-800); text-decoration: none; }
.panel .mini-list a { padding: 12px 2px; min-height: 46px; }
.panel .mini-list li { border-top: 0; border-bottom: 1px solid var(--line-2); }
.panel .mini-list a:hover { background: transparent; }
.panel .mini-list a:hover .t { color: var(--primary-800); text-decoration: underline; text-underline-offset: 3px; }
.panel .empty { padding: 36px 0; text-align: center; color: var(--muted); font-size: 14px; }

/* 대여·신청 메뉴 등의 타일: 동그란 파스텔 아이콘 → 선 아이콘 */
.tile { box-shadow: none; }
.tile .ti { width: auto; height: auto; background: none !important; border-radius: 0; place-items: start; color: var(--primary-700); }
.tile .ti .icon { width: 30px; height: 30px; stroke-width: 1.6; }
.tile:hover { background: #F4F7FE; border-color: var(--primary-600); }
.flow { background: #FAFBFC; border-color: var(--line); }
.flow .fs { border: 0; background: none; padding: 2px 4px; }
.flow .fs i { background: none; color: var(--primary-700); border: 1.5px solid var(--primary-600); width: 20px; height: 20px; }
.flow .arrow { color: #A9B0BC; }

/* 목록형 항목 (노트북·물품): 아이콘 칸 단순화 */
.res-item .ri-icon { background: #F3F5F9 !important; color: var(--ink-2) !important; width: 46px; height: 46px; }
.res-item .ri-icon .icon { width: 24px; height: 24px; stroke-width: 1.7; }
.res-item.clickable:hover { box-shadow: none; background: #FAFBFE; }

/* ─── 모바일 ─── */
.tabbar { display: none; }
@media (max-width: 767px) {
  .main { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
  }
  .tab {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 58px;
    border: 0; background: none; color: #7C8494; font-size: 11px; font-weight: 600; cursor: pointer; letter-spacing: -.02em;
  }
  .tab .icon { width: 22px; height: 22px; stroke-width: 1.8; }
  .tab:hover { text-decoration: none; }
  .tab.active { color: var(--primary-700); }
  .tab.active .icon { stroke-width: 2.2; }
  .notif-panel { left: 8px; right: 8px; width: auto; top: calc(var(--header-h) + 6px); max-height: calc(100vh - var(--header-h) - 90px); }
  .page-head h1 { font-size: 22px; }
  .page-head .sub { font-size: 13.5px; }
  .hero { padding: 22px 20px; flex-direction: column; align-items: flex-start; gap: 6px; }
  .hero h1 { font-size: 21px; }
  .hero .hero-date { font-size: 14px; }
  .home-h { margin: 24px 0 10px; font-size: 16px; }
  /* 바로가기: 4칸 아이콘 메뉴 */
  .quick { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .qm { align-items: center; text-align: center; padding: 14px 2px 12px; min-height: 0; gap: 0; }
  .qm > .icon { width: 26px; height: 26px; margin-bottom: 6px; }
  .qm b { font-size: 12.5px; font-weight: 600; line-height: 1.3; word-break: keep-all; }
  .qm .qm-desc, .qm .tile-ext { display: none; }
  .qm .n { top: 6px; right: 6px; font-size: 10.5px; padding: 0 5px; line-height: 17px; }
  .home-cols { grid-template-columns: minmax(0, 1fr); margin-top: 26px; gap: 24px; }
  .res-item .ri-icon { display: none; }
}
@media (max-width: 359px) { .qm b { font-size: 11.5px; } }

/* 공지사항·학생회 상단 탭: 회색 상자 → 밑줄 탭 */
.segmented.council-tabs { display: flex; background: none; padding: 0; gap: 0; border-radius: 0; border-bottom: 1px solid var(--line); width: 100%; }
.council-tabs .seg-link { min-height: 46px; padding: 0 18px; border-radius: 0; color: var(--muted); font-size: 15px; box-shadow: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.council-tabs .seg-link .icon { width: 17px; height: 17px; }
.council-tabs .seg-link:hover { color: var(--ink); }
.council-tabs .seg-link.active { background: none; color: var(--primary-800); border-bottom-color: var(--primary-700); font-weight: 700; }
/* 어두운 인사 영역 안의 권한 배지는 흰 테두리로 구분 */
.hero .role-badge { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .85); }
.empty .icon { color: #C5CBD6; stroke-width: 1.6; }
@media (max-width: 767px) { .council-tabs .seg-link { flex: 1; justify-content: center; padding: 0 8px; } }
@media (max-width: 767px) {
  .segmented.council-tabs { overflow-x: auto; }
  .council-tabs .seg-link { font-size: 14px; padding: 0 6px; flex: 1 0 auto; }
  .council-tabs .seg-link > .icon:first-child { display: none; }
}

/* 바로가기 마우스 올림: 아이콘과 같은 색을 연하게 배경으로 (제목도 아이콘 색) */
.qm { --qc: var(--primary-700); --qbg: #EEF2FD; }
.qm.tile-yellow { --qc: #B7791F; --qbg: #FBF3E2; }
.qm.tile-green { --qc: #2F7D5B; --qbg: #E9F4EE; }
.quick-staff .qm { --qc: #5B4BC4; --qbg: #F1EFFC; }
.quick-staff .qm.admin { --qc: var(--ink); --qbg: #EEF0F3; }
.qm > .icon, .quick-staff .qm > .icon, .qm.tile-yellow > .icon, .qm.tile-green > .icon, .quick-staff .qm.admin > .icon { color: var(--qc); }
.qm:hover, .qm:focus-visible { background: var(--qbg); }
.qm:hover b { color: var(--qc); }

/* 관리자·마이페이지 주 탭도 밑줄 탭으로 (필터·선택용 작은 세그먼트는 그대로) */
.segmented.page-tabs, .segmented.mypage-tabs { display: flex; width: 100%; background: none; padding: 0; gap: 0; border-radius: 0; border-bottom: 1px solid var(--line); }
.page-tabs button, .mypage-tabs button { min-height: 46px; padding: 0 18px; border-radius: 0; box-shadow: none !important; border-bottom: 2px solid transparent !important; margin-bottom: -1px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.page-tabs button .icon, .mypage-tabs button .icon { width: 17px; height: 17px; }
.page-tabs button:hover, .mypage-tabs button:hover { color: var(--ink); }
.page-tabs button.active, .mypage-tabs button.active { background: none !important; color: var(--primary-800); border-bottom-color: var(--primary-700) !important; font-weight: 700; }
@media (max-width: 767px) {
  .page-tabs, .mypage-tabs { overflow-x: auto; }
  .page-tabs button, .mypage-tabs button { flex: 1 0 auto; justify-content: center; padding: 0 8px; font-size: 14px; }
  .page-tabs button .icon, .mypage-tabs button .icon { display: none; }
}
.hero .hero-date { letter-spacing: 0; word-spacing: .12em; }

/* ═══ 로그인: 흐린 포털 배경 + 카드 ═══ */
.auth-page.auth-blur { position: relative; background: #E8EBF1; overflow: hidden; padding: max(56px, 9vh) 16px 40px; place-items: start center; }
.login-backdrop {
  position: fixed; inset: -24px; z-index: 0; pointer-events: none; user-select: none; background: #fff;
  filter: blur(9px) saturate(.9); transform: scale(1.02); transition: filter .48s ease, transform .48s ease;
}
.login-backdrop::after { content: ""; position: absolute; inset: 0; background: rgba(22, 32, 58, .38); transition: opacity .48s ease; }
.auth-blur .auth-card { position: relative; z-index: 1; transition: opacity .3s ease, transform .3s ease; }
/* 가짜 포털 (배경 전용 — 실제 데이터 없음) */
.lb-util { height: 58px; background: var(--navy); }
.lb-header { display: flex; align-items: center; gap: 10px; height: 64px; padding: 0 44px; border-bottom: 2px solid var(--primary); background: #fff; }
.lb-header img { width: 42px; height: 42px; }
.lb-header b { font-size: 16px; }
.lb-header span { font-size: 11px; color: var(--muted); letter-spacing: .6px; }
.lb-body { display: grid; grid-template-columns: 260px 1fr; height: 100%; }
.lb-side { background: #FAFBFC; border-right: 1px solid var(--line); padding: 24px 36px; }
.lb-link { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; color: var(--ink-2); font-weight: 500; }
.lb-link .icon { width: 18px; height: 18px; color: #7C8494; }
.lb-link.on { background: #fff; color: var(--primary-800); font-weight: 700; box-shadow: inset 3px 0 0 var(--primary-700); }
.lb-main { padding: 34px 44px; max-width: 1180px; }
.lb-hero { background: var(--navy); color: #fff; border-radius: 4px; padding: 30px 32px; box-shadow: inset 0 3px 0 var(--primary); }
.lb-hero span { display: block; color: #AFC1F4; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.lb-hero b { font-size: 26px; }
.lb-h { font-size: 18px; font-weight: 700; margin: 30px 0 12px; }
.lb-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.lb-q { background: #fff; padding: 22px; min-height: 128px; display: flex; flex-direction: column; gap: 6px; }
.lb-q .icon { width: 30px; height: 30px; color: var(--primary-700); margin-bottom: 6px; stroke-width: 1.6; }
.lb-q b { font-size: 17px; }
.lb-q i, .lb-panel i { display: block; height: 10px; width: 60%; border-radius: 5px; background: #E6E9EF; }
.lb-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 34px; }
.lb-panel { border-top: 2px solid var(--ink); padding-top: 14px; display: flex; flex-direction: column; gap: 18px; }
.lb-panel b { font-size: 17px; }
/* 카드 */
.auth-blur .auth-card {
  width: min(420px, 100%); padding: 38px 36px 30px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, .97);
  box-shadow: 0 24px 60px rgba(12, 20, 40, .28), 0 2px 6px rgba(12, 20, 40, .08);
}
.auth-blur .auth-brand { gap: 8px; margin-bottom: 26px; }
.auth-blur .auth-brand img { width: 64px; height: 64px; }
.auth-blur .auth-brand h1 { font-size: 21px; font-weight: 700; }
.auth-blur .auth-brand p { font-size: 13.5px; }
.auth-blur .auth-tabs { background: none; padding: 0; border-radius: 0; border-bottom: 1px solid var(--line); margin-bottom: 22px; gap: 0; }
.auth-blur .auth-tabs button { min-height: 44px; border-radius: 0; box-shadow: none; border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 600; font-size: 15px; }
.auth-blur .auth-tabs button.active { background: none; color: var(--primary-800); border-bottom-color: var(--primary-700); font-weight: 700; box-shadow: none; }
.auth-blur .input, .auth-blur .date-field { min-height: 48px; border-radius: 8px; }
.auth-blur .btn-lg { border-radius: 8px; min-height: 50px; font-size: 16px; }
.auth-blur .field label { font-size: 14px; }
.auth-blur .privacy-card { width: min(560px, 100%); }
@media (max-width: 767px) {
  .auth-page.auth-blur { padding: 28px 14px 32px; }
  .auth-blur .auth-card { padding: 30px 22px 24px; border-radius: 12px; }
  .lb-util { height: 0; }
  .lb-header { padding: 0 16px; }
  .lb-body { grid-template-columns: 1fr; }
  .lb-side { display: none; }
  .lb-main { padding: 20px 16px; }
  .lb-quick { grid-template-columns: repeat(4, 1fr); }
  .lb-q { padding: 14px 4px; min-height: 0; align-items: center; }
  .lb-q b { font-size: 12px; } .lb-q i { display: none; }
  .lb-cols { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .login-backdrop, .auth-blur .auth-card { transition: none; } }
.auth-blur .auth-card { background: #fff; }
.lb-util { height: 34px; } .lb-main { padding: 32px 48px; }
/* 로그인 직후: 실제 화면이 흐리게 그려졌다가 내용이 뜨면 선명해짐 */
#app.app-entering > :not(.auth-page) { filter: blur(10px); }
#app.app-reveal > :not(.auth-page) { transition: filter .38s ease; }

/* 로그인 카드 압축: 노트북(768px 높이)·125% 배율에서도 스크롤 없이 */
.auth-page.auth-blur { padding: clamp(20px, 7vh, 72px) 16px 24px; }
.auth-blur .auth-card { width: min(400px, 100%); padding: 28px 30px 20px; }
.auth-blur .auth-brand { flex-direction: row; justify-content: center; text-align: left; gap: 12px; margin-bottom: 18px; }
.auth-blur .auth-brand img { width: 46px; height: 46px; }
.auth-blur .auth-brand h1 { font-size: 18px; line-height: 1.3; }
.auth-blur .auth-brand p { font-size: 12.5px; margin-top: 1px; }
.auth-blur .auth-tabs { margin-bottom: 16px; }
.auth-blur .auth-tabs button { min-height: 40px; font-size: 14.5px; }
.auth-blur #login-form.stack { gap: 12px; }
.auth-blur .field { gap: 5px; }
.auth-blur .field label { font-size: 13.5px; }
.auth-blur .input, .auth-blur .date-field { min-height: 44px; }
.auth-blur .sid-note { font-size: 12px; line-height: 1.45; }
.auth-blur #login-form .btn-lg { min-height: 46px; margin-top: 4px; }
.auth-blur .auth-links-row { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.auth-blur .auth-links-row .link-btn { font-size: 13.5px; padding: 4px 2px; min-height: 32px; }
.auth-blur .auth-links-row span { color: var(--line); }
.auth-blur .auth-help { font-size: 12px; text-align: center; color: var(--muted); margin-top: 2px; }
@media (max-width: 767px) {
  .auth-blur .auth-card { padding: 24px 20px 18px; }
}
.auth-blur .auth-brand { display: grid; grid-template-columns: auto auto; justify-content: center; align-items: center; column-gap: 12px; row-gap: 0; }
.auth-blur .auth-brand img { grid-row: 1 / 3; }
.auth-blur .auth-brand h1 { align-self: end; white-space: nowrap; }
.auth-blur .auth-brand p { align-self: start; }
@media (max-width: 359px) { .auth-blur .auth-brand h1 { font-size: 16px; } }

/* 학과현황 › 성과 공유 */
.ach-card { border-top-color: #2F7D5B; }
.ach-card:hover { border-color: #2F7D5B; background: #F6FBF8; }
.ach-award { display: inline-flex; align-items: center; gap: 4px; }
.ach-award .icon { width: 13px; height: 13px; }
.ach-snippet { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
/* 상단 바 이름: 배지가 없으면 "님"을 붙여 쓰고, 배지와 이름 사이만 간격 */
.util-inner .who { gap: 0; }
.util-inner .who .grade-mark, .util-inner .who .role-badge { margin-left: 4px; }

/* ─── 강의실 시간표: 30분 칸 ─── */
.tt.tt-half { grid-template-columns: 120px repeat(var(--cols), minmax(30px, 1fr)); }
.tt-half .tt-cell.half { border-left: 1px dashed #EEF0F4; }
@media (max-width: 1279px) { .tt.tt-half { grid-template-columns: 104px repeat(var(--cols), minmax(27px, 1fr)); } }
@media (max-width: 1023px) { .tt.tt-half { grid-template-columns: 96px repeat(var(--cols), 32px); } }

/* ─── 강의실 대여 신청: 30분 시간 블럭 ─── */
.slot-head { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; }
.slot-legend { display: inline-flex; align-items: center; gap: 4px 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.slot-legend i { display: inline-block; width: 14px; height: 14px; border-radius: 3px; margin-right: -6px; border: 1px solid var(--line); vertical-align: -2px; }
.slot-legend .sl-free { background: #fff; border-color: var(--primary-300); }
.slot-legend .sl-on { background: var(--primary-700); border-color: var(--primary-700); }
.slot-legend .sl-busy { background: repeating-linear-gradient(-45deg, #E4E7EC, #E4E7EC 3px, #F1F3F6 3px, #F1F3F6 6px); }
.slot-legend .sl-past { background: #F4F5F7; }
.slot-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.sblk {
  min-height: 46px; border-radius: 6px; border: 1px solid var(--primary-300); background: #fff; color: var(--ink-2);
  font: inherit; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; transition: background .12s, border-color .12s;
}
.sblk.free:hover { background: var(--primary-50); border-color: var(--primary-600); color: var(--primary-800); }
.sblk.on { background: var(--primary-700); border-color: var(--primary-700); color: #fff; }
.sblk.busy { cursor: not-allowed; border-color: #E1E4EA; color: #A3A9B5; text-decoration: line-through;
  background: repeating-linear-gradient(-45deg, #EEF0F3, #EEF0F3 5px, #F6F7F9 5px, #F6F7F9 10px); }
.sblk.past { cursor: not-allowed; border-color: #ECEEF2; background: #F6F7F9; color: #B7BCC6; }
.sblk.free.key { border-color: #E2C38A; }
.sblk.on.key { background: #B26A00; border-color: #B26A00; }
.key-note { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; font-size: 13.5px; color: var(--muted); }
.key-note .icon { width: 16px; height: 16px; color: #B26A00; }
.key-note.warn { color: #8A5300; font-weight: 700; background: var(--warn-50); border: 1px solid #F0D9A8; border-radius: 6px; padding: 8px 12px; }
.rent-summary { border: 1px solid var(--line); border-left: 3px solid var(--primary-700); border-radius: 6px; padding: 14px 16px; background: #FAFBFE; }
.caution-box { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 6px; background: var(--danger-50); border: 1px solid #F3C7CC; color: #8E1F31; }
.caution-box .icon { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.caution-box p { margin: 0; font-weight: 700; line-height: 1.6; }
@media (max-width: 1023px) { .slot-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 767px) { .slot-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .sblk { min-height: 44px; font-size: 13.5px; } }

/* ─── 달력: 주 단위 + 기간 일정은 한 줄로 이어진 막대 (한 줄에 일정 하나) ─── */
.cal-dows { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal.cal-weeks { display: block; }
.cal-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: 34px repeat(var(--lanes), 24px) minmax(18px, 1fr); row-gap: 2px; min-height: 116px; position: relative; }
.cal-week .cal-day { grid-row: 1 / -1; min-height: 0; z-index: 0; }
.cal-week .cal-day:nth-child(7n) { border-right: 1px solid var(--line-2); }
.cal-week .cal-day:nth-child(7) { border-right: 0; }
.cal-week .cal-more { margin-top: auto; padding: 0 4px 2px; }
.cal-bar {
  z-index: 1; align-self: stretch; margin: 0 4px; padding: 0 8px; border: 0; border-radius: 4px; min-width: 0;
  font: inherit; font-size: 12px; font-weight: 600; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer;
}
.cal-bar:hover { filter: brightness(.95); }
.cal-bar.cont-l { margin-left: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.cal-bar.cont-r { margin-right: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
@media (max-width: 767px) {
  .cal-week { grid-template-rows: 1fr !important; min-height: 58px; }
  .cal-bar { display: none; }
  .cal-week .cal-more { display: none; }
}

/* 사이드바: 학교 시스템(원스탑·LMS·전자출결)은 배경색으로 학과 링크와 구분 */
.side-school { margin-top: 8px; padding: 2px 0; border-radius: 6px; background: #F4F7FE; border: 1px solid #E8EDFB; }
.side-school .side-link { min-height: 36px; }
.side-school .side-link:hover { background: #EAF0FD; }

/* 달력 막대: 글자를 막대 가운데에 */
.cal-bar { text-align: center; padding: 0 10px; }

/* 강의실 신청: 함께 사용하는 사람 */
.member-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.member-chips:not(:empty) { margin-bottom: 8px; }
.member-chip { display: inline-flex; align-items: center; gap: 2px; padding: 3px 4px 3px 10px; border-radius: 99px; background: var(--primary-100); color: var(--primary-800); font-size: 13.5px; font-weight: 600; }
.member-chip button { display: inline-grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 50%; background: none; color: inherit; cursor: pointer; }
.member-chip button:hover { background: var(--primary-200); }
.member-chip .icon { width: 14px; height: 14px; }

/* ═══ 로그인 무대: 깊은 남색 + 움직이는 네트워크 + 큰 제목 ═══ */
.auth-page.auth-stage {
  display: grid; grid-template-columns: minmax(0, 1fr) 400px; column-gap: clamp(32px, 6vw, 96px);
  align-items: start; justify-content: center; max-width: none;
  padding: clamp(28px, 9vh, 96px) clamp(20px, 6vw, 96px) 32px; background: #0B1328;
}
.auth-stage .login-backdrop { filter: blur(10px) saturate(.7); }
.auth-stage .login-backdrop::after { background: linear-gradient(112deg, rgba(8, 13, 30, .97) 0%, rgba(11, 20, 44, .93) 48%, rgba(20, 33, 70, .82) 100%); }
.auth-fx { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.net-canvas { display: block; position: absolute; inset: 0; }
.auth-intro { position: relative; z-index: 1; color: #fff; padding-top: clamp(8px, 4vh, 40px); max-width: 620px; justify-self: end; width: 100%; }
.ai-kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; font-size: 12px; font-weight: 700; letter-spacing: .22em; color: #9DB2EE; }
.ai-dot { width: 8px; height: 8px; border-radius: 50%; background: #5EE1A2; box-shadow: 0 0 0 0 rgba(94, 225, 162, .6); animation: ai-pulse 2.4s ease-out infinite; }
@keyframes ai-pulse { 0% { box-shadow: 0 0 0 0 rgba(94, 225, 162, .55); } 70% { box-shadow: 0 0 0 10px rgba(94, 225, 162, 0); } 100% { box-shadow: 0 0 0 0 rgba(94, 225, 162, 0); } }
.ai-title { margin: 0; font-size: clamp(54px, 7.2vw, 112px); line-height: .92; font-weight: 800; letter-spacing: -.045em; color: #fff; }
.ai-title em { font-style: normal; background: linear-gradient(92deg, #8EA8F6 0%, #C8D5FF 60%, #8EA8F6 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ai-ko { margin: 26px 0 0; font-size: clamp(18px, 1.7vw, 24px); font-weight: 700; color: #fff; letter-spacing: -.02em; }
.ai-desc { margin: 10px 0 0; font-size: 15px; line-height: 1.7; color: #A9B6D6; }
.ai-clock { display: flex; align-items: baseline; gap: 10px; margin: 40px 0 0; padding-top: 18px; border-top: 1px solid rgba(157, 178, 238, .22); color: #A9B6D6; font-variant-numeric: tabular-nums; }
.ai-clock b { font-size: 34px; font-weight: 700; color: #fff; letter-spacing: -.02em; }
.ai-clock .ai-sec { font-size: 15px; color: #8EA8F6; width: 2ch; }
.ai-clock .ai-kst { font-size: 11px; font-weight: 700; letter-spacing: .14em; color: #6F7FA8; }
.auth-stage .auth-card { box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .06); }
@media (max-width: 1023px) {
  .auth-page.auth-stage { grid-template-columns: minmax(0, 420px); justify-content: center; row-gap: 22px; padding: 28px 16px 28px; }
  .auth-intro { justify-self: stretch; padding-top: 0; }
  .ai-kicker { margin-bottom: 12px; font-size: 11px; }
  .ai-title { font-size: 46px; }
  .ai-title br { display: none; }
  .ai-title em { margin-left: .22em; }
  .ai-ko { margin-top: 10px; font-size: 16px; }
  .ai-desc, .ai-clock { display: none; }
}
@media (max-width: 380px) { .ai-title { font-size: 38px; } }
@media (prefers-reduced-motion: reduce) { .ai-dot { animation: none; } }

/* ═══ 홈 인사 영역: 네트워크 배경 + 큰 시계 + 숫자 ═══ */
.hero.hero-fx {
  position: relative; overflow: hidden; align-items: stretch; padding: 34px 36px 30px; min-height: 210px;
  background: radial-gradient(120% 140% at 100% 0%, #22346B 0%, #142144 45%, #0D1630 100%);
  box-shadow: inset 0 3px 0 var(--primary), 0 12px 30px rgba(13, 22, 48, .18);
}
.hero-net { position: absolute; inset: 0; z-index: 0; }
.hero-fx > :not(.hero-net) { position: relative; z-index: 1; }
.hero-fx .hero-kicker { display: inline-flex; align-items: center; gap: 8px; letter-spacing: .08em; font-size: 12px; color: #9DB2EE; }
.hero-fx h1 { font-size: 30px; margin-top: 4px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-stats a {
  display: flex; align-items: baseline; gap: 8px; padding: 10px 16px; border-radius: 8px; color: #D6DDEE;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(157, 178, 238, .2); transition: background .15s, border-color .15s;
}
.hero-stats a:hover { background: rgba(142, 168, 246, .16); border-color: rgba(157, 178, 238, .45); text-decoration: none; }
.hero-stats b { font-size: 22px; color: #fff; font-variant-numeric: tabular-nums; }
.hero-stats span { font-size: 13px; }
.hero-time { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; text-align: right; }
.hero-fx .hero-date { font-size: 14px; color: #B9C4DE; }
.hero-clock { margin: 0; display: flex; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; }
.hero-clock b { font-size: 64px; line-height: 1; font-weight: 700; color: #fff; letter-spacing: -.03em; }
.hero-clock span { font-size: 18px; color: #8EA8F6; width: 2ch; text-align: left; }
@media (max-width: 767px) {
  .hero.hero-fx { padding: 22px 20px; min-height: 0; }
  .hero-fx h1 { font-size: 21px; }
  .hero-time { position: absolute !important; top: 20px; right: 18px; }
  .hero-fx .hero-date { display: none; }
  .hero-clock b { font-size: 26px; }
  .hero-clock span { font-size: 12px; }
  .hero-fx .hero-kicker { font-size: 10.5px; max-width: 70%; }
  .hero-stats { gap: 6px; margin-top: 16px; }
  .hero-stats a { padding: 7px 10px; }
  .hero-stats b { font-size: 17px; }
  .hero-stats span { font-size: 12px; }
}
.hero-clock span, .ai-clock .ai-sec { white-space: nowrap; min-width: 2.2ch; display: inline-block; }
.hero-stats a { background: rgba(14, 23, 50, .72); backdrop-filter: blur(2px); }
/* 홈: 시계 없이 날짜만 (오른쪽 위) */
.hero-fx .hero-time { justify-content: flex-start; }
.hero-fx .hero-date { font-size: 15px; font-weight: 600; color: #D6DDEE; }
@media (max-width: 767px) { .hero-time { display: none; } .hero-fx .hero-kicker { max-width: none; } }

/* ═══ 로그인 카드: 흰 카드 → 배경과 어울리는 짙은 반투명 카드 ═══ */
.auth-stage .auth-card {
  background: linear-gradient(180deg, rgba(24, 38, 78, .82) 0%, rgba(13, 22, 48, .88) 100%);
  border: 1px solid rgba(157, 178, 238, .22); color: #D6DDEE;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.auth-stage .auth-brand h1, .auth-stage .auth-card h2, .auth-stage .auth-card h4, .auth-stage .auth-card b { color: #fff; }
.auth-stage .auth-brand p, .auth-stage .auth-card .muted, .auth-stage .auth-card .hint, .auth-stage .sid-note { color: #8E9BBE !important; }
.auth-stage .auth-tabs { border-bottom-color: rgba(157, 178, 238, .2); }
.auth-stage .auth-tabs button { color: #8E9BBE; }
.auth-stage .auth-tabs button:hover { color: #D6DDEE; }
.auth-stage .auth-tabs button.active { color: #fff; border-bottom-color: #8EA8F6; }
.auth-stage .field label, .auth-stage .field-label { color: #C9D3EC; }
.auth-stage .req { color: #FF8FA0; }
.auth-stage .input, .auth-stage .date-field, .auth-stage .textarea {
  background: rgba(6, 12, 28, .55); border-color: rgba(157, 178, 238, .28); color: #fff;
}
.auth-stage .input::placeholder { color: #66749A; }
.auth-stage .input:focus, .auth-stage .date-field.focus { border-color: #8EA8F6; box-shadow: 0 0 0 3px rgba(142, 168, 246, .25); outline: none; }
.auth-stage .input:-webkit-autofill { -webkit-text-fill-color: #fff; -webkit-box-shadow: 0 0 0 1000px #0F1A38 inset; caret-color: #fff; }
.auth-stage .btn-primary { background: #5B7BE6; }
.auth-stage .btn-primary:hover:not(:disabled) { background: #6E8BF0; }
.auth-stage .btn-primary:disabled { background: #3A4A7A; color: #9AA6C6; opacity: 1; }
.auth-stage .btn-outline { background: transparent; color: #D6DDEE; border-color: rgba(157, 178, 238, .35); }
.auth-stage .link-btn { color: #A9B6D6; }
.auth-stage .link-btn:hover { color: #fff; }
.auth-stage .auth-links-row span { color: rgba(157, 178, 238, .3); }
.auth-stage .auth-help { color: #7D8AAD; }
.auth-stage .back-link { color: #A9B6D6; }
/* 비밀번호 생성 · 2단계 인증 · 동의 등 카드 안의 안내 상자 */
.auth-stage .notice-box { background: rgba(255, 255, 255, .05); border-color: rgba(157, 178, 238, .22); color: #D6DDEE; }
.auth-stage .notice-box.warn { background: rgba(240, 180, 60, .09); border-color: rgba(240, 180, 60, .32); color: #F2DDB0; }
.auth-stage .notice-box.warn b, .auth-stage .notice-box b { color: #fff; }
.auth-stage .pw-rules { background: rgba(255, 255, 255, .04); }
.auth-stage .pw-rules li { color: #8E9BBE; }
.auth-stage .pw-rules li.ok { color: #7EE2B0; }
.auth-stage .pw-match.ok { color: #7EE2B0; } .auth-stage .pw-match.bad { color: #FF9AA8; }
.auth-stage .privacy-box { background: rgba(255, 255, 255, .04); border-color: rgba(157, 178, 238, .22); }
.auth-stage .privacy-terms { background: rgba(6, 12, 28, .5); border-color: rgba(157, 178, 238, .18); color: #C9D3EC; }
.auth-stage .privacy-check, .auth-stage .check { color: #D6DDEE; }
.login-backdrop { overflow: hidden; }

/* ═══ 로그인 2차 정리: 깔끔한 배경 + 가볍고 둥근 카드 ═══ */
.auth-page.auth-stage { background: #090F22; overflow: hidden; }
.auth-glow { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 600px at 78% 18%, rgba(91, 123, 230, .28), transparent 60%),
    radial-gradient(700px 520px at 12% 88%, rgba(122, 92, 230, .18), transparent 60%),
    linear-gradient(160deg, #0B1430 0%, #090F22 55%, #070B1A 100%); }
.auth-stage .auth-card {
  width: min(420px, 100%); padding: 34px 34px 26px; border-radius: 20px;
  background: rgba(16, 24, 50, .55); border: 1px solid rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 40px 100px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .07);
}
.auth-stage .auth-card::before { content: ""; position: absolute; left: 34px; right: 34px; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(142, 168, 246, .9), transparent); }
.auth-stage .ac-head { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.auth-stage .ac-head img { width: 44px; height: 44px; }
.auth-stage .ac-head h1 { margin: 0; font-size: 24px; font-weight: 700; color: #fff; letter-spacing: -.03em; }
.auth-stage .ac-head p { margin: 2px 0 0; font-size: 13px; color: #8391B5; }
/* 탭: 알약 모양 */
.auth-stage .auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 22px;
  border: 0; border-radius: 12px; background: rgba(255, 255, 255, .05); }
.auth-stage .auth-tabs button { min-height: 40px; margin: 0; border: 0 !important; border-radius: 9px; font-size: 14px; font-weight: 600; color: #8391B5; }
.auth-stage .auth-tabs button.active { background: rgba(142, 168, 246, .18); color: #fff; box-shadow: inset 0 0 0 1px rgba(142, 168, 246, .35); }
/* 입력칸: 둥글고 가볍게, 별표 없이 */
.auth-stage .req { display: none; }
.auth-stage #login-form.stack { gap: 14px; }
.auth-stage .field label { font-size: 13px; font-weight: 600; color: #A9B6D6; }
.auth-stage .input, .auth-stage .date-field { min-height: 50px; border-radius: 12px; padding: 0 16px; font-size: 15.5px;
  background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .1); }
.auth-stage .input:hover { border-color: rgba(255, 255, 255, .18); }
.auth-stage .input:focus { background: rgba(255, 255, 255, .07); border-color: #8EA8F6; box-shadow: 0 0 0 4px rgba(142, 168, 246, .16); }
.auth-stage .input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px #18213F inset; }
.auth-stage .sid-note { font-size: 12px; margin-top: 2px; }
/* 버튼: 그라데이션 + 은은한 빛 */
.auth-stage #login-form .btn-lg, .auth-stage .auth-card .btn-primary.btn-lg { min-height: 52px; margin-top: 6px; border-radius: 12px; font-size: 16px; font-weight: 700;
  background: linear-gradient(135deg, #7C97F5 0%, #5B7BE6 55%, #4E68D6 100%); box-shadow: 0 10px 30px rgba(91, 123, 230, .35); }
.auth-stage .auth-card .btn-primary.btn-lg:hover:not(:disabled) { filter: brightness(1.08); box-shadow: 0 12px 34px rgba(91, 123, 230, .5); }
.auth-stage .auth-card .btn-primary.btn-lg:disabled { background: rgba(255, 255, 255, .08); box-shadow: none; color: #66749A; }
.auth-stage .auth-links-row { margin-top: 16px; }
.auth-stage .auth-links-row .link-btn { font-size: 13.5px; color: #8391B5; }
.auth-stage .auth-links-row .link-btn b { color: #C9D3EC; }
.auth-stage .auth-links-row .link-btn:hover, .auth-stage .auth-links-row .link-btn:hover b { color: #fff; }
.auth-stage .auth-help { font-size: 12px; color: #5F6C90; margin-top: 4px; }
/* 비밀번호 생성 화면의 제목은 카드 머리에서 보여 주므로 본문 제목 숨김 */
.auth-stage #auth-body > h2 { display: none; }
/* 왼쪽 제목 정리 */
.auth-stage .ai-kicker .ai-dot { box-shadow: none; }
@media (max-width: 1023px) {
  .auth-stage .auth-card { padding: 26px 22px 20px; border-radius: 18px; }
  .auth-stage .ac-head { margin-bottom: 20px; }
  .auth-stage .ac-head h1 { font-size: 21px; }
}

/* ═══ 로그인 배치: 가운데로 모은 2단 + 왼쪽 아래 학교 서비스 + 흰 버튼 ═══ */
.auth-page.auth-stage {
  grid-template-columns: minmax(0, 540px) 420px; grid-template-rows: minmax(600px, auto);
  justify-content: center; column-gap: clamp(48px, 7vw, 120px);
  padding-top: max(32px, calc((100vh - 640px) / 2)); padding-bottom: 32px;
}
.auth-stage .auth-intro { justify-self: stretch; align-self: center; padding-top: 0; max-width: none; }
.auth-stage .auth-card { align-self: start; }
.ai-links { margin-top: 44px; }
.ai-links > p { margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .12em; color: #6F7FA8; }
.ai-links > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ai-links a {
  display: flex; align-items: center; gap: 10px; padding: 14px 14px; border-radius: 14px; color: #D6DDEE; min-width: 0;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); transition: background .15s, border-color .15s, transform .15s;
}
.ai-links a:hover { background: rgba(142, 168, 246, .12); border-color: rgba(142, 168, 246, .4); text-decoration: none; transform: translateY(-2px); }
.ai-links a > .icon:first-child { width: 22px; height: 22px; color: #8EA8F6; flex: none; }
.ai-links a span { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.ai-links b { font-size: 14.5px; color: #fff; }
.ai-links small { font-size: 11.5px; color: #7D8AAD; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-links .ext { width: 13px; height: 13px; margin-left: auto; color: #5F6C90; flex: none; }
/* 로그인 버튼: 흰 바탕 + 남색 글자 */
.auth-stage #login-form .btn-lg, .auth-stage .auth-card .btn-primary.btn-lg {
  background: #fff; color: #0B1430; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); font-weight: 700; letter-spacing: -.01em;
}
.auth-stage .auth-card .btn-primary.btn-lg:hover:not(:disabled) { background: #E6ECFF; filter: none; box-shadow: 0 10px 28px rgba(142, 168, 246, .35); }
.auth-stage .auth-card .btn-primary.btn-lg.loading::after { border-color: rgba(11, 20, 48, .25); border-top-color: #0B1430; }
@media (max-width: 1023px) {
  .auth-page.auth-stage { grid-template-columns: minmax(0, 420px); grid-template-rows: auto; padding-top: 28px; }
  .auth-stage .auth-intro { align-self: start; }
  .ai-links { display: none; }
}
/* 학교 서비스: 설명 없이 이름만, 줄 너비는 위 제목(가장 넓은 글자)과 같게 */
@media (min-width: 1024px) {
  .auth-stage .auth-intro { width: fit-content; justify-self: start; }
  .ai-links { width: 0; min-width: 100%; }
}
.ai-links a { padding: 13px 14px; justify-content: flex-start; }
.ai-links b { font-size: 15px; white-space: nowrap; }
.ai-links a { justify-content: center; gap: 8px; padding: 13px 8px; }
.ai-links .ext { display: none; }
.ai-links a > .icon:first-child { width: 20px; height: 20px; }

/* 로그인: 새하얀 글자·버튼을 한 톤 낮춤 */
.auth-stage .ai-title { color: #DCE3F2; }
.auth-stage .ai-ko { color: rgba(220, 227, 242, .82); }
.auth-stage .ac-head h1 { color: #DCE3F2; }
.auth-stage .ai-links b { color: #C9D3EC; }
.auth-stage .auth-tabs button.active { color: #DCE3F2; }
.auth-stage .input { color: #DCE3F2; }
.auth-stage .auth-links-row .link-btn b { color: #B4C0DE; }
.auth-stage #login-form .btn-lg, .auth-stage .auth-card .btn-primary.btn-lg {
  background: rgba(214, 223, 245, .88); color: #0E1736; box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}
.auth-stage .auth-card .btn-primary.btn-lg:hover:not(:disabled) { background: rgba(226, 233, 250, .95); }
/* 로그인 버튼 조금 더 밝게 */
.auth-stage #login-form .btn-lg, .auth-stage .auth-card .btn-primary.btn-lg { background: rgba(232, 238, 252, .96); color: #0E1736; }
.auth-stage .auth-card .btn-primary.btn-lg:hover:not(:disabled) { background: #F1F5FF; }
/* 로그인 로고: 누르면 관리자 로그인 (켜지면 은은하게 빛남) */
.ac-logo { flex: none; padding: 0; border: 0; background: none; border-radius: 12px; cursor: default; line-height: 0; transition: filter .25s, box-shadow .25s; }
.ac-logo:focus-visible { outline: 2px solid rgba(142, 168, 246, .6); outline-offset: 3px; }
.ac-logo.armed { filter: drop-shadow(0 0 10px rgba(142, 168, 246, .75)); }

/* 로그인 화면: 글자·이미지 드래그(선택) 막기 — 입력칸은 그대로 선택 가능 */
.auth-stage, .auth-stage * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.auth-stage input, .auth-stage textarea { -webkit-user-select: text; user-select: text; }
.auth-stage img, .auth-stage a { -webkit-user-drag: none; }
.role-guest { background: #8A93A6; }

/* 게시물 댓글 정지 안내 (댓글 입력칸 자리) */
.cmt-locked { display: flex; align-items: center; gap: 8px; margin: 14px 16px 4px; padding: 14px 16px; border-radius: var(--radius); background: #F4F5F7; border: 1px dashed #C9CED7; color: var(--ink-2); font-size: 14.5px; }
.cmt-locked .icon { width: 18px; height: 18px; color: var(--muted); flex: none; }
.comments.locked .c-actions [data-act="reply"] { display: none; }

/* 달력 머리: 월은 가운데, '오늘'은 오른쪽 / 색 구분(범례)은 오른쪽 정렬 */
.cal-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.cal-head > .row { grid-column: 2; justify-content: center; }
.cal-head > .btn { grid-column: 3; justify-self: end; }
.cal-legend { justify-content: flex-end; }

/* 모바일 게시글 목록: 왼쪽 칸(고정·HOT·번호, 세로 가운데) + 오른쪽 칸(제목·정보) */
.post-list.board-mobile li a { display: flex; align-items: center; gap: 12px; padding-left: 12px; }
.post-list.board-mobile .pl-num { flex: 0 0 36px; text-align: center; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.post-list.board-mobile .pl-body { flex: 1; min-width: 0; }
