:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", "PingFang HK", "Microsoft JhengHei", sans-serif;
  background: #f6f7f8;
  color: #152c39;
  --edge: clamp(20px, 5.5vw, 88px);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; }
.masthead, .login-main { width: min(1376px, calc(100% - 2 * var(--edge))); margin-inline: auto; }
.masthead {
  min-height: 88px; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; border-bottom: 1px solid #c9d3d8;
}
.brand { display: flex; align-items: center; gap: 12px; font-size: 1.12rem; font-weight: 700; }
.mast-date { font-size: .95rem; color: #4e6270; }
.skip-link { position: absolute; top: 10px; left: var(--edge); transform: translateY(-160%); z-index: 4; padding: 10px 16px; border-radius: 5px; background: white; color: #1846ad; }
.skip-link:focus { transform: none; }
:focus-visible { outline: 3px solid #2569da; outline-offset: 4px; }
.login-main {
  min-height: calc(100svh - 89px); padding-block: clamp(40px, 6.5vh, 88px);
  display: grid; grid-template-columns: 1fr 1.04fr; gap: clamp(35px, 6.5vw, 106px); align-items: center;
}
.sign-in, .timetable { min-width: 0; }
.entry-copy { max-width: 455px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2.7rem, 4.7vw, 4.8rem); line-height: 1.16; font-weight: 760; letter-spacing: -.048em; }
.lead { margin-top: 23px; color: #4b6270; line-height: 1.85; font-size: clamp(1.06rem, 1.25vw, 1.2rem); text-wrap: pretty; }
.google-button {
  position: relative; margin-top: 36px; min-height: 52px; width: 100%; padding: 12px 38px;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  font: 600 1.01rem/1.4 Roboto, "Segoe UI", "Microsoft JhengHei", sans-serif;
  color: #1f1f1f; background: white; border: 1px solid #747775; border-radius: 5px; text-decoration: none;
  transition: transform .16s ease-out, box-shadow .16s ease-out, background .16s;
}
.google-button svg { flex: none; }
a.google-button:hover { background: #f5f8ff; box-shadow: 0 2px 5px #142b4421; transform: translateY(-1px); }
a.google-button:active { transform: translateY(1px); }
.google-button:disabled { color: #555e61; background: #edf0f1; border-color: #b2bec3; }
.account-help { margin-top: 16px; font-size: .875rem; color: #556671; line-height: 1.7; }
.notice { margin-top: 24px; padding: 10px 14px; color: #79391e; background: #fff0df; border-inline-start: 3px solid #bb601c; line-height: 1.6; }
.notice + .google-button { margin-top: 18px; }
.timetable {
  color: #f5faff; background: #173a4e; border-radius: 14px;
  padding: clamp(26px, 3.4vw, 56px); overflow: hidden;
}
.schedule-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: clamp(20px, 3vw, 39px); }
.schedule-heading h2 { font-size: clamp(1.35rem, 2.4vw, 2.15rem); line-height: 1.3; letter-spacing: -.035em; }
.schedule-icon { color: #a6d7d6; flex: none; }
.lesson-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block-end: 1px solid #63808e; }
.lesson-grid li { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(14px, 2.1vw, 32px) 0; gap: 5px; border-block-start: 1px solid #63808e; }
.lesson-grid li:nth-child(3n+2) { padding-left: 12%; }
.lesson-grid li:nth-child(3n) { padding-left: 20%; }
.lesson-number {
  color: #b8f1e6; font: 520 clamp(2.25rem, 3.8vw, 3.75rem)/1 "Segoe UI", Arial, sans-serif;
  font-variant-numeric: tabular-nums; letter-spacing: -.075em;
}
.lesson-range { font-size: clamp(.79rem, 1.1vw, 1rem); font-variant-numeric: tabular-nums; color: #e0edf1; white-space: nowrap; }
.time-dash { margin-inline: .12em; }
.return-note { display: flex; align-items: center; gap: 9px; margin-top: 20px; font-size: .88rem; color: #d9e8ee; }
.return-dot { width: 8px; height: 8px; border-radius: 50%; background: #a2dfce; }
@media (max-width: 900px) {
  :root { --edge: clamp(20px, 4vw, 40px); }
  .login-main { gap: 30px; }
  .timetable { padding: 24px; }
  .lesson-grid li:nth-child(n) { padding-left: 0; }
}
@media (max-width: 720px) {
  .masthead { min-height: 66px; gap: 12px; }
  .brand { font-size: .98rem; gap: 8px; }
  .brand img { width: 32px; height: 32px; }
  .mast-date { font-size: .8rem; text-align: right; }
  .login-main { min-height: 0; grid-template-columns: 1fr; gap: 34px; padding-block: 42px 24px; }
  .entry-copy { max-width: none; }
  .lead { margin-top: 16px; }
  .google-button { margin-top: 24px; }
  .timetable { padding: 22px; }
  .lesson-grid li { padding-block: 14px; }
  .lesson-number { font-size: 2.15rem; }
  .schedule-icon { width: 24px; height: 24px; }
}
@media (max-width: 420px) {
  .masthead { flex-wrap: wrap; justify-content: flex-start; padding-block: 14px; gap: 6px 14px; }
  .mast-date { font-size: .8rem; }
  .timetable { padding: 18px; }
  .time-dash { margin-inline: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  @keyframes entry { from { opacity: .35; transform: translateY(6px); } to { opacity: 1; transform: none; } }
  [data-enter] .entry-copy, .schedule-heading, .lesson-grid { animation: entry .4s ease-out both; }
  .lesson-grid { animation-delay: .06s; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
