:root {
  color-scheme: light;
  --ink: #142e26;
  --muted: #53665d;
  --pale: #f3f5ef;
  --paper: #fff;
  --line: #dbe4da;
  --line-dark: #b9cbbd;
  --green: #17634e;
  --dark: #103b30;
  --soft: #e8f3ea;
  --rust: #9c3b2a;
  --sand: #fdf4df;
  --radius: 15px;
  --shadow: 0 1px 2px #132f1810;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.58;
  color: var(--ink);
  background: var(--pale);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100dvh; }
h1, h2, h3, p, dl { margin: 0; }
h1 { font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 760; letter-spacing: -.045em; line-height: 1.18; overflow-wrap: anywhere; }
h2 { font-size: 1.24rem; line-height: 1.35; }
h3 { font-size: 1.02rem; line-height: 1.4; }
p { overflow-wrap: anywhere; }
a { color: var(--green); text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .58; cursor: default; }
input, select, textarea { min-width: 0; }
input[type="checkbox"], input[type="radio"] { inline-size: 1.12rem; block-size: 1.12rem; flex: none; margin: 0; accent-color: var(--green); }
input:not([type="checkbox"], [type="radio"], [type="hidden"]), select, textarea {
  width: 100%; min-height: 2.75rem; border: 1px solid var(--line-dark); border-radius: 9px;
  padding: .6rem .75rem; background: var(--paper);
}
textarea { resize: vertical; }
::placeholder { color: #62736a; }
:focus-visible { outline: 3px solid #4b946c; outline-offset: 3px; }
fieldset { border: 0; min-width: 0; padding: 0; margin: 0; }
legend { margin-bottom: .45rem; padding: 0; font-weight: 650; }
img, iframe { max-width: 100%; }
code { font-family: "IBM Plex Mono", ui-monospace, monospace; background: var(--soft); border-radius: 5px; padding: .08em .38em; }
summary { cursor: pointer; color: var(--green); font-weight: 650; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { z-index: 10; position: fixed; inset: .65rem auto auto .65rem; background: #fff; padding: .6rem 1rem; border-radius: 8px; }
.muted { color: var(--muted); }
.small { font-size: .84rem; }
.eyebrow { display: inline-block; font-size: .8rem; letter-spacing: .1em; font-weight: 700; color: var(--green); }

.button {
  display: inline-flex; align-items: center; justify-content: center; text-align: center; gap: .25rem;
  font-weight: 680; white-space: normal; min-height: 2.55rem; padding: .54rem 1rem;
  border: 1px solid transparent; border-radius: 8px; text-decoration: none; line-height: 1.42;
  color: var(--green); background: transparent;
}
.button.primary { background: var(--green); color: #fff; }
.button.primary:hover:not(:disabled) { background: var(--dark); }
.button.secondary { border-color: var(--line-dark); background: #fff; }
.button.secondary:hover:not(:disabled), .button.quiet:hover:not(:disabled) { background: var(--soft); }
.button.full { width: 100%; }
.danger-text { color: var(--rust); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; }
.actions > form { margin: 0; }
.notice { background: var(--soft); border: 1px solid #c8dfce; color: var(--dark); border-radius: 9px; padding: .75rem .9rem; margin: 0 0 1rem; overflow-wrap: anywhere; }
.notice.error { background: #fcf0ea; border-color: #f0c6b9; color: #762e20; }
.notice.success { background: #eaf5e9; border-color: #cae3cc; color: #165139; }
.brand { display: flex; align-items: center; gap: .8rem; color: inherit; text-decoration: none; font-weight: 740; font-size: 1.12rem; line-height: 1.22; }
.brand-mark { flex: none; display: grid; place-items: center; width: 2.45rem; height: 2.45rem; color: #f6ffed; border: 1px solid #82a795; border-radius: 10px; font-size: 1.25rem; font-weight: 800; }
.brand small, .identity small { display: block; color: #b5cbbf; margin-top: .27rem; font-size: .77rem; font-weight: 500; }

.login-page { background: #f4f5ef; }
.login-layout {
  margin: 0 auto; min-height: calc(100dvh - 4.5rem); max-width: 1580px; display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: stretch; padding: min(3vw, 2.5rem);
}
.login-intro {
  display: flex; flex-direction: column; justify-content: space-between; isolation: isolate; overflow: hidden; position: relative;
  background: radial-gradient(ellipse at 85% 80%, #25634f 0%, #153e34 55%, #10362d 100%);
  color: #fbfff6; border-radius: 23px; padding: clamp(2rem, 5.5vw, 5.5rem);
}
.login-intro::after {
  position: absolute; z-index: -1; content: ""; border: 1px solid #bddebd35;
  width: 36rem; height: 36rem; border-radius: 50%; right: -20rem; bottom: -19rem;
  box-shadow: 0 0 0 2.2rem #bddebd15, 0 0 0 4.4rem #bddebd10, 0 0 0 6.6rem #bddebd0b;
}
.login-headline { margin: 4rem 0; }
.login-headline h1 { margin: .85rem 0 1.05rem; font-size: clamp(2.7rem, 6.8vw, 6.4rem); line-height: 1.13; letter-spacing: -.065em; }
.login-bottom { color: #d4e3d8; font-size: .9rem; }
.login-card { margin: auto; padding: clamp(1rem, 4vw, 2.4rem); width: min(100%, 450px); }
.login-card h2 { font-size: 2.1rem; letter-spacing: -.04em; }
.login-card > p { margin: .5rem 0 1.75rem; }
.login-card .button { margin-top: .35rem; min-height: 2.9rem; }
.login-card label span { color: var(--muted); margin-left: .32rem; font-weight: 500; font-size: .78rem; }
.login-help { color: var(--muted); margin-top: 1.25rem; font-size: .88rem; }
.login-language { float: right; color: var(--green); font-size: .88rem; font-weight: 650; }

.site { display: grid; grid-template-columns: 238px minmax(0, 1fr); min-height: 100dvh; }
.sidebar {
  display: flex; flex-direction: column; gap: 2.75rem; position: sticky; top: 0;
  background: var(--dark); color: #f5fff7; padding: 1.75rem 1.15rem 1.2rem; height: 100dvh; overflow-y: auto;
}
.sidebar .brand { padding: .45rem .35rem; }
.navigation { display: grid; gap: .35rem; }
.navigation a {
  display: block; border-radius: 8px; padding: .69rem .72rem; color: #e6f2e8; text-decoration: none;
  font-size: .93rem; font-weight: 570;
}
.navigation a:hover, .navigation a[aria-current="page"] { background: #e1f7e728; color: #fff; }
.navigation a[aria-current="page"] { font-weight: 720; }
.account-section {
  margin-top: auto; padding: .9rem .25rem .2rem; border-top: 1px solid #9abfab52;
}
.identity {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .55rem; font-size: .85rem;
}
.identity strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.identity-avatar { color: #183e31; background: #cde9d3; width: 1.95rem; height: 1.95rem; border-radius: 50%; display: grid; place-items: center; font-weight: 760; }
.identity small { font-size: .71rem; margin-top: 0; }
.signout { color: #dcebe1; padding: .2rem .12rem; background: transparent; border: 0; font-size: .78rem; }
.signout:hover { text-decoration: underline; }
.account-credit { margin-top: .55rem; color: #d4e3d8; font-size: .78rem; line-height: 1.45; overflow-wrap: anywhere; }
.account-credit a { color: #f0fff4; }
.main { width: 100%; min-width: 0; max-width: 1320px; padding: clamp(1.3rem, 4vw, 3.5rem); justify-self: center; }
.site-credit {
  padding: 1rem 1.35rem 3.5rem;
  text-align: center;
  color: var(--muted);
  font-size: .84rem;
  overflow-wrap: anywhere;
}
.site-credit a { color: var(--green); }
.feedback-widget {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 8;
  max-width: calc(100vw - 2rem);
}
.feedback-widget > summary {
  display: block;
  width: fit-content;
  margin-left: auto;
  padding: .6rem 1rem;
  border: 1px solid var(--green);
  border-radius: .7rem;
  background: var(--green);
  color: #fff;
  cursor: pointer;
  font-weight: 680;
  box-shadow: 0 3px 15px #103b3033;
}
.feedback-widget > summary::-webkit-details-marker { display: none; }
.feedback-form {
  width: min(21.5rem, calc(100vw - 2rem));
  max-height: min(31rem, calc(100dvh - 5.2rem));
  overflow: auto;
  margin-top: .4rem;
  padding: .95rem;
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: var(--paper);
  box-shadow: 0 8px 28px #103b3030;
}
.feedback-form textarea { width: 100%; min-width: 0; }
.feedback-form .form-error { color: var(--rust); }
.feedback-message + .feedback-message { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.feedback-message .written-answer { overflow-wrap: anywhere; }
.account-owner { padding-block: .6rem; }
.deadline-form { max-width: 22rem; margin-top: .8rem; }
.personal-time { display: block; margin-top: .22rem; color: var(--muted); }
#answer-progress { white-space: nowrap; }
.page-head { display: flex; gap: .8rem 1.1rem; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; margin: 0 0 1.55rem; }
.page-head h1 { margin: .18rem 0 .45rem; }
.page-head .eyebrow, .page-head .tag-line { margin-bottom: .35rem; }
.back-link { display: inline-block; font-weight: 650; margin: 0 0 .9rem; text-decoration: none; }
.panel { min-width: 0; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); padding: clamp(.9rem, 2.5vw, 1.45rem); margin: 0 0 1.15rem; }
.panel h2:not(.panel-heading h2) { margin-bottom: .65rem; }
.panel h3 { margin-top: 1rem; }
.panel > .notice:last-child { margin-bottom: 0; }
.panel-heading { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; flex-wrap: wrap; margin-bottom: .7rem; }
.panel-heading + .task-row, .panel-heading + .roster-line { border-top: 1px solid var(--line); }

.status-grid, .metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: .65rem; margin: 0 0 1.15rem; }
.stat, .metric {
  display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 11px;
  padding: .75rem .84rem; background: var(--paper); text-decoration: none; color: var(--ink); box-shadow: var(--shadow);
}
.stat:hover { border-color: var(--green); }
.stat.selected { background: #e0efe1; border-color: #91ad9b; }
.stat span, .metric span { color: var(--muted); font-size: .82rem; line-height: 1.35; }
.stat strong, .metric strong { font-size: 1.62rem; line-height: 1.25; margin-top: .35rem; font-variant-numeric: tabular-nums; }
.task-list { padding-bottom: .35rem; }
.task-row {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  border-bottom: 1px solid var(--line); min-height: 5.7rem; color: inherit; text-decoration: none; padding: .85rem .45rem;
}
.task-row:last-child { border-bottom: 0; }
.task-row:hover { background: #f4f8f3; }
.task-main { display: grid; gap: .28rem; min-width: 0; overflow-wrap: anywhere; }
.task-main > strong { font-size: 1.1rem; line-height: 1.3; }
.task-side { flex: none; display: grid; grid-template-columns: max-content auto; gap: 0 .6rem; align-items: center; text-align: right; font-size: .85rem; }
.task-side > .muted { grid-column: 1; }
.row-arrow { grid-column: 2; grid-row: 1 / span 2; font-size: 1.55rem; line-height: 1; color: var(--green); }
.tag-line { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.tag { display: inline-flex; width: fit-content; border-radius: 5px; padding: .16rem .45rem; font-size: .76rem; line-height: 1.45; font-weight: 660; color: var(--dark); background: #edf1ee; }
.status-due { background: #dcefe0; color: #1a5d3a; }
.status-overdue { background: #fff0ce; color: #714a10; }
.status-past { background: #ecf0ed; color: #495952; }
.status-scheduled { background: #e4eef7; color: #275373; }
.status-draft { background: #eee8f7; color: #57406e; }
.type-homework { background: #f0f2eb; color: #4a614f; }
.type-exam { background: #eee9f6; color: #553e76; }
.empty { text-align: center; padding: 2.35rem 1rem; color: var(--muted); }
.empty strong { color: var(--ink); font-size: 1.03rem; }
.empty p { margin: .35rem 0 .85rem; }

.grid-two, .grid-three, .grid-form { display: grid; gap: .85rem 1rem; }
.grid-two, .grid-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.align-start { align-items: start; }
.span-two { grid-column: 1 / -1; }
.field, .form-stack { display: grid; gap: .4rem; }
.field label, .form-stack label:not(.check-line, .choice-pill) { font-weight: 660; }
.field small, .switch-card small { color: var(--muted); font-size: .82rem; }
.form-stack input + label, .form-stack textarea + label { margin-top: .36rem; }
.form-stack .button { justify-self: start; margin-top: .65rem; }
.form-stack .button.full { justify-self: stretch; }
.narrow { max-width: 480px; }
.check-line { display: flex; align-items: center; gap: .45rem; width: fit-content; cursor: pointer; }
.choice-list { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; }
.choice-pill, .switch-card { display: flex; gap: .55rem; align-items: center; padding: .43rem .58rem; background: #f6f8f4; border: 1px solid var(--line); border-radius: 7px; overflow-wrap: anywhere; cursor: pointer; }
.choice-pill:has(:checked), .switch-card:has(:checked) { background: var(--soft); border-color: #a9c6b2; }
.group-field { margin: .65rem 0; }
.switch-card { align-items: flex-start; padding: .7rem; font-weight: 660; }
.switch-card input { margin-top: .15rem; }
.switch-card small { display: block; font-weight: 500; margin-top: .18rem; }
.roster-line { border-bottom: 1px solid var(--line); }
.roster-line:last-child { border-bottom: 0; }
.roster-line summary { display: list-item; padding: .63rem .15rem; overflow-wrap: anywhere; }
.roster-line summary span { margin-left: .55rem; color: var(--muted); font-weight: 500; }
.roster-line[open] { margin-bottom: .35rem; }
.inner-form { background: #f5f7f2; border-radius: 9px; padding: .85rem; margin: .1rem 0 .65rem; }
.grid-form > .button, .grid-form > .check-line { align-self: end; justify-self: start; }
.inner-form .check-line { align-self: center; }

#task-editor > .panel h3:not(.question-head h3) { margin: 1.2rem 0 .55rem; }
.quantity input[type="number"] { width: 5rem; }
.quantity label { font-weight: 650; }
.editor-question:first-child { margin-top: 1rem; }
.editor-question { background: #fcfdfa; border-radius: 10px; padding: .9rem; border: 1px solid var(--line); }
.editor-question > * + * { margin-top: .75rem; }
.editor-question + .editor-question { margin-top: .8rem; }
.question { padding: .9rem 0; border-top: 1px solid var(--line); margin-top: .6rem; }
.question.editor-question { padding: .9rem; }
.question-head { display: flex; align-items: center; justify-content: space-between; gap: .35rem .65rem; flex-wrap: wrap; }
.question-head h3, .panel .question-head h3, .panel .question-head h2 { margin: 0; }
.question-head > span { color: var(--muted); font-size: .82rem; }
.edit-option { display: grid; grid-template-columns: 1.7rem minmax(0, 1fr) auto; align-items: center; gap: .45rem; margin-bottom: .4rem; }
.option-letter { color: #2a5541; font-weight: 760; font-size: .84rem; font-variant-numeric: tabular-nums; text-align: center; }
.correct-check { padding: .25rem .24rem; font-size: .84rem; }
.upload { min-width: 0; }
.upload label > span { display: block; color: var(--muted); font-weight: 630; font-size: .81rem; margin-bottom: .22rem; }
.upload input[type="file"] { font-size: .83rem; background: #f5f8f3; }
input::file-selector-button { font: inherit; margin-right: .55rem; border: 0; border-radius: 5px; padding: .35rem .5rem; background: #e1eee2; cursor: pointer; color: var(--dark); }
.existing-files { margin-bottom: .6rem; }
.existing-file { display: flex; justify-content: space-between; gap: .5rem; margin-bottom: .3rem; overflow-wrap: anywhere; }
.existing-file a { min-width: 0; }
.existing-file .check-line { flex: none; }
#add-question { margin-top: .75rem; }
.editor-actions { padding: .25rem 0 .9rem; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(138px, 1fr)); gap: .75rem 1rem; margin: .55rem 0; }
.facts dt { color: var(--muted); font-size: .83rem; }
.facts dd { margin: .12rem 0 0; font-weight: 680; overflow-wrap: anywhere; }
.instruction, .written-answer { white-space: pre-wrap; overflow-wrap: anywhere; margin: .6rem 0; }
.written-answer { border-radius: 8px; border: 1px solid var(--line); padding: .7rem; background: #f7f9f4; }
.facts ~ .actions, .facts ~ .notice, .facts ~ .muted { margin-top: .85rem; }
.settings-detail { margin-top: .8rem; }
.settings-detail > summary { width: fit-content; }
.table-wrap { overflow: auto; max-width: 100%; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .89rem; }
th, td { padding: .56rem .6rem; border-bottom: 1px solid var(--line); }
thead th { background: #f4f7f1; color: var(--muted); font-size: .79rem; white-space: nowrap; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody tr:hover { background: #f8faf6; }
td { overflow-wrap: anywhere; }
td .tag + .tag { margin-top: .15rem; }
.question-preview > summary { font-size: 1.15rem; }
.material-list { display: grid; gap: .4rem; margin: .75rem 0; }
.material { padding: .55rem .6rem; border: 1px solid var(--line); background: #f8faf5; border-radius: 7px; }
.material-bar { display: flex; align-items: baseline; justify-content: space-between; gap: .45rem; font-size: .87rem; }
.material-bar strong { min-width: 0; overflow-wrap: anywhere; }
.material-bar a { flex: none; }
.material details { margin-top: .25rem; font-size: .82rem; }
.material img { display: block; height: auto; max-height: 75vh; object-fit: contain; margin-block: .5rem; }
.material iframe { display: block; border: 1px solid var(--line); border-radius: 5px; background: #fff; width: 100%; height: min(70vh, 34rem); margin: .45rem 0 .2rem; }
.option-list, .answers-options { display: grid; gap: .36rem; padding: 0; margin: .6rem 0; }
.option-list li, .answer-option {
  display: grid; grid-template-columns: 1.2rem minmax(0, 1fr) auto; align-items: start;
  gap: .55rem; padding: .52rem .64rem; border: 1px solid var(--line); border-radius: 7px; overflow-wrap: anywhere;
}
.option-list li.marked, .answer-option:has(:checked) { background: var(--soft); border-color: #a8c5b0; }
.option-list li.correct-option { box-shadow: inset 3px 0 0 var(--green); }
.option-caption { font-size: .76rem; color: var(--green); white-space: nowrap; }
.short-field { width: min(100%, 12rem); margin: .6rem 0; }
.question + .field { margin-bottom: .6rem; }
.answer-toolbar {
  position: sticky; z-index: 1; top: .55rem; display: flex; justify-content: space-between; gap: .5rem;
  border: 1px solid #b0c9b5; border-radius: 10px; background: #f0f7ee; padding: .65rem .85rem; margin: 0 0 .9rem;
  box-shadow: 0 3px 8px #143e2312;
}
.answer-toolbar span, .answer-toolbar strong { display: block; }
.answer-toolbar > div:last-child { text-align: right; }
#remaining { font-variant-numeric: tabular-nums; }
.answer-card .question-head { margin-bottom: .6rem; }
.answer-option { grid-template-columns: auto 1rem minmax(0, 1fr); cursor: pointer; }
.answer-option input { align-self: center; }
.answer-option:hover { border-color: #83ac94; }
.clear-choice { font-size: .85rem; }
.submit-panel { display: flex; justify-content: space-between; align-items: center; gap: .65rem; flex-wrap: wrap; }
.submit-panel h2 { margin-bottom: .15rem !important; }
.answer-gate p { margin-bottom: .85rem; }

.prose { max-width: 850px; }
.prose h2:not(:first-child) { margin-top: 1.2rem; }
.prose p + p { margin-top: .6rem; }
.error-panel { max-width: 670px; margin: 3rem auto; }
.error-panel h1 { font-size: 1.65rem; margin: .4rem 0 1rem; }
.dialog {
  max-width: min(530px, calc(100vw - 2rem)); padding: 0; border-radius: 16px; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink); box-shadow: 0 18px 70px #0b291a55;
}
.dialog::backdrop { background: #112f28a3; }
.dialog-inner { padding: clamp(1.1rem, 5vw, 1.8rem); }
.dialog h2 { font-size: 1.6rem; margin: .2rem 0 .75rem; }
.dialog p { margin-bottom: .65rem; }
.dialog form { margin-top: 1rem; }
html:fullscreen .site { grid-template-columns: minmax(0, 1fr); }
html:fullscreen .sidebar, html:fullscreen .main > .back-link { display: none; }
html:fullscreen .main { max-width: 1000px; }

@media (max-width: 900px) {
  .site { grid-template-columns: 202px minmax(0, 1fr); }
  .main { padding-inline: 1.55rem; }
  .grid-three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 780px) {
  .login-layout { grid-template-columns: minmax(0, 1fr); padding: .75rem; gap: .7rem; min-height: auto; }
  .login-intro { border-radius: 15px; padding: 1.25rem; }
  .login-headline { margin: 1.3rem 0 0; }
  .login-headline h1 { font-size: clamp(2rem, 8vw, 3.2rem); margin: .35rem 0 .45rem; }
  .login-bottom { display: none; }
  .login-card { padding: .8rem 1rem .75rem; }
  .login-card > p { margin-bottom: 1rem; }
  .login-card input, .feedback-form textarea { font-size: 16px; }
  .site-credit { width: min(100%, 450px); margin-inline: auto; padding: .4rem 1.75rem 5rem; text-align: left; }
}
@media (max-width: 760px) {
  .site { display: block; }
  .sidebar {
    position: static; height: auto; overflow: visible; display: grid; align-items: start;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: .65rem 1rem; padding: .75rem 1rem;
  }
  .sidebar .brand { padding: .25rem 0; gap: .5rem; width: fit-content; font-size: .95rem; }
  .sidebar .brand-mark { width: 2rem; height: 2rem; font-size: 1.05rem; border-radius: 7px; }
  .sidebar .brand small { margin-top: .12rem; font-size: .67rem; }
  .navigation { grid-row: 2; grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .18rem; }
  .navigation a { display: flex; align-items: center; min-height: 44px; font-size: .86rem; padding: .35rem .4rem; }
  .account-section { border: 0; padding: 0; margin: 0; width: min(100%, 15rem); justify-self: end; }
  .identity { grid-template-columns: minmax(0, 1fr) auto; gap: .3rem; }
  .identity-avatar { display: none; }
  .signout { min-height: 44px; padding: .25rem; }
  .account-credit { margin-top: .05rem; }
  .main { padding: 1.1rem .88rem 4.55rem; }
  .page-head { margin-bottom: 1.05rem; }
  .grid-two, .grid-three, .grid-form { grid-template-columns: minmax(0, 1fr); }
  .grid-two > .panel { margin-bottom: .3rem; }
  .grid-two + .panel { margin-top: .8rem; }
  .status-grid, .metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .42rem; }
  .stat, .metric { padding: .55rem .46rem; }
  .stat span, .metric span { font-size: .76rem; }
  .task-row { padding-inline: .1rem; }
  .task-side { font-size: .8rem; }
  .tag { font-size: .69rem; }
  .editor-question, .question.editor-question { padding: .65rem; }
  .option-caption { white-space: normal; }
}
@media (max-width: 360px) {
  .status-grid, .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .task-side { max-width: 42%; grid-template-columns: minmax(0, 1fr) auto; }
}
