@font-face { font-family: Source Sans; src: url('/brand/source-sans-regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Source Sans; src: url('/brand/source-sans-semibold.ttf') format('truetype'); font-weight: 600 800; font-display: swap; }
:root { --paper:#f7f4ee; --warm:#f2eee7; --sand:#d8c3a5; --slate:#58636e; --ink:#2f3640; --blue:#2f5da8; --white:#fff; --danger:#b24a4a; color-scheme:light; }
* { box-sizing:border-box; }
[hidden] { display:none !important; }
body { margin:0; background:var(--paper); color:var(--ink); font:1rem/1.5 'Source Sans',system-ui,sans-serif; }
.masthead { border-bottom:1px solid var(--sand); background:var(--paper); }
.masthead-inner, main { max-width:70rem; margin-inline:auto; padding-inline:clamp(1rem,4vw,3rem); }
.masthead-inner { min-height:4.6rem; display:flex; align-items:center; justify-content:space-between; gap:1rem; }
.masthead img { display:block; max-width:34%; height:auto; }
.wordmark { font-size:1.55rem; font-weight:600; line-height:1; }
main { padding-block:clamp(1.5rem,5vw,4rem); }
h1, h2, h3, p { margin:0; }
h1 { font-size:clamp(2.2rem,5vw,4.3rem); font-weight:600; line-height:1.06; letter-spacing:-.035em; }
h2 { font-size:1.4rem; line-height:1.2; }
h3 { font-size:1.1rem; line-height:1.3; }
.connection { display:grid; grid-template-columns:minmax(0,1fr) minmax(18rem,25rem); align-items:center; gap:clamp(2rem,6vw,5rem); padding-block:clamp(.5rem,7vw,5rem); }
.intro p { max-width:32rem; margin-top:1.2rem; color:var(--slate); font-size:1.2rem; }
.panel { background:var(--white); border:1px solid var(--sand); border-radius:.75rem; overflow-wrap:anywhere; }
.signin { display:grid; gap:.65rem; padding:clamp(1.15rem,3vw,2rem); }
.signin h2 { margin-bottom:.5rem; }
label, button, nav a { font-weight:600; }
input, button { min-height:2.8rem; border:1px solid var(--slate); border-radius:.4rem; font:inherit; color:inherit; }
input { width:100%; padding:.5rem .7rem; background:var(--white); margin-bottom:.35rem; }
button { padding:.45rem .85rem; font-weight:600; background:var(--white); cursor:pointer; }
button:hover:not(:disabled) { background:var(--warm); }
button:disabled { cursor:wait; opacity:.65; }
.primary, .primary:hover:not(:disabled), .days button[aria-pressed=true] { background:var(--blue); border-color:var(--blue); color:white; }
.primary { margin-top:.35rem; }
a { color:var(--blue); text-underline-offset:.2em; }
:focus-visible { outline:3px solid var(--blue); outline-offset:3px; }
.skip { position:absolute; left:1rem; top:-5rem; background:white; padding:.65rem; z-index:1; }
.skip:focus { top:.5rem; }
.toolbar, nav, .actions, .days { display:flex; align-items:center; flex-wrap:wrap; gap:.5rem; }
.toolbar { justify-content:space-between; border-bottom:1px solid var(--sand); padding-bottom:1rem; }
nav a { padding:.55rem .65rem; min-height:2.75rem; text-decoration:none; color:var(--ink); border-bottom:3px solid transparent; }
nav a[aria-current] { color:var(--blue); border-color:var(--blue); }
.section-heading { display:flex; align-items:baseline; flex-wrap:wrap; justify-content:space-between; gap:.6rem 1rem; margin-block:1.6rem 1rem; }
.section-heading h1 { font-size:clamp(2rem,5vw,3.4rem); }
#updated, .meta { color:var(--slate); }
.days { margin-bottom:.9rem; }
.week-controls { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:.6rem 1rem; margin-bottom:.9rem; }
#week-label { font-weight:600; }
.days button { min-width:3.4rem; }
.records { list-style:none; margin:0; padding:0; }
.record { display:grid; grid-template-columns:minmax(6rem,auto) 1fr; align-items:start; gap:.5rem 1rem; padding:.9rem 1.15rem; }
.record + .record { border-top:1px solid var(--warm); }
.record.message { display:block; }
.message button { margin-top:.65rem; }
.message-detail { padding:1rem 1.15rem; }
.detail-heading { display:flex; justify-content:space-between; align-items:start; flex-wrap:wrap; gap:.6rem 1rem; }
#message-body { white-space:pre-wrap; margin-top:1rem; }
.record p + p { margin-top:.3rem; }
.record time { font-variant-numeric:tabular-nums; }
.grade { font-size:1.4rem; font-weight:700; }
.message-tools { display:flex; gap:.7rem 1rem; flex-wrap:wrap; padding:.8rem 1.15rem; border-bottom:1px solid var(--sand); }
.message-tools label { display:inline-flex; align-items:center; gap:.35rem; min-height:2.75rem; cursor:pointer; }
.message-tools input { width:1.15rem; min-height:1.15rem; margin:0; accent-color:var(--blue); }
.message-tools > span, .message-tools > a { align-self:center; }
.tag { display:inline-block; background:var(--warm); color:var(--ink); border-radius:.3rem; padding:.1rem .45rem; margin-top:.3rem; font-size:.9rem; font-weight:600; }
.empty { padding:1.15rem; }
.warning { color:var(--danger); margin-block:.55rem; }
.status { margin-top:.7rem; color:var(--slate); }
.status:empty { display:none; }
@media (max-width:44rem) { .connection { grid-template-columns:1fr; } .intro br { display:none; } .toolbar { align-items:flex-start; } }
@media (max-width:24rem) { .record { grid-template-columns:1fr; gap:.2rem; } nav { gap:0; } nav a { padding-inline:.45rem; } }

.masthead { background:var(--white); border-color:#e6dfd3; }
.masthead-inner { min-height:4.35rem; }
.wordmark { color:var(--ink); font-size:1.72rem; font-weight:700; letter-spacing:-.04em; }
.connection { gap:clamp(1.5rem,5vw,4rem); padding-block:clamp(1rem,7vw,6rem); }
.intro { padding:clamp(1.6rem,5vw,3.5rem); color:var(--white); background:var(--blue); border-radius:1.05rem; }
.intro h1 { font-size:clamp(2.3rem,5vw,4.1rem); text-wrap:balance; }
.intro p { color:#f1f5ff; margin-top:1rem; }
.intro button { margin-top:1.35rem; color:var(--ink); border-color:transparent; }
.panel { border-color:#e2dacd; box-shadow:0 2px 10px #2f364009; }
.signin { padding:clamp(1.3rem,4vw,2.25rem); }
.signin h2 { font-size:1.6rem; margin-bottom:.85rem; }
.remember { display:flex; align-items:center; gap:.65rem; min-height:2.8rem; cursor:pointer; }
.remember input { width:1.1rem; min-height:1.1rem; margin:0; accent-color:var(--blue); }
.toolbar { gap:.65rem; }
.toolbar nav { gap:.25rem; }
nav a { border:0; border-radius:.5rem; min-height:2.8rem; }
nav a[aria-current] { color:var(--blue); background:#e7edf8; box-shadow:inset 0 -3px var(--blue); }
.toolbar .actions button, .week-controls button { border-color:#b5b0a8; }
.section-heading { border-bottom:1px solid #e2dacd; padding-bottom:1rem; margin-block:0 1rem; }
.section-heading h1 { font-size:clamp(2.2rem,5vw,3.45rem); }
.week-controls { padding:.65rem 0; gap:.5rem; }
.days { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); align-items:stretch; gap:.38rem; }
.days button { min-width:0; padding-inline:.25rem; border-color:#b5b0a8; white-space:normal; }
.record { grid-template-columns:minmax(6.6rem,auto) minmax(0,1fr); padding:1rem 1.2rem; }
.record time { color:var(--blue); font-weight:600; }
.record .grade { justify-self:start; min-width:2.5rem; padding:.05rem .6rem; border-radius:.45rem; text-align:center; background:#e7edf8; color:#234778; }
.tag { color:#284477; background:#e7edf8; }
.message-detail { padding:clamp(1rem,4vw,1.7rem); }
.message-detail #message-body { max-width:65ch; font-size:1.1rem; }
@media (min-width:48rem) {
  #dashboard { display:grid; grid-template-columns:11rem minmax(0,1fr); align-items:start; gap:clamp(2rem,5vw,4rem); }
  .toolbar, .toolbar nav, .toolbar .actions { display:flex; flex-direction:column; align-items:stretch; }
  .toolbar { padding:0 1rem 0 0; border:0; border-right:1px solid #e2dacd; }
  nav a[aria-current] { box-shadow:inset 3px 0 var(--blue); }
  .toolbar .actions { margin-top:1rem; }
}
@media (max-width:47.99rem) {
  .section-heading { margin-top:1rem; }
  .week-controls .actions { width:100%; }
  .week-controls .actions button { flex:1; }
  .days { grid-template-columns:repeat(7,minmax(0,1fr)); }
  .days button { font-size:.875rem; line-height:1.2; }
}
@media (max-width:24rem) { .record { grid-template-columns:1fr; } }
