:root { --bg: #f5f7fc; --surface: #ffffff; --ink: #182037; --muted: #6e778d; --line: #e3e7f0; --blue: #476ee8; --blue-soft: #edf1ff; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
button, a { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; }
.topbar { height: 68px; padding: 0 max(20px, calc((100% - 1120px) / 2)); display: flex; align-items: center; gap: 34px; background: var(--surface); border-bottom: 1px solid var(--line); }
.logo { color: var(--blue); font-size: 20px; font-weight: 800; text-decoration: none; letter-spacing: .03em; }
.desktop-nav { display: flex; gap: 5px; flex: 1; }
.nav-link { padding: 9px 13px; color: var(--muted); text-decoration: none; border-radius: 8px; font-size: 14px; }
.nav-link:hover, .nav-link.is-active { color: var(--blue); background: var(--blue-soft); }
.profile-button { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; color: white; background: var(--blue); font-weight: 700; text-decoration: none; }
main { width: min(100% - 40px, 1120px); margin: 0 auto; padding: 42px 0 54px; }
.eyebrow { margin: 0 0 8px; color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .11em; }.calendar-card { margin-bottom: 25px; }.calendar-card h1 { margin: 0; font-size: clamp(25px, 3vw, 32px); }.week-calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }.week-day { min-height: 106px; padding: 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }.week-day.is-today { border-color: var(--blue); background: #f9faff; }.week-day time, .week-day strong { display: block; }.week-day time { color: var(--muted); font-size: 11px; }.week-day strong { margin: 5px 0 10px; font-size: 17px; }.schedule-chip { display: block; overflow: hidden; color: var(--blue); font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.goal-card, .panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }.goal-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 27px; margin-bottom: 40px; }.goal-card h2, .section-heading h2, .panel h2 { margin: 0; font-size: 19px; }.goal-card p:not(.eyebrow) { color: var(--muted); margin: 10px 0 9px; font-size: 14px; }.goal-card p strong { color: var(--ink); }.progress { width: min(330px, 100%); height: 9px; overflow: hidden; border-radius: 99px; background: #e5e9f4; }.progress-fill { height: 100%; width: 60%; background: var(--blue); border-radius: inherit; transition: width .25s ease; }
.primary-button { padding: 12px 17px; border: 0; border-radius: 10px; color: white; background: var(--blue); font-weight: 700; white-space: nowrap; }.primary-button:hover { filter: brightness(.94); }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 15px; }.section-heading.compact { margin-bottom: 17px; }.text-button { padding: 5px 0; border: 0; color: var(--blue); background: transparent; font-size: 14px; font-weight: 700; }
.subject-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 13px; }.subject-card { --subject: var(--blue); min-height: 155px; display: flex; flex-direction: column; align-items: flex-start; padding: 17px; color: var(--ink); text-align: left; background: var(--surface); border: 2px solid var(--subject); border-radius: 16px; transition: transform .15s, box-shadow .15s; text-decoration: none; }.subject-card:hover { transform: translateY(-3px); box-shadow: 0 5px 16px color-mix(in srgb, var(--subject), transparent 80%); }.subject-card.english { --subject: #d9a52c; }.subject-card.math { --subject: #4aa8ca; }.subject-card.science { --subject: #56a36a; }.subject-card.japanese { --subject: #bd4c61; }.subject-card.social { --subject: #8a62c3; }.subject-card.created { --subject: #5b7dd8; }.subject-icon { width: 33px; height: 33px; display: grid; place-items: center; margin-bottom: 19px; border-radius: 9px; color: var(--subject); background: color-mix(in srgb, var(--subject), white 88%); font-weight: 800; }.subject-card strong, .subject-card small { display: block; }.subject-card small { margin-top: 4px; color: var(--muted); font-size: 11px; }.subject-card em { margin-top: auto; color: var(--subject); font-size: 11px; font-style: normal; font-weight: 700; }
.dashboard { display: grid; grid-template-columns: 1.25fr .75fr; gap: 16px; margin-top: 38px; }.panel { padding: 22px; }.stats { display: flex; gap: 36px; }.stats strong, .stats span { display: block; }.stats strong { font-size: 21px; }.stats span { margin-top: 4px; color: var(--muted); font-size: 12px; }.rank-row { display: flex; justify-content: space-between; margin: 18px 0 11px; padding-top: 13px; border-top: 1px solid var(--line); font-size: 14px; }.rank-row strong { color: var(--blue); }
.mobile-nav { display: none; }.toast { position: fixed; z-index: 5; right: 20px; bottom: 20px; max-width: calc(100% - 40px); padding: 12px 16px; border-radius: 10px; color: white; background: #273149; opacity: 0; transform: translateY(12px); pointer-events: none; transition: .2s; }.toast.is-visible { opacity: 1; transform: translateY(0); }
dialog { width: min(720px, calc(100% - 24px)); max-height: min(800px, calc(100vh - 24px)); padding: 25px; overflow: auto; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; } dialog::backdrop { background: rgb(20 28 46 / .46); }.calendar-dialog-top, .calendar-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; }.calendar-dialog-top h2 { margin: 0; font-size: 22px; }.close-button, .outline-button { border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--surface); }.close-button { width: 34px; height: 34px; font-size: 23px; }.calendar-controls { justify-content: flex-start; margin: 20px 0 12px; }.outline-button { padding: 8px 11px; font-size: 13px; }.weekday-row, .month-calendar { display: grid; grid-template-columns: repeat(7, 1fr); }.weekday-row { color: var(--muted); text-align: center; font-size: 11px; }.month-calendar { gap: 4px; margin-top: 5px; }.month-day { min-height: 70px; padding: 6px; border: 1px solid var(--line); border-radius: 8px; text-align: left; background: var(--surface); }.month-day.is-other { opacity: .35; }.month-day.is-selected { border-color: var(--blue); background: #f5f7ff; }.month-day .day-number { display: block; font-size: 12px; }.month-day .schedule-dot { display: block; margin-top: 5px; overflow: hidden; color: var(--blue); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.schedule-form { display: grid; grid-template-columns: 150px 1fr auto; gap: 10px; align-items: end; margin-top: 22px; padding-top: 19px; border-top: 1px solid var(--line); }.schedule-form label { display: grid; gap: 5px; color: var(--muted); font-size: 12px; }.schedule-form input { height: 38px; padding: 7px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--surface); }.schedule-list-title { margin: 20px 0 8px; font-size: 14px; font-weight: 700; }.schedule-list { display: grid; gap: 6px; padding: 0; margin: 0; list-style: none; }.schedule-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; color: var(--muted); background: var(--bg); border-radius: 8px; font-size: 13px; }.delete-schedule { border: 0; color: #bd4c61; background: transparent; font-size: 12px; font-weight: 700; }
@media (max-width: 850px) { .subject-grid { grid-template-columns: repeat(3, 1fr); }.subject-card { min-height: 135px; } }
@media (max-width: 600px) { .topbar { height: 58px; padding: 0 18px; }.desktop-nav { display: none; } main { width: min(100% - 30px, 1120px); padding: 28px 0 90px; }.week-calendar { gap: 5px; }.week-day { min-height: 88px; padding: 8px; }.week-day strong { font-size: 15px; }.week-day time { font-size: 9px; }.schedule-chip { font-size: 9px; }.goal-card { align-items: stretch; flex-direction: column; padding: 20px; margin-bottom: 33px; }.primary-button { width: 100%; }.subject-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }.subject-card { min-height: 130px; padding: 14px; }.subject-icon { margin-bottom: 13px; }.dashboard { grid-template-columns: 1fr; margin-top: 32px; }.stats { justify-content: space-between; gap: 10px; }.stats strong { font-size: 18px; }.mobile-nav { position: fixed; inset: auto 0 0; display: flex; justify-content: space-around; padding: 8px 7px max(9px, env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }.mobile-nav a { display: grid; gap: 3px; place-items: center; min-width: 65px; color: var(--muted); font-size: 19px; text-decoration: none; }.mobile-nav span { font-size: 10px; }.mobile-nav .is-active { color: var(--blue); } dialog { padding: 18px; }.month-day { min-height: 56px; }.schedule-form { grid-template-columns: 1fr; }.schedule-form .primary-button { width: auto; } }
