/* Family Scoreboard — navy/gold, bold, teen-friendly */
:root {
  --navy: #1b2a4e;
  --navy2: #24365e;
  --gold: #c59a2e;
  --gold2: #e3b94e;
  --bg: #f4f2ec;
  --card: #ffffff;
  --ink: #232323;
  --muted: #6b6b6b;
  --green: #2e9e5b;
  --red: #d64545;
  --orange: #e07b2a;
  --blue: #2a7de0;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}
main { max-width: 1080px; margin: 0 auto; padding: 16px 16px 60px; }

/* ---- sticky wrap: banner + nav tabs stay on scroll ---- */
.sticky-wrap {
  position: sticky; top: 0; z-index: 200;
}
/* ---- motto banner: fall video over light-blue sky ---- */
.motto {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #8ecdf0 0%, #b5ddf7 55%, #d9f0fd 100%);
  color: var(--navy); text-align: center; padding: 22px 20px 20px;
  border-bottom: 0;
}
/* lying tracker lives inside the sticky banner, right-hand side */
.motto .lying-tracker {
  position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  z-index: 3; margin: 0; max-width: 34vw;
  padding: 10px 15px;
}
.motto .lying-title { font-size: .95rem; }
.motto .lying-boxes { margin: 7px 0; gap: 7px; }
.motto .lie-box { width: 36px; height: 36px; font-size: 1.25rem; }
.motto .lying-sub { font-size: .85rem; }
.motto-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; pointer-events: none;
}
.motto-shade {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, rgba(243,250,255,.9) 0%, rgba(243,250,255,.62) 55%, rgba(243,250,255,.3) 100%);
}
.motto-text, .motto-attr { position: relative; z-index: 1; }
.motto-text { font-size: 1.4rem; font-weight: 800; letter-spacing: .2px; color: #152238;
  text-shadow: 0 1px 3px rgba(255,255,255,.85), 0 0 22px rgba(255,255,255,.55); }
.motto-attr { margin-top: 8px; color: #7a3f12; font-size: .92rem; font-style: italic; font-weight: 700;
  text-shadow: 0 1px 2px rgba(255,255,255,.7); }

/* ---- banner name (cursive, iPhone-hello write-on) ---- */
.banner-name {
  position: relative; z-index: 2;
  font-family: 'Snell Roundhand', 'Brush Script MT', 'Segoe Script', 'Apple Chancery', cursive;
  font-size: 4rem; font-weight: 700;
  text-shadow: 0 2px 12px rgba(20,40,70,.55), 0 1px 3px rgba(20,40,70,.6);
  letter-spacing: 1px;
  animation: write-on 2.2s ease-out both;
}
.banner-name.name-xavier { color: #dc2626; }
.banner-name.name-blaise { color: #2563eb; }
.banner-name.name-admin { color: #228B22; }
.banner-name.name-neika { color: #9333ea; }
.banner-name.name-other { color: #fff; }
@keyframes write-on {
  from { opacity: 0; clip-path: inset(0 100% 0 0); }
  to { opacity: 1; clip-path: inset(0 0 0 0); }
}
@media (prefers-reduced-motion: reduce) { .banner-name { animation: none; } }

/* ---- motto line between topbar and content ---- */
.motto-line {
  text-align: center; padding: 14px 20px 10px;
  font-size: 1.05rem; color: var(--navy);
}
.motto-line .motto-text { display: block; font-weight: 700; font-style: italic; }
.motto-line .motto-attr { display: block; margin-top: 6px; font-weight: 600; color: #8a5a2b; }

/* ---- nav: light bar with fall accent line ---- */
.topbar nav {
  background: none; padding: 0; border: 0;
  font-size: .95rem; display: flex; gap: 6px 14px; align-items: center; flex: 1;
  flex-wrap: wrap;
}
.topbar nav a { color: var(--navy); text-decoration: none; font-weight: 600; white-space: nowrap; }
.topbar nav a:hover { color: #c05621; text-decoration: underline; }
.topbar nav .who { margin-left: auto; font-weight: 700; color: #c05621; white-space: nowrap; }
@media (max-width: 760px) {
  .topbar { flex-wrap: wrap; gap: 8px; padding: 8px 12px; }
  .topbar nav { font-size: .85rem; gap: 4px 10px; }
  .season-inline { font-size: .8rem; }
}

/* ---- lying tracker: sticky below the banner (styled below) ---- */
.lying-tracker {
  background: #fff8e6; border: 2px solid var(--gold); border-radius: 10px;
  padding: 8px 12px; text-align: center; box-shadow: 0 2px 10px rgba(0,0,0,.18);
}
.lying-title { font-weight: 800; font-size: .8rem; color: var(--red); }
.lying-boxes { display: flex; gap: 6px; justify-content: center; margin: 6px 0; }
.lie-box {
  width: 30px; height: 30px; border: 2px solid var(--red); border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1.1rem; color: var(--red); background: #fff;
}
.lie-box.filled { background: #ffe3e3; animation: xpop .35s ease; }
@keyframes xpop { 0% { transform: scale(.4); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
.lie-count { font-weight: 800; color: var(--red); align-self: center; }
.lying-sub { font-size: .8rem; color: var(--muted); }
.lying-inline .lie-box { width: 22px; height: 22px; font-size: .85rem; }

/* ---- week header: sibling showdown ---- */
.week-head { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 6px 0 18px; }
.week-card {
  background: linear-gradient(160deg, var(--navy), var(--navy2));
  color: #fff; border-radius: 14px; padding: 16px 18px;
  border: 3px solid transparent;
  box-shadow: 0 4px 14px rgba(27,42,78,.25);
}
.week-card.me { border-color: var(--gold); box-shadow: 0 4px 18px rgba(197,154,46,.45); }
.wc-name { font-size: 1.25rem; font-weight: 800; margin-bottom: 10px; }
.wc-row { display: flex; gap: 22px; }
.wc-stat { text-align: center; }
.wc-num { display: block; font-size: 1.9rem; font-weight: 900; color: var(--gold2); }
.wc-lbl { font-size: .75rem; text-transform: uppercase; letter-spacing: 1px; opacity: .85; }
.wc-sub { margin-top: 8px; font-size: .9rem; opacity: .95; }
.wc-sub.lies { color: #ffb3b3; font-weight: 700; }
.wc-date { font-size: .85rem; opacity: .75; margin: -6px 0 10px; }

/* ---- score bars (dashboard) ---- */
.sbar-row { display: flex; align-items: center; gap: 10px; margin: 13px 0; }
.sbar-row.has-marks { margin-top: 24px; }
.sbar-lbl { width: 112px; flex-shrink: 0; font-size: .72rem; text-transform: uppercase;
  letter-spacing: 1.2px; opacity: .88; font-weight: 700; }
.sbar-track { position: relative; flex: 1; background: rgba(255,255,255,.16); border-radius: 999px;
  height: 18px; overflow: visible; box-shadow: inset 0 1px 3px rgba(0,0,0,.25); }
.sbar-fill { height: 100%; border-radius: 999px; transition: width .45s ease; }
.sbar-fill.green { background: linear-gradient(90deg, #16a34a, #4ade80); }
.sbar-fill.amber { background: linear-gradient(90deg, #d97706, #fbbf24); }
.sbar-fill.red { background: linear-gradient(90deg, #dc2626, #f87171); }
.sbar-fill.bonus { background: linear-gradient(90deg, #b8860b, #f5d76e); }
.sbar-val { min-width: 54px; text-align: right; font-weight: 800; font-size: .98rem; }
.sbar-outcome { min-width: 170px; max-width: 170px; font-size: .82rem; font-weight: 700;
  color: rgba(255,255,255,.92); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sbar-mark { position: absolute; top: -3px; bottom: -3px; width: 2px; background: rgba(255,255,255,.8); }
.sbar-mark span { position: absolute; top: -17px; left: 50%; transform: translateX(-50%);
  font-size: .65rem; font-weight: 800; color: rgba(255,255,255,.9); }
@media (max-width: 760px) { .sbar-lbl { width: 92px; } .sbar-val { min-width: 46px; } }

/* ---- combined grades bar with threshold markers ---- */
.gbar-wrap { margin: 12px 0 4px; }
.gbar-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.gbar-head .gbar-track { flex: 1; }
.gbar-head .sbar-val { font-size: 1.15rem; }
.gbar-track { position: relative; background: rgba(255,255,255,.16); border-radius: 999px;
  height: 18px; box-shadow: inset 0 1px 3px rgba(0,0,0,.25); overflow: visible; }
.gbar-track.gbar-short { max-width: 68%; }
.gbar-fill { height: 100%; border-radius: 999px; transition: width .45s ease; }
.gbar-fill.g-high { background: linear-gradient(90deg, #16a34a, #4ade80); }
.gbar-fill.g-mid { background: linear-gradient(90deg, #d97706, #fbbf24); }
.gbar-fill.g-low { background: linear-gradient(90deg, #dc2626, #f87171); }
.gbar-mark { position: absolute; top: 0; bottom: 0; width: 3px; background: rgba(20,30,50,.75); }
.gbar-mark span { position: absolute; top: -20px; left: 50%; transform: translateX(-50%);
  font-size: .8rem; font-weight: 800; color: var(--navy); }
.gbar-outcome { min-width: 170px; max-width: 170px; font-size: .82rem; font-weight: 800;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gbar-outcome.oc-high { color: #86efac; }
.gbar-outcome.oc-mid { color: #fcd34d; }
.gbar-outcome.oc-low { color: #fca5a5; }
.week-card .gbar-mark { background: rgba(255,255,255,.8); }
.week-card .gbar-mark span { color: #fff; }
.gbar-head.has-gmarks { margin-top: 22px; }

/* ---- panels & grid ---- */
.panel {
  background: var(--card); border-radius: 14px; padding: 18px;
  margin-bottom: 16px; box-shadow: 0 2px 8px rgba(0,0,0,.07);
  border-top: 4px solid var(--gold);
}
.panel h2 { margin: 0 0 10px; color: var(--navy); font-size: 1.2rem; }
.panel h3 { color: var(--navy); margin: 14px 0 6px; }
.sec-title { color: var(--navy); margin: 26px 0 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .grid2, .week-head { grid-template-columns: 1fr; } .motto { padding-right: 20px; } .lying-tracker { margin-left: auto; margin-right: 8px; } }
.hint { color: var(--muted); font-size: .9rem; }
.alert { background: #ffe9e9; border: 1px solid var(--red); color: #8f1d1d; padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; }
.alert.ok { background: #e6f6ec; border-color: var(--green); color: #14532d; }

/* ---- checklist ---- */
.win-open { color: var(--green); font-weight: 800; font-size: .85rem; }
.win-closed { color: var(--muted); font-weight: 600; font-size: .85rem; }
.pbar { background: #e8e4d8; border-radius: 999px; height: 16px; overflow: hidden; margin: 8px 0 4px; }
.pfill {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--gold2), var(--gold));
  transition: width .45s cubic-bezier(.2,.9,.3,1.2);
}
.pbar.slim { height: 10px; display: inline-block; width: 120px; vertical-align: middle; }
.pcount { font-size: .9rem; color: var(--muted); margin-bottom: 8px; }
.pnum { font-weight: 800; color: var(--navy); font-size: 1.05rem; }
.check-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 12px; border-radius: 10px; cursor: pointer;
  border: 1px solid transparent; transition: background .15s;
}
.check-item:hover { background: #faf7ee; }
.check-item.done { background: #eef7f0; }
.check-item.done .ci-text strong { text-decoration: line-through; color: var(--muted); }
.check-item.locked { opacity: .55; cursor: not-allowed; }
.check-item input { display: none; }
.check-item .box {
  flex: 0 0 26px; height: 26px; border: 3px solid var(--navy); border-radius: 8px;
  background: #fff; margin-top: 2px; position: relative; transition: transform .12s;
}
.check-item.done .box { background: var(--green); border-color: var(--green); animation: pop .3s ease; }
.check-item.done .box::after {
  content: "✓"; color: #fff; font-weight: 900; font-size: 1rem;
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
@keyframes pop { 0% { transform: scale(.6); } 60% { transform: scale(1.2); } 100% { transform: scale(1); } }
.ci-text strong { display: block; font-size: 1rem; }
.ci-text small { color: var(--muted); font-size: .85rem; }

/* ---- typing blocks ---- */
.target-text {
  background: #f6f1e3; border-left: 4px solid var(--gold);
  padding: 10px 14px; border-radius: 0 8px 8px 0; font-style: italic;
}
.typebox {
  width: 100%; font-size: 1rem; padding: 10px; border-radius: 8px;
  border: 2px solid #cfc9b8; font-family: inherit;
}
.typebox:focus { border-color: var(--navy); outline: none; }
.type-block { margin-bottom: 14px; }
.tb-label { font-weight: 700; color: var(--navy); margin-bottom: 6px; text-transform: capitalize; }
.match-hint { min-height: 1.2em; font-size: .85rem; margin: 4px 0; }
.match-hint.good { color: var(--green); font-weight: 700; }
.match-hint.bad { color: var(--muted); }

/* ---- rewards ---- */
.reward-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 10px 0; }
.reward {
  background: linear-gradient(160deg, #fffdf6, #fbf3dd);
  border: 2px solid var(--gold); border-radius: 12px; padding: 12px; text-align: center;
}
.rw-num { display: block; font-size: 1.6rem; font-weight: 900; color: var(--navy); }
.rw-lbl { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.grades-line { margin: 8px 0; }
.pun-list { margin: 6px 0; padding-left: 20px; }
.pun-list li { margin: 4px 0; }

/* ---- streaks & badges ---- */
.streak-line { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; margin: 8px 0; }
.flame { font-size: 1.8rem; }
.streak-num { font-size: 2rem; font-weight: 900; color: var(--orange); }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.badge {
  background: linear-gradient(135deg, var(--gold2), var(--gold));
  color: var(--navy); font-weight: 800; padding: 8px 14px; border-radius: 999px;
  box-shadow: 0 2px 6px rgba(197,154,46,.4); animation: pop .4s ease;
}

/* ---- tables, forms, buttons ---- */
.tbl { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: .95rem; }
.tbl th, .tbl td { padding: 8px 10px; border-bottom: 1px solid #e5e0d2; text-align: left; }
.tbl th { color: var(--navy); }
form label { display: block; margin: 8px 0; font-weight: 600; }
form input, form select, form textarea {
  width: 100%; padding: 9px 10px; margin-top: 4px; border-radius: 8px;
  border: 2px solid #cfc9b8; font-size: 1rem; font-family: inherit;
}
form input:focus, form select:focus, form textarea:focus { border-color: var(--navy); outline: none; }
.chk { display: flex !important; align-items: center; gap: 8px; font-weight: 600; }
.chk input { width: auto; }
.btn {
  background: var(--navy); color: #fff; border: none; border-radius: 10px;
  padding: 10px 20px; font-size: 1rem; font-weight: 700; cursor: pointer; margin-top: 8px;
}
.btn:hover { background: var(--navy2); }
.btn.big { width: 100%; font-size: 1.15rem; padding: 12px; }
.btn.small { padding: 6px 12px; font-size: .85rem; }
.btn.warn { background: var(--orange); }
.btn.danger { background: var(--red); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.week-nav { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }

/* ---- monthly reward criteria ---- */
.crit-list { margin: 8px 0 2px; padding-left: 22px; }
.crit-list li { margin: 5px 0; }
.crit { font-weight: 900; font-size: 1.05rem; }
.crit.ok { color: var(--green); }
.crit.no { color: var(--red); }

/* ---- login ---- */
.login-body { background: linear-gradient(160deg, var(--navy), #0f1a36); min-height: 100vh; }
.login-body .motto { height: 180px; max-height: 180px; overflow: hidden; }
.login-main { display: flex; justify-content: center; padding: 40px 16px; }
.login-card {
  background: #fff; border-radius: 18px; padding: 34px; width: 380px; max-width: 100%;
  border-top: 6px solid var(--gold); box-shadow: 0 10px 40px rgba(0,0,0,.35);
}
.login-card h1 { color: var(--navy); margin: 0 0 4px; }
.tagline { color: var(--muted); margin: 0 0 18px; font-style: italic; }

/* ---- liturgical season bar ---- */
.topbar {
  background: #fffdf8; color: var(--navy);
  border-top: 5px solid var(--season, #2e7d32);
  border-bottom: 5px solid var(--season, #2e7d32);
  padding: 8px 18px; display: flex; align-items: center; gap: 18px;
}
.topbar nav { display: flex; gap: 14px; align-items: center; font-size: .95rem; flex: 1; }
.season-inline {
  font-size: .88rem; font-weight: 700; letter-spacing: .4px; white-space: nowrap;
}
.season-sym { margin-right: 6px; }

/* ---- saint card: reverent, not childish ---- */
.saint-card { border-top: 4px solid var(--gold); background: linear-gradient(180deg, #fffdf6, #ffffff); }
.saint-eyebrow {
  color: var(--gold); font-weight: 800; font-size: .78rem;
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 4px;
}
.saint-name { color: var(--navy); font-size: 1.5rem; margin: 0 0 2px; }
.saint-feast { color: var(--muted); font-style: italic; font-size: .9rem; margin-bottom: 10px; }
.saint-story { font-size: 1.02rem; line-height: 1.55; }
.saint-story::first-letter {
  font-size: 2.6em; font-weight: 800; color: var(--navy);
  float: left; line-height: .9; padding-right: 8px;
}
.saint-prayer { border-left-color: var(--navy); background: #f4f1e6; }

/* ---- verse card ---- */
.verse-card { border-top: 4px solid var(--navy); }

/* ---- contribution-grid day tiles ---- */
.daygrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 10px 0 4px; }
.daytile {
  border-radius: 8px; padding: 8px 4px; text-align: center; min-height: 56px;
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
  border: 1px solid rgba(27,42,78,.12);
}
.dt-day { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; opacity: .75; }
.dt-pct { font-size: .95rem; font-weight: 900; }
.daytile.g0 { background: #ece8db; color: #8a8574; }
.daytile.g1 { background: #f3e3b3; color: #6b5a1e; }
.daytile.g2 { background: #ecd28a; color: #5c4a15; }
.daytile.g3 { background: #dfc06a; color: #4a3a10; }
.daytile.g4 { background: #c9a93f; color: #fff; }
.daytile.g5 { background: linear-gradient(135deg, var(--gold2), var(--gold)); color: var(--navy); border-color: var(--gold); }
.daytile.future { background: #f7f5ef; color: #b9b3a2; border-style: dashed; }

/* ---- leader highlight ---- */
.week-card.leader {
  border-color: var(--gold2);
  box-shadow: 0 0 0 3px var(--gold2), 0 6px 22px rgba(197,154,46,.55);
}
.lead-tag {
  background: var(--gold2); color: var(--navy); font-size: .68rem; font-weight: 900;
  padding: 2px 10px; border-radius: 999px; letter-spacing: 1px; vertical-align: middle;
}

/* ---- reward anticipation ---- */
.next-tier {
  margin-top: 8px; padding: 8px 12px; background: #f6f1e3; border-radius: 8px;
  font-size: .92rem; color: var(--navy); font-weight: 600;
  border-left: 3px solid var(--gold);
}

/* ---- admin grouping ---- */
.sec-sub { color: var(--navy); margin: 22px 0 10px; font-size: 1.05rem; }

/* ---- perfect checklist celebration ---- */
.perfect-note {
  display: none; margin-top: 8px; padding: 10px 14px; border-radius: 10px;
  background: linear-gradient(135deg, #e6f6ec, #d3efdd); color: #14532d;
  font-weight: 800; text-align: center; animation: pop .4s ease;
}
.checklist.perfect .perfect-note { display: block; }
.checklist.perfect .pbar { box-shadow: 0 0 0 2px var(--green); }

/* ---- grades tab ---- */
.grade-meta { margin: 2px 0 8px; font-weight: 700; color: var(--navy); }
.live-tag { display: inline-block; background: #e6f6ec; color: #14532d; border: 1px solid var(--green); border-radius: 20px; padding: 2px 10px; font-size: .8rem; font-weight: 800; }
.locked-tag { display: inline-block; background: #eef1f7; color: var(--navy); border: 1px solid var(--navy); border-radius: 20px; padding: 2px 10px; font-size: .8rem; font-weight: 800; }
.tbl.subj td:first-child { font-weight: 600; }
.grade-badge { display: inline-block; min-width: 34px; text-align: center; font-weight: 900; font-size: 1.05rem; border-radius: 8px; padding: 3px 10px; color: #fff; }
.grade-badge.ga { background: var(--green); }
.grade-badge.gb { background: var(--blue); }
.grade-badge.gc { background: var(--orange); }
.grade-badge.gd, .grade-badge.gf { background: var(--red); }
.veto-flag { font-size: .8rem; font-weight: 800; color: var(--red); margin-left: 6px; white-space: nowrap; }
.trend { font-weight: 900; font-size: 1.1rem; }
.trend.up { color: var(--green); }
.trend.down { color: var(--red); }
.trend.same { color: var(--muted); }
.trend.none { color: #c9c2ae; }
textarea { width: 100%; font: inherit; padding: 8px; border: 1px solid #d8d2bd; border-radius: 8px; margin: 6px 0; }
code { background: #eef1f7; padding: 2px 6px; border-radius: 6px; font-size: .85rem; word-break: break-all; }

/* ---- lying tracker: sticky, just beneath the banner ---- */

/* ---- neika dashboard head ---- */
.neika-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.neika-head .sec-title { margin: 26px 0 12px; }
.neika-head .btn { margin-top: 0; }

/* ---- motto banner: responsive + reduced motion ---- */
@media (max-width: 760px) {
  .motto { padding: 26px 14px 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
  .motto-text { font-size: 1.15rem; }
  .motto .lying-tracker { position: static; transform: none; max-width: 100%; padding: 6px 12px; }
  .motto .lying-title { font-size: .85rem; }
  .motto .lie-box { width: 30px; height: 30px; font-size: 1.1rem; }
  .banner-name { font-size: 2.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .motto-video { display: none; }
}

/* ---- monthly rewards & weekly punishments ---- */
.catalog { columns: 2; column-gap: 26px; margin: 8px 0; padding-left: 20px; }
.catalog li { margin: 4px 0; break-inside: avoid; }
.assign-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 8px 10px; border: 1px solid var(--line, #e2ddd2); border-radius: 8px;
  margin: 6px 0; background: #fffdf8; }
.assign-row .assign-text { font-weight: 700; flex: 1; min-width: 180px; }
.assign-row.done { opacity: .62; }
.assign-row.done .assign-text { text-decoration: line-through; }
.assign-alert { display: flex; gap: 14px; flex-wrap: wrap; }
.assign-alert a { color: inherit; font-weight: 700; }
@media (max-width: 760px) { .catalog { columns: 1; } }
/* ---- manual grades entry: subject rows ---- */
.grade-row { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.grade-subj { flex: 1; font-weight: 600; white-space: nowrap; }
.grade-row input[name^="grade"] { width: 56px; flex: none; text-align: center; }
.grade-row input[name^="pct"] { width: 72px; flex: none; text-align: center; }
.grade-actions { display: flex; gap: 10px; margin-top: 12px; align-items: center; }
