/* Signed-in pages (2026-11-15): dashboard = home page, Messages, My assignments and marks, one assignment.
   Loaded by account/index.php (page_start) after the site styles. Same look as the subject pages (css/subject-page.css). */

/* ---------- shared ---------- */
.account-main:has(.dh), .account-main:has(.chat-page), .account-main:has(.aw) { max-width: var(--container, 1200px); }
.dh [hidden], .chat-page [hidden], .aw [hidden] { display: none !important; }
.dash-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dh-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 20px; flex-wrap: wrap; margin: 0 0 20px; }
.dh-head .eyebrow { margin: 0; }
.dh-head .eyebrow a { color: inherit; text-decoration: none; }
.dh-head .eyebrow a:hover { text-decoration: underline; }
.dh-head h1 { font-size: clamp(2rem, 4.2vw, 2.9rem); line-height: 1.05; margin: .12em 0 0; overflow-wrap: anywhere; }
.dh-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.dh-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 13px; font-weight: 600; font-size: .9rem; color: var(--ink); text-decoration: none; white-space: nowrap; }
.dh-chip.is-on { border-color: #e8b48f; background: #fff5ec; }
.dh-chip.is-plan { background: var(--navy); border-color: var(--navy); color: #fff; }
.dh-chip.is-plan:hover { background: var(--navy-deep, #102a3c); color: #fff; }
.dh-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm, 0 1px 2px #102a3c0d); padding: 18px 20px; margin: 0 0 16px; }
.dh-card h2, .dh-title h2 { font-size: 1.35rem; line-height: 1.2; margin: 0; }
.dh-card-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.dh-card-h a, .dh-title a { color: var(--accent); font-weight: 600; font-size: .92rem; text-decoration: none; white-space: nowrap; }
.dh-card-h a:hover, .dh-title a:hover { text-decoration: underline; }
.dh-title { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 26px 0 12px; }
.dh-small { font-size: .88rem; }
.dh-k { display: block; font-weight: 700; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.dh-bar { display: block; height: 7px; border-radius: 99px; background: var(--line); overflow: hidden; }
.dh-bar i { display: block; height: 100%; border-radius: 99px; background: var(--c, var(--navy)); }
.dh-ic { width: 32px; height: 32px; flex: none; border-radius: 9px; background: var(--accent-tint, #f6e5df); color: var(--accent); display: grid; place-items: center; font-size: 1rem; line-height: 1; }
.dh-ring { --p: 0; width: 86px; height: 86px; border-radius: 50%; flex: none; display: grid; place-items: center; background: conic-gradient(#f0a58f calc(var(--p) * 1%), #ffffff26 0); font-weight: 700; color: #fff; }
.dh-ring span { width: 68px; height: 68px; border-radius: 50%; background: var(--navy); display: grid; place-items: center; font-size: .95rem; font-variant-numeric: tabular-nums; }
.dh-stat { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0; padding: 9px 0; border-top: 1px solid var(--line); font-size: .95rem; }
.dh-stat.is-first { border-top: 0; }
.dh-stat:last-child { padding-bottom: 0; }
.dh-stat > span { min-width: 0; overflow-wrap: anywhere; }
.dh-stat strong { color: var(--navy); white-space: nowrap; font-variant-numeric: tabular-nums; }
.dh-stat a { color: var(--ink); text-decoration: none; font-weight: 600; }
.dh-stat a:hover { text-decoration: underline; }
.dh-stat small { display: block; color: var(--muted); font-size: .84rem; font-weight: 400; }

/* ---------- dashboard ---------- */
.dh-quick, .dh-tools { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.dh-tool { flex: 1 1 150px; display: flex; align-items: center; gap: 9px; min-height: 52px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 9px 12px; font-weight: 600; font-size: .95rem; color: var(--navy); text-decoration: none; box-shadow: var(--shadow-sm, 0 1px 2px #102a3c0d); }
.dh-tool:hover { border-color: var(--navy); color: var(--navy); }
.dh-tl { white-space: nowrap; }
.dh-tl small { color: var(--muted); font-weight: 400; }
.dh-tool .account-badge { margin-left: auto; }
.dh-tools .dh-tool { flex: 0 1 calc(25% - 7.5px); }
.dh-tools .dh-ic { background: #eef1f4; color: var(--navy); }
.dh-sec { margin: 4px 0 8px; font-weight: 700; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.dh-need { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 0 0 20px; }
.dh-need a { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; text-decoration: none; color: var(--muted); box-shadow: var(--shadow-sm, 0 1px 2px #102a3c0d); }
.dh-need a.is-hot { border-color: #e8b48f; background: #fff5ec; }
.dh-need a:hover { border-color: var(--navy); }
.dh-need strong { display: block; font: 600 2rem/1.15 var(--serif); color: var(--navy); }
.dh-need .dh-k { color: var(--muted); }
.dh-need .is-hot .dh-k { color: var(--accent); }

.dh-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); gap: 22px; align-items: start; }
.dh-main, .dh-side { min-width: 0; }
.dh-cont { display: flex; align-items: center; gap: 22px; background: var(--navy); color: #fff; border-radius: 18px; padding: 24px 26px; box-shadow: var(--shadow-md, 0 14px 34px -14px #102a3c47); }
.dh-cont-text { flex: 1; min-width: 0; }
.dh-cont-k { margin: 0; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; opacity: .78; }
.dh-cont h2 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); line-height: 1.2; margin: 3px 0 6px; color: #fff; overflow-wrap: anywhere; }
.dh-cont h2 a { color: #fff; text-decoration: none; }
.dh-cont h2 a:hover { text-decoration: underline; }
.dh-cont p { margin: 0; opacity: .88; font-size: .95rem; }
.dh-cont p a { color: #fff; }
.dh-go { flex: none; background: #f0a58f; color: var(--navy-deep, #102a3c); border-radius: 999px; padding: 11px 20px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.dh-go:hover { background: #f6b9a7; color: var(--navy-deep, #102a3c); }

.dh-subjects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.dh-subj { display: grid; gap: 7px; align-content: start; background: var(--surface); border: 1px solid var(--line); border-top: 5px solid var(--c, var(--navy)); border-radius: 16px; padding: 14px 16px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow-sm, 0 1px 2px #102a3c0d); }
.dh-subj:hover { box-shadow: var(--shadow-md, 0 6px 18px #102a3c1f); color: var(--ink); }
.dh-subj-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 26px; }
.dh-subj-name { font-weight: 700; font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dh-mastery { flex: none; font-size: .72rem; font-weight: 700; border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.dh-mastery.is-good { background: #e3f1e8; color: #23633d; }
.dh-mastery.is-mid { background: #fbf0d9; color: #7a5410; }
.dh-mastery.is-low { background: var(--accent-tint, #f6e5df); color: var(--accent-deep, #933520); }
.dh-subj-next { font-size: .9rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dh-subj-meta { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); }
.dh .dash-more { margin-top: 12px; }

.dh-games { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.dh-game { display: block; border-radius: 16px; overflow: hidden; background: var(--navy); color: #fff; text-decoration: none; box-shadow: var(--shadow-sm, 0 1px 2px #102a3c0d); }
.dh-game:hover { color: #fff; box-shadow: var(--shadow-md, 0 6px 18px #102a3c1f); }
.dh-game img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--navy-deep, #102a3c); }
.dh-game span { display: block; padding: 12px 16px 14px; }
.dh-game strong { display: block; font: 600 1.08rem/1.25 var(--serif); }
.dh-game small { font-size: .85rem; opacity: .82; }

.dh-list { padding-block: 6px; }
.dh-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; }
.dh-row + .dh-row { border-top: 1px solid var(--line); }
.dh-row-t { min-width: 0; }
.dh-row-t a { color: var(--ink); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.dh-row-t a:hover { text-decoration: underline; }
.dh-row-t small { display: block; color: var(--muted); font-size: .86rem; }
.dh-row .btn { flex: none; white-space: nowrap; }

.dh-items { list-style: none; margin: 0; padding: 0; }
.dh-items li { display: grid; gap: 3px; justify-items: start; padding: 11px 0; border-top: 1px solid var(--line); }
.dh-items a { color: var(--ink); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.dh-items a:hover { text-decoration: underline; }
.dh-items small { color: var(--muted); font-size: .86rem; }
.dh-due { font-size: .8rem; font-weight: 700; border-radius: 999px; padding: 2px 10px; background: #eef1f4; color: var(--navy); }
.dh-due.is-late { background: var(--accent-tint, #f6e5df); color: var(--accent-deep, #933520); }
.dh-more { margin: 0; padding: 8px 0 0; border-top: 1px solid var(--line); }
.dh-more a { color: var(--accent); font-weight: 600; text-decoration: none; }
.dh-todo > .muted { margin: 6px 0 0; }

.dh-days { list-style: none; display: flex; gap: 6px; padding: 0; margin: 10px 0 12px; }
.dh-days li { flex: 1; text-align: center; font-size: .75rem; color: var(--muted); }
.dh-days b { display: block; height: 26px; border-radius: 7px; background: var(--line); margin-bottom: 4px; }
.dh-days .is-on b { background: var(--accent); }
.dh-days .is-today b { outline: 2px solid var(--navy); outline-offset: 1px; }
.dh-big { font-size: 1.6rem; font-weight: 700; color: var(--navy); margin: 6px 0; }
.dh-plan .dh-bar { margin: 8px 0; } .dh-plan .dh-bar i { background: var(--accent); }
.dh-plan p { margin: .4em 0; }
.dh-files p { margin: 0; }
.dash-public { margin-left: 14px; font-size: .9rem; color: var(--muted); }

@media (max-width: 1000px) {
  .dh-cols { display: flex; flex-direction: column; gap: 0; }
  .dh-main, .dh-side { display: contents; }
  .dh-main > *, .dh-side > * { order: 3; width: 100%; }
  .dh-cols .dh-cont { order: 0; margin-bottom: 16px; }
  .dh-cols .dh-todo { order: 1; }
  .dh-cols .dh-marks { order: 2; }
  .dh-cols .dh-week, .dh-cols .dh-plan, .dh-cols .dh-files { order: 4; margin-top: 16px; margin-bottom: 0; }
  .dh-tools .dh-tool { flex-basis: calc(33.33% - 7px); }
}
@media (max-width: 720px) {
  .dh-subjects, .dh-games { grid-template-columns: minmax(0, 1fr); }
  .dh-game { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; }
  .dh-game img { height: 100%; aspect-ratio: auto; min-height: 72px; }
  .dh-cont { flex-wrap: wrap; gap: 14px; padding: 20px; }
  .dh-ring { width: 64px; height: 64px; } .dh-ring span { width: 50px; height: 50px; font-size: .8rem; }
  .dh-cont-text { flex: 1 1 60%; }
  .dh-go { width: 100%; text-align: center; }
  .dh-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .dh-quick .dh-tool { position: relative; flex-direction: column; justify-content: center; gap: 4px; padding: 10px 4px; text-align: center; font-size: .8rem; min-height: 74px; }
  .dh-quick .dh-tl { white-space: normal; line-height: 1.2; }
  .dh-quick .account-badge { position: absolute; top: 6px; right: 8px; margin: 0; }
  .dh-tools .dh-tool { flex-basis: calc(50% - 5px); }
  .dh-tools .dh-tl { white-space: normal; }
}

/* ---------- messages ---------- */
.chat-head { margin-bottom: 16px; }
.chat { display: grid; grid-template-columns: minmax(250px, 320px) minmax(0, 1fr); height: clamp(460px, calc(100vh - 290px), 760px); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm, 0 1px 2px #102a3c0d); }
.chat-side { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); }
.chat-new { display: flex; gap: 8px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.chat-new select, .chat-new .gselect { flex: 1; min-width: 0; }
.chat-search { margin: 10px 14px 4px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: .92rem; background: var(--paper, #f8f7f2); color: var(--ink); }
.chat-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; min-height: 0; }
.chat-empty { padding: 16px; margin: 0; }
.chat-conv { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; grid-template-areas: "av name time" "av snip badge"; gap: 2px 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.chat-conv:hover { background: var(--paper, #f8f7f2); color: var(--ink); }
.chat-conv[aria-current] { background: #f1ece6; box-shadow: inset 4px 0 var(--accent); }
.chat-av { grid-area: av; width: 42px; height: 42px; flex: none; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; }
.chat-av.is-t1 { background: var(--finance, #2e5e4e); } .chat-av.is-t2 { background: var(--history, #a24f31); } .chat-av.is-t3 { background: var(--cs, #3b5b9a); }
.chat-conv-name { grid-area: name; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-conv time { grid-area: time; font-size: .78rem; color: var(--muted); white-space: nowrap; }
.chat-conv-snip { grid-area: snip; font-size: .88rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-conv .account-badge { grid-area: badge; justify-self: end; }
.chat-conv.is-unread .chat-conv-name, .chat-conv.is-unread .chat-conv-snip { font-weight: 700; color: var(--ink); }
.chat-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.chat-pick { margin: auto; padding: 24px; text-align: center; max-width: 34ch; }
.chat-top { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.chat-top > div { min-width: 0; }
.chat-top h2 { font: 700 1.05rem/1.2 var(--sans); margin: 0; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-top small { color: var(--muted); font-size: .85rem; }
.chat-back { display: none; font-size: 1.4rem; line-height: 1; color: var(--navy); text-decoration: none; padding: 6px 4px; }
.chat-stream { list-style: none; margin: 0; padding: 16px 18px; flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; background: var(--paper, #f8f7f2); }
.chat-stream > :first-child { margin-top: auto; }
.chat-day { align-self: center; margin: 6px 0; }
.chat-day span { display: inline-block; font-size: .78rem; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 2px 12px; }
.chat-msg { display: flex; max-width: min(72%, 640px); }
.chat-msg.is-mine { align-self: flex-end; }
.chat-bub { display: grid; gap: 4px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; padding: 9px 14px; overflow-wrap: anywhere; }
.chat-msg.is-mine .chat-bub { background: var(--navy); border-color: var(--navy); color: #fff; border-radius: 16px 16px 4px 16px; }
.chat-bub time { justify-self: end; font-size: .72rem; opacity: .65; }
.chat-files { display: flex; flex-wrap: wrap; gap: 6px; }
.chat-files a { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 5px 10px; font-size: .88rem; font-weight: 600; background: var(--paper, #f8f7f2); color: var(--navy); text-decoration: none; }
.chat-files small { font-weight: 400; opacity: .75; white-space: nowrap; }
.chat-msg.is-mine .chat-files a { background: #ffffff1f; border-color: #ffffff40; color: #fff; }
.chat-fresh { margin: 8px 18px 0; }
.chat-compose { display: flex; align-items: flex-end; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--line); background: var(--surface); }
.chat-box { flex: 1; min-width: 0; }
.chat-box textarea { display: block; width: 100%; box-sizing: border-box; resize: none; border: 1px solid #c9cdc8; border-radius: 20px; padding: 10px 16px; font: inherit; line-height: 1.4; background: #fff; color: var(--ink); min-height: 44px; max-height: 180px; }
.chat-box textarea:focus { outline: 2px solid var(--navy); outline-offset: 1px; }
.chat-picked { margin: 6px 4px 0; font-size: .85rem; color: var(--muted); overflow-wrap: anywhere; }
.chat-round { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 1px solid #c9cdc8; background: var(--surface); color: var(--navy); font-size: 1.1rem; line-height: 1; cursor: pointer; padding: 0; font-family: inherit; }
.chat-round:hover { border-color: var(--navy); }
.chat-round.is-accent { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.chat-round.is-accent:hover { background: var(--accent-deep, #933520); }
.chat-round.is-accent:disabled { opacity: .5; cursor: default; }
.chat-round input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.chat-round:focus-within { outline: 2px solid var(--navy); outline-offset: 2px; }
@media (max-width: 760px) {
  .chat { grid-template-columns: minmax(0, 1fr); height: auto; min-height: 360px; }
  .chat.has-thread { height: calc(100vh - 210px); height: calc(100dvh - 210px); min-height: 420px; }
  .chat.has-thread .chat-side { display: none; }
  .chat:not(.has-thread) .chat-main { display: none; }
  .chat-side { border-right: 0; }
  .chat-back { display: block; }
  .chat-msg { max-width: 88%; }
  .chat-head h1 { font-size: 1.8rem; }
}

/* ---------- My assignments and marks + one assignment (account/copies-page.php) ---------- */
.aw { max-width: none; }
.aw .cbadge.is-new { background: var(--accent); color: #fff; }
.aw .cbadge.is-kind { text-transform: uppercase; letter-spacing: .05em; font-size: 11.5px; font-weight: 700; }
.aw-muted { color: var(--muted); }
.aw-p { margin: .5em 0 0; }
.aw-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); gap: 22px; align-items: start; }
.aw-cols.is-solo { grid-template-columns: minmax(0, 560px); }
.aw-main, .aw-side { min-width: 0; }
.aw-sum { display: grid; grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0 0 20px; }
.aw-sum > a { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; text-decoration: none; color: var(--ink); min-width: 0; }
.aw-sum > a:hover { border-color: var(--navy); }
.aw-sum strong { display: block; font: 600 2rem/1.1 var(--serif); color: var(--navy); font-variant-numeric: tabular-nums; }
.aw-sum .is-late strong { color: var(--accent); }
.aw-sum .aw-avg { display: flex; align-items: center; gap: 16px; background: var(--navy); border-color: var(--navy); color: #fff; }
.aw-sum .aw-avg:hover { background: var(--navy-deep, #102a3c); }
.aw-sum .aw-avg strong { color: #fff; font-size: 1.25rem; }
.aw-sum .aw-avg .dh-small { display: block; opacity: .82; }
.aw-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 14px; }
.aw-seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px; max-width: 100%; }
.aw-seg a { padding: 7px 16px; border-radius: 999px; font-weight: 700; color: var(--navy); text-decoration: none; white-space: nowrap; }
.aw-seg a.on { background: var(--navy); color: #fff; }
.aw-seg small { opacity: .7; font-weight: 600; margin-left: 3px; }
.aw-bar select { font: inherit; font-size: .95rem; color: var(--navy); background-color: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; max-width: 100%; }
.aw-next { display: flex; align-items: center; justify-content: space-between; gap: 12px 18px; border-left: 6px solid var(--navy); }
.aw-next.is-late { border-left-color: var(--accent); }
.aw-next:not(.is-late) .dh-k { color: var(--navy); }
.aw-next > div { min-width: 0; }
.aw-next .btn, .aw-work .btn { margin: 0; flex: none; white-space: nowrap; }
.aw-work-t { display: block; font-weight: 600; font-size: 1.08rem; line-height: 1.3; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.aw-work-t:hover { text-decoration: underline; }
.aw-work-m { display: block; font-size: .88rem; color: var(--muted); margin-top: 3px; }
.aw-work-m .cbadge { margin: 0 6px 0 0; vertical-align: 1px; }
.aw-sn { display: block; margin-top: 2px; }
.aw-list { padding-top: 4px; padding-bottom: 4px; }
.aw-work { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 2px 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.aw-work:first-child, .aw-work[hidden] + .aw-work { border-top: 0; }
.aw-work .aw-work-t, .aw-work .aw-work-m { grid-column: 1; }
.aw-work .aw-mk { grid-column: 2; grid-row: 1 / span 2; }
.aw-work .btn { grid-column: 3; grid-row: 1 / span 2; }
.aw-mk { display: block; text-align: right; min-width: 120px; font-size: .95rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.aw-mk strong { font-size: 1.12rem; color: var(--navy); }
.aw-mk .dh-bar { margin-top: 5px; }
.aw-empty { color: var(--muted); padding: 6px 2px 16px; margin: 0; }
.aw-chart { width: 100%; height: auto; margin-top: 8px; display: block; }
.aw-bysub { display: grid; grid-template-columns: auto minmax(40px, 1fr) auto; gap: 9px 12px; align-items: center; font-size: .95rem; margin-top: 10px; }
.aw-bysub b { font-variant-numeric: tabular-nums; text-align: right; color: var(--navy); }
.aw-mail { margin: .5em 0 0; font-size: .95rem; }
.aw-mail label { display: flex; gap: 9px; align-items: center; cursor: pointer; }
/* one assignment */
.aw-whead { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; margin: 0 0 20px; }
.aw-whead > div { min-width: 0; flex: 1 1 320px; }
.aw-whead .eyebrow { margin: 0; }
.aw-whead .eyebrow a { color: inherit; text-decoration: none; }
.aw-whead .eyebrow a:hover { text-decoration: underline; }
.aw-whead h1 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); line-height: 1.1; margin: .15em 0 0; overflow-wrap: anywhere; text-wrap: balance; }
.aw-badges { margin: 10px 0 0; }
.aw-steps { display: flex; list-style: none; margin: 0; padding: 0; font-size: .88rem; color: var(--muted); }
.aw-steps li { position: relative; padding: 26px 18px 0 0; min-width: 118px; }
.aw-steps li:last-child { padding-right: 0; }
.aw-steps li::before { content: ""; position: absolute; top: 6px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: #cfd4d0; z-index: 1; }
.aw-steps li::after { content: ""; position: absolute; top: 12px; left: 14px; right: 0; height: 2px; background: #cfd4d0; }
.aw-steps li:last-child::after { display: none; }
.aw-steps li.is-ok::before, .aw-steps li.is-ok::after { background: #2e7d4f; }
.aw-steps li.is-now::before { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint, #f6e5df); }
.aw-steps b { display: block; color: var(--ink); }
.aw .hw-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 0 0 14px; overflow-x: auto; }
.aw .hw-tabs button { font: inherit; font-weight: 700; background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; padding: 10px 16px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.aw .hw-tabs button.on { color: var(--navy); border-color: var(--accent); }
.aw .hw-panel { margin: 0 0 16px; }
.aw-tablewrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; margin: 0 0 16px; }
.aw-tablewrap table { margin: 0; width: 100%; }
.aw-score { display: flex; align-items: center; gap: 18px; background: var(--navy); border-color: var(--navy); color: #fff; }
.aw-score .dh-ring { width: 96px; height: 96px; }
.aw-score .dh-ring span { width: 76px; height: 76px; font-size: 1.15rem; }
.aw-score strong { display: block; font: 600 1.7rem/1.2 var(--serif); font-variant-numeric: tabular-nums; }
.aw-score .dh-small { opacity: .85; }
.aw-quote { border-left: 4px solid var(--accent); padding-left: 14px; margin: 10px 0 0; font-style: italic; overflow-wrap: anywhere; }
.aw-acts { display: grid; gap: 8px; margin: 0 0 16px; }
.aw-acts .btn { margin: 0; width: 100%; }
.aw-acts .admin-help { margin: 0; }
.aw-acts .admin-help:empty { display: none; }
.aw-docs { padding-bottom: 8px; }
.aw-docs h2 { margin-bottom: 8px; }
.aw-doc { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-weight: 600; color: var(--navy); text-decoration: none; }
.aw-doc:hover .aw-doc-n { text-decoration: underline; }
.aw-doc-n { min-width: 0; overflow-wrap: anywhere; }
.aw-doc small { color: var(--muted); font-weight: 400; white-space: nowrap; }
.aw-handed { list-style: none; padding: 0; margin: 4px 0 0; }
.aw-handed li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--line); }
.aw-handed li:first-child { border-top: 0; }
.aw-handed a { font-weight: 600; color: var(--navy); overflow-wrap: anywhere; }
.aw-handed small { color: var(--muted); }
.aw .hw-del { background: none; border: 0; padding: 0; margin-left: auto; color: var(--accent); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; }
.aw .hw-del:hover { text-decoration: underline; }
.aw-drop { display: grid; justify-items: center; gap: 8px; text-align: center; border: 2px dashed #c9cdc8; border-radius: 16px; padding: 24px 16px; background: var(--paper, #f7f6f1); margin-top: 12px; }
.aw-drop.is-over { border-color: var(--accent); background: var(--accent-tint, #f6e5df); }
.aw-drop > b { font-size: 1.1rem; color: var(--navy); }
.aw-drop input[type=file] { max-width: 100%; font: inherit; font-size: .9rem; }
.aw-pick { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; justify-content: center; max-width: 100%; }
.aw-picked:empty { display: none; }
.aw-picked { font-weight: 600; color: var(--navy); overflow-wrap: anywhere; }
.aw-drop .btn { margin: 4px 0 0; }
.aw-drop progress { width: 100%; max-width: 320px; }
.aw-drop .admin-help { margin: 0; }
.aw-drop .admin-help:empty { display: none; }
.aw-note { margin: 10px 0 0; }
.aw-count { display: flex; align-items: center; gap: 16px; border-color: #e8b48f; background: #fff5ec; }
.aw-count strong { font: 600 2.4rem/1 var(--serif); color: var(--navy); font-variant-numeric: tabular-nums; }
.aw-count.is-late strong { color: var(--accent); }
.aw-ask { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 600; color: var(--navy); text-decoration: none; }
.aw-ask:hover { border-color: var(--navy); }
.aw-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.aw-nav a { color: var(--navy); max-width: 48%; }
@media (max-width: 1000px) {
  .aw-cols { display: flex; flex-direction: column; gap: 0; }
  .aw-main, .aw-side { display: contents; }
  .aw-main > *, .aw-side > * { order: 2; width: 100%; }
  .aw-cols .aw-first { order: 0; }
  .aw-cols .aw-acts, .aw-cols .aw-side > .aw-docs, .aw-cols .aw-ask { order: 3; }
}
@media (max-width: 720px) {
  .aw-sum { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .aw-sum .aw-avg { grid-column: 1 / -1; }
  .aw-sum > a { padding: 12px; }
  .aw-sum strong { font-size: 1.6rem; }
  .aw-seg { width: 100%; }
  .aw-seg a { flex: 1; text-align: center; padding: 8px 6px; font-size: .92rem; }
  .aw-bar select { flex: 1 1 140px; }
  .aw-next { flex-wrap: wrap; }
  .aw-work { grid-template-columns: minmax(0, 1fr) auto; }
  .aw-work .btn { grid-column: 1 / -1; grid-row: auto; justify-self: start; margin-top: 8px; }
  .aw-steps { width: 100%; }
  .aw-steps li { min-width: 0; flex: 1; padding-right: 8px; }
  .aw-nav a { max-width: 100%; }
}
.aw-bar .gselect { flex: 0 1 170px; width: auto; min-width: 140px; margin: 0; }
@media (max-width: 720px) { .aw-bar .gselect { flex: 1 1 140px; } }

/* signed-in visitors: no "Start free" button in the header of account pages */
html.signed-in .site-header [data-guest] { display: none !important; }
