/* Page 11 · Assignments (/assignments). App shell from home.css; a sub-page of Home (back arrow + title). */

.app-header .back { width: 44px; height: 44px; margin-left: -10px; flex: none; display: grid; place-items: center; border-radius: 12px; color: var(--muted); }
.page-title { font-size: 1.15rem; flex: 1; min-width: 0; }
.asg { padding-top: 8px; padding-bottom: 24px; max-width: 640px; }

.class-bar { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--ink-2); font-weight: 600; }
.class-icon { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 9px; background: var(--teal-soft); color: var(--teal); }
.asg-tabs { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.asg-tabs button { min-height: 42px; border: 0; border-radius: 999px; background: transparent; font-weight: 700; font-size: 0.88rem; color: var(--muted); }
.asg-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }

.asg-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.asg-card { padding: 12px 14px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.asg-card.overdue { border-color: #f0b9b9; }
.asg-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.asg-top b { font-size: 1rem; min-width: 0; overflow-wrap: anywhere; }
.due { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 0.75rem; font-weight: 800; white-space: nowrap; }
.due.late { background: #fbe6e6; color: #a32d2d; }
.due.soon { background: var(--accent-soft); color: var(--accent-ink); }
.due.later { background: var(--paper-2); color: var(--ink-2); }
.asg-meta { margin-top: 2px; font-size: 0.8rem; color: var(--muted); }
.asg-note { margin-top: 8px; padding: 8px 10px; border-left: 3px solid var(--teal); border-radius: 0; background: var(--paper); font-size: 0.85rem; color: var(--ink-2); }
.asg-note b { display: block; font-size: 0.72rem; color: var(--teal); }
.asg-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.asg-status { font-size: 0.8rem; color: var(--muted); }
.asg-status .st { color: var(--gold); letter-spacing: 1px; }
.asg-status .st i { font-style: normal; color: var(--line); }
.asg-foot .btn { min-height: 40px; padding: 8px 18px; font-size: 0.88rem; }

.done-list .asg-card { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; }
.done-list .done-what { display: grid; min-width: 0; }
.done-list .done-what span { font-size: 0.78rem; color: var(--muted); }
.done-list .done-res { flex: none; display: flex; align-items: center; gap: 8px; }
.done-list .done-res .st { color: var(--gold); letter-spacing: 1px; }
.done-list .done-res .st i { font-style: normal; color: var(--line); }
.done-list .again { min-height: 36px; padding: 6px 12px; font-size: 0.8rem; }
.all-done { margin-top: 12px; padding: 16px; text-align: center; color: var(--ink-2); box-shadow: none; }

.no-class { padding-top: 24px; text-align: center; }
.empty-icon { width: 64px; height: 64px; margin: 0 auto; border-radius: 20px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); }
.no-class h2 { font-size: 1.3rem; margin-top: 12px; }
.no-class > p { margin-top: 4px; color: var(--ink-2); }
.join { margin-top: 20px; padding: 14px; text-align: left; box-shadow: none; }
.join-title { font-weight: 800; }
.join-hint { font-size: 0.82rem; color: var(--muted); margin-top: 2px; }
.join-row { display: flex; gap: 8px; margin-top: 10px; }
.input.code { flex: 1; min-width: 0; min-height: 48px; padding: 8px 12px; border: 2px solid var(--line); border-radius: 12px; font-size: 1.1rem; font-weight: 800; letter-spacing: 4px; text-transform: uppercase; background: var(--paper); }
.input.code:focus { outline: none; border-color: var(--ink); background: #fff; }
.input.code[aria-invalid="true"] { border-color: var(--bad); }
.join-error { margin-top: 6px; font-size: 0.85rem; font-weight: 700; color: var(--bad); }
.join-qr { margin-top: 8px; font-size: 0.8rem; color: var(--muted); }
.solo-link { display: inline-block; margin-top: 16px; min-height: 44px; line-height: 44px; font-weight: 800; color: var(--accent-ink); text-decoration: none; }
.proto-note { width: 100%; margin-top: 4px; font-size: 0.75rem; }
.proto-states span { width: 100%; }

@media (min-width: 900px) {
  .page-title { flex: none; margin-right: 8px; }
  .asg { padding-top: 32px; }
}

/* ---- Joining a class (invite link / typed code), my classes, class menu ---- */
.invite { padding-top: 20px; text-align: center; max-width: 440px; margin: 0 auto; }
.invite-kicker { margin-top: 12px; color: var(--muted); font-size: 0.9rem; }
.invite-name { margin-top: 2px; font-size: 1.35rem; outline: none; overflow-wrap: anywhere; }
.invite-meta { margin-top: 2px; color: var(--muted); font-size: 0.88rem; }
.invite-meta .code-chip { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 2px; font-weight: 800; color: var(--ink-2); }
.invite-note { margin-top: 16px; padding: 12px 14px; text-align: left; font-size: 0.9rem; color: var(--ink-2); box-shadow: none; }
.invite-note.bad { border-color: #f0b9b9; background: #fbe6e6; color: #a32d2d; font-weight: 700; }
.invite .btn-block { width: 100%; margin-top: 14px; }
.invite-small { margin-top: 8px; font-size: 0.8rem; color: var(--muted); }
.invite-form { margin-top: 12px; text-align: left; }
.privacy { margin-top: 14px; padding: 10px 12px; border-radius: 12px; background: var(--teal-soft); color: var(--teal); font-size: 0.85rem; display: grid; gap: 4px; }
.privacy p { display: flex; gap: 8px; align-items: flex-start; }
.privacy svg { flex: none; margin-top: 2px; }
.invite-form .link-btn { display: grid; place-items: center; text-decoration: none; }

.my-classes { display: grid; gap: 8px; }
.my-class { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--ink-2); font-weight: 600; }
.my-class .mc-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.my-class .mc-me { display: block; font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.mc-menu { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border: 0; border-radius: 12px; background: none; color: var(--muted); cursor: pointer; }
.mc-menu:hover { background: var(--paper-2); }
.live-empty { padding-top: 22px; text-align: center; }
.live-empty h2 { font-size: 1.15rem; margin-top: 10px; }
.live-empty p { margin-top: 4px; color: var(--ink-2); }
.join-more { width: 100%; margin-top: 20px; }
.asg.live .proto-states, .asg.invite-mode .proto-states { display: none; }
.asg.loading #in-class, .asg.loading #no-class { visibility: hidden; }
.toast-ok { background: #e5f4e4; color: #2e7d4b; border-radius: 12px; padding: 10px 12px; font-weight: 700; font-size: 0.9rem; margin-bottom: 10px; }
.leave-btn { color: #a32d2d; border-color: #f0b9b9; }
.leave-confirm { margin-top: 12px; padding: 12px; border-radius: 12px; background: #fbe6e6; color: #a32d2d; font-size: 0.9rem; text-align: left; }
