/* Typography and layout refinement · 2026-10-31 */
:root {
  font-size: 16px;
  --muted: #62736b;
  --line: #dce4dc;
  --shadow: 0 10px 32px #213c320b;
  font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
}
body {
  line-height: 1.7;
}
h1 {
  font-size: clamp(30px, 2.4vw, 38px);
  line-height: 1.3;
  letter-spacing: -0.6px;
}
h2 {
  font-size: 23px;
  line-height: 1.45;
}
h3 {
  font-size: 19px;
  line-height: 1.5;
}
small,
.small {
  font-size: 14px;
  line-height: 1.65;
}
.eyebrow,
.section-number {
  font-size: 12px;
  letter-spacing: 1.6px;
}
.legal,
.saved-label {
  font-size: 13px;
  color: #62736b;
  line-height: 1.8;
}
.shell {
  grid-template-columns: 256px minmax(0, 1fr);
}
.sidebar {
  width: 256px;
  padding: 30px 20px 22px;
  overflow-y: auto;
}
.brand {
  min-width: 0;
  gap: 11px;
  padding: 0 4px 28px;
}
.brand > span:last-child {
  min-width: 0;
}
.brand strong {
  font-size: 18px;
  letter-spacing: 0.4px;
}
.brand small {
  font-size: 11px;
  letter-spacing: 0.15px;
  line-height: 1.55;
  color: #b6ccbf;
}
.brand-mark {
  font-size: 12px;
  flex-shrink: 0;
  width: 40px;
  height: 44px;
}
.nav-label {
  font-size: 12px;
  color: #a2bfb0;
  letter-spacing: 1px;
  padding: 16px 14px 10px;
}
.nav a {
  font-size: 16px;
  padding: 14px;
  gap: 12px;
  min-height: 50px;
}
.side-note {
  font-size: 13px;
  color: #b5ccbf;
  padding: 15px;
  margin-top: auto;
}
.side-bottom small {
  font-size: 13px;
  color: #b5ccbf;
}
.avatar {
  width: 38px;
  height: 38px;
  font-size: 14px;
}
.topbar {
  height: auto;
  min-height: 88px;
  padding: 16px 32px;
  flex-wrap: wrap;
  background: #ffffffed;
}
.crumb,
.crumb strong {
  font-size: 14px;
  color: #52675c;
}
.top-right {
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.content {
  padding: 34px 32px 48px;
  max-width: 1560px;
}
.demo-strip {
  font-size: 13px;
  color: #53684c;
  padding: 10px 32px;
  line-height: 1.6;
}
.page-head {
  margin-bottom: 28px;
}
.page-head p {
  font-size: 16px;
  line-height: 1.8;
  max-width: 70ch;
}
.page-head h1 {
  margin: 8px 0 12px;
}
.btn {
  font-size: 16px;
  min-height: 46px;
  padding: 11px 18px;
  border-radius: 10px;
  line-height: 1.4;
}
.btn.sm {
  font-size: 14px;
  min-height: 40px;
  padding: 9px 13px;
}
.btn.ghost {
  color: #5f7168;
}
.btn.primary {
  box-shadow: 0 3px 8px #173b3210;
}
.tag {
  font-size: 13px;
  padding: 5px 10px;
}
.tag.gold {
  color: #825f29;
}
.tag.blue {
  color: #4d6688;
}
.stats {
  gap: 18px;
}
.stat {
  padding: 24px;
}
.stat .label {
  font-size: 15px;
  color: #586d5f;
}
.stat .hint {
  font-size: 13px;
  color: #62736b;
  line-height: 1.7;
}
.stat .number {
  font-size: 36px;
  margin: 14px 0 10px;
}
.stat .number small {
  font-size: 15px;
}
.panel {
  border-radius: 14px;
  box-shadow: 0 3px 16px #213c3203;
}
.panel-head {
  padding: 23px 26px;
}
.panel-body {
  padding: 26px;
}
.panel .subtitle {
  font-size: 14px;
  line-height: 1.7;
}
th {
  font-size: 14px;
  font-weight: 600;
  color: #5c7064;
  padding: 16px 20px;
}
td {
  font-size: 16px;
  padding: 19px 20px;
  line-height: 1.65;
}
td .title {
  font-size: 16px;
}
td .subtext {
  font-size: 13px;
}
.table-scroll table {
  min-width: 680px;
}
.long-title {
  min-width: 190px;
  max-width: 380px;
  overflow-wrap: anywhere;
}
.progress-label {
  font-size: 13px;
  color: #5b7055;
}
.progress {
  height: 7px;
}
.field {
  gap: 9px;
  margin-bottom: 22px;
}
.field label {
  font-size: 16px;
  color: #435e4f;
  font-weight: 550;
}
.field small {
  font-size: 14px;
  line-height: 1.8;
}
input:not([type="checkbox"]):not([type="range"]),
select,
textarea {
  font-size: 16px;
  line-height: 1.55;
  padding: 12px 14px;
  min-height: 48px;
  border-color: #cdd9cf;
  border-radius: 9px;
}
input::placeholder,
textarea::placeholder {
  color: #718179;
}
textarea {
  min-height: 120px;
}
input[type="checkbox"] {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}
.search svg {
  top: 16px;
}
.form-grid {
  gap: 0 24px;
}
.notice,
.checkbox,
.check-row,
.weight-row,
.score-label {
  font-size: 15px;
  line-height: 1.8;
}
.notice {
  padding: 16px 18px;
}
.inline-error,
.error-text {
  font-size: 15px;
}
.tabs {
  gap: 26px;
}
.tabs a {
  font-size: 16px;
  min-height: 50px;
  padding: 14px 0;
}
.step {
  font-size: 14px;
  line-height: 1.6;
}
.step b {
  font-size: 12px;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.activity-card {
  padding: 26px;
  border-radius: 14px;
}
.activity-card h3 {
  font-size: 22px;
  line-height: 1.5;
}
.activity-card p,
.person-card p {
  font-size: 15px;
  line-height: 1.8;
}
.metric-row {
  gap: 24px;
  flex-wrap: wrap;
}
.metric-row b {
  font-size: 24px;
}
.metric-row small {
  font-size: 13px;
}
.person-card {
  padding: 26px;
}
.person-card footer {
  flex-wrap: wrap;
}
.people-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.task b,
.mini-person .name,
.feed p {
  font-size: 15px;
}
.task p,
.task a,
.mini-person small,
.mini-person .track,
.feed small {
  font-size: 14px;
  line-height: 1.75;
}
.quote p,
.rubric p,
.sample-paper p {
  font-size: 14px;
}
.quote .en {
  font-size: 27px;
}
.total-input label {
  font-size: 16px;
}
.total-input p,
.score-label span,
.file-tabs button {
  font-size: 14px;
}
.info-grid {
  font-size: 16px;
}
.qr-card h3 {
  font-size: 17px;
}
.qr-placeholder {
  font-size: 14px;
}
.empty p {
  font-size: 16px;
}
.empty h3 {
  font-size: 21px;
}
.public-header {
  height: auto;
  min-height: 88px;
  padding-top: 16px;
  padding-bottom: 16px;
  flex-wrap: wrap;
}
.public-header .brand small {
  color: #61745e;
}
.public-main {
  max-width: 1200px;
  padding-top: 40px;
}
.public-hero h1 {
  font-size: clamp(34px, 3.5vw, 48px);
}
.public-hero p {
  font-size: 17px;
  line-height: 1.9;
}
.public-footer {
  font-size: 14px;
  line-height: 1.9;
}
.public-back {
  font-size: 15px;
}
.login-story p {
  font-size: 17px;
}
.modal-head h2 {
  font-size: 23px;
}
.modal-head,
.modal-body {
  padding: 25px 28px;
}
.modal-footer {
  padding: 0 28px 26px;
  flex-wrap: wrap;
}
dialog {
  max-width: 640px;
}
#toast {
  font-size: 15px;
  line-height: 1.7;
}
:focus-visible {
  outline: 3px solid #719768;
  outline-offset: 3px;
}
.notice {
  color: #7c5c29;
}
.notice.green {
  color: #48673d;
}
.notice.red {
  color: #8b483b;
}
.step {
  color: #5d6d56;
}
.step.active {
  color: #355b2c;
}
.step.done {
  color: #486b3c;
}
@media (max-width: 1150px) {
  .shell {
    grid-template-columns: 228px minmax(0, 1fr);
  }
  .sidebar {
    width: 228px;
    padding: 28px 14px;
  }
  .content {
    padding: 28px 24px 40px;
  }
  .topbar {
    padding: 16px 24px;
  }
  .demo-strip {
    padding: 10px 24px;
  }
  .brand strong {
    font-size: 17px;
  }
  .brand small {
    font-size: 10px;
  }
  .scoring-grid {
    grid-template-columns: 1fr;
  }
  .step {
    flex-wrap: wrap;
  }
  .top-right {
    gap: 8px;
  }
}
@media (max-width: 850px) {
  .shell {
    grid-template-columns: 216px minmax(0, 1fr);
  }
  .sidebar {
    width: 216px;
    padding: 24px 12px;
  }
  .nav a {
    font-size: 16px;
    padding: 13px 12px;
  }
  .brand strong {
    font-size: 16px;
  }
  .brand small {
    font-size: 10px;
  }
  .page-title-row {
    flex-wrap: wrap;
    gap: 16px;
  }
  .topbar > .row {
    min-width: 0;
  }
  .top-right .user-name {
    display: none;
  }
  .content {
    padding: 26px 22px;
  }
  .cards,
  .two-cols {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .shell {
    display: block;
  }
  .sidebar {
    display: none;
    width: 256px;
  }
  .sidebar.open {
    display: flex;
  }
  .topbar {
    padding: 12px 16px;
    min-height: 72px;
    gap: 10px;
  }
  .top-right {
    margin-left: auto;
  }
  .top-right .btn.sm {
    font-size: 13px;
    padding: 8px 10px;
    min-height: 40px;
  }
  .topbar .crumb {
    font-size: 13px;
    gap: 6px;
  }
  .content {
    padding: 24px 18px 36px;
  }
  .demo-strip {
    font-size: 13px;
    padding: 10px 18px;
  }
  .page-head p {
    font-size: 15px;
  }
  .page-head h1 {
    font-size: 30px;
  }
  .btn {
    font-size: 16px;
    min-height: 46px;
  }
  .btn.sm {
    font-size: 14px;
    min-height: 42px;
  }
  .stats {
    gap: 12px;
  }
  .stat {
    padding: 18px;
  }
  .stat .label {
    font-size: 14px;
  }
  .stat .hint {
    font-size: 13px;
  }
  .stat .number {
    font-size: 32px;
  }
  .panel-head,
  .panel-body {
    padding: 20px;
  }
  .panel-head h2 {
    font-size: 21px;
  }
  .cards,
  .form-grid,
  .people-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }
  .step {
    font-size: 13px;
  }
  .public-header {
    padding: 16px 18px;
    gap: 16px;
  }
  .public-header > .row {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }
  .public-header .brand strong {
    font-size: 18px;
  }
  .public-header .brand small {
    font-size: 11px;
  }
  .public-header .btn {
    font-size: 15px;
    min-height: 44px;
    padding: 10px 14px;
  }
  .public-main {
    padding: 26px 18px 48px;
  }
  .public-hero {
    padding: 32px 24px;
  }
  .public-hero h1 {
    font-size: 34px;
  }
  .public-hero p {
    font-size: 16px;
    max-width: 30ch;
  }
  .qr-grid {
    grid-template-columns: 1fr;
  }
  .qr-card .btn {
    font-size: 15px;
  }
  .modal-head,
  .modal-body {
    padding: 22px;
  }
  .modal-footer {
    padding: 0 22px 22px;
  }
  .page-error {
    padding: 40px 20px;
  }
}
