:root {
  --ink: #283a35;
  --muted: #7a8580;
  --paper: #fbf8f2;
  --white: #fff;
  --line: #e8e8df;
  --coral: #dc725e;
  --coral-soft: #f9e8e2;
  --green: #355e51;
  --green-soft: #e6eee7;
  --blue: #e8edf2;
  --shadow: 0 18px 60px #26382e0c;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  background: var(--paper);
  font-family: "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  border: 0;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.3;
}
h1 {
  font-size: 44px;
  letter-spacing: 1px;
  font-weight: 600;
}
h2 {
  font-size: 24px;
  font-weight: 600;
}
h3 {
  font-size: 18px;
  font-weight: 600;
}
small,
.small {
  font-size: 12px;
}
b,
strong {
  font-weight: 600;
}
svg {
  display: block;
}
input,
select,
textarea {
  min-width: 0;
  width: 100%;
  border: 1px solid #dce1db;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  padding: 11px 13px;
  outline: 0;
}
textarea {
  resize: vertical;
  min-height: 108px;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px #355e5110;
}
input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--green);
  margin: 3px 0;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #d0a18c;
  outline-offset: 3px;
}
.dev-banner {
  background: #eee8da;
  color: #77694d;
  font-size: 11px;
  text-align: center;
  padding: 7px 14px;
  letter-spacing: 0.5px;
}
.topbar {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  max-width: 1152px;
  padding: 0 36px;
  margin: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}
.brand-icon {
  display: grid;
  place-items: center;
  width: 41px;
  height: 43px;
  color: var(--paper);
  font-family: Georgia, serif;
  font-size: 32px;
  line-height: 1;
  background: var(--green);
  border-radius: 13px 13px 13px 3px;
}
.brand-name {
  font-size: 19px;
  letter-spacing: 2px;
  font-weight: 600;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 2.5px;
}
.nav {
  display: flex;
  gap: 27px;
  align-items: center;
}
.nav a {
  font-size: 13px;
  padding: 11px 0;
  color: #78837e;
}
.nav a.active {
  color: var(--green);
  border-bottom: 2px solid var(--green);
}
.account-btn {
  background: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  padding: 8px;
}
.avatar {
  height: 29px;
  width: 29px;
  display: grid;
  place-items: center;
  border-radius: 100%;
  background: #eadfd2;
  color: #77624e;
  font-size: 12px;
}
.container {
  max-width: 1080px;
  padding: 8px 28px 90px;
  margin: 0 auto;
}
.school-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 10px 0 20px;
  margin-bottom: 27px;
}
.school-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  background: transparent;
  padding: 0;
  text-align: left;
  color: var(--ink);
}
.school-name {
  font-weight: 600;
}
.school-switch {
  font-size: 11px;
  color: var(--coral);
  border-left: 1px solid #deded5;
  padding-left: 10px;
  margin-left: 4px;
}
.school-caption {
  font-size: 11px;
  color: var(--muted);
}
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 286px;
  position: relative;
  overflow: hidden;
  align-items: center;
  margin-bottom: 37px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2.5px;
  color: var(--coral);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero h1 span {
  color: var(--coral);
}
.hero-sub {
  color: var(--muted);
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.9;
}
.hero-foot {
  display: flex;
  gap: 16px;
  margin-top: 25px;
  color: #718577;
  font-size: 11px;
}
.hero-art {
  position: relative;
  height: 282px;
  display: grid;
  place-items: center;
}
.orbit {
  position: absolute;
  width: 262px;
  height: 262px;
  background: #edf0e5;
  border-radius: 100%;
  right: 42px;
  top: 5px;
}
.orbit:after {
  content: "";
  position: absolute;
  inset: -14px;
  border: 1px dashed #d6decf;
  border-radius: 100%;
}
.postcard {
  position: absolute;
  background: #fffdf7;
  border: 1px solid #f0e8dc;
  box-shadow: 0 12px 32px #4c614817;
  width: 146px;
  height: 166px;
  top: 20px;
  right: 124px;
  transform: rotate(-12deg);
  padding: 15px 17px;
  color: #7e8c70;
}
.postcard .stamp {
  border: 2px dotted #d1aa91;
  width: 34px;
  height: 40px;
  margin-left: auto;
  display: grid;
  place-items: center;
  color: var(--coral);
  font-size: 20px;
}
.postcard-line {
  height: 2px;
  background: #e7e1d6;
  margin-top: 12px;
  width: 83%;
}
.envelope {
  position: absolute;
  background: #d99175;
  width: 220px;
  height: 141px;
  top: 108px;
  right: 49px;
  transform: rotate(8deg);
  border-radius: 5px;
  box-shadow: 0 18px 28px #8e6b3522;
  overflow: hidden;
}
.envelope:before {
  content: "";
  position: absolute;
  width: 156px;
  height: 156px;
  background: #e7aa8d;
  transform: rotate(45deg);
  left: 31px;
  top: -91px;
  box-shadow: 3px 3px 5px #8b5b3817;
}
.envelope:after {
  content: "♡";
  display: grid;
  place-items: center;
  position: absolute;
  width: 43px;
  height: 43px;
  border-radius: 50%;
  background: #9c574e;
  color: #f1d9c8;
  left: 89px;
  top: 49px;
  font-size: 25px;
  border: 3px double #b47967;
}
.art-flower {
  position: absolute;
  font-size: 38px;
  color: #d9b359;
  right: 33px;
  top: 15px;
  transform: rotate(18deg);
}
.art-spark {
  position: absolute;
  color: #8fa08b;
  right: 295px;
  top: 171px;
  font-size: 24px;
}
.art-label {
  position: absolute;
  right: 116px;
  bottom: 0;
  font-family: Georgia, serif;
  font-style: italic;
  color: #85917e;
  font-size: 14px;
  transform: rotate(-4deg);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin-bottom: 19px;
}
.section-head h2 {
  font-size: 20px;
}
.section-head p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}
.section-head a,
.text-btn {
  background: none;
  color: var(--coral);
  font-size: 12px;
  padding: 0;
}
.gender-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.gender-card {
  position: relative;
  padding: 28px;
  border-radius: 17px;
  border: 1px solid #dfe5de;
  background: #eef2e9;
  text-align: left;
  overflow: hidden;
  min-height: 163px;
  color: var(--ink);
}
.gender-card.female {
  background: #f5e9e0;
  border-color: #efdfd3;
}
.gender-card .tagline {
  font-size: 10px;
  letter-spacing: 1.7px;
  color: #859278;
  margin-bottom: 9px;
}
.gender-card.female .tagline {
  color: #b58d76;
}
.gender-card h3 {
  font-size: 22px;
}
.gender-card p {
  font-size: 12px;
  color: #84917e;
  margin-top: 9px;
}
.gender-card.female p {
  color: #a28a7a;
}
.gender-arrow {
  position: absolute;
  bottom: 27px;
  right: 26px;
  background: #ffffff91;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
}
.gender-illustration {
  position: absolute;
  right: 68px;
  top: 24px;
  font-family: Georgia, serif;
  font-size: 77px;
  line-height: 1;
  color: #9cad92;
  transform: rotate(-8deg);
}
.female .gender-illustration {
  color: #d09f86;
  transform: rotate(8deg);
}
.section {
  margin-top: 34px;
}
.package-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.package {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 20px;
  background: #fffdf8;
  position: relative;
  cursor: pointer;
  text-align: left;
  color: var(--ink);
}
.package.selected {
  border-color: var(--green);
  background: #eff3eb;
  box-shadow: inset 0 0 0 1px var(--green);
}
.package h3 {
  font-size: 15px;
}
.package p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.price {
  margin-top: 14px;
  font-size: 25px;
  color: var(--green);
  font-family: Georgia, serif;
  font-weight: 600;
}
.price small {
  font-family: inherit;
  font-size: 14px;
  margin-right: 3px;
}
.package-label {
  position: absolute;
  right: 14px;
  top: 18px;
  border: 1px solid #e7d7bf;
  color: #ae9069;
  border-radius: 4px;
  font-size: 9px;
  padding: 1px 5px;
}
.publish-callout {
  margin-top: 31px;
  padding: 23px 25px;
  border-radius: 13px;
  background: #e9ede4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 17px;
}
.publish-callout h3 {
  font-size: 17px;
}
.publish-callout p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}
.callout-icon {
  font-size: 26px;
  margin-right: 16px;
  color: var(--green);
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.between {
  justify-content: space-between;
}
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  padding: 11px 19px;
  border-radius: 9px;
  background: var(--green);
  color: #fff;
  font-size: 13px;
  min-height: 43px;
  white-space: nowrap;
}
.btn.secondary {
  background: #eef1eb;
  color: var(--green);
  border: 1px solid #dce3d8;
}
.btn.coral {
  background: var(--coral);
}
.btn.danger {
  background: #fae7e1;
  color: #ae4c40;
}
.btn.small {
  padding: 6px 12px;
  min-height: 33px;
  font-size: 12px;
}
.btn.full {
  width: 100%;
}
.helper {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
.disclaimer {
  display: flex;
  justify-content: center;
  gap: 21px;
  color: #989b8e;
  font-size: 10px;
  margin-top: 26px;
}
.footer {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 27px;
  text-align: center;
  font-size: 10px;
  letter-spacing: 1px;
  color: #a1a89d;
}
.mobile-nav {
  display: none;
}
.page-head {
  margin: 20px 0 28px;
}
.page-head p {
  color: var(--muted);
  margin-top: 8px;
}
.panel {
  padding: 27px;
  background: #fffdf9;
  border: 1px solid var(--line);
  border-radius: 15px;
  margin-bottom: 20px;
}
.form-panel {
  max-width: 680px;
  margin: auto;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 20px;
}
.field label {
  font-size: 13px;
  font-weight: 500;
}
.field small {
  font-size: 11px;
  color: var(--muted);
}
.field-wide {
  grid-column: 1/-1;
}
.check-field {
  display: flex;
  align-items: start;
  gap: 10px;
  font-size: 12px;
  color: #6b7a70;
  margin: 18px 0;
}
.notice {
  padding: 13px 16px;
  border-radius: 9px;
  background: #f2eee2;
  border: 1px solid #e9e1cb;
  font-size: 12px;
  color: #8a7957;
  margin: 14px 0;
}
.notice.error {
  background: #fff0ec;
  color: #a65145;
  border-color: #ecd5cb;
}
.notice.success {
  background: #edf3e9;
  color: #537346;
  border-color: #dce6d4;
}
.notice.info {
  background: #edf2f3;
  color: #54707a;
  border-color: #dce7e9;
}
.tabs {
  display: flex;
  gap: 5px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
  overflow-x: auto;
}
.tabs button {
  padding: 13px 17px;
  color: var(--muted);
  background: transparent;
  white-space: nowrap;
}
.tabs button.active {
  color: var(--green);
  border-bottom: 2px solid var(--green);
  font-weight: 600;
}
.empty {
  padding: 42px 20px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed #dfe4d9;
  border-radius: 12px;
  margin: 20px 0;
}
.empty-icon {
  font-size: 30px;
  color: #a7b19c;
  margin-bottom: 10px;
}
.empty h3 {
  font-size: 16px;
  color: #6b7a6e;
  margin-bottom: 8px;
}
.empty p {
  font-size: 12px;
}
.empty .btn {
  margin-top: 15px;
}
.record {
  border: 1px solid var(--line);
  padding: 19px 20px;
  border-radius: 12px;
  background: #fffefa;
  margin-bottom: 13px;
}
.record-top {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
}
.record h3 {
  font-size: 15px;
}
.record p {
  font-size: 13px;
  color: #6e7d73;
  line-height: 1.8;
}
.record-meta {
  color: var(--muted);
  font-size: 11px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 11px;
}
.record-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 13px;
}
.badge {
  display: inline-block;
  border-radius: 5px;
  padding: 3px 7px;
  font-size: 10px;
  background: #edf0e8;
  color: #728063;
  white-space: nowrap;
}
.badge.warning {
  background: #f9ebd4;
  color: #9d7c3e;
}
.badge.red {
  background: #f9e4e0;
  color: #b16357;
}
.badge.blue {
  background: #e9eff4;
  color: #60849e;
}
.modal-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  background: #1d322b66;
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal {
  width: 100%;
  max-width: 570px;
  max-height: 88vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--paper);
  border-radius: 20px;
  padding: 29px;
  box-shadow: 0 20px 100px #142d3033;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.modal-head h2 {
  font-size: 21px;
}
.close-btn {
  height: 30px;
  width: 30px;
  border-radius: 50%;
  background: #ecece3;
  color: #718072;
  font-size: 21px;
}
.modal .package-grid {
  gap: 8px;
  margin: 20px 0;
}
.modal .package {
  padding: 15px 12px;
}
.modal .package-label {
  display: none;
}
.modal .price {
  font-size: 22px;
}
.modal .school-bar {
  padding-bottom: 13px;
  margin-bottom: 15px;
}
.modal .helper {
  margin-top: 11px;
}
.school-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border: 1px solid var(--line);
  background: #fffdf7;
  width: 100%;
  color: var(--ink);
  margin: 10px 0;
  border-radius: 10px;
  text-align: left;
}
.school-option.selected {
  background: #eaf1e7;
  border-color: #8ca288;
}
.school-option span {
  font-size: 11px;
  color: var(--green);
}
#toast {
  position: fixed;
  z-index: 300;
  bottom: 95px;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  background: #2e473df2;
  color: white;
  border-radius: 10px;
  padding: 12px 19px;
  max-width: 88vw;
  box-shadow: var(--shadow);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
}
#toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.initial-loading {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 13px;
}
.initial-loading p {
  font-size: 21px;
  letter-spacing: 3px;
}
.initial-loading small {
  color: var(--muted);
}
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #b6c3b4;
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.loading-line {
  padding: 40px;
  text-align: center;
  color: var(--muted);
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.guide-number {
  font:
    italic 35px Georgia,
    serif;
  color: #c39877;
  margin-bottom: 20px;
}
.guide-grid h3 {
  margin-bottom: 12px;
}
.guide-grid p {
  font-size: 12px;
  color: var(--muted);
}
.contact-box {
  padding: 14px;
  background: #eaf0e7;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 15px;
  overflow-wrap: anywhere;
}
.note-image {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 9px;
  margin-bottom: 12px;
}
.login-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.login-choices .btn {
  flex: 1;
  min-width: 100px;
}
.dashboard {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: #eff1e9;
  border-right: 1px solid #e0e4d9;
  padding: 32px 21px;
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  display: flex;
  flex-direction: column;
}
.sidebar .brand {
  padding: 0 8px;
  margin-bottom: 33px;
}
.sidebar-label {
  font-size: 9px;
  letter-spacing: 2px;
  color: #9da796;
  margin: 20px 11px 10px;
}
.side-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.side-nav button {
  display: flex;
  gap: 12px;
  align-items: center;
  text-align: left;
  padding: 12px 13px;
  border-radius: 8px;
  background: transparent;
  color: #7a8979;
  font-size: 12px;
}
.side-nav button.active {
  background: var(--green);
  color: white;
}
.nav-symbol {
  width: 18px;
  text-align: center;
  font-size: 15px;
}
.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid #dde3d7;
  padding: 20px 9px 0;
  color: var(--muted);
  font-size: 11px;
}
.sidebar-bottom a {
  display: block;
  margin-top: 9px;
}
.dash-main {
  min-width: 0;
  padding: 0 35px 50px;
}
.dash-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.dash-top-title {
  color: var(--muted);
}
.dash-top-title b {
  color: var(--ink);
  font-weight: 500;
}
.dash-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin: 29px 0 23px;
}
.dash-heading p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 7px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 24px;
}
.stat {
  background: #fffefa;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 20px;
  min-height: 112px;
}
.stat-label {
  font-size: 12px;
  color: var(--muted);
}
.stat-value {
  font-size: 29px;
  line-height: 1.3;
  font-weight: 500;
  margin: 11px 0 5px;
  font-family: Georgia, "Microsoft YaHei", serif;
}
.stat-note {
  font-size: 10px;
  color: #9aa290;
}
.stat.accent {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.stat.accent .stat-label,
.stat.accent .stat-note {
  color: #c0cec0;
}
.dash-columns {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
}
.dash-columns .panel {
  min-width: 0;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
}
.panel-head h3 {
  font-size: 16px;
}
.filter-bar {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
  padding: 17px 20px;
  background: #fffdfa;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 24px;
}
.filter-field {
  flex: 1;
  min-width: 115px;
  max-width: 185px;
}
.filter-field label {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 5px;
}
.filter-field input,
.filter-field select {
  padding: 8px 10px;
  font-size: 12px;
  min-height: 35px;
}
.filter-check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  white-space: nowrap;
  min-height: 36px;
}
.table-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fffefa;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  white-space: nowrap;
}
th,
td {
  text-align: left;
  padding: 14px 17px;
  border-bottom: 1px solid #eeeee5;
}
th {
  font-weight: 500;
  background: #f3f4ec;
  color: #7b8874;
  font-size: 11px;
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #f8f9f2;
}
.table-empty {
  text-align: center !important;
  color: var(--muted);
  padding: 34px !important;
}
.data-text {
  max-width: 240px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.mono {
  font-family: Consolas, monospace;
  font-size: 11px;
}
.muted {
  color: var(--muted);
}
.chart-bars {
  display: flex;
  align-items: end;
  gap: 12px;
  height: 160px;
  border-bottom: 1px solid var(--line);
  margin: 25px 0 30px;
}
.bar-col {
  height: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: center;
  position: relative;
}
.bar-col .bar {
  background: #adc0a4;
  width: 66%;
  max-width: 50px;
  border-radius: 5px 5px 0 0;
  min-height: 3px;
}
.bar-col .bar-number {
  font-size: 10px;
  color: #85907e;
  margin-bottom: 4px;
}
.bar-col .bar-label {
  position: absolute;
  bottom: -23px;
  font-size: 10px;
  color: var(--muted);
}
.qr-box {
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: center;
  padding: 20px;
  background: #fff;
}
.qr-box img {
  width: 160px;
  height: 160px;
  max-width: 100%;
  display: block;
  margin: 0 auto 12px;
}
.link-field {
  display: flex;
  gap: 8px;
  margin-top: 15px;
}
.link-field input {
  font-size: 11px;
  color: var(--muted);
}
.rule-list {
  font-size: 12px;
  color: #7b8777;
}
.rule-list > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid #eeeee4;
}
.rule-list > div:last-child {
  border: 0;
}
.rule-list b {
  color: var(--ink);
}
.funnel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.funnel-step {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
}
.funnel-label {
  width: 89px;
  font-size: 12px;
  color: var(--muted);
  flex-shrink: 0;
}
.funnel-track {
  height: 27px;
  background: #f1f3eb;
  border-radius: 5px;
  flex: 1;
  overflow: hidden;
}
.funnel-bar {
  height: 100%;
  background: #a9bd9f;
  border-radius: 5px;
  min-width: 2px;
}
.funnel-number {
  width: 35px;
  text-align: right;
  font-size: 13px;
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 15px 0;
}
.pill {
  font-size: 11px;
  border-radius: 20px;
  background: #eef0e7;
  padding: 5px 10px;
  color: #778367;
}
.json-detail {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
  color: var(--muted);
  background: #f0f2eb;
  padding: 15px;
  border-radius: 8px;
}
.field-inline {
  display: flex;
  gap: 12px;
  align-items: end;
}
.field-inline .field {
  flex: 1;
}
.float-action {
  display: none;
}
.skeleton {
  height: 180px;
  border-radius: 14px;
  background: linear-gradient(90deg, #efeee6 25%, #f6f6ef 50%, #efeee6 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
.split-intro {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
  margin: 15px 0;
}
.tiny-chart-caption {
  text-align: center;
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.no-wrap {
  white-space: nowrap;
}
@media (min-width: 1400px) {
  .dash-main {
    padding-left: 45px;
    padding-right: 45px;
  }
  .dashboard {
    grid-template-columns: 235px minmax(0, 1fr);
  }
}
@media (max-width: 1050px) {
  .dashboard {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .sidebar {
    padding: 27px 13px;
  }
  .sidebar .brand-name {
    font-size: 16px;
  }
  .sidebar .brand small {
    font-size: 8px;
  }
  .dash-main {
    padding: 0 23px 40px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dash-columns {
    grid-template-columns: 1fr 1fr;
  }
  .gender-illustration {
    right: 64px;
    font-size: 65px;
  }
  .nav {
    gap: 18px;
  }
}
@media (max-width: 760px) {
  h1 {
    font-size: 34px;
  }
  .topbar {
    height: 76px;
    padding: 0 21px;
    gap: 10px;
  }
  .brand-icon {
    width: 35px;
    height: 37px;
    font-size: 27px;
    border-radius: 11px 11px 11px 3px;
  }
  .brand-name {
    font-size: 18px;
  }
  .nav {
    display: none;
  }
  .account-btn .account-label {
    max-width: 76px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .container {
    padding: 0 21px 110px;
  }
  .school-bar {
    padding: 8px 0 16px;
    margin-bottom: 18px;
  }
  .school-caption {
    font-size: 9px;
  }
  .school-name {
    font-size: 13px;
  }
  .school-switch {
    font-size: 10px;
  }
  .hero {
    min-height: 226px;
    grid-template-columns: 1.1fr 0.9fr;
    margin-bottom: 22px;
    overflow: visible;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 1.8px;
    margin-bottom: 14px;
  }
  .hero h1 {
    font-size: 30px;
    letter-spacing: 0;
    line-height: 1.45;
    white-space: nowrap;
  }
  .hero-sub {
    font-size: 10px;
    line-height: 1.9;
    margin-top: 10px;
    max-width: 195px;
  }
  .hero-foot {
    gap: 10px;
    font-size: 9px;
    margin-top: 16px;
  }
  .hero-art {
    height: 210px;
    margin-right: -10px;
    transform: scale(0.67);
    transform-origin: right center;
    width: 260px;
    position: absolute;
    right: 0;
    top: -4px;
  }
  .hero-copy {
    position: relative;
    z-index: 2;
  }
  .orbit {
    width: 217px;
    height: 217px;
    right: 0;
    top: 4px;
  }
  .orbit:after {
    inset: -10px;
  }
  .postcard {
    right: 63px;
    top: 5px;
    width: 126px;
    height: 150px;
  }
  .envelope {
    width: 181px;
    height: 120px;
    right: -12px;
    top: 89px;
  }
  .envelope:before {
    left: 21px;
    top: -97px;
  }
  .envelope:after {
    width: 36px;
    height: 36px;
    left: 72px;
    top: 43px;
    font-size: 23px;
  }
  .art-flower {
    right: -10px;
    top: -15px;
    font-size: 33px;
  }
  .art-spark {
    right: 198px;
    top: 160px;
  }
  .art-label {
    right: 30px;
    bottom: -20px;
    font-size: 13px;
  }
  .section-head {
    margin-bottom: 14px;
  }
  .section-head h2 {
    font-size: 17px;
  }
  .section-head p {
    font-size: 10px;
    margin-top: 5px;
  }
  .section-head a {
    font-size: 10px;
  }
  .gender-grid {
    gap: 12px;
  }
  .gender-card {
    padding: 19px 17px;
    min-height: 143px;
    border-radius: 13px;
  }
  .gender-card .tagline {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .gender-card h3 {
    font-size: 18px;
  }
  .gender-card p {
    font-size: 10px;
    margin-top: 7px;
  }
  .gender-illustration {
    right: 15px;
    top: 19px;
    font-size: 41px;
    opacity: 0.8;
  }
  .gender-arrow {
    right: 15px;
    bottom: 15px;
    width: 23px;
    height: 23px;
    font-size: 11px;
  }
  .section {
    margin-top: 27px;
  }
  .package-grid {
    gap: 9px;
  }
  .package {
    padding: 15px 12px;
    border-radius: 11px;
  }
  .package h3 {
    font-size: 13px;
  }
  .package p {
    font-size: 9px;
  }
  .package-label {
    position: static;
    display: inline-block;
    margin-top: 7px;
    font-size: 8px;
    padding: 0 4px;
  }
  .price {
    font-size: 23px;
    margin-top: 10px;
  }
  .price small {
    font-size: 11px;
  }
  .publish-callout {
    padding: 18px 15px;
    margin-top: 23px;
    gap: 10px;
  }
  .publish-callout h3 {
    font-size: 14px;
  }
  .publish-callout p {
    font-size: 10px;
    line-height: 1.8;
    max-width: 184px;
  }
  .publish-callout .btn {
    padding: 8px 12px;
    font-size: 11px;
    min-height: 36px;
  }
  .callout-icon {
    display: none;
  }
  .disclaimer {
    font-size: 8px;
    gap: 13px;
    margin-top: 20px;
  }
  .footer {
    font-size: 8px;
    line-height: 1.9;
    margin-top: 20px;
    padding-top: 17px;
  }
  .mobile-nav {
    display: flex;
    position: fixed;
    z-index: 30;
    bottom: 0;
    left: 0;
    right: 0;
    align-items: center;
    justify-content: space-around;
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
    background: #fffdf9f7;
    border-top: 1px solid #e9e9df;
    backdrop-filter: blur(10px);
  }
  .mobile-nav a {
    color: #8d988b;
    font-size: 9px;
    text-align: center;
    min-width: 50px;
  }
  .mobile-nav a span {
    display: block;
    font-size: 21px;
    line-height: 1.35;
    margin-bottom: 3px;
  }
  .mobile-nav a.active {
    color: var(--green);
    font-weight: 600;
  }
  .page-head {
    margin: 20px 0;
  }
  .page-head h2 {
    font-size: 24px;
  }
  .page-head p {
    font-size: 12px;
  }
  .panel {
    padding: 20px 17px;
    border-radius: 12px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .guide-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .guide-number {
    margin-bottom: 10px;
  }
  .modal-backdrop {
    padding: 16px;
    align-items: center;
  }
  .modal {
    padding: 23px 20px;
    border-radius: 17px;
    max-height: 88vh;
  }
  .modal .package {
    padding: 14px 10px;
  }
  .modal-head h2 {
    font-size: 19px;
  }
  .modal .package h3 {
    font-size: 12px;
  }
  .modal .package p {
    font-size: 9px;
  }
  .modal .price {
    font-size: 22px;
  }
  .record {
    padding: 16px;
  }
  .record h3 {
    font-size: 14px;
  }
  .record-meta {
    font-size: 10px;
    gap: 10px;
  }
  .record-actions .btn {
    font-size: 11px;
  }
  .dashboard {
    display: block;
  }
  .sidebar {
    position: static;
    height: auto;
    padding: 16px 19px 0;
    border-bottom: 1px solid var(--line);
    border-right: 0;
    display: block;
  }
  .sidebar .brand {
    margin-bottom: 13px;
    padding: 0;
  }
  .sidebar-label,
  .sidebar-bottom {
    display: none;
  }
  .side-nav {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 12px;
    gap: 7px;
  }
  .side-nav button {
    padding: 8px 12px;
    font-size: 11px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .nav-symbol {
    display: none;
  }
  .dash-main {
    padding: 0 17px 40px;
  }
  .dash-top {
    padding: 16px 0;
    font-size: 11px;
  }
  .dash-heading {
    margin: 23px 0 18px;
    align-items: start;
  }
  .dash-heading h2 {
    font-size: 23px;
  }
  .dash-heading p {
    font-size: 10px;
    max-width: 230px;
  }
  .stats-grid {
    gap: 10px;
    margin-bottom: 17px;
  }
  .stat {
    padding: 15px;
    min-height: 111px;
  }
  .stat-value {
    font-size: 27px;
  }
  .stat-label {
    font-size: 11px;
  }
  .stat-note {
    font-size: 9px;
  }
  .dash-columns {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .filter-bar {
    padding: 13px;
    gap: 10px;
  }
  .filter-field {
    min-width: calc(50% - 10px);
    max-width: none;
  }
  .filter-field label {
    font-size: 9px;
  }
  .filter-check {
    font-size: 10px;
  }
  .filter-bar > .btn {
    flex: 1;
  }
  .funnel-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  th,
  td {
    padding: 12px 13px;
  }
  .funnel-label {
    font-size: 11px;
  }
  .field-inline {
    display: block;
  }
  .dash-heading > .btn {
    padding: 8px 12px;
    font-size: 11px;
    min-height: 35px;
  }
  .tabs button {
    padding: 12px;
    font-size: 12px;
  }
  .link-field .btn {
    padding: 9px 12px;
  }
  .contact-box {
    font-size: 12px;
  }
  .dev-banner {
    font-size: 9px;
    padding: 6px 10px;
    letter-spacing: 0.2px;
  }
}
@media (max-width: 360px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .hero h1 {
    font-size: 27px;
  }
  .hero-art {
    transform: scale(0.58);
    right: -7px;
  }
  .school-caption {
    display: none;
  }
  .package {
    padding: 14px 9px;
  }
  .gender-card {
    padding: 18px 13px;
  }
  .hero-sub {
    font-size: 9px;
    max-width: 172px;
  }
  .publish-callout p {
    max-width: 162px;
  }
}

@media (max-width: 760px) {
  .hero {
    overflow: hidden;
  }
  .hero-art {
    right: 9px;
  }
}

.report-scope {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #8c8067;
  font-size: 11px;
  margin: 0 0 17px;
}
.report-definitions {
  margin-top: 21px;
  border: 1px solid var(--line);
  padding: 15px 19px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 12px;
}
.report-definitions summary {
  cursor: pointer;
  color: var(--green);
}
.report-definitions p {
  margin-top: 11px;
}
.report-shortcuts {
  margin: 0 0 25px;
}
.action-table th:last-child,
.action-table td:last-child {
  position: sticky;
  right: 0;
  background: #fffdf8;
  box-shadow: -6px 0 10px #26382e05;
}
.action-table th:last-child {
  background: #f3f4ec;
}
.sidebar .brand small {
  letter-spacing: 1.8px;
  font-size: 8px;
}
@media (max-width: 760px) {
  .report-scope {
    align-items: start;
    font-size: 10px;
    gap: 8px;
  }
  .report-scope .badge {
    flex-shrink: 0;
  }
  .report-shortcuts {
    gap: 6px;
  }
  .report-shortcuts .btn {
    font-size: 10px;
  }
  .report-definitions {
    padding: 13px 15px;
  }
}

.check-field input[type="checkbox"] {
  flex: 0 0 17px;
}

/* Local interaction refinements; retain the established campus letter palette. */
.school-bar {
  gap: 14px;
}
.school-selection,
.school-btn,
.school-name,
.panel-head > *,
.record-top > *,
.field,
.filter-field {
  min-width: 0;
}
.school-selection {
  flex: 1;
}
.school-btn {
  min-height: 44px;
  max-width: 100%;
}
.school-name {
  overflow-wrap: anywhere;
  line-height: 1.6;
}
.school-switch {
  flex-shrink: 0;
  white-space: nowrap;
}
.school-context {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}
.school-caption {
  flex-shrink: 0;
}
.home-shortcuts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 24px;
}
.home-shortcuts a {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  gap: 3px;
  min-height: 46px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffdf9;
  font-size: 12px;
  color: var(--green);
}
.home-shortcuts a small {
  font-size: 10px;
  color: var(--muted);
}
article.gender-card {
  padding: 0;
}
.gender-open {
  display: block;
  position: relative;
  width: 100%;
  padding: 25px 25px 18px;
  background: transparent;
  color: inherit;
  text-align: left;
}
.gender-open .gender-illustration {
  right: 26px;
  top: 25px;
  font-size: 58px;
}
.gender-open .tagline {
  display: block;
}
.gender-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 20px;
  font-size: 12px;
  color: var(--green);
}
.gender-publish {
  width: 100%;
  min-height: 44px;
  background: #ffffff5c;
  color: var(--ink);
  border-top: 1px solid #283a350d;
  font-size: 12px;
  padding: 10px;
}
.gender-open:hover,
.gender-publish:hover {
  background: #ffffff42;
}
.gender-open:focus-visible,
.gender-publish:focus-visible {
  outline-offset: -4px;
}
.form-section-title {
  font-size: 15px;
  margin: 25px 0 18px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
  color: var(--green);
}
.field-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.field-heading small {
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.upload-control {
  position: relative;
  padding: 15px;
  background: #f7f8f2;
  border: 1px dashed #cbd6c6;
  border-radius: 10px;
}
.upload-control input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
}
.upload-control:focus-within {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
.upload-picker {
  display: flex;
  align-items: center;
  gap: 13px;
  cursor: pointer;
  min-height: 52px;
}
.upload-picker b,
.upload-picker small {
  display: block;
}
.upload-symbol {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  background: #e6eee0;
  color: var(--green);
  border-radius: 8px;
  font-size: 25px;
  flex-shrink: 0;
}
.upload-control input::file-selector-button {
  border: 1px solid #dce3d8;
  border-radius: 7px;
  padding: 10px 12px;
  background: #fffdf9;
  color: var(--green);
  font: inherit;
  margin-right: 9px;
  cursor: pointer;
}
.upload-preview {
  margin-top: 13px;
}
.upload-preview img {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--paper);
  margin-bottom: 10px;
}
.upload-preview > div {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.upload-preview b {
  font-size: 11px;
  overflow-wrap: anywhere;
  min-width: 0;
}
.upload-preview .text-btn {
  flex-shrink: 0;
}
.submit-summary,
.summary-strip {
  background: #edf2e9;
  border: 1px solid #dce5d6;
  border-radius: 9px;
  padding: 13px 15px;
  margin: 17px 0;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.summary-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.summary-strip strong {
  color: var(--green);
}
.submit-summary,
.selection-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.selection-summary {
  font-size: 12px;
  margin-bottom: 12px;
  color: var(--green);
}
.selection-summary b {
  font-size: 18px;
  font-family: Georgia, "Microsoft YaHei", serif;
}
.form-actions {
  margin-top: 18px;
}
.form-actions .helper {
  margin-top: 12px;
  text-align: center;
}
.modal {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  max-height: 88vh;
  max-height: min(90dvh, 900px);
}
.modal-head {
  flex-shrink: 0;
  gap: 12px;
  margin: 0;
  padding: 19px 24px 15px;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 {
  min-width: 0;
  overflow-wrap: anywhere;
}
.close-btn {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}
.modal-body {
  min-height: 0;
  padding: 18px 24px 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.modal-body > .helper:first-child {
  margin-top: 0;
}
.modal-footer {
  position: sticky;
  bottom: -24px;
  margin: 20px -24px -24px;
  padding: 16px 24px 22px;
  background: var(--paper);
  border-top: 1px solid var(--line);
  z-index: 2;
}
.modal-footer .helper {
  text-align: center;
}
.school-option {
  gap: 15px;
}
.school-option b {
  min-width: 0;
  overflow-wrap: anywhere;
}
.school-option span {
  flex-shrink: 0;
}
.agent-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
}
.balance-highlight {
  background: #edf2e9;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 18px;
  color: var(--green);
}
.balance-highlight strong {
  font-size: 28px;
  font-family: Georgia, "Microsoft YaHei", serif;
}
.record p,
.record h3,
.helper,
.notice,
.rule-list b,
.panel h2,
.panel-head h3,
.stat-value {
  overflow-wrap: anywhere;
}
.record-top {
  align-items: start;
}
.record-top > .badge {
  flex-shrink: 0;
}
.table-wrap {
  overscroll-behavior-x: contain;
  scrollbar-color: #b8c6b3 #f3f4ec;
  scrollbar-width: thin;
}
.table-wrap:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
.table-scroll-hint {
  font-size: 11px;
  color: var(--muted);
  margin: 8px 0 14px;
}
@media (max-width: 760px) {
  .school-bar {
    flex-wrap: wrap;
    gap: 3px;
    padding-bottom: 13px;
  }
  .school-selection {
    flex-basis: 100%;
  }
  .school-caption {
    display: block;
    font-size: 10px;
    line-height: 1.7;
  }
  .school-context {
    font-size: 10px;
  }
  .school-btn {
    width: 100%;
  }
  .school-switch {
    margin-left: auto;
    font-size: 11px;
  }
  .home-shortcuts {
    margin-bottom: 24px;
    gap: 10px;
  }
  .home-shortcuts a {
    padding: 10px 12px;
    font-size: 12px;
  }
  .gender-open {
    padding: 19px 16px 14px;
  }
  .gender-open .gender-illustration {
    right: 14px;
    top: 20px;
    font-size: 36px;
  }
  .gender-cta {
    font-size: 11px;
    margin-top: 17px;
  }
  .gender-publish {
    font-size: 11px;
  }
  .container {
    padding-bottom: calc(110px + env(safe-area-inset-bottom));
  }
  input,
  select,
  textarea {
    scroll-margin-block: 110px;
  }
  .btn,
  .btn.small,
  .publish-callout .btn,
  .dash-heading > .btn,
  .side-nav button,
  .filter-field input,
  .filter-field select {
    min-height: 44px;
  }
  .text-btn,
  .section-head a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .mobile-nav a {
    min-height: 44px;
  }
  .modal-backdrop {
    padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
  }
  .modal-head {
    padding: 13px 18px 11px;
  }
  .modal-body {
    padding: 16px 18px 22px;
    scrollbar-gutter: auto;
  }
  .modal-footer {
    bottom: -22px;
    margin: 18px -18px -22px;
    padding: 14px 18px 20px;
  }
  .modal .school-bar {
    padding-top: 0;
  }
  .modal .package-grid {
    margin: 17px 0;
  }
  .modal .package {
    padding: 13px 9px;
  }
  .modal .package h3 {
    font-size: 12px;
  }
  .record-actions .btn {
    flex-grow: 1;
  }
  .contact-box > :first-child {
    min-width: 0;
  }
  .contact-box > .btn {
    flex-shrink: 0;
  }
  .panel-head {
    align-items: start;
  }
  .panel-head > .badge {
    flex-shrink: 0;
  }
  .agent-shortcuts {
    gap: 8px;
    margin-bottom: 18px;
  }
  .agent-shortcuts > .btn {
    flex: 1 1 auto;
    font-size: 12px;
    padding: 10px 12px;
  }
  .filter-field {
    flex: 1 1 calc(50% - 10px);
    min-width: 0;
    max-width: 100%;
  }
  .filter-field label,
  .filter-check {
    font-size: 11px;
  }
  .filter-check {
    min-height: 44px;
  }
  .action-table th:last-child,
  .action-table td:last-child {
    position: static;
    box-shadow: none;
  }
  .rule-list > div {
    gap: 14px;
  }
  .rule-list > div > :first-child {
    flex-shrink: 0;
  }
  .rule-list > div > :last-child {
    text-align: right;
  }
  .dash-top > .row {
    min-width: 0;
  }
  .stat-value {
    font-size: clamp(22px, 6.8vw, 27px);
  }
}
@media (max-width: 360px) {
  .topbar {
    padding-left: 16px;
    padding-right: 16px;
  }
  .topbar .brand small {
    letter-spacing: 1px;
    font-size: 8px;
  }
  .gender-open {
    padding: 18px 12px 13px;
  }
  .gender-open .gender-illustration {
    right: 10px;
    font-size: 30px;
  }
  .gender-card h3 {
    font-size: 16px;
  }
  .modal-head,
  .modal-body {
    padding-left: 14px;
    padding-right: 14px;
  }
  .modal-footer {
    margin-left: -14px;
    margin-right: -14px;
    padding-left: 14px;
    padding-right: 14px;
  }
  .modal .package-grid {
    gap: 6px;
  }
  .modal .package {
    padding: 12px 7px;
  }
  .modal .price {
    font-size: 20px;
  }
  .dash-main {
    padding-left: 14px;
    padding-right: 14px;
  }
  .dash-heading {
    gap: 12px;
  }
  .dash-heading h2 {
    font-size: 21px;
  }
  .stat {
    padding: 13px;
  }
  .disclaimer {
    flex-wrap: wrap;
    gap: 5px 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .spinner,
  .skeleton {
    animation: none;
  }
  #toast {
    transition: none;
  }
}

/* Compact discovery layout and in-context publishing drawer. */
.home-hero--compact {
  min-height: 126px;
  margin-bottom: 18px;
  grid-template-columns: minmax(0, 1fr);
}
.home-hero--compact h1 {
  font-size: 32px;
  line-height: 1.35;
  letter-spacing: 0;
}
.home-hero--compact .eyebrow {
  margin-bottom: 8px;
  font-size: 9px;
}
.home-hero--compact .hero-sub {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.7;
}
.home-hero--compact .hero-foot {
  margin-top: 12px;
  font-size: 10px;
}
.home-hero--compact .hero-art {
  position: absolute;
  width: 300px;
  height: 250px;
  top: -48px;
  right: 3%;
  transform: scale(.57);
  transform-origin: right center;
}
.home-school-row {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0 13px;
  margin: 0 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffdf9;
  color: var(--ink);
  text-align: left;
}
.home-school-row .school-label {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 13px;
}
.home-school-row .school-name {
  flex: 1;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-school-row .school-switch {
  margin-left: auto;
  padding: 0 0 0 11px;
  min-height: 44px;
  background: transparent;
  font-size: 12px;
}
.discovery-boxes > .school-context {
  margin-top: 9px;
  margin-bottom: 14px;
  font-size: 12px;
}
.gender-card-body {
  padding: 13px 20px 0;
}
.gender-card-body .tagline {
  display: block;
  margin-bottom: 5px;
}
.gender-card-body h3 {
  font-size: 20px;
}
.gender-card-body p {
  font-size: 13px;
  margin-top: 4px;
}
.gender-art {
  height: 104px;
  display: grid;
  place-items: center;
  margin: 0 -7px 4px;
  pointer-events: none;
}
.gender-art img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 210px;
  object-fit: contain;
}
.gender-extract {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 52px;
  width: 100%;
  margin-top: 15px;
  padding: 12px 8px;
  border-radius: 9px;
  background: var(--green);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}
.female .gender-extract {
  background: #b65340;
}
.gender-card-body .gender-publish {
  margin-top: 4px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: #637362;
  font-size: 13px;
}
.female .gender-card-body .gender-publish {
  color: #987668;
}
.gender-card-body .gender-publish:hover {
  background: #ffffff42;
}
.publish-modal {
  max-width: 660px;
}
.publish-modal .page-head {
  margin: 0 0 15px;
}
.publish-modal .page-head .eyebrow {
  display: none;
}
.publish-modal .page-head h2 {
  font-size: 19px;
}
.publish-modal .page-head p {
  margin-top: 5px;
  font-size: 12px;
}
.publish-modal .form-panel {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  margin: 0;
}
.publish-modal .form-panel > .notice:first-child {
  margin-top: 0;
}
.publish-modal .form-section-title {
  margin-top: 20px;
  margin-bottom: 15px;
}
.publish-modal .form-actions {
  padding-bottom: env(safe-area-inset-bottom);
}
.publish-modal .form-actions > .btn {
  min-height: 50px;
}
@media (max-width: 760px) {
  .home-hero--compact {
    min-height: 112px;
    margin-bottom: 15px;
  }
  .home-hero--compact h1 {
    font-size: 26px;
    line-height: 1.4;
    white-space: normal;
  }
  .home-hero--compact .eyebrow {
    font-size: 8px;
    margin-bottom: 7px;
  }
  .home-hero--compact .hero-sub {
    max-width: 240px;
    font-size: 13px;
    margin-top: 6px;
  }
  .home-hero--compact .hero-foot {
    font-size: 9px;
    margin-top: 9px;
  }
  .home-hero--compact .hero-art {
    top: -55px;
    right: 0;
    transform: scale(.42);
  }
  .home-school-row {
    min-height: 46px;
    padding: 0 11px;
    gap: 7px;
    margin-bottom: 11px;
  }
  .gender-card-body {
    padding: 9px 12px 0;
  }
  .gender-card-body .tagline {
    font-size: 8px;
    margin-bottom: 4px;
  }
  .gender-card-body h3 {
    font-size: 18px;
  }
  .gender-card-body p {
    font-size: 13px;
    margin-top: 4px;
  }
  .gender-art {
    height: 90px;
    margin-bottom: 5px;
  }
  .gender-extract {
    min-height: 52px;
    margin-top: 13px;
    font-size: 14px;
  }
  .gender-card-body .gender-publish {
    font-size: 13px;
    padding: 9px 3px;
  }
  .modal-backdrop:has(.publish-modal) {
    align-items: end;
    padding: max(12px, env(safe-area-inset-top)) 0 0;
  }
  .publish-modal {
    max-width: none;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - max(32px, env(safe-area-inset-top)));
    border-radius: 20px 20px 0 0;
  }
  .publish-modal .modal-body {
    padding-bottom: max(22px, env(safe-area-inset-bottom));
  }
  .publish-modal .form-grid {
    grid-template-columns: 1fr;
  }
  .publish-modal input,
  .publish-modal select,
  .publish-modal textarea {
    scroll-margin-block: 20px;
  }
}
@media (max-width: 360px) {
  .home-hero--compact h1 {
    font-size: 24px;
  }
  .home-hero--compact .hero-sub {
    max-width: 216px;
    font-size: 13px;
  }
  .home-hero--compact .hero-art {
    right: -6px;
    transform: scale(.34);
  }
  .home-school-row .school-label {
    font-size: 13px;
  }
  .gender-card-body {
    padding-left: 10px;
    padding-right: 10px;
  }
  .gender-card-body h3 {
    font-size: 16px;
  }
  .gender-card-body p {
    font-size: 13px;
  }
  .gender-extract {
    padding-left: 5px;
    padding-right: 5px;
    font-size: 14px;
  }
}
@media (max-width: 760px) and (max-height: 650px) {
  .home-hero--compact {
    min-height: 80px;
    margin-bottom: 8px;
  }
  .home-hero--compact .hero-art {
    top: -70px;
    transform: scale(.3);
  }
  .discovery-boxes > .section-head {
    margin-bottom: 8px;
  }
  .gender-card-body .gender-art {
    height: 70px;
  }
  .gender-extract {
    margin-top: 10px;
  }
}
