/* 同习 · a light, playful study theme. All fonts are local system fallbacks.
   Keep the established practice grids and answer state classes intact. */
:root {
  --study-ink: #273b30;
  --study-muted: #657568;
  --study-green: #398317;
  --study-green-dark: #286110;
  --study-lime: #78cb3b;
  --study-soft: #eef8e7;
  --study-sky: #edf7ff;
  --study-gold: #ffcf52;
  --study-line: #dce6d7;
  --study-edge: #d4dfcd;
  --study-bg: #f8fbf5;
  --study-ui: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --study-heading: 'Arial Rounded MT Bold', 'Trebuchet MS', 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --ink: var(--study-ink);
  --muted: var(--study-muted);
  --accent: var(--study-green);
  --line: var(--study-line);
  --paper: #fff;
  --serif: var(--study-heading);
  --shadow: 0 3px 0 var(--study-edge);
  color: var(--study-ink);
  background: var(--study-bg);
  font-family: var(--study-ui);
}
body { background: var(--study-bg); color: var(--study-ink); }
body ::selection { background: #daf0c4; color: #253f22; }
body :is(button,a,input,textarea,select,summary):focus-visible {
  outline: 3px solid #2384bf; outline-offset: 3px;
}
body :is(input[type=checkbox],input[type=radio],progress) { accent-color: var(--study-green); }
body :is(.content,.login-page) :is(h1,h2,h3) { font-family: var(--study-heading); }
body :is(.content,.login-page) :is(h1,h2) { letter-spacing: -.025em; font-weight: 800; }
body .content h1 { line-height: 1.35; }
body :is(.page-heading h1,.practice-topline h2,.im-hero h1,.it-page h1,.oc-intro h1) {
  font-family: var(--study-heading); font-weight: 800;
}
body :is(.eyebrow,.sc-eyebrow,.vw-eyebrow,.it-eyebrow,.im-kicker,.oc-eyebrow,.od-kicker,.op-kicker) {
  color: var(--study-green); font-weight: 800; letter-spacing: .09em;
}

/* The familiar navigation, with generous targets and a clear current place. */
body .sidebar { background: #fff; border-color: var(--study-line); border-right-width: 2px; }
body .brand { color: var(--study-green); font-family: var(--study-heading); letter-spacing: .01em; font-weight: 900; }
body .brand small { color: var(--study-muted); letter-spacing: .1em; font-weight: 600; }
body .brand-mark { background: var(--study-lime); color: #244c17; border: 2px solid #67b830; box-shadow: 0 3px 0 #56a027; border-radius: 15px; }
body .sidebar-caption { color: #778574; font-weight: 700; }
body .nav-item { border: 2px solid transparent; border-radius: 13px; color: #61725f; font-weight: 700; }
body .nav-item:hover { background: #f4f9ee; color: var(--study-green-dark); }
body .nav-item.active { background: #eef8e3; border-color: #b9de98; color: var(--study-green-dark); box-shadow: 0 2px 0 #d2e8bd; font-weight: 800; }
body .nav-item svg { stroke-width: 2.1; }
body .nav-count { background: #fff; color: var(--study-green); border-radius: 7px; font-weight: 800; }
body .ss-sidebar-head .ss-sidebar-toggle { color: var(--study-green); border-radius: 11px; }
body .ss-sidebar-submenu { border-color: var(--study-line); }
body .ss-sidebar-submenu button { color: var(--study-muted); border-radius: 10px; }
body .ss-sidebar-submenu button.is-current { background: var(--study-soft); color: var(--study-green-dark); }
body .topbar { background: #fff; border-bottom: 2px solid var(--study-line); }
body .breadcrumb { color: #74836f; }
body .breadcrumb strong { color: var(--study-ink); font-weight: 700; }
body .profile-chip { font-weight: 700; }

/* Card edges give small actions a tactile feel without adding busy decoration. */
body :is(.panel,.goal-panel,.stats-overview,.material-summary>div,.practice-item,.vw-panel,.vw-book,.vw-editor,
  .it-project-card,.it-panel,.it-start-card,.im-paper-card,.im-empty,.im-import,.im-part,.im-review-task,.im-answer-details,
  .ia-panel,.ia-criteria article,.oc-cards article,.oc-recordings,.od-status-grid article,.od-group,.of-job,.op-card) {
  border: 2px solid var(--study-line); border-radius: 19px; box-shadow: 0 3px 0 var(--study-edge);
}
body :is(.panel,.stats-overview,.material-summary>div,.vw-panel,.it-panel,.im-part,.oc-cards article,.op-card) { background: #fff; }
body :is(.goal-panel,.it-start-card) { background: var(--study-soft); border-color: #cce3b5; box-shadow: 0 3px 0 #d7e6ca; }
body .goal-score { color: var(--study-green); font-family: var(--study-heading); font-weight: 800; }
body .goal-panel :is(p,small) { color: #637a55; }
body .panel-heading h2 { font-weight: 800; }
body .task-row { border-color: #e7ede1; }
body .task-icon { border: 1px solid #dbe5d3; border-radius: 14px; background: var(--study-soft); color: var(--study-green); }
body .task-icon.reading { background: #eaf5ff; color: #347da7; border-color: #d1e8f5; }
body :is(.task-icon.writing,.task-icon.translation) { background: #fff5d7; color: #9a6d0a; border-color: #f1e3b6; }
body .task-icon.review { background: #f4eefa; color: #8364a0; border-color: #e7d9f0; }
body .task-body h3 { color: var(--study-ink); font-weight: 750; }
body .task-body p { color: var(--study-muted); font-size: 12px; }
body .task-meta { color: #73836c; font-size: 10px; }
body .task-meta b { background: var(--study-soft); color: var(--study-green); font-size: 9px; border-radius: 6px; }
body .stats-overview strong { color: var(--study-green); font-weight: 800; }
body .stats-overview :is(span,small) { color: var(--study-muted); }

/* Deliberately enumerate action buttons; PDF controls and exam layouts keep their sizing. */
body :is(.btn,.vw-button,.it-button,.im-button,.rc-button,.cc-button,.lc-button,.wc-button,.tc-button,.mc-button),
body :is(.oc-center,.od-page,.of-jobs,.op-page,.ia-panel) button,
body .self-study-hub.sc-unified .sc-card>button {
  border-width: 2px; border-style: solid; border-radius: 13px;
  font-weight: 750; box-shadow: 0 3px 0 var(--study-edge);
  transition: background-color .14s ease, border-color .14s ease, box-shadow .12s ease, transform .12s ease;
}
body :is(.btn,.vw-secondary,.rc-button,.cc-button,.lc-button,.wc-button,.tc-button,.mc-button),
body .oc-center button { background: #fff; border-color: var(--study-line); color: var(--study-green); }
body :is(.btn.primary,.vw-primary,.it-button:not(.it-secondary):not(.it-quiet),.im-button:not(.im-secondary),
  .rc-primary,.cc-primary,.lc-primary,.wc-button-primary,.tc-primary,.mc-primary),
body .self-study-hub.sc-unified :is(.rc-primary,.cc-primary,.lc-primary,.wc-button-primary,.tc-primary,.mc-primary),
body :is(.od-page,.ia-panel) button:not(.od-quiet),
body .oc-actions button:first-child,
body .self-study-hub.sc-unified .sc-card>button {
  background: var(--study-green); border-color: var(--study-green); color: #fff; box-shadow: 0 4px 0 var(--study-green-dark);
}
body :is(.btn.primary,.vw-primary,.it-button:not(.it-secondary):not(.it-quiet),.im-button:not(.im-secondary)):hover:not(:disabled),
body .self-study-hub.sc-unified .sc-card>button:hover:not(:disabled) { background: #428f1d; border-color: #428f1d; filter: none; }
body :is(.btn,.vw-button,.it-button,.im-button,.rc-button,.cc-button,.lc-button,.wc-button,.tc-button,.mc-button):active:not(:disabled),
body :is(.oc-center,.od-page,.of-jobs,.op-page,.ia-panel) button:active:not(:disabled),
body .self-study-hub.sc-unified .sc-card>button:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 var(--study-edge); }
body :is(.vw-text,.it-button.it-quiet) { border-color: transparent; box-shadow: none; background: transparent; color: var(--study-green); }
body :is(.it-button.it-secondary,.im-button.im-secondary,.od-page .od-quiet,.op-page button,.of-jobs button) {
  background: #fff; border-color: var(--study-line); color: var(--study-green);
}
body :is(.btn,.vw-button,.it-button,.im-button,.rc-button,.cc-button,.lc-button,.wc-button,.tc-button,.mc-button):disabled,
body :is(.oc-center,.od-page,.of-jobs,.op-page,.ia-panel) button:disabled { box-shadow: none; transform: none; }
body :is(.content,.login-form) :is(input:not([type=radio]):not([type=checkbox]):not([type=range]):not([type=file]),select,textarea) {
  border-color: #cddbc4; border-radius: 11px; color: var(--study-ink);
}
body :is(.content,.login-form) :is(input,select,textarea):focus { border-color: #6aa63d; }
body :is(.practice-mode,.material-filters,.it-filters,.im-tabs,.iw-tabs,.oc-tabs) button { border-radius: 12px; }
body :is(.it-filter.it-selected,.im-tabs [aria-pressed=true],.iw-tabs button[aria-pressed=true],.oc-tabs button[aria-pressed=true]) {
  background: var(--study-soft); border: 2px solid #b8db9b; color: var(--study-green-dark); box-shadow: 0 2px 0 #d7e8cb; font-weight: 800;
}
body :is(.practice-mode button.active,.material-filters button.active) { background: var(--study-soft); color: var(--study-green-dark); }

/* Vocabulary gets the most tactile treatment: one word, big choices, one next action. */
body .vw-root { --vw-green: var(--study-green); --vw-ink: var(--study-ink); --vw-muted: var(--study-muted); --vw-border: var(--study-line); font-family: var(--study-ui); }
body .vw-book { background: #fff; }
body .vw-book.is-selected { background: var(--study-soft); border-color: #92c968; box-shadow: 0 3px 0 #b9d99e; }
body .vw-book strong { font-family: var(--study-heading); font-weight: 800; color: var(--study-green); }
body .vw-study-card { border-radius: 23px; }
body .vw-study-card .vw-word { font-family: var(--study-heading); font-weight: 800; letter-spacing: -.035em; color: var(--study-ink); }
body .vw-option { border: 2px solid var(--study-line); border-radius: 14px; box-shadow: 0 3px 0 var(--study-edge); }
body .vw-answer-option { padding: 14px 16px; }
body .vw-answer-option .vw-option-index { border: 2px solid #dde6d6; border-radius: 9px; color: #6c7d60; background: #fff; font-weight: 750; }
body .vw-answer-option:hover:not(:disabled) { background: #f5faef; border-color: #b6d79a; }
body :is(.vw-option.is-selected,.vw-option.is-correct) { background: var(--study-soft); border-color: #88be61; box-shadow: 0 3px 0 #bad8a3; }
body .vw-answer-option.is-wrong:disabled { background: #fff0eb; border-color: #e3b4a3; color: #943f29; box-shadow: 0 3px 0 #efd2c6; }
body .vw-label { background: var(--study-soft); border-radius: 9px; color: var(--study-green); font-weight: 700; }
body .vw-feedback { background: var(--study-soft); border-radius: 14px; border-left-color: #77b844; }
body .vw-feedback.is-wrong { background: #fff1e9; border-left-color: #cf8056; }
body .vw-progress { height: 13px; border-radius: 9px; }
body .vw-progress::-webkit-progress-bar { background: #e4ebdd; border-radius: 9px; }
body .vw-progress::-webkit-progress-value { background: var(--study-lime); border-radius: 9px; box-shadow: inset 0 3px 0 #9bdd68; }
body .vw-progress::-moz-progress-bar { background: var(--study-lime); border-radius: 9px; }
body .vocabulary-sync-bar { background: #f2f8ed; border: 2px solid var(--study-line); border-radius: 14px; color: var(--study-muted); }

/* Course numbers already represent real lesson order; turn them into small milestones. */
body .self-study-hub,body .self-study-hub.sc-unified {
  --sc-ink: var(--study-ink); --sc-teal: var(--study-green); --sc-soft: var(--study-soft);
  --sc-line: var(--study-line); --sc-muted: var(--study-muted); --sc-amber: #bb8619;
}
body .self-study-hub .mc-root { --mc-ink: var(--study-ink); --mc-green: var(--study-green); --mc-wash: var(--study-soft); --mc-line: var(--study-line); --mc-muted: var(--study-muted); }
body .self-study-hub .cc-root { --cc-ink: var(--study-ink); --cc-green: var(--study-green); --cc-wash: var(--study-soft); --cc-line: var(--study-line); --cc-muted: var(--study-muted); }
body .self-study-hub .reading-course { --rc-ink: var(--study-ink); --rc-green: var(--study-green); --rc-light: var(--study-soft); --rc-border: var(--study-line); --rc-muted: var(--study-muted); }
body .self-study-hub .listening-course { --lc-ink: var(--study-ink); --lc-green: var(--study-green); --lc-tint: var(--study-soft); --lc-border: var(--study-line); --lc-muted: var(--study-muted); }
body .self-study-hub .writing-course { --wc-ink: var(--study-ink); --wc-teal: var(--study-green); --wc-teal-dark: var(--study-green-dark); --wc-tint: var(--study-soft); --wc-line: var(--study-line); --wc-muted: var(--study-muted); }
body .self-study-hub .translation-course-page { --tc-ink: var(--study-ink); --tc-teal: var(--study-green); --tc-bg: var(--study-soft); --tc-line: var(--study-line); --tc-muted: var(--study-muted); }
body .self-study-hub.sc-unified .sc-card { border: 2px solid var(--study-line); border-radius: 20px; box-shadow: 0 4px 0 var(--study-edge); }
body .self-study-hub.sc-unified .sc-card-top { padding-bottom: 12px; border-bottom: 2px solid #eef2e9; }
body .self-study-hub.sc-unified .sc-category { font-weight: 800; }
body .self-study-hub.sc-unified .sc-card h2 { font-weight: 800; }
body .self-study-hub .sc-process span { background: #e3f3d4; color: var(--study-green-dark); box-shadow: 0 2px 0 #c8e4ad; font-weight: 800; }
body .self-study-hub.sc-unified :is(.rc-course-card,.lc-lesson-link,.wc-course-link,.tc-catalog>button) {
  border: 2px solid var(--study-line); border-radius: 16px; background: #fff; margin-bottom: 12px; box-shadow: 0 3px 0 var(--study-edge);
}
body .self-study-hub.sc-unified :is(.rc-catalog,.tc-catalog,.wc-course-list) { border-top: 0; }
body .self-study-hub.sc-unified :is(.rc-course-card[aria-current=page],.lc-lesson-link.is-active,.wc-course-link.is-active,.tc-catalog>button[aria-current]) {
  background: var(--study-soft); border-color: #a3ce7d; box-shadow: 0 3px 0 #c4dda8;
}
body .self-study-hub.sc-unified :is(.rc-course-number,.lc-lesson-number,.wc-course-number,.tc-course-index,.cc-number) {
  display: inline-grid; place-items: center; width: 32px; min-height: 36px; border-radius: 11px;
  background: #e5f4d7; color: var(--study-green-dark); font: 800 16px/1.2 var(--study-heading); box-shadow: 0 3px 0 #cae3b2;
}
body .self-study-hub.sc-unified :is(.rc-tabs .rc-button,.tc-tabs .tc-button) { border: 2px solid var(--study-line); border-radius: 13px; }
body .self-study-hub.sc-unified :is(.rc-tabs [aria-current=step],.tc-tabs [aria-pressed=true]) { background: var(--study-soft); border-color: #a4ce80; color: var(--study-green-dark); }
body .self-study-hub.sc-unified :is(.rc-worked-example,.lc-example,.tc-example,.cc-example,.wc-prompt,.wc-model) {
  border: 2px solid var(--study-line); border-left: 5px solid #8ac750; border-radius: 16px; background: #fff;
}
body .self-study-hub.sc-unified .rc-passage { border: 2px solid var(--study-line); border-radius: 16px; }
body .self-study-hub.sc-unified :is(.rc-question-title,.tc-prompt) { background: var(--study-soft); border-radius: 14px; }
body .self-study-hub :is(.mc-panel,.mc-results,.mc-passage,.mf-current-paragraph,.cc-panel) { border: 2px solid var(--study-line); border-radius: 16px; }
body .self-study-hub .mc-number { font-family: var(--study-heading); font-weight: 800; color: var(--study-green); }
body .self-study-hub .mf-stages button { border-radius: 12px; border-width: 2px; }
body .self-study-hub :is(.mf-stages button[aria-current=step],.mc-question-nav .is-current) { border-color: #99c674; }

body .mx-workspace { --mx-teal: var(--study-green); --mx-ink: var(--study-ink); --mx-muted: var(--study-muted); }
body .mx-workspace :is(.mx-card,.mx-panel,.mx-answer-panel,.mx-submit,.mx-review) { border: 2px solid var(--study-line); border-radius: 18px; box-shadow: 0 3px 0 var(--study-edge); }
body .mx-workspace button { border-width: 2px; border-radius: 12px; border-color: var(--study-line); font-weight: 750; box-shadow: 0 3px 0 var(--study-edge); }
body .mx-workspace .mx-primary { background: var(--study-green); border-color: var(--study-green); box-shadow: 0 4px 0 var(--study-green-dark); }
body .mx-workspace button:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 var(--study-edge); }
body .mx-workspace button:disabled { box-shadow: none; }
body .mx-workspace :is(.mx-filters,.mx-audio,.mx-section-tabs .mx-selected) { background: var(--study-soft); border-color: #bdd9a5; }

/* IELTS uses the same vocabulary of color and shape, with calm reading columns. */
body .it-page { --it-ink: var(--study-ink); --it-green: var(--study-green); --it-soft: var(--study-soft); --it-line: var(--study-line); --it-muted: var(--study-muted); font-family: var(--study-ui); }
body .im-workbench { --im-ink: var(--study-ink); --im-green: var(--study-green); --im-border: var(--study-line); font-family: var(--study-ui); }
body .it-start-card { border-left: 5px solid #91ce54; }
body .it-tag { color: var(--study-green); font-weight: 800; }
body .it-step.it-current { color: var(--study-green); border-color: #70b93b; }
body :is(.it-example,.it-score,.im-score-grid>div,.im-audio,.im-exam-recorder,.ia-panel) { background: var(--study-soft); border-radius: 15px; }
body .ia-panel { color: var(--study-ink); }
body .ia-tag { background: #e0efcf; color: var(--study-green-dark); font-weight: 700; }
body :is(.it-listening-box,.it-recorder,.ia-audio) { background: #f6f9f1; border-radius: 15px; border-color: var(--study-line); }
body :is(.im-answer-card a,.paper-answer-grid>label) { border-radius: 9px; }
body .im-answer-card .im-filled { background: var(--study-green); border-color: var(--study-green); color: #fff; }
body :is(.it-option,.practice-option) { border: 2px solid var(--study-line); border-radius: 12px; }
body :is(.it-option.it-checked,.practice-option.chosen) { border-color: #95c66d; background: var(--study-soft); }
body .practice-option.chosen .option-letter { background: var(--study-green); border-color: var(--study-green); }
body .practice-item.selected { border-color: #a4cc81; background: var(--study-soft); }
body :is(.english-passage,.im-passage,.it-reading-text,.it-task-prompt,.it-preserved-text,.self-study-hub .rc-passage,
  .self-study-hub .lc-english,.self-study-hub .tc-english,.self-study-hub .wc-model-text) {
  color: #293d31; text-rendering: optimizeLegibility;
}
body :is(.english-passage,.im-passage,.it-reading-text,.it-preserved-text) { line-height: 1.95; }

/* A download, a queued action and a local save are just another part of studying. */
body :is(.oc-center,.od-page,.of-jobs,.op-page) { color: var(--study-ink); font-family: var(--study-ui); }
body :is(.oc-live,.oc-checklist,.od-group-heading,.oc-audio,.od-message,.op-notice) { background: var(--study-soft); color: var(--study-ink); border-radius: 14px; }
body .oc-live { border: 2px solid #d1e7bd; }
body .oc-dot.oc-online { background: var(--study-green); box-shadow: 0 0 0 4px #d7edc5; }
body :is(.oc-live>span:last-child,.oc-cards p,.oc-muted,.od-note,.od-choice small,.of-jobs>p) { color: var(--study-muted); }
body :is(.oc-cards h2,.od-status-grid h2) { color: var(--study-muted); font-weight: 700; }
body .oc-cards strong { font-family: var(--study-heading); font-weight: 800; }
body .oc-tabs { border-color: var(--study-line); }
body :is(.oc-tabs button,.iw-tabs button,.im-tabs .im-button) { box-shadow: none; }
body .od-group-heading { border-radius: 0; }
body :is(.oc-conflict,.im-confirm,.of-job-retry) { background: #fff9e8; border-color: #e5cc85; }
body .login-form { border-radius: 24px; }
body .login-intro h1 { font-family: var(--study-heading); font-weight: 850; line-height: 1.5; color: var(--study-ink); }
body .login-intro>p:not(.eyebrow) { color: var(--study-muted); font-size: 14px; }

@media (min-width: 761px) {
  body .nav-item { min-height: 46px; }
  body .self-study-hub.sc-unified :is(.rc-course-card,.lc-lesson-link,.wc-course-link,.tc-catalog>button):hover { background: #f7fbf2; border-color: #b6d39f; }
}
@media (max-width: 760px) {
  body .sidebar { border-right: 0; border-bottom-width: 2px; background: #fff; }
  body .sidebar nav { gap: 6px; padding: 9px 12px; }
  body .nav-item { padding: 9px 10px; min-height: 39px; font-size: 11px; border-radius: 11px; }
  body .nav-item.active { box-shadow: 0 2px 0 #d2e8bd; }
  body .topbar { height: 55px; }
  body .content { padding-top: 24px; }
  body :is(.page-heading h1,.im-hero h1,.oc-intro h1) { font-size: clamp(25px,6.7vw,31px); }
  body :is(.panel,.goal-panel,.vw-panel,.it-panel,.im-part,.oc-cards article,.op-card) { border-radius: 17px; }
  body :is(.task-meta,.task-body p) { font-size: 10px; }
  body .task-actions .btn { min-height: 36px; }
  body .self-study-hub.sc-unified :is(.rc-course-number,.lc-lesson-number,.wc-course-number,.tc-course-index,.cc-number) { width: 30px; min-height: 34px; font-size: 15px; }
  body .vw-answer-option { padding: 12px 13px; min-height: 63px; }
  body :is(.oc-actions,.od-actions,.op-actions) button { min-height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  body :is(.btn,.vw-button,.it-button,.im-button,.rc-button,.cc-button,.lc-button,.wc-button,.tc-button,.mc-button),
  body :is(.oc-center,.od-page,.of-jobs,.op-page,.ia-panel,.self-study-hub) button { transition: none; }
}
@media print {
  body { background: #fff; }
  body :is(.panel,.vw-panel,.it-panel,.im-part,.self-study-hub.sc-unified .sc-card) { box-shadow: none; }
}
