@font-face { font-family: "DM Sans"; src: url("assets/fonts/dm-sans-400.woff2") format("woff2"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("assets/fonts/dm-sans-500.woff2") format("woff2"); font-style: normal; font-weight: 500; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("assets/fonts/dm-sans-600.woff2") format("woff2"); font-style: normal; font-weight: 600; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("assets/fonts/dm-sans-700.woff2") format("woff2"); font-style: normal; font-weight: 700; font-display: swap; }
@font-face { font-family: "Noto Sans SC"; src: url("assets/fonts/noto-sans-sc-400.woff2") format("woff2"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "Noto Sans SC"; src: url("assets/fonts/noto-sans-sc-500.woff2") format("woff2"); font-style: normal; font-weight: 500; font-display: swap; }
@font-face { font-family: "Noto Sans SC"; src: url("assets/fonts/noto-sans-sc-600.woff2") format("woff2"); font-style: normal; font-weight: 600; font-display: swap; }
@font-face { font-family: "Noto Sans SC"; src: url("assets/fonts/noto-sans-sc-700.woff2") format("woff2"); font-style: normal; font-weight: 700; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("assets/fonts/source-serif-4-600.woff2") format("woff2"); font-style: normal; font-weight: 600; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("assets/fonts/source-serif-4-700.woff2") format("woff2"); font-style: normal; font-weight: 700; font-display: swap; }

:root {
  --ink: #17211f;
  --ink-soft: #47514f;
  --muted: #6f7775;
  --line: #dce2df;
  --line-strong: #c8d0cc;
  --paper: #ffffff;
  --canvas: #f4f7f5;
  --canvas-deep: #eaf0ed;
  --forest: #123c35;
  --forest-2: #1b5a4f;
  --mint: #dff0e8;
  --red: #b74334;
  --red-soft: #f8e7e3;
  --gold: #b48638;
  --gold-soft: #f5ecd9;
  --blue: #2f648c;
  --blue-soft: #e3eef6;
  --shadow-sm: 0 2px 9px rgba(20, 47, 41, 0.06);
  --shadow-md: 0 14px 35px rgba(20, 47, 41, 0.12);
  --sidebar-width: 248px;
  --topbar-height: 68px;
  --content-max: 1440px;
  font-family: "DM Sans", "Noto Sans SC", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--canvas);
}

button,
input,
select,
textarea {
  font: inherit;
}

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

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

svg {
  display: block;
}

.boot-screen {
  min-height: 100vh;
  display: grid;
  place-content: center;
  gap: 18px;
  background: var(--forest);
}

.boot-mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border: 1px solid rgba(255,255,255,.42);
  color: white;
  font-family: "Source Serif 4", serif;
  font-size: 31px;
}

.boot-line {
  width: 140px;
  height: 2px;
  overflow: hidden;
  background: rgba(255,255,255,.18);
}

.boot-line span {
  display: block;
  width: 48%;
  height: 100%;
  background: #e3bd71;
  animation: boot 1.1s ease-in-out infinite alternate;
}

@keyframes boot {
  from { transform: translateX(-100%); }
  to { transform: translateX(220%); }
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: fixed;
  z-index: 40;
  top: 0;
  right: 0;
  left: 0;
  height: var(--topbar-height);
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(260px, 720px) 1fr auto auto;
  align-items: center;
  gap: 18px;
  padding: 0 22px 0 0;
  border-bottom: 1px solid rgba(255,255,255,.13);
  color: white;
  background: var(--forest);
}

.brand {
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  border-right: 1px solid rgba(255,255,255,.13);
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.6);
  font-family: "Source Serif 4", serif;
  font-size: 21px;
  font-weight: 700;
}

.brand-word {
  line-height: 1.05;
}

.brand-word strong {
  display: block;
  font-family: "Source Serif 4", serif;
  font-size: 19px;
  letter-spacing: 0;
}

.brand-word span {
  display: block;
  margin-top: 4px;
  color: rgba(255,255,255,.66);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.global-search {
  position: relative;
  min-width: 0;
}

.global-search .search-icon {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 13px;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: rgba(255,255,255,.68);
  pointer-events: none;
}

.global-search input {
  width: 100%;
  height: 40px;
  padding: 0 42px 0 40px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 4px;
  outline: none;
  color: white;
  background: rgba(255,255,255,.08);
  transition: border-color .18s ease, background .18s ease;
}

.global-search input::placeholder {
  color: rgba(255,255,255,.58);
}

.global-search input:focus {
  border-color: rgba(255,255,255,.52);
  background: rgba(255,255,255,.13);
}

.search-shortcut {
  position: absolute;
  top: 50%;
  right: 9px;
  padding: 3px 6px;
  transform: translateY(-50%);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 3px;
  color: rgba(255,255,255,.55);
  font-size: 11px;
  line-height: 1;
}

.topbar-spacer {
  min-width: 0;
}

.language-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 5px;
  background: rgba(0,0,0,.08);
}

.language-switch button {
  min-width: 38px;
  height: 29px;
  padding: 0 9px;
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  color: rgba(255,255,255,.68);
  background: transparent;
  font-size: 11px;
  font-weight: 700;
}

.language-switch button:hover,
.language-switch button.active {
  color: var(--forest);
  background: white;
}

.top-consult {
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid #e3bd71;
  border-radius: 4px;
  color: var(--forest);
  background: #e3bd71;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.top-consult:hover {
  background: #f0cd88;
}

.top-consult svg,
.mobile-menu-button svg {
  width: 17px;
  height: 17px;
}

.mobile-menu-button {
  display: none;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 4px;
  color: white;
  background: transparent;
  cursor: pointer;
}

.sidebar {
  position: fixed;
  z-index: 35;
  top: var(--topbar-height);
  bottom: 0;
  left: 0;
  width: var(--sidebar-width);
  overflow: auto;
  padding: 18px 14px 28px;
  border-right: 1px solid var(--line);
  background: var(--paper);
}

.nav-group + .nav-group {
  margin-top: 24px;
}

.nav-heading {
  margin: 0 9px 7px;
  color: #929a97;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
}

.nav-link {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 10px;
  border-radius: 4px;
  color: #3e4b48;
  font-size: 13px;
  font-weight: 500;
  transition: background .15s ease, color .15s ease;
}

.nav-link:hover {
  color: var(--forest);
  background: #eff4f1;
}

.nav-link.active {
  color: white;
  background: var(--forest);
}

.nav-link svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.nav-badge {
  min-width: 20px;
  margin-left: auto;
  padding: 2px 5px;
  border-radius: 9px;
  color: var(--forest);
  background: var(--mint);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}

.nav-link.active .nav-badge {
  color: var(--forest);
  background: white;
}

.sidebar-foot {
  margin: 28px 8px 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.sidebar-foot p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.main {
  min-height: 100vh;
  margin-left: var(--sidebar-width);
  padding-top: var(--topbar-height);
}

.content {
  width: min(100%, var(--content-max));
  margin: 0 auto;
  padding: 32px 34px 64px;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.page-head-copy {
  min-width: 0;
}

.kicker {
  margin: 0 0 8px;
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .09em;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  font-family: "Source Serif 4", "Noto Sans SC", serif;
  letter-spacing: 0;
}

.page-head h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.16;
}

.page-head p:not(.kicker) {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.65;
}

.button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.button:hover {
  transform: translateY(-1px);
}

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

.button-primary {
  color: white;
  background: var(--forest);
}

.button-primary:hover {
  background: var(--forest-2);
}

.button-secondary {
  border-color: var(--line-strong);
  color: var(--forest);
  background: var(--paper);
}

.button-secondary:hover {
  border-color: var(--forest);
}

.button-quiet {
  border-color: transparent;
  color: var(--forest);
  background: transparent;
}

.button-danger-quiet {
  color: var(--red);
  background: var(--red-soft);
}

.icon-button {
  width: 36px;
  height: 36px;
  display: inline-grid;
  flex: 0 0 36px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
  color: var(--ink-soft);
  background: var(--paper);
}

.icon-button:hover,
.icon-button.active {
  border-color: var(--forest);
  color: var(--forest);
  background: var(--mint);
}

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

.home-intro {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(290px, .75fr);
  gap: 28px;
  min-height: 330px;
  padding: 36px;
  border-radius: 6px;
  color: white;
  background:
    linear-gradient(105deg, rgba(18,60,53,.98) 0%, rgba(18,60,53,.95) 54%, rgba(24,78,68,.8) 100%),
    url("assets/universities/zhejiang_sci_tech_university.jpg") center right / 430px auto no-repeat;
  box-shadow: var(--shadow-md);
}

.home-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(90deg, black, transparent 75%);
}

.home-intro-main,
.home-intro-side {
  position: relative;
  z-index: 1;
}

.home-intro h1 {
  max-width: 700px;
  margin: 0;
  font-size: 40px;
  line-height: 1.12;
}

.home-intro .lead {
  max-width: 680px;
  margin: 15px 0 0;
  color: rgba(255,255,255,.76);
  font-size: 15px;
  line-height: 1.65;
}

.hero-search {
  position: relative;
  max-width: 760px;
  margin-top: 26px;
}

.hero-search svg {
  position: absolute;
  top: 50%;
  left: 15px;
  width: 19px;
  height: 19px;
  transform: translateY(-50%);
  color: var(--forest);
}

.hero-search input {
  width: 100%;
  height: 50px;
  padding: 0 110px 0 46px;
  border: 0;
  border-radius: 4px;
  outline: none;
  color: var(--ink);
  background: white;
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
}

.hero-search button {
  position: absolute;
  top: 6px;
  right: 6px;
  height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  color: white;
  background: var(--red);
  font-size: 12px;
  font-weight: 800;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.hero-actions .button {
  border-color: rgba(255,255,255,.28);
  color: white;
  background: rgba(255,255,255,.08);
}

.hero-actions .button:hover {
  background: rgba(255,255,255,.16);
}

.home-intro-side {
  align-self: stretch;
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 5px;
  background: rgba(2,25,21,.24);
  backdrop-filter: blur(8px);
}

.stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 19px 21px;
  border-bottom: 1px solid rgba(255,255,255,.14);
}

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

.stat-row strong {
  font-family: "Source Serif 4", serif;
  font-size: 31px;
}

.stat-row span {
  color: rgba(255,255,255,.66);
  font-size: 12px;
  text-align: right;
}

.source-banner {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 16px;
  padding: 13px 15px;
  border: 1px solid #d7e4de;
  border-radius: 5px;
  color: #3d4e49;
  background: #edf5f1;
  font-size: 12px;
  line-height: 1.55;
}

.source-banner svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  margin-top: 1px;
  color: var(--forest-2);
}

.section {
  margin-top: 40px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 15px;
}

.section-head h2 {
  margin: 0;
  font-size: 24px;
}

.section-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--forest);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.section-link svg {
  width: 15px;
  height: 15px;
}

.discipline-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.discipline-card {
  position: relative;
  min-height: 132px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.discipline-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 9px 24px rgba(20,47,41,.1);
}

.discipline-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 4px;
  background: var(--card-accent, var(--forest));
}

.discipline-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  color: var(--card-accent, var(--forest));
  background: var(--card-soft, var(--mint));
}

.discipline-icon svg {
  width: 18px;
  height: 18px;
}

.discipline-card h3 {
  margin: 15px 20px 0 0;
  font-size: 14px;
  line-height: 1.35;
}

.discipline-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
}

.tone-coral { --card-accent: #b54d3f; --card-soft: #f8e7e3; }
.tone-teal { --card-accent: #167065; --card-soft: #dff0e8; }
.tone-gold { --card-accent: #a6772b; --card-soft: #f5ecd9; }
.tone-blue { --card-accent: #2f648c; --card-soft: #e3eef6; }
.tone-plum { --card-accent: #795176; --card-soft: #f0e5ef; }
.tone-red { --card-accent: #943a3a; --card-soft: #f5e2e2; }
.tone-pink { --card-accent: #a74d72; --card-soft: #f6e4ec; }
.tone-mint { --card-accent: #43826c; --card-soft: #e1f0e9; }
.tone-cyan { --card-accent: #32798a; --card-soft: #e1f1f3; }
.tone-green { --card-accent: #527a3d; --card-soft: #e8f0df; }
.tone-clay { --card-accent: #965e43; --card-soft: #f1e5df; }

.priority-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.university-card {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.university-card:hover {
  transform: translateY(-2px);
  border-color: #bdcbc5;
  box-shadow: 0 9px 24px rgba(20,47,41,.1);
}

.university-card-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.university-logo {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--forest);
  background: white;
  font-family: "Source Serif 4", serif;
  font-size: 22px;
  font-weight: 700;
}

.university-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.university-title {
  min-width: 0;
  flex: 1;
  padding-right: 28px;
}

.university-title h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
}

.university-title .secondary-name {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.card-bookmark {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border-color: transparent;
  background: transparent;
}

.card-bookmark:hover,
.card-bookmark.active {
  border-color: var(--line);
}

.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 14px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 7px;
  border: 1px solid #dce5e1;
  border-radius: 3px;
  color: #4c5b57;
  background: #f3f7f5;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
}

.university-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 15px;
  color: var(--muted);
  font-size: 11px;
}

.university-meta svg {
  width: 14px;
  height: 14px;
}

.card-open {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 14px;
  color: var(--forest);
  font-size: 11px;
  font-weight: 800;
}

.card-open svg {
  width: 14px;
  height: 14px;
}

.process-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.process-item {
  position: relative;
  min-height: 132px;
  padding: 18px 17px 17px;
  border-right: 1px solid var(--line);
}

.process-item:last-child {
  border-right: 0;
}

.process-number {
  color: var(--red);
  font-family: "Source Serif 4", serif;
  font-size: 20px;
  font-weight: 700;
}

.process-item h3 {
  margin: 11px 0 6px;
  font-size: 13px;
}

.process-item p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 220px 190px auto;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.field-control {
  position: relative;
}

.field-control > svg {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 12px;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  color: #78827f;
  pointer-events: none;
}

.field-control input,
.field-control select,
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  outline: none;
  color: var(--ink);
  background: white;
}

.field-control input,
.field-control select {
  height: 40px;
  padding: 0 12px 0 37px;
}

.field-control select {
  appearance: none;
  padding-right: 30px;
}

.field-control input:focus,
.field-control select:focus,
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--forest-2);
  box-shadow: 0 0 0 3px rgba(27,90,79,.1);
}

.filter-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 17px 0 12px;
}

.result-count {
  color: var(--ink-soft);
  font-size: 12px;
}

.result-count strong {
  color: var(--ink);
  font-size: 15px;
}

.university-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.page-status {
  min-width: 80px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.empty-state {
  min-height: 300px;
  display: grid;
  place-items: center;
  padding: 40px;
  border: 1px dashed var(--line-strong);
  border-radius: 5px;
  text-align: center;
  background: rgba(255,255,255,.55);
}

.empty-state-inner {
  max-width: 410px;
}

.empty-state-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  border-radius: 50%;
  color: var(--forest);
  background: var(--mint);
}

.empty-state-icon svg {
  width: 21px;
  height: 21px;
}

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

.empty-state p {
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.program-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 16px;
}

.program-categories {
  align-self: start;
  position: sticky;
  top: calc(var(--topbar-height) + 20px);
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
  box-shadow: var(--shadow-sm);
}

.program-category-button {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 9px;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  color: var(--ink-soft);
  background: transparent;
  text-align: left;
  font-size: 11px;
}

.program-category-button:hover,
.program-category-button.active {
  color: var(--forest);
  background: #edf4f1;
}

.program-category-button svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.program-category-button span {
  min-width: 0;
  flex: 1;
}

.program-category-button strong {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 10px;
}

.program-panel {
  min-width: 0;
}

.program-search {
  margin-bottom: 10px;
}

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

.program-row {
  min-height: 62px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: white;
  transition: border-color .15s ease, transform .15s ease;
}

.program-row.has-category {
  align-items: center;
}

.program-row:hover {
  border-color: #b9c7c1;
  transform: translateY(-1px);
}

.program-index {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  border-radius: 3px;
  color: var(--forest);
  background: var(--mint);
  font-size: 10px;
  font-weight: 800;
}

.program-name {
  display: block;
  min-width: 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.program-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}

.program-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 5px;
}

.program-category-chip {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  max-width: 100%;
  padding: 4px 8px;
  border: 1px solid color-mix(in srgb, var(--card-accent, #167065) 18%, transparent);
  border-radius: 999px;
  color: color-mix(in srgb, var(--card-accent, #167065) 82%, #102520);
  background: color-mix(in srgb, var(--card-soft, #dff0e8) 70%, white);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
  white-space: normal;
}

.program-subline {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 12px;
}

.program-category-inline {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  max-width: 100%;
  padding: 3px 8px;
  border: 1px solid color-mix(in srgb, var(--card-accent, #167065) 14%, transparent);
  border-radius: 999px;
  gap: 4px;
  min-width: 0;
  color: color-mix(in srgb, var(--card-accent, #167065) 70%, #233832);
  background: color-mix(in srgb, var(--card-soft, #dff0e8) 52%, white);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

.program-category-dot {
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  border-radius: 999px;
  background: var(--card-accent, #167065);
  opacity: .72;
}

.program-open {
  width: 30px;
  height: 30px;
  display: grid;
  flex: 0 0 30px;
  place-items: center;
  align-self: center;
  border-radius: 3px;
  color: var(--muted);
}

.program-row:hover .program-open {
  color: var(--forest);
  background: var(--canvas-deep);
}

.program-open svg {
  width: 15px;
  height: 15px;
}

.detail-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 11px;
}

.detail-breadcrumb a:hover {
  color: var(--forest);
}

.detail-breadcrumb svg {
  width: 13px;
  height: 13px;
}

.university-hero {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--forest);
  border-radius: 5px;
  background: white;
  box-shadow: var(--shadow-sm);
}

.university-hero-logo {
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
  font-family: "Source Serif 4", serif;
  font-size: 36px;
}

.university-hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 7px;
}

.university-hero h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
}

.university-hero .hero-secondary-name {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 14px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 11px;
}

.hero-meta svg {
  width: 14px;
  height: 14px;
  color: var(--forest-2);
}

.university-hero-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, .7fr);
  gap: 16px;
  margin-top: 16px;
}

.detail-loading {
  min-height: 280px;
  display: grid;
  align-content: start;
  gap: 14px;
  margin-top: 14px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
  box-shadow: var(--shadow-sm);
}

.detail-loading span {
  display: block;
  height: 18px;
  border-radius: 3px;
  background: linear-gradient(90deg, #edf1ef 0%, #f8faf9 46%, #edf1ef 100%);
  background-size: 220% 100%;
  animation: detail-loading 1.2s ease-in-out infinite;
}

.detail-loading span:nth-child(1) { width: 46%; height: 28px; }
.detail-loading span:nth-child(2) { width: 94%; }
.detail-loading span:nth-child(3) { width: 88%; }
.detail-loading span:nth-child(4) { width: 72%; }

@keyframes detail-loading {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

.university-section-nav {
  position: sticky;
  z-index: 20;
  top: calc(var(--topbar-height) + 8px);
  overflow-x: auto;
  display: flex;
  gap: 4px;
  margin-top: 12px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255,255,255,.96);
  box-shadow: var(--shadow-sm);
  scrollbar-width: thin;
}

.university-section-nav a {
  min-height: 33px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  padding: 6px 10px;
  border-radius: 3px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.university-section-nav a:hover,
.university-section-nav a.active {
  color: white;
  background: var(--forest);
}

.synced-content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 16px;
  margin-top: 14px;
}

.content-document {
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
  box-shadow: var(--shadow-sm);
}

.source-language-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 22px;
  padding: 13px 14px;
  border: 1px solid #d7e4de;
  border-radius: 4px;
  color: var(--ink-soft);
  background: #edf5f1;
}

.source-language-note > svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-top: 1px;
  color: var(--forest-2);
}

.source-language-note strong {
  display: block;
  color: var(--forest);
  font-size: 11px;
}

.source-language-note p {
  margin: 3px 0 0;
  font-size: 11px;
  line-height: 1.55;
}

.source-language-note.translated {
  border-color: #b8d7ca;
  background: #e6f3eb;
}

.content-document-head {
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.content-document-head h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.25;
}

.program-copy small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.35;
}

.program-secondary-name {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.content-heading {
  margin: 25px 0 9px;
  padding-left: 11px;
  border-left: 3px solid var(--red);
  color: var(--ink);
  font-family: "Source Serif 4", "Noto Sans SC", serif;
  font-size: 18px;
  line-height: 1.35;
}

.content-paragraph {
  margin: 9px 0;
  color: #3f4b48;
  font-size: 13px;
  line-height: 1.75;
}

.content-list {
  display: grid;
  gap: 8px;
  margin: 11px 0 18px;
  padding-left: 21px;
  color: #3f4b48;
  font-size: 13px;
  line-height: 1.65;
}

.content-table-wrap {
  overflow-x: auto;
  margin: 14px 0 22px;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.content-table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  background: white;
  font-size: 11px;
}

.content-table th,
.content-table td {
  padding: 10px 11px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.45;
}

.content-table th:last-child,
.content-table td:last-child {
  border-right: 0;
}

.content-table tr:last-child td {
  border-bottom: 0;
}

.content-table th {
  color: var(--forest);
  background: #eef4f1;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.content-empty {
  min-height: 180px;
  display: grid;
  place-items: center;
  padding: 30px;
  border: 1px dashed var(--line-strong);
  border-radius: 4px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.synced-content-aside {
  align-self: start;
  position: sticky;
  top: calc(var(--topbar-height) + 66px);
  display: grid;
  gap: 12px;
}

.synced-content-aside .consult-callout {
  margin: 0;
}

.aside-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
  box-shadow: var(--shadow-sm);
}

.aside-stat strong {
  color: var(--forest);
  font-family: "Source Serif 4", serif;
  font-size: 26px;
}

.aside-stat span {
  color: var(--muted);
  font-size: 10px;
  text-align: right;
}

.aside-full-button {
  width: 100%;
}

.synced-gallery {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.synced-gallery h3 {
  margin: 0 0 12px;
  font-family: "Source Serif 4", "Noto Sans SC", serif;
  font-size: 18px;
}

.synced-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.synced-gallery-grid button {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: zoom-in;
  background: var(--canvas-deep);
}

.synced-gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .2s ease;
}

.synced-gallery-grid button:hover img {
  transform: scale(1.035);
}

.synced-gallery-grid button span {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 3px;
  color: white;
  background: rgba(18,60,53,.82);
}

.synced-gallery-grid svg {
  width: 13px;
  height: 13px;
}

.image-modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  place-items: center;
  padding: 56px 24px 24px;
  color: white;
  background: rgba(6,18,15,.92);
  cursor: zoom-out;
}

.image-modal > button {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 4px;
  cursor: pointer;
  color: white;
  background: rgba(255,255,255,.08);
}

.image-modal > button svg {
  width: 18px;
  height: 18px;
}

.image-modal img {
  max-width: min(1100px, 94vw);
  max-height: 78vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}

.image-modal p {
  margin: 14px 0 0;
  color: rgba(255,255,255,.7);
  font-size: 11px;
  text-align: center;
}

.program-hero {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--card-accent, var(--forest));
  border-radius: 5px;
  background: white;
  box-shadow: var(--shadow-sm);
}

.program-hero-icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  color: var(--card-accent, var(--forest));
  background: var(--card-soft, var(--mint));
}

.program-hero-icon svg {
  width: 30px;
  height: 30px;
}

.program-hero .kicker {
  margin-bottom: 5px;
}

.program-hero h1 {
  margin: 0;
  font-family: "Source Serif 4", "Noto Sans SC", serif;
  font-size: 31px;
  line-height: 1.2;
}

.panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
  box-shadow: var(--shadow-sm);
}

.panel + .panel {
  margin-top: 12px;
}

.panel h2 {
  margin: 0;
  font-size: 20px;
}

.panel h3 {
  margin: 0;
  font-size: 14px;
}

.panel > p {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
}

.facts-block {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.facts-block h3 {
  margin: 0 0 10px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.fact-grid div {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #f6f8f7;
}

.fact-grid dt {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.3;
}

.fact-grid dd {
  margin: 5px 0 0;
  color: var(--forest);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.5;
}

.check-list svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin-top: 1px;
  color: var(--forest-2);
}

.source-card {
  padding: 18px;
  border: 1px solid #d7e4de;
  border-radius: 5px;
  background: #eff5f2;
}

.source-card h3 {
  margin: 0;
  font-size: 13px;
}

.source-card p {
  margin: 7px 0 13px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.6;
}

.source-card a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--forest);
  font-size: 11px;
  font-weight: 800;
}

.source-card a svg {
  width: 14px;
  height: 14px;
}

.consult-callout {
  padding: 20px;
  border-radius: 5px;
  color: white;
  background: var(--forest);
}

.consult-callout h3 {
  margin: 0;
  font-family: "Source Serif 4", serif;
  font-size: 18px;
}

.consult-callout p {
  margin: 8px 0 15px;
  color: rgba(255,255,255,.7);
  font-size: 12px;
  line-height: 1.6;
}

.consult-callout .button {
  width: 100%;
  color: var(--forest);
  background: #e3bd71;
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 20px;
}

.guide-main {
  min-width: 0;
}

.guide-aside {
  align-self: start;
  position: sticky;
  top: calc(var(--topbar-height) + 20px);
}

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

.guide-step {
  position: relative;
  min-height: 130px;
  padding: 18px 18px 18px 56px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
  box-shadow: var(--shadow-sm);
}

.guide-step-number {
  position: absolute;
  top: 17px;
  left: 17px;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 3px;
  color: white;
  background: var(--forest);
  font-family: "Source Serif 4", serif;
  font-size: 13px;
  font-weight: 700;
}

.guide-step h3 {
  margin: 0;
  font-size: 14px;
}

.guide-step p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.guide-section {
  margin-top: 24px;
}

.guide-section h2 {
  margin: 0 0 12px;
  font-size: 21px;
}

.level-tabs {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: white;
}

.level-tabs button {
  min-height: 31px;
  padding: 5px 13px;
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 700;
}

.level-tabs button.active {
  color: white;
  background: var(--forest);
}

.document-grid,
.type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.document-item {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink-soft);
  background: white;
  font-size: 12px;
}

.document-item svg {
  width: 16px;
  height: 16px;
  color: var(--forest-2);
}

.type-card {
  min-height: 150px;
  padding: 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 4px;
  background: white;
}

.type-card h3 {
  margin: 0;
  font-size: 14px;
}

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

.guide-warning {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #ecd0c9;
  border-radius: 4px;
  color: #6f3229;
  background: #faece8;
  font-size: 12px;
  line-height: 1.55;
}

.guide-warning svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.fee-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
  box-shadow: var(--shadow-sm);
}

.fee-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.fee-table th,
.fee-table td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.fee-table th {
  color: var(--muted);
  background: #f4f7f5;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.fee-table td:nth-child(2) {
  color: var(--forest);
  font-weight: 800;
  white-space: nowrap;
}

.fee-table tr:last-child td {
  border-bottom: 0;
}

.budget-calculator {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
  box-shadow: var(--shadow-sm);
}

.budget-calculator h2 {
  margin: 0;
  font-size: 20px;
}

.budget-calculator > p {
  margin: 6px 0 16px;
  color: var(--muted);
  font-size: 12px;
}

.budget-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.budget-field label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
}

.budget-field div {
  position: relative;
}

.budget-field span {
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 10px;
}

.budget-field input {
  width: 100%;
  height: 40px;
  padding: 0 10px 0 42px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  outline: none;
}

.budget-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.budget-total span {
  color: var(--muted);
  font-size: 12px;
}

.budget-total strong {
  color: var(--forest);
  font-family: "Source Serif 4", serif;
  font-size: 25px;
}

.aside-nav {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
  box-shadow: var(--shadow-sm);
}

.aside-nav a {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border-radius: 3px;
  color: var(--ink-soft);
  font-size: 11px;
}

.aside-nav a:hover,
.aside-nav a.active {
  color: var(--forest);
  background: #edf4f1;
}

.aside-nav svg {
  width: 15px;
  height: 15px;
}

.aside-source {
  margin-top: 10px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
}

.aside-source .label {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.aside-source p {
  margin: 7px 0 11px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.55;
}

.aside-source a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--forest);
  font-size: 10px;
  font-weight: 800;
}

.aside-source a svg {
  width: 13px;
  height: 13px;
}

.consult-form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
}

.consult-form {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
  box-shadow: var(--shadow-sm);
}

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

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

.form-field label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
}

.form-field input,
.form-field select {
  height: 41px;
  padding: 0 11px;
}

.form-field textarea {
  min-height: 112px;
  padding: 10px 11px;
  resize: vertical;
}

.form-field .consent-label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

.form-field .consent-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-height: 16px;
  margin: 1px 0 0;
  padding: 0;
  accent-color: var(--forest);
}

.form-hint {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.selected-panel {
  align-self: start;
  position: sticky;
  top: calc(var(--topbar-height) + 20px);
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
  box-shadow: var(--shadow-sm);
}

.selected-panel h2 {
  margin: 0;
  font-size: 19px;
}

.selected-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.selected-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.selected-row img,
.selected-row .mini-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  object-fit: contain;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: white;
}

.selected-row .mini-mark {
  display: grid;
  place-items: center;
  color: var(--forest);
  font-family: "Source Serif 4", serif;
  font-weight: 700;
}

.selected-row span {
  min-width: 0;
  flex: 1;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}

.selected-row button {
  width: 28px;
  height: 28px;
  display: grid;
  flex: 0 0 28px;
  place-items: center;
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  color: var(--muted);
  background: transparent;
}

.selected-row button:hover {
  color: var(--red);
  background: var(--red-soft);
}

.selected-row button svg {
  width: 14px;
  height: 14px;
}

.selected-empty {
  margin: 15px 0 0;
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 4px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.toast {
  position: fixed;
  z-index: 90;
  right: 24px;
  bottom: 24px;
  max-width: min(360px, calc(100vw - 32px));
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 15px;
  border-radius: 4px;
  color: white;
  background: var(--forest);
  box-shadow: var(--shadow-md);
  font-size: 12px;
  animation: toast-in .2s ease both;
}

.toast svg {
  width: 17px;
  height: 17px;
  color: #e3bd71;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-top: 52px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.site-footer strong {
  color: var(--ink-soft);
}

.mobile-overlay {
  display: none;
}

.search-section + .search-section {
  margin-top: 28px;
}

.search-section h2 {
  margin: 0 0 12px;
  font-size: 21px;
}

@media (max-width: 1180px) {
  .topbar {
    grid-template-columns: var(--sidebar-width) minmax(240px, 1fr) auto auto;
  }
  .topbar-spacer { display: none; }
  .discipline-grid,
  .priority-grid,
  .university-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .budget-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  :root { --sidebar-width: 226px; }
  .content { padding: 28px 24px 56px; }
  .home-intro { grid-template-columns: 1fr; }
  .home-intro-side { grid-template-columns: repeat(3, 1fr); grid-template-rows: none; }
  .stat-row { display: block; text-align: left; border-right: 1px solid rgba(255,255,255,.14); border-bottom: 0; }
  .stat-row:last-child { border-right: 0; }
  .stat-row span { display: block; margin-top: 4px; text-align: left; }
  .discipline-grid,
  .priority-grid,
  .university-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-item:nth-child(2) { border-right: 0; }
  .process-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .filter-bar { grid-template-columns: 1fr 1fr; }
  .guide-layout,
  .consult-form-layout { grid-template-columns: 1fr; }
  .guide-aside,
  .selected-panel { position: static; }
  .university-hero { grid-template-columns: 90px minmax(0, 1fr); }
  .university-hero-logo { width: 86px; height: 86px; }
  .university-hero-actions { grid-column: 1 / -1; flex-direction: row; }
  .detail-grid { grid-template-columns: 1fr; }
  .fact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .synced-content-layout { grid-template-columns: 1fr; }
  .synced-content-aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .synced-content-aside .consult-callout { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root { --topbar-height: 60px; }
  .topbar {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    gap: 9px;
    padding: 0 12px;
  }
  .brand {
    height: 60px;
    padding: 0;
    border-right: 0;
  }
  .brand-word span { display: none; }
  .global-search { display: none; }
  .mobile-menu-button { display: inline-flex; }
  .top-consult { width: 38px; height: 38px; padding: 0; }
  .top-consult span { display: none; }
  .language-switch button { min-width: 32px; padding: 0 6px; }
  .sidebar {
    z-index: 70;
    top: 0;
    width: min(310px, 86vw);
    padding-top: 74px;
    transform: translateX(-102%);
    transition: transform .2s ease;
    box-shadow: var(--shadow-md);
  }
  body.menu-open .sidebar { transform: translateX(0); }
  .mobile-overlay {
    position: fixed;
    z-index: 65;
    inset: 0;
    display: block;
    visibility: hidden;
    opacity: 0;
    border: 0;
    background: rgba(12,25,22,.48);
    transition: opacity .2s ease, visibility .2s ease;
  }
  body.menu-open .mobile-overlay { visibility: visible; opacity: 1; }
  .main { margin-left: 0; }
  .content { padding: 22px 16px 48px; }
  .page-head { display: block; }
  .page-head h1 { font-size: 28px; }
  .page-head-actions { margin-top: 14px; }
  .home-intro { min-height: 0; padding: 24px 20px; }
  .home-intro h1 { font-size: 31px; }
  .home-intro-side { grid-template-columns: 1fr; }
  .stat-row { display: flex; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.14); }
  .stat-row span { margin-top: 0; text-align: right; }
  .hero-search input { padding-right: 86px; }
  .hero-search button { padding: 0 12px; }
  .discipline-grid,
  .priority-grid,
  .university-grid { grid-template-columns: 1fr; }
  .discipline-card { min-height: 118px; }
  .process-strip { grid-template-columns: 1fr; }
  .process-item,
  .process-item:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .process-item:last-child { border-bottom: 0; }
  .filter-bar { grid-template-columns: 1fr; }
  .filter-summary { align-items: flex-start; }
  .program-layout { grid-template-columns: 1fr; }
  .program-categories {
    position: static;
    display: flex;
    overflow-x: auto;
    gap: 4px;
    padding: 6px;
  }
  .program-category-button { width: auto; min-width: 150px; }
  .program-list { grid-template-columns: 1fr; }
  .program-row.has-category {
    align-items: start;
  }
  .program-subline {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .program-category-inline {
    justify-self: start;
  }
  .university-hero { grid-template-columns: 70px minmax(0, 1fr); gap: 14px; padding: 18px; }
  .university-hero-logo { width: 66px; height: 66px; }
  .university-hero h1 { font-size: 23px; }
  .university-hero-actions { flex-direction: column; }
  .university-section-nav { top: calc(var(--topbar-height) + 6px); margin-right: -16px; margin-left: -16px; border-right: 0; border-left: 0; border-radius: 0; }
  .content-document { padding: 19px 16px; }
  .content-document-head h2 { font-size: 22px; }
  .synced-content-aside { grid-template-columns: 1fr; }
  .synced-content-aside .consult-callout { grid-column: auto; }
  .synced-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .program-hero { grid-template-columns: 58px minmax(0, 1fr); gap: 13px; padding: 18px; }
  .program-hero-icon { width: 54px; height: 54px; }
  .program-hero-icon svg { width: 24px; height: 24px; }
  .program-hero h1 { font-size: 25px; }
  .guide-timeline,
  .document-grid,
  .type-grid,
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
  .budget-grid { grid-template-columns: 1fr; }
  .budget-total { align-items: flex-end; }
  .budget-total strong { font-size: 22px; text-align: right; }
  .site-footer { display: block; }
  .site-footer span { display: block; margin-top: 5px; }
  .fact-grid { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
