:root {
  --ink: #14212b;
  --muted: #687780;
  --line: #dce3e5;
  --surface: #ffffff;
  --background: #f3f6f5;
  --navy: #173b57;
  --navy-soft: #e8f0f5;
  --green: #16745f;
  --green-soft: #e5f3ee;
  --coral: #d85c3f;
  --coral-soft: #fbece7;
  --amber: #9a650a;
  --amber-soft: #fff3d6;
  --danger: #b83f36;
  --shadow: 0 6px 20px rgba(20, 33, 43, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  overflow-x: hidden;
  background: #dde4e3;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--background);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button {
  color: inherit;
}

button,
a,
label,
select {
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--background);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  padding: 8px 18px;
  border-bottom: 1px solid rgba(220, 227, 229, 0.9);
  background: rgba(255, 255, 255, 0.96);
}

.brand-button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  color: var(--navy);
  font-size: 18px;
  line-height: 1.1;
}

.brand-copy small {
  color: var(--muted);
  font-size: 11px;
}

.icon-button {
  position: relative;
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
}

.icon-button svg {
  width: 19px;
  height: 19px;
}

.notification-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 7px;
  height: 7px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--coral);
}

.main-content {
  width: 100%;
  max-width: 1120px;
  min-height: calc(100vh - 142px);
  margin: 0 auto;
  padding: 18px 16px calc(94px + env(safe-area-inset-bottom));
}

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 35;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  height: calc(72px + env(safe-area-inset-bottom));
  padding: 7px 8px env(safe-area-inset-bottom);
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
}

.nav-item {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  border: 0;
  background: transparent;
  color: #75828a;
  font-size: 11px;
  cursor: pointer;
}

.nav-item > svg {
  width: 21px;
  height: 21px;
}

.nav-item.active {
  color: var(--green);
  font-weight: 650;
}

.nav-primary {
  overflow: visible;
}

.nav-primary-icon {
  display: grid;
  width: 46px;
  height: 38px;
  margin-top: -19px;
  place-items: center;
  border: 4px solid var(--background);
  border-radius: 8px;
  background: var(--coral);
  color: #fff;
  box-shadow: 0 5px 14px rgba(216, 92, 63, 0.25);
}

.nav-primary-icon svg {
  width: 20px;
  height: 20px;
}

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 2px 0 18px;
}

.page-header h1,
.section-heading h2,
.form-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.3;
}

.page-header p,
.form-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.status-pill,
.level-tag,
.category-tag,
.draft-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 650;
}

.status-pill {
  background: var(--green-soft);
  color: var(--green);
}

.status-pill::before {
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.campaign-panel {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow);
}

.campaign-copy {
  padding: 22px 20px 18px;
}

.campaign-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
  color: #b9d1df;
  font-size: 12px;
  font-weight: 650;
}

.campaign-kicker svg {
  width: 15px;
  height: 15px;
}

.campaign-panel h1 {
  max-width: 520px;
  margin: 0;
  font-size: 26px;
  line-height: 1.35;
}

.campaign-panel p {
  max-width: 620px;
  margin: 9px 0 18px;
  color: #d5e2e9;
  line-height: 1.7;
}

.campaign-actions,
.form-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 650;
  cursor: pointer;
}

.button svg {
  width: 17px;
  height: 17px;
}

.button-primary {
  background: var(--coral);
  color: #fff;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.button-outline {
  border-color: var(--line);
  background: #fff;
  color: var(--navy);
}

.button-quiet {
  min-height: 36px;
  padding: 6px 10px;
  background: var(--navy-soft);
  color: var(--navy);
}

.button-block {
  width: 100%;
}

.campaign-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.campaign-stat {
  padding: 14px 10px;
  text-align: center;
}

.campaign-stat + .campaign-stat {
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.campaign-stat strong,
.campaign-stat span {
  display: block;
}

.campaign-stat strong {
  font-size: 20px;
}

.campaign-stat span {
  margin-top: 2px;
  color: #b9d1df;
  font-size: 11px;
}

.home-grid,
.profile-grid {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.panel,
.school-card,
.application-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.panel {
  padding: 18px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-heading h2 {
  font-size: 17px;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 5px;
  border: 0;
  background: transparent;
  color: var(--green);
  font-weight: 650;
  cursor: pointer;
}

.text-button svg {
  width: 16px;
  height: 16px;
}

.process-list,
.notice-list,
.profile-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 11px;
  padding: 9px 0;
}

.process-number {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-size: 12px;
  font-weight: 750;
}

.process-item strong,
.process-item span {
  display: block;
}

.process-item strong {
  margin: 1px 0 3px;
}

.process-item span,
.notice-item span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.school-preview-list {
  display: grid;
  gap: 10px;
}

.school-preview {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 0;
  border: 0;
  border-bottom: 1px solid #edf1f2;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.school-preview:last-child {
  border-bottom: 0;
}

.school-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 6px;
  background: var(--navy-soft);
  color: var(--navy);
  font-size: 17px;
  font-weight: 750;
}

.school-preview strong,
.school-preview small {
  display: block;
}

.school-preview small {
  margin-top: 4px;
  color: var(--muted);
}

.school-preview > svg {
  width: 17px;
  color: #98a4aa;
}

.notice-item,
.profile-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid #edf1f2;
}

.notice-item:last-child,
.profile-row:last-child {
  border-bottom: 0;
}

.notice-icon,
.profile-icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border-radius: 6px;
  background: var(--coral-soft);
  color: var(--coral);
}

.notice-icon svg,
.profile-icon svg {
  width: 18px;
  height: 18px;
}

.notice-item strong,
.notice-item span {
  display: block;
}

.search-toolbar {
  position: sticky;
  top: 66px;
  z-index: 20;
  padding: 10px 0 12px;
  background: var(--background);
}

.search-box {
  position: relative;
}

.search-box > svg {
  position: absolute;
  top: 50%;
  left: 13px;
  width: 18px;
  color: var(--muted);
  transform: translateY(-50%);
}

.search-box input {
  width: 100%;
  height: 46px;
  padding: 0 44px 0 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
  background: #fff;
}

.search-box input:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(22, 116, 95, 0.1);
}

.clear-search {
  position: absolute;
  top: 50%;
  right: 8px;
  display: none;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--muted);
  transform: translateY(-50%);
  cursor: pointer;
}

.clear-search.visible {
  display: grid;
}

.clear-search svg {
  width: 17px;
}

.segment-control {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-top: 10px;
  scrollbar-width: none;
}

.segment-control::-webkit-scrollbar {
  display: none;
}

.segment-button {
  min-height: 34px;
  flex: 0 0 auto;
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
}

.segment-button.active {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
  font-weight: 650;
}

.result-meta {
  display: flex;
  justify-content: space-between;
  margin: 4px 1px 12px;
  color: var(--muted);
  font-size: 12px;
}

.school-list {
  display: grid;
  gap: 12px;
}

.school-card {
  overflow: hidden;
}

.school-card-header {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 14px;
  border: 0;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.school-card-header h2 {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
}

.school-card-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.school-card-header > svg {
  width: 19px;
  color: #8f9aa0;
  transition: transform 0.2s;
}

.school-card.expanded .school-card-header > svg {
  transform: rotate(180deg);
}

.school-programs {
  display: none;
  border-top: 1px solid var(--line);
  background: #fbfcfc;
}

.school-card.expanded .school-programs {
  display: block;
}

.program-row {
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.program-row:last-child {
  border-bottom: 0;
}

.program-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 9px;
}

.level-tag {
  background: var(--green-soft);
  color: var(--green);
}

.category-tag {
  background: var(--navy-soft);
  color: var(--navy);
  font-weight: 500;
}

.program-meta span:last-child {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}

.program-majors {
  margin: 0;
  line-height: 1.75;
}

.program-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 11px;
}

.tuition strong {
  color: var(--coral);
  font-size: 17px;
}

.tuition small {
  color: var(--muted);
}

.empty-state {
  display: grid;
  min-height: 260px;
  place-items: center;
  padding: 40px 20px;
  text-align: center;
}

.empty-state svg {
  width: 44px;
  height: 44px;
  margin-bottom: 10px;
  color: #a5afb4;
}

.empty-state h2 {
  margin: 0 0 6px;
  font-size: 17px;
}

.empty-state p {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.form-shell {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

.form-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 0;
  border: 0;
  background: transparent;
  color: var(--navy);
  font-weight: 650;
  cursor: pointer;
}

.back-button svg {
  width: 18px;
}

.draft-pill {
  background: var(--amber-soft);
  color: var(--amber);
}

.stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 20px;
}

.step-item {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  color: #8a969c;
  font-size: 11px;
}

.step-item::before {
  position: absolute;
  top: 13px;
  right: 50%;
  left: -50%;
  height: 2px;
  background: var(--line);
  content: "";
}

.step-item:first-child::before {
  display: none;
}

.step-dot {
  position: relative;
  z-index: 1;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--background);
  font-weight: 700;
}

.step-item.active,
.step-item.done {
  color: var(--green);
  font-weight: 650;
}

.step-item.active .step-dot,
.step-item.done .step-dot {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.step-item.done::before,
.step-item.active::before {
  background: var(--green);
}

.form-panel {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
  padding: 20px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.form-heading {
  margin-bottom: 18px;
}

.form-heading h2 {
  font-size: 19px;
}

.field-grid {
  display: grid;
  min-width: 0;
  max-width: 100%;
  gap: 15px;
}

.field {
  display: grid;
  min-width: 0;
  max-width: 100%;
  gap: 7px;
}

.field label,
.field-label {
  font-weight: 650;
}

.required::after {
  margin-left: 3px;
  color: var(--danger);
  content: "*";
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #cfd8db;
  border-radius: 6px;
  outline: none;
  background: #fff;
  color: var(--ink);
}

.field input,
.field select {
  height: 44px;
  padding: 0 12px;
}

.month-select-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 40px;
  gap: 8px;
}

.month-select-row select {
  padding: 0 9px;
}

.clear-date-button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  align-self: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--navy-soft);
  color: var(--muted);
  cursor: pointer;
}

.clear-date-button svg {
  width: 16px;
  height: 16px;
}

.field textarea {
  min-height: 84px;
  resize: vertical;
  padding: 11px 12px;
  line-height: 1.6;
}

.field small,
.field-error {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.field-error {
  display: none;
  color: var(--danger);
}

.field.invalid input,
.field.invalid select,
.field.invalid textarea {
  border-color: var(--danger);
}

.field.invalid .field-error {
  display: block;
}

.radio-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.radio-option {
  position: relative;
}

.radio-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-option span {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.radio-option input:checked + span {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green);
  font-weight: 650;
}

.upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.upload-tile {
  position: relative;
  display: grid;
  min-height: 132px;
  align-content: center;
  justify-items: center;
  padding: 14px;
  overflow: hidden;
  border: 1px dashed #b8c5ca;
  border-radius: 6px;
  background: #fafcfc;
  text-align: center;
  cursor: pointer;
}

.upload-tile input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.upload-actions {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 12px;
}

.upload-action {
  display: flex;
  min-width: 0;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: var(--navy);
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
}

.upload-action svg {
  width: 15px;
  height: 15px;
}

.upload-content {
  display: grid;
  justify-items: center;
  gap: 6px;
}

.upload-content svg {
  width: 24px;
  height: 24px;
  color: var(--green);
}

.upload-content strong {
  font-size: 13px;
}

.upload-content small {
  color: var(--muted);
  font-size: 11px;
}

.upload-tile.has-file {
  border-style: solid;
  border-color: var(--green);
  background: var(--green-soft);
}

.upload-tile.has-file .upload-content svg {
  color: var(--green);
}

.agreement {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.agreement input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--green);
}

.review-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.review-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid #edf1f2;
}

.review-row dt {
  color: var(--muted);
}

.review-row dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.review-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0 4px;
}

.review-section-title h3 {
  margin: 0;
  font-size: 15px;
}

.form-actions {
  position: sticky;
  bottom: calc(72px + env(safe-area-inset-bottom));
  z-index: 15;
  margin: 14px -16px -20px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
}

.form-actions .button {
  min-width: 0;
  flex: 1 1 100px;
}

.form-actions .button-save {
  flex: 0 1 110px;
}

.form-actions.stacked-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.form-actions.stacked-actions .button {
  width: 100%;
}

.form-actions.stacked-actions .button-primary {
  grid-column: 1 / -1;
  min-height: 46px;
}

.application-card {
  padding: 18px;
}

.application-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.application-top h2 {
  margin: 0;
  font-size: 17px;
}

.application-top p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.application-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
  padding: 14px;
  border-radius: 6px;
  background: #f6f8f8;
}

.application-info small,
.application-info strong {
  display: block;
}

.application-info small {
  margin-bottom: 4px;
  color: var(--muted);
}

.timeline {
  display: grid;
  gap: 0;
  padding: 4px 0 0 4px;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  min-height: 68px;
}

.timeline-item::before {
  position: absolute;
  top: 22px;
  bottom: 0;
  left: 9px;
  width: 2px;
  background: var(--line);
  content: "";
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-dot {
  position: relative;
  z-index: 1;
  width: 20px;
  height: 20px;
  border: 5px solid #fff;
  border-radius: 50%;
  background: #bcc6ca;
  box-shadow: 0 0 0 1px var(--line);
}

.timeline-item.done .timeline-dot,
.timeline-item.current .timeline-dot {
  background: var(--green);
}

.timeline-item.current .timeline-dot {
  box-shadow: 0 0 0 3px var(--green-soft);
}

.timeline-copy strong,
.timeline-copy span {
  display: block;
}

.timeline-copy span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.profile-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
}

.avatar {
  display: grid;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  font-size: 20px;
  font-weight: 750;
}

.profile-hero h1,
.profile-hero p {
  margin: 0;
}

.profile-hero h1 {
  font-size: 19px;
}

.profile-hero p {
  margin-top: 5px;
  color: #c8d9e3;
  font-size: 12px;
}

.profile-row {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #edf1f2;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.profile-row > span:nth-child(2) {
  flex: 1;
}

.profile-row > svg {
  width: 17px;
  color: #98a4aa;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px 0 0;
  background: rgba(11, 24, 32, 0.48);
}

.modal-sheet {
  width: 100%;
  max-width: 640px;
  max-height: 86vh;
  overflow: auto;
  border-radius: 8px 8px 0 0;
  background: #fff;
  box-shadow: 0 -10px 35px rgba(20, 33, 43, 0.16);
}

.modal-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.modal-header h2 {
  margin: 0;
  font-size: 17px;
}

.modal-body {
  padding: 18px;
}

.notification-card {
  display: flex;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid #edf1f2;
}

.notification-card:last-child {
  border-bottom: 0;
}

.notification-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: calc(86px + env(safe-area-inset-bottom));
  left: 16px;
  z-index: 100;
  width: fit-content;
  max-width: calc(100% - 32px);
  margin: auto;
  padding: 10px 14px;
  border-radius: 6px;
  background: rgba(20, 33, 43, 0.94);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.18s, transform 0.18s;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 720px) {
  .topbar {
    padding-right: max(28px, calc((100vw - 1120px) / 2));
    padding-left: max(28px, calc((100vw - 1120px) / 2));
  }

  .main-content {
    padding: 26px 24px 108px;
  }

  .campaign-panel {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

  .campaign-copy {
    padding: 28px 28px 26px;
  }

  .campaign-stats {
    grid-template-columns: 1fr;
    border-top: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.14);
  }

  .campaign-stat {
    display: grid;
    align-content: center;
  }

  .campaign-stat + .campaign-stat {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-left: 0;
  }

  .home-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .home-grid .panel:first-child {
    grid-row: span 2;
  }

  .school-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .school-card.expanded {
    grid-column: 1 / -1;
  }

  .field-grid.two-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field.span-full {
    grid-column: 1 / -1;
  }

  .form-panel {
    padding: 26px;
  }

  .form-actions {
    bottom: 0;
    margin: 18px -26px -26px;
    padding: 14px 26px;
  }

  .profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bottom-nav {
    right: 50%;
    left: auto;
    width: min(560px, 100%);
    transform: translateX(50%);
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 -4px 18px rgba(20, 33, 43, 0.07);
  }

  .modal-backdrop {
    align-items: center;
    padding: 24px;
  }

  .modal-sheet {
    border-radius: 8px;
  }
}

@media (max-width: 380px) {
  .campaign-panel h1 {
    font-size: 23px;
  }

  .campaign-actions .button {
    flex: 1 1 100%;
  }

  .upload-grid {
    grid-template-columns: 1fr;
  }

  .step-item span:last-child {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
