/* Axiom assignments UI. Tokens mirror the main Axiom theme (warm paper, ink green). */
:root {
  --ax-paper: #faf8f3; --ax-paper-2: #f3f0e8; --ax-line: #e5e1d6; --ax-ink: #1e2a2e; --ax-mute: #77776e;
  --ax-green: #1f6f68; --ax-green-soft: #edf3ef; --ax-green-line: #c1d7d0; --ax-amber: #b4600f; --ax-red: #c6534e;
  --ax-ease: cubic-bezier(.2, .7, .2, 1);
}
.ax-student, .ax-teacher, .ax-center-wrap { color: var(--ax-ink); font-family: var(--axiom-sans, system-ui); line-height: 1.5; }
.ax-spacer { flex: 1; }
.ax-link { background: none; border: 0; padding: 4px 6px; color: var(--ax-green); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; border-radius: 6px; transition: background .15s; }
.ax-link:hover { background: var(--ax-green-soft); }
.ax-link:focus-visible, .ax-assign:focus-visible, .ax-drop:focus-visible, .ax-file-tile:focus-visible, .ax-pill:focus-visible { outline: 2px solid var(--ax-green); outline-offset: 2px; }
.ax-eyebrow { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ax-green); font-weight: 700; }
.ax-title { margin: 0; font-family: var(--axiom-serif, Georgia, serif); font-size: 32px; line-height: 1.2; font-weight: 600; letter-spacing: -.01em; }
.ax-title.sm { font-size: 24px; }
.ax-lead { margin: 6px 0 0; color: var(--ax-mute); font-size: 15px; }
.ax-desc { margin: 10px 0 0; color: #4b5a5f; max-width: 62ch; white-space: pre-wrap; }
.ax-help { font-size: 12px; color: var(--ax-mute); margin: 4px 0 12px; }
.ax-help[data-ok="true"] { color: var(--ax-green); }
.ax-help[data-ok="false"] { color: var(--ax-red); }
.ax-error { margin: 10px 0; padding: 9px 12px; border-radius: 10px; background: #fcf0ed; color: #a63f3a; font-size: 13px; }
.ax-warn { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: #faf0e2; color: #8a4a0c; font-size: 13px; }
.ax-wordmark { font-family: var(--axiom-serif, Georgia, serif); font-size: 22px; font-weight: 700; color: var(--ax-green); display: inline-flex; flex-direction: column; line-height: 1.1; }
.ax-wordmark small { font-family: var(--axiom-sans, system-ui); font-size: 11px; font-weight: 500; color: var(--ax-mute); letter-spacing: .04em; margin-top: 2px; }

/* centered card pages */
.ax-center-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: var(--ax-paper-2); }
.ax-card { background: #fff; border: 1px solid var(--ax-line); border-radius: 20px; box-shadow: 0 18px 50px #1e2a2e0f; }
.ax-pw-card { width: min(440px, 100%); padding: 36px 32px 28px; animation: ax-rise .5s var(--ax-ease); }
.ax-pw-card .ax-title { font-size: 26px; margin-top: 8px; }
.ax-field { display: block; margin: 16px 0 0; }
.ax-field > span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.ax-field em { font-style: normal; font-weight: 400; color: var(--ax-mute); margin-left: 4px; }
.ax-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ax-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; }
.ax-meter { display: flex; gap: 4px; align-items: center; margin-top: 8px; }
.ax-meter i { flex: 1; height: 4px; border-radius: 2px; background: var(--ax-line); transition: background .25s; }
.ax-meter b { font-size: 12px; font-weight: 600; margin-left: 6px; color: var(--ax-mute); min-width: 2.2em; }
.ax-meter[data-level="1"] i:nth-child(-n+1) { background: var(--ax-red); }
.ax-meter[data-level="2"] i:nth-child(-n+2) { background: var(--ax-amber); }
.ax-meter[data-level="3"] i:nth-child(-n+3), .ax-meter[data-level="4"] i:nth-child(-n+4) { background: var(--ax-green); }
.ax-native { width: 100%; height: 36px; border: 1px solid var(--ax-line); border-radius: 18px; padding: 0 14px; font: inherit; background: #fff; color: var(--ax-ink); }

/* student shell */
.ax-student { min-height: 100vh; background: var(--ax-paper); }
.ax-student-bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 12px max(16px, calc((100vw - 1040px) / 2)); background: #faf8f3e6; backdrop-filter: blur(10px); border-bottom: 1px solid var(--ax-line); }
.ax-who { font-size: 13px; color: var(--ax-mute); }
.ax-banner { background: #faf0e2; color: #7c4510; text-align: center; font-size: 13px; padding: 8px 16px; border-bottom: 1px solid #ecd9b8; }
.ax-student-main { max-width: 1040px; margin: 0 auto; padding: 36px 16px 80px; }
.ax-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.ax-seg { display: inline-flex; padding: 3px; background: var(--ax-paper-2); border: 1px solid var(--ax-line); border-radius: 999px; }
.ax-seg button { border: 0; background: none; padding: 6px 16px; border-radius: 999px; font: inherit; font-size: 13px; font-weight: 600; color: var(--ax-mute); cursor: pointer; transition: all .2s var(--ax-ease); }
.ax-seg button.on { background: #fff; color: var(--ax-ink); box-shadow: 0 1px 4px #1e2a2e1a; }

/* assignment cards */
.ax-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; position: relative; }
.ax-assign { position: relative; background: #fff; border: 1px solid var(--ax-line); border-radius: 18px; padding: 18px 20px 16px; cursor: pointer; transition: transform .25s var(--ax-ease), box-shadow .25s, border-color .2s; }
.ax-assign:hover { transform: translateY(-3px); box-shadow: 0 12px 30px #1e2a2e14; border-color: var(--ax-green-line); }
.ax-assign h3 { margin: 12px 0 6px; font-family: var(--axiom-serif, Georgia, serif); font-size: 19px; font-weight: 600; line-height: 1.3; }
.ax-assign-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ax-assign-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--ax-mute); }
.ax-arrow { position: absolute; right: 18px; bottom: 14px; color: var(--ax-green); opacity: 0; transform: translateX(-6px); transition: all .25s var(--ax-ease); font-weight: 700; }
.ax-assign:hover .ax-arrow { opacity: 1; transform: none; }
.ax-bar { height: 5px; background: var(--ax-paper-2); border-radius: 3px; margin-top: 14px; overflow: hidden; }
.ax-bar i { display: block; height: 100%; background: var(--ax-green); border-radius: 3px; transition: width .6s var(--ax-ease); }
.ax-inline { margin-top: 12px; background: none; border: 0; padding: 0; color: var(--ax-green); font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; }

.ax-chip { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--ax-paper-2); color: #5c6b70; white-space: nowrap; }
.ax-chip[data-s="todo"], .ax-chip[data-s="t-published"], .ax-chip[data-s="r-seen"] { background: #e8f0f4; color: #2f6180; }
.ax-chip[data-s="submitted"], .ax-chip[data-s="r-submitted"] { background: var(--ax-green-soft); color: var(--ax-green); }
.ax-chip[data-s="feedback"], .ax-chip[data-s="r-released"] { background: #1f6f68; color: #fff; }
.ax-chip[data-s="returned"], .ax-chip[data-s="r-returned"], .ax-chip[data-s="late"] { background: #faf0e2; color: #96510b; }
.ax-chip[data-s="r-grading"] { background: #efe9f7; color: #5b3f8c; }
.ax-chip[data-s="closed"], .ax-chip[data-s="t-closed"], .ax-chip[data-s="t-draft"], .ax-chip[data-s="r-none"] { background: var(--ax-paper-2); color: var(--ax-mute); }
.ax-due { font-size: 12.5px; font-weight: 600; color: var(--ax-mute); }
.ax-due[data-tone="soon"] { color: var(--ax-amber); }
.ax-due[data-tone="urgent"], .ax-due[data-tone="late"] { color: var(--ax-red); }
.ax-due.big { text-align: right; display: flex; flex-direction: column; font-size: 13px; }
.ax-due.big b { font-family: var(--axiom-serif, Georgia, serif); font-size: 22px; }
.ax-due.big small { font-weight: 500; color: var(--ax-mute); }

/* detail */
.ax-back { background: none; border: 0; font: inherit; font-weight: 600; font-size: 14px; color: var(--ax-mute); cursor: pointer; padding: 4px 0; margin-bottom: 14px; transition: color .15s, transform .2s; }
.ax-back:hover { color: var(--ax-green); transform: translateX(-3px); }
.ax-detail-head { display: flex; gap: 20px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.ax-steps { display: flex; gap: 0; list-style: none; padding: 0; margin: 26px 0 8px; counter-reset: s; }
.ax-steps li { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ax-mute); position: relative; }
.ax-steps li::after { content: ''; flex: 1; height: 2px; margin: 0 10px; background: var(--ax-line); transition: background .4s; }
.ax-steps li:last-child::after { display: none; }
.ax-steps i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--ax-line); background: #fff; font-style: normal; font-size: 12px; transition: all .3s var(--ax-ease); flex: none; }
.ax-steps li.on { color: var(--ax-ink); } .ax-steps li.on i { border-color: var(--ax-green); color: var(--ax-green); box-shadow: 0 0 0 4px #1f6f6820; }
.ax-steps li.done { color: var(--ax-green); } .ax-steps li.done i { background: var(--ax-green); border-color: var(--ax-green); color: #fff; } .ax-steps li.done::after { background: var(--ax-green); }
.ax-flash { margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--ax-green-soft); color: #14524c; border: 1px solid var(--ax-green-line); font-size: 14px; cursor: pointer; }
.ax-panel { margin-top: 18px; background: #fff; border: 1px solid var(--ax-line); border-radius: 18px; padding: 20px 22px; transition: opacity .3s; }
.ax-panel.locked { background: var(--ax-paper); }
.ax-panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.ax-panel-head h3 { margin: 0; font-size: 16px; font-weight: 700; }
.ax-note { font-size: 12.5px; color: var(--ax-amber); font-weight: 600; }
.ax-file-tile { width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; background: var(--ax-paper); border: 1px solid var(--ax-line); border-radius: 14px; padding: 14px 16px; cursor: pointer; font: inherit; color: inherit; transition: border-color .2s, transform .2s var(--ax-ease), background .2s; }
.ax-file-tile:hover { border-color: var(--ax-green-line); background: var(--ax-green-soft); transform: translateY(-1px); }
.ax-file-tile b { display: block; word-break: break-all; } .ax-file-tile small { color: var(--ax-mute); }
.ax-file-tile .ax-arrow { position: static; opacity: 1; transform: none; margin-left: auto; font-size: 18px; }
.ax-pdf { display: grid; place-items: center; width: 42px; height: 48px; border-radius: 8px; background: #fff; border: 1px solid var(--ax-line); color: var(--ax-red); font-size: 11px; font-weight: 800; flex: none; }

.ax-drop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 30px 16px; border: 2px dashed var(--ax-green-line); border-radius: 16px; background: var(--ax-paper); text-align: center; cursor: pointer; transition: all .25s var(--ax-ease); overflow: hidden; }
.ax-drop:hover, .ax-drop.over { border-color: var(--ax-green); background: var(--ax-green-soft); transform: scale(1.005); }
.ax-drop.over .ax-drop-icon { transform: translateY(-4px); }
.ax-drop.busy { pointer-events: none; opacity: .85; }
.ax-drop small { color: var(--ax-mute); }
.ax-drop-icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--ax-green-line); color: var(--ax-green); font-weight: 700; font-size: 18px; margin-bottom: 4px; transition: transform .25s var(--ax-ease); }
.ax-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--ax-line); } .ax-drop .ax-progress { }
.ax-dialog .ax-progress { position: static; border-radius: 2px; overflow: hidden; margin-top: 10px; }
.ax-progress i { display: block; height: 100%; background: var(--ax-green); transition: width .15s linear; }
.ax-files { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.ax-files li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--ax-line); border-radius: 12px; background: #fff; }
.ax-kind { font-size: 10.5px; font-weight: 800; padding: 3px 7px; border-radius: 6px; background: var(--ax-paper-2); color: var(--ax-mute); } .ax-kind[data-k="pdf"] { background: #fcf0ed; color: var(--ax-red); }
.ax-fname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.ax-files small { color: var(--ax-mute); white-space: nowrap; }
.ax-x { border: 0; background: none; width: 26px; height: 26px; border-radius: 50%; font-size: 18px; line-height: 1; color: var(--ax-mute); cursor: pointer; transition: all .15s; } .ax-x:hover { background: #fcf0ed; color: var(--ax-red); }
.ax-submit-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.ax-timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--ax-line); display: grid; gap: 18px; }
.ax-timeline li { position: relative; } .ax-timeline li::before { content: ''; position: absolute; left: -25px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--ax-green); }
.ax-timeline li[data-s="returned"]::before { border-color: var(--ax-amber); }
.ax-tl-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .ax-tl-head small { color: var(--ax-mute); }
.ax-tl-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ax-pill { border: 1px solid var(--ax-line); background: #fff; border-radius: 999px; padding: 3px 12px; font: inherit; font-size: 12.5px; cursor: pointer; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: all .15s; }
.ax-pill:hover { border-color: var(--ax-green); color: var(--ax-green); background: var(--ax-green-soft); }
.ax-return { margin: 8px 0 0; padding: 8px 12px; border-radius: 10px; background: #faf0e2; color: #7c4510; font-size: 13.5px; }
.ax-feedback { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: var(--ax-green-soft); border: 1px solid var(--ax-green-line); }
.ax-feedback small { display: block; color: var(--ax-mute); } .ax-feedback p { margin: 4px 0 0; font-size: 13.5px; }

/* empty + skeleton */
.ax-empty { display: grid; justify-items: center; gap: 8px; padding: 56px 16px; color: var(--ax-mute); text-align: center; }
.ax-empty.small { padding: 24px 8px; }
.ax-empty-mark { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: var(--ax-green-soft); color: var(--ax-green); font-size: 22px; font-weight: 700; }
.ax-skel-list { display: grid; gap: 14px; } .ax-skel { height: 118px; border-radius: 18px; background: linear-gradient(100deg, var(--ax-paper-2) 30%, #fff 50%, var(--ax-paper-2) 70%); background-size: 200% 100%; animation: ax-shimmer 1.3s linear infinite; } .ax-skel.tall { height: 320px; }

/* teacher */
.ax-teacher { padding-bottom: 40px; }
.ax-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; } .ax-toolbar.tight { margin-bottom: 8px; }
.ax-count { font-size: 13px; color: var(--ax-mute); font-weight: 600; }
.ax-roster { display: grid; gap: 10px; }
.ax-roster article { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: #fff; border: 1px solid var(--ax-line); border-radius: 16px; transition: box-shadow .2s, border-color .2s; }
.ax-roster article:hover { box-shadow: 0 6px 18px #1e2a2e0d; border-color: var(--ax-green-line); } .ax-roster article.archived { opacity: .6; }
.ax-roster-main { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; } .ax-roster-main small { color: var(--ax-mute); flex-basis: 100%; }
.ax-roster-actions { display: flex; gap: 2px; flex-wrap: wrap; }
.ax-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ax-green-soft); color: var(--ax-green); font-weight: 800; flex: none; } .ax-avatar.sm { width: 30px; height: 30px; font-size: 13px; }
.ax-radio { display: inline-flex; gap: 6px; } .ax-radio button { border: 1px solid var(--ax-line); background: #fff; border-radius: 999px; padding: 5px 16px; font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; transition: all .15s; } .ax-radio button.on { background: var(--ax-green); color: #fff; border-color: var(--ax-green); }
.ax-cred { display: grid; gap: 10px; padding: 16px; border-radius: 14px; background: var(--ax-paper); border: 1px solid var(--ax-line); } .ax-cred small { display: block; color: var(--ax-mute); font-size: 12px; } .ax-cred b { font-size: 20px; word-break: break-all; } .ax-cred .mono { font-family: ui-monospace, Consolas, monospace; letter-spacing: .04em; user-select: all; }
.ax-pick { display: grid; gap: 2px; padding: 14px; border: 2px dashed var(--ax-green-line); border-radius: 14px; background: var(--ax-paper); cursor: pointer; text-align: center; transition: all .2s; } .ax-pick:hover, .ax-pick.has { border-color: var(--ax-green); background: var(--ax-green-soft); } .ax-pick small { color: var(--ax-mute); }
.ax-pick-list { display: grid; gap: 6px; max-height: 340px; overflow: auto; } .ax-pick-list label { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--ax-line); border-radius: 12px; cursor: pointer; transition: all .15s; } .ax-pick-list label.on { border-color: var(--ax-green); background: var(--ax-green-soft); } .ax-pick-list small { display: block; color: var(--ax-mute); }
.ax-drawer-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ax-recips { display: grid; gap: 12px; margin-top: 14px; }
.ax-recips article { padding: 14px 16px; background: #fff; border: 1px solid var(--ax-line); border-radius: 16px; } .ax-recips article[data-k="grading"] { border-color: #cdbfe6; } .ax-recips article[data-k="released"] { border-color: var(--ax-green-line); }
.ax-recip-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .ax-recip-head small { color: var(--ax-mute); margin-left: auto; }
.ax-recip-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ax-released { margin-top: 8px; font-size: 12.5px; color: var(--ax-green); font-weight: 600; }
.ax-check { display: inline-flex; }

/* motion */
.ax-fade-enter-active, .ax-fade-leave-active { transition: opacity .22s ease, transform .22s var(--ax-ease); } .ax-fade-enter-from, .ax-fade-leave-to { opacity: 0; transform: translateY(8px); }
.ax-list-enter-active, .ax-list-leave-active, .ax-list-move { transition: all .3s var(--ax-ease); } .ax-list-enter-from, .ax-list-leave-to { opacity: 0; transform: translateY(10px) scale(.98); } .ax-list-leave-active { position: absolute; }
@keyframes ax-rise { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes ax-shimmer { to { background-position: -200% 0; } }
@media (max-width: 640px) {
  .ax-title { font-size: 26px; } .ax-detail-head { flex-direction: column; } .ax-due.big { text-align: left; }
  .ax-steps li span { display: none; } .ax-steps li.on span { display: inline; } .ax-two { grid-template-columns: 1fr; }
  .ax-roster article { flex-wrap: wrap; } .ax-feedback { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) { .ax-student *, .ax-teacher *, .ax-center-wrap * { animation: none !important; transition: none !important; } }

/* login-page notices */
.login-notice { margin-top: 12px; padding: 8px 12px; border-radius: 10px; font-size: 13px; background: var(--ax-green-soft); color: #14524c; }
.login-notice.warn { background: #faf0e2; color: #7c4510; }
.login-notice.err { background: #fcf0ed; color: #a63f3a; }
.ax-maint-banner { background: #faf0e2; color: #7c4510; font-size: 13px; padding: 7px 16px; text-align: center; border-bottom: 1px solid #ecd9b8; }

/* teacher list + split detail */
.ax-seg button em { font-style: normal; margin-left: 6px; font-size: 11px; padding: 0 6px; border-radius: 999px; background: var(--ax-paper-2); color: var(--ax-mute); }
.ax-seg button.on em { background: var(--ax-green-soft); color: var(--ax-green); } .ax-seg button em.hot { background: #efe9f7; color: #5b3f8c; }
.ax-group { margin-top: 18px; } .ax-group-head { width: 100%; display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 4px 2px; margin-bottom: 8px; cursor: default; font: inherit; color: var(--ax-ink); text-align: left; }
.ax-group-head b { font-size: 13px; letter-spacing: .04em; } .ax-group-head span { font-size: 12px; color: var(--ax-mute); background: var(--ax-paper-2); padding: 0 8px; border-radius: 999px; } .ax-group-head i { margin-left: auto; font-style: normal; font-size: 12px; color: var(--ax-green); font-weight: 600; }
.ax-group-head[data-k="closed"], .ax-month .ax-group-head { cursor: pointer; } .ax-group-head[data-k="review"] b { color: #5b3f8c; }
.ax-rows { position: relative; display: grid; gap: 8px; }
.ax-arow { position: relative; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(120px, 1fr) auto 18px; align-items: center; gap: 16px; padding: 12px 18px; background: #fff; border: 1px solid var(--ax-line); border-radius: 14px; cursor: pointer; transition: transform .2s var(--ax-ease), box-shadow .2s, border-color .2s; }
.ax-arow:hover { transform: translateY(-2px); box-shadow: 0 8px 22px #1e2a2e12; border-color: var(--ax-green-line); } .ax-arow:focus-visible { outline: 2px solid var(--ax-green); outline-offset: 2px; }
.ax-arow h3 { margin: 0; font-family: var(--axiom-serif, Georgia, serif); font-size: 16.5px; font-weight: 600; } .ax-arow small { color: var(--ax-mute); font-size: 12.5px; }
.ax-arow-prog { display: grid; gap: 4px; } .ax-arow-prog .ax-bar { margin: 0; } .ax-arow .ax-arrow { position: static; opacity: .35; transform: none; } .ax-arow:hover .ax-arrow { opacity: 1; }
.ax-inline.tight { margin: 0; }
.ax-skel.slim { height: 58px; border-radius: 14px; }
.ax-detail-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.ax-stats { display: flex; align-items: stretch; gap: 8px; flex-wrap: wrap; margin: 18px 0 14px; }
.ax-stats button { min-width: 84px; display: grid; gap: 0; text-align: left; padding: 8px 14px; background: #fff; border: 1px solid var(--ax-line); border-radius: 14px; cursor: pointer; font: inherit; color: inherit; transition: all .2s var(--ax-ease); }
.ax-stats button b { font-family: var(--axiom-serif, Georgia, serif); font-size: 22px; line-height: 1.2; } .ax-stats button span { font-size: 12px; color: var(--ax-mute); }
.ax-stats button:hover { border-color: var(--ax-green-line); transform: translateY(-1px); } .ax-stats button.on { background: var(--ax-green-soft); border-color: var(--ax-green); } .ax-stats button.on b { color: var(--ax-green); }
.ax-late-note { align-self: center; color: var(--ax-amber); font-weight: 600; }
.ax-split { display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); gap: 16px; align-items: start; }
.ax-split-list { background: #fff; border: 1px solid var(--ax-line); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; max-height: calc(100vh - 260px); min-height: 280px; }
.ax-split-list ul { list-style: none; margin: 0; padding: 0; overflow: auto; flex: 1; display: grid; gap: 4px; align-content: start; }
.ax-split-list li { display: flex; align-items: center; gap: 8px; padding: 8px 8px; border-radius: 12px; cursor: pointer; border: 1px solid transparent; transition: background .15s, border-color .15s; }
.ax-split-list li:hover { background: var(--ax-paper); } .ax-split-list li.on { background: var(--ax-green-soft); border-color: var(--ax-green-line); }
.ax-split-name { flex: 1; min-width: 0; display: grid; } .ax-split-name b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ax-split-name small { color: var(--ax-mute); font-size: 12px; }
.ax-batchbar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 8px; padding: 8px 10px; border-radius: 12px; background: var(--ax-ink); color: #fff; font-size: 13px; } .ax-batchbar .el-button { --el-button-bg-color: #fff; }
.ax-copy { align-self: flex-start; margin-top: 6px; }
.ax-split-pane { background: #fff; border: 1px solid var(--ax-line); border-radius: 16px; padding: 18px 20px; min-height: 280px; position: sticky; top: 8px; }
.ax-big { display: block; font-size: 18px; } .ax-sub { display: block; color: var(--ax-mute); }
.ax-split-pane .ax-recip-head { gap: 12px; } .ax-split-pane .ax-recip-head .ax-chip { margin-left: auto; }
.ax-panel-lite { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--ax-line); } .ax-panel-lite .ax-panel-head h3 { font-size: 15px; display: flex; gap: 8px; align-items: center; }
.ax-history { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; } .ax-history li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; } .ax-history small { color: var(--ax-mute); }
.ax-month { margin-top: 10px; }
@media (max-width: 900px) { .ax-split { grid-template-columns: 1fr; } .ax-split-list { max-height: 360px; } .ax-split-pane { position: static; } .ax-arow { grid-template-columns: 1fr auto; } .ax-arow-prog { grid-column: 1 / -1; order: 3; } .ax-arow .ax-arrow { display: none; } }

/* inline submission gallery */
.ax-gallery { display: grid; gap: 14px; margin-top: 12px; }
.ax-shot { position: relative; margin: 0; border: 1px solid var(--ax-line); border-radius: 14px; background: var(--ax-paper); overflow: hidden; }
.ax-shot-no { position: absolute; top: 8px; left: 8px; z-index: 2; padding: 2px 9px; border-radius: 999px; background: #1e2a2ecc; color: #fff; font-size: 11.5px; font-weight: 700; backdrop-filter: blur(4px); }
.ax-shot-img { display: block; width: 100%; max-height: 520px; cursor: zoom-in; background: #fff; }
.ax-shot-img img { width: 100%; max-height: 520px; object-fit: contain; }
.ax-shot figcaption { padding: 6px 12px; font-size: 12px; color: var(--ax-mute); border-top: 1px solid var(--ax-line); background: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ax-shot-wait { height: 140px; display: grid; place-items: center; color: var(--ax-mute); font-size: 13px; background: linear-gradient(100deg, var(--ax-paper-2) 30%, #fff 50%, var(--ax-paper-2) 70%); background-size: 200% 100%; animation: ax-shimmer 1.3s linear infinite; }
.ax-shot-pdf { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; transition: background .2s; }
.ax-shot-pdf:hover { background: var(--ax-green-soft); } .ax-shot-pdf b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ax-shot-pdf small { color: var(--ax-mute); }
.ax-gallery.compact { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ax-gallery.compact .ax-shot-img, .ax-gallery.compact .ax-shot-img img { max-height: 150px; }
.ax-gallery.compact .ax-shot-wait { height: 100px; } .ax-gallery.compact .ax-shot.pdf { grid-column: span 2; }

/* draft files: thumbnails + reorder */
.ax-files li { gap: 12px; padding: 8px 10px; }
.ax-thumb { position: relative; flex: none; width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: var(--ax-paper-2); display: grid; place-items: center; border: 1px solid var(--ax-line); }
.ax-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ax-thumb-no { position: absolute; left: 3px; top: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #1e2a2ecc; color: #fff; font-style: normal; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.ax-fmeta { flex: 1; min-width: 0; display: grid; } .ax-fmeta small { color: var(--ax-mute); }
.ax-fact { display: flex; align-items: center; gap: 4px; flex: none; }
.ax-mv, .ax-fact .ax-x { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--ax-line); background: #fff; font: inherit; font-size: 16px; color: var(--ax-ink); cursor: pointer; transition: all .15s; }
.ax-mv:hover:not(:disabled) { border-color: var(--ax-green); color: var(--ax-green); background: var(--ax-green-soft); } .ax-mv:disabled { opacity: .35; cursor: default; }
.ax-progress-wrap { margin-top: 10px; display: grid; gap: 4px; } .ax-progress-wrap small { color: var(--ax-mute); }
.ax-progress-wrap .ax-progress { position: static; border-radius: 3px; overflow: hidden; }
.ax-pick-buttons { display: none; }
.ax-bigbtn { flex: 1; min-height: 76px; display: grid; place-content: center; gap: 2px; border: 1px solid var(--ax-green-line); border-radius: 18px; background: var(--ax-green-soft); color: #14524c; font: inherit; cursor: pointer; text-align: center; transition: transform .15s var(--ax-ease), background .15s; -webkit-tap-highlight-color: transparent; }
.ax-bigbtn:active:not(:disabled) { transform: scale(.97); background: #dcebe3; } .ax-bigbtn:disabled { opacity: .5; }
.ax-bigbtn b { font-size: 17px; } .ax-bigbtn small { color: var(--ax-mute); }

/* iPhone / touch layout */
@supports (padding: max(0px)) {
  .ax-student-bar { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); padding-top: max(12px, env(safe-area-inset-top)); }
  .ax-student-main { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
}
.ax-student { min-height: 100vh; min-height: 100dvh; -webkit-text-size-adjust: 100%; }
@media (max-width: 640px), (pointer: coarse) {
  .ax-drop { display: none; }
  .ax-pick-buttons { display: flex; gap: 10px; }
  .ax-student-main { padding-top: 20px; padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
  .ax-title { font-size: 26px; }
  .ax-hero { align-items: stretch; } .ax-seg { width: 100%; } .ax-seg button { flex: 1; min-height: 40px; }
  .ax-assign { padding: 16px 16px 14px; } .ax-assign:hover { transform: none; box-shadow: none; }
  .ax-grid { grid-template-columns: 1fr; gap: 12px; }
  .ax-panel { padding: 16px; border-radius: 16px; }
  .ax-link, .ax-back { min-height: 44px; display: inline-flex; align-items: center; }
  .ax-file-tile { min-height: 64px; }
  .ax-student .el-input__inner, .ax-student input, .ax-student textarea { font-size: 16px; }
  .ax-steps { margin-top: 18px; } .ax-steps li { font-size: 12px; } .ax-steps li::after { margin: 0 6px; }
  .ax-submit-row { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; margin: 0; padding: 12px max(16px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left)); background: #faf8f3ee; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--ax-line); flex-wrap: nowrap; }
  .ax-submit-row .ax-help { margin: 0; flex: 1; min-width: 0; }
  .ax-submit-btn { min-width: 132px; min-height: 48px; font-size: 16px; }
  .ax-feedback { flex-direction: column; align-items: stretch; } .ax-feedback .el-button { min-height: 44px; }
  .ax-gallery.compact { grid-template-columns: repeat(2, 1fr); }
  .ax-detail-head { gap: 10px; } .ax-due.big b { font-size: 20px; }
  .el-message-box { width: min(92vw, 420px); }
}

/* auto-grading states */
.ax-chip[data-s="r-ready"] { background: #e4f1ec; color: #14624f; }
.ax-chip[data-s="r-manual"], .ax-chip[data-s="r-failed"] { background: #faeede; color: #96510b; }
.ax-chip[data-s="r-confirmed"] { background: #e6eefb; color: #2b4f93; }
.ax-chip[data-s="r-processing"] { background: #efe9f7; color: #5b3f8c; }
.ax-auto-run { display: flex; align-items: center; gap: 12px; margin: 12px 0; padding: 12px 14px; border-radius: 14px; background: #f5f1fb; border: 1px solid #e0d6f1; }
.ax-auto-run b { display: block; color: #5b3f8c; } .ax-auto-run small { color: var(--ax-mute); }
.ax-spin { width: 20px; height: 20px; border-radius: 50%; border: 3px solid #d9cdee; border-top-color: #5b3f8c; animation: ax-turn .9s linear infinite; flex: none; }
@keyframes ax-turn { to { transform: rotate(360deg); } }
.ax-gsum { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 12px 0; }
.ax-gsum div { padding: 8px 6px; text-align: center; border-radius: 12px; background: var(--ax-paper); border: 1px solid var(--ax-line); }
.ax-gsum b { display: block; font-family: var(--axiom-serif, Georgia, serif); font-size: 20px; line-height: 1.2; } .ax-gsum span { font-size: 11.5px; color: var(--ax-mute); }
.ax-gsum .warn { background: #faeede; border-color: #efd5b0; } .ax-gsum .warn b { color: #96510b; }
.ax-stats button { min-width: 74px; }
@media (max-width: 640px) { .ax-gsum { grid-template-columns: repeat(3, 1fr); } }

/* teacher pen annotation */
.ax-ink { position: fixed; inset: 0; z-index: 4000; display: flex; flex-direction: column; background: #1b2427; color: #fff; font-family: var(--axiom-sans, system-ui); -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.ax-ink-bar { display: flex; align-items: center; gap: 10px; padding: max(8px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 8px max(12px, env(safe-area-inset-left)); background: #243034; border-bottom: 1px solid #364449; }
.ax-ink-done { min-width: 72px; min-height: 44px; border-radius: 12px; border: 0; background: var(--ax-green, #1f6f68); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.ax-ink-tools { flex: 1; min-width: 0; display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; align-items: center; }
.ax-ink-tools::-webkit-scrollbar { display: none; }
.ax-ink-group { display: inline-flex; align-items: center; gap: 6px; flex: none; padding-right: 14px; border-right: 1px solid #364449; }
.ax-ink-group:last-child { border-right: 0; }
.ax-ink-btn, .ax-ink-w { min-width: 44px; min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid #3c4c52; background: #2d3b40; color: #e9eeef; font: inherit; font-size: 14px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ax-ink-btn.on, .ax-ink-w.on { background: #e8f2ee; color: #14423d; border-color: #e8f2ee; }
.ax-ink-btn:disabled { opacity: .35; }
.ax-ink-btn.stamp { font-size: 22px; line-height: 1; }
.ax-ink-w { display: grid; place-items: center; padding: 0 10px; } .ax-ink-w i { display: block; width: 22px; border-radius: 4px; background: currentColor; }
.ax-ink-color { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #2d3b40; outline: 2px solid transparent; cursor: pointer; margin: 5px; } .ax-ink-color.on { outline-color: #fff; }
.ax-ink-zoom { min-width: 48px; text-align: center; font-size: 13px; color: #b9c7ca; }
.ax-ink-finger { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #b9c7ca; white-space: nowrap; min-height: 44px; }
.ax-ink-save { font-size: 13px; color: #9fb3b7; white-space: nowrap; } .ax-ink-save[data-s="dirty"], .ax-ink-save[data-s="saving"] { color: #f0c77a; } .ax-ink-save[data-s="error"] { color: #ff9b94; }
.ax-ink-save .ax-link { color: #9fe0d6; }
.ax-ink-main { flex: 1; min-height: 0; display: flex; }
.ax-ink-scroll { flex: 1; min-width: 0; overflow: auto; background: #101719; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.ax-ink-sheet { position: relative; margin: 0 auto; background: #fff; line-height: 0; }
.ax-ink-sheet img { width: 100%; display: block; pointer-events: none; }
.ax-ink-canvas { position: absolute; left: 0; top: 0; touch-action: none; cursor: crosshair; }
.ax-ink-canvas.t-hand { cursor: grab; } .ax-ink-canvas.t-eraser { cursor: cell; }
.ax-ink-side { width: 260px; flex: none; overflow: auto; padding: 14px; background: #243034; border-left: 1px solid #364449; }
.ax-ink-side h4 { margin: 0 0 10px; font-size: 14px; color: #cfdadc; }
.ax-ink-item { padding: 10px; margin-bottom: 10px; border-radius: 14px; background: #2d3b40; }
.ax-ink-item-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 14px; } .ax-ink-item-head em { font-style: normal; font-size: 22px; font-weight: 700; color: #9fe0d6; }
.ax-ink-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ax-ink-chips button, .ax-ink-step button { min-width: 44px; min-height: 44px; border-radius: 12px; border: 1px solid #455961; background: #36474d; color: #fff; font: inherit; font-size: 16px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ax-ink-chips button.on { background: #9fe0d6; color: #12312d; border-color: #9fe0d6; font-weight: 700; }
.ax-ink-step { display: flex; gap: 6px; margin-top: 8px; } .ax-ink-step button { flex: 1; font-size: 14px; }
.ax-ink-side .ax-help { color: #9fb3b7; }
@media (max-width: 820px) {
  .ax-ink-main { flex-direction: column; }
  .ax-ink-side { width: auto; max-height: 38%; border-left: 0; border-top: 1px solid #364449; padding-bottom: max(14px, env(safe-area-inset-bottom)); }
}

/* deadline picker */
.ax-deadline { display: block; background: #faf8f3; border: 1px solid var(--ax-line, #e6e1d6); border-radius: 16px; padding: 14px 16px 16px; }
.ax-dl-label { color: var(--ax-muted, #77776e); font-size: 12px; font-weight: 600; letter-spacing: .3px; margin: 2px 0 8px; } .ax-dl-label em { font-style: normal; font-weight: 400; margin-left: 8px; }
.ax-dl-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin-bottom: 14px; }
.ax-dl-day { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px; min-height: 52px; padding: 7px 14px; border: 1px solid var(--ax-line, #e6e1d6); background: #fff; border-radius: 14px; cursor: pointer; font: inherit; color: inherit; text-align: left; }
.ax-dl-day b { font-size: 14.5px; font-weight: 600; } .ax-dl-day small { color: var(--ax-muted, #77776e); font-size: 12px; font-variant-numeric: tabular-nums; }
.ax-dl-day.plain { justify-content: center; } .ax-dl-day:hover { border-color: #b9d6c9; }
.ax-dl-day.on { background: #e3efe9; border-color: #6fa58f; box-shadow: inset 0 0 0 1px #6fa58f; color: #1f5242; } .ax-dl-day.on small { color: #1f5242; opacity: .85; }
.ax-dl-custom { display: flex; align-items: center; gap: 10px; margin: -4px 0 14px; } .ax-dl-date { width: 200px; }
.ax-dl-times { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.ax-dl-time-chip { height: 36px; padding: 0 14px; border: 1px solid var(--ax-line, #e6e1d6); background: #fff; border-radius: 999px; cursor: pointer; font: inherit; color: inherit; font-variant-numeric: tabular-nums; }
.ax-dl-time-chip:hover:not(:disabled) { border-color: #b9d6c9; } .ax-dl-time-chip.on { background: #e3efe9; border-color: #6fa58f; color: #1f5242; font-weight: 600; } .ax-dl-time-chip:disabled { opacity: .4; cursor: not-allowed; }
.ax-dl-time { width: 118px; height: 36px; border-radius: 999px; }
.ax-dl-summary { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-radius: 12px; background: #fff; border: 1px solid #d9e6df; border-left: 4px solid #2f6f5a; }
.ax-dl-summary.none { border-left-color: #cfc9ba; border-color: var(--ax-line, #e6e1d6); border-left-width: 4px; }
.ax-dl-summary.warn { background: #fdf0e3; border-color: #f0d2b0; border-left-color: #b4571b; }
.ax-dl-when { display: flex; flex-direction: column; line-height: 1.25; margin-right: auto; } .ax-dl-when small { color: var(--ax-muted, #77776e); font-size: 12px; font-variant-numeric: tabular-nums; } .ax-dl-when b { font-size: 17px; font-variant-numeric: tabular-nums; }
.ax-dl-rel { padding: 3px 12px; border-radius: 999px; background: #e3efe9; color: #1f5242; font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; }
.ax-dl-rel[data-tone="soon"] { background: #f7ecd2; color: #8a5a0a; } .ax-dl-rel[data-tone="urgent"], .ax-dl-rel[data-tone="late"] { background: #fbe3d3; color: #b4571b; }
.ax-dl-warn { color: #b4571b; font-size: 13px; flex-basis: 100%; } .ax-dl-muted { color: var(--ax-muted, #77776e); font-size: 13px; }
@media (max-width: 560px) { .ax-dl-days { grid-template-columns: repeat(2, 1fr); } .ax-deadline { padding: 12px; } }
