/* Shared visual system: quiet surfaces, measured spacing, one restrained accent. */
:root {
  --bg: #f7f8fa;
  --bg-grad: #f7f8fa;
  --text: #242a2e;
  --text-2: #626b70;
  --text-3: #7c858a;
  --line: #e8eceb;
  --line-strong: #d5dcda;
  --accent: #274c42;
  --accent-deep: #193a31;
  --accent-soft: #edf3ef;
  --accent-ring: #274c4220;
  --ok: #39765e;
  --ok-soft: #eff6f1;
  --warn: #986b2e;
  --warn-soft: #fbf5e9;
  --err: #b44949;
  --err-soft: #fcf0ef;
  --purple: #5b6478;
  --purple-soft: #f0f2f6;
  --radius-s: 7px;
  --radius: 10px;
  --radius-l: 12px;
  --shadow-1: 0 2px 4px #243a2f03;
  --shadow-2: 0 8px 30px #243a2f06;
  --shadow-pop: 0 20px 80px #182b3420;
}
body { background: var(--bg); font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 14px; }
a { color: var(--accent); text-decoration: none; }
button, input { font: inherit; }
button { display: inline-flex; justify-content: center; align-items: center; gap: 7px; border-radius: 7px; padding: 9px 15px; font-size: 13px; font-weight: 500; box-shadow: none; }
button:hover { background: #f5f7f6; border-color: #c5cfca; box-shadow: none; }
button.primary, button.primary:hover { box-shadow: none; }
button:disabled { opacity: .45; }
.icon { width: 19px; height: 19px; display: inline-block; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.brand { color: var(--text); font-size: 17px; font-weight: 650; letter-spacing: -.3px; }
.brand-logo { width: 36px; height: 36px; border-radius: 10px; background: var(--accent); box-shadow: none; }
.brand-logo .icon { width: 22px; height: 22px; }
.brand small { display: block; font-size: 10px; font-weight: 400; color: var(--text-3); letter-spacing: 2px; margin-top: 1px; }
.skip-link { position: fixed; top: -80px; left: 24px; padding: 12px 20px; z-index: 110; background: #fff; border: 1px solid var(--accent); border-radius: 8px; }
.skip-link:focus { top: 12px; }
.workspace { max-width: none; padding: 0; margin: 0; }
.sidebar { width: 224px; position: fixed; inset: 0 auto 0 0; background: white; border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 30px 18px 18px; z-index: 50; }
.sidebar .brand { padding: 0 10px; margin-bottom: 45px; }
.nav-caption { font-size: 11px; color: var(--text-3); padding: 0 14px; margin-bottom: 12px; letter-spacing: 1px; }
.sidebar .tabs { flex-direction: column; gap: 5px; border: 0; background: none; border-radius: 0; padding: 0; }
.sidebar .tab { display: flex; justify-content: flex-start; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 7px; font-size: 13px; font-weight: 500; color: var(--text-2); }
.sidebar .tab:hover { background: #f6f8f7; box-shadow: none; }
.sidebar .tab.active { color: var(--accent); background: var(--accent-soft); font-weight: 600; box-shadow: none; }
.tab-badge { background: #e9eeec; font-size: 10px; margin-left: auto; min-width: 20px; line-height: 20px; padding: 0 5px; border-radius: 5px; }
.sidebar-bottom { margin-top: auto; padding-top: 30px; }
.local-note { font-size: 11px; color: var(--text-3); display: flex; align-items: center; gap: 7px; padding: 16px 14px; }
.connection-dot { width: 6px; height: 6px; border-radius: 50%; background: #92a397; display: inline-block; flex: none; }
.sidebar-account { border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 18px 8px 0; width: 100%; justify-content: flex-start; gap: 10px; text-align: left; }
.sidebar-account:hover { background: transparent; }
.sidebar-account strong { font-size: 12px; font-weight: 600; display: block; max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
.sidebar-account small { font-size: 10px; color: var(--text-3); display: block; margin-top: 2px; }
.sidebar-account > .icon { width: 15px; margin-left: auto; color: var(--text-3); }
.account-avatar { width: 33px; height: 33px; border-radius: 50%; background: #edf0ed; color: var(--accent); display: inline-flex; align-items: center; justify-content: center; flex: none; font-size: 13px; }
.workspace-content { margin-left: 224px; min-height: 100vh; display: flex; flex-direction: column; }
.workspace-topbar { height: 70px; border-bottom: 1px solid var(--line); background: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 44px; gap: 20px; }
.breadcrumb { font-size: 12px; color: var(--text-3); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.breadcrumb span { margin: 0 12px; color: #c4cbc7; }
.breadcrumb strong { color: var(--text-2); font-weight: 500; }
.workspace-meta { display: flex; align-items: center; gap: 22px; font-size: 11px; color: var(--text-3); flex: none; }
.connection-state { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; flex: none; }
.connection-state.connected .connection-dot { background: var(--ok); }
.connection-state.connected { color: var(--ok); }
.workspace main { width: 100%; max-width: 1240px; margin: 0 auto; padding: 42px 44px 30px; flex: 1; outline: none; }
.page-heading { display: flex; justify-content: space-between; gap: 24px; margin-bottom: 32px; align-items: center; }
.page-heading > div { min-width: 0; }
.eyebrow { font-size: 10px; letter-spacing: 2px; color: #8c9690; margin-bottom: 10px; }
h1 { font-size: 28px; font-weight: 600; line-height: 1.5; letter-spacing: -.6px; }
.page-heading p { font-size: 13px; color: var(--text-3); margin-top: 6px; }
.page-number { color: #a6b0aa; font-size: 11px; letter-spacing: 1px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.workspace-footer { display: flex; justify-content: space-between; padding: 22px 44px; color: #8c9690; font-size: 10px; }
.card { box-shadow: none; border-radius: 12px; padding: 25px 28px; }
.card-head { margin-bottom: 24px; gap: 20px; }
.card-title { font-size: 16px; font-weight: 600; letter-spacing: 0; }
.card-desc { font-size: 12px; color: var(--text-3); line-height: 1.8; max-width: 70ch; }
.page > .card { animation: fadeUp .2s ease both; }
.connection-layout { display: grid; grid-template-columns: 1fr 380px; background: white; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.connection-intro { padding: 44px 40px; background: #fff; }
.section-kicker { font-size: 11px; color: var(--accent); padding-left: 12px; border-left: 2px solid #89a98e; }
.connection-intro h2 { font-size: 29px; line-height: 1.65; font-weight: 500; letter-spacing: -.8px; margin-top: 18px; }
.connection-intro > p { color: var(--text-3); font-size: 12px; line-height: 1.9; margin-top: 12px; max-width: 340px; }
.connect-steps { list-style: none; margin-top: 32px; display: flex; flex-direction: column; gap: 21px; }
.connect-steps li { display: flex; gap: 16px; }
.connect-steps li > span { color: #8aa193; font-size: 11px; padding-top: 2px; font-variant-numeric: tabular-nums; }
.connect-steps strong { font-size: 13px; font-weight: 500; }
.connect-steps p { font-size: 11px; color: var(--text-3); margin-top: 3px; }
.privacy-note { display: flex; gap: 8px; align-items: center; margin-top: 32px; color: #879189; font-size: 10px; }
.privacy-note .icon { width: 15px; height: 15px; }
.qr-card { border: 0; border-left: 1px solid var(--line); border-radius: 0; padding: 40px 30px 24px; background: #fcfdfc; }
.qr-card .card-head { justify-content: center; text-align: center; margin-bottom: 27px; }
.qr-box { width: 216px; height: 216px; border-radius: 8px; box-shadow: none; border: 1px solid #dee5e0; padding: 12px; }
.qr-box::after { display: none; }
.qr-box img { width: 192px; height: 192px; }
.qr-ph { font-size: 11px; text-align: center; }
.spinner { width: 25px; height: 25px; border-width: 2px; }
.status-row { font-size: 12px; margin-top: 18px; }
.status-sub { font-size: 10px; min-height: 34px; margin: 6px auto 0; max-width: 240px; line-height: 1.8; text-align: center; overflow-wrap: anywhere; }
.qr-area .actions { margin-top: 16px; }
.qr-area button { font-size: 11px; padding: 7px 18px; }
.qr-area button .icon { width: 14px; height: 14px; }
.qr-footer { font-size: 10px; color: #98a098; margin-top: 24px; }
.login-ok { margin-top: 20px; border-radius: 8px; }
.login-ok .btn-row { gap: 6px; }
.login-ok button { font-size: 11px; }
.connection-footer { display: flex; justify-content: center; align-items: center; gap: 28px; color: var(--text-3); font-size: 11px; padding: 13px; }
.connection-footer > div { display: flex; align-items: center; gap: 7px; }
.connection-footer .icon { width: 15px; height: 15px; color: #8b9c90; }
.course-toolbar { gap: 8px; margin-bottom: 22px; }
.search-field { display: flex; align-items: center; flex: 1; max-width: 460px; gap: 8px; border: 1px solid var(--line-strong); background: #fff; border-radius: 7px; padding-left: 12px; }
.search-field .icon { width: 16px; color: var(--text-3); }
.search-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.search-field input { border: 0; outline: none; box-shadow: none; width: 100%; min-width: 0; background: transparent; padding: 9px 12px 9px 0; font-size: 12px; color: var(--text); }
.search-field input:focus { box-shadow: none; }
.course-toolbar button { font-size: 12px; }
.course-list { border: 0; border-radius: 0; }
.course-term-group { margin-bottom: 24px; }
.course-term-group:has(.course-item):not(:has(.course-item:not(.filtered))) { display: none; }
.course-term-head { font-size: 12px; font-weight: 600; padding: 8px 0 12px; }
.course-item { padding: 17px 12px; gap: 16px; border-bottom: 1px solid #edf0ee; }
.course-item:hover { background: #f8faf8; }
.course-item:has(input:checked) { background: #fbfcfb; }
.course-item-name { font-size: 14px; font-weight: 500; }
.course-item-sub { font-size: 11px; margin-top: 6px; }
.course-actions { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 12px; }
.term-select-all { margin-left: 8px; font-size: 11px; }
.empty-state, .guest-box { background: #fcfdfc; border: 1px solid var(--line); border-radius: 8px; padding: 56px 24px; color: var(--text-3); font-size: 12px; }
.empty-state > .empty-icon { display: block; width: 30px; height: 30px; margin: 0 auto 15px; color: #81978a; }
.empty-state > strong { display: block; color: var(--text-2); font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.empty-state button { margin-top: 18px; font-size: 12px; }
.empty-box { padding: 35px 20px; }
.course-loading { min-height: 220px; justify-content: center; gap: 12px; font-size: 12px; }
.error-box, .ai-status, .solver-warn { border-radius: 7px; font-size: 12px; overflow-wrap: anywhere; }
.sum-pill { font-size: 11px; font-weight: 500; padding: 5px 11px; border-radius: 5px; margin-bottom: 7px; }
.group-head { font-size: 13px; padding: 14px 0; }
.course-group { border-radius: 8px; margin-bottom: 14px; }
.cg-head { padding: 13px 16px; background: #f9faf9; gap: 10px; }
.cg-head:hover { background: #f2f5f2; }
.cg-name { font-size: 13px; font-weight: 500; }
.cg-count { font-size: 10px; border: 0; padding: 2px 8px; border-radius: 4px; }
.cg-nearest { font-size: 10px; font-weight: 500; }
.cg-body { padding: 8px 16px; gap: 0; }
.cg-body .task-item { border-radius: 0; }
.task-item { padding: 17px 10px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; gap: 12px; }
.task-item:last-child { border-bottom: 0; }
.task-item:hover { background: #fbfcfb; box-shadow: none; }
.task-item.is-todo, .task-item.is-done { border-left: 0; }
.task-title { font-size: 13px; font-weight: 500; }
.task-sub { margin-top: 7px; font-size: 11px; line-height: 1.8; }
.type-badge { font-size: 10px; font-weight: 500; border-radius: 4px; padding: 3px 7px; }
.status-chip { font-size: 10px; border-radius: 4px; padding: 3px 7px; }
.dl { font-size: 10px; border: 0; background: #f4f6f5; border-radius: 4px; }
.ai-btn { font-size: 10px; font-weight: 500; border-radius: 5px; padding: 5px 9px; background: #f3f5f3; color: var(--accent); }
.result-actions { padding-top: 18px; border-top: 1px solid var(--line); }
.result-actions button { flex: none; font-size: 12px; min-width: auto; }
.todo-row > .task-item { flex: 1; min-width: 0; }
.todo-row > .todo-cb { margin-top: 22px; }
.term-head { border: 0; background: none; padding: 8px 0 12px; border-bottom: 1px solid var(--line); border-radius: 0; }
.term-name { font-size: 13px; font-weight: 600; }
.todo-batch-bar { border-color: var(--line); background: #f7f9f7; border-radius: 8px; padding: 14px; }
.batch-check { font-size: 12px; font-weight: 500; }
.batch-right { gap: 8px; }
.batch-mode { border-radius: 6px; }
.batch-mode label { font-size: 11px; border-radius: 4px; padding: 4px 8px; }
.batch-progress { box-shadow: none; }
.me-row { flex-wrap: wrap; }
.me-row .me-info { min-width: 120px; }
.avatar { width: 43px; height: 43px; background: var(--accent-soft); color: var(--accent); font-size: 18px; font-weight: 500; box-shadow: none; }
.me-name { font-size: 14px; font-weight: 500; }
.me-sub, .me-guest { font-size: 11px; }
.form { max-width: 660px; gap: 18px; }
.form-field > span { font-size: 12px; font-weight: 500; }
.form-field input { font-size: 13px; min-width: 0; width: 100%; }
.form-check { font-size: 12px; }
.cookie-list { font-size: 11px; border-radius: 7px; }
.ck-name { width: 90px; }
.meta, .form-note, .about-text { font-size: 11px; }
.modal-mask { background: #17291f66; backdrop-filter: blur(2px); }
.modal { max-width: 720px; border-radius: 12px; }
.modal-head { padding: 18px 24px; }
.modal-title { font-size: 14px; font-weight: 500; }
.modal-close { padding: 6px; }
.modal-close .icon { width: 17px; height: 17px; }
.modal-body { padding: 24px; }
.solver-log:empty { display: none; }
.toast { font-size: 12px; border-radius: 7px; padding: 12px 20px; box-shadow: 0 4px 16px #0001; }
/* Platform login */
.auth-body { background: white; }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-story { background: #f1f4ef; display: flex; flex-direction: column; padding: 46px 64px 30px; position: relative; overflow: hidden; }
.auth-story .brand { font-size: 16px; }
.auth-story-content { margin: auto 0; padding: 64px 0; max-width: 430px; align-self: center; width: 100%; }
.auth-story .section-kicker { font-size: 11px; }
.auth-story h1 { font-size: 42px; line-height: 1.6; font-weight: 500; margin: 20px 0 16px; letter-spacing: -1.5px; }
.auth-story-content > p { color: #778478; font-size: 13px; line-height: 1.9; max-width: 330px; }
.planner-art { margin-top: 52px; max-width: 380px; border-top: 1px solid #d6ded3; border-bottom: 1px solid #d6ded3; padding: 22px 0; }
.planner-art-head { display: flex; justify-content: space-between; color: #8b9687; font-size: 10px; letter-spacing: 2px; margin-bottom: 18px; }
.planner-art-row { display: flex; align-items: center; padding: 13px 0; gap: 14px; color: #5f6e60; font-size: 12px; }
.planner-art-row .icon { color: #8fa18b; width: 18px; }
.planner-art-row > span { flex: 1; }
.planner-art-row small { color: #95a18e; font-size: 10px; }
.auth-story-footer { font-size: 10px; color: #93a08d; display: flex; align-items: center; gap: 7px; }
.auth-content { display: flex; flex-direction: column; align-items: center; padding: 46px 48px 26px; }
.auth-top-link { align-self: flex-end; font-size: 11px; color: var(--text-3); display: inline-flex; gap: 7px; align-items: center; }
.auth-top-link .icon { width: 14px; }
.auth-top-row { align-self: stretch; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.version-badge { display: inline-flex; flex: none; align-items: center; padding: 4px 8px; border: 1px solid #e6dbc3; color: #887048; background: #fbf8f1; border-radius: 4px; font-size: 10px; font-weight: 500; white-space: nowrap; }
.provider-link { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.provider-link .icon { width: 12px; height: 12px; }
.discussion-card { max-width: 960px; }
.discussion-status { font-size: 11px; color: var(--text-3); margin: 0 0 14px; }
.discussion-status:empty { display: none; }
.discussion-toolbar { display: flex; gap: 12px; margin: 20px 0 8px; }
.discussion-toolbar .search-field { flex: 1; }
.discussion-compose { display: flex; flex-direction: column; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.discussion-compose input, .discussion-compose textarea { width: 100%; min-width: 0; border: 1px solid var(--line-strong); border-radius: 6px; padding: 12px; font: inherit; font-size: 13px; color: var(--text); background: white; }
.discussion-compose textarea { resize: vertical; min-height: 100px; line-height: 1.8; }
.discussion-compose input:focus, .discussion-compose textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.discussion-compose .form-note { margin: 0; }
.discussion-row { display: flex; align-items: center; gap: 18px; padding: 23px 0; border-bottom: 1px solid var(--line); }
.discussion-row-main { flex: 1; min-width: 0; }
.discussion-title { display: block; border: 0; background: transparent; padding: 0; color: var(--text); font-size: 15px; font-weight: 500; text-align: left; overflow-wrap: anywhere; }
.discussion-title:hover { color: var(--accent); background: transparent; }
.discussion-preview { margin: 9px 0; color: var(--text-2); font-size: 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.discussion-meta { color: var(--text-3); font-size: 11px; margin: 0; line-height: 1.8; }
.discussion-reply-badge { flex: none; color: var(--text-3); font-size: 11px; }
.discussion-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 16px; padding-top: 22px; font-size: 11px; color: var(--text-3); }
.discussion-thread-toolbar { display: flex; justify-content: space-between; gap: 12px; margin: 16px 0 26px; }
.discussion-topic h2 { margin: 0 0 12px; font-size: 23px; font-weight: 500; line-height: 1.6; overflow-wrap: anywhere; }
.discussion-topic h2:focus { outline: none; }
.discussion-text { margin: 16px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.9; font-size: 13px; color: var(--text-2); }
.discussion-topic { padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.discussion-replies-heading { margin: 26px 0 4px; font-size: 13px; font-weight: 500; }
.discussion-reply { padding: 20px 0; border-bottom: 1px solid var(--line); }
.discussion-reply-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.discussion-delete { border: 0; background: none; padding: 2px 4px; color: var(--text-3); font-size: 11px; }
.discussion-no-replies { padding: 18px 0; }
#discussionMoreReplies { margin: 18px 0; }
@media (max-width: 700px) {
  .workspace-meta .today { display: none; }
  .workspace-meta { gap: 9px; }
  .discussion-card .card-head { flex-wrap: wrap; }
  .discussion-card .card-head > div { min-width: 0; flex: 1 1 180px; }
  .discussion-toolbar { flex-wrap: wrap; }
  .discussion-row { gap: 10px; }
  .discussion-title { font-size: 14px; }
  .discussion-topic h2 { font-size: 20px; }
  .discussion-thread-toolbar { flex-wrap: wrap; }
}
.auth-wrap { width: 100%; max-width: 340px; margin: auto; padding: 64px 0; }
.auth-mobile-brand { display: none; }
.auth-eyebrow { color: #8b948b; font-size: 10px; letter-spacing: 2px; margin-bottom: 12px; }
.auth-title { font-size: 28px; font-weight: 500; letter-spacing: -.6px; }
.auth-description { color: var(--text-3); font-size: 12px; margin-top: 10px; }
.auth-tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--line); margin: 32px 0 26px; }
.auth-tabs button { border: 0; border-radius: 0; background: none; font-size: 13px; color: var(--text-3); padding: 0 2px 13px; margin-bottom: -1px; border-bottom: 2px solid transparent; }
.auth-tabs button.primary { color: var(--accent); border-bottom-color: var(--accent); background: none; box-shadow: none; font-weight: 600; }
.auth-form { display: flex; flex-direction: column; gap: 20px; }
.auth-form .form-field { gap: 9px; }
.auth-form input { padding: 12px 13px; background: #fff; border: 1px solid var(--line-strong); border-radius: 6px; outline: 0; font-size: 12px; }
.auth-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.password-field { position: relative; }
.password-field input { padding-right: 54px; }
.password-field button { position: absolute; right: 6px; top: 6px; font-size: 10px; padding: 6px; border: 0; color: var(--text-3); }
.auth-form > .primary { margin-top: 4px; width: 100%; padding: 12px; font-size: 12px; }
.auth-tip { font-size: 10px; color: #929b92; line-height: 1.8; margin-top: 20px; }
.auth-footer { font-size: 10px; color: #a1a8a1; }
.auth-form .error-box { margin-top: -6px; }
/* Administration */
.admin-body .app { max-width: none; padding: 0; }
.admin-body .topbar { position: static; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; padding: 20px max(30px, calc((100vw - 1100px) / 2)); background: white; margin: 0; }
.admin-brand { display: flex; gap: 12px; align-items: center; }
.admin-brand .t { font-size: 15px; font-weight: 600; }
.admin-brand .sub { font-size: 10px; color: var(--text-3); margin-top: 3px; }
.admin-actions { display: flex; gap: 8px; }
.admin-main { max-width: 1160px; margin: 0 auto; padding: 40px 30px; }
.admin-main > .card { margin-bottom: 24px; }
.admin-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.admin-stat { background: white; padding: 22px; }
.admin-stat span { font-size: 11px; color: var(--text-3); display: block; }
.admin-stat strong { display: block; font-size: 26px; font-weight: 500; margin-top: 5px; font-variant-numeric: tabular-nums; }
.admin-section-meta { color: var(--text-3); font-size: 11px; }
.user-actions { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; max-width: 235px; }
.user-actions button { font-size: 10px; padding: 5px 8px; }
#adminLogs { font-size: 11px; color: var(--text-2); max-height: 360px; overflow: auto; }
#adminLogs .log-line { padding: 12px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
#adminWatchers { margin-top: 16px; font-size: 11px; }
.gate { max-width: 420px; margin: 120px auto; text-align: center; padding: 0 20px; }
.gate h2 { font-size: 19px; margin-bottom: 10px; }
.gate p { font-size: 12px; color: var(--text-3); }
.gate .btn-row { justify-content: center; }
@media (min-width: 1500px) { .workspace main { padding-top: 54px; } .connection-intro { padding: 48px; } }
@media (max-width: 1150px) {
  .sidebar { width: 200px; padding-left: 12px; padding-right: 12px; }
  .workspace-content { margin-left: 200px; }
  .workspace main { padding: 32px 28px; }
  .workspace-topbar, .workspace-footer { padding-left: 28px; padding-right: 28px; }
  .connection-layout { grid-template-columns: 1fr 320px; }
  .connection-intro { padding: 34px 28px; }
  .connection-intro h2 { font-size: 26px; }
  .auth-story { padding-left: 40px; padding-right: 40px; }
  .auth-story h1 { font-size: 35px; }
}
@media (max-width: 900px) {
  .connection-layout { grid-template-columns: 1fr; }
  .connection-intro { padding: 28px; }
  .connection-intro h2 br { display: none; }
  .connection-intro h2 { font-size: 25px; }
  .connection-intro > p { max-width: none; }
  .connect-steps { flex-direction: row; gap: 16px; margin-top: 24px; }
  .connect-steps li { flex: 1; gap: 8px; }
  .connect-steps p { font-size: 10px; }
  .privacy-note { margin-top: 20px; }
  .qr-card { border-left: 0; border-top: 1px solid var(--line); padding: 30px; }
  .workspace-meta .today { display: none; }
  .connection-footer { gap: 18px; }
  .card-head { flex-wrap: wrap; }
  .auth-content { padding-left: 32px; padding-right: 32px; }
  .auth-story { padding-left: 30px; padding-right: 30px; }
  .auth-story h1 { font-size: 29px; }
  .user-actions { max-width: none; width: 100%; justify-content: flex-start; margin-left: 55px; }
  #adminUsers .task-item { flex-wrap: wrap; }
}
@media (max-width: 700px) {
  .sidebar { position: static; width: 100%; border-right: 0; border-bottom: 1px solid var(--line); padding: 18px 16px 0; }
  .sidebar .brand { margin: 0 0 20px; padding: 0; font-size: 16px; }
  .sidebar .brand small { display: none; }
  .nav-caption, .sidebar-bottom { display: none; }
  .sidebar .tabs { flex-direction: row; gap: 4px; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 12px; }
  .sidebar .tab { width: auto; padding: 8px 12px; gap: 6px; font-size: 12px; flex: none; }
  .sidebar .tab .icon { width: 15px; height: 15px; }
  .tab-badge { line-height: 17px; min-width: 17px; font-size: 9px; }
  .workspace-content { margin: 0; min-height: calc(100vh - 137px); }
  .workspace-topbar { height: 47px; padding: 0 20px; }
  .breadcrumb { font-size: 10px; }
  .workspace-meta { font-size: 10px; }
  .workspace main { padding: 28px 20px 20px; }
  .page-heading { margin-bottom: 24px; gap: 12px; }
  h1 { font-size: 23px; }
  .page-heading p { font-size: 11px; }
  .eyebrow { font-size: 8px; }
  .page-number { font-size: 9px; }
  .card { padding: 22px 18px; }
  .card-title { font-size: 15px; }
  .card-desc { font-size: 11px; }
  .connection-intro { padding: 26px 22px; }
  .connection-intro h2 { font-size: 22px; }
  .connect-steps { flex-direction: column; gap: 16px; }
  .connect-steps p { font-size: 11px; }
  .qr-card { padding: 30px 22px; }
  .connection-footer { flex-wrap: wrap; gap: 14px; padding: 8px; }
  .connection-footer > span { width: 100%; text-align: center; }
  .workspace-footer { padding: 22px 20px; }
  .course-toolbar { flex-wrap: wrap; }
  .search-field { min-width: 100%; }
  .course-item { padding-left: 4px; padding-right: 4px; gap: 12px; }
  .course-term-head { flex-wrap: wrap; gap: 6px; }
  .course-term-count { font-size: 10px; }
  .term-select-all { margin-left: 0; }
  .cg-head { padding: 12px; flex-wrap: wrap; gap: 6px; }
  .cg-body { padding: 6px 8px; }
  .cg-count { font-size: 9px; }
  .task-item { gap: 8px; padding: 16px 4px; }
  .task-title { font-size: 12px; }
  .type-badge { font-size: 9px; padding: 3px 5px; }
  .task-right { max-width: 100px; }
  .no-solve-tip { white-space: normal; text-align: right; }
  .batch-right { width: 100%; flex-wrap: wrap; }
  .batch-progress-head { flex-wrap: wrap; }
  .batch-bar { flex-basis: 100%; }
  .batch-row-status { max-width: 40%; }
  .modal-mask { padding: 12px; }
  .modal-body { padding: 18px; }
  .modal-head { padding: 16px 18px; }
  .auth-shell { display: block; }
  .auth-story { display: none; }
  .auth-content { min-height: 100vh; padding: 28px 26px; }
  .auth-mobile-brand { display: flex; margin-bottom: 40px; }
  .auth-wrap { padding: 42px 0; max-width: 380px; }
  .auth-title { font-size: 27px; }
  .admin-body .topbar { padding: 18px 20px; gap: 18px; }
  .admin-main { padding: 28px 20px; }
  .admin-actions { width: 100%; }
  .admin-actions button { flex: 1; }
  .admin-summary { grid-template-columns: repeat(2, 1fr); }
  .admin-stat { padding: 16px; }
  .admin-stat strong { font-size: 23px; }
  .user-actions { margin-left: 0; }
}
.active-task { width:100%; margin:0 0 20px; text-align:left; color:var(--accent); background:var(--accent-soft); border-color:var(--line); }
.captcha-card { border:1px solid var(--line); border-radius:12px; padding:18px; margin:12px 0; background:#fff; }
.captcha-card strong { font-size:15px; }
.captcha-note,.captcha-countdown,.captcha-feedback { margin:8px 0; font-size:13px; color:var(--text-2); line-height:1.6; }
.captcha-image { display:block; max-width:100%; max-height:180px; margin:14px 0; border:1px solid var(--line); border-radius:6px; }
.captcha-form { display:flex; align-items:flex-end; flex-wrap:wrap; gap:10px; }
.captcha-form label { flex:1 1 140px; font-size:12px; color:var(--text-2); }
.captcha-form input { display:block; width:100%; margin-top:6px; border:1px solid var(--line); border-radius:8px; padding:10px 12px; background:#fff; color:var(--text); font:inherit; font-size:15px; }
.captcha-feedback { color:var(--accent); }
.batch-captcha { margin:0 0 12px; }
