:root {
  --bg: #f5f6f3;
  --paper: #fff;
  --ink: #263b35;
  --muted: #84908b;
  --line: #e5e9e3;
  --green: #27634e;
  --light: #e9f2eb;
  --nav: #173b32;
  --gold: #b38445;
  --red: #ae514d;
  --shadow: 0 14px 40px #213c3210;
  font-family: Inter, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  outline-offset: 4px;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}
a {
  color: inherit;
  text-decoration: none;
}
p {
  line-height: 1.8;
}
h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}
h1 {
  font-size: 30px;
  letter-spacing: -1px;
  font-weight: 650;
  line-height: 1.4;
}
h2 {
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 16px;
  font-weight: 600;
}
small,
.small {
  font-size: 12px;
}
svg {
  vertical-align: middle;
  flex-shrink: 0;
}
.muted {
  color: var(--muted);
}
.accent {
  color: var(--green);
}
.danger {
  color: var(--red);
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.wrap {
  flex-wrap: wrap;
}
.stack {
  display: grid;
  gap: 20px;
}
.spacer {
  flex: 1;
}
.btn {
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 550;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1.4;
  white-space: nowrap;
  transition: 0.18s;
}
.btn:hover {
  border-color: #9aad9f;
  background: #f7faf7;
}
.btn.primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.btn.primary:hover {
  background: #1d4c3c;
}
.btn.ghost {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}
.btn.sm {
  font-size: 12px;
  padding: 7px 11px;
}
.btn.danger {
  color: var(--red);
  border-color: #e8cccc;
}
.btn.full {
  width: 100%;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  line-height: 1.5;
  padding: 4px 9px;
  border-radius: 5px;
  background: #eef1ed;
  color: #78847c;
  white-space: nowrap;
}
.tag.green {
  background: #e8f3ea;
  color: #397253;
}
.tag.gold {
  background: #f7efdf;
  color: #a47a3d;
}
.tag.blue {
  background: #eaf0f7;
  color: #637c9b;
}
.tag.red {
  background: #f9e9e7;
  color: #ae514d;
}
.dot {
  width: 5px;
  height: 5px;
  background: currentColor;
  border-radius: 50%;
}
.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #dfeadf;
  color: #41664d;
  font-weight: 600;
  font-size: 12px;
  flex-shrink: 0;
}
.avatar.square {
  border-radius: 10px;
}
.avatar.blue {
  background: #e8edf5;
  color: #667f9b;
}
.avatar.gold {
  background: #f4ebdb;
  color: #ad854b;
}
.eyebrow {
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
  font-weight: 600;
}
.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 224px 1fr;
}
.sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 224px;
  background: var(--nav);
  color: #c1d1c7;
  padding: 32px 18px 20px;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 32px;
  color: #fff;
}
.brand-mark {
  width: 36px;
  height: 40px;
  border: 1px solid #91bba18c;
  border-radius: 11px 11px 15px 15px;
  display: grid;
  place-items: center;
  font-family: Georgia, serif;
  font-size: 22px;
  color: #dcebbf;
}
.brand strong {
  display: block;
  font-size: 15px;
  letter-spacing: 1px;
}
.brand small {
  font-size: 9px;
  letter-spacing: 1.6px;
  color: #91ab9c;
  display: block;
  margin-top: 5px;
}
.nav-label {
  font-size: 10px;
  color: #789788;
  letter-spacing: 1.5px;
  padding: 12px 15px;
}
.nav a {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 16px;
  margin-bottom: 6px;
  border-radius: 8px;
  font-size: 13px;
}
.nav a:hover {
  background: #ffffff09;
}
.nav a.active {
  background: #dce8c9;
  color: #234a36;
  font-weight: 600;
}
.nav a.active:after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #467455;
  margin-left: auto;
}
.side-note {
  margin: auto 10px 20px;
  border: 1px solid #ffffff18;
  border-radius: 9px;
  padding: 14px;
  font-size: 11px;
  line-height: 1.9;
  color: #a1b7aa;
}
.side-bottom {
  padding: 16px 10px 0;
  border-top: 1px solid #ffffff16;
  display: flex;
  gap: 10px;
  align-items: center;
}
.side-bottom small {
  display: block;
  color: #8ca797;
  margin-top: 4px;
}
.main {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 77px;
  background: #ffffffa8;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  gap: 14px;
}
.crumb {
  font-size: 12px;
  color: #8b958c;
  display: flex;
  gap: 10px;
  align-items: center;
}
.crumb strong {
  font-weight: 500;
  color: #526359;
}
.top-right {
  display: flex;
  align-items: center;
  gap: 17px;
}
.vline {
  height: 22px;
  width: 1px;
  background: var(--line);
}
.content {
  max-width: 1550px;
  margin: 0 auto;
  padding: 32px 38px 40px;
}
.page-head {
  margin-bottom: 26px;
}
.page-head h1 {
  margin: 6px 0 7px;
}
.page-head p {
  font-size: 12px;
  margin: 0;
  color: var(--muted);
}
.demo-strip {
  font-size: 11px;
  background: #eff2e9;
  color: #7a8468;
  padding: 7px 38px;
  border-bottom: 1px solid #e2e7d8;
  display: flex;
  align-items: center;
  gap: 7px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
  margin-bottom: 26px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 22px 23px;
}
.stat-icon {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #f0f5ee;
  color: #6a8971;
}
.stat .number {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -1.3px;
  line-height: 1.3;
  margin: 14px 0 9px;
}
.stat .number small {
  font-size: 12px;
  letter-spacing: 0;
  color: var(--muted);
  margin-left: 7px;
  font-weight: 400;
}
.stat .hint {
  font-size: 11px;
  color: var(--muted);
}
.stat .label {
  font-size: 12px;
  color: #7b887e;
}
.two-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.panel-head {
  padding: 21px 24px;
  border-bottom: 1px solid var(--line);
}
.panel-head h2,
.panel-head h3 {
  margin: 0;
}
.panel-body {
  padding: 24px;
}
.panel .subtitle {
  font-size: 11px;
  margin: 6px 0 0;
  color: var(--muted);
}
.table-scroll {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}
th {
  font-size: 11px;
  letter-spacing: 0.2px;
  font-weight: 500;
  color: #8b958d;
  background: #fafbf9;
  padding: 13px 20px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 18px 20px;
  border-bottom: 1px solid #eef1eb;
  font-size: 12px;
}
tr:last-child td {
  border-bottom: 0;
}
td .subtext {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 5px;
}
td .title {
  font-size: 13px;
  font-weight: 550;
}
.activity-icon {
  width: 40px;
  height: 44px;
  border: 1px solid #dee8db;
  border-radius: 9px;
  background: #eef3e9;
  display: grid;
  place-items: center;
  color: #7e956f;
  flex-shrink: 0;
}
.activity-icon.sand {
  background: #f7f1e7;
  border-color: #eee4d3;
  color: #b99963;
}
.activity-icon.blue {
  background: #edf1f6;
  border-color: #e0e7ef;
  color: #819bb8;
}
.progress {
  height: 5px;
  border-radius: 10px;
  background: #edf1e9;
  overflow: hidden;
  min-width: 70px;
}
.progress > i {
  height: 100%;
  display: block;
  background: #779a69;
  border-radius: 10px;
}
.progress-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 10px;
  color: #889280;
  margin: 0 0 8px;
}
.task {
  display: flex;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid #eff1ed;
}
.task:first-child {
  padding-top: 0;
}
.task:last-child {
  border: 0;
  padding-bottom: 0;
}
.task .task-icon {
  padding: 7px;
  border-radius: 7px;
  height: 32px;
  background: #f4eddf;
  color: #ad8854;
}
.task b {
  font-size: 12px;
  font-weight: 550;
}
.task p {
  font-size: 11px;
  color: var(--muted);
  margin: 6px 0;
}
.task a {
  font-size: 11px;
  color: var(--green);
}
.mini-person {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 0;
}
.mini-person .name {
  font-size: 12px;
  font-weight: 550;
}
.mini-person small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 4px;
}
.mini-person .track {
  margin-left: auto;
  text-align: right;
  font-size: 11px;
  color: #769263;
}
.quote {
  background: #eaf0e2;
  border-radius: 12px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  border: 1px solid #dfe7d6;
}
.quote:after {
  content: "“";
  position: absolute;
  right: 15px;
  bottom: -40px;
  font: 140px Georgia;
  color: #d7e1ca;
}
.quote .en {
  font:
    italic 24px/1.5 Georgia,
    serif;
  position: relative;
  z-index: 1;
  margin: 12px 0;
  color: #48653c;
}
.quote p {
  font-size: 11px;
  color: #7c8e70;
}
.feed {
  display: flex;
  gap: 13px;
  padding: 12px 0;
}
.feed-dot {
  width: 7px;
  height: 7px;
  background: #b4c7a6;
  border: 3px solid #eff5eb;
  box-sizing: content-box;
  border-radius: 50%;
  margin-top: 3px;
}
.feed p {
  font-size: 12px;
  margin: 0 0 4px;
}
.feed small {
  color: var(--muted);
  font-size: 10px;
}
.tabs {
  display: flex;
  gap: 26px;
  border-bottom: 1px solid var(--line);
  margin: 0 0 24px;
  overflow: auto;
}
.tabs a {
  padding: 13px 0;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.tabs a.active {
  color: var(--green);
  border-color: var(--green);
  font-weight: 600;
}
.filters {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.search {
  position: relative;
  max-width: 320px;
  flex: 1;
  min-width: 180px;
}
.search input {
  padding-left: 35px !important;
}
.search svg {
  position: absolute;
  left: 11px;
  top: 12px;
  color: #98a297;
}
.field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}
.field label {
  font-size: 12px;
  color: #637468;
}
.field small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}
input:not([type="checkbox"]):not([type="range"]),
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #dfe5dd;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  min-width: 0;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #799b78;
  outline: 2px solid #e3eedf;
}
textarea {
  resize: vertical;
  min-height: 96px;
  line-height: 1.7;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.form-grid .span2 {
  grid-column: 1/-1;
}
.notice {
  padding: 13px 16px;
  border-radius: 8px;
  background: #f7f2e7;
  color: #9a7a46;
  font-size: 12px;
  line-height: 1.8;
  border: 1px solid #eee4d1;
  margin-bottom: 20px;
}
.notice.green {
  background: #eef5eb;
  border-color: #deead8;
  color: #638357;
}
.notice.red {
  background: #fdf0ec;
  border-color: #efd6ce;
  color: #a05e4b;
}
.empty {
  text-align: center;
  padding: 55px 20px;
  color: var(--muted);
}
.empty svg {
  margin-bottom: 16px;
  color: #a2b69b;
}
.empty h3 {
  color: #54654d;
  margin-bottom: 8px;
}
.empty p {
  font-size: 12px;
}
.steps {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
}
.step {
  flex: 1;
  padding: 14px 12px;
  border-radius: 7px;
  background: #edf0e9;
  font-size: 11px;
  color: #8e9889;
  display: flex;
  align-items: center;
  gap: 8px;
}
.step.active {
  background: #dfead8;
  color: #486d3b;
}
.step.done {
  background: #ecf3e7;
  color: #719263;
}
.step b {
  font-size: 10px;
  border: 1px solid currentColor;
  display: grid;
  place-items: center;
  border-radius: 50%;
  width: 18px;
  height: 18px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.activity-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}
.activity-card h3 {
  margin: 18px 0 9px;
  font-size: 17px;
}
.activity-card p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 18px;
}
.activity-card footer {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 17px;
}
.metric-row {
  display: flex;
  gap: 27px;
}
.metric-row b {
  font-size: 20px;
  display: block;
  font-weight: 600;
}
.metric-row small {
  font-size: 10px;
  color: var(--muted);
}
.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 9px;
  font-size: 12px;
}
.check-row input {
  accent-color: var(--green);
}
.weight-row {
  display: grid;
  grid-template-columns: 1fr 85px;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  font-size: 12px;
}
.weight-input {
  display: flex;
  align-items: center;
  gap: 6px;
}
.weight-input input {
  text-align: right;
}
.rubric {
  display: grid;
  grid-template-columns: 1fr 90px;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.rubric:last-child {
  border: 0;
}
.rubric p {
  font-size: 11px;
  color: var(--muted);
  margin: 5px 0 0;
}
.scoring-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(310px, 1fr);
  gap: 22px;
}
.viewer {
  min-height: 420px;
  background: #f1f2ed;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 24px;
  gap: 15px;
}
.viewer img {
  max-width: 100%;
  max-height: 480px;
  object-fit: contain;
}
.viewer video {
  max-width: 100%;
  max-height: 480px;
}
.viewer audio {
  width: 100%;
}
.sample-paper {
  background: #fffef9;
  box-shadow: 0 5px 20px #2c392010;
  padding: 44px 34px;
  max-width: 390px;
  width: 100%;
  border-radius: 2px;
}
.sample-paper .en {
  font: italic 21px/1.8 Georgia;
  color: #4c5e48;
}
.sample-paper p {
  font-size: 11px;
  color: #91a087;
}
.total-input {
  background: #edf4e9;
  border: 1px solid #dce8d5;
  border-radius: 9px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.total-input label {
  font-size: 13px;
  font-weight: 600;
}
.total-input p {
  font-size: 10px;
  color: #87987c;
  margin: 6px 0 0;
}
.total-input input {
  max-width: 104px;
  font-size: 27px;
  font-weight: 600;
  background: #fff !important;
  text-align: center;
}
.slider-row {
  display: grid;
  grid-template-columns: 1fr 65px;
  gap: 16px;
  align-items: center;
  margin: 10px 0 16px;
}
.slider-row input[type="range"] {
  width: 100%;
  accent-color: var(--green);
}
.score-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}
.score-label span {
  font-size: 10px;
  color: var(--muted);
}
.score-number {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: #456b3b;
}
.file-tabs {
  padding: 12px;
  display: flex;
  gap: 8px;
  overflow: auto;
  background: #fff;
  border-top: 1px solid var(--line);
}
.file-tabs button {
  font-size: 11px;
}
.score-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  margin-top: 16px;
}
.people-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.person-card {
  padding: 24px;
}
.person-card h3 {
  margin: 15px 0 8px;
}
.person-card p {
  font-size: 11px;
  color: var(--muted);
}
.person-card footer {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  margin-top: 20px;
}
.public-header {
  height: 84px;
  border-bottom: 1px solid #e0e7dd;
  background: #f8f9f4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 max(24px, calc((100vw - 1120px) / 2));
  gap: 20px;
}
.public-header .brand {
  padding: 0;
  color: var(--ink);
}
.public-header .brand-mark {
  border-color: #91ac8d;
  color: #54704d;
}
.public-header .brand small {
  color: #91a087;
}
.public-main {
  max-width: 1120px;
  margin: auto;
  padding: 38px 24px 70px;
}
.public-hero {
  background: #e7edde;
  border: 1px solid #dce6d2;
  padding: 55px;
  border-radius: 17px;
  margin-bottom: 34px;
  position: relative;
  overflow: hidden;
}
.public-hero:after {
  content: "Aa";
  font: italic 230px Georgia;
  position: absolute;
  right: 30px;
  bottom: -54px;
  color: #d3dfc6;
  pointer-events: none;
}
.public-hero h1 {
  font-size: 38px;
  position: relative;
  z-index: 1;
}
.public-hero p {
  font-size: 13px;
  color: #748669;
  max-width: 460px;
  position: relative;
  z-index: 1;
}
.public-hero .eyebrow {
  color: #78906c;
  margin-bottom: 18px;
}
.public-footer {
  text-align: center;
  font-size: 10px;
  color: #9ca592;
  padding: 25px;
  border-top: 1px solid var(--line);
  letter-spacing: 1px;
}
.public-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr);
  gap: 24px;
  align-items: start;
}
.upload-zone {
  padding: 30px 18px;
  border: 1px dashed #aec3a3;
  border-radius: 9px;
  background: #f8fbf5;
  text-align: center;
  position: relative;
}
.upload-zone input {
  margin-top: 14px;
  font-size: 11px;
}
.upload-zone p {
  font-size: 12px;
  margin: 10px 0 0;
  color: #72896b;
}
.file-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  min-width: 0;
}
.file-row span {
  overflow-wrap: anywhere;
  min-width: 0;
}
.code-box {
  text-align: center;
  background: #edf4e5;
  border: 1px solid #d2e1c6;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 24px;
}
.code-box .code {
  font:
    600 52px/1.5 "Segoe UI",
    sans-serif;
  letter-spacing: 12px;
  color: #365f2b;
  margin-left: 12px;
}
.code-box strong {
  font-size: 14px;
}
.code-box p {
  font-size: 12px;
  margin: 8px 0;
  color: #758b67;
}
.qr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.qr-card {
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
}
.qr-card img {
  display: block;
  width: 100%;
  max-width: 210px;
  aspect-ratio: 1;
  object-fit: contain;
  margin: 16px auto;
}
.qr-card h3 {
  font-size: 13px;
}
.qr-placeholder {
  display: grid;
  place-items: center;
  min-height: 100px;
  background: #f2f4ed;
  color: var(--muted);
  font-size: 11px;
  border-radius: 7px;
  margin: 10px 0;
}
.login-layout {
  min-height: calc(100vh - 84px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1120px;
  margin: auto;
  align-items: center;
  gap: 90px;
  padding: 50px 24px;
}
.login-story h1 {
  font: italic 54px/1.15 Georgia;
  color: #365739;
  letter-spacing: -1px;
}
.login-story p {
  color: #89967d;
  font-size: 13px;
}
.login-card {
  padding: 32px;
}
.demo-logins {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 16px;
}
.demo-logins button {
  font-size: 11px;
}
.page-error {
  padding: 80px;
  text-align: center;
}
.boot {
  padding: 100px;
  text-align: center;
  color: #7d9177;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0;
  box-shadow: 0 30px 100px #16322130;
  max-width: 580px;
  width: calc(100% - 32px);
  color: var(--ink);
  max-height: 88vh;
}
dialog::backdrop {
  background: #20392c66;
  backdrop-filter: blur(3px);
}
.modal-head {
  padding: 22px 25px;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 {
  margin: 0;
  font-size: 18px;
}
.modal-body {
  padding: 25px;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 25px 24px;
}
.error-text {
  color: var(--red);
  font-size: 12px;
  margin: 12px 0;
  line-height: 1.7;
}
#toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  padding: 13px 21px;
  background: #244b39;
  color: #fff;
  border-radius: 9px;
  z-index: 100;
  box-shadow: var(--shadow);
  font-size: 12px;
  display: none;
  max-width: 90vw;
}
.mobile-menu {
  display: none;
}
.mobile-only {
  display: none;
}
.legal {
  font-size: 10px;
  color: #95a18e;
  line-height: 1.8;
}
.section-space {
  margin-top: 24px;
}
.checkbox {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 12px;
  line-height: 1.8;
}
.checkbox input {
  margin-top: 5px;
  accent-color: var(--green);
}
.section-number {
  color: #91a184;
  font-size: 11px;
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.long-title {
  white-space: normal;
  min-width: 160px;
}
.hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}
.inline-error {
  color: var(--red);
  font-size: 12px;
  white-space: pre-wrap;
  line-height: 1.8;
}
.saved-label {
  font-size: 10px;
  color: #7b9170;
}
.no-margin {
  margin: 0;
}
.break {
  overflow-wrap: anywhere;
}
.matrix td,
.matrix th {
  text-align: center;
  padding: 13px;
}
.matrix td:first-child,
.matrix th:first-child {
  text-align: left;
}
.check-dot {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  background: #edf5e7;
  color: #71985d;
  border-radius: 50%;
  font-size: 12px;
}
.draft-dot {
  color: #c7cec1;
}
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  font-size: 12px;
}
.info-grid small {
  display: block;
  color: var(--muted);
  margin-bottom: 6px;
}
.topbar .mobile-menu {
  background: none;
  border: 0;
}
.page-title-row {
  align-items: flex-start;
}
.public-back {
  font-size: 12px;
  color: #7c8f71;
  margin-bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
@media (min-width: 1600px) {
  .content {
    padding-top: 40px;
  }
  .stat {
    padding: 26px;
  }
  .two-cols {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
  .sidebar {
    width: 244px;
    padding-top: 38px;
  }
  .shell {
    grid-template-columns: 244px 1fr;
  }
}
@media (max-width: 1150px) {
  .two-cols {
    grid-template-columns: 1fr;
  }
  .right-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .right-column > .stack {
    display: contents;
  }
  .quote {
    display: none;
  }
  .content {
    padding: 26px;
  }
  .topbar {
    padding: 0 26px;
  }
  .people-grid {
    grid-template-columns: 1fr 1fr;
  }
  .scoring-grid {
    grid-template-columns: 1fr 1fr;
  }
  .step {
    font-size: 10px;
    padding: 12px 7px;
  }
  .step b {
    display: none;
  }
  .demo-strip {
    padding: 7px 26px;
  }
}
@media (max-width: 850px) {
  .shell {
    grid-template-columns: 184px 1fr;
  }
  .sidebar {
    width: 184px;
    padding: 24px 10px;
  }
  .brand {
    gap: 8px;
    padding: 0 5px 25px;
  }
  .brand strong {
    font-size: 13px;
  }
  .brand small {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .nav a {
    padding: 12px;
    font-size: 12px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .scoring-grid {
    grid-template-columns: 1fr;
  }
  .login-layout {
    gap: 35px;
  }
  .login-story h1 {
    font-size: 42px;
  }
  .public-detail {
    grid-template-columns: 1fr;
  }
  .steps {
    flex-wrap: wrap;
  }
  .step {
    min-width: 100px;
  }
  .top-right .user-name {
    display: none;
  }
}
@media (max-width: 600px) {
  h1 {
    font-size: 24px;
  }
  .shell {
    display: block;
  }
  .sidebar {
    display: none;
    width: 224px;
  }
  .sidebar.open {
    display: flex;
    box-shadow: 0 0 0 100vw #173b3266;
  }
  .main {
    width: 100%;
  }
  .mobile-menu {
    display: inline-flex;
  }
  .topbar {
    height: 60px;
    padding: 0 17px;
  }
  .content {
    padding: 22px 16px;
  }
  .demo-strip {
    padding: 7px 16px;
    font-size: 10px;
  }
  .top-right {
    gap: 8px;
  }
  .top-right > .tag,
  .top-right > .vline,
  .top-right > .public-link {
    display: none;
  }
  .page-head {
    margin-bottom: 20px;
  }
  .page-title-row {
    flex-wrap: wrap;
  }
  .page-head p {
    font-size: 11px;
  }
  .stats {
    gap: 10px;
    margin-bottom: 20px;
  }
  .stat {
    padding: 16px;
  }
  .stat .number {
    font-size: 27px;
    margin: 10px 0 7px;
  }
  .stat .label {
    font-size: 11px;
  }
  .stat-icon {
    width: 27px;
    height: 27px;
  }
  .stat .hint {
    font-size: 10px;
  }
  .two-cols {
    gap: 18px;
  }
  .panel-head {
    padding: 18px;
  }
  .panel-body {
    padding: 18px;
  }
  .panel-head h2 {
    font-size: 17px;
  }
  .right-column {
    display: block;
  }
  .right-column > .stack {
    display: grid;
  }
  .right-column > * {
    margin-bottom: 18px;
  }
  .quote {
    display: block;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .span2 {
    grid-column: auto;
  }
  .people-grid {
    grid-template-columns: 1fr;
  }
  .public-header {
    height: 72px;
    padding: 0 18px;
    gap: 10px;
  }
  .public-header .brand strong {
    font-size: 13px;
  }
  .public-header .btn {
    padding: 7px 10px;
    font-size: 11px;
  }
  .public-main {
    padding: 25px 16px 45px;
  }
  .public-hero {
    padding: 30px 24px;
    margin-bottom: 25px;
  }
  .public-hero h1 {
    font-size: 29px;
  }
  .public-hero:after {
    font-size: 160px;
    right: -15px;
    bottom: -30px;
  }
  .public-hero p {
    font-size: 12px;
    max-width: 230px;
  }
  .public-detail {
    gap: 18px;
  }
  .qr-grid {
    gap: 12px;
  }
  .qr-card {
    padding: 12px;
  }
  .qr-card .btn {
    font-size: 10px;
    padding: 8px;
  }
  .login-layout {
    display: block;
    padding: 30px 18px;
  }
  .login-story h1 {
    font-size: 36px;
  }
  .login-story {
    margin-bottom: 28px;
  }
  .login-story p {
    font-size: 12px;
  }
  .login-card {
    padding: 24px;
  }
  .viewer {
    min-height: 300px;
    padding: 20px;
  }
  .sample-paper {
    padding: 28px 22px;
  }
  .sample-paper .en {
    font-size: 18px;
  }
  .tabs {
    gap: 22px;
    margin-bottom: 20px;
  }
  .demo-logins {
    gap: 8px;
  }
  .steps {
    gap: 5px;
  }
  .step {
    padding: 10px 9px;
    min-width: 90px;
  }
  .code-box .code {
    font-size: 44px;
  }
  .btn {
    font-size: 12px;
    padding: 9px 13px;
  }
  .page-error {
    padding: 50px 20px;
  }
  .info-grid {
    gap: 13px;
  }
  .topbar .crumb {
    font-size: 11px;
  }
  .hide-mobile {
    display: none;
  }
  .mobile-only {
    display: block;
  }
}
.long-title {
  display: block;
  min-width: 190px;
  line-height: 1.7;
}
.table-scroll table {
  min-width: 620px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 1000px) {
  .stats {
    grid-template-columns: 1fr 1fr;
  }
}

/* BEA wordmark and full English association name */
.brand-mark {
  font-family: Georgia, serif;
  font-size: 11px;
  letter-spacing: 0.3px;
}
.brand small {
  font-size: 8px;
  letter-spacing: 0.4px;
  line-height: 1.5;
}

.reader-entry {
  margin-left: 12px;
  background: #fff;
  color: #264e3d;
  border-color: #c3d1bd;
}
.login-demo-entry {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.login-demo-entry p {
  margin: 0 0 12px;
}
.login-demo-entry small {
  display: block;
  margin-top: 10px;
}
@media (max-width: 560px) {
  .public-hero .reader-entry {
    margin: 12px 0 0;
    display: flex;
    width: fit-content;
  }
}
