:root{color-scheme:light;--canvas:#f7f7fc;--panel:#fff;--ink:#151532;--muted:#56576e;--line:#e3e2f0;--accent:#4931df;--soft:#eeebff;--green:#08764c}
:root[data-theme=dark]{color-scheme:dark;--canvas:#11111d;--panel:#1b1b2b;--ink:#f8f7ff;--muted:#bebcd0;--line:#333248;--accent:#b6a8ff;--soft:#2b244c;--green:#87e5b9}
*{box-sizing:border-box}body{margin:0;background:var(--canvas);color:var(--ink);font:1rem/1.55 Inter,system-ui,sans-serif}a{color:var(--accent)}button,input,select,textarea{font:inherit}button,.button{border:0;border-radius:13px;background:#4931df;color:#fff;padding:.55rem .85rem;cursor:pointer;display:inline-block;text-decoration:none}button:disabled{cursor:default;opacity:.65}.quiet,.secondary{background:var(--soft);color:var(--accent)}:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.skip{position:absolute;left:-999px}.skip:focus{left:1rem;top:1rem;background:var(--panel);z-index:2}.top{display:flex;align-items:center;gap:1rem;padding:.75rem clamp(1rem,4vw,3rem);background:var(--panel);border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:.55rem;color:var(--ink);font-size:1.32rem;text-decoration:none;letter-spacing:-.06em}.brand img,.avatar{width:2.75rem;height:2.75rem;object-fit:cover;border-radius:12px}.brand span{color:var(--accent)}.batch{color:var(--muted);font-size:.88rem}.top button{margin-left:auto}
.shell{max-width:1320px;margin:auto;display:grid;grid-template-columns:205px minmax(0,1fr);gap:1.4rem;padding:1.4rem}nav{display:flex;flex-direction:column;gap:.3rem;align-self:start;position:sticky;top:1rem}nav a{white-space:nowrap;text-decoration:none;color:var(--muted);padding:.65rem .82rem;border-radius:12px;font-weight:600}nav a[aria-current]{color:var(--accent);background:var(--soft)}main{min-width:0}.hero{padding:clamp(1.35rem,4vw,3rem);border-radius:26px;background:#251478 url(campus-banner.webp) center/cover;color:white;margin-bottom:1.2rem;position:relative;isolation:isolate;overflow:hidden}.hero:before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#1e114c 0%,#2b197aeb 42%,#2b197a38 100%)}.hero h1{font-size:clamp(1.9rem,5.6vw,3.4rem);margin:.25em 0 .3em;letter-spacing:-.045em}
.hero-college{max-width:40ch;margin:0;color:#f3f0ff}
.hero-date{display:flex;align-items:center;gap:.55rem;margin:.95rem 0;color:#f3f0ff}
.hero-calendar{position:relative;display:inline-block;flex:none;width:1.05rem;height:1rem;border:1.5px solid currentColor;border-radius:3px}
.hero-calendar:before{content:'';position:absolute;left:0;right:0;top:.25rem;border-top:1.5px solid currentColor}
.hero-calendar:after{content:'';position:absolute;top:-.22rem;left:.18rem;right:.18rem;height:.24rem;border-inline:1.5px solid currentColor}
.hero-links{display:flex;flex-wrap:wrap;gap:.55rem;margin-top:1rem}
.hero-links .button{display:inline-flex;align-items:center;min-height:44px;padding:.45rem .85rem;border:1.5px solid #ded5ff;font-weight:700}
.hero-primary{background:#ded5ff;color:#241651}
.hero-secondary{background:#251b58d9;color:white}
.hero-links .button:focus-visible{outline-color:white}.eyebrow{font-weight:700;font-size:.88rem;letter-spacing:.06em;text-transform:uppercase}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin-bottom:1rem}.card{background:var(--panel);border:1px solid var(--line);border-radius:20px;padding:1.1rem;min-width:0}.card p:last-child{margin-bottom:0}.featured{background:var(--soft);border-color:transparent;margin-bottom:1rem}.meta{color:var(--muted);font-size:.92rem}.live{color:var(--green);font-weight:750}.stack{display:grid;gap:.7rem}.row{display:flex;justify-content:space-between;gap:.8rem;flex-wrap:wrap;align-items:center}.entry{padding:.7rem 0;border-bottom:1px solid var(--line)}.entry:last-child{border-bottom:0}.pill{display:inline-block;border-radius:999px;padding:.2rem .6rem;background:var(--soft);color:var(--accent);font-size:.88rem}h1,h2,h3{line-height:1.18;margin:.1em 0 .55em;letter-spacing:-.035em}h2{font-size:1.45rem}h3{font-size:1.1rem}.page-head{margin:0 0 1.1rem}.actions{display:flex;gap:.5rem;flex-wrap:wrap;align-items:center}.form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.85rem}.form label{display:grid;gap:.25rem;min-width:0}.form .wide{grid-column:1/-1}input,select,textarea{max-width:100%;width:100%;border:1px solid var(--line);border-radius:11px;padding:.45rem .6rem;background:var(--panel);color:var(--ink)}progress{width:100%;accent-color:#654cef}#status:not(:empty){position:fixed;right:1rem;bottom:1rem;background:var(--ink);color:var(--canvas);padding:.6rem 1rem;border-radius:12px;z-index:3}.section{margin-top:1.2rem}
@media(max-width:780px){.shell{display:block;padding:1rem}nav{position:static;flex-direction:row;overflow:auto;margin-bottom:1rem;padding:.2rem}.batch{display:none}}
@media(max-width:560px){.grid,.form{grid-template-columns:1fr}.hero{padding:1.25rem}.top{padding:.65rem 1rem}}

/* Mess menu */
.dish-list{list-style:none;padding:0;margin:.65rem 0 1rem;display:grid;gap:.4rem}
.dish-list li{display:flex;align-items:center;gap:.65rem;min-width:0;line-height:1.3}
.dish-list li:last-child{margin-bottom:0}
.food-thumb{display:block;width:42px;height:42px;flex:none;border-radius:10px;background-color:var(--panel);background-repeat:no-repeat;box-shadow:inset 0 0 0 1px #32265524}
.food-thumb.sheet-1{background-image:url(food-thumbnails-1.webp);background-size:500% 500%}
.food-thumb.sheet-2{background-image:url(food-thumbnails-2.webp);background-size:500% 500%}
.food-thumb.sheet-3{background-image:url(food-thumbnails-3.webp);background-size:400% 400%}
.day-menu .meal-entry{padding:1rem 0}
.day-menu .meal-entry:last-child{padding-bottom:0}
.meal-entry h3{margin:0}
.meal-entry .dish-list{margin-bottom:0}

/* Interaction feedback */
@media(prefers-reduced-motion:no-preference){
  button,.button,nav a{transition:background-color 180ms ease,color 180ms ease,border-color 180ms ease,box-shadow 180ms ease,transform 180ms ease}
  button:active:not(:disabled),.button:active,nav a:active{transform:translateY(1px) scale(.98)}
  #status:not(:empty){animation:status-in 240ms ease-out}
}
@media(hover:hover){
  button:hover:not(:disabled),.button:hover{box-shadow:0 3px 10px #26174c29}
  nav a:not([aria-current]):hover{background:var(--soft);color:var(--accent)}
}
@keyframes status-in{
  from{opacity:0;transform:translateY(5px)}
  to{opacity:1;transform:translateY(0)}
}


.study-shelf{display:grid;gap:1rem}
.study-subject{--book-color:#84243a}
.study-subject-1{--book-color:#284d89}
.study-subject-2{--book-color:#216154}
.study-subject-3{--book-color:#563b82}
.study-books{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem}
.study-book{display:flex;align-items:flex-start;gap:.65rem;min-width:0;padding:.72rem;border:1px solid var(--line);border-radius:14px}
.study-cover{position:relative;flex:none;width:48px;height:64px;overflow:hidden;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:.12rem;border-radius:3px 6px 6px 3px;border-left:3px solid #0004;background:var(--book-color);color:#fff;font-size:.7rem;font-weight:700}
.study-cover small{font-size:.62rem;font-weight:600}
.study-cover img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.study-book-info{min-width:0}
.study-book h3{margin:0;font-size:1rem;line-height:1.25;overflow-wrap:anywhere}
.study-book p{margin:.25rem 0 .38rem}
.study-links{display:flex;flex-wrap:wrap;gap:.2rem .85rem;font-size:.9rem}
@media(max-width:700px){.study-books{grid-template-columns:1fr}}

.study-cover:has(img:not([hidden])){border-left:0;background:var(--panel)}
.study-cover img{object-fit:contain;background:var(--panel)}


.meal-header-controls{display:flex;align-items:center;gap:.55rem;flex-wrap:wrap}
.meal-score{font-size:.875rem;color:var(--ink);font-weight:650}
.dish-name{flex:1;min-width:0;overflow-wrap:anywhere}
.dish-votes{display:inline-flex;gap:.3rem;flex:none;margin-left:auto}
.dish-votes .dish-vote{display:inline-flex;align-items:center;gap:.3rem;padding:.18rem .4rem .18rem .2rem;min-width:42px;min-height:36px;font-size:.875rem;font-weight:650;white-space:nowrap;background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:10px}
.dish-vote[data-vote="1"]{--vote-icon:#11634a;--vote-tint:#dff5eb;--vote-solid:#11634a}
.dish-vote[data-vote="-1"]{--vote-icon:#a1273c;--vote-tint:#ffe8ee;--vote-solid:#a1273c}
:root[data-theme=dark] .dish-vote[data-vote="1"]{--vote-icon:#a3f0d3;--vote-tint:#173d32}
:root[data-theme=dark] .dish-vote[data-vote="-1"]{--vote-icon:#ffc0cc;--vote-tint:#502735}
.dish-vote-icon{display:grid;place-items:center;flex:none;width:24px;height:24px;border-radius:7px;background:var(--vote-tint);color:var(--vote-icon);box-shadow:inset 0 1px 1px #fff3}
.dish-vote-icon::before{content:'';width:13px;height:14px;background:currentColor;clip-path:polygon(50% 0,100% 45%,85% 61%,62% 39%,62% 100%,38% 100%,38% 39%,15% 61%,0 45%)}
.dish-vote[data-vote="-1"] .dish-vote-icon::before{transform:rotate(180deg)}
.dish-votes .dish-vote[aria-pressed=true]{border-color:var(--vote-icon);background:var(--vote-tint)}
.dish-vote[aria-pressed=true] .dish-vote-icon{background:var(--vote-solid);color:white}
.dish-vote-count{font-variant-numeric:tabular-nums}

.attendance-day{display:grid;gap:.25rem;max-width:14rem}
.attendance-schedule{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.6rem}
.attendance-slot{display:flex;align-items:end;flex-wrap:wrap;gap:.5rem}
.attendance-slot label{display:grid;gap:.2rem;font-size:.875rem}
.attendance-slot button[aria-pressed=true]{background:var(--accent);color:var(--panel)}
details.card>summary{cursor:pointer;font-weight:700}
details.card>.form{margin-top:.75rem}
