:root {
  --paper: #fff;
  --bg: #f5f7f6;
  --green: #215b45;
  --green-dark: #163e30;
  --mint: #e4f1e8;
  --ink: #23352d;
  --muted: #728078;
  --line: #e4e9e5;
  --amber: #a66c23;
  --blue: #516c8c;
  --radius: 14px;
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  font-size: 14px;
  line-height: 1.65;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
svg {
  vertical-align: middle;
}
button svg,
a svg {
  flex-shrink: 0;
}
button {
  border: 0;
  background: none;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #81b698;
  outline-offset: 4px;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #81b698;
  outline-offset: 1px;
}
input,
select,
textarea {
  color: var(--ink);
  border: 1px solid #d8e1da;
  background: #fff;
  border-radius: 8px;
  padding: 11px 13px;
  max-width: 100%;
}
input[type="checkbox"] {
  accent-color: var(--green);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 32px;
  letter-spacing: -0.7px;
  line-height: 1.4;
  font-weight: 650;
}
h2 {
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 16px;
  font-weight: 600;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.green {
  color: var(--green);
}
.container {
  max-width: 1240px;
  margin: auto;
  padding: 0 28px;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.between {
  justify-content: space-between;
}
.wrap {
  flex-wrap: wrap;
}
.stack {
  display: grid;
  gap: 18px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 550;
  white-space: nowrap;
}
.btn.primary {
  background: var(--green);
  color: #fff;
}
.btn.primary:hover {
  background: var(--green-dark);
}
.btn.secondary {
  background: #fff;
  border: 1px solid #d7e1da;
}
.btn.soft {
  background: var(--mint);
  color: var(--green);
}
.btn.quiet {
  color: var(--muted);
  padding: 8px 10px;
}
.btn.tiny {
  min-height: 32px;
  font-size: 12px;
  padding: 6px 10px;
}
.btn.danger {
  color: #a34c3e;
  background: #fbefec;
}
.icon-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 7px;
}
.icon-btn:hover {
  background: var(--mint);
}
.text-link {
  color: var(--green);
  font-weight: 550;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.text-link:hover {
  text-decoration: underline;
}
.topbar {
  height: 78px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.topbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 46px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 23px;
  font-weight: 750;
  letter-spacing: -1px;
  white-space: nowrap;
}
.brand-symbol {
  width: 38px;
  height: 38px;
}
.brand .dot {
  color: #8bb895;
}
.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  align-self: stretch;
}
.nav a {
  position: relative;
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #6c786f;
}
.nav a.active {
  color: var(--green);
  font-weight: 650;
}
.nav a.active:after {
  content: "";
  height: 3px;
  background: var(--green);
  position: absolute;
  bottom: 0;
  left: 7px;
  right: 7px;
  border-radius: 2px;
}
.header-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}
.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg);
  border: 1px solid #ecf0ec;
  border-radius: 7px;
  color: #7c887e;
}
.header-search input {
  border: 0;
  background: none;
  padding: 0;
  width: 135px;
  outline: 0;
  font-size: 12px;
}
.key {
  border: 1px solid #dce3de;
  border-radius: 3px;
  font-size: 10px;
  padding: 0 5px;
}
.avatar {
  background: #e8eee6;
  color: var(--green);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-weight: 600;
}
.mobile-menu {
  display: none;
}
.proto-note {
  background: #edf3ee;
  color: #66786b;
  font-size: 11px;
  text-align: center;
  padding: 5px 16px;
}
.hero {
  display: grid;
  grid-template-columns: 1.03fr 1fr;
  align-items: center;
  min-height: 365px;
  gap: 30px;
  padding-top: 30px;
  padding-bottom: 28px;
}
.hero-copy {
  padding: 14px 0;
}
.hero h1 {
  font-size: 46px;
  line-height: 1.3;
  letter-spacing: -2px;
  font-weight: 700;
  margin: 12px 0 18px;
}
.hero-copy > p {
  font-size: 15px;
  line-height: 1.9;
  color: #748077;
  max-width: 410px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  margin: 25px 0 17px;
}
.tiny-leaf {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--green);
}
.hero-notes {
  display: flex;
  gap: 18px;
  color: #7c8880;
  font-size: 11px;
}
.hero-art {
  height: 330px;
  position: relative;
  background: #eaf1e9;
  border-radius: 26px;
  overflow: hidden;
}
.hero-art svg {
  width: 100%;
  height: 100%;
  display: block;
}
.hero-art .art-caption {
  position: absolute;
  bottom: 20px;
  left: 23px;
  font-size: 11px;
  letter-spacing: 0.5px;
  color: #65836c;
}
.hero-art .art-caption strong {
  font-weight: 600;
  color: var(--green);
}
.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 288px;
  gap: 25px;
  padding-bottom: 48px;
}
.section {
  margin-bottom: 32px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 18px;
}
.section-heading .muted {
  font-size: 12px;
  margin-top: 2px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.topic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.topic-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 18px 16px;
  min-height: 141px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.topic-card:hover {
  border-color: #8bb596;
  background: #fcfefc;
}
.topic-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border-radius: 10px;
  color: var(--topic-color);
  background: var(--topic-bg);
}
.topic-card h3 {
  font-size: 14px;
  letter-spacing: 0;
}
.topic-card .small {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
  white-space: nowrap;
}
.topic-card .topic-number {
  font-size: 11px;
  color: #8b958e;
  margin-top: 9px;
}
.tab-row {
  display: flex;
  gap: 22px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 0 22px;
}
.tab {
  padding: 15px 0;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  font-size: 13px;
  white-space: nowrap;
}
.tab.active {
  color: var(--green);
  font-weight: 650;
  border-color: var(--green);
}
.question-row {
  padding: 19px 23px;
  border-bottom: 1px solid #eef1ee;
  display: flex;
  align-items: flex-start;
  gap: 15px;
}
.question-row:last-child {
  border-bottom: 0;
}
.question-index {
  font-size: 12px;
  color: #9aa39c;
  min-width: 21px;
  padding-top: 2px;
}
.question-body {
  min-width: 0;
  flex: 1;
}
.question-title {
  font-weight: 550;
  font-size: 14px;
  line-height: 1.65;
  display: block;
}
.question-title:hover {
  color: var(--green);
}
.question-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: #89938b;
  margin-top: 9px;
  flex-wrap: wrap;
}
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  border-radius: 4px;
  padding: 2px 7px;
  line-height: 1.6;
  background: #f0f4f1;
  color: #718278;
  white-space: nowrap;
}
.pill.easy,
.pill.mastered,
.pill.published {
  color: #397454;
  background: #edf6ee;
}
.pill.medium,
.pill.rusty,
.pill.review {
  color: #9a712e;
  background: #fbf4e6;
}
.pill.hard {
  color: #8d688e;
  background: #f4edf6;
}
.pill.draft {
  color: #687b91;
  background: #edf1f6;
}
.list-actions {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-shrink: 0;
}
.bookmark {
  color: #8a978d;
}
.bookmark.is-saved {
  color: var(--green);
  background: var(--mint);
}
.row-answer {
  margin-top: 15px;
  padding: 18px;
  background: #f6f9f6;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.9;
}
.row-answer p {
  margin-bottom: 10px;
}
.answer-link {
  font-size: 11px;
  color: var(--green);
  white-space: nowrap;
  padding: 4px 1px;
}
.continue-panel {
  background: var(--green-dark);
  border-radius: 14px;
  color: #fff;
  padding: 23px;
  position: relative;
  overflow: hidden;
}
.continue-panel:after {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  border: 1px solid #ffffff13;
  border-radius: 50%;
  right: -55px;
  top: -48px;
  pointer-events: none;
}
.continue-panel .label {
  color: #bdd1c3;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.continue-panel h3 {
  font-size: 17px;
  line-height: 1.7;
  margin: 13px 0 8px;
  font-weight: 550;
}
.continue-panel p {
  font-size: 11px;
  color: #a9c0b1;
}
.continue-panel .btn {
  background: #e6f0df;
  color: #244e37;
  width: 100%;
  margin-top: 22px;
  font-size: 12px;
  min-height: 37px;
}
.side-box {
  padding: 22px;
}
.side-box h3 {
  font-size: 14px;
  margin-bottom: 17px;
}
.study-tip {
  display: flex;
  gap: 11px;
  margin: 18px 0;
}
.tip-num {
  color: #9eafa3;
  font-size: 12px;
  margin-top: 1px;
}
.study-tip strong {
  font-size: 12px;
  font-weight: 550;
  display: block;
  margin-bottom: 3px;
}
.study-tip p {
  font-size: 11px;
  color: #859087;
  line-height: 1.8;
}
.mini-path {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 15px 0 4px;
  font-size: 10px;
  color: #859087;
}
.daily {
  background: #ebf0e9;
  border: 1px solid #e0e9df;
  border-radius: 12px;
  padding: 22px;
}
.daily p {
  font-size: 15px;
  line-height: 1.85;
  margin: 11px 0;
  color: #46634c;
  font-weight: 500;
}
.daily .small {
  font-size: 10px;
  color: #7e907f;
}
.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}
.footer-inner {
  padding-top: 28px;
  padding-bottom: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 11px;
  color: #8b958e;
}
.footer-links {
  display: flex;
  gap: 22px;
}
.footer-brand {
  font-size: 15px;
  font-weight: 650;
  color: #68796d;
  margin-right: 15px;
}
.page-heading {
  padding-top: 35px;
  padding-bottom: 25px;
}
.page-heading p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 9px;
}
.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #8b968e;
  font-size: 11px;
  margin-bottom: 19px;
}
.breadcrumb a:hover {
  color: var(--green);
}
.catalog-layout {
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr);
  gap: 25px;
  padding-bottom: 50px;
}
.sidebar {
  padding: 15px;
  height: fit-content;
  position: sticky;
  top: 99px;
}
.sidebar-title {
  font-size: 11px;
  color: #8b978f;
  padding: 9px 11px 13px;
}
.side-nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 11px;
  border-radius: 7px;
  font-size: 13px;
  margin-bottom: 4px;
  color: #6e7e73;
}
.side-nav span {
  display: flex;
  gap: 10px;
  align-items: center;
}
.side-nav.active {
  color: var(--green);
  background: #eaf3ec;
  font-weight: 600;
}
.side-nav:hover {
  background: #f1f6f1;
}
.side-nav small {
  font-size: 10px;
  color: #9ba59e;
}
.filters {
  padding: 19px 22px;
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.filter-label {
  font-size: 12px;
  color: var(--muted);
  margin-right: 5px;
}
.chip {
  font-size: 12px;
  color: #7b887e;
  border-radius: 6px;
  padding: 6px 12px;
  background: transparent;
  border: 1px solid transparent;
}
.chip.active {
  color: var(--green);
  background: var(--mint);
  border-color: #d8e8db;
}
.filters .count {
  margin-left: auto;
  font-size: 11px;
  color: #8b968e;
}
.list-toolbar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 11px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
  background: #fcfdfc;
}
.list-toolbar select {
  padding: 3px 8px;
  font-size: 11px;
  border: 0;
  background: none;
}
.pagination {
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.page-btn {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 12px;
  min-height: 32px;
}
.page-btn.active {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.empty {
  text-align: center;
  padding: 65px 20px;
}
.empty .empty-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mint);
  border-radius: 50%;
  margin: 0 auto 18px;
  color: var(--green);
}
.empty h3 {
  font-size: 18px;
}
.empty p {
  font-size: 13px;
  color: var(--muted);
  margin: 9px 0 22px;
}
.search-banner {
  display: flex;
  gap: 10px;
  margin: 18px 0 0;
  max-width: 680px;
}
.search-banner input {
  flex: 1;
  min-width: 0;
}
.topic-overview {
  padding: 0 0 45px;
}
.topic-overview .topic-grid {
  gap: 20px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.topic-overview .topic-card {
  padding: 25px;
  min-height: 200px;
}
.topic-overview .topic-card h3 {
  font-size: 19px;
}
.topic-overview .topic-card .small {
  font-size: 12px;
  white-space: normal;
  line-height: 1.8;
}
.topic-overview .topic-icon {
  width: 44px;
  height: 44px;
}
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 264px;
  gap: 25px;
  padding-bottom: 50px;
}
.reading {
  padding: 35px 40px;
}
.reading h1 {
  font-size: 27px;
  letter-spacing: -0.6px;
  line-height: 1.6;
  margin: 13px 0;
}
.article-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #8a958c;
  font-size: 11px;
  flex-wrap: wrap;
}
.reading-body {
  min-width: 0;
  font-size: 14px;
  line-height: 1.95;
}
.reading-body h2 {
  font-size: 18px;
  margin: 30px 0 13px;
  scroll-margin-top: 95px;
}
.reading-body h3 {
  font-size: 15px;
  margin: 23px 0 10px;
}
.reading-body p {
  margin: 10px 0;
}
.reading-body ul,
.reading-body ol {
  padding-left: 22px;
  margin: 12px 0;
}
.reading-body li {
  margin: 7px 0;
}
.reading-body code {
  background: #edf3ed;
  padding: 2px 5px;
  border-radius: 4px;
  color: #466b51;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.reading-body pre {
  background: #233b30;
  color: #dfebe2;
  padding: 20px 23px;
  border-radius: 10px;
  line-height: 1.8;
  overflow: auto;
  font:
    12px/1.9 "SFMono-Regular",
    Consolas,
    monospace;
  margin: 20px 0;
  max-width: 100%;
}
.reading-body pre code {
  background: none;
  color: inherit;
  padding: 0;
  white-space: pre;
  overflow-wrap: normal;
}
.callout {
  background: #edf4ee;
  border-left: 3px solid #91b79a;
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  color: #59705f;
  margin: 20px 0;
}
.answer-gate {
  text-align: center;
  background: #f5f8f4;
  border: 1px dashed #cddcce;
  border-radius: 10px;
  padding: 28px;
  margin-top: 25px;
}
.answer-gate p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 15px;
}
.article-bottom {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.state-group {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.state-btn {
  font-size: 11px;
  border: 1px solid var(--line);
  padding: 7px 11px;
  border-radius: 6px;
  background: #fff;
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.state-btn.active {
  color: var(--green);
  border-color: #a8c6af;
  background: #edf5ee;
}
.state-btn[data-state="rusty"].active {
  color: var(--amber);
  background: #fbf4e6;
  border-color: #dac89f;
}
.prev-next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 22px;
}
.prev-next a {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  min-width: 0;
}
.prev-next a:last-child {
  text-align: right;
}
.prev-next span {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-bottom: 5px;
}
.prev-next strong {
  font-weight: 500;
  font-size: 12px;
}
.toc a {
  display: block;
  color: #7c8a7f;
  font-size: 12px;
  padding: 7px 0;
}
.toc a:first-of-type {
  color: var(--green);
}
.related-link {
  display: block;
  font-size: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #edf1ed;
  line-height: 1.8;
}
.related-link:last-child {
  border: 0;
}
.study-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 225px;
  gap: 18px;
  padding: 22px;
  max-width: 1640px;
  margin: auto;
  align-items: start;
}
.study-shell .reading {
  padding: 30px 34px;
}
.study-left {
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 125px);
  overflow: auto;
}
.study-left-heading {
  padding: 20px 18px;
  border-bottom: 1px solid var(--line);
}
.study-left-heading select {
  width: 100%;
  margin-top: 12px;
  padding: 7px;
  font-size: 12px;
}
.study-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 15px 18px;
  text-align: left;
  width: 100%;
  font-size: 12px;
  border-bottom: 1px solid #f0f3ef;
}
.study-item .no {
  font-size: 10px;
  color: #98a29a;
  margin-top: 2px;
}
.study-item.active {
  background: #eaf3eb;
  color: var(--green);
  border-left: 3px solid var(--green);
  padding-left: 15px;
}
.study-item:hover {
  background: #f2f7f1;
}
.study-right {
  position: sticky;
  top: 100px;
}
.study-right .side-box {
  padding: 18px;
}
.study-right .side-nav {
  padding: 8px;
  font-size: 11px;
}
.study-right .side-nav svg {
  width: 15px;
  height: 15px;
}
.mobile-drawer-toggle {
  display: none;
}
.me-layout {
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr);
  gap: 25px;
  padding-bottom: 50px;
}
.profile-card {
  padding: 24px;
  text-align: center;
}
.profile-card .avatar {
  width: 55px;
  height: 55px;
  font-size: 20px;
  margin-bottom: 12px;
}
.profile-card h3 {
  font-size: 15px;
}
.profile-card p {
  font-size: 11px;
  margin-top: 4px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.learning-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 23px;
  padding: 24px 0;
}
.learning-stat {
  padding: 0 25px;
  border-right: 1px solid var(--line);
}
.learning-stat:last-child {
  border: 0;
}
.learning-stat strong {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  display: block;
}
.learning-stat span {
  font-size: 11px;
  color: var(--muted);
}
.auth-wrap {
  max-width: 920px;
  margin: 55px auto 65px;
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  min-height: 540px;
}
.auth-art {
  background: #e4eee3;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.auth-art h2 {
  font-size: 29px;
  line-height: 1.55;
  margin-top: 20px;
  letter-spacing: -1px;
}
.auth-art p {
  color: #718474;
  font-size: 12px;
  line-height: 1.9;
  margin-top: 14px;
}
.auth-frog {
  width: 150px;
  margin: 25px auto;
}
.auth-form {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-form h1 {
  font-size: 25px;
  margin-bottom: 7px;
}
.auth-form .intro {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 25px;
}
.field {
  display: grid;
  gap: 7px;
  font-size: 12px;
  margin-bottom: 17px;
}
.field input,
.field select {
  width: 100%;
}
.field textarea {
  min-height: 150px;
  resize: vertical;
  width: 100%;
  font-size: 13px;
  line-height: 1.9;
}
.auth-form .btn {
  width: 100%;
  margin: 7px 0;
}
.form-help {
  font-size: 11px;
  line-height: 1.8;
  color: #819087;
  margin: 12px 0;
}
.notice {
  background: #f2f6ee;
  padding: 12px 15px;
  border-radius: 8px;
  color: #6d806d;
  font-size: 11px;
  margin-bottom: 20px;
}
.admin-shell {
  display: grid;
  grid-template-columns: 212px minmax(0, 1fr);
  gap: 26px;
  padding: 30px 28px 50px;
  max-width: 1380px;
  margin: auto;
}
.admin-sidebar {
  padding: 15px;
  position: sticky;
  top: 100px;
  height: fit-content;
}
.admin-title {
  font-size: 15px;
  padding: 12px;
  margin-bottom: 10px;
  font-weight: 650;
}
.admin-main {
  min-width: 0;
}
.admin-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 23px;
  gap: 20px;
}
.admin-heading h1 {
  font-size: 26px;
}
.admin-heading p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}
.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 23px;
}
.admin-stat {
  padding: 20px;
}
.admin-stat span {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.admin-stat strong {
  font-size: 29px;
  font-weight: 550;
}
.table-wrap {
  overflow: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
  min-width: 600px;
}
.data-table th {
  font-weight: 500;
  color: #859088;
  font-size: 11px;
  background: #fafcf9;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
}
.data-table td {
  padding: 16px 18px;
  border-bottom: 1px solid #edf1ed;
}
.data-table tr:last-child td {
  border: 0;
}
.data-table .cell-title {
  max-width: 290px;
}
.editor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.editor-panel {
  padding: 23px;
  min-width: 0;
}
.preview-pane {
  min-width: 0;
  padding: 23px;
  border-left: 1px solid var(--line);
  background: #fcfdfb;
}
.editor-panel textarea {
  min-height: 330px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
}
.editor-preview {
  font-size: 13px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
.editor-preview h2 {
  font-size: 21px;
  margin: 10px 0;
}
.editor-preview h3 {
  font-size: 16px;
  margin: 17px 0;
}
.editor-preview p {
  margin: 10px 0;
}
.editor-preview pre {
  white-space: pre-wrap;
  background: var(--bg);
  padding: 13px;
}
.editor-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  padding: 18px 23px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.full-span {
  grid-column: 1/-1;
}
.prose-page {
  max-width: 820px;
  margin: 35px auto 55px;
  padding: 36px 45px;
}
.prose-page h1 {
  font-size: 28px;
  margin-bottom: 20px;
}
.prose-page h2 {
  font-size: 18px;
  margin: 25px 0 9px;
}
.prose-page p {
  font-size: 14px;
  color: #718077;
  line-height: 2;
  margin: 12px 0;
}
.prose-page li {
  font-size: 13px;
  color: #718077;
  line-height: 2;
}
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: #233e30;
  color: #fff;
  border-radius: 9px;
  box-shadow: 0 8px 25px #15392425;
  padding: 13px 22px;
  z-index: 100;
  font-size: 12px;
  max-width: calc(100vw - 28px);
  text-align: center;
}
.toast[hidden] {
  display: none;
}
.mobile-nav {
  display: none;
}
.modal {
  border: 1px solid var(--line);
  border-radius: 16px;
  max-width: 500px;
  width: calc(100% - 35px);
  padding: 28px;
  color: var(--ink);
}
.modal::backdrop {
  background: #172d2259;
}
.modal h2 {
  margin-bottom: 14px;
}
.modal p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.9;
}
.modal .row {
  margin-top: 23px;
}
.import-result {
  margin: 15px 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
}
.error {
  color: #a34c3e;
  font-size: 12px;
  margin: 10px 0;
}
.skip-link {
  position: fixed;
  top: -60px;
  left: 20px;
  background: white;
  padding: 10px;
  z-index: 200;
}
.skip-link:focus {
  top: 10px;
}
.mobile-nav.open {
  display: flex;
}
@media (min-width: 1500px) {
  .hero h1 {
    font-size: 50px;
  }
  .hero {
    min-height: 400px;
  }
  .hero-art {
    height: 350px;
  }
}
@media (max-width: 1100px) {
  .topbar .container {
    gap: 30px;
  }
  .header-search {
    display: none;
  }
  .topic-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .main-grid {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 18px;
  }
  .hero h1 {
    font-size: 40px;
  }
  .hero-art {
    height: 300px;
  }
  .topic-card {
    padding: 15px 12px;
  }
  .topic-card .small {
    font-size: 9px;
  }
  .study-shell {
    grid-template-columns: 210px minmax(0, 1fr);
    padding: 18px;
  }
  .study-right {
    display: none;
  }
  .reading {
    padding: 28px;
  }
  .admin-shell {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 18px;
  }
  .editor-grid {
    grid-template-columns: 1fr;
  }
  .preview-pane {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}
@media (max-width: 800px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
  .main-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .home-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .home-side .daily {
    display: none;
  }
  .home-side > .stack {
    display: contents;
  }
  .hero {
    gap: 20px;
    min-height: 320px;
  }
  .hero h1 {
    font-size: 34px;
    letter-spacing: -1px;
  }
  .hero-copy > p {
    font-size: 12px;
  }
  .hero-art {
    height: 270px;
  }
  .hero-actions {
    gap: 8px;
  }
  .hero-actions .btn {
    font-size: 12px;
    padding: 10px 12px;
  }
  .hero-notes {
    gap: 12px;
    font-size: 9px;
  }
  .catalog-layout {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 15px;
  }
  .question-row {
    padding: 18px 16px;
  }
  .list-actions .icon-btn {
    display: none;
  }
  .detail-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .detail-side {
    display: none;
  }
  .topic-overview .topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .me-layout {
    grid-template-columns: 175px minmax(0, 1fr);
    gap: 18px;
  }
  .auth-wrap {
    margin: 30px 20px;
    grid-template-columns: 0.8fr 1fr;
  }
  .auth-art,
  .auth-form {
    padding: 28px;
  }
  .admin-shell {
    padding: 24px 20px;
  }
  .admin-stat {
    padding: 14px;
  }
  .footer-links {
    gap: 13px;
  }
}
@media (max-width: 600px) {
  body {
    font-size: 13px;
  }
  .topbar {
    height: 64px;
  }
  .topbar .container {
    gap: 10px;
    padding: 0 18px;
  }
  .brand {
    font-size: 20px;
    gap: 8px;
  }
  .brand-symbol {
    width: 33px;
    height: 33px;
  }
  .nav {
    display: none;
  }
  .header-tools {
    gap: 7px;
  }
  .header-tools .btn {
    font-size: 11px;
    min-height: 34px;
    padding: 7px 11px;
  }
  .header-tools .user-name {
    display: none;
  }
  .mobile-menu {
    display: inline-flex;
  }
  .proto-note {
    font-size: 9px;
    line-height: 1.7;
    padding: 5px 10px;
  }
  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding-top: 24px;
    padding-bottom: 29px;
  }
  .hero-copy {
    padding: 0 3px;
  }
  .hero h1 {
    font-size: 36px;
    line-height: 1.35;
    margin: 12px 0 15px;
  }
  .hero-copy > p {
    font-size: 13px;
    max-width: 300px;
  }
  .hero-actions {
    margin: 22px 0 13px;
  }
  .hero-actions .btn {
    font-size: 13px;
    padding: 11px 17px;
  }
  .hero-notes {
    font-size: 10px;
    gap: 19px;
  }
  .hero-art {
    height: 230px;
    border-radius: 18px;
  }
  .hero-art .art-caption {
    bottom: 12px;
    font-size: 10px;
  }
  .hero-art svg {
    transform: scale(1.06);
  }
  .tiny-leaf {
    font-size: 11px;
  }
  .section-heading {
    margin-bottom: 14px;
  }
  .section-heading h2 {
    font-size: 19px;
  }
  .section-heading .muted {
    font-size: 10px;
  }
  .section-heading .text-link {
    font-size: 11px;
  }
  .main-grid {
    gap: 4px;
    padding-bottom: 25px;
  }
  .topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .topic-card {
    min-height: 144px;
    padding: 17px;
  }
  .topic-card .small {
    font-size: 10px;
  }
  .topic-card h3 {
    font-size: 14px;
  }
  .topic-icon {
    width: 33px;
    height: 33px;
    margin-bottom: 10px;
  }
  .section {
    margin-bottom: 27px;
  }
  .home-side {
    grid-template-columns: 1fr;
    margin-bottom: 20px;
  }
  .home-side .side-box {
    display: none;
  }
  .home-side .continue-panel {
    padding: 23px;
  }
  .home-side .continue-panel .btn {
    max-width: 100%;
  }
  .tab-row {
    gap: 20px;
    padding: 0 16px;
    overflow: auto;
  }
  .tab {
    font-size: 12px;
    padding: 13px 0;
  }
  .question-row {
    gap: 9px;
    padding: 17px 15px;
  }
  .question-index {
    min-width: 17px;
    font-size: 10px;
  }
  .question-title {
    font-size: 13px;
  }
  .question-meta {
    font-size: 10px;
    gap: 7px;
  }
  .list-actions {
    gap: 0;
  }
  .list-actions .answer-link {
    font-size: 10px;
  }
  .footer-inner {
    padding-top: 23px;
    padding-bottom: 23px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    font-size: 10px;
  }
  .footer-links {
    gap: 22px;
    flex-wrap: wrap;
  }
  .catalog-layout {
    display: block;
  }
  .catalog-layout > .sidebar {
    position: static;
    margin-bottom: 16px;
    padding: 11px;
    display: flex;
    overflow: auto;
    gap: 5px;
    white-space: nowrap;
  }
  .catalog-layout > .sidebar .sidebar-title {
    display: none;
  }
  .catalog-layout > .sidebar .side-nav {
    width: auto;
    margin: 0;
    padding: 8px 10px;
    font-size: 11px;
  }
  .catalog-layout > .sidebar .side-nav small,
  .catalog-layout > .sidebar .side-nav svg {
    display: none;
  }
  .page-heading {
    padding-top: 25px;
    padding-bottom: 20px;
  }
  .page-heading h1 {
    font-size: 27px;
  }
  .page-heading p {
    font-size: 12px;
  }
  .breadcrumb {
    font-size: 10px;
    margin-bottom: 14px;
  }
  .filters {
    padding: 15px;
    gap: 4px;
  }
  .filter-label {
    font-size: 11px;
  }
  .chip {
    padding: 5px 9px;
    font-size: 11px;
  }
  .filters .count {
    font-size: 10px;
  }
  .list-toolbar {
    padding: 10px 15px;
    font-size: 10px;
  }
  .topic-overview .topic-grid {
    gap: 12px;
  }
  .topic-overview .topic-card {
    padding: 18px;
    min-height: 190px;
  }
  .topic-overview .topic-card h3 {
    font-size: 17px;
  }
  .topic-overview .topic-card .small {
    font-size: 11px;
  }
  .reading {
    padding: 23px 20px;
  }
  .reading h1 {
    font-size: 23px;
    line-height: 1.6;
  }
  .reading-body {
    font-size: 13px;
  }
  .reading-body h2 {
    font-size: 17px;
  }
  .article-meta {
    font-size: 10px;
    gap: 8px;
  }
  .reading-body pre {
    padding: 16px;
    font-size: 11px;
  }
  .article-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
  .prev-next {
    gap: 10px;
  }
  .prev-next a {
    padding: 13px;
  }
  .prev-next strong {
    font-size: 11px;
  }
  .study-shell {
    display: block;
    padding: 12px;
  }
  .study-shell .reading {
    padding: 23px 19px;
  }
  .study-left {
    display: none;
    position: static;
    max-height: 400px;
    margin: 12px 0;
  }
  .study-left.open {
    display: block;
  }
  .mobile-drawer-toggle {
    display: flex;
    width: 100%;
    justify-content: space-between;
    padding: 11px 15px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 12px;
  }
  .study-right {
    display: block;
    position: static;
    margin-top: 17px;
  }
  .study-right .topic-filter-panel {
    display: none;
  }
  .study-right .side-box {
    padding: 20px;
  }
  .me-layout {
    display: block;
  }
  .me-sidebar {
    margin-bottom: 20px;
  }
  .profile-card {
    display: flex;
    align-items: center;
    text-align: left;
    gap: 15px;
    padding: 18px;
  }
  .profile-card .avatar {
    margin: 0;
    width: 44px;
    height: 44px;
  }
  .me-sidebar .sidebar {
    display: flex;
    padding: 10px;
    position: static;
    overflow: auto;
    white-space: nowrap;
    margin-top: 13px;
    gap: 4px;
  }
  .me-sidebar .side-nav {
    width: auto;
    margin: 0;
    font-size: 11px;
    padding: 9px;
  }
  .me-sidebar .side-nav svg {
    display: none;
  }
  .learning-summary {
    padding: 19px 0;
    margin-bottom: 18px;
  }
  .learning-stat {
    padding: 0 20px;
  }
  .learning-stat strong {
    font-size: 25px;
  }
  .auth-wrap {
    display: block;
    margin: 25px 18px;
    border-radius: 15px;
    min-height: 0;
  }
  .auth-art {
    display: none;
  }
  .auth-form {
    padding: 30px 25px;
  }
  .auth-form h1 {
    font-size: 25px;
  }
  .auth-form .intro {
    font-size: 11px;
  }
  .admin-shell {
    display: block;
    padding: 22px 16px;
  }
  .admin-sidebar {
    position: static;
    display: flex;
    overflow: auto;
    padding: 9px;
    margin-bottom: 22px;
    gap: 4px;
    white-space: nowrap;
  }
  .admin-sidebar .admin-title {
    display: none;
  }
  .admin-sidebar .side-nav {
    width: auto;
    font-size: 11px;
    padding: 9px;
    margin: 0;
  }
  .admin-sidebar .side-nav svg {
    display: none;
  }
  .admin-heading {
    gap: 10px;
    align-items: flex-start;
  }
  .admin-heading h1 {
    font-size: 24px;
  }
  .admin-heading p {
    font-size: 10px;
  }
  .admin-heading .btn {
    font-size: 11px;
    padding: 8px 10px;
  }
  .admin-stats {
    gap: 8px;
  }
  .admin-stat {
    padding: 13px;
  }
  .admin-stat strong {
    font-size: 25px;
  }
  .admin-stat span {
    font-size: 10px;
  }
  .editor-panel,
  .preview-pane {
    padding: 18px;
  }
  .editor-bar {
    padding: 16px;
    gap: 7px;
  }
  .editor-bar .btn {
    font-size: 11px;
    padding: 9px 11px;
  }
  .prose-page {
    padding: 26px 23px;
    margin: 22px 18px;
  }
  .prose-page h1 {
    font-size: 25px;
  }
  .prose-page p {
    font-size: 13px;
  }
  .search-banner {
    gap: 8px;
  }
  .search-banner .btn {
    padding: 9px 14px;
  }
  .mobile-nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 30;
    padding: 17px 22px;
    box-shadow: 0 12px 18px #173c2312;
    gap: 25px;
    border-top: 1px solid var(--line);
    flex-wrap: wrap;
  }
  .mobile-nav a {
    font-size: 13px;
    padding: 8px;
  }
  .mobile-nav form {
    width: 100%;
    display: flex;
    gap: 8px;
  }
  .mobile-nav input {
    min-width: 0;
    flex: 1;
  }
  .hero-art .hide-small {
    display: none;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-copy {
    animation: arrive 0.45s ease both;
  }
  .hero-art {
    animation: arrive 0.6s ease both;
  }
  @keyframes arrive {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}
.continue-panel h3 {
  font-size: 16px;
  text-wrap: pretty;
}
.continue-panel:after {
  display: none;
}
.topic-card h3 {
  overflow-wrap: anywhere;
}

/* V2: compact editorial portal, based on the user's selected homepage. */
:root {
  --bg: #f6f7f8;
  --green: #18634f;
  --green-dark: #073e3b;
  --mint: #e8f5eb;
  --ink: #26363c;
  --muted: #768188;
  --line: #e1e6e8;
  --radius: 6px;
}
body {
  font-size: 14px;
}
.container {
  max-width: 1280px;
  padding-left: 20px;
  padding-right: 20px;
}
.panel {
  border-radius: 6px;
  box-shadow: 0 1px 4px #23363c06;
}
.btn {
  border-radius: 4px;
}
.topbar {
  height: 62px;
  background: #073e3b;
  border-bottom: 0;
}
.topbar .container {
  gap: 22px;
  height: 62px;
}
.topbar .brand {
  font-size: 23px;
  letter-spacing: 0;
  color: #fff;
  gap: 7px;
  margin-right: 4px;
}
.topbar .brand-symbol {
  width: 34px;
  height: 34px;
}
.topbar .brand .dot {
  color: #a4d5b6;
}
.topbar .nav {
  gap: 0;
}
.topbar .nav a {
  color: #f1f5f4;
  font-size: 14px;
  padding: 0 18px;
  font-weight: 550;
  gap: 5px;
  white-space: nowrap;
}
.topbar .nav a.active {
  background: #e85f37;
  color: #fff;
}
.topbar .nav a:hover {
  background: #ffffff10;
}
.topbar .nav a.active:hover {
  background: #d6532c;
}
.topbar .nav a.active:after {
  display: none;
}
.header-tools {
  gap: 17px;
}
.header-search {
  background: #ffffff0e;
  border-color: #ffffff20;
  color: #c4d2d1;
  padding: 7px 10px;
}
.header-search input {
  width: 125px;
  color: white;
  font-size: 11px;
}
.header-search input::placeholder {
  color: #bbcdca;
}
.header-search .key {
  border-color: #ffffff25;
  color: #bbcdca;
}
.topbar .login-button {
  background: #438ac0;
  min-height: 32px;
  padding: 6px 15px;
  font-size: 12px;
  font-weight: 500;
}
.topbar .login-button:hover {
  background: #367cae;
}
.topbar .account-link {
  color: #fff;
  gap: 8px;
}
.topbar .avatar {
  width: 30px;
  height: 30px;
  font-size: 12px;
}
.topbar .mobile-menu {
  color: #fff;
}
.topbar .icon-btn:hover {
  background: #ffffff15;
}
.proto-note {
  background: #fff;
  color: #7c898e;
  padding: 9px 0;
  border-bottom: 1px solid #e8edef;
  font-size: 11px;
  line-height: 1.5;
  text-align: left;
}
.proto-note .container {
  gap: 8px;
}
.proto-note a {
  font-size: 10px;
  color: #899399;
  display: flex;
  align-items: center;
  gap: 5px;
}
.note-separator {
  margin: 0 10px;
  color: #c1cbcf;
}
.portal-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.08fr) minmax(0, 1fr);
  gap: 22px;
  padding-top: 20px;
  padding-bottom: 38px;
  align-items: start;
}
.portal-main,
.portal-aside {
  min-width: 0;
  display: grid;
  gap: 18px;
  align-content: start;
}
.portal-mobile-search {
  display: none;
}
.portal-banner {
  height: 254px;
  border: 1px solid #d5e7d9;
  box-shadow: 0 2px 5px #3050410b;
  background: #e8f5eb;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 25px 23px 50px;
  gap: 25px;
  border-radius: 5px;
}
.banner-editor {
  width: 166px;
  flex-shrink: 0;
  align-self: center;
  border: 3px solid #58756b;
  background: #183b35;
  border-radius: 5px;
  box-shadow: 7px 8px 0 #cadfd0;
  transform: rotate(-3deg);
  color: #d2e1d8;
}
.editor-dots {
  padding: 7px 8px;
  background: #244b41;
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 6px;
  border-bottom: 1px solid #ffffff0d;
}
.editor-dots i {
  height: 4px;
  width: 4px;
  background: #9abda5;
  border-radius: 100%;
}
.editor-dots i:first-child {
  background: #e5ac8a;
}
.editor-dots i:nth-child(2) {
  background: #dfcc85;
}
.editor-dots span {
  margin-left: 8px;
  font-size: 6px;
  color: #bccdc1;
}
.editor-code {
  display: grid;
  gap: 4px;
  padding: 14px 10px 10px;
  white-space: pre;
  font:
    8px/1.45 Consolas,
    monospace;
  letter-spacing: -0.1px;
}
.editor-code b {
  font-weight: 400;
  color: #a8c7e1;
}
.editor-code em {
  color: #cfca94;
  font-style: normal;
}
.editor-code .code-comment {
  color: #8ca997;
  margin-bottom: 5px;
}
.editor-status {
  font-size: 5px;
  background: #274e42;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  color: #a5bdac;
}
.editor-status i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #a8ce9c;
}
.banner-message {
  position: relative;
  z-index: 2;
  flex: 1;
  min-width: 0;
}
.banner-badge {
  display: inline-block;
  font-size: 10px;
  color: #458266;
  background: #d8ecdb;
  border: 1px solid #bfd9c7;
  padding: 2px 7px;
  border-radius: 3px;
  margin-bottom: 8px;
}
.banner-message h1 {
  font-size: 32px;
  line-height: 1.3;
  color: #144b3c;
  font-weight: 750;
  letter-spacing: -0.8px;
  margin: 0 0 11px;
}
.banner-message > p {
  font-size: 13px;
  color: #56806c;
  white-space: nowrap;
}
.banner-actions {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-top: 16px;
}
.banner-actions .btn {
  font-size: 11px;
  padding: 6px 12px;
  min-height: 32px;
  background: #21664e;
}
.banner-actions > a:last-child {
  font-size: 11px;
  color: #326850;
  display: flex;
  gap: 6px;
  align-items: center;
}
.banner-mascot {
  position: relative;
  flex-shrink: 0;
  width: 136px;
  height: 174px;
  align-self: center;
  margin-right: 3px;
}
.banner-frog {
  width: 126px;
  height: 120px;
  position: absolute;
  top: 21px;
  left: 5px;
  transform: rotate(5deg);
}
.mascot-orbit {
  position: absolute;
  width: 157px;
  height: 157px;
  border: 1px solid #a7cdb0;
  border-radius: 50%;
  top: 5px;
  left: -10px;
  transform: rotate(18deg);
}
.mascot-orbit:after {
  content: "";
  position: absolute;
  width: 121px;
  height: 121px;
  border: 1px dashed #b6d5bb;
  border-radius: 50%;
  top: 17px;
  left: 17px;
}
.mascot-topic {
  background: #f8fcf7;
  border: 1px solid #c3d9c7;
  border-radius: 4px;
  position: absolute;
  font-size: 10px;
  color: #4c805e;
  padding: 3px 10px;
  z-index: 1;
}
.mascot-topic:nth-of-type(1) {
  top: -1px;
  left: 37px;
}
.mascot-topic:nth-of-type(2) {
  bottom: 23px;
  left: -11px;
}
.mascot-topic:nth-of-type(3) {
  bottom: 9px;
  right: -5px;
}
.banner-bottom {
  display: flex;
  justify-content: center;
  gap: 0;
  align-items: center;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34px;
  background: #d8ebdc;
  color: #61806a;
  font-size: 10px;
  border-top: 1px solid #cbdfd0;
}
.banner-bottom span {
  padding: 0 14px;
  border-right: 1px solid #bdd2c3;
  line-height: 1.1;
}
.banner-bottom span:last-child {
  border: 0;
}
.portal-section {
  margin: 0;
}
.portal-section-head {
  height: 43px;
  min-height: 43px;
  display: flex;
  align-items: center;
  padding: 0 15px;
  gap: 10px;
  border-bottom: 1px solid #dfe5e7;
  background: #fff;
}
.portal-section-head h2 {
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.3px;
  line-height: 1.5;
  white-space: nowrap;
}
.portal-section-head > a,
.portal-section-head > button {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #52636b;
  white-space: nowrap;
}
.portal-section-head > a:hover,
.portal-section-head > button:hover {
  color: var(--green);
}
.portal-section-head .section-head-hint {
  font-size: 10px;
  color: #8b969a;
  margin-left: auto;
  white-space: nowrap;
}
.portal-section-head .section-head-hint + a {
  margin-left: 10px;
}
.portal-topic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: #edf0f1;
}
.portal-topic {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 17px 12px;
  min-height: 82px;
  background: #fff;
}
.portal-topic:hover {
  background: #f4f9f5;
}
.portal-topic-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 8px;
}
.portal-topic h3 {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  color: #2c3b41;
  margin-bottom: 6px;
}
.portal-topic p {
  color: #879297;
  font-size: 10px;
  white-space: nowrap;
}
.portal-topic em {
  color: #d55737;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  margin-right: 4px;
}
.portal-tabs {
  display: flex;
  align-items: center;
  gap: 19px;
  padding: 13px 15px 10px;
  font-size: 11px;
  overflow: auto;
}
.portal-tabs button {
  padding: 2px 1px;
  color: #768087;
  white-space: nowrap;
}
.portal-tabs button.active {
  color: var(--green);
  font-weight: 650;
}
.portal-tabs button.active:before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 5px;
  vertical-align: middle;
}
.portal-cover-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 17px;
  padding: 5px 13px 17px;
}
.portal-course {
  display: block;
  min-width: 0;
}
.portal-cover {
  height: 104px;
  position: relative;
  background: var(--cover);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px 12px;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid #00000005;
}
.portal-cover h3 {
  font-size: 16px;
  line-height: 1.4;
  position: relative;
  z-index: 2;
  letter-spacing: 0.2px;
  white-space: nowrap;
  font-weight: 650;
  max-width: 100%;
}
.cover-type {
  font-size: 7px;
  color: #ffffffb0;
  margin-bottom: 8px;
  position: relative;
  z-index: 2;
  letter-spacing: 0.7px;
}
.cover-subtitle {
  font-size: 8px;
  color: #f2f8fc;
  position: relative;
  z-index: 2;
  margin-top: 7px;
  white-space: nowrap;
  letter-spacing: 0.1px;
}
.cover-illustration {
  position: absolute;
  right: 7px;
  bottom: 8px;
  transform: rotate(-12deg);
  color: var(--cover-accent);
  opacity: 0.25;
}
.cover-corner {
  position: absolute;
  width: 108px;
  height: 108px;
  right: -18px;
  bottom: -58px;
  background: var(--cover-accent);
  opacity: 0.12;
  transform: rotate(30deg);
}
.cover-corner:before {
  content: "";
  position: absolute;
  width: 81px;
  height: 81px;
  left: -30px;
  top: -27px;
  border: 1px solid #ffffffaa;
}
.portal-course > strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  text-align: center;
  font-weight: 500;
  margin-top: 8px;
  line-height: 1.6;
}
.portal-course > p {
  font-size: 10px;
  color: #90999e;
  text-align: center;
  white-space: nowrap;
  margin-top: 3px;
}
.portal-course > p span {
  margin-left: 5px;
}
.portal-course > p em {
  font-size: 11px;
  font-weight: 550;
  color: #d55737;
  font-style: normal;
}
.portal-course:hover > strong {
  color: var(--green);
  text-decoration: underline;
}
.portal-course:hover .portal-cover {
  filter: brightness(1.06);
}
.portal-focus-grid {
  padding-top: 15px;
}
.portal-focus-grid .portal-cover {
  height: 96px;
}
.portal-focus-grid .portal-cover h3 {
  font-size: 15px;
}
.portal-main .question-row {
  padding: 15px 18px;
  gap: 12px;
}
.portal-main .question-title {
  font-size: 13px;
  font-weight: 500;
}
.portal-main .question-meta {
  margin-top: 5px;
  font-size: 10px;
  gap: 9px;
}
.portal-main .question-index {
  font-size: 10px;
  min-width: 17px;
}
.portal-main .list-actions .answer-link {
  font-size: 10px;
}
.portal-main .question-meta .pill {
  font-size: 9px;
}
.portal-main .list-actions .icon-btn {
  width: 30px;
  height: 30px;
}
.portal-endnote {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  color: #8c999b;
  font-size: 11px;
  padding: 2px 0 4px;
}
.portal-search {
  height: 43px;
  display: flex;
  background: #fff;
  border: 1px solid #d8dfe2;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 4px #23363c06;
}
.portal-search input {
  flex: 1;
  border: 0;
  background: #fff;
  min-width: 0;
  font-size: 13px;
  padding: 10px 14px;
  outline-offset: -3px;
}
.portal-search input::placeholder {
  color: #959fa5;
  letter-spacing: 0.5px;
}
.portal-search button {
  width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #163d3a;
  color: white;
  border-radius: 0;
}
.portal-aside {
  gap: 18px;
}
.portal-aside .portal-section-head h2 {
  font-size: 13px;
  letter-spacing: 0.1px;
}
.portal-aside .portal-section-head {
  padding: 0 13px;
  height: 41px;
  min-height: 41px;
}
.portal-update {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border-bottom: 1px dashed #e0e5e7;
}
.portal-update:last-child {
  border-bottom: 0;
}
.update-symbol {
  height: 34px;
  width: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  flex-shrink: 0;
}
.portal-update > div {
  min-width: 0;
  flex: 1;
}
.portal-update strong {
  font-size: 12px;
  line-height: 1.55;
  font-weight: 500;
  display: block;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.portal-update p {
  font-size: 10px;
  color: #7c8b93;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 4px;
}
.portal-update p span {
  margin-left: auto;
  color: #a2aaaf;
}
.portal-update p b {
  font-weight: 400;
  color: #58916f;
  font-size: 9px;
  border: 1px solid #d3e6d8;
  border-radius: 2px;
  padding: 0 3px;
}
.portal-update:hover strong {
  color: var(--green);
  text-decoration: underline;
}
.portal-side-topics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 7px 8px 9px;
}
.portal-side-topics > a {
  text-align: center;
  padding: 13px 3px 8px;
  min-height: 98px;
}
.portal-side-topics > a > span {
  display: block;
  margin-bottom: 6px;
}
.portal-side-topics strong {
  font-size: 11px;
  font-weight: 500;
  display: block;
}
.portal-side-topics p {
  font-size: 9px;
  color: #8b969d;
  margin-top: 4px;
}
.portal-side-topics em {
  font-style: normal;
  color: #d55737;
}
.portal-side-topics a:hover {
  background: #f6f9f7;
}
.portal-hot-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 11px 13px;
  border-bottom: 1px solid #e9ecee;
}
.portal-hot-item:last-child {
  border: 0;
}
.portal-hot-item > span {
  font-size: 11px;
  color: #8b989d;
  padding-top: 2px;
  width: 12px;
  flex-shrink: 0;
}
.portal-hot-item strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.7;
}
.portal-hot-item > div {
  min-width: 0;
  flex: 1;
}
.portal-hot-item p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 7px;
  font-size: 10px;
  color: #8f999d;
}
.portal-hot-item p b {
  font-weight: 400;
  color: #628a77;
  font-size: 9px;
  margin-left: auto;
}
.portal-hot-item .pill {
  font-size: 9px;
  padding: 1px 5px;
}
.portal-hot-item:hover strong {
  color: var(--green);
}
.portal-continue-body {
  padding: 18px 15px;
}
.portal-continue-icon {
  width: 43px;
  height: 43px;
  background: #edf5ee;
  color: #57826b;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}
.portal-continue-body h3 {
  font-size: 12px;
  font-weight: 550;
  line-height: 1.8;
}
.portal-continue-body p {
  font-size: 10px;
  color: #89969b;
  line-height: 1.8;
  margin-top: 3px;
}
.portal-continue-body > .btn {
  margin-top: 16px;
  width: 100%;
  min-height: 34px;
  font-size: 11px;
}
.portal-help ol {
  padding: 4px 18px 5px 34px;
  font-size: 11px;
  color: #849399;
}
.portal-help li {
  padding: 10px 0;
}
.portal-help strong {
  font-size: 11px;
  color: #4e626b;
  font-weight: 550;
}
.portal-help p {
  font-size: 10px;
  margin-top: 3px;
  color: #8c989e;
}
.site-footer {
  background: #38434f;
  border-top: 0;
  color: #d1d7dc;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  padding-top: 31px;
  padding-bottom: 28px;
  font-size: 10px;
  color: #aeb8c0;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #f1f4f6;
  font-size: 20px;
  letter-spacing: 0.5px;
  margin: 0;
}
.footer-brand .brand-symbol {
  width: 31px;
  height: 31px;
}
.footer-links {
  gap: 24px;
  font-size: 11px;
  color: #e0e5e9;
}
.footer-inner p {
  max-width: 830px;
  line-height: 1.8;
}
.footer-inner p + p {
  margin-top: -7px;
}
.footer-inner > span {
  font-size: 10px;
  color: #9fabb5;
}
.page-heading {
  padding-top: 25px;
  padding-bottom: 22px;
}
.page-heading h1 {
  font-size: 28px;
  letter-spacing: -0.5px;
}
.page-heading .breadcrumb {
  margin-bottom: 14px;
}
.catalog-layout {
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 22px;
}
.sidebar {
  top: 83px;
  border-radius: 5px;
}
.detail-layout {
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 22px;
}
.reading {
  border-top: 3px solid #366e5c;
  border-radius: 5px;
}
.reading h1 {
  font-size: 26px;
}
.study-left,
.study-right,
.admin-sidebar {
  top: 82px;
}
.study-left {
  max-height: calc(100vh - 100px);
}
.study-shell {
  padding-top: 20px;
}
.topic-overview .topic-card {
  min-height: 173px;
  border-radius: 5px;
  padding: 22px;
}
.topic-overview .topic-grid {
  gap: 16px;
}
.learning-summary,
.profile-card,
.prev-next a {
  border-radius: 6px;
}
.auth-wrap {
  border-radius: 7px;
}
.admin-sidebar {
  border-radius: 5px;
}
.admin-main .notice {
  border-radius: 4px;
}
.admin-stat {
  padding: 18px;
}
.mobile-nav {
  border-radius: 0;
}
.mobile-nav .btn {
  background: #18634f;
}
@media (min-width: 901px) and (max-width: 1190px) {
  .topbar .container {
    gap: 14px;
  }
  .topbar .nav a {
    padding: 0 13px;
    font-size: 13px;
  }
  .header-tools {
    gap: 9px;
  }
  .banner-editor {
    width: 139px;
  }
  .editor-code {
    font-size: 7px;
    padding-left: 8px;
  }
  .portal-banner {
    gap: 16px;
    padding-left: 18px;
    padding-right: 16px;
  }
  .banner-message h1 {
    font-size: 28px;
  }
  .banner-mascot {
    width: 104px;
  }
  .banner-frog {
    width: 106px;
    left: -4px;
  }
  .mascot-orbit {
    width: 126px;
    height: 126px;
    left: -12px;
    top: 20px;
  }
  .mascot-orbit:after {
    width: 94px;
    height: 94px;
    top: 15px;
    left: 15px;
  }
  .mascot-topic {
    font-size: 8px;
    padding: 3px 7px;
  }
  .portal-topic {
    gap: 7px;
    padding: 15px 8px;
  }
  .portal-topic-icon {
    width: 33px;
    height: 36px;
  }
  .portal-topic h3 {
    font-size: 11px;
  }
  .portal-topic p {
    font-size: 9px;
  }
  .portal-cover-grid {
    gap: 16px 12px;
  }
  .portal-cover {
    height: 93px;
    padding: 12px 9px;
  }
  .portal-cover h3 {
    font-size: 13px;
  }
  .cover-subtitle {
    font-size: 7px;
  }
  .portal-cover .cover-type {
    font-size: 6px;
  }
  .portal-course > strong {
    font-size: 11px;
  }
  .portal-course > p {
    font-size: 9px;
  }
  .portal-section-head {
    padding: 0 12px;
  }
  .portal-section-head h2 {
    font-size: 13px;
  }
  .portal-section-head .section-head-hint {
    display: none;
  }
  .portal-side-topics strong {
    font-size: 10px;
  }
  .portal-update {
    gap: 8px;
    padding: 11px 10px;
  }
  .portal-update strong {
    font-size: 11px;
  }
}
@media (max-width: 900px) {
  .container {
    padding-left: 18px;
    padding-right: 18px;
  }
  .topbar .container {
    gap: 13px;
  }
  .topbar .nav a {
    padding: 0 11px;
    font-size: 12px;
  }
  .topbar .brand {
    font-size: 21px;
  }
  .header-search {
    display: none;
  }
  .portal-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .portal-mobile-search {
    display: block;
  }
  .portal-mobile-search form {
    display: flex;
    height: 41px;
    border: 1px solid #d9e2e2;
    overflow: hidden;
    border-radius: 4px;
    background: white;
  }
  .portal-mobile-search input {
    border: 0;
    flex: 1;
    min-width: 0;
    font-size: 12px;
    padding: 9px 13px;
  }
  .portal-mobile-search button {
    background: #164c43;
    color: white;
    width: 45px;
  }
  .portal-aside {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
  }
  .portal-aside .portal-search {
    display: none;
  }
  .portal-banner {
    height: 245px;
  }
  .portal-topic {
    min-height: 82px;
  }
  .portal-main .question-title {
    font-size: 13px;
  }
  .portal-cover {
    height: 105px;
  }
  .portal-cover h3 {
    font-size: 15px;
  }
  .banner-message h1 {
    font-size: 32px;
  }
  .banner-editor {
    width: 174px;
  }
  .banner-mascot {
    width: 141px;
  }
  .proto-note .container {
    font-size: 10px;
  }
  .proto-note a {
    font-size: 9px;
  }
  .detail-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .detail-side {
    display: none;
  }
  .catalog-layout {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 16px;
  }
  .portal-section-head .section-head-hint {
    font-size: 9px;
  }
  .footer-inner {
    padding-top: 28px;
    padding-bottom: 25px;
  }
  .portal-endnote {
    font-size: 10px;
  }
}
@media (max-width: 600px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .topbar,
  .topbar .container {
    height: 57px;
  }
  .topbar .container {
    padding: 0 15px;
    gap: 9px;
  }
  .topbar .brand {
    font-size: 21px;
    gap: 6px;
  }
  .topbar .brand-symbol {
    width: 31px;
    height: 31px;
  }
  .topbar .nav {
    display: none;
  }
  .topbar .header-tools {
    gap: 10px;
  }
  .topbar .login-button {
    font-size: 11px;
    padding: 6px 11px;
    min-height: 30px;
  }
  .topbar .avatar {
    width: 29px;
    height: 29px;
  }
  .topbar .mobile-menu {
    width: 31px;
  }
  .proto-note {
    padding: 7px 0;
  }
  .proto-note .container {
    font-size: 9px;
    row-gap: 2px;
  }
  .proto-note a {
    font-size: 8px;
  }
  .note-separator {
    margin: 0 5px;
  }
  .portal-layout {
    padding-top: 12px;
    padding-bottom: 24px;
    gap: 12px;
  }
  .portal-main {
    gap: 14px;
  }
  .portal-banner {
    height: 226px;
    padding: 19px 15px 43px;
    gap: 0;
    align-items: center;
  }
  .banner-editor {
    display: none;
  }
  .banner-message h1 {
    font-size: 29px;
    line-height: 1.3;
    margin-bottom: 10px;
    letter-spacing: -0.4px;
  }
  .banner-message > p {
    font-size: 11px;
    white-space: nowrap;
  }
  .banner-badge {
    font-size: 8px;
    padding: 2px 6px;
    margin-bottom: 8px;
  }
  .banner-actions {
    gap: 13px;
    margin-top: 13px;
  }
  .banner-actions .btn {
    font-size: 10px;
    min-height: 31px;
    padding: 6px 10px;
  }
  .banner-actions > a:last-child {
    font-size: 9px;
    gap: 4px;
  }
  .banner-mascot {
    width: 105px;
    height: 149px;
    margin-right: -4px;
    align-self: center;
  }
  .banner-frog {
    width: 100px;
    height: 103px;
    top: 18px;
    left: 1px;
  }
  .mascot-orbit {
    width: 119px;
    height: 119px;
    top: 10px;
    left: -6px;
  }
  .mascot-orbit:after {
    width: 91px;
    height: 91px;
    top: 13px;
    left: 13px;
  }
  .mascot-topic {
    font-size: 8px;
    padding: 2px 7px;
  }
  .mascot-topic:nth-of-type(1) {
    top: 0;
    left: 29px;
  }
  .mascot-topic:nth-of-type(2) {
    bottom: 21px;
    left: -3px;
  }
  .mascot-topic:nth-of-type(3) {
    bottom: 7px;
    right: -4px;
  }
  .banner-bottom {
    height: 28px;
    font-size: 8px;
  }
  .banner-bottom span {
    padding: 0 8px;
  }
  .portal-section-head {
    height: 41px;
    min-height: 41px;
    padding: 0 12px;
    gap: 7px;
  }
  .portal-section-head h2 {
    font-size: 13px;
    letter-spacing: 0.1px;
  }
  .portal-section-head > a,
  .portal-section-head > button {
    font-size: 10px;
  }
  .portal-section-head .section-head-hint {
    display: none;
  }
  .portal-topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .portal-topic {
    min-height: 72px;
    padding: 12px 13px;
    gap: 11px;
  }
  .portal-topic h3 {
    font-size: 12px;
    margin-bottom: 4px;
  }
  .portal-topic p {
    font-size: 9px;
  }
  .portal-topic em {
    font-size: 11px;
  }
  .portal-topic-icon {
    width: 36px;
    height: 38px;
    border-radius: 6px;
  }
  .portal-topic-icon svg {
    width: 22px;
  }
  .portal-tabs {
    gap: 18px;
    padding: 12px 13px 9px;
    font-size: 10px;
  }
  .portal-cover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 5px 12px 15px;
    gap: 16px 12px;
  }
  .portal-cover {
    height: 104px;
    padding: 13px 11px;
  }
  .portal-cover h3 {
    font-size: 15px;
    letter-spacing: 0;
  }
  .cover-type {
    font-size: 7px;
  }
  .cover-subtitle {
    font-size: 8px;
  }
  .cover-illustration {
    right: 7px;
    bottom: 8px;
  }
  .portal-course > strong {
    font-size: 11px;
    margin-top: 6px;
  }
  .portal-course > p {
    font-size: 9px;
    margin-top: 3px;
  }
  .portal-course > p em {
    font-size: 10px;
  }
  .portal-course > p span {
    margin-left: 3px;
  }
  .portal-focus-grid {
    padding-top: 13px;
  }
  .portal-focus-grid .portal-cover {
    height: 96px;
  }
  .portal-focus-grid .portal-cover h3 {
    font-size: 14px;
  }
  .portal-main .question-row {
    padding: 15px 12px;
    gap: 7px;
  }
  .portal-main .question-title {
    font-size: 12px;
    line-height: 1.8;
  }
  .portal-main .question-meta {
    font-size: 9px;
    gap: 7px;
    line-height: 1.8;
  }
  .portal-main .question-meta .pill {
    font-size: 8px;
  }
  .portal-main .question-index {
    min-width: 15px;
    padding-top: 3px;
    font-size: 9px;
  }
  .portal-main .list-actions .answer-link {
    font-size: 9px;
    margin-top: 4px;
  }
  .portal-endnote {
    font-size: 9px;
    gap: 4px;
  }
  .portal-endnote svg {
    width: 12px;
  }
  .portal-aside {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .portal-aside .portal-section-head h2 {
    font-size: 13px;
  }
  .portal-update {
    padding: 11px 13px;
  }
  .portal-update strong {
    font-size: 12px;
  }
  .portal-hot-item strong {
    font-size: 12px;
  }
  .portal-hot-item p {
    font-size: 10px;
  }
  .portal-side-topics > a {
    min-height: 95px;
    padding-top: 13px;
  }
  .portal-side-topics strong {
    font-size: 11px;
  }
  .portal-continue-body .row {
    gap: 11px;
  }
  .portal-continue-body h3 {
    font-size: 12px;
  }
  .footer-inner {
    padding-top: 26px;
    padding-bottom: 25px;
    gap: 16px;
    align-items: center;
    font-size: 9px;
  }
  .footer-inner p {
    max-width: 335px;
    line-height: 1.9;
  }
  .footer-links {
    font-size: 10px;
    gap: 20px;
    justify-content: center;
  }
  .footer-brand {
    font-size: 18px;
    gap: 5px;
  }
  .footer-brand .brand-symbol {
    width: 27px;
    height: 27px;
  }
  .footer-inner > span {
    font-size: 9px;
  }
  .mobile-nav {
    top: 57px;
    padding: 13px 16px;
    gap: 12px 16px;
  }
  .mobile-nav a {
    font-size: 12px;
    padding: 6px 3px;
  }
  .mobile-nav input {
    font-size: 12px;
  }
  .mobile-nav form {
    margin-top: 5px;
  }
  .catalog-layout {
    display: block;
  }
  .catalog-layout > .sidebar {
    top: auto;
    margin-bottom: 14px;
    border-radius: 5px;
  }
  .reading {
    padding: 23px 19px;
  }
  .reading h1 {
    font-size: 22px;
  }
  .page-heading {
    padding-top: 20px;
    padding-bottom: 18px;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .topic-overview .topic-card {
    padding: 18px;
    min-height: 175px;
  }
  .topic-overview .topic-card h3 {
    font-size: 17px;
  }
  .topic-overview .topic-grid {
    gap: 12px;
  }
  .study-shell {
    padding: 12px;
  }
  .study-left {
    position: static;
    max-height: 400px;
  }
  .study-right {
    position: static;
  }
  .detail-layout {
    gap: 16px;
  }
  .prev-next {
    gap: 10px;
  }
  .me-layout {
    display: block;
  }
  .me-sidebar .sidebar {
    top: auto;
  }
  .auth-wrap {
    margin: 22px 13px;
  }
  .admin-shell {
    padding-left: 13px;
    padding-right: 13px;
  }
  .admin-sidebar {
    position: static;
  }
  .section-heading h2 {
    font-size: 18px;
  }
}
@media (max-width: 360px) {
  .banner-message h1 {
    font-size: 26px;
  }
  .banner-mascot {
    width: 89px;
  }
  .banner-frog {
    width: 91px;
  }
  .mascot-orbit {
    width: 104px;
    height: 104px;
  }
  .mascot-orbit:after {
    width: 78px;
    height: 78px;
    top: 12px;
    left: 12px;
  }
  .banner-message > p {
    font-size: 10px;
  }
  .banner-actions {
    gap: 8px;
  }
  .banner-actions .btn {
    padding: 5px 8px;
    font-size: 9px;
  }
  .banner-actions > a:last-child {
    font-size: 8px;
  }
  .banner-bottom span {
    padding: 0 5px;
  }
  .portal-cover h3 {
    font-size: 13px;
  }
  .portal-course > p span {
    display: none;
  }
  .portal-topic {
    padding-left: 10px;
    gap: 8px;
  }
  .portal-section-head h2 {
    font-size: 12px;
  }
}
.topbar .nav a {
  height: 100%;
}
.banner-message h1 {
  font-size: 34px;
}
@media (min-width: 901px) and (max-width: 1190px) {
  .topbar .nav a {
    padding: 0 10px;
    font-size: 12px;
  }
  .banner-message h1 {
    font-size: 28px;
  }
}
@media (max-width: 900px) {
  .topbar .nav a {
    padding: 0 8px;
    font-size: 11px;
  }
}
@media (max-width: 700px) and (min-width: 601px) {
  .topbar .nav a {
    padding: 0 6px;
    font-size: 10px;
  }
  .topbar .brand {
    font-size: 18px;
  }
  .topbar .container {
    gap: 10px;
  }
  .header-tools {
    gap: 7px;
  }
  .topbar .login-button {
    padding: 6px 9px;
    font-size: 10px;
  }
}
@media (max-width: 600px) {
  .banner-message h1 {
    font-size: 28px;
  }
}
@media (max-width: 360px) {
  .banner-message h1 {
    font-size: 24px;
  }
}
.detail-side {
  align-self: start;
  align-content: start;
}
/* Keep compact metadata and colored controls legible. */
.topbar .nav a.active {
  background: #c74e2b;
}
.topbar .nav a.active:hover {
  background: #b74424;
}
.topbar .login-button {
  background: #3278aa;
}
.topbar .login-button:hover {
  background: #286b9a;
}
.cover-type {
  color: #fff;
}
.portal-topic p,
.portal-course > p,
.portal-side-topics p,
.portal-update p,
.portal-update p span,
.portal-hot-item p,
.portal-continue-body p,
.portal-help p,
.portal-endnote,
.proto-note,
.proto-note a,
.portal-section-head .section-head-hint {
  color: #6c787e;
}
.portal-topic em,
.portal-course > p em,
.portal-side-topics em {
  color: #b84c2f;
}
@media (max-width: 1190px) {
  .portal-section-head .section-head-hint + a {
    margin-left: auto;
  }
}
/* Server-rendered V1 components share the V2 prototype's visual tokens. */
.svg-icon {
  flex-shrink: 0;
}
.portal-topic-icon svg {
  width: 25px;
  height: 25px;
}
.portal-side-topics svg {
  width: 29px;
  height: 29px;
}
.cover-illustration svg {
  width: 45px;
  height: 45px;
}
.update-symbol svg {
  width: 21px;
  height: 21px;
}
.header-search svg {
  width: 14px;
  height: 14px;
}
.portal-section-head svg {
  width: 12px;
  height: 12px;
}
.portal-tabs a {
  padding: 2px 1px;
  color: #6c787e;
  white-space: nowrap;
}
.portal-tabs a.active {
  color: var(--green);
  font-weight: 650;
}
.portal-tabs a.active:before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 5px;
  vertical-align: middle;
}
.portal-cover h3 {
  overflow: hidden;
  text-overflow: ellipsis;
}
.portal-aside .portal-update p span:first-child {
  margin-left: 0;
}
.flash-message {
  margin: 16px 0 0;
}
.control-caption {
  margin: 10px 0;
  font-size: 11px;
}
.state-btn svg {
  width: 13px;
  height: 13px;
}
.state-btn[data-mastery="RUSTY"].active {
  color: #8a5d16;
  background: #fbf4e6;
  border-color: #d5bd91;
}
.btn svg {
  width: 15px;
  height: 15px;
}
.full-answer {
  margin-top: 24px;
}
.full-answer > summary {
  list-style: none;
  cursor: pointer;
  background: var(--green);
  color: #fff;
  padding: 11px 18px;
  display: inline-block;
  border-radius: 4px;
  font-size: 13px;
}
.full-answer[open] > summary {
  background: #edf4ee;
  color: var(--green);
}
.full-answer > summary::marker {
  display: none;
}
.full-answer > summary:focus-visible {
  outline: 3px solid #81b698;
  outline-offset: 3px;
}
.full-answer section {
  padding-top: 1px;
}
.filters select {
  padding: 6px 9px;
  font-size: 12px;
}
.filters button {
  padding: 7px 12px;
}
.topic-all {
  margin-top: 25px;
}
.question-heading {
  padding-bottom: 0;
}
.flex-one {
  flex: 1;
  min-width: 0;
}
.editor-panel textarea.short-text {
  min-height: 85px;
  font-family: inherit;
}
.preview-pane h2 {
  font-size: 23px;
  margin: 20px 0;
}
.editor-bar > span {
  margin-right: auto;
}
.editor-bar form {
  display: inline-block;
}
.profile-nav {
  margin-top: 17px;
}
.directory-filter {
  margin-top: 9px;
  width: 100%;
}
.study-right .article-bottom {
  margin: 0;
  padding: 0;
  border: 0;
  display: block;
}
.study-right .article-bottom .btn {
  margin-top: 14px;
}
.study-left-heading h3 {
  font-size: 14px;
}
.taxonomy-form {
  margin-top: 20px;
}
.tag-form {
  margin-top: 12px;
  flex-wrap: wrap;
}
.tag-form input {
  min-width: 0;
  flex: 1;
}
.import-example {
  margin-top: 20px;
}
.import-example pre {
  overflow: auto;
  white-space: pre;
  background: var(--bg);
  padding: 14px;
  font-size: 12px;
}
.import-preview {
  margin-top: 20px;
}
.promotion-preview {
  max-width: 180px;
  max-height: 180px;
  display: block;
  margin: 16px 0;
}
.promotion-image {
  max-width: 100px;
  max-height: 100px;
}
.error-page {
  margin: 35px 0 50px;
}
.row-answer {
  white-space: normal;
}
.row-answer h2 {
  font-size: 16px;
}
.row-answer pre {
  max-width: 100%;
}
.list-actions {
  align-self: flex-start;
}
.bookmark:disabled,
.state-btn:disabled {
  cursor: wait;
}
.article-meta {
  line-height: 1.8;
}
.profile-card p {
  overflow-wrap: anywhere;
}
button:disabled {
  opacity: 0.6;
}
html {
  scroll-padding-top: 80px;
}
@media (max-width: 600px) {
  .svg-icon {
    width: 16px;
    height: 16px;
  }
  .portal-topic-icon svg {
    width: 22px;
    height: 22px;
  }
  .cover-illustration svg {
    width: 40px;
    height: 40px;
  }
  .filters select {
    max-width: 135px;
    font-size: 11px;
  }
  .learning-stat {
    padding: 0 15px;
  }
  .profile-nav .side-nav {
    white-space: nowrap;
  }
  .editor-bar {
    justify-content: flex-start;
  }
  .editor-panel textarea.short-text {
    min-height: 100px;
  }
  .profile-card .avatar {
    flex-shrink: 0;
  }
  .portal-banner .banner-actions svg {
    width: 13px;
  }
  .footer-inner .brand-symbol {
    width: 27px;
    height: 27px;
  }
  .portal-topic h3 {
    white-space: normal;
  }
  .full-answer > summary {
    font-size: 12px;
  }
  .page-heading h1 {
    overflow-wrap: anywhere;
  }
  .study-shell .prev-next strong {
    overflow-wrap: anywhere;
  }
}
.portal-topic-icon,
.update-symbol {
  background: #f0f5f3;
}
.portal-course > p span {
  margin-left: 5px;
}
h1,
h2 {
  overflow-wrap: anywhere;
}

/* Compact question catalogue: scoped independently from home and personal lists. */
.catalog-workspace {
  padding-top: 17px;
  padding-bottom: 40px;
}
.catalog-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 13px;
  font-size: 11px;
  color: #6c787e;
}
.catalog-breadcrumb > span:last-child {
  color: #263b3c;
}
.catalog-columns {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
}
.catalog-directory {
  overflow: hidden;
}
.catalog-directory-title,
.catalog-knowledge h2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  padding: 12px 14px;
  background: #f8faf9;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 650;
}
.catalog-directory-title > span,
.catalog-knowledge h2 > span {
  font-size: 11px;
  color: #758187;
  font-weight: 400;
}
.catalog-directory-toggle {
  display: none;
}
.catalog-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid #edf0ef;
  border-left: 3px solid transparent;
  font-size: 13px;
  line-height: 1.4;
}
.catalog-category > span {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.catalog-category svg {
  width: 17px;
  height: 17px;
  color: #6b8583;
}
.catalog-category em {
  color: #b84c2f;
  font-size: 12px;
  font-style: normal;
  font-variant-numeric: tabular-nums;
}
.catalog-category.is-current {
  background: #edf5ee;
  color: #195a4c;
  border-left-color: #226959;
  font-weight: 650;
}
.catalog-category.is-child {
  padding-left: 30px;
  font-size: 12px;
}
.catalog-category:hover,
.catalog-knowledge a:hover {
  background: #f2f7f4;
  color: #195a4c;
}
.catalog-all {
  font-size: 12px;
  font-weight: 600;
}
.catalog-knowledge {
  margin-top: 9px;
  border-top: 1px solid var(--line);
}
.catalog-knowledge a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 15px;
  font-size: 12px;
  border-bottom: 1px dotted #e4e9e6;
}
.catalog-knowledge a > span {
  display: flex;
  align-items: center;
  gap: 9px;
}
.catalog-knowledge a i {
  width: 4px;
  height: 4px;
  background: #adc1b7;
  border-radius: 50%;
  flex-shrink: 0;
}
.catalog-knowledge a small {
  font-size: 11px;
  color: #758187;
}
.catalog-knowledge a.is-current {
  color: #195a4c;
  font-weight: 650;
  background: #edf5ee;
}
.catalog-directory-note {
  display: flex;
  gap: 9px;
  padding: 14px;
  color: #758187;
}
.catalog-directory-note svg {
  width: 17px;
  height: 17px;
  margin-top: 3px;
}
.catalog-directory-note p {
  margin: 0;
  font-size: 11px;
  line-height: 1.9;
}
.catalog-results {
  min-width: 0;
  overflow: hidden;
}
.catalog-results-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.catalog-results-heading > div:first-child {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}
.catalog-results-heading h1 {
  font-size: 19px;
  font-weight: 750;
  line-height: 1.4;
  margin: 0;
  overflow-wrap: anywhere;
}
.catalog-total {
  color: #758187;
  font-size: 11px;
  white-space: nowrap;
}
.catalog-query {
  display: flex;
  align-items: center;
  min-width: 230px;
  width: 310px;
  max-width: 45%;
  border: 1px solid #d6dfdb;
  border-radius: 3px;
  overflow: hidden;
  background: white;
}
.catalog-query > svg {
  margin-left: 10px;
  width: 14px;
  height: 14px;
  color: #758187;
}
.catalog-query input {
  width: 100%;
  min-width: 0;
  padding: 8px;
  border: 0;
  box-shadow: none;
  background: transparent;
  font-size: 12px;
}
.catalog-query button {
  background: #195c4f;
  color: white;
  border: 0;
  padding: 9px 13px;
  font-size: 12px;
  white-space: nowrap;
  align-self: stretch;
}
.catalog-filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 9px 18px;
  background: #fafcfb;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
.catalog-filter-bar > label {
  margin-right: 2px;
  color: #758187;
}
.catalog-filter-bar select {
  padding: 5px 8px;
  font-size: 11px;
  border-radius: 3px;
  min-height: 29px;
}
.catalog-apply {
  padding: 6px 11px;
  background: #e9f2ec;
  color: #195a4c;
  border: 1px solid #d7e4db;
  border-radius: 3px;
  font-size: 11px;
}
.catalog-reset {
  color: #6c787e;
  padding: 3px;
}
.catalog-learning-link {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #195a4c;
  white-space: nowrap;
}
.catalog-learning-link svg {
  width: 13px;
  height: 13px;
}
.catalog-list-caption {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 18px;
  font-size: 10px;
  color: #758187;
  border-bottom: 1px solid #e4e9e6;
}
.catalog-question {
  padding: 15px 18px 14px;
  border-bottom: 1px solid #e1e7e3;
}
.catalog-question-heading {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-bottom: 9px;
}
.catalog-question-number {
  font-size: 12px;
  color: #71837b;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.catalog-question-heading h2 {
  margin: 0;
  flex: 1;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.catalog-question-heading h2 a:hover {
  color: #19634f;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.catalog-question-heading > .pill {
  margin-left: 8px;
  padding: 2px 6px;
  font-size: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}
.catalog-answer-preview {
  margin: 0 0 9px;
  border: 1px solid #e1e6d9;
  border-radius: 3px;
  background: #f7f9f1;
  color: #4b5c50;
  font-size: 12px;
  line-height: 1.9;
  padding: 7px 10px;
}
.catalog-preview-text {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.catalog-preview-text b {
  color: #52725c;
  font-weight: 600;
}
.catalog-question-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 10px;
  color: #758187;
}
.catalog-topic-label {
  padding-right: 7px;
  border-right: 1px solid #dfe6e1;
  color: #697c72;
}
.catalog-tag {
  color: #6a7e73;
  background: #f1f5f2;
  border-radius: 2px;
  padding: 1px 5px;
}
.catalog-tag:hover {
  color: #195a4c;
  background: #e6f1e9;
}
.catalog-updated {
  margin-left: auto;
  font-size: 10px;
  color: #7d8983;
}
.catalog-question-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.catalog-question-actions button {
  cursor: pointer;
  border-radius: 3px;
  font-size: 11px;
  line-height: 1.4;
  min-height: 29px;
}
.catalog-mastery {
  display: flex;
  align-items: center;
}
.catalog-mastery button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: white;
  border: 1px solid #d7dfda;
  padding: 5px 8px;
  color: #6b7971;
  border-radius: 0;
}
.catalog-mastery button + button {
  margin-left: -1px;
}
.catalog-mastery button:first-child {
  border-radius: 3px 0 0 3px;
}
.catalog-mastery button:last-child {
  border-radius: 0 3px 3px 0;
}
.catalog-mastery button svg {
  width: 12px;
  height: 12px;
}
.catalog-mastery button.active {
  background: #edf5ee;
  color: #195a4c;
  border-color: #9fbeaa;
  position: relative;
}
.catalog-mastery button[data-mastery="RUSTY"].active {
  background: #fcf5e9;
  border-color: #d6bd94;
  color: #8a5d16;
}
.catalog-save {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #d7dfda;
  background: white;
  color: #6b7971;
  padding: 5px 8px;
}
.catalog-save svg {
  width: 12px;
  height: 12px;
}
.catalog-save.is-saved {
  color: #195a4c;
  border-color: #9fbeaa;
  background: #edf5ee;
}
.catalog-read-actions {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-left: auto;
}
.catalog-study-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #758187;
  white-space: nowrap;
}
.catalog-study-link svg {
  width: 12px;
  height: 12px;
}
.catalog-answer-button {
  border: 1px solid #27745d;
  background: #27745d;
  color: white;
  padding: 5px 12px;
  white-space: nowrap;
}
.catalog-answer-button[aria-expanded="true"] {
  background: #edf5ee;
  color: #195a4c;
  border-color: #a9c6b5;
}
.catalog-question .catalog-answer {
  margin: 14px 0 0;
  padding: 14px 16px;
  border: 1px solid #dce6de;
  border-left: 3px solid #7eab8b;
  border-radius: 3px;
  background: #fcfdfb;
  font-size: 13px;
  line-height: 1.9;
}
.catalog-answer pre {
  overflow-x: auto;
}
.catalog-answer > :first-child {
  margin-top: 0;
}
.catalog-answer > :last-child {
  margin-bottom: 0;
}
.catalog-list-end {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  color: #758187;
  font-size: 11px;
  background: #fafcfb;
}
.catalog-list-end a {
  color: #195a4c;
}
.catalog-page .site-footer {
  margin-top: 0;
}
.catalog-directory a:focus-visible,
.catalog-results a:focus-visible,
.catalog-results button:focus-visible,
.catalog-directory-toggle:focus-visible {
  outline: 2px solid #27745d;
  outline-offset: 2px;
}
@media (max-width: 1100px) and (min-width: 701px) {
  .catalog-columns {
    grid-template-columns: 205px minmax(0, 1fr);
    gap: 12px;
  }
  .catalog-results-heading {
    flex-wrap: wrap;
    gap: 9px;
  }
  .catalog-query {
    width: 100%;
    max-width: none;
  }
  .catalog-question,
  .catalog-results-heading {
    padding-left: 14px;
    padding-right: 14px;
  }
  .catalog-study-link {
    display: none;
  }
}
@media (max-width: 700px) {
  .catalog-workspace {
    padding-top: 12px;
    padding-bottom: 24px;
  }
  .catalog-breadcrumb {
    font-size: 10px;
    margin-bottom: 10px;
  }
  .catalog-columns {
    display: block;
  }
  .catalog-directory {
    margin-bottom: 10px;
  }
  .catalog-directory-title {
    display: none;
  }
  .catalog-directory-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 12px;
    width: 100%;
    background: white;
    border: 0;
    font-size: 12px;
    color: #195a4c;
  }
  .catalog-directory-toggle > svg:last-child {
    margin-left: auto;
    width: 13px;
    height: 13px;
  }
  .catalog-directory.is-open .catalog-directory-toggle > svg:last-child {
    transform: rotate(90deg);
  }
  .catalog-directory-body {
    display: none;
    border-top: 1px solid var(--line);
  }
  .catalog-directory.is-open .catalog-directory-body {
    display: block;
  }
  .catalog-directory-body nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .catalog-category {
    padding: 11px 9px;
    font-size: 12px;
  }
  .catalog-category > span {
    gap: 6px;
  }
  .catalog-knowledge a {
    min-height: 35px;
  }
  .catalog-results-heading {
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px;
  }
  .catalog-results-heading h1 {
    font-size: 18px;
  }
  .catalog-query {
    width: 100%;
    max-width: none;
    min-width: 0;
  }
  .catalog-query input {
    font-size: 12px;
    padding: 9px 7px;
  }
  .catalog-filter-bar {
    padding: 9px 12px;
    gap: 6px;
  }
  .catalog-filter-bar select {
    font-size: 11px;
    min-height: 34px;
    max-width: 105px;
    padding: 5px 6px;
  }
  .catalog-filter-bar > label {
    display: none;
  }
  .catalog-apply {
    min-height: 34px;
  }
  .catalog-learning-link {
    display: none;
  }
  .catalog-list-caption {
    padding: 8px 12px;
  }
  .catalog-question {
    padding: 13px 12px;
  }
  .catalog-question-heading {
    gap: 5px;
    margin-bottom: 8px;
  }
  .catalog-question-heading h2 {
    font-size: 14px;
  }
  .catalog-question-heading > .pill {
    margin-left: 2px;
    font-size: 9px;
  }
  .catalog-answer-preview {
    font-size: 12px;
    padding: 7px 9px;
    line-height: 1.8;
  }
  .catalog-question-meta {
    margin-bottom: 9px;
  }
  .catalog-updated {
    display: none;
  }
  .catalog-question-actions {
    flex-wrap: wrap;
    gap: 7px;
  }
  .catalog-question-actions button {
    min-height: 34px;
  }
  .catalog-mastery button {
    padding: 6px 7px;
    font-size: 10px;
  }
  .catalog-save {
    padding: 6px 7px;
    font-size: 10px;
  }
  .catalog-read-actions {
    gap: 8px;
  }
  .catalog-study-link {
    display: none;
  }
  .catalog-answer-button {
    padding: 6px 9px;
    font-size: 10px;
  }
  .catalog-question .catalog-answer {
    padding: 12px;
    font-size: 13px;
  }
  .catalog-list-end {
    padding: 11px 12px;
    font-size: 10px;
  }
}

/* Concurrency interview paths: one strong learning ladder, otherwise quiet reading UI. */
.concurrency-paths { padding: 22px 24px; border-bottom: 1px solid var(--line); background: #f7fbf8; }
.path-intro { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.path-intro strong { font-size: 17px; }
.path-intro p { color: var(--muted); font-size: 13px; }
.concurrency-paths nav { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border: 1px solid #cfe0d4; border-radius: 10px; overflow: hidden; background: var(--paper); }
.concurrency-paths a { display: grid; grid-template-columns: auto 1fr; gap: 1px 10px; min-height: 74px; padding: 14px 16px; border-right: 1px solid var(--line); }
.concurrency-paths a:last-child { border-right: 0; }
.concurrency-paths a:hover, .concurrency-paths a.active { background: var(--mint); }
.concurrency-paths a.active { box-shadow: inset 0 -3px var(--green); }
.concurrency-paths a > span { grid-row: 1 / span 2; align-self: center; min-width: 34px; color: var(--green); font-size: 18px; font-weight: 700; }
.concurrency-paths a strong { font-size: 14px; }
.concurrency-paths a small { color: var(--muted); }
.catalog-stage, .stage-label { padding: 2px 7px; border-radius: 5px; background: #edf3ff; color: #405f89; font-size: 11px; font-weight: 650; }
.catalog-module { color: var(--green); font-size: 12px; }
.recall-step, .attempt-panel { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 26px 0 18px; padding: 18px 20px; border: 1px solid #cfe0d4; border-left: 4px solid var(--green); border-radius: 8px; background: #f7fbf8; }
.recall-step p, .attempt-panel p { margin-top: 3px; color: var(--muted); font-size: 13px; }
.recall-timer { min-width: 142px; }
.attempt-panel[hidden] { display: none; }
.attempt-panel { align-items: flex-start; margin-top: 20px; border-left-color: var(--amber); background: #fffaf2; }
.attempt-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.attempt-actions button { padding: 8px 11px; border: 1px solid #dfd7c7; border-radius: 7px; background: #fff; font-weight: 600; }
.attempt-actions button:hover, .attempt-actions button.selected { border-color: var(--amber); background: #f8ead5; }
.attempt-actions span { display: block; color: var(--muted); font-size: 10px; font-weight: 400; }
.interview-rubric { margin-top: 28px; padding: 18px 20px; border: 1px solid #eadfcf; border-radius: 8px; background: #fffcf7; }
.interview-rubric h2 { margin-bottom: 8px; }
.follow-up-chain { margin-top: 30px; }
.follow-up-chain > h2 { margin-bottom: 10px; }
.follow-up-chain > a { display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.follow-up-chain > a span, .follow-up-chain > a em { color: var(--muted); font-size: 12px; font-style: normal; }
.follow-up-chain > a:hover strong { color: var(--green); }
.home-study-paths .portal-section-head > div p { margin-top: 4px; color: var(--muted); font-size: 12px; }
.home-path-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.home-path-grid a { display: grid; grid-template-columns: 44px 1fr; gap: 1px 12px; padding: 18px; border-right: 1px solid var(--line); }
.home-path-grid a:last-child { border-right: 0; }
.home-path-grid a:hover { background: #f4faf6; }
.home-path-grid b { grid-row: 1 / span 2; color: var(--green); font-size: 24px; line-height: 1.2; }
.home-path-grid strong { font-size: 14px; }
.home-path-grid span { color: var(--muted); font-size: 11px; }

@media (max-width: 760px) {
  .concurrency-paths { padding: 18px 14px; }
  .path-intro { display: block; }
  .path-intro p { margin-top: 4px; }
  .concurrency-paths nav { grid-template-columns: 1fr 1fr; }
  .concurrency-paths a { border-bottom: 1px solid var(--line); }
  .concurrency-paths a:nth-child(2) { border-right: 0; }
  .concurrency-paths a:nth-child(n+3) { border-bottom: 0; }
  .recall-step, .attempt-panel { align-items: stretch; flex-direction: column; }
  .attempt-actions { justify-content: stretch; }
  .attempt-actions button { flex: 1 1 30%; }
  .follow-up-chain > a { grid-template-columns: 48px 1fr; }
  .follow-up-chain > a em { grid-column: 2; }
  .home-path-grid { grid-template-columns: 1fr 1fr; }
  .home-path-grid a { border-bottom: 1px solid var(--line); }
  .home-path-grid a:nth-child(2) { border-right: 0; }
  .home-path-grid a:nth-child(n+3) { border-bottom: 0; }
}
@media (max-width: 370px) {
  .catalog-read-actions {
    flex: 1 0 100%;
    justify-content: flex-end;
  }
  .catalog-study-link {
    display: inline-flex;
  }
}

/* Shared server-rendered question images and review reading layout. */
.answer-figure { margin: 24px 0; max-width: 100%; }
.answer-image-scroll, .answer-table-scroll {
  max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
}
.answer-image-scroll:focus-visible, .answer-table-scroll:focus-visible {
  outline: 2px solid var(--accent, #167567); outline-offset: 3px;
}
.answer-image-scroll img { display: block; width: 960px; max-width: 100%; height: auto; margin: auto; }
.answer-figure figcaption { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.answer-table-scroll { margin: 18px 0; }
.answer-table-scroll table { width: 100%; border-collapse: collapse; font-size: 13px; }
.answer-table-scroll th, .answer-table-scroll td { padding: 10px 13px; border-bottom: 1px solid var(--line); text-align: left; }
.answer-table-scroll th { background: #f0f6f2; color: #24433d; }
.admin-reading { padding: 28px 34px; overflow-wrap: anywhere; }
.admin-reading > h1 { margin: 20px 0 9px; font-size: 25px; line-height: 1.5; }
.admin-reading > section { margin-top: 24px; }
.admin-reading > section > h2 { font-size: 17px; }
.admin-reading .reading-body { font-size: 15px; }
.review-source { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.review-source summary { cursor: pointer; color: var(--text); }
.image-upload { padding: 14px; margin: 0 0 18px; background: #f1f6f2; border-radius: 7px; }
.image-upload .field { margin-bottom: 9px; }
.image-upload p { margin: 9px 0 0; }
.data-table td .text-link + .text-link { margin-left: 12px; }
@media (max-width: 700px) {
  .answer-image-scroll img { max-width: none; width: 960px; }
  .answer-table-scroll table { min-width: 500px; }
  .admin-reading { padding: 18px; }
  .admin-reading > h1 { font-size: 21px; }
  .admin-reading .reading-body { font-size: 14px; }
  .admin-heading > .row { flex-wrap: wrap; justify-content: flex-end; }
}
.admin-search { display: flex; align-items: end; gap: 12px; padding: 18px; border-bottom: 1px solid var(--line); }
.admin-search .field { margin: 0; }
.admin-search-count { padding: 0 18px; margin: 12px 0; }

/* Knowledge directory: group headers and continuous rows keep the hierarchy visible. */
.topic-branch {
  list-style: none;
  padding: 0;
  margin: 0;
}
.topic-branch .catalog-category {
  min-height: 33px;
  padding: 7px 12px 7px calc(10px + var(--topic-depth, 0) * 8px);
  font-size: 12px;
  line-height: 1.45;
}
.topic-branch .catalog-category > span {
  gap: 7px;
}
.topic-branch .catalog-category.is-group {
  background: #f4f6f5;
  font-weight: 650;
  border-bottom-color: #dfe6e2;
}
.topic-branch .catalog-category.is-root {
  font-size: 13px;
  font-weight: 650;
  border-top: 1px solid #dfe6e2;
}
.topic-branch .catalog-category.is-group.has-current {
  color: #195a4c;
}
.topic-branch .catalog-category.is-current {
  background: #edf5ee;
  border-left-color: #226959;
  color: #195a4c;
}
.topic-chevron {
  flex: 0 0 auto;
  color: #617670;
  font-size: 16px;
  line-height: 1;
}
.topic-branch .catalog-category svg {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  color: #195a4c;
}
.topic-branch .topic-row-count {
  flex: 0 0 auto;
  gap: 4px;
}
.topic-row-count small {
  font-size: 10px;
  color: #71807a;
  font-weight: 400;
}
.topic-families {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.topic-family {
  overflow: hidden;
}
.topic-family.has-children {
  grid-column: 1 / -1;
}
.topic-family header {
  padding: 16px 20px;
}
.topic-family header a {
  display: flex;
  gap: 10px;
  align-items: center;
}
.topic-family header svg {
  width: 22px;
  height: 22px;
  color: #195a4c;
}
.topic-family header h2 {
  margin: 0;
  font-size: 17px;
}
.topic-family header a > span {
  margin-left: auto;
  font-size: 12px;
  color: #71807a;
}
.topic-family header em {
  font-style: normal;
  color: #b84c2f;
  font-variant-numeric: tabular-nums;
}
.topic-family header p {
  margin: 8px 0 0 32px;
  font-size: 12px;
  color: #617670;
}
.topic-family-children > .topic-branch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
  border-top: 1px solid var(--line);
  padding: 0 20px 16px;
}
.topic-family-children .catalog-category {
  padding-right: 12px;
  min-height: 36px;
}
@media (max-width: 700px) {
  .catalog-directory-body nav {
    display: block;
  }
  .topic-branch .catalog-category {
    min-height: 38px;
    font-size: 13px;
  }
  .topic-families,
  .topic-family-children > .topic-branch {
    grid-template-columns: minmax(0, 1fr);
  }
  .topic-family header,
  .topic-family-children > .topic-branch {
    padding-left: 12px;
    padding-right: 12px;
  }
}
