:root {
  color-scheme: light;
  font-family: Tahoma, Arial, sans-serif;
  background: #f5f7f5;
  color: #172923;
  line-height: 1.65;
  --muted: #52665e;
  --green: #12654d;
  --line: #dbe5df;
  --violet: #6334a3;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.65rem, 4vw, 2.65rem); line-height: 1.45; }
h2 { font-size: 1.08rem; }
h3 { font-size: .98rem; }
button, select, input { font: inherit; }
button { cursor: pointer; min-height: 44px; border-radius: 10px; }
button:disabled { cursor: default; opacity: .55; }
:focus-visible { outline: 3px solid #8150c6; outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.topbar { border-bottom: 1px solid var(--line); background: #fff; }
.top-inner, .brand, .top-actions, .section-head { display: flex; align-items: center; }
.top-inner, .section-head { justify-content: space-between; gap: 10px; }
.top-inner { min-height: 76px; }
.brand { gap: 12px; font-weight: bold; }
.brand small { display: block; color: var(--muted); font-weight: normal; font-size: .75rem; }
.brand-icon { display: inline-grid; flex: none; place-items: center; width: 42px; height: 42px; background: #dff2e8; border-radius: 13px; }
.brand-icon::before { content: ""; width: 24px; height: 14px; border: 2px solid var(--green); border-radius: 4px; background: linear-gradient(to left, var(--green) 0 55%, transparent 55%); box-shadow: inset 0 0 0 2px #dff2e8; }
.top-actions { gap: 6px; }
.quiet, .outline, .primary { padding: 6px 12px; border: 1px solid transparent; font-weight: bold; }
.quiet { color: var(--green); background: transparent; }
.quiet:hover, .outline:hover { background: #edf5f0; }
.outline { color: var(--green); background: #fff; border-color: var(--line); }
.primary { color: #fff; background: var(--green); }
.primary:hover { background: #0b503c; }
.layout { margin-block: 28px 44px; }
.hero { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; align-items: center; padding: 27px 30px; border-radius: 22px; background: radial-gradient(ellipse at 0 0, #2a664f, transparent 65%), #153c30; color: #fff; }
.today-date, .hero-copy > p:last-child { color: #c4e9d8; font-size: .9rem; }
.hero-copy > p:last-child { margin-top: 7px; }
.overall { padding: 14px 18px; border: 1px solid #ffffff36; border-radius: 16px; background: #ffffff0c; }
.overall p { color: #d5efe2; font-size: .85rem; }
.overall strong { display: block; font-size: 1.45rem; }
progress { display: block; width: 100%; height: 9px; margin-top: 8px; border: 0; border-radius: 12px; overflow: hidden; accent-color: #95efbc; background: #376653; }
progress::-webkit-progress-bar { background: #376653; }
progress::-webkit-progress-value { background: #95efbc; }
progress::-moz-progress-bar { background: #95efbc; }
.status { min-height: 34px; padding-block: 6px; color: var(--muted); font-size: .82rem; }
.board { display: grid; grid-template-columns: minmax(0, 2fr) minmax(245px, 1fr); gap: 16px; align-items: start; }
.panel { padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 20px; }
.hint, .section-head span, .legend { color: var(--muted); font-size: .82rem; }
.hint { margin-bottom: 11px; }
.course { border-bottom: 1px solid #e8eeea; padding-block: 10px; }
.course-name { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.course-name span { font-size: .78rem; color: var(--muted); white-space: nowrap; }
.cells { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 5px; }
.cell { padding: 0; background: #eff4f1; color: #3f564c; border: 1px solid #dce7e0; font-size: .82rem; font-weight: bold; }
.cell:hover { background: #e2eee7; }
.cell.planned { border: 2px solid var(--violet); color: #53288c; background: #f4edfc; }
.cell.done, .legend-done { background: #d1f0de; color: #07533b; border-color: #83c9a6; }
.cell.done.planned { border-color: var(--violet); }
.check { display: block; font-size: .83rem; line-height: .9; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border: 1px solid #83c9a6; border-radius: 3px; }
.legend .legend-today { border: 2px solid var(--violet); background: #f4edfc; }
.session-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.session-list .empty { color: var(--muted); font-size: .86rem; padding-block: 5px; }
.session-list button.mark { width: 100%; display: flex; gap: 9px; align-items: center; text-align: start; color: inherit; background: #f5f8f6; border: 1px solid #e4ece7; padding: 6px 8px; font-size: .83rem; }
.session-list button.mark:hover { background: #eaf3ed; }
.mark i { display: grid; place-items: center; border: 1px solid #77998b; border-radius: 5px; width: 18px; height: 18px; flex: none; font-style: normal; line-height: 1; }
.mark[aria-pressed=true] i { background: #d1f0de; color: var(--green); }
.remainder { background: #f8f4ec; color: #55482d; border-radius: 12px; padding: 10px 11px 3px; margin-top: 15px; font-size: .85rem; }
.remainder .quiet { padding-inline: 0; }
.calendar { margin-top: 16px; }
.week-nav { display: flex; align-items: center; justify-content: space-between; margin-block: 12px 8px; text-align: center; gap: 4px; }
.week-nav .outline { min-width: 44px; }
.week-nav .quiet { display: block; margin-inline: auto; font-size: .79rem; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.week button { display: grid; justify-items: center; gap: 2px; border: 1px solid var(--line); background: #f7f9f7; color: inherit; padding: 7px 1px; font-size: .9rem; }
.week button[aria-pressed=true] { background: #dff2e8; border-color: #398366; }
.week button[aria-current=date] { box-shadow: inset 0 -3px #6334a3; }
.week small { font-size: .69rem; color: var(--muted); }
.day-plan { margin-top: 14px; }
dialog { width: min(460px, calc(100% - 30px)); max-height: calc(100% - 24px); padding: 0; color: inherit; border: 1px solid var(--line); border-radius: 18px; }
dialog::backdrop { background: #10251eb5; }
.dialog-inner, .login { display: grid; gap: 10px; padding: 20px; }
select, input[type=password], input[type=file] { width: 100%; min-height: 44px; border: 1px solid #a6bbb0; border-radius: 8px; padding: 7px; color: inherit; background: #fff; }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 18px; }
.login { width: min(100%, 410px); }
.error { color: #a12928; }
@media (max-width: 1060px) { .cells { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 690px) {
  .wrap { width: calc(100% - 24px); }
  .layout { margin-top: 14px; }
  .top-inner { min-height: 64px; }
  .hero { grid-template-columns: 1fr; padding: 17px; gap: 12px; }
  .board { grid-template-columns: minmax(0, 1fr); }
  .today-panel { grid-row: 1; }
  .panel { padding: 13px; }
  .cells { gap: 6px; }
  .top-actions .quiet { padding-inline: 7px; }
}
