/* ===== style.css (v1.2.11) ===== */
/* style.css - v1.2.11
 * - 모바일 오늘의 시간표 1열 레이아웃 유지
 * - PC 선택과목 보조 문구에서 한글 단어가 어색하게 쪼개지지 않도록 개선
 * - 긴 선택과목명은 단어 단위로 최대 2줄까지 자연스럽게 표시
 */

:root{
  --bg:#07101d;
  --bg-soft:#0a1423;
  --sidebar:#091321;
  --card:#0d1929;
  --card-2:#101e30;
  --card-hover:#13243a;
  --text:#edf4ff;
  --fg-base:#c9d5e6;
  --muted:#8192aa;
  --border:#1b2c43;
  --border-strong:#29425f;
  --accent:#5b7cfa;
  --accent-2:#8b5cf6;
  --danger:#fb4f71;
  --success:#2dd4bf;
  --warn:#fbbf24;
  --shadow:0 16px 42px rgba(0,0,0,.23);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth;background:var(--bg)}
body{margin:0;min-height:100vh;color:var(--fg-base);background:
  radial-gradient(circle at 84% 2%,rgba(91,124,250,.10),transparent 28rem),
  radial-gradient(circle at 18% 85%,rgba(139,92,246,.07),transparent 30rem),
  var(--bg);
  font-family:Inter,"Noto Sans KR",system-ui,-apple-system,"Segoe UI",Roboto,"Apple SD Gothic Neo","Malgun Gothic",sans-serif;
  line-height:1.65}
button,input,textarea,select{font:inherit}
button{color:inherit}
ul,ol{list-style:none;margin:0;padding:0}
a{color:inherit;text-decoration:none}

.app-shell{display:grid;grid-template-columns:240px minmax(0,1fr);min-height:100vh}
.sidebar{position:fixed;inset:0 auto 0 0;width:240px;z-index:50;padding:22px 16px 18px;background:rgba(8,18,32,.96);border-right:1px solid var(--border);backdrop-filter:blur(18px);display:flex;flex-direction:column}
.brand{display:flex;align-items:center;gap:12px;padding:5px 8px 24px}
.brand-mark{display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:linear-gradient(135deg,rgba(91,124,250,.28),rgba(139,92,246,.28));border:1px solid rgba(139,92,246,.35);font-size:22px;box-shadow:0 10px 25px rgba(91,124,250,.13)}
.brand strong{display:block;color:var(--text);font-size:20px;letter-spacing:.07em}
.brand span{display:block;color:var(--muted);font-size:11px;margin-top:1px}
.tabs{display:flex;flex-direction:column;gap:6px;flex:1}
.tab-btn,.sidebar-link{width:100%;min-height:46px;border:1px solid transparent;background:transparent;color:#aebbd0;border-radius:12px;padding:0 12px;display:flex;align-items:center;gap:12px;font-weight:700;font-size:14px;cursor:pointer;text-align:left;transition:.18s ease}
.tab-btn:hover,.sidebar-link:hover{color:var(--text);background:rgba(255,255,255,.035);border-color:rgba(255,255,255,.04)}
.tab-btn.active{color:#fff;background:linear-gradient(135deg,rgba(36,100,255,.92),rgba(112,69,232,.92));box-shadow:0 10px 25px rgba(76,87,238,.22)}
.nav-icon{width:24px;text-align:center;font-size:17px;filter:saturate(.9)}
.nav-divider{height:1px;background:var(--border);margin:10px 10px}
.sidebar-foot{display:flex;align-items:center;gap:8px;color:#6f8199;font-size:11px;padding:16px 10px 0;border-top:1px solid var(--border)}
.status-dot{width:7px;height:7px;border-radius:50%;background:#2dd4bf;box-shadow:0 0 0 4px rgba(45,212,191,.08)}

.app-main{grid-column:2;min-width:0}
.topbar{height:70px;position:sticky;top:0;z-index:40;padding:0 28px;background:rgba(7,16,29,.82);border-bottom:1px solid rgba(27,44,67,.75);backdrop-filter:blur(18px);display:flex;align-items:center;justify-content:space-between;gap:16px}
.topbar-title{display:flex;flex-direction:column;line-height:1.25}
.topbar-kicker{font-size:10px;letter-spacing:.16em;color:#667b99}
.topbar-title strong{font-size:14px;color:#cfd9e8;margin-top:3px}
.auth{display:flex;align-items:center;justify-content:flex-end;gap:9px;min-width:0}
#userInfo{max-width:250px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#aab8cb;font-size:13px}
.mobile-menu-btn{display:none;border:0;background:transparent;font-size:23px;cursor:pointer}

.container{width:min(1180px,calc(100% - 48px));margin:0 auto;padding:28px 0 44px}
.hero-card{min-height:220px;border:1px solid rgba(62,91,128,.55);border-radius:20px;padding:34px 36px;display:flex;align-items:center;justify-content:space-between;gap:28px;position:relative;overflow:hidden;background:
  radial-gradient(circle at 75% 35%,rgba(91,124,250,.16),transparent 18rem),
  linear-gradient(145deg,rgba(14,29,49,.96),rgba(7,20,37,.96));box-shadow:var(--shadow)}
.hero-card::before{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.02) 1px,transparent 1px);background-size:34px 34px;mask-image:linear-gradient(to right,#000,transparent 70%);pointer-events:none}
.hero-content{position:relative;z-index:1}
.hero-date{color:#9aafd0;font-size:14px;font-weight:700}
.hero-card h1{margin:8px 0 5px;color:#fff;font-size:clamp(25px,3vw,38px);line-height:1.3;letter-spacing:-.03em}
.hero-card p{margin:0;color:#b8c5d8;font-size:15px}
.hero-quote{margin-top:26px;color:#7f94b2;font-size:13px}
.hero-badge{position:relative;z-index:1;min-width:120px;aspect-ratio:1;border:1px solid rgba(91,124,250,.28);border-radius:24px;background:linear-gradient(145deg,rgba(91,124,250,.10),rgba(139,92,246,.06));display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:inset 0 0 30px rgba(91,124,250,.05)}
.hero-badge span{font-size:11px;color:#8496b0}.hero-badge strong{color:#dfe7ff;font-size:22px;letter-spacing:.08em}

.summary-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:16px 0 22px}
.summary-card{border:1px solid var(--border);border-radius:16px;min-height:88px;padding:15px 17px;background:linear-gradient(145deg,rgba(16,31,49,.96),rgba(11,24,39,.96));display:flex;align-items:center;gap:13px;text-align:left;cursor:pointer;transition:.18s ease;box-shadow:0 8px 20px rgba(0,0,0,.10)}
.summary-card:hover{transform:translateY(-2px);border-color:var(--border-strong);background:var(--card-hover)}
.summary-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:13px;font-size:22px;background:rgba(255,255,255,.055)}
.summary-card small{display:block;color:#72849e;font-size:11px}.summary-card strong{display:block;margin-top:1px;color:#eaf1fc;font-size:17px}
.summary-copy{min-width:0;display:block}.summary-copy strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.summary-copy em{display:block;margin-top:4px;color:#8798b1;font-size:11px;font-style:normal;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.summary-card.is-empty .summary-copy strong{color:#8da0ba}
.summary-schedule{background:linear-gradient(145deg,rgba(4,81,78,.31),rgba(9,28,42,.96))}
.summary-exam{background:linear-gradient(145deg,rgba(80,36,85,.31),rgba(19,22,42,.96))}
.summary-task{background:linear-gradient(145deg,rgba(70,39,107,.28),rgba(17,22,44,.96))}
.summary-homework{background:linear-gradient(145deg,rgba(101,70,24,.24),rgba(20,25,39,.96))}

.sec{margin:18px 0;border:1px solid var(--border);border-radius:18px;overflow:hidden;background:rgba(12,25,42,.92);box-shadow:0 12px 28px rgba(0,0,0,.12)}
.section-head{min-height:72px;padding:15px 20px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;gap:12px;background:linear-gradient(180deg,rgba(255,255,255,.018),transparent)}
.section-title-wrap{display:flex;align-items:center;gap:12px}.section-title-wrap h2{margin:0;color:#eaf1fc;font-size:18px;line-height:1.25}.section-kicker{display:block;color:#637893;font-size:9px;font-weight:800;letter-spacing:.16em;margin-bottom:3px}
.section-icon{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:#14243a;border:1px solid rgba(255,255,255,.04);font-size:18px}
.section-icon.pink{background:rgba(236,72,153,.10)}.section-icon.blue{background:rgba(59,130,246,.10)}.section-icon.green{background:rgba(45,212,191,.10)}.section-icon.red{background:rgba(251,79,113,.10)}.section-icon.purple{background:rgba(139,92,246,.10)}.section-icon.amber{background:rgba(251,191,36,.10)}.section-icon.cyan{background:rgba(34,211,238,.10)}
.section-body{padding:18px 20px 22px}
.panel{display:none}.panel.active{display:block;animation:panelIn .2s ease}@keyframes panelIn{from{opacity:.55;transform:translateY(3px)}to{opacity:1;transform:none}}

.switch-row{display:flex;align-items:center;gap:8px;color:#8fa0b7;font-size:12px;cursor:pointer}.switch-row input{accent-color:var(--accent);width:16px;height:16px}

.btn{border:1px solid var(--border-strong);background:#15253a;color:#dce6f5;border-radius:10px;padding:9px 13px;font-size:13px;font-weight:750;cursor:pointer;transition:.16s ease}
.btn:hover{background:#1b304a;border-color:#345475}.btn:disabled{opacity:.5;cursor:not-allowed}.btn--primary{border-color:#5573eb;background:linear-gradient(135deg,#4d76f6,#6b55e9);color:#fff;box-shadow:0 8px 18px rgba(84,95,232,.18)}.btn--primary:hover{filter:brightness(1.07)}.btn--ghost{background:transparent}.btn--danger{background:rgba(251,79,113,.14);border-color:rgba(251,79,113,.38);color:#ffb2c2}.w-full{width:100%}

input,input[type="text"],input[type="date"],input[type="search"],input[type="number"],textarea,select{appearance:none;-webkit-appearance:none;border:1px solid #233850;background:#091522;color:#e9f1fc;border-radius:10px;padding:11px 12px;font-size:14px;width:100%;outline:none;transition:.16s ease}
input[type="checkbox"],input[type="radio"]{appearance:auto;-webkit-appearance:auto;width:auto;padding:0;border:0;background:transparent}
textarea{min-height:92px;resize:vertical;line-height:1.7}input::placeholder,textarea::placeholder{color:#5f738e}input:focus,textarea:focus,select:focus{border-color:#5573eb;box-shadow:0 0 0 3px rgba(91,124,250,.10)}input[type="date"]{color-scheme:dark}label.label{display:block;color:#7f91aa;font-size:11px;font-weight:750;margin:0 2px 6px}

ul.card-list{display:flex;flex-direction:column;gap:10px}.card-list:empty::after{content:"아직 등록된 항목이 없습니다.";display:block;text-align:center;padding:26px 12px;color:#61748f;font-size:13px;border:1px dashed #20334b;border-radius:12px;background:rgba(5,15,26,.22)}
.notice-card,.task{border:1px solid #1d3048;border-radius:13px;background:linear-gradient(145deg,rgba(15,30,49,.96),rgba(10,23,39,.96));padding:16px 18px;transition:.15s ease}.notice-card:hover,.task:hover{border-color:#2b4664;background:#11223a}.title{font-weight:800;color:#eaf1fb;margin-bottom:5px}.meta{color:#7488a4;margin-top:7px;font-size:12px}.kind-notice{border-left:3px solid #fb4f71;background:linear-gradient(145deg,rgba(73,24,39,.48),rgba(13,25,41,.96))}.kind-info{border-left:3px solid #fbbf24;background:linear-gradient(145deg,rgba(70,54,19,.36),rgba(13,25,41,.96))}.kind-alert{border-left:3px solid #2dd4bf;background:linear-gradient(145deg,rgba(16,67,64,.36),rgba(13,25,41,.96))}
.task pre,.notice-card pre{font-family:inherit;font-size:.93rem;line-height:1.75;color:#c9d5e6;white-space:pre-wrap;word-break:break-word;background:transparent;padding:0;border:0;margin:.45em 0 0}
.notice-image-wrap{margin-top:12px;border:1px solid var(--border);border-radius:11px;overflow:hidden;background:#07111d}.notice-image{display:block;width:100%;max-height:430px;object-fit:contain}

.dday{display:inline-flex;align-items:center;margin-left:7px;padding:2px 8px;border-radius:7px;font-weight:800;font-size:11px;vertical-align:middle;border:1px solid transparent}.dday.red{background:rgba(251,79,113,.14);border-color:rgba(251,79,113,.30);color:#ff8ca3}.dday.orange{background:rgba(249,115,22,.13);border-color:rgba(249,115,22,.28);color:#ff9b55}.dday.yellow{background:rgba(251,191,36,.13);border-color:rgba(251,191,36,.28);color:#ffd56a}.dday.green{background:rgba(45,212,191,.12);border-color:rgba(45,212,191,.27);color:#72e5d2}.dday.gray{background:rgba(148,163,184,.11);border-color:rgba(148,163,184,.20);color:#9eacc0}

.task-form{margin-top:16px;display:grid;grid-template-columns:repeat(12,1fr);gap:11px;padding:16px;background:rgba(5,16,28,.58);border:1px solid #1c3047;border-radius:13px}.task-form.compact{grid-template-columns:repeat(10,1fr)}.task-form .f{grid-column:span 2}.task-form .col-span-5{grid-column:span 5}.task-form .col-span-6{grid-column:span 6}.task-form .col-span-12{grid-column:1/-1}.task-form .col-end{grid-column:-3/-1}.form-heading{color:#b7c5d8;font-size:12px;font-weight:850;letter-spacing:.04em;padding-bottom:3px}.layout-3row .r1-subj{grid-column:span 4}.layout-3row .r1-content{grid-column:span 8}.layout-3row .r2-detail{grid-column:1/-1}.layout-3row .r2-detail textarea{min-height:130px}.layout-3row .r3-item{grid-column:span 3}
.admin-box{border:1px solid rgba(91,124,250,.28);background:rgba(91,124,250,.035);padding:16px;border-radius:14px}.warn-line{display:flex;align-items:center;justify-content:space-between;gap:10px}.warn-badge{display:inline-flex;align-items:center;gap:6px;padding:4px 8px;border-radius:7px;font-weight:800;border:1px solid rgba(251,79,113,.32);background:rgba(251,79,113,.12);color:#ff9bae}.warn-badge small{opacity:.82}.row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.hint{margin-top:14px;color:#60748f}.timetable-list{margin-top:14px!important}

.modal-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.66);display:flex;align-items:center;justify-content:center;z-index:9999;padding:18px;backdrop-filter:blur(5px)}.modal{width:min(760px,100%);max-height:calc(100dvh - 36px);display:flex;flex-direction:column;background:#0b1828;border:1px solid #29425f;border-radius:16px;box-shadow:0 24px 70px rgba(0,0,0,.58);overflow:hidden}.modal-head{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;padding:15px 18px;border-bottom:1px solid var(--border);background:#0b1828}.modal-title{font-weight:850;color:#edf4ff;font-size:16px}.modal-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:17px 18px}.modal-actions{position:sticky;bottom:0;z-index:4;flex:0 0 auto;display:flex;gap:9px;justify-content:flex-end;padding:13px 18px;border-top:1px solid var(--border);background:rgba(11,24,40,.98);backdrop-filter:blur(10px)}.modal-body .grid{display:grid;grid-template-columns:repeat(12,1fr);gap:11px}.modal-body .grid .f{grid-column:span 6}.modal-body .grid .f.full{grid-column:1/-1}.modal-body textarea{min-height:150px}.modal-x{background:transparent;border:1px solid var(--border-strong);color:#cbd7e8;border-radius:9px;padding:7px 10px;cursor:pointer}.modal-x:hover{background:rgba(255,255,255,.04)}
.site-footer{display:flex;justify-content:center;align-items:center;gap:12px;padding:28px 0 8px;color:#536984;font-size:11px}.site-footer strong{color:#8194ad;letter-spacing:.12em}
.mobile-menu-backdrop{display:none}

@media (max-width:1050px){.summary-grid{grid-template-columns:repeat(2,1fr)}.task-form{grid-template-columns:repeat(8,1fr)}.layout-3row .r1-subj,.layout-3row .r1-content{grid-column:span 8}.layout-3row .r3-item{grid-column:span 4}.task-form .col-end{grid-column:-3/-1}}
@media (max-width:820px){
  .app-shell{display:block}.app-main{grid-column:auto}.sidebar{transform:translateX(-104%);transition:transform .22s ease;box-shadow:20px 0 50px rgba(0,0,0,.35)}body.menu-open .sidebar{transform:translateX(0)}
  .mobile-menu-backdrop{display:block;position:fixed;inset:0;border:0;background:rgba(0,0,0,.52);z-index:45;opacity:0;pointer-events:none;transition:.22s}body.menu-open .mobile-menu-backdrop{opacity:1;pointer-events:auto}
  .mobile-menu-btn{display:block}.topbar{height:64px;padding:0 16px}.topbar-title{display:none}.auth{margin-left:auto}.container{width:min(100% - 28px,760px);padding-top:18px}.hero-card{min-height:190px;padding:26px 24px}.hero-badge{display:none}.hero-quote{margin-top:20px}.section-body{padding:15px}.section-head{padding:14px 15px}
}
@media (max-width:620px){
  .modal-backdrop{align-items:flex-start;padding:8px}
  .modal{width:100%;max-height:calc(100dvh - 16px);margin-top:0;border-radius:14px}
  .modal-head{position:sticky;top:0;z-index:5;padding:13px 14px}
  .modal-body{padding:14px 14px 18px}
  .modal-actions{gap:8px;padding:11px 14px calc(11px + env(safe-area-inset-bottom))}
  .modal-actions .btn{flex:1;min-height:46px}
  .container{width:calc(100% - 20px)}#userInfo{display:none}.auth .btn{padding:8px 10px;font-size:12px}.hero-card{border-radius:16px;min-height:170px;padding:22px 18px}.hero-card h1{font-size:24px}.hero-card p{font-size:13px}.hero-quote{font-size:11px}.summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:11px 0 14px}.summary-card{min-height:112px;padding:13px 12px;border-radius:13px;gap:11px;align-items:center}.summary-icon{flex:0 0 42px;width:42px;height:42px;font-size:20px;align-self:center}.summary-copy{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:center;align-self:stretch}.summary-card strong{font-size:14px;line-height:1.35;margin-top:1px}.summary-card small{font-size:9px;line-height:1.2}.summary-copy em{margin-top:5px;font-size:10px;line-height:1.35}.sec{border-radius:15px;margin:13px 0}.section-title-wrap h2{font-size:16px}.section-icon{width:36px;height:36px}.section-kicker{font-size:8px}.task-form{grid-template-columns:1fr;padding:13px}.task-form .f,.task-form .col-span-5,.task-form .col-span-6,.task-form .col-span-12,.task-form .col-end,.layout-3row .r1-subj,.layout-3row .r1-content,.layout-3row .r3-item{grid-column:1/-1}.modal-body .grid{grid-template-columns:1fr}.modal-body .grid .f,.modal-body .grid .f.full{grid-column:1/-1}.notice-card,.task{padding:14px}.warn-line{align-items:flex-start;flex-direction:column}
}

/* =========================
   v1.2.5 오늘의 시간표
========================= */
.today-timetable-card{
  margin-top:20px;
  padding:22px 24px;
  border:1px solid var(--line, rgba(148,163,184,.16));
  border-radius:20px;
  background:linear-gradient(135deg, rgba(13,31,48,.92), rgba(15,23,42,.92));
  box-shadow:0 18px 45px rgba(0,0,0,.18);
}
.today-timetable-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:16px;
}
.today-timetable-head h2{margin:2px 0 0;font-size:20px}
.today-timetable-more{
  border:0;
  background:transparent;
  color:#93c5fd;
  font:inherit;
  font-weight:700;
  cursor:pointer;
  padding:8px 0;
}
.today-timetable-more:hover{color:#dbeafe}
.today-timetable-meta{
  color:#8fa6c3;
  font-size:14px;
  margin-bottom:12px;
}
.today-timetable-list{
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
  gap:10px;
}
.today-period{
  min-width:0;
  min-height:112px;
  padding:13px 10px;
  border:1px solid rgba(96,165,250,.16);
  border-radius:14px;
  background:rgba(8,17,31,.58);
  text-align:center;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
}
.today-period .period-no{
  display:block;
  margin-bottom:6px;
  color:#60a5fa;
  font-size:12px;
  font-weight:800;
}
.period-subject-wrap{
  width:100%;
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:7px;
}
.today-period .period-subject{
  display:block;
  width:100%;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#f8fafc;
  font-size:15px;
  font-weight:800;
  text-align:center;
}
.today-period .period-alternate{
  display:block;
  width:100%;
  color:#8fa6c3;
  font-size:11px;
  font-weight:600;
  line-height:1.35;
  text-align:center;
  white-space:normal;
  word-break:keep-all;
  overflow-wrap:normal;
}
.today-timetable-empty{
  grid-column:1/-1;
  padding:18px;
  border:1px dashed rgba(148,163,184,.18);
  border-radius:14px;
  color:#8fa6c3;
  text-align:center;
  background:rgba(8,17,31,.38);
}

@media (max-width: 1000px){
  .today-timetable-list{grid-template-columns:repeat(4,minmax(0,1fr))}
}

@media (max-width: 820px){
  .today-timetable-card{margin-top:14px;padding:17px 16px;border-radius:17px}
  .today-timetable-head{align-items:flex-start}
  .today-timetable-head h2{font-size:18px}
  .today-timetable-more{font-size:12px;white-space:nowrap}
  .today-timetable-list{grid-template-columns:1fr;gap:9px}
  .today-period{min-height:auto;display:flex;flex-direction:row;align-items:center;text-align:left;gap:10px;padding:12px 13px}
  .today-period .period-no{flex:0 0 auto;margin:0;min-width:36px}
  .period-subject-wrap{align-items:flex-start;gap:4px}
  .today-period .period-subject{font-size:14px;text-align:left}
  .today-period .period-alternate{font-size:11px;text-align:left;white-space:normal;word-break:keep-all;overflow-wrap:normal}
}
