:root {
  color-scheme: light;
  --page: #faf9f5;
  --surface: #fff;
  --ink: #2c2c2c;
  --muted: #565355;
  --subtle: #666264;
  --line: #eeebe4;
  --accent: #a62831;
  --accent-strong: #92272e;
  --tint: #fff1ef;
  --active-tint: #ffe9e6;
  --focus: #ab3039;
  --red-brand: #ff444f;
  --yellow-brand: #fad02c;
  --font: "Poppins", "Avenir Next", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --max: 73.5rem;
  --bar: 4rem;
  font-family: var(--font);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); font: .9rem/1.45 var(--font); }
.brand-watermark { position: fixed; right: clamp(-1.4rem, 3vw, 2.8rem); bottom: -1.15rem; width: clamp(8rem, 23vw, 18rem); height: auto; opacity: .13; pointer-events: none; user-select: none; }
.portal { position: relative; }
button, input, a { font: inherit; }
button { cursor: pointer; }
a { color: var(--accent); }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }
p, h1, h2, h3 { margin: 0; }
h1, h2, h3 { line-height: 1.2; }
h1 { font-size: 1.75rem; font-weight: 760; letter-spacing: -.052em; }
h2 { font-size: 1.08rem; font-weight: 740; letter-spacing: -.022em; }
h3 { font-size: .93rem; font-weight: 670; }
small { font-size: .79rem; }
.skip-link { position: fixed; z-index: 20; top: .5rem; left: .5rem; padding: .6rem 1rem; background: white; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.topbar { position: sticky; top: 0; z-index: 6; border-bottom: 1px solid var(--line); background: var(--surface); }
.topbar-inner { width: min(var(--max), calc(100% - 2.4rem)); min-height: var(--bar); margin: auto; display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.brand-control { padding: 0; border: 0; background: transparent; border-radius: .5rem; text-align: left; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); }
.brand-logo { display: block; width: 5rem; height: auto; flex: 0 0 auto; }
.brand-title { font-size: .87rem; font-weight: 650; line-height: 1.18; letter-spacing: -.02em; }
.top-actions { display: flex; gap: .38rem; align-items: center; }
.button, .icon-button, .nav-item, .calendar-row, .file-row, .group-row, .jump, .text-button { appearance: none; border: 0; background: none; color: inherit; text-decoration: none; }
.button, .icon-button { display: inline-flex; justify-content: center; align-items: center; gap: .52rem; border-radius: .65rem; min-height: 2.75rem; padding: .52rem .9rem; font-size: .85rem; font-weight: 700; }
.button { background: var(--accent); color: white; }
.button:hover { background: var(--accent-strong); }
.button.secondary { background: var(--surface); color: var(--accent-strong); border: 1px solid #e7d4d4; }
.button.secondary:hover, .icon-button:hover { background: var(--tint); }
.button[disabled] { cursor: wait; opacity: .65; }
.icon-button { min-width: 2.75rem; padding: .5rem; }
.text-button { color: var(--accent-strong); display: inline-flex; align-items: center; gap: .4rem; min-height: 2.75rem; padding: .42rem .25rem; font-size: .84rem; font-weight: 690; border-radius: .4rem; }
.text-button:hover { color: var(--accent); text-decoration: underline; text-underline-offset: .2em; }
.avatar { width: 1.85rem; height: 1.85rem; border-radius: 50%; background: var(--tint); color: var(--accent-strong); display: grid; place-items: center; font-size: .72rem; font-weight: 790; line-height: 1; }
.account { position: relative; }
.account summary { display: flex; align-items: center; gap: .45rem; cursor: pointer; min-width: 2.75rem; min-height: 2.75rem; justify-content: center; padding: .25rem; list-style: none; border-radius: .6rem; }
.account summary::-webkit-details-marker { display: none; }
.account summary:hover { background: var(--tint); }
.account-menu { position: absolute; right: 0; top: calc(100% + .38rem); min-width: 11rem; padding: .38rem .55rem; border: 1px solid var(--line); background: var(--surface); border-radius: .75rem; box-shadow: 0 9px 28px #39252816; }
.mobile-only { display: none; }
.shell { display: grid; grid-template-columns: minmax(9.5rem, 11.5rem) minmax(0, 1fr) minmax(12rem, 15.75rem); gap: clamp(1rem, 2.8vw, 2rem); width: min(var(--max), calc(100% - 2.4rem)); align-items: start; margin: 1.55rem auto 4.5rem; }
.nav-rail { position: sticky; top: calc(var(--bar) + 1.45rem); min-width: 0; }
.nav-list { display: grid; gap: .26rem; }
.nav-item { width: 100%; min-height: 2.82rem; display: flex; align-items: center; gap: .75rem; border-radius: .7rem; padding: .58rem .75rem; text-align: left; font-size: .87rem; font-weight: 665; }
.nav-item:hover { background: #f0ece8; }
.nav-item:disabled { color: #71676a; opacity: .55; cursor: default; }
.nav-item[aria-current="page"] { background: var(--active-tint); color: var(--accent-strong); font-weight: 765; }
.main-content { min-width: 0; }
.main-content:focus, .page-title:focus { outline: none; }
.page-head { min-height: 3.4rem; display: flex; align-items: center; justify-content: space-between; gap: .65rem; margin-bottom: .9rem; }
.page-head p { color: var(--muted); font-size: .81rem; margin-top: .28rem; }
.schedule-zone { display: flex; width: fit-content; max-width: 100%; min-height: 2.55rem; align-items: center; gap: .4rem; border: 1px solid var(--line); border-radius: .65rem; background: var(--surface); padding: .34rem .56rem; margin: 0 0 .8rem; color: var(--muted); font-size: .8rem; }
.schedule-zone select { max-width: min(13rem, 56vw); color: var(--ink); background: transparent; border: 0; border-radius: .3rem; font: inherit; font-weight: 675; padding: .3rem .23rem; }
.schedule-zone select:focus-visible { outline: 2px solid var(--focus); }
.feature { min-width: 0; position: relative; overflow: hidden; padding: 1.22rem 1.35rem; min-height: 10rem; color: var(--ink); background: var(--surface); border: 1px solid #f0e4ba; border-radius: 1rem; box-shadow: 0 10px 30px #66532008; }
.feature::before { content: ""; position: absolute; inset: 0 auto 0 0; width: .23rem; background: var(--yellow-brand); }
.feature::after { content: ""; position: absolute; right: .45rem; bottom: -.9rem; width: clamp(6.5rem, 19vw, 10rem); height: 11rem; background: url("./assets/s-sowelu.png") no-repeat right bottom / contain; opacity: .16; pointer-events: none; }
.feature > * { position: relative; z-index: 1; }
.feature .feature-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem .5rem; color: var(--muted); font-size: .78rem; }
.feature .feature-note { font-size: .76rem; font-weight: 740; margin-bottom: .34rem; color: #654e1a; }
.feature h2 { font-size: 1.42rem; max-width: 36ch; font-weight: 750; line-height: 1.19; letter-spacing: -.035em; margin: .36rem 0 .55rem; }
.feature .button { min-height: 2.6rem; margin-top: .83rem; }
.class-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.detail-card .class-actions:not(:empty) { margin-top: .65rem; }
.class-actions [aria-disabled="true"] { opacity: .76; cursor: default; }
.content-block { margin-top: 1.15rem; }
.section-bar { min-height: 2.65rem; display: flex; justify-content: space-between; align-items: center; gap: .55rem; margin: 0 0 .4rem; }
.section-bar p { color: var(--muted); font-size: .78rem; }
.panel { border: 1px solid var(--line); border-radius: .85rem; background: var(--surface); min-width: 0; }
.feed-panel { overflow: hidden; }
.feed-panel + .feed-panel { margin-top: .72rem; }
.calendar-row, .file-row, .group-row { display: grid; width: 100%; align-items: center; gap: .73rem; text-align: left; min-height: 3.95rem; padding: .63rem .84rem; }
.calendar-row, .file-row { grid-template-columns: auto minmax(0, 1fr) auto; }
.group-row { grid-template-columns: auto minmax(0, 1fr) auto; min-height: 4.75rem; }
.calendar-row + .calendar-row, .file-row + .file-row, .group-row + .group-row { border-top: 1px solid var(--line); }
.calendar-row:hover, .file-row:hover, .group-row:hover, .jump:hover { background: #fcf7f3; }
.calendar-row:focus-visible, .file-row:focus-visible, .group-row:focus-visible, .jump:focus-visible { outline-offset: -3px; }
.row-title { font-size: .88rem; font-weight: 675; line-height: 1.3; overflow-wrap: anywhere; }
.row-sub { color: var(--muted); font-size: .76rem; margin-top: .18rem; overflow-wrap: anywhere; }
.class-number { color: var(--accent-strong); font-weight: 690; white-space: nowrap; }
.row-main { min-width: 0; }
.row-main > span { display: block; }
.day-badge { width: 2.5rem; height: 2.62rem; display: grid; gap: .11rem; justify-items: center; align-content: center; border-radius: .56rem; background: var(--tint); color: #872840; line-height: 1; }
.day-badge strong { font-size: .97rem; font-weight: 770; }
.day-badge small { font-size: .57rem; font-weight: 740; letter-spacing: .025em; text-transform: uppercase; }
.tile { width: 2.25rem; height: 2.3rem; display: grid; place-items: center; border-radius: .57rem; background: var(--tint); color: var(--accent); flex-shrink: 0; }
.tile.course { background: #f8e9bd; color: #652b32; }
.row-tail { display: inline-flex; align-items: center; gap: .44rem; color: var(--subtle); font-size: .69rem; font-weight: 650; }
.shortcut-row { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: .72rem; }
.shortcut-row .jump:last-child:nth-child(odd) { grid-column: 1 / -1; }
.jump { display: flex; gap: .5rem; align-items: center; border-radius: .72rem; border: 1px solid var(--line); background: var(--surface); padding: .56rem .62rem; text-align: left; font-size: .81rem; font-weight: 710; min-height: 3rem; }
.jump .tile { width: 1.8rem; height: 1.8rem; }
.jump .icon { transform: scale(.84); }
.aside { position: sticky; top: calc(var(--bar) + 1.45rem); display: grid; gap: .67rem; align-self: start; }
.aside-box { padding: .82rem; }
.aside-box h2 { font-size: .92rem; margin-bottom: .64rem; }
.aside-name { display: flex; align-items: flex-start; gap: .55rem; }
.aside-name p { line-height: 1.26; }
.aside-name .row-sub { margin-top: .23rem; }
.aside .text-button { font-size: .76rem; margin-top: .15rem; padding-left: .04rem; }
.control-bar { display: flex; gap: .4rem; flex-wrap: wrap; margin: -.08rem 0 .65rem; }
.chip { min-height: 2.6rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); padding: .4rem .72rem; font: 670 .8rem/1.25 var(--font); }
.chip[aria-pressed="true"] { border-color: #eac9c9; color: #872840; background: var(--active-tint); }
.chip:hover { border-color: #d6949d; }
.month { margin: .85rem 0 .42rem; color: var(--muted); font-size: .78rem; font-weight: 710; text-transform: capitalize; }
.month:first-child { margin-top: .16rem; }
.back-link { margin: -.25rem 0 .34rem; font-size: .81rem; }
.detail-card { padding: .97rem; margin: 0 0 .78rem; }
.detail-card p { margin: .30rem 0 0; color: var(--muted); font-size: .81rem; }
.detail-title { max-width: 31ch; font-size: 1.36rem; line-height: 1.2; }
.detail-type { margin-bottom: .34rem; font-weight: 690; color: var(--accent); font-size: .73rem; }
.filter-search { display: flex; align-items: center; gap: .46rem; border: 1px solid var(--line); background: var(--surface); border-radius: .65rem; color: var(--subtle); min-height: 2.75rem; padding: 0 .63rem; margin-bottom: .68rem; }
.filter-search:focus-within { border-color: #a1243b; }
.filter-search input { border: none; outline: none; width: 100%; background: transparent; color: var(--ink); font-size: .87rem; min-height: 2.55rem; }
.filter-search input:focus-visible { outline: none; }
.empty-state { padding: 1rem .91rem; color: var(--muted); background: var(--surface); border: 1px dashed #ded7d4; border-radius: .69rem; font-size: .84rem; }
.login-main { width: min(100% - 2rem, 24rem); margin: clamp(2.4rem, 10vh, 6.5rem) auto; }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: .9rem; padding: 1.45rem; }
.auth-card > p { color: var(--muted); margin: .45rem 0 1.0rem; font-size: .86rem; }
.auth-card form { display: grid; gap: .78rem; }
.auth-card form label { display: grid; gap: .35rem; font-size: .84rem; font-weight: 660; }
.auth-card input { min-height: 2.75rem; color: var(--ink); border: 1px solid #d9d1cf; border-radius: .55rem; padding: .56rem .66rem; font-size: .9rem; }
.message { color: #96263e; margin: .15rem 0; font-size: .84rem; }
dialog { width: min(33rem, calc(100vw - 1.5rem)); max-height: min(75vh, 36rem); overflow: auto; border: 1px solid var(--line); border-radius: .95rem; padding: 1rem; background: var(--surface); color: var(--ink); box-shadow: 0 14px 56px #32222538; }
dialog::backdrop { background: #27181e82; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: .35rem; margin-bottom: .35rem; }
.dialog-head form { margin: 0; }
.dialog-meta { color: var(--muted); margin: .4rem 0 .65rem; font-size: .84rem; }
.dialog-meta .button { margin-top: .2rem; }
.dialog-meta:empty { display: none; }
.pdf-dialog.pdf-ready { width: min(67rem, calc(100vw - 1.4rem)); max-height: 92dvh; }
.pdf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: .5rem 0 .65rem; }
.pdf-frame { display: block; width: 100%; height: min(68dvh, 51rem); background: var(--page); border: 1px solid var(--line); border-radius: .6rem; }
.search-list { overflow: auto; max-height: 50vh; }
.search-list .file-row, .search-list .calendar-row { min-height: 3.4rem; padding: .5rem; }
.billing-list { list-style: none; padding: 0; margin: 0; }
.billing-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .7rem; padding: .8rem .85rem; }
.billing-row + .billing-row { border-top: 1px solid var(--line); }
.billing-amount { display: grid; justify-items: end; font-size: .84rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.billing-amount small { color: var(--muted); font-size: .72rem; }
.billing-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .5rem; }
.billing-actions .button { min-height: 2.4rem; }
.billing-toolbar { display: flex; justify-content: flex-end; margin: -.25rem 0 .75rem; }
.billing-statement { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1rem; margin: 1rem 0 .8rem; }
.billing-statement h2 { width: 100%; margin: 0; font-size: 1.15rem; }
.billing-statement p { margin: 0; color: var(--muted); font-size: .9rem; }
.billing-statement-count { margin-left: auto !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
.security-panel { padding: 1.15rem; max-width: 42rem; }
.security-callout { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: .85rem; background: var(--surface); }
.security-callout p { margin: .2rem 0 0; color: var(--muted); font-size: .9rem; }
.security-panel h2 { margin: 0 0 .8rem; font-size: 1.05rem; }
.security-panel > .button { margin-top: .8rem; }
.calendar-download { display: flex; justify-content: flex-end; margin: .6rem 0 1rem; }
.group-refresh { margin: .9rem 0 0; }
.passkey-list { list-style: none; padding: 0; margin: 0; }
.passkey-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.passkey-row span { display: grid; gap: .18rem; min-width: 0; }
.passkey-row small { color: var(--muted); }
.recording-card { padding: 1rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; }
.recording-card p { margin: 0; }
.icon { width: 1.125rem; height: 1.125rem; position: relative; display: inline-block; flex: 0 0 auto; color: inherit; }
.icon::before, .icon::after, .icon i { content: ""; position: absolute; display: block; }
.icon-home::before { width: .62rem; height: .62rem; border-top: 1.6px solid; border-left: 1.6px solid; top: .11rem; left: .25rem; transform: rotate(45deg); border-radius: .065rem; }
.icon-home::after { width: .76rem; height: .59rem; left: .18rem; top: .47rem; border: 1.6px solid; border-top: 0; border-radius: 0 0 .13rem .13rem; }
.icon-calendar::before { inset: .2rem .08rem .06rem; border: 1.6px solid; border-radius: .18rem; }
.icon-calendar::after { width: .83rem; height: .1rem; top: .43rem; left: .15rem; background: currentColor; }
.icon-calendar i { top: .06rem; left: .32rem; width: .1rem; height: .27rem; border-radius: 2px; background: currentColor; box-shadow: .38rem 0 currentColor; }
.icon-book::before, .icon-book::after { top: .18rem; width: .49rem; height: .77rem; border: 1.6px solid; }
.icon-book::before { left: .08rem; border-radius: .16rem .10rem .07rem .14rem; }
.icon-book::after { right: .08rem; border-radius: .10rem .16rem .14rem .07rem; }
.icon-groups::before { top: .09rem; left: .34rem; width: .43rem; height: .43rem; border: 1.6px solid; border-radius: 50%; }
.icon-groups::after { bottom: .04rem; left: .17rem; width: .78rem; height: .45rem; border: 1.6px solid; border-radius: .45rem .45rem .13rem .13rem; }
.icon-search::before { top: .08rem; left: .08rem; width: .7rem; height: .7rem; border: 1.6px solid; border-radius: 50%; }
.icon-search::after { width: .4rem; height: .1rem; left: .69rem; top: .81rem; background: currentColor; border-radius: 3px; transform: rotate(45deg); }
.icon-next::before, .icon-back::before { width: .42rem; height: .42rem; border-right: 1.6px solid; border-top: 1.6px solid; transform: rotate(45deg); left: .33rem; top: .35rem; }
.icon-back::before { transform: rotate(225deg); left: .4rem; }
.icon-file::before { inset: .12rem .24rem .06rem .15rem; border: 1.5px solid; border-radius: .13rem; }
.icon-file::after { width: .32rem; height: .085rem; top: .51rem; left: .36rem; background: currentColor; box-shadow: 0 .19rem currentColor; }
.icon-close::before, .icon-close::after { width: .84rem; height: .1rem; top: .51rem; left: .13rem; transform: rotate(45deg); background: currentColor; border-radius: .1rem; }
.icon-close::after { transform: rotate(-45deg); }
.icon-clock::before { inset: .13rem; border: 1.5px solid; border-radius: 50%; }
.icon-clock::after { width: .25rem; height: .29rem; top: .29rem; left: .51rem; border-left: 1.5px solid; border-bottom: 1.5px solid; border-radius: .05rem; }
.icon-video::before { inset: .21rem .39rem .21rem .04rem; border: 1.5px solid; border-radius: .18rem; }
.icon-video::after { top: .32rem; left: .76rem; width: .29rem; height: .49rem; border: 1.5px solid; border-left: 0; border-radius: 0 .14rem .14rem 0; }
.icon-billing::before { inset: .13rem .04rem .13rem; border: 1.5px solid; border-radius: .19rem; }
.icon-billing::after { top: .44rem; left: .1rem; width: .94rem; height: .09rem; background: currentColor; }
.icon-billing i { top: .68rem; left: .27rem; width: .29rem; height: .09rem; background: currentColor; border-radius: 2px; }
.bottom-nav { display: none; }
@media (max-width: 1040px) {
  .shell { grid-template-columns: 10rem minmax(0, 1fr); max-width: 57rem; }
  .aside { display: none; }
}
@media (max-width: 660px) {
  :root { --bar: 3.42rem; }
  body { padding-bottom: calc(3.65rem + env(safe-area-inset-bottom)); }
  body:has(.login-main) { padding-bottom: 0; }
  .topbar-inner { width: calc(100% - 1.35rem); }
  .brand { gap: .45rem; }
  .brand-logo { width: 4.55rem; }
  .brand-title { font-size: .8rem; }
  .mobile-only { display: inline-flex; }
  .desktop-only, .nav-rail { display: none; }
  .shell { width: min(100% - 1.3rem, 34rem); margin: .72rem auto 1rem; display: block; }
  .page-head { min-height: 2.85rem; margin-bottom: .62rem; }
  h1 { font-size: 1.46rem; }
  .feature { min-height: 9.4rem; padding: .94rem 1rem; border-radius: .85rem; }
  .feature h2 { font-size: 1.24rem; margin: .24rem 0 .4rem; }
  .feature .button { min-height: 2.75rem; margin-top: .65rem; }
  .brand-watermark { bottom: 3rem; }
  .calendar-row, .file-row, .group-row { padding: .52rem .61rem; gap: .54rem; }
  .row-tail { gap: .18rem; }
  .row-tail .pdf-tag { display: none; }
  .bottom-nav { position: fixed; inset: auto 0 0; padding: .18rem .37rem max(.18rem, env(safe-area-inset-bottom)); z-index: 5; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: var(--surface); border-top: 1px solid var(--line); }
  .bottom-nav .nav-item { display: flex; flex-direction: column; justify-content: center; min-height: 3rem; gap: .19rem; padding: .22rem .11rem; border-radius: .48rem; font-size: .72rem; line-height: 1.1; text-align: center; }
  .bottom-nav .nav-item .icon { margin: .06rem 0; }
  .bottom-nav .nav-item[aria-current="page"] { background: var(--tint); }
  input[type="search"], .auth-card input { font-size: 1rem; }
  dialog { padding: .82rem; }
}
@media (prefers-reduced-motion: no-preference) {
  button, a { transition: color .13s ease, background-color .13s ease, border-color .13s ease; }
}
