:root {
  --ink: #1a2332;
  --muted: #6b7280;
  --line: #e5e7eb;
  --surface: #ffffff;
  --page: #f8f9fc;
  --primary: #1e3a8a;
  --primary-dark: #1e40af;
  --primary-soft: #dbeafe;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --accent-soft: #fef3c7;
  --navy: #1e3a8a;
  --gold: #f59e0b;
  --orange: #f59e0b;
  --orange-soft: #fef3c7;
  --blue: #3b82f6;
  --blue-soft: #dbeafe;
  --red: #ef4444;
  --red-soft: #fee2e2;
  --green: #10b981;
  --green-soft: #d1fae5;
  --shadow: 0 10px 30px rgba(30, 58, 138, 0.08);
  --radius: 16px;
  font-family: "Aptos", "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--ink);
  background: var(--page);
  font-synthesis: none;
}

/* 电子证书：沿用平台的蓝白校务视觉，同时保证屏幕预览、下载和打印版式一致。 */
.certificate-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(13, 38, 86, .42);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity .22s ease;
}
.certificate-overlay.show { opacity: 1; }
.certificate-modal {
  width: min(980px, 100%);
  max-height: min(94vh, 920px);
  overflow: auto;
  padding: 22px;
  border: 1px solid rgba(180, 208, 248, .9);
  border-radius: 26px;
  background: linear-gradient(145deg, #f8fbff 0%, #fff 58%, #f1f7ff 100%);
  box-shadow: 0 28px 80px rgba(24, 68, 134, .28);
  transform: translateY(14px) scale(.985);
  transition: transform .22s ease;
}
.certificate-overlay.show .certificate-modal { transform: translateY(0) scale(1); }
.certificate-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 4px 4px 18px;
}
.certificate-kicker {
  display: block;
  margin-bottom: 5px;
  color: #3976cc;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}
.certificate-modal-head h2 { margin: 0; color: #123d88; font-size: 25px; }
.certificate-modal-head p { margin: 6px 0 0; color: #7890b4; font-size: 13px; }
.certificate-paper {
  position: relative;
  overflow: hidden;
  padding: 38px 44px 32px;
  border: 1px solid #c9ddfb;
  border-radius: 22px;
  background: #fff;
  box-shadow: inset 0 0 0 8px rgba(228, 239, 255, .42), 0 16px 38px rgba(45, 100, 184, .1);
}
.certificate-paper::before,
.certificate-paper::after {
  position: absolute;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(105, 158, 235, .16);
  border-radius: 50%;
}
.certificate-paper::before { width: 360px; height: 160px; right: -80px; top: -70px; transform: rotate(-12deg); }
.certificate-paper::after { width: 290px; height: 120px; left: -100px; bottom: -60px; transform: rotate(16deg); }
.certificate-paper-glow {
  position: absolute;
  right: -90px;
  top: 16px;
  width: 350px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(137, 190, 255, .24), transparent 70%);
  pointer-events: none;
}
.certificate-paper-top,
.certificate-paper-title,
.certificate-pet-banner,
.certificate-grid,
.certificate-rule,
.certificate-paper-bottom { position: relative; z-index: 1; }
.certificate-paper-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 2px solid #2c70ce;
}
.certificate-brand { display: flex; align-items: center; gap: 12px; color: #123f8c; }
.certificate-brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, #e9f3ff, #cfe4ff);
  font-size: 24px;
  box-shadow: 0 7px 16px rgba(67, 124, 213, .16);
}
.certificate-brand strong { display: block; font-size: 18px; letter-spacing: .1em; }
.certificate-brand small { display: block; margin-top: 5px; color: #7c94b9; font-size: 11px; letter-spacing: .02em; }
.certificate-status {
  min-width: 72px;
  padding: 8px 14px;
  border-radius: 99px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}
.certificate-status.valid { color: #139b61; background: #dcf8e9; }
.certificate-status.expired { color: #b86a10; background: #fff0cc; }
.certificate-status.invalid { color: #d8505e; background: #ffe4e7; }
.certificate-paper-title { padding: 26px 0 20px; text-align: center; }
.certificate-paper-title > span { color: #4a80cc; font-size: 12px; font-weight: 800; letter-spacing: .15em; }
.certificate-paper-title h1 { margin: 9px 0 8px; color: #123d88; font-size: clamp(24px, 3.2vw, 36px); letter-spacing: .12em; }
.certificate-paper-title p { margin: 0; color: #7991b6; font-size: 13px; }
.certificate-expiry-warning { display: flex; gap: 10px; align-items: center; margin: 0 0 17px; padding: 11px 14px; border: 1px solid #ffd37b; border-radius: 12px; background: #fff8e5; color: #99651a; font-size: 12px; }
.certificate-expiry-warning strong { white-space: nowrap; }
.certificate-expiry-warning span { color: #a77c37; }
.certificate-pet-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding: 14px 17px;
  border: 1px solid #e0ebfb;
  border-radius: 15px;
  background: linear-gradient(100deg, #f4f8ff, #fbfdff);
}
.certificate-pet-avatar {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(145deg, #d7e8ff, #eff6ff);
  font-size: 28px;
}
.certificate-pet-banner strong { display: block; color: #153e86; font-size: 18px; }
.certificate-pet-banner span { display: block; margin-top: 5px; color: #7890b3; font-size: 12px; }
.certificate-no { margin-left: auto; text-align: right; }
.certificate-no small,
.certificate-no strong { display: block; }
.certificate-no small { color: #8aa0bf; font-size: 11px; }
.certificate-no strong { margin-top: 5px; color: #2a65bc; font-size: 12px; letter-spacing: .05em; }
.certificate-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid #dce9fa; border-radius: 14px; overflow: hidden; }
.certificate-grid > div { min-height: 70px; padding: 14px 17px; border-right: 1px solid #e6effb; border-bottom: 1px solid #e6effb; }
.certificate-grid > div:nth-child(2n) { border-right: 0; }
.certificate-grid > div:nth-last-child(-n + 2) { border-bottom: 0; }
.certificate-grid span,
.certificate-paper-bottom span { display: block; margin-bottom: 7px; color: #8ca1bf; font-size: 11px; }
.certificate-grid strong { display: block; overflow: hidden; color: #1e477f; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.certificate-rule { display: flex; gap: 12px; margin-top: 18px; padding: 14px 16px; border: 1px solid #ffdc88; border-radius: 13px; background: linear-gradient(100deg, #fff8df, #fffdf4); }
.certificate-rule-icon { display: grid; width: 28px; height: 28px; flex: 0 0 28px; place-items: center; border-radius: 50%; background: #ffbd37; color: #fff; font-weight: 900; }
.certificate-rule strong { color: #8c6314; font-size: 13px; }
.certificate-rule p { margin: 4px 0 0; color: #9a7630; font-size: 12px; line-height: 1.7; }
.certificate-paper-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-top: 20px; color: #7188ac; font-size: 12px; }
.certificate-paper-bottom strong { display: block; margin-bottom: 6px; color: #255aab; font-size: 13px; letter-spacing: .06em; }
.certificate-paper-bottom small { display: block; color: #99aac4; font-size: 10px; }
.certificate-qr { display: grid; width: 126px; height: 126px; flex: 0 0 126px; place-items: center; padding: 5px; border: 1px solid #d8e6f8; border-radius: 10px; background: #fff; }
.certificate-qr svg,
.certificate-qr-svg { display: block; width: 100%; height: 100%; }
.certificate-qr-svg rect { fill: #143e88; }
.certificate-qr-svg > rect:first-child { fill: #fff; }
.certificate-drawer-summary { display: flex; align-items: center; gap: 11px; padding: 12px 13px; border: 1px solid #e0ebfb; border-radius: 13px; background: #f7faff; }
.certificate-drawer-icon { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 12px; background: #dff8eb; color: #159961; font-weight: 900; }
.certificate-drawer-summary strong { display: block; color: #214b8e; font-size: 13px; }
.certificate-drawer-summary span { display: block; margin-top: 4px; color: #8198b9; font-size: 11px; }
.certificate-picker-list { display: grid; gap: 10px; }
.certificate-picker-item { display: flex; align-items: center; gap: 11px; padding: 12px; border: 1px solid #e0ebfb; border-radius: 14px; background: #fbfdff; }
.certificate-picker-avatar { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border-radius: 13px; background: linear-gradient(145deg, #d9eaff, #f1f7ff); font-size: 22px; }
.certificate-picker-main { min-width: 0; flex: 1; }
.certificate-picker-main strong,
.certificate-picker-main span,
.certificate-picker-main small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.certificate-picker-main strong { color: #214b8e; font-size: 13px; }
.certificate-picker-main span { margin-top: 3px; color: #8198b9; font-size: 11px; }
.certificate-picker-main small { margin-top: 5px; color: #5a9a79; font-size: 10px; }
.certificate-picker-item .disabled { color: #a5b2c6; cursor: not-allowed; }
.certificate-table-action { color: #2c69c4; }
.certificate-mini-badge { display: inline-block; padding: 1px 5px; border-radius: 5px; color: #178c5a; background: #e4f9ed; font-size: 10px; font-weight: 700; }
.certificate-mini-badge.red { color: #c84c59; background: #ffe5e8; }
.certificate-mini-badge.orange { color: #a96a16; background: #fff0cc; }
.certificate-picker-main small.green { color: #5a9a79; }
.certificate-picker-main small.red { color: #c84c59; }
.certificate-picker-main small.orange { color: #a96a16; }
.certificate-revoke-button { color: #c34756; border-color: #f1c2c8; background: #fff8f9; }
.certificate-revoke-button:hover { color: #a83242; border-color: #e88e9a; background: #fff0f2; }
.certificate-modal-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 18px 4px 0; }
.certificate-modal-note { margin: 11px 4px 0; color: #8b9fbd; font-size: 11px; text-align: right; }
@media (max-width: 700px) {
  .certificate-overlay { padding: 10px; }
  .certificate-modal { padding: 13px; border-radius: 20px; }
  .certificate-paper { padding: 25px 20px 22px; }
  .certificate-pet-banner { align-items: flex-start; flex-wrap: wrap; }
  .certificate-no { width: 100%; margin-left: 66px; text-align: left; }
  .certificate-grid { grid-template-columns: 1fr; }
  .certificate-grid > div,
  .certificate-grid > div:nth-child(2n) { border-right: 0; border-bottom: 1px solid #e6effb; }
  .certificate-grid > div:last-child { border-bottom: 0; }
  .certificate-paper-bottom { align-items: flex-start; flex-direction: column; }
  .certificate-modal-actions { flex-direction: column-reverse; }
  .certificate-modal-actions button { width: 100%; }
}
@media print {
  body.certificate-printing > *:not(.certificate-overlay) { display: none !important; }
  body.certificate-printing .certificate-overlay { position: static; display: block; padding: 0; background: #fff; opacity: 1; }
  body.certificate-printing .certificate-modal { width: 100%; max-height: none; overflow: visible; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: #fff; }
  body.certificate-printing .certificate-modal-head,
  body.certificate-printing .certificate-modal-actions,
  body.certificate-printing .certificate-modal-note { display: none !important; }
  body.certificate-printing .certificate-paper { min-height: 260mm; border: 0; border-radius: 0; box-shadow: none; }
}

/* 学院管理员工作台：按参考稿补齐“宠物档案总览”这一张主屏。 */
@media (min-width: 761px) {
  html[data-app-role="student"] .reference-hero-pets .reference-hero-art,
  html[data-app-role="student"] .reference-hero-health .reference-hero-art,
  html[data-app-role="student"] .reference-hero-notices .reference-hero-art,
  html[data-app-role="student"] .reference-hero-visits .reference-hero-art,
  html[data-app-role="student"] .reference-hero-placements .reference-hero-art,
  html[data-app-role="student"] .reference-hero-incidents .reference-hero-art,
  html[data-app-role="student"] .reference-hero-application .reference-hero-art {
    mix-blend-mode: normal;
    filter: contrast(1.12) saturate(1.08) brightness(1.02);
    -webkit-mask-image: radial-gradient(ellipse 50% 66% at 52% 48%, #000 32%, transparent 76%);
    mask-image: radial-gradient(ellipse 50% 66% at 52% 48%, #000 32%, transparent 76%);
  }

  html[data-app-role="college"][data-app-view="dashboard"] .sidebar {
    width: 233px;
    flex-basis: 233px;
  }
  html[data-app-role="college"][data-app-view="dashboard"] .topbar {
    height: 72px;
    padding-left: 27px;
    padding-right: 28px;
  }
  html[data-app-role="college"][data-app-view="dashboard"] .content {
    max-width: none;
    padding: 0;
  }
  html[data-app-role="college"][data-app-view="dashboard"] .main-area {
    overflow: hidden;
  }

  .college-dashboard-page {
    position: relative;
    height: calc(100vh - 72px);
    min-height: 822px;
    overflow: hidden;
    color: #173d87;
    background:
      radial-gradient(circle at 74% 20%, rgba(215, 231, 255, .78), transparent 25%),
      linear-gradient(180deg, #edf5ff 0%, #f7faff 54%, #f2f7ff 100%);
  }
  .college-dashboard-page::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 230px;
    z-index: 0;
    pointer-events: none;
    background: url("assets/reference/college-dashboard.png") no-repeat -233px -668px / 1752px 898px;
    opacity: .92;
  }
  .college-dashboard-hero {
    position: relative;
    height: 232px;
    z-index: 1;
    overflow: visible;
  }
  .college-dashboard-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
      radial-gradient(circle at 68% 13%, rgba(255,255,255,.78), transparent 15%),
      linear-gradient(110deg, rgba(238,247,255,.86), rgba(230,241,255,.44) 68%, rgba(243,248,255,.58));
  }
  .college-dashboard-left-art {
    position: absolute;
    left: 0;
    top: 0;
    width: 244px;
    height: 232px;
    pointer-events: none;
    background: url("assets/reference/college-dashboard.png") no-repeat -233px -72px / 1752px 898px;
    -webkit-mask-image: radial-gradient(ellipse 52% 68% at 50% 48%, #000 34%, transparent 82%);
    mask-image: radial-gradient(ellipse 52% 68% at 50% 48%, #000 34%, transparent 82%);
  }
  .college-dashboard-copy {
    position: absolute;
    left: 233px;
    top: 39px;
    z-index: 2;
    width: 420px;
  }
  .college-dashboard-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 0 12px;
    border-radius: 14px;
    color: #194ca8;
    background: rgba(255,255,255,.76);
    font-size: 14px;
    font-weight: 800;
  }
  .college-dashboard-copy h1 {
    margin-top: 10px;
    color: #123d91;
    font-size: 39px;
    line-height: 1;
    letter-spacing: -.06em;
  }
  .college-dashboard-copy p {
    margin-top: 12px;
    color: #6c82a8;
    font-size: 13px;
    white-space: nowrap;
  }
  .college-dashboard-search {
    position: absolute;
    left: 0;
    top: 125px;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 351px;
    height: 46px;
    padding: 0 14px;
    border: 1px solid #dbe7f7;
    border-radius: 14px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 5px 12px rgba(40, 84, 153, .04);
  }
  .college-dashboard-search span {
    color: #7b96bd;
    font-size: 21px;
    line-height: 1;
  }
  .college-dashboard-search input {
    min-width: 0;
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #34558d;
    font-size: 13px;
  }
  .college-dashboard-search input::placeholder { color: #8da0bd; }
  .college-dashboard-animals {
    position: absolute;
    left: 1000px;
    top: 20px;
    width: 490px;
    height: 215px;
    z-index: 1;
    pointer-events: none;
    background-image: url("assets/animals/dog-blue.png"), url("assets/animals/rabbit.png"), url("assets/animals/cat-kmcu.png"), url("assets/animals/bird-side.png");
    background-repeat: no-repeat;
    background-size: 168px 178px, 126px 151px, 164px 174px, 70px 76px;
    background-position: 15px 0, 183px 16px, 300px 1px, 420px 76px;
    filter: drop-shadow(0 7px 5px rgba(63, 107, 175, .12));
  }
  .college-dashboard-actions {
    position: absolute;
    top: 70px;
    right: 44px;
    z-index: 3;
  }
  .college-dashboard-actions .secondary-button {
    min-width: 94px;
    min-height: 45px;
    border-radius: 13px;
    font-size: 13px;
  }
  .college-dashboard-filters {
    position: absolute;
    right: 44px;
    top: 172px;
    display: flex;
    gap: 10px;
    z-index: 3;
  }
  .college-dashboard-filters select {
    width: 103px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #dbe7f7;
    border-radius: 13px;
    color: #365585;
    background: rgba(255,255,255,.95);
    font-size: 12px;
    outline: 0;
  }
  .college-dashboard-table {
    position: relative;
    z-index: 2;
    height: 142px;
    margin: 0 44px 0 39px;
    overflow: hidden;
    border: 1px solid #e0eafa;
    border-radius: 20px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 11px 28px rgba(49, 92, 172, .1);
  }
  .college-dashboard-table-head,
  .college-dashboard-record {
    display: grid;
    grid-template-columns: 19% 12% 14% 17% 15% 12% 11%;
    align-items: center;
  }
  .college-dashboard-table-head {
    height: 53px;
    padding: 0 22px;
    color: #7083a7;
    background: rgba(248,251,255,.96);
    border-bottom: 1px solid #e7eef9;
    font-size: 12px;
  }
  .college-dashboard-record {
    min-height: 88px;
    padding: 0 22px;
    color: #54709f;
    font-size: 12px;
  }
  .college-dashboard-record > div { min-width: 0; }
  .college-dashboard-record strong,
  .college-dashboard-record small { display: block; }
  .college-dashboard-record strong { color: #17418f; font-size: 13px; font-weight: 800; white-space: nowrap; }
  .college-dashboard-record small { margin-top: 7px; color: #7d91b4; font-size: 11px; white-space: nowrap; }
  .college-record-pet { display: flex; align-items: center; gap: 12px; }
  .college-record-thumb {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    overflow: hidden;
    flex: 0 0 auto;
    border-radius: 15px;
    background: linear-gradient(135deg, #e1edff, #f4f8ff);
  }
  .college-record-thumb img { width: 64px; height: 64px; object-fit: contain; }
  .college-record-expiry { color: #60779f; font-size: 13px; }
  .college-dashboard-record .status-pill { justify-self: start; padding: 7px 12px; font-size: 11px; }
  .college-dashboard-record .table-action { font-size: 12px; }
  .college-dashboard-cards {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 420px 508px minmax(0, 1fr);
    gap: 18px;
    height: 315px;
    margin: 20px 44px 0 39px;
  }
  .college-dashboard-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e0eafa;
    border-radius: 21px;
    background: rgba(255,255,255,.95);
    box-shadow: 0 11px 28px rgba(49, 92, 172, .09);
  }
  .college-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 57px;
    padding: 0 21px;
  }
  .college-card-heading h2 { color: #17418f; font-size: 16px; letter-spacing: -.02em; }
  .college-card-heading select {
    height: 32px;
    padding: 0 11px;
    border: 0;
    border-radius: 12px;
    color: #6e82a7;
    background: #f5f8fd;
    font-size: 11px;
    outline: 0;
  }
  .college-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 11px;
    padding: 3px 20px 20px;
  }
  .college-summary-tile {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 106px;
    padding: 12px;
    border: 0;
    border-radius: 17px;
    text-align: left;
    color: #1a478e;
  }
  .college-summary-tile.blue { background: linear-gradient(135deg, #edf5ff, #f5f9ff); }
  .college-summary-tile.green { background: linear-gradient(135deg, #effbf3, #f7fcf8); }
  .college-summary-tile.orange { background: linear-gradient(135deg, #fff8e9, #fffaf2); }
  .college-summary-tile.purple { background: linear-gradient(135deg, #f4f0ff, #faf8ff); }
  .summary-tile-icon {
    display: grid;
    place-items: center;
    width: 41px;
    height: 41px;
    flex: 0 0 auto;
    border-radius: 14px;
    background: #d9eaff;
    color: #3981e8;
    font-size: 20px;
  }
  .green .summary-tile-icon { background: #dff7e8; color: #37b86f; }
  .orange .summary-tile-icon { background: #fff0c9; color: #f2ab17; }
  .purple .summary-tile-icon { background: #e8ddff; color: #8564dc; }
  .college-summary-tile small,
  .college-summary-tile strong,
  .college-summary-tile em { display: block; }
  .college-summary-tile small { color: #6f83a7; font-size: 10px; }
  .college-summary-tile strong { margin-top: 3px; color: #143f91; font-size: 25px; line-height: 1; }
  .college-summary-tile em { margin-top: 7px; color: #8395b2; font-size: 9px; font-style: normal; white-space: nowrap; }
  .college-summary-tile.green em { color: #37a967; }
  .college-trend-chart { position: relative; height: 245px; padding: 7px 18px 0 45px; }
  .college-trend-chart svg { display: block; width: 100%; height: 190px; overflow: visible; }
  .trend-grid-line { fill: none; stroke: #e8eef8; stroke-width: 1; stroke-dasharray: 3 3; }
  .trend-area { fill: url(#trend-fill); fill: rgba(109, 164, 239, .15); }
  .trend-line { fill: none; stroke: #2670df; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
  .trend-dot { fill: #1f70dc; stroke: #fff; stroke-width: 1.2; }
  .trend-y-labels { position: absolute; left: 13px; top: 19px; bottom: 39px; display: flex; flex-direction: column; justify-content: space-between; color: #8194b5; font-size: 10px; }
  .trend-x-labels { display: flex; justify-content: space-between; padding: 0 3px 0 0; color: #8194b5; font-size: 10px; }
  .college-quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 7px 21px 20px; }
  .college-quick-grid button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 99px;
    border: 1px solid #e5edf8;
    border-radius: 15px;
    background: rgba(255,255,255,.78);
    color: #17418f;
  }
  .college-quick-grid button:hover,
  .college-summary-tile:hover { transform: translateY(-1px); box-shadow: 0 5px 14px rgba(52, 101, 187, .1); }
  .college-quick-grid i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-size: 22px; font-style: normal; }
  .college-quick-grid i.quick-blue { background: #dceaff; color: #397ce2; }
  .college-quick-grid i.quick-green { background: #dff7e9; color: #39b878; }
  .college-quick-grid i.quick-orange { background: #fff0cc; color: #f1a31b; }
  .college-quick-grid i.quick-purple { background: #eadfff; color: #8764dc; }
  .college-quick-grid i.quick-slate { background: #e3ecfa; color: #5079b9; }
  .college-quick-grid strong { color: #17418f; font-size: 11px; }
  .college-dashboard-tip {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 7px;
    height: 52px;
    margin: 27px 310px 0 203px;
    padding: 0 18px;
    border: 1px solid #ffd47c;
    border-radius: 16px;
    background: rgba(255,248,224,.94);
    color: #9a641c;
    font-size: 12px;
  }
  .college-dashboard-tip > span:first-child { color: #eaa311; font-size: 19px; }
  .college-dashboard-tip strong { color: #a86c18; }
}

@media (max-width: 760px) {
  html[data-app-role="college"][data-app-view="dashboard"] .content { padding: 0; }
  html[data-app-role="college"][data-app-view="dashboard"] .college-dashboard-page {
    position: relative;
    width: 100%;
    padding: 16px 15px 35px;
  }
  html[data-app-role="college"][data-app-view="dashboard"] .college-dashboard-hero { position: relative; }
  html[data-app-role="college"][data-app-view="dashboard"] .college-dashboard-left-art {
    position: absolute;
    display: block;
  }
  html[data-app-role="college"][data-app-view="dashboard"] .college-dashboard-copy {
    position: absolute;
    display: block;
  }
  html[data-app-role="college"][data-app-view="dashboard"] .college-dashboard-animals {
    position: absolute;
    display: block;
    width: 490px;
    height: 215px;
  }
  html[data-app-role="college"][data-app-view="dashboard"] .college-dashboard-actions,
  html[data-app-role="college"][data-app-view="dashboard"] .college-dashboard-filters {
    position: absolute;
    display: flex;
  }
  html[data-app-role="college"][data-app-view="dashboard"] .college-dashboard-table {
    position: relative;
    display: block;
  }
  html[data-app-role="college"][data-app-view="dashboard"] .college-dashboard-table-head,
  html[data-app-role="college"][data-app-view="dashboard"] .college-dashboard-record {
    display: grid;
    grid-template-columns: 220px 150px 170px 190px 145px 105px 80px;
    align-items: center;
    height: 53px;
    min-width: 1060px;
  }
  html[data-app-role="college"][data-app-view="dashboard"] .college-dashboard-record {
    height: 88px;
    min-height: 88px;
  }
  html[data-app-role="college"][data-app-view="dashboard"] .college-dashboard-cards {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
  }
  html[data-app-role="college"][data-app-view="dashboard"] .college-dashboard-card { display: block; }
  html[data-app-role="college"][data-app-view="dashboard"] .college-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  html[data-app-role="college"][data-app-view="dashboard"] .college-trend-chart { display: block; }
  html[data-app-role="college"][data-app-view="dashboard"] .college-trend-chart svg { display: block; width: 100%; }
  html[data-app-role="college"][data-app-view="dashboard"] .college-quick-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  html[data-app-role="college"][data-app-view="dashboard"] .college-dashboard-tip {
    display: flex;
    align-items: center;
  }
}

/* 登录入口：沿用样稿的蓝白、圆角、柔光和校园萌宠构图。 */
.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: clamp(16px, 3vw, 42px);
  background:
    radial-gradient(circle at 8% 12%, rgba(120, 170, 255, .24), transparent 25%),
    radial-gradient(circle at 92% 88%, rgba(255, 202, 103, .2), transparent 22%),
    linear-gradient(135deg, rgba(13, 43, 112, .72), rgba(61, 111, 205, .52));
  backdrop-filter: blur(15px) saturate(1.08);
}

.auth-gate::before,
.auth-gate::after {
  content: "";
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .22);
}
.auth-gate::before { width: 520px; height: 520px; left: -210px; top: -210px; box-shadow: 0 0 0 36px rgba(255,255,255,.04), 0 0 0 72px rgba(255,255,255,.025); }
.auth-gate::after { width: 420px; height: 420px; right: -170px; bottom: -170px; box-shadow: 0 0 0 30px rgba(255,255,255,.04), 0 0 0 60px rgba(255,255,255,.025); }

.auth-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(390px, .92fr) minmax(470px, 1.08fr);
  width: min(1120px, 100%);
  min-height: 680px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .58);
  border-radius: 30px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 35px 90px rgba(6, 31, 88, .32), 0 8px 22px rgba(255,255,255,.16) inset;
}

.auth-visual {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 68% 24%, rgba(94, 164, 255, .56), transparent 28%),
    radial-gradient(circle at 22% 84%, rgba(26, 101, 216, .62), transparent 34%),
    linear-gradient(145deg, #123e99 0%, #1d5ac0 55%, #3779d8 100%);
}
.auth-visual::before {
  content: "";
  position: absolute;
  inset: auto -10% -18% -10%;
  height: 54%;
  border-radius: 50% 50% 0 0;
  background: linear-gradient(180deg, rgba(132, 192, 255, .22), rgba(14, 61, 155, .5));
  transform: rotate(-5deg);
}
.auth-visual::after {
  content: "";
  position: absolute;
  left: -15%;
  top: 42%;
  width: 130%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
  transform: rotate(-12deg);
}
.auth-visual-top { position: relative; z-index: 2; display: flex; align-items: center; gap: 13px; padding: 36px 42px 0; }
.auth-visual-mark,
.auth-card-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 17px;
  color: #1c53bd;
  background: linear-gradient(145deg, #fff, #dceaff);
  box-shadow: 0 9px 20px rgba(4, 34, 101, .2);
}
.auth-visual-mark svg,
.auth-card-mark svg { width: 30px; height: 30px; fill: currentColor; }
.auth-visual-brand { display: grid; gap: 4px; }
.auth-visual-brand strong { font-size: 18px; letter-spacing: .02em; }
.auth-visual-brand span { color: rgba(231, 241, 255, .8); font-size: 12px; }
.auth-visual-copy { position: relative; z-index: 2; padding: 86px 42px 0; max-width: 470px; }
.auth-kicker { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; color: #e8f3ff; background: rgba(255,255,255,.12); font-size: 12px; font-weight: 700; letter-spacing: .05em; }
.auth-visual-copy h2 { margin: 20px 0 0; font-size: clamp(42px, 4vw, 62px); line-height: 1.08; letter-spacing: -.07em; text-shadow: 0 8px 18px rgba(10,47,123,.22); }
.auth-visual-copy h2 em { color: #ffd36e; font-style: normal; }
.auth-visual-copy p { max-width: 360px; margin-top: 20px; color: rgba(235, 244, 255, .83); font-size: 14px; line-height: 1.9; }
.auth-feature-row { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 10px; padding: 34px 42px 0; }
.auth-feature-row span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 11px; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; color: #edf5ff; background: rgba(255,255,255,.1); font-size: 11px; }
.auth-feature-row i { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: #1850b5; background: #fff; font-style: normal; font-weight: 800; }
.auth-mascot { position: absolute; z-index: 3; right: -38px; bottom: -105px; width: 430px; height: 430px; object-fit: contain; filter: drop-shadow(0 18px 14px rgba(3, 33, 101, .26)); }
.auth-orbit { position: absolute; z-index: 1; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; transform: rotate(-18deg); }
.auth-orbit-one { width: 410px; height: 165px; right: -90px; bottom: 120px; }
.auth-orbit-two { width: 520px; height: 220px; right: -145px; bottom: 72px; opacity: .7; }
.auth-paw-decor { position: absolute; z-index: 2; color: rgba(213, 232, 255, .44); font-size: 34px; transform: rotate(22deg); }
.auth-paw-one { right: 80px; top: 132px; }
.auth-paw-two { left: 68px; bottom: 156px; font-size: 22px; opacity: .7; transform: rotate(-16deg); }
.auth-visual-footer { position: absolute; z-index: 4; left: 42px; bottom: 28px; display: flex; align-items: center; gap: 8px; color: rgba(238, 246, 255, .78); font-size: 11px; }
.auth-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #ffd266; box-shadow: 0 0 0 4px rgba(255,210,102,.14); }

.auth-card {
  align-content: center;
  width: auto;
  min-height: 680px;
  padding: 48px clamp(42px, 5vw, 78px) 40px;
  gap: 0;
  background: rgba(255,255,255,.98);
}
.auth-mobile-brand { display: none; }
.auth-card-heading { margin-bottom: 20px; }
.auth-heading-kicker { display: block; color: #4d82da; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.auth-card-heading h1 { margin: 8px 0 7px; color: #123e8f; font-size: 32px; line-height: 1.1; letter-spacing: -.045em; }
.auth-card-heading p { color: #8596b1; font-size: 13px; line-height: 1.6; }
.auth-service-status { display: flex; align-items: center; gap: 8px; min-height: 35px; margin-bottom: 20px; padding: 0 12px; border: 1px solid #dfeaf9; border-radius: 10px; color: #6983a9; background: #f7faff; font-size: 11px; }
.auth-service-status.online { color: #2c8a62; border-color: #ccefdc; background: #f0fbf4; }
.auth-service-status.offline { color: #a36d17; border-color: #f8dfac; background: #fff9e9; }
.auth-status-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #8ea9d1; box-shadow: 0 0 0 4px rgba(142,169,209,.14); }
.auth-service-status.online .auth-status-dot { background: #32b978; box-shadow: 0 0 0 4px rgba(50,185,120,.13); }
.auth-service-status.offline .auth-status-dot { background: #f1a927; box-shadow: 0 0 0 4px rgba(241,169,39,.13); }
.auth-field { display: grid; gap: 8px; margin-bottom: 15px; color: #456086; font-size: 12px; font-weight: 800; }
.auth-input-wrap { position: relative; display: flex; align-items: center; min-height: 48px; border: 1px solid #d9e4f2; border-radius: 13px; background: #fbfdff; transition: border-color .2s, box-shadow .2s, background .2s; }
.auth-input-wrap:focus-within { border-color: #4b82df; background: #fff; box-shadow: 0 0 0 4px rgba(75,130,223,.12); }
.auth-input-wrap > svg { width: 18px; height: 18px; margin-left: 14px; flex: 0 0 auto; fill: none; stroke: #89a0c0; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.auth-input-wrap input { min-width: 0; width: 100%; height: 46px; padding: 0 12px; border: 0; outline: 0; color: #1e3d70; background: transparent; font: inherit; font-size: 13px; }
.auth-input-wrap input::placeholder { color: #9aabc2; }
.auth-field-action { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; height: 32px; margin-right: 7px; padding: 0 8px; border: 0; border-radius: 8px; color: #6c83a5; background: transparent; font: inherit; font-size: 11px; cursor: pointer; }
.auth-field-action:hover { color: #1d5bc4; background: #eef4ff; }
.auth-clear-button { width: 26px; margin-right: 6px; padding: 0; font-size: 20px; font-weight: 300; }
.password-toggle { gap: 4px; }
.password-toggle-icon { font-size: 11px; opacity: .75; }
.auth-helper-row { display: flex; align-items: center; justify-content: space-between; min-height: 27px; margin: 1px 0 7px; }
.remember-login { display: inline-flex; align-items: center; gap: 7px; color: #7a8da9; font-size: 11px; cursor: pointer; }
.remember-login input { width: 14px; height: 14px; accent-color: #2160c6; }
.auth-help-button { padding: 3px 0; border: 0; color: #3974cf; background: transparent; font: inherit; font-size: 11px; cursor: pointer; }
.auth-help-button:hover { color: #164aab; text-decoration: underline; }
.login-error { min-height: 22px; padding: 0; color: #d84b5c; font-size: 11px; line-height: 1.55; }
.login-error:empty { min-height: 10px; }
.auth-submit,
.auth-demo-button { width: 100%; min-height: 49px; border-radius: 13px; font-size: 13px; font-weight: 800; }
.auth-submit { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px; box-shadow: 0 10px 20px rgba(26, 87, 190, .2); }
.auth-submit-arrow { margin-left: auto; font-size: 18px; line-height: 1; font-weight: 400; }
.auth-submit .auth-submit-arrow { position: absolute; right: 16px; }
.auth-spinner { display: none; width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.42); border-top-color: #fff; border-radius: 50%; animation: auth-spin .75s linear infinite; }
.auth-submit.loading { pointer-events: none; opacity: .82; }
.auth-submit.loading .auth-spinner { display: inline-block; }
.auth-submit.loading .auth-submit-arrow { display: none; }
@keyframes auth-spin { to { transform: rotate(360deg); } }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 17px 0 13px; color: #a1afc2; font-size: 10px; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: #e7edf6; }
.auth-demo-button { display: flex; align-items: center; justify-content: flex-start; gap: 9px; border: 1px solid #cbdcf5; color: #2360bf; background: #f7faff; }
.auth-demo-button:hover { border-color: #8eb1e8; background: #eef5ff; }
.demo-button-icon { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 8px; color: #f2a625; background: #fff1c9; font-size: 13px; }
.auth-demo-button .auth-submit-arrow { color: #6891d2; }
.demo-account-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 22px; color: #48668f; font-size: 12px; font-weight: 800; }
.demo-account-heading small { color: #9aaac0; font-size: 10px; font-weight: 500; }
.demo-account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 10px; }
.demo-account { display: flex; align-items: center; min-width: 0; gap: 8px; padding: 9px; border: 1px solid #e1eaf5; border-radius: 11px; color: #35547e; background: #fff; text-align: left; cursor: pointer; transition: .2s ease; }
.demo-account:hover, .demo-account.active { border-color: #83a9e6; background: #f2f7ff; box-shadow: 0 5px 13px rgba(51, 102, 184, .08); }
.demo-account-icon { display: grid; place-items: center; width: 29px; height: 29px; flex: 0 0 auto; border-radius: 10px; color: #2461bf; background: #e4efff; font-size: 11px; font-weight: 800; }
.demo-account-icon.college { color: #a05c16; background: #fff0d1; }
.demo-account-icon.reviewer { color: #7154bd; background: #eee9ff; }
.demo-account-icon.security { color: #238b67; background: #e1f7ed; }
.demo-account > span:nth-child(2) { display: grid; min-width: 0; gap: 3px; }
.demo-account strong { overflow: hidden; color: #34557f; font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
.demo-account small { overflow: hidden; color: #91a3bb; font-size: 9px; white-space: nowrap; text-overflow: ellipsis; }
.demo-account i { margin-left: auto; color: #9ab1d3; font-size: 18px; font-style: normal; }
.auth-footnote { margin-top: 14px; color: #9aaac0; font-size: 10px; line-height: 1.6; }

@media (max-width: 900px) and (min-width: 761px) {
  .auth-shell { grid-template-columns: minmax(330px, .84fr) minmax(420px, 1.16fr); }
  .auth-visual-top, .auth-visual-copy, .auth-feature-row { padding-left: 30px; padding-right: 30px; }
  .auth-visual-copy { padding-top: 66px; }
  .auth-mascot { right: -75px; width: 360px; height: 360px; }
  .auth-card { padding-inline: 38px; }
}

@media (max-width: 760px) {
  .auth-gate { align-items: start; padding: 12px; }
  .auth-gate::before, .auth-gate::after { display: none; }
  .auth-shell { display: block; width: min(500px, 100%); min-height: auto; border-radius: 23px; }
  .auth-visual { display: none; }
  .auth-card { display: grid; min-height: auto; padding: 25px 21px 22px; border-radius: 23px; }
  .auth-mobile-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 25px; }
  .auth-card-mark { width: 40px; height: 40px; border-radius: 13px; }
  .auth-card-mark svg { width: 24px; height: 24px; }
  .auth-mobile-brand > div:last-child { display: grid; gap: 2px; }
  .auth-mobile-brand strong { color: #1b438c; font-size: 14px; }
  .auth-mobile-brand span { color: #8da0bd; font-size: 10px; }
  .auth-card-heading h1 { font-size: 29px; }
  .auth-service-status { margin-bottom: 18px; }
  .demo-account-grid { gap: 7px; }
  .demo-account { padding: 8px 7px; }
  .demo-account-heading { margin-top: 18px; }
}

@media (max-width: 380px) {
  .auth-gate { padding: 7px; }
  .auth-card { padding-inline: 16px; }
  .demo-account-grid { grid-template-columns: 1fr; }
  .auth-card-heading h1 { font-size: 26px; }
}

body.auth-locked .app-shell { filter: saturate(.85); }
body.auth-locked { overflow: hidden; }
body.session-mode .logout-button { display: inline-flex; }

@media (max-width: 760px) {
  .college-dashboard-page {
    min-height: auto;
    height: auto;
    overflow: visible;
    padding: 16px 15px 35px;
  }
  .college-dashboard-page::after { display: none; }
  .college-dashboard-hero { height: 265px; border-radius: 20px; overflow: hidden; background: linear-gradient(120deg, #eaf3ff, #f7fbff); }
  .college-dashboard-left-art { left: -20px; top: 88px; width: 170px; height: 170px; transform: scale(.72); transform-origin: left top; }
  .college-dashboard-copy { left: 22px; top: 22px; width: calc(100% - 44px); }
  .college-dashboard-copy h1 { font-size: 30px; }
  .college-dashboard-copy p { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .college-dashboard-search { top: 116px; width: 100%; }
  .college-dashboard-animals { left: auto; right: -94px; top: 102px; transform: scale(.62); transform-origin: right top; }
  .college-dashboard-actions { top: 20px; right: 20px; }
  .college-dashboard-filters { top: 205px; left: 20px; right: 20px; }
  .college-dashboard-filters select { flex: 1; width: auto; }
  .college-dashboard-table { height: auto; margin: 16px 0 0; overflow-x: auto; }
  .college-dashboard-table-head, .college-dashboard-record { min-width: 920px; }
  .college-dashboard-cards { grid-template-columns: 1fr; height: auto; margin: 16px 0 0; }
  .college-dashboard-card { min-height: 300px; }
  .college-dashboard-tip { margin: 16px 0 0; }
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--page); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.app-shell { min-height: 100vh; display: flex; }
.sidebar { width: 254px; flex: 0 0 254px; background: linear-gradient(180deg, #1e3a8a 0%, #1e40af 100%); color: #e0e7ff; padding: 26px 18px 22px; display: flex; flex-direction: column; min-height: 100vh; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 8px 36px; }
.brand-mark { width: 37px; height: 37px; border-radius: 12px; background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 20px; box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3); }
.brand-title { color: #fff; font-size: 15px; font-weight: 700; letter-spacing: .02em; }
.brand-subtitle { color: #a5b4fc; font-size: 11px; margin-top: 4px; }
.workspace-label { color: #93c5fd; font-size: 11px; letter-spacing: .12em; padding: 0 13px 11px; text-transform: uppercase; }
.nav-list { display: grid; gap: 5px; }
.nav-item { border: 0; color: #c7d2fe; background: transparent; width: 100%; border-radius: 11px; text-align: left; padding: 12px 12px; display: flex; align-items: center; gap: 11px; font-size: 13px; transition: .2s; }
.nav-item:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.nav-item.active { color: #fff; background: rgba(245, 158, 11, 0.2); box-shadow: inset 3px 0 0 #f59e0b; }
.nav-icon { width: 20px; display: inline-grid; place-items: center; font-size: 17px; color: #a5b4fc; }
.nav-item.active .nav-icon { color: #fbbf24; }
.nav-badge { margin-left: auto; background: #f59e0b; color: #fff; border-radius: 10px; font-size: 10px; font-weight: 700; padding: 2px 7px; }
.sidebar-footer { margin-top: auto; padding: 0 4px; }
.support-card { border: 1px solid rgba(165, 180, 252, .2); background: rgba(30, 58, 138, .3); border-radius: 13px; padding: 14px; }
.support-title { color: #e0e7ff; font-size: 12px; font-weight: 700; }
.support-text { color: #a5b4fc; font-size: 11px; margin-top: 5px; }
.support-button { margin-top: 13px; color: #fbbf24; border: 0; background: transparent; padding: 0; font-size: 11px; font-weight: 700; }
.support-button span { margin-left: 7px; font-size: 16px; vertical-align: -1px; }
.version { color: #93c5fd; font-size: 10px; text-align: center; margin-top: 16px; }

.main-area { flex: 1; min-width: 0; }
.topbar { height: 74px; background: rgba(255, 255, 255, .9); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 38px; position: sticky; top: 0; z-index: 5; backdrop-filter: blur(12px); }
.breadcrumbs { color: #8a9b9f; font-size: 12px; display: flex; align-items: center; gap: 10px; }
.breadcrumbs strong { color: var(--ink); font-size: 13px; }
.slash { color: #b6c9c5; }
.topbar-actions { display: flex; align-items: center; gap: 20px; }
.icon-button { background: transparent; border: 0; color: #55747a; font-size: 22px; width: 30px; height: 32px; position: relative; }
.notification-button i { width: 6px; height: 6px; border-radius: 50%; position: absolute; right: 2px; top: 4px; background: #e9a963; border: 2px solid white; }
.role-switch { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--muted); }
.role-switch select { border: 0; background: var(--primary-soft); color: var(--primary-dark); font-size: 11px; padding: 7px 9px; border-radius: 8px; outline: 0; font-weight: 700; }
.user-chip { display: flex; align-items: center; gap: 9px; }
.avatar { width: 33px; height: 33px; background: linear-gradient(135deg, var(--primary-soft) 0%, var(--blue-soft) 100%); border-radius: 50%; color: var(--primary-dark); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.user-meta { display: grid; gap: 2px; }
.user-meta strong { font-size: 12px; }
.user-meta span { color: var(--muted); font-size: 10px; }
.chevron { color: #93a8a9; margin-left: 3px; }
.mobile-menu { display: none; border: 0; background: transparent; color: var(--ink); font-size: 20px; }

.content { padding: 32px 38px 46px; max-width: 1440px; margin: 0 auto; }
.page-title-row { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 27px; }
.eyebrow { color: var(--primary); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; }
h1, h2, h3, p { margin: 0; }
.page-title { font-size: 28px; letter-spacing: -.04em; line-height: 1.15; color: var(--navy); }
.page-lead { color: var(--muted); font-size: 13px; line-height: 1.7; margin-top: 8px; }
.primary-button, .secondary-button, .quiet-button { border-radius: 10px; padding: 11px 16px; border: 1px solid transparent; font-size: 12px; font-weight: 700; transition: .2s; }
.primary-button { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: white; box-shadow: 0 5px 13px rgba(30, 58, 138, .2); }
.primary-button:hover { transform: translateY(-1px); box-shadow: 0 7px 16px rgba(30, 58, 138, .25); }
.primary-button:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.secondary-button { background: white; color: var(--primary); border-color: #e5e7eb; }
.secondary-button:hover { background: var(--primary-soft); border-color: var(--primary); }
.quiet-button { background: transparent; color: var(--primary); padding-inline: 8px; }
.quiet-button:hover { background: var(--primary-soft); }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 21px; }
.stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 19px 20px; min-height: 110px; box-shadow: 0 2px 7px rgba(33, 82, 79, .02); }
.stat-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 11px; }
.stat-icon { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-size: 15px; }
.stat-icon.green { background: var(--green-soft); color: var(--green); }
.stat-icon.orange { background: var(--orange-soft); color: var(--accent-dark); }
.stat-icon.blue { background: var(--blue-soft); color: var(--blue); }
.stat-icon.red { background: var(--red-soft); color: var(--red); }
.stat-number { color: var(--navy); font-size: 27px; line-height: 1; font-weight: 800; margin-top: 15px; letter-spacing: -.04em; }
.stat-note { color: #8ea1a2; font-size: 10px; margin-top: 7px; }
.stat-note em { color: var(--primary); font-style: normal; font-weight: 700; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, .9fr); gap: 20px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 2px 7px rgba(33, 82, 79, .02); }
.panel-head { padding: 19px 21px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-head h2 { font-size: 14px; color: var(--navy); }
.panel-head p { color: var(--muted); font-size: 11px; margin-top: 5px; }
.panel-link { color: var(--primary); background: transparent; border: 0; font-size: 11px; font-weight: 700; white-space: nowrap; }
.panel-divider { height: 1px; background: var(--line); }
.application-list { display: grid; }
.application-row { padding: 15px 21px; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; gap: 13px; align-items: center; border-bottom: 1px solid #f0f5f4; }
.application-row:last-child { border-bottom: 0; }
.pet-thumb { width: 42px; height: 42px; border-radius: 13px; object-fit: cover; background: linear-gradient(135deg, var(--primary-soft) 0%, var(--blue-soft) 100%); display: grid; place-items: center; color: var(--primary); font-size: 20px; }
.application-main { min-width: 0; }
.application-main strong { display: block; font-size: 12px; color: var(--navy); }
.application-main span { display: block; color: var(--muted); font-size: 10px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.date-meta { color: var(--muted); font-size: 10px; white-space: nowrap; }
.status-pill { display: inline-flex; align-items: center; gap: 5px; border-radius: 20px; padding: 5px 9px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.status-pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-pill.green { color: #059669; background: #d1fae5; }
.status-pill.orange { color: #d97706; background: #fef3c7; }
.status-pill.blue { color: #2563eb; background: #dbeafe; }
.status-pill.red { color: #dc2626; background: #fee2e2; }
.status-pill.gray { color: #6b7280; background: #f3f4f6; }
.overview-card { padding-bottom: 7px; }
.overview-chart { padding: 2px 21px 18px; }
.bar-chart { height: 138px; display: flex; align-items: end; justify-content: space-around; gap: 14px; border-bottom: 1px solid #eef4f2; position: relative; }
.bar-chart::before, .bar-chart::after { content: ""; position: absolute; left: 0; right: 0; border-top: 1px dashed #e3eeeb; }
.bar-chart::before { top: 35px; }
.bar-chart::after { top: 81px; }
.bar { width: 21px; border-radius: 8px 8px 0 0; background: linear-gradient(180deg, #60a5fa 0%, #3b82f6 100%); position: relative; z-index: 1; min-height: 12px; }
.bar:nth-child(2n) { background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 100%); }
.bar-labels { display: flex; justify-content: space-around; color: #91a3a5; font-size: 9px; padding-top: 8px; }
.quick-actions { display: grid; gap: 11px; padding: 0 21px 19px; }
.quick-action { border: 1px solid var(--line); background: #fbfdfc; border-radius: 12px; display: flex; align-items: center; gap: 11px; padding: 12px; text-align: left; }
.quick-action:hover { border-color: var(--primary); background: var(--primary-soft); }
.quick-action-icon { width: 31px; height: 31px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary-soft) 0%, var(--blue-soft) 100%); color: var(--primary); font-size: 16px; }
.quick-action strong { display: block; color: var(--navy); font-size: 11px; }
.quick-action span { display: block; color: var(--muted); font-size: 10px; margin-top: 4px; }
.notice-list { display: grid; padding: 0 21px 16px; }
.notice { display: flex; gap: 10px; padding: 13px 0; border-bottom: 1px solid #f0f5f4; }
.notice:last-child { border-bottom: 0; }
.notice-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); margin-top: 5px; flex: 0 0 auto; }
.notice-dot.green { background: var(--green); }
.notice strong { display: block; font-size: 11px; color: var(--navy); }
.notice span { display: block; font-size: 10px; color: var(--muted); margin-top: 4px; line-height: 1.5; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.search-box { display: flex; align-items: center; gap: 8px; width: 280px; border: 1px solid var(--line); border-radius: 9px; background: #fff; padding: 9px 12px; color: #a1b2b2; }
.search-box input { border: 0; outline: 0; min-width: 0; width: 100%; font-size: 11px; color: var(--ink); }
.filter-row { display: flex; gap: 8px; }
.filter-row select { border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 9px 11px; color: #637d7f; font-size: 11px; outline: 0; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { text-align: left; padding: 12px 20px; background: #fbfdfc; border-bottom: 1px solid var(--line); color: #8a9d9e; font-size: 10px; font-weight: 700; white-space: nowrap; }
.data-table td { padding: 13px 20px; border-bottom: 1px solid #f0f5f4; color: #61777a; font-size: 11px; vertical-align: middle; }
.data-table tbody tr:hover { background: #fbfefd; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.table-primary { color: var(--navy); font-weight: 700; }
.table-secondary { color: var(--muted); font-size: 10px; margin-top: 4px; }
.table-actions { display: flex; gap: 5px; }
.table-action { border: 0; background: transparent; color: var(--primary); font-size: 10px; font-weight: 700; padding: 4px; white-space: nowrap; }
.table-action:disabled { color: #9bb0ad; cursor: default; }
.empty-state { padding: 50px 20px; text-align: center; color: var(--muted); }

.form-layout { display: grid; grid-template-columns: 1fr 310px; gap: 20px; align-items: start; }
.form-panel { padding: 25px; }
.form-section { padding-bottom: 25px; margin-bottom: 25px; border-bottom: 1px solid var(--line); }
.form-section:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.section-heading { display: flex; align-items: start; gap: 10px; margin-bottom: 17px; }
.section-number { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary-soft) 0%, var(--blue-soft) 100%); color: var(--primary); font-size: 11px; font-weight: 800; flex: 0 0 auto; }
.section-heading h2 { color: var(--navy); font-size: 14px; }
.section-heading p { color: var(--muted); font-size: 10px; margin-top: 4px; line-height: 1.5; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 16px; }
.form-grid.three { grid-template-columns: repeat(3, 1fr); }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { color: #587376; font-size: 11px; font-weight: 700; }
.field label .required { color: #dc2626; margin-left: 2px; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #dce9e6; background: #fff; border-radius: 8px; color: var(--ink); padding: 10px 11px; outline: 0; font-size: 11px; transition: .2s; }
.field textarea { resize: vertical; min-height: 82px; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(30, 58, 138, .1); }
.field input[readonly] { background: #f6faf9; color: #748789; }
.helper { color: #96a8a7; font-size: 10px; line-height: 1.5; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { border: 1px solid #dce9e6; border-radius: 8px; padding: 9px 12px; color: #607a7b; background: #fff; font-size: 11px; display: inline-flex; align-items: center; gap: 7px; }
.choice input { accent-color: var(--primary); }
.choice.selected { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-dark); }
.upload-box { border: 1px dashed #b9dcd3; background: #fbfefd; border-radius: 11px; padding: 17px; display: flex; align-items: center; gap: 12px; }
.upload-icon { width: 33px; height: 33px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-size: 17px; }
.upload-copy { flex: 1; min-width: 0; }
.upload-copy strong { color: var(--navy); font-size: 11px; display: block; }
.upload-copy span { color: var(--muted); font-size: 10px; display: block; margin-top: 3px; }
.upload-box button { color: var(--primary); border: 1px solid #c5e4dc; background: white; border-radius: 7px; font-size: 10px; padding: 7px 10px; font-weight: 700; }
.material-list { display: grid; gap: 8px; }
.material-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto auto; align-items: center; gap: 9px; border: 1px solid #e1ece9; border-radius: 10px; padding: 9px 10px; background: #fff; }
.material-row.uploaded { border-color: var(--primary); background: var(--primary-soft); }
.material-icon { width: 25px; height: 25px; border-radius: 8px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-size: 13px; }
.material-row strong { color: var(--navy); font-size: 10px; display: block; }
.material-row span:not(.material-icon) { color: var(--muted); font-size: 9px; display: block; margin-top: 3px; }
.material-status { color: #9aabab; font-size: 9px; font-style: normal; white-space: nowrap; }
.material-status.done { color: var(--green); font-weight: 700; }
.material-status.optional { color: var(--accent-dark); }
.material-summary { display: flex; justify-content: space-between; margin-top: 10px; padding: 9px 2px 0; color: var(--muted); font-size: 10px; }
.material-summary strong { color: var(--primary-dark); }
.commitment-box { border: 1px solid #d8ebe6; border-radius: 12px; background: #f9fdfc; padding: 15px; }
.commitment-box p { color: #5f7779; font-size: 11px; line-height: 1.8; }
.commitment-box label { display: flex; gap: 9px; align-items: start; color: var(--navy); font-size: 11px; font-weight: 700; margin-top: 13px; }
.commitment-box input { accent-color: var(--primary); margin-top: 3px; }
.signature-row { display: flex; gap: 15px; align-items: end; margin-top: 15px; }
.signature-row .field { flex: 1; }
.verification-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 15px; padding-top: 14px; border-top: 1px solid #e4efec; }
.verification-row strong { display: block; color: var(--navy); font-size: 11px; }
.verification-row span { display: block; color: var(--muted); font-size: 10px; margin-top: 4px; }
.verification-row.signed strong, .verification-row.signed span { color: var(--green); }
.consent-area { margin-top: 14px; }
.consent-area.hidden { display: none; }
.consent-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 9px; color: var(--navy); font-size: 11px; }
.consent-list { display: grid; gap: 9px; }
.consent-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid #e3edeb; border-radius: 10px; padding: 11px 12px; background: white; }
.consent-person { display: flex; align-items: center; gap: 9px; min-width: 0; }
.mini-avatar { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: var(--primary-dark); background: var(--primary-soft); font-size: 10px; font-weight: 800; flex: 0 0 auto; }
.consent-person strong { color: var(--navy); display: block; font-size: 11px; }
.consent-person span { color: var(--muted); display: block; font-size: 10px; margin-top: 3px; }
.consent-status { color: #9aabab; font-size: 10px; }
.consent-status.done { color: var(--green); font-weight: 700; }
.consent-action { display: flex; align-items: center; gap: 8px; }
.toggle { display: inline-flex; align-items: center; gap: 8px; color: #668081; font-size: 10px; }
.toggle input { display: none; }
.toggle-track { width: 31px; height: 18px; border-radius: 20px; background: #d4e3e0; position: relative; transition: .2s; }
.toggle-track::after { content: ""; position: absolute; width: 14px; height: 14px; border-radius: 50%; background: white; left: 2px; top: 2px; box-shadow: 0 1px 2px rgba(0,0,0,.15); transition: .2s; }
.toggle input:checked + .toggle-track { background: var(--primary); }
.toggle input:checked + .toggle-track::after { transform: translateX(13px); }
.form-actions { display: flex; justify-content: flex-end; gap: 9px; padding-top: 22px; }
.sticky-card { padding: 20px; position: sticky; top: 96px; }
.sticky-card h2 { color: var(--navy); font-size: 14px; }
.sticky-card > p { color: var(--muted); font-size: 10px; line-height: 1.6; margin-top: 6px; }
.step-list { display: grid; gap: 0; margin-top: 20px; }
.step { display: flex; gap: 11px; position: relative; padding-bottom: 20px; }
.step:not(:last-child)::after { content: ""; position: absolute; left: 10px; top: 22px; bottom: 0; border-left: 1px dashed #c8dfda; }
.step-dot { width: 21px; height: 21px; border-radius: 50%; border: 1px solid #cce2dd; background: #fff; display: grid; place-items: center; color: #9bb0b0; font-size: 10px; font-weight: 800; z-index: 1; flex: 0 0 auto; }
.step.done .step-dot, .step.active .step-dot { color: white; background: var(--primary); border-color: var(--primary); }
.step.active .step-dot { box-shadow: 0 0 0 4px var(--primary-soft); }
.step strong { color: var(--navy); font-size: 11px; display: block; }
.step span { color: var(--muted); font-size: 10px; display: block; margin-top: 3px; line-height: 1.4; }
.rule-note { margin-top: 20px; padding: 12px; border-radius: 10px; background: var(--orange-soft); color: #92400e; font-size: 10px; line-height: 1.6; }

.settings-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.settings-card { padding: 21px; }
.settings-card h2 { font-size: 14px; color: var(--navy); }
.settings-card > p { margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.setting-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 16px 0; border-bottom: 1px solid #eff4f3; }
.setting-row:last-child { border-bottom: 0; }
.setting-row strong { color: var(--navy); font-size: 11px; display: block; }
.setting-row span { color: var(--muted); font-size: 10px; display: block; margin-top: 4px; line-height: 1.5; }
.setting-control { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; }
.setting-control input[type="number"], .setting-control input[type="date"] { width: 115px; border: 1px solid #dce9e6; border-radius: 8px; padding: 8px 9px; font-size: 11px; color: var(--ink); outline: 0; }
.setting-control select { border: 1px solid #dce9e6; background: white; border-radius: 8px; padding: 8px 9px; font-size: 11px; color: var(--ink); outline: 0; }
.settings-actions { margin-top: 17px; display: flex; justify-content: end; gap: 8px; }
.rule-version { background: #f7fbfa; border-radius: 11px; padding: 13px; margin-top: 17px; color: #688081; font-size: 10px; line-height: 1.7; }
.rule-version strong { color: var(--navy); font-size: 11px; display: block; margin-bottom: 3px; }
.version-list { display: grid; gap: 8px; margin-top: 13px; }
.version-list .rule-version { margin-top: 0; }
.audit-panel { margin-top: 20px; }
.data-tools-card { margin-top: 20px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 24px; align-items: center; background: linear-gradient(135deg, #ffffff 0%, #f5f9ff 100%); border: 1px solid #dfeafb; }
.data-tools-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.data-tool-hint { grid-column: 1 / -1; color: #7c91b4; font-size: 10px; line-height: 1.5; padding-top: 12px; border-top: 1px solid #e8eef9; }
.data-integrity-result { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; padding: 10px 12px; border-radius: 10px; background: #f7faff; color: #6c7e99; font-size: 10px; line-height: 1.5; }
.data-integrity-result strong { color: #315d9f; font-size: 11px; }
.data-integrity-result.is-ok { background: #effaf4; }
.data-integrity-result.is-ok strong { color: #17834f; }
.data-integrity-result.has-issues { background: #fff7ed; }
.data-integrity-result.has-issues strong { color: #c56b12; }
.audit-list { display: grid; margin-top: 14px; }
.audit-row { display: grid; grid-template-columns: 145px 135px minmax(0, 1fr); gap: 10px; align-items: center; padding: 11px 0; border-top: 1px solid #eff4f3; font-size: 10px; }
.audit-time { color: #9aabab; }
.audit-row strong { color: var(--navy); }
.audit-row > span:last-child { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.drawer-backdrop { position: fixed; inset: 0; background: rgba(9, 34, 37, .24); z-index: 20; opacity: 0; pointer-events: none; transition: .2s; }
.drawer-backdrop.show { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(500px, 100%); background: #fff; z-index: 21; transform: translateX(100%); transition: .25s ease; overflow: auto; box-shadow: -10px 0 40px rgba(20, 61, 61, .16); }
.drawer.show { transform: translateX(0); }
.drawer-head { padding: 20px 23px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: start; }
.drawer-head h2 { color: var(--navy); font-size: 16px; }
.drawer-head p { color: var(--muted); font-size: 10px; margin-top: 5px; }
.drawer-close { border: 0; background: #f3f8f6; border-radius: 8px; width: 29px; height: 29px; color: #6c8585; }
.drawer-body { padding: 20px 23px 40px; }
.drawer-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-hero { display: flex; align-items: center; gap: 14px; }
.detail-avatar { width: 61px; height: 61px; border-radius: 18px; background: linear-gradient(135deg, var(--primary-soft) 0%, var(--blue-soft) 100%); display: grid; place-items: center; font-size: 29px; color: var(--primary); }
.detail-hero h3 { color: var(--navy); font-size: 19px; }
.detail-hero p { color: var(--muted); font-size: 10px; margin-top: 5px; }
.detail-section { border-top: 1px solid var(--line); padding-top: 17px; margin-top: 20px; }
.detail-section h4 { color: var(--navy); font-size: 12px; margin-bottom: 12px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; }
.detail-item { background: #f8fbfa; border-radius: 9px; padding: 10px; }
.detail-item span { display: block; color: #8ca0a0; font-size: 9px; }
.detail-item strong { display: block; color: #425f61; font-size: 11px; margin-top: 4px; }
.timeline { display: grid; gap: 15px; }
.timeline-item { display: grid; grid-template-columns: 9px 1fr; gap: 10px; position: relative; }
.timeline-item:not(:last-child)::after { content: ""; position: absolute; left: 4px; top: 10px; bottom: -15px; border-left: 1px solid #d6e7e2; }
.timeline-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--primary); z-index: 1; margin-top: 2px; }
.timeline-item strong { color: var(--navy); font-size: 10px; }
.timeline-item span { display: block; color: var(--muted); font-size: 9px; margin-top: 4px; }

.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 15px); background: var(--navy); color: white; border-radius: 10px; padding: 11px 16px; font-size: 11px; opacity: 0; pointer-events: none; transition: .25s; z-index: 50; box-shadow: 0 8px 25px rgba(30, 58, 138, .3); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1050px) {
  .sidebar { width: 220px; flex-basis: 220px; }
  .content, .topbar { padding-left: 24px; padding-right: 24px; }
  .dashboard-grid, .form-layout, .settings-grid { grid-template-columns: 1fr; }
  .sticky-card { position: static; }
}

@media (max-width: 760px) {
  .sidebar { position: fixed; z-index: 10; left: 0; top: 0; bottom: 0; transform: translateX(-100%); transition: .25s; width: 250px; overflow-y: auto; }
  .sidebar.open { transform: translateX(0); }
  .mobile-menu { display: inline-block; }
  .topbar { padding: 0 15px; gap: 13px; }
  .topbar-actions { gap: 10px; }
  .role-switch > span, .user-meta, .chevron { display: none; }
  .content { padding: 23px 15px 35px; }
  .page-title-row { align-items: start; flex-direction: column; gap: 15px; }
  .page-title { font-size: 24px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { gap: 15px; }
  .application-row { grid-template-columns: 38px minmax(0, 1fr) auto; }
  .application-row .date-meta { display: none; }
  .form-panel { padding: 18px; }
  .form-grid, .form-grid.three { grid-template-columns: 1fr; }
  .material-row { grid-template-columns: 26px minmax(0, 1fr) auto; }
  .material-row .material-status { display: none; }
  .field.full { grid-column: auto; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .search-box { width: 100%; }
  .filter-row { width: 100%; }
  .filter-row select { flex: 1; }
  .audit-row { grid-template-columns: 1fr; gap: 4px; }
  .panel { overflow-x: auto; }
  .data-table { min-width: 700px; }
}

.hidden { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.logout-button { display: none; }
body.api-mode .logout-button { display: inline-flex; }
body.api-mode .role-switch { display: none; }

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, .45);
  backdrop-filter: blur(8px);
  padding: 20px;
}
.auth-card {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 24px 60px rgba(30, 58, 138, .2);
  display: grid;
  gap: 12px;
}
.auth-card .brand-mark { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, #1e3a8a, #1e40af); color: #fff; font-size: 24px; }
.auth-card h1 { margin: 0; font-size: 22px; color: var(--navy); }
.auth-card p, .auth-card small { color: var(--muted); line-height: 1.6; }
.auth-card label { display: grid; gap: 6px; font-size: 12px; font-weight: 700; color: #4b5563; }
.auth-card input { border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; }
.login-error { min-height: 18px; color: var(--red); font-size: 12px; }

/* 交互与可访问性增强 */
:root {
  --page: #f4f7fb;
  --line: #e3e9f2;
  --ink: #17233d;
  --muted: #718096;
  --shadow-soft: 0 12px 34px rgba(28, 55, 103, .08);
}

body { background: radial-gradient(circle at 85% -10%, rgba(219, 234, 254, .72), transparent 32%), var(--page); }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(59, 130, 246, .24); outline-offset: 2px; }
.topbar { box-shadow: 0 1px 0 rgba(30, 58, 138, .02), 0 8px 24px rgba(30, 58, 138, .03); }
.user-chip { border: 0; background: transparent; padding: 4px 5px; text-align: left; border-radius: 12px; }
.user-chip:hover { background: #eef4ff; }
.user-chip[aria-expanded="true"] { background: #e8f0ff; }
.sync-indicator { display: inline-flex; align-items: center; gap: 5px; color: #8a9aab; font-size: 10px; white-space: nowrap; }
.sync-indicator::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, .12); }
.sync-indicator.online { color: #059669; }
.sync-indicator.online::before { background: #10b981; box-shadow: 0 0 0 3px rgba(16, 185, 129, .12); }
.sync-indicator.syncing { color: #2563eb; }
.sync-indicator.syncing::before { background: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, .12); animation: syncPulse 1.2s ease-in-out infinite; }
.sync-indicator.error { color: #c56b12; }
.sync-indicator.error::before { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, .12); }
.sync-indicator.offline { color: #64748b; }
.sync-indicator.offline::before { background: #94a3b8; box-shadow: 0 0 0 3px rgba(148, 163, 184, .14); }
@keyframes syncPulse { 50% { opacity: .35; transform: scale(.78); } }
@media (prefers-reduced-motion: reduce) { .sync-indicator.syncing::before { animation: none; } }
.sidebar-backdrop { display: none; }
.sidebar-backdrop.show { display: block; position: fixed; inset: 0; z-index: 9; background: rgba(15, 23, 42, .28); backdrop-filter: blur(2px); }

.floating-panel { position: fixed; top: 66px; right: 28px; z-index: 30; width: min(360px, calc(100vw - 30px)); background: rgba(255, 255, 255, .98); border: 1px solid #dfe7f2; border-radius: 18px; box-shadow: 0 22px 55px rgba(28, 55, 103, .18); overflow: hidden; animation: panel-in .18s ease-out; }
.floating-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 17px 18px; border-bottom: 1px solid #edf1f7; }
.floating-panel-head > div { min-width: 0; display: grid; gap: 4px; }
.floating-panel-head strong { color: var(--navy); font-size: 14px; }
.floating-panel-head span:not(.panel-kicker) { color: var(--muted); font-size: 10px; line-height: 1.45; }
.panel-kicker { color: var(--primary); font-size: 9px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.panel-close { width: 28px; height: 28px; border: 0; border-radius: 9px; background: #f3f6fb; color: #758399; font-size: 18px; line-height: 1; }
.panel-close:hover { color: var(--primary); background: #e8f0ff; }
.account-summary { display: flex; gap: 10px; margin: 14px 16px 4px; padding: 12px; border-radius: 12px; background: linear-gradient(135deg, #eff6ff, #f8fbff); }
.account-summary-icon { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 8px; background: #dbeafe; color: #2563eb; font-size: 12px; font-weight: 800; flex: 0 0 auto; }
.account-summary strong { display: block; color: var(--navy); font-size: 11px; }
.account-summary span:not(.account-summary-icon) { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.account-users { margin: 14px 16px; padding-top: 12px; border-top: 1px solid #edf1f7; }
.account-users > strong { display: block; color: var(--navy); font-size: 11px; margin-bottom: 8px; }
.account-user { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid #f1f4f8; font-size: 10px; }
.account-user span { color: var(--ink); font-weight: 700; }
.account-user em { color: var(--muted); font-style: normal; text-align: right; }
.account-users-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; color: var(--navy); font-size: 11px; }
.account-users-head .table-action { font-size: 9px; }
.account-user span { display: grid; gap: 2px; min-width: 0; }
.account-user span strong { font-size: 10px; }
.account-user span em { text-align: left; }
.account-user-actions { display: flex !important; align-items: center; gap: 5px; flex-shrink: 0; }
.account-user-actions .table-action { padding: 3px 6px; }
.account-user .danger { color: #c45f66; }
.user-form-drawer .drawer-body { padding-bottom: 32px; }
.account-password { display: grid; gap: 8px; margin: 14px 16px; padding-top: 14px; border-top: 1px solid #edf1f7; }
.account-password label { display: grid; gap: 5px; color: #5c6b80; font-size: 10px; font-weight: 700; }
.account-password input { width: 100%; padding: 9px 10px; border: 1px solid #dfe7f2; border-radius: 9px; font-size: 11px; }
.account-password button { justify-self: start; padding: 8px 11px; font-size: 10px; }
.account-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 16px; border-top: 1px solid #edf1f7; color: #9aa8ba; font-size: 10px; }
.account-footer .quiet-button { font-size: 10px; }
.notification-list { max-height: min(460px, calc(100vh - 140px)); overflow: auto; padding: 7px; }
.notification-item { width: 100%; display: grid; grid-template-columns: 30px minmax(0, 1fr) 12px; align-items: center; gap: 10px; padding: 11px 10px; border: 0; border-radius: 12px; background: transparent; text-align: left; }
.notification-item:hover { background: #f3f7fd; }
.notification-item.read { opacity: .62; }
.notification-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; font-size: 12px; font-weight: 800; }
.notification-icon.orange { background: #fef3c7; color: #b45309; }
.notification-icon.red { background: #fee2e2; color: #dc2626; }
.notification-icon.blue { background: #dbeafe; color: #2563eb; }
.notification-item strong { display: block; color: var(--navy); font-size: 11px; line-height: 1.35; }
.notification-item small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.notification-arrow { color: #a5b2c2; font-size: 19px; }
.search-button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.global-search-panel { width: min(440px, calc(100vw - 30px)); }
.global-search-field { display: flex; align-items: center; gap: 9px; margin: 14px 16px 8px; padding: 10px 11px; border: 1px solid #dce7f7; border-radius: 11px; background: #f8fbff; }
.global-search-field:focus-within { border-color: #92b7ef; box-shadow: 0 0 0 3px rgba(59, 130, 246, .12); }
.global-search-field svg { width: 17px; height: 17px; flex: 0 0 auto; fill: none; stroke: #5e83bf; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.global-search-field input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; }
.global-search-field input::placeholder { color: #9aaac2; }
.global-search-results { max-height: min(430px, calc(100vh - 245px)); overflow: auto; padding: 5px 8px 8px; }
.global-search-result { width: 100%; display: grid; grid-template-columns: 31px minmax(0, 1fr) 12px; align-items: center; gap: 10px; padding: 10px; border: 0; border-radius: 11px; background: transparent; text-align: left; color: inherit; }
.global-search-result:hover, .global-search-result:focus-visible { background: #f2f7ff; }
.global-search-result-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: #e7f0ff; color: #2762bd; font-size: 13px; }
.global-search-result strong { display: block; color: var(--navy); font-size: 11px; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.global-search-result small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.global-search-result i { color: #a5b2c2; font-size: 18px; font-style: normal; }
.global-search-empty { display: grid; place-items: center; gap: 6px; padding: 27px 16px 30px; text-align: center; }
.global-search-empty > span { color: #7ea2d9; font-size: 27px; line-height: 1; }
.global-search-empty strong { color: var(--navy); font-size: 11px; }
.global-search-empty small { color: var(--muted); font-size: 10px; line-height: 1.45; }
.global-search-hint { padding: 10px 17px; border-top: 1px solid #edf1f7; color: #9aa8ba; font-size: 9px; }

.application-row-button { width: 100%; grid-template-columns: 44px minmax(0, 1fr) auto auto 14px; border: 0; background: transparent; text-align: left; color: inherit; }
.application-row-button:hover { background: #f8fbff; }
.application-row-button .row-arrow { color: #a6b3c3; font-size: 18px; transition: transform .18s; }
.application-row-button:hover .row-arrow { color: var(--primary); transform: translateX(2px); }
.notice-button { width: 100%; border: 0; background: transparent; text-align: left; color: inherit; }
.notice-button:hover { background: #f7fbff; border-radius: 10px; padding-inline: 8px; margin-inline: -8px; width: calc(100% + 16px); }
.notice-button > span { min-width: 0; flex: 1; }
.notice-button small { display: block; color: var(--muted); font-size: 10px; margin-top: 4px; line-height: 1.5; }
.notice-button > b { color: #a5b2c2; font-size: 18px; font-weight: 400; }
.notice-button:hover > b { color: var(--primary); }
.empty-state.compact { display: grid; gap: 5px; padding: 24px 18px; }
.empty-state.compact strong { color: var(--navy); font-size: 11px; }
.empty-state.compact span { font-size: 10px; line-height: 1.5; }
.bar-wrap { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: center; height: 100%; min-width: 26px; }
.bar-wrap small { position: absolute; bottom: calc(100% - 5px); color: #8190a3; font-size: 9px; opacity: 0; transition: opacity .18s; }
.bar-wrap:hover small { opacity: 1; }
.bar-chart .bar { width: 20px; }

@keyframes panel-in { from { opacity: 0; transform: translateY(-5px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }

@media (max-width: 900px) {
  .sync-indicator { display: none; }
  .topbar-actions { gap: 12px; }
  .data-table th, .data-table td { padding-inline: 14px; }
}

@media (max-width: 760px) {
  .floating-panel { top: 58px; right: 15px; }
  .topbar-actions { margin-left: auto; }
  .search-button { width: 28px; }
  .notification-button { width: 28px; }
  .application-row-button { grid-template-columns: 38px minmax(0, 1fr) auto !important; }
  .application-row-button .status-pill { display: none; }
  .notice-button:hover { margin-inline: -4px; width: calc(100% + 8px); }
  .detail-grid { grid-template-columns: 1fr; }
  .drawer-body { padding-inline: 18px; }
}

/* 参考稿视觉复刻层：保留原有业务结构，在其上统一成昆明城市学院蓝白插画风格。 */
:root {
  --reference-blue: #1247b6;
  --reference-deep: #0d358e;
  --reference-ink: #183b82;
  --reference-muted: #7186ad;
  --reference-page: #f2f6ff;
  --reference-line: #dce8fb;
  --reference-yellow: #ffbd22;
  --reference-shadow: 0 12px 30px rgba(49, 92, 172, .09);
}

html { background: var(--reference-page); }
body {
  color: var(--reference-ink);
  background:
    radial-gradient(circle at 91% 76%, rgba(202, 219, 255, .56), transparent 23%),
    radial-gradient(circle at 45% 1%, rgba(255, 255, 255, .98), transparent 35%),
    var(--reference-page);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", "Segoe UI", sans-serif;
}

.app-shell { position: relative; z-index: auto; }
.sidebar {
  width: 260px;
  flex-basis: 260px;
  position: relative;
  overflow: hidden;
  padding: 25px 16px 19px;
  background:
    radial-gradient(circle at 12% 8%, rgba(82, 148, 255, .24), transparent 24%),
    linear-gradient(180deg, #0b42b7 0%, #153b9d 57%, #1a3e9c 100%);
  color: #eaf2ff;
}
.sidebar::before,
.sidebar::after {
  content: "✣";
  position: absolute;
  color: rgba(157, 194, 255, .18);
  font-size: 42px;
  pointer-events: none;
}
.sidebar::before { right: 14px; bottom: 18px; transform: rotate(18deg); }
.sidebar::after { left: -18px; bottom: 6px; font-size: 60px; opacity: .45; }
.brand { gap: 12px; padding: 0 7px 35px; position: relative; z-index: 1; }
.brand-mark {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--reference-blue);
  box-shadow: 0 8px 20px rgba(0, 24, 111, .22);
}
.brand-mark svg { width: 29px; height: 29px; fill: currentColor; }
.brand-title { font-size: 16px; letter-spacing: .01em; }
.brand-subtitle { color: #b8d0ff; font-size: 11px; margin-top: 5px; }
.workspace-label { position: relative; z-index: 1; color: #bcd1ff; font-size: 11px; letter-spacing: .04em; padding: 0 14px 12px; text-transform: none; }
.nav-list { position: relative; z-index: 1; gap: 3px; }
.nav-item {
  min-height: 49px;
  border-radius: 12px;
  color: #d7e4ff;
  padding: 11px 13px;
  gap: 13px;
  font-size: 14px;
  font-weight: 600;
  border-left: 3px solid transparent;
}
.nav-item:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.nav-item.active {
  color: #fff;
  border-left-color: var(--reference-yellow);
  background: rgba(153, 190, 255, .28);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.09), 0 7px 18px rgba(1, 35, 117, .12);
}
.nav-icon { width: 22px; color: #c6d9ff; font-size: 21px; line-height: 1; }
.nav-item.active .nav-icon { color: #ffd12b; }
.nav-badge { background: #ffbd22; color: #173d93; padding: 3px 7px; }
.sidebar-footer { position: relative; z-index: 1; padding: 118px 4px 0; }
.sidebar-mascot {
  position: absolute;
  width: 142px;
  height: 142px;
  object-fit: contain;
  left: 33px;
  top: 0;
  filter: drop-shadow(0 7px 5px rgba(0, 24, 90, .2));
  pointer-events: none;
}
.support-card {
  border: 1px solid rgba(175, 206, 255, .28);
  background: rgba(25, 83, 188, .54);
  border-radius: 16px;
  padding: 16px 15px 15px;
}
.support-title { color: #fff; font-size: 13px; }
.support-text { color: #d0e0ff; font-size: 11px; margin-top: 8px; }
.support-button { color: #ffd02a; margin-top: 16px; font-size: 11px; }
.version { color: #bfd3ff; font-size: 11px; margin-top: 17px; }

.main-area {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 70%, rgba(255,255,255,.8), transparent 35%),
    linear-gradient(180deg, #eff5ff 0%, #f5f8ff 52%, #f2f6ff 100%);
}
.main-area::after {
  content: "✣";
  position: fixed;
  right: 24px;
  bottom: 26px;
  color: rgba(93, 145, 239, .14);
  font-size: 124px;
  transform: rotate(16deg);
  pointer-events: none;
}
.topbar {
  height: 73px;
  padding: 0 31px;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid #e6eefc;
  box-shadow: 0 3px 14px rgba(37, 78, 151, .03);
}
.breadcrumbs { color: #8b9dbc; font-size: 13px; gap: 12px; }
.breadcrumbs strong { color: #173771; font-size: 14px; }
.slash { color: #a9b9d5; }
.topbar-actions { gap: 19px; }
.icon-button { color: #193c7e; font-size: 23px; }
.notification-button svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.notification-button i { background: #ef343d; border-color: #fff; width: 8px; height: 8px; right: 1px; top: 2px; }
.weather-chip { display: inline-flex; align-items: center; gap: 7px; color: #48628d; font-size: 12px; white-space: nowrap; }
.weather-chip strong { color: #21447f; font-size: 13px; font-weight: 700; }
.weather-sun { color: #ffb700; font-size: 22px; line-height: 1; text-shadow: 0 0 9px rgba(255, 183, 0, .25); }
.role-switch { gap: 0; }
.role-switch > span { display: none; }
.role-switch select {
  min-width: 109px;
  padding: 10px 29px 10px 15px;
  border-radius: 20px;
  color: #1247a7;
  background: #e7f0ff;
  font-size: 12px;
}
.user-chip { gap: 10px; padding: 5px 3px 5px 5px; }
.user-chip:hover, .user-chip[aria-expanded="true"] { background: #eef4ff; }
.avatar { width: 37px; height: 37px; border: 2px solid #d5e5ff; background: #fff url("assets/animals/cat-blue.png") center / 145% auto no-repeat; color: transparent; font-size: 0; }
.user-meta { gap: 3px; }
.user-meta strong { color: #1a376f; font-size: 13px; }
.user-meta span { color: #8192b1; font-size: 10px; }
.chevron { color: #496899; }

.content { position: relative; z-index: 1; max-width: none; padding: 20px 28px 65px; }
.page-title-row { margin-bottom: 22px; }
.reference-hero {
  position: relative;
  min-height: 166px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 5px;
  padding: 18px 34px 18px;
  overflow: hidden;
  isolation: isolate;
}
.reference-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 78% 18%, rgba(207, 225, 255, .85), transparent 20%),
    radial-gradient(circle at 62% 90%, rgba(255,255,255,.88), transparent 28%),
    linear-gradient(112deg, rgba(237,245,255,.88), rgba(242,247,255,.35));
}
.reference-hero::after {
  content: "";
  position: absolute;
  right: 17%;
  bottom: -43px;
  width: 330px;
  height: 116px;
  border-radius: 50%;
  background: rgba(213, 229, 255, .48);
  filter: blur(2px);
  z-index: -1;
}
.reference-hero-copy { min-width: 0; position: relative; z-index: 2; }
.reference-hero .eyebrow { margin-bottom: 9px; color: #1549a9; font-size: 12px; letter-spacing: .04em; text-transform: none; }
.reference-hero .page-title { color: #123d91; font-size: clamp(30px, 3vw, 40px); font-weight: 800; letter-spacing: -.055em; line-height: 1.12; }
.reference-hero .page-lead { max-width: 620px; color: #6b81aa; font-size: 14px; margin-top: 10px; line-height: 1.65; }
.reference-hero-art { position: absolute; right: 20%; bottom: -10px; width: 230px; height: 190px; z-index: 1; pointer-events: none; }
.reference-hero-art img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 10px 8px rgba(53, 89, 156, .12)); }
.reference-hero-application,
.reference-hero-dashboard {
  min-height: 145px;
  margin: 0 0 14px;
  padding-inline: 32px;
  border: 1px solid #d7e6ff;
  border-radius: 24px;
  background: linear-gradient(105deg, #eaf3ff 0%, #e6f0ff 56%, #f3f8ff 100%);
  box-shadow: 0 9px 24px rgba(55, 105, 186, .07);
}
.reference-hero-application { margin-bottom: 8px; }
.reference-hero-application .reference-hero-art { right: 24%; width: 260px; height: 200px; bottom: -32px; }
.reference-hero-dashboard .reference-hero-art { right: 24%; width: 190px; height: 174px; bottom: -18px; }
.reference-hero-pets .reference-hero-art { right: 20%; width: 205px; height: 188px; }
.reference-hero-health .reference-hero-art { right: 20%; width: 205px; height: 188px; }
.reference-hero-approvals .reference-hero-art { right: 20%; width: 205px; height: 188px; }
.reference-hero-notices .reference-hero-art { right: 20%; width: 198px; height: 184px; }
.reference-hero-visits .reference-hero-art { right: 21%; width: 198px; height: 184px; }
.reference-hero-placements .reference-hero-art { right: 20%; width: 205px; height: 188px; }
.reference-hero-incidents .reference-hero-art { right: 20%; width: 190px; height: 178px; }
.reference-hero-settings .reference-hero-art { right: 19%; width: 190px; height: 178px; }
.reference-hero-incidents {
  min-height: 180px;
  margin-bottom: 14px;
  border: 1px solid #d7e6ff;
  border-radius: 23px;
  background: linear-gradient(105deg, #eaf3ff 0%, #e5efff 56%, #f3f8ff 100%);
  box-shadow: 0 9px 24px rgba(55, 105, 186, .07);
}
.reference-hero-incidents .reference-hero-art { right: 23%; width: 238px; height: 208px; bottom: -26px; }
.reference-hero-actions { position: relative; z-index: 3; flex: 0 0 auto; align-self: center; }
.reference-hero-actions .title-actions { display: flex; align-items: center; gap: 12px; }
.reference-hero-actions .primary-button,
.reference-hero-actions .secondary-button { min-height: 45px; border-radius: 13px; padding: 12px 19px; font-size: 13px; }
.reference-hero-actions .secondary-button { border-color: #d8e5f7; box-shadow: 0 4px 12px rgba(37, 79, 150, .04); }
.hero-paw { position: absolute; color: rgba(86, 140, 234, .18); font-size: 33px; transform: rotate(18deg); }
.hero-paw-one { left: 1px; top: 18px; }
.hero-paw-two { right: 31px; top: 31px; font-size: 27px; transform: rotate(-20deg); }

.primary-button, .secondary-button, .quiet-button { border-radius: 12px; padding: 11px 17px; font-size: 12px; }
.primary-button { background: linear-gradient(135deg, #1555c8, #1742a6); box-shadow: 0 7px 15px rgba(24, 75, 181, .2); }
.secondary-button { color: #1748a7; border-color: #d9e5f7; background: rgba(255,255,255,.94); }
.secondary-button:hover { background: #eef5ff; border-color: #9ab9ed; }

.stats-grid { gap: 19px; margin-bottom: 22px; }
.incidents-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat-card {
  min-height: 143px;
  padding: 20px 23px;
  border: 1px solid #e0eafa;
  border-radius: 19px;
  box-shadow: var(--reference-shadow);
  background: rgba(255,255,255,.93);
}
.stat-top { color: #526b9b; font-size: 14px; }
.stat-icon { width: 40px; height: 40px; border-radius: 50%; font-size: 21px; }
.stat-icon.green { background: #dff8e8; color: #13b66b; }
.stat-icon.orange { background: #fff0ce; color: #f3a90c; }
.stat-icon.blue { background: #e4efff; color: #2f79e7; }
.stat-icon.red { background: #ffe5e6; color: #ed4d55; }
.stat-number { margin-top: 16px; color: #123e94; font-size: 39px; }
.stat-note { color: #7f91b3; font-size: 12px; margin-top: 8px; }
.stat-note em { color: #1b58c5; }

.panel {
  border: 1px solid #e0eafa;
  border-radius: 19px;
  box-shadow: var(--reference-shadow);
  background: rgba(255,255,255,.95);
}
.panel-head { padding: 20px 24px; }
.panel-head h2 { color: #173f8d; font-size: 16px; }
.panel-head p { color: #8294b4; font-size: 11px; }
.panel-link { color: #1d58bd; font-size: 12px; }
.panel-divider { background: #edf2fb; }
.application-row { padding: 16px 24px; border-bottom-color: #edf2fb; }
.pet-thumb { width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(135deg, #e2edff, #f4f8ff); color: #2463c4; }
.pet-thumb { overflow: hidden; flex: 0 0 auto; }
.pet-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pet-cell { display: flex; align-items: center; gap: 12px; }
.application-main strong { color: #193f8c; font-size: 13px; }
.application-main span, .date-meta { color: #8193b4; font-size: 11px; }
.status-pill { padding: 6px 11px; font-size: 11px; }
.dashboard-grid { gap: 20px; }
.overview-chart { padding-inline: 24px; }
.quick-actions { padding-inline: 24px; }
.quick-action { border-color: #e1eafa; background: #fbfdff; border-radius: 14px; padding: 13px; }
.quick-action:hover { border-color: #7ca8eb; background: #eef5ff; }
.quick-action-icon { background: #e6f0ff; color: #1d5ac2; }
.notice-list { padding-inline: 24px; }
.notice { border-bottom-color: #edf2fb; }
.notice strong { color: #1d428d; font-size: 12px; }
.notice span { color: #8193b4; font-size: 11px; }

.toolbar {
  min-height: 72px;
  margin-bottom: 0;
  padding: 14px 20px;
  border: 1px solid #e0eafa;
  border-bottom: 0;
  border-radius: 19px 19px 0 0;
  background: rgba(255,255,255,.86);
}
.toolbar > div > strong { color: #173f8d; font-size: 16px; }
.toolbar .helper { color: #8294b4; font-size: 12px; }
.search-box { width: 440px; min-height: 49px; border: 1px solid #dbe7f8; border-radius: 13px; padding: 10px 15px; background: #fff; color: #9aacc8; }
.search-box input { color: #294773; font-size: 14px; }
.search-box input::placeholder { color: #91a2bf; }
.filter-row { gap: 12px; }
.filter-row select { min-width: 144px; min-height: 46px; border: 1px solid #dbe7f8; border-radius: 13px; padding: 10px 14px; color: #294773; font-size: 13px; background: #fff; }
.toolbar + .panel { border-top-left-radius: 0; border-top-right-radius: 0; }
.data-table th { padding: 15px 20px; background: #f5f9ff; border-bottom-color: #e1eafa; color: #6b80a3; font-size: 12px; }
.data-table td { padding: 18px 20px; border-bottom-color: #edf2fb; color: #50698f; font-size: 13px; }
.data-table tbody tr:hover { background: #f8fbff; }
.table-primary { color: #123f91; font-size: 13px; }
.table-secondary { color: #7f91b2; font-size: 12px; }
.table-action { color: #174aa7; font-size: 12px; }
.empty-state { padding: 74px 20px; color: #8092b1; font-size: 13px; }
.incident-empty { min-height: 365px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px; padding: 26px 20px 32px; }
.incident-empty img { width: 185px; height: 185px; object-fit: contain; filter: drop-shadow(0 10px 8px rgba(50, 90, 160, .12)); }
.incident-empty strong { color: #123c88; font-size: 20px; font-weight: 700; }
.incident-empty .primary-button { min-width: 150px; font-size: 14px; margin-top: 2px; }
.rule-note { margin-top: 19px; border: 1px solid #ffd276; border-radius: 15px; background: linear-gradient(90deg, #fff4d7, #fff9eb); color: #a56311; font-size: 12px; padding: 15px 20px; }

/* 申请页的卡片分层与参考稿一致：每个步骤独立成块，右栏固定显示流程。 */
.form-layout { grid-template-columns: minmax(0, 1fr) 420px; gap: 17px; }
.form-panel { padding: 0; border: 0; background: transparent; box-shadow: none; }
.form-section {
  margin-bottom: 16px;
  padding: 18px 30px;
  border: 1px solid #e0eafa;
  border-radius: 20px;
  background: rgba(255,255,255,.96);
  box-shadow: var(--reference-shadow);
}
.section-heading { margin-bottom: 15px; }
.section-number { width: 31px; height: 31px; border-radius: 10px; background: #e6f0ff; color: #1b59c2; font-size: 12px; }
.section-heading h2 { color: #17418f; font-size: 16px; }
.section-heading p { color: #8294b4; font-size: 11px; }
.form-grid { gap: 13px 20px; }
.field { gap: 6px; }
.field label { color: #58709a; font-size: 12px; }
.field input, .field select, .field textarea { min-height: 38px; border-color: #dbe7f6; border-radius: 10px; color: #34527d; padding: 8px 13px; font-size: 12px; }
.field input::placeholder, .field textarea::placeholder { color: #9aabc5; }
.field input[readonly] { background: #f9fbff; color: #50688e; }
.choice { min-height: 42px; border-color: #dbe7f6; border-radius: 10px; padding: 9px 15px; color: #59719a; }
.choice.selected { border-color: #3778dc; background: #edf5ff; color: #1549a8; box-shadow: inset 0 0 0 1px #8ab4f4; }
.upload-box { border-color: #9fc3ff; background: #f8fbff; border-radius: 14px; padding: 19px; }
.upload-icon { background: #e6f0ff; color: #2865c6; }
.upload-copy strong { color: #17418f; }
.upload-copy span { color: #8294b4; }
.upload-box button { border-color: #b9d2f6; color: #1b57ba; border-radius: 9px; }
.material-row { border-color: #e1eafa; border-radius: 12px; padding: 11px 13px; }
.material-row.uploaded { border-color: #6ea1ed; background: #eef5ff; }
.material-icon { background: #e7f0ff; color: #2564c6; }
.material-row strong { color: #173f8d; }
.material-row span:not(.material-icon) { color: #8395b4; }
.commitment-box { border-color: #dce8f7; border-radius: 14px; background: #f8fbff; }
.commitment-box p { color: #637b9f; }
.commitment-box label { color: #1c418a; }
.verification-row { border-top-color: #e4edf9; }
.verification-row strong { color: #17418f; }
.consent-item { border-color: #e1eafa; }
.sticky-card { top: 94px; padding: 24px 22px; border-radius: 20px; }
.sticky-card h2 { color: #17418f; font-size: 16px; }
.sticky-card > p { color: #8294b4; font-size: 11px; }
.step-list { margin-top: 24px; }
.step { padding-bottom: 24px; }
.step:not(:last-child)::after { border-left-color: #c9dcf7; }
.step-dot { width: 25px; height: 25px; border-color: #d1e0f5; color: #6f85a9; font-size: 11px; }
.step.done .step-dot, .step.active .step-dot { background: #1853bd; border-color: #1853bd; }
.step.active .step-dot { box-shadow: 0 0 0 5px #e2edff; }
.step strong { color: #17418f; font-size: 12px; }
.step span { color: #8294b4; font-size: 10px; }

.settings-grid { gap: 18px; }
.settings-card { padding: 24px; }
.settings-card h2 { color: #17418f; font-size: 16px; }
.settings-card > p { color: #8294b4; }
.setting-row { border-bottom-color: #e9eff9; }
.setting-row strong { color: #1d428c; }
.setting-row span { color: #8294b4; }

.floating-panel { border-color: #dce7f7; box-shadow: 0 22px 55px rgba(31, 73, 145, .18); }
.auth-card .brand-mark { background: linear-gradient(135deg, #1555c8, #173e9c); color: #fff; }
.auth-card .brand-mark svg { fill: currentColor; }

@media (max-width: 1200px) {
  .sidebar { width: 238px; flex-basis: 238px; }
  .form-layout { grid-template-columns: 1fr; }
  .sticky-card { position: static; }
  .reference-hero-art { right: 17%; opacity: .86; }
  .reference-hero-application .reference-hero-art, .reference-hero-dashboard .reference-hero-art { right: 19%; }
  .weather-chip { display: none; }
  .content { padding-inline: 22px; }
}

@media (max-width: 900px) {
  .reference-hero { min-height: 148px; padding-inline: 24px; }
  .reference-hero-art { right: 8%; opacity: .3; }
  .reference-hero-actions { position: relative; }
  .stats-grid { gap: 12px; }
  .stat-card { padding-inline: 17px; }
  .search-box { width: min(100%, 380px); }
}

@media (max-width: 760px) {
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; z-index: 30; width: 260px; flex-basis: 260px; transform: translateX(-100%); transition: .25s ease; }
  .sidebar.open { transform: translateX(0); }
  .topbar { height: 64px; padding-inline: 15px; }
  .breadcrumbs > span, .breadcrumbs .slash { display: none; }
  .breadcrumbs { font-size: 11px; }
  .breadcrumbs strong { font-size: 12px; }
  .topbar-actions { gap: 9px; }
  .weather-chip { display: none; }
  .content { padding: 16px 15px 40px; }
  .reference-hero,
  .reference-hero-application,
  .reference-hero-dashboard { min-height: 154px; padding: 20px 20px; border-radius: 18px; }
  .reference-hero-copy { max-width: 68%; }
  .reference-hero .page-title { font-size: 29px; }
  .reference-hero .page-lead { max-width: 65%; font-size: 11px; }
  .reference-hero-art { right: -45px; width: 165px !important; height: 155px !important; opacity: .22; }
  .incidents-stats { grid-template-columns: 1fr; }
  .incident-empty { min-height: 280px; }
  .incident-empty img { width: 130px; height: 130px; }
  .data-tools-card { grid-template-columns: 1fr; }
  .data-tools-actions { justify-content: flex-start; }
  .data-tool-hint { grid-column: auto; }
  .incident-empty strong { font-size: 14px; text-align: center; }
  .reference-hero-actions { align-self: end; }
  .reference-hero-actions .title-actions { flex-direction: column; align-items: stretch; gap: 7px; }
  .reference-hero-actions .primary-button, .reference-hero-actions .secondary-button { min-height: 38px; padding: 8px 11px; font-size: 10px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat-card { min-height: 112px; padding: 14px; border-radius: 15px; }
  .stat-top { font-size: 11px; }
  .stat-icon { width: 31px; height: 31px; font-size: 16px; }
  .stat-number { margin-top: 10px; font-size: 29px; }
  .stat-note { font-size: 10px; }
  .toolbar { align-items: stretch; flex-direction: column; border-radius: 15px 15px 0 0; padding: 12px; }
  .toolbar > div { width: 100%; }
  .search-box { width: 100%; min-height: 42px; }
  .filter-row { width: 100%; }
  .filter-row select { flex: 1; min-width: 0; min-height: 40px; font-size: 11px; }
  .data-table { min-width: 760px; }
  .panel { overflow-x: auto; border-radius: 15px; }
  .panel:has(> .data-table) {
    position: relative;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: #a9c2eb transparent;
  }
  .panel:has(> .data-table)::before {
    content: "左右滑动查看完整台账 →";
    position: sticky;
    left: 12px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    margin: 9px 0 1px 12px;
    padding: 0 10px;
    border: 1px solid #d7e5fa;
    border-radius: 999px;
    color: #5577ad;
    background: rgba(247, 250, 255, .96);
    box-shadow: 0 4px 12px rgba(43, 84, 149, .08);
    font-size: 10px;
    pointer-events: none;
  }
  .panel:has(> .data-table) .data-table { min-width: 820px; margin-top: 7px; }
  .panel:has(> .data-table) .table-actions { flex-wrap: nowrap; min-width: max-content; }
  .panel:has(> .data-table) .data-table th:first-child,
  .panel:has(> .data-table) .data-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    width: 168px;
    min-width: 168px;
    background: #fff;
    box-shadow: 8px 0 14px -12px rgba(33, 75, 137, .55);
  }
  .panel:has(> .data-table) .data-table th:first-child { z-index: 3; background: #f5f9ff; }
  .form-section { padding: 19px 17px; border-radius: 16px; }
  .sticky-card { padding: 19px 17px; }
  .reference-hero-application + .form-layout { margin-top: 0; }
  .main-area::after { font-size: 75px; right: -5px; }
}

/* 第二轮参考稿精修：使用本轮截图中的构图作为页面装饰层，业务 DOM 和交互保持独立。 */
.breadcrumb-home { display: inline-grid; place-items: center; width: 20px; height: 20px; color: #5575a9; }
.breadcrumb-home svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.breadcrumbs { gap: 11px; }
.sync-indicator { width: 0; min-width: 0; overflow: hidden; opacity: 0; margin: 0 -7px 0 -4px; }
.nav-item { min-height: 53px; }
.nav-icon { font-family: "Segoe UI Symbol", "Microsoft YaHei", sans-serif; }
.nav-icon svg { width: 20px; height: 20px; display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-icon .paw-icon { stroke: none; }
.nav-icon .paw-icon { width: 20px; height: 20px; display: block; fill: currentColor; }

/* 动态筛选和学院总览行使用原生 hidden 属性，确保筛选结果真的从布局中移除。 */
.college-dashboard-record[hidden] { display: none !important; }

@media (max-width: 760px) {
  html[data-app-role="college"][data-app-view="dashboard"] .college-record-thumb img {
    display: block;
    width: 36px;
    height: 36px;
    object-fit: contain;
  }
}
.avatar { background-image: var(--avatar-art, url("assets/animals/cat-blue.png")); background-size: 185%; background-position: center 18%; }

/* 参考稿的底部侧栏插画，按当前页面切换对应截图；上层透明按钮仍由原有导航处理。 */
.sidebar::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 360px;
  z-index: 2;
  pointer-events: none;
  background-image: var(--sidebar-reference-shot);
  background-repeat: no-repeat;
  background-size: 1672px 941px;
  background-position: 0 -581px;
  transform: none;
  /* 裁片上下渐入、右侧渐隐，避免参考图边界露出浅色矩形接缝。 */
  -webkit-mask-image:
    linear-gradient(to right, #000 0%, #000 68%, rgba(0, 0, 0, .38) 76%, transparent 84%),
    linear-gradient(to bottom, transparent 0, #000 9%, #000 100%);
  mask-image:
    linear-gradient(to right, #000 0%, #000 68%, rgba(0, 0, 0, .38) 76%, transparent 84%),
    linear-gradient(to bottom, transparent 0, #000 9%, #000 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.sidebar::after { z-index: 1; }

/* 规则设置页侧栏裁片去重：隐藏参考稿中残留的第二个导航项，再柔和过渡到吉祥物。 */
@media (min-width: 761px) {
  html:not([data-app-role="college"])[data-app-view="settings"] .sidebar::before {
    -webkit-mask-image:
      linear-gradient(to right, #000 0%, #000 68%, rgba(0, 0, 0, .38) 76%, transparent 84%),
      linear-gradient(to bottom, transparent 0%, transparent 7%, #000 15%, #000 100%);
    mask-image:
      linear-gradient(to right, #000 0%, #000 68%, rgba(0, 0, 0, .38) 76%, transparent 84%),
      linear-gradient(to bottom, transparent 0%, transparent 7%, #000 15%, #000 100%);
  }
}

.sidebar-footer > .sidebar-mascot,
.sidebar-footer > .support-card,
.sidebar-footer > .version { visibility: hidden; }

/* 参考图中的 Hero 场景裁片，移动端保留透明角色回退，避免固定桌面截图压缩。 */
.reference-hero-art {
  overflow: hidden;
  background-repeat: no-repeat;
  background-size: 1672px 941px;
}
.reference-hero-callout { display: none; }
.reference-hero-art img { opacity: 0; }
.reference-hero-art .hero-paw { display: none; }
.reference-hero-pets,
.reference-hero-health,
.reference-hero-notices,
.reference-hero-visits,
.reference-hero-placements,
.reference-hero-incidents { overflow: visible; }
.reference-hero-art { mix-blend-mode: multiply; -webkit-mask-image: radial-gradient(ellipse at center, #000 34%, transparent 88%); mask-image: radial-gradient(ellipse at center, #000 34%, transparent 88%); }
.reference-hero-application .reference-hero-art {
  right: 21%; width: 390px; height: 215px; bottom: -31px;
  background-image: url("assets/reference/student-application.png");
  background-position: -900px -82px;
}
.reference-hero-pets .reference-hero-art {
  right: 17%; width: 390px; height: 215px; bottom: -22px;
  background-image: url("assets/reference/student-pets.png");
  background-position: -1090px -82px;
}
.reference-hero-health .reference-hero-art {
  right: 17%; width: 390px; height: 215px; bottom: -18px;
  background-image: url("assets/reference/student-health.png");
  background-position: -1065px -78px;
}
.reference-hero-notices .reference-hero-art {
  right: 16%; width: 405px; height: 215px; bottom: -18px;
  background-image: url("assets/reference/student-notices.png");
  background-position: -1045px -78px;
}
.reference-hero-visits .reference-hero-art {
  right: 17%; width: 390px; height: 225px; bottom: -26px;
  background-image: url("assets/reference/student-visits.png");
  background-position: -1085px -76px;
}
.reference-hero-placements .reference-hero-art {
  right: 17%; width: 410px; height: 230px; bottom: -27px;
  background-image: url("assets/reference/student-placements.png");
  background-position: -1035px -88px;
}
.reference-hero-incidents .reference-hero-art {
  right: 20%; width: 420px; height: 225px; bottom: -25px;
  background-image: url("assets/reference/student-incidents.png");
  background-position: -910px -83px;
}
.reference-hero-approvals .reference-hero-art,
.reference-hero-settings .reference-hero-art {
  background-image: url("assets/reference/college-dashboard.png");
  background-position: -1030px -74px;
}
html[data-app-role="college"] .reference-hero-pets .reference-hero-art {
  background-image: url("assets/reference/college-pets-a.png");
  background-size: 1748px 900px;
  background-position: -1000px -76px;
}
html[data-app-role="college"] .reference-hero-dashboard .reference-hero-art {
  background-image: url("assets/reference/college-dashboard.png");
  background-size: 1752px 898px;
  background-position: -950px -78px;
}

/* 学生端各台账的间距、表头和行高，匹配参考稿的留白比例。 */
.reference-hero-pets ~ .toolbar {
  min-height: 88px;
  padding: 17px 20px;
  border-radius: 20px;
}
.reference-hero-pets ~ .toolbar .search-box { width: 502px; }
.reference-hero-pets ~ .toolbar .filter-row select:first-child { min-width: 158px; }
.reference-hero-pets ~ .toolbar .filter-row select:last-child { min-width: 166px; }
.reference-hero-pets ~ .panel {
  margin: 22px 20px 0;
  border-radius: 20px;
  overflow: hidden;
}
.reference-hero-pets ~ .panel .data-table th { padding: 17px 28px; font-size: 14px; }
.reference-hero-pets ~ .panel .data-table td { padding: 34px 28px; font-size: 14px; }
.reference-hero-pets ~ .panel .table-primary { font-size: 15px; }
.reference-hero-pets ~ .panel .table-secondary { font-size: 13px; }

.reference-hero-health ~ .stats-grid,
.reference-hero-notices ~ .stats-grid,
.reference-hero-visits ~ .stats-grid,
.reference-hero-placements ~ .stats-grid { margin-inline: 15px; gap: 22px; }
.reference-hero-health ~ .stats-grid .stat-card,
.reference-hero-placements ~ .stats-grid .stat-card { min-height: 168px; }
.reference-hero-health ~ .toolbar,
.reference-hero-notices ~ .toolbar,
.reference-hero-visits ~ .toolbar,
.reference-hero-placements ~ .toolbar {
  min-height: 72px;
  margin-bottom: 8px;
  padding-inline: 15px;
  border: 0;
  background: transparent;
}
.reference-hero-health ~ .panel,
.reference-hero-notices ~ .panel,
.reference-hero-visits ~ .panel,
.reference-hero-placements ~ .panel {
  margin-inline: 15px;
  border-radius: 20px;
  overflow: hidden;
}
.reference-hero-health ~ .panel .data-table th,
.reference-hero-notices ~ .panel .data-table th,
.reference-hero-visits ~ .panel .data-table th,
.reference-hero-placements ~ .panel .data-table th { padding: 17px 20px; font-size: 13px; }
.reference-hero-health ~ .panel .data-table td,
.reference-hero-notices ~ .panel .data-table td,
.reference-hero-visits ~ .panel .data-table td,
.reference-hero-placements ~ .panel .data-table td { padding: 24px 20px; font-size: 14px; }
.reference-hero-health ~ .rule-note,
.reference-hero-notices ~ .rule-note,
.reference-hero-visits ~ .rule-note,
.reference-hero-placements ~ .rule-note { margin-inline: 15px; }

.reference-hero .page-title { font-size: clamp(32px, 3.1vw, 43px); }
.reference-hero .page-lead { font-size: 15px; }
.reference-hero-pets .page-lead { max-width: 560px; }
.pet-thumb img { object-fit: cover; object-position: center 16%; transform: scale(1.22); }

/* 桌面参考图按原始 1672px 画布定位，保持插画与按钮的相对坐标。 */
@media (min-width: 1201px) {
  .reference-hero-application .reference-hero-art { left: 666px; right: auto; top: 5px; bottom: auto; width: 300px; height: 175px; background-position: -950px -98px; }
  .reference-hero-pets .reference-hero-art { left: 802px; right: auto; top: -26px; bottom: auto; width: 300px; height: 220px; background-position: -1090px -82px; }
  .reference-hero-health .reference-hero-art { left: 832px; right: auto; top: -5px; bottom: auto; width: 280px; height: 190px; background-position: -1120px -88px; }
  .reference-hero-notices .reference-hero-art { left: 832px; right: auto; top: 0; bottom: auto; width: 300px; height: 185px; background-position: -1120px -88px; }
  .reference-hero-visits .reference-hero-art { left: 862px; right: auto; top: -2px; bottom: auto; width: 240px; height: 205px; background-position: -1150px -84px; }
  .reference-hero-placements .reference-hero-art { left: 792px; right: auto; top: 0; bottom: auto; width: 290px; height: 210px; background-position: -1080px -94px; }
  .reference-hero-incidents .reference-hero-art { left: 662px; right: auto; top: 0; bottom: auto; width: 320px; height: 205px; background-position: -950px -92px; }
}

.reference-hero-pets ~ .panel .pet-thumb {
  background-image: url("assets/reference/student-pets.png");
  background-size: 1672px 941px;
  background-position: -337px -463px;
}
.reference-hero-pets ~ .panel .pet-thumb img { display: none; }
.reference-hero-health { overflow: hidden; }
.reference-hero-health .reference-hero-copy { transform: translateY(-8px); }
  .reference-hero-health ~ .stats-grid { transform: translateY(-7px); margin-bottom: 15px; }
  .reference-hero-health ~ .toolbar { transform: translateY(-7px); margin-bottom: 1px; }
  .reference-hero-health ~ .panel { transform: translateY(-7px); }
  .reference-hero-health ~ .stats-grid .stat-card { min-height: 170px; }
  .reference-hero-health ~ .toolbar { min-height: 83px; }
  .reference-hero-health ~ .panel .data-table td { padding-block: 20px; }
  .reference-hero-health ~ .panel { margin-left: 12px; margin-right: 12px; }
  .reference-hero-health ~ .panel .data-table { table-layout: fixed; }
  .reference-hero-health ~ .panel .data-table th,
  .reference-hero-health ~ .panel .data-table td { padding-left: 20px; padding-right: 20px; }
  .reference-hero-health ~ .panel .data-table th:nth-child(1),
  .reference-hero-health ~ .panel .data-table td:nth-child(1) { width: 18%; }
  .reference-hero-health ~ .panel .data-table th:nth-child(2),
  .reference-hero-health ~ .panel .data-table td:nth-child(2) { width: 12%; }
  .reference-hero-health ~ .panel .data-table th:nth-child(3),
  .reference-hero-health ~ .panel .data-table td:nth-child(3) { width: 13%; }
  .reference-hero-health ~ .panel .data-table th:nth-child(4),
  .reference-hero-health ~ .panel .data-table td:nth-child(4) { width: 14%; }
  .reference-hero-health ~ .panel .data-table th:nth-child(5),
  .reference-hero-health ~ .panel .data-table td:nth-child(5) { width: 16%; }
  .reference-hero-health ~ .panel .data-table th:nth-child(6),
  .reference-hero-health ~ .panel .data-table td:nth-child(6) { width: 11%; }
  .reference-hero-health ~ .panel .data-table th:nth-child(7),
  .reference-hero-health ~ .panel .data-table td:nth-child(7) { width: 9%; }
  .reference-hero-health ~ .panel .data-table th:nth-child(8),
  .reference-hero-health ~ .panel .data-table td:nth-child(8) { width: 7%; }
  .reference-hero-health ~ .panel .data-table tbody tr { height: 91px; }
  .reference-hero-health ~ .rule-note { margin-top: 39px; min-height: 75px; padding-block: 22px; position: relative; overflow: hidden; }
  .reference-hero-health ~ .panel .pet-thumb { width: 48px; height: 48px; }
  .reference-hero-health ~ .panel tbody tr:nth-child(1) .pet-thumb,
  .reference-hero-health ~ .panel tbody tr:nth-child(2) .pet-thumb { background-image: url("assets/reference/student-health.png"); background-size: 1672px 941px; background-repeat: no-repeat; }
  .reference-hero-health ~ .panel tbody tr:nth-child(1) .pet-thumb { background-position: -320px -598px; }
  .reference-hero-health ~ .panel tbody tr:nth-child(2) .pet-thumb { background-position: -320px -686px; }
  .reference-hero-health ~ .panel .pet-thumb img { display: none; }
  .reference-hero-health ~ .rule-note::before {
    content: "🐾";
    display: inline-block;
    margin-right: 16px;
    color: #f5a516;
    font-size: 27px;
    vertical-align: middle;
  }
  .reference-hero-health ~ .rule-note::after {
    content: "";
    position: absolute;
    right: 16px;
    bottom: -5px;
    width: 90px;
    height: 80px;
    background: url("assets/reference/student-health.png") no-repeat -1520px -820px / 1672px 941px;
    opacity: .9;
    -webkit-mask-image: linear-gradient(to top, #000 50%, transparent 100%);
    mask-image: linear-gradient(to top, #000 50%, transparent 100%);
  }
  .reference-hero-health ~ .stats-grid .stat-card:first-child { position: relative; overflow: hidden; }
  .reference-hero-health ~ .stats-grid .stat-card:first-child::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 4px;
    width: 112px;
    height: 86px;
    background: url("assets/reference/student-health.png") no-repeat -510px -348px / 1672px 941px;
    opacity: .86;
    mix-blend-mode: multiply;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 20%, #000 88%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 20%, #000 88%, transparent 100%);
  }

/* 事件空状态直接使用参考图里的“睡在箱子里”构图。 */
.incident-empty { position: relative; }
.incident-empty::before {
  content: "";
  width: 300px;
  height: 205px;
  display: block;
  flex: 0 0 205px;
  background: url("assets/reference/student-incidents.png") no-repeat -820px -535px / 1672px 941px;
}
.incident-empty img { display: none; }

@media (max-width: 760px) {
  .sync-indicator { display: none; }
  .sidebar::before { display: none; }
  .sidebar-footer > .sidebar-mascot,
  .sidebar-footer > .support-card,
  .sidebar-footer > .version { visibility: visible; }
  .reference-hero-art { background-image: none !important; background-size: auto; overflow: visible; mix-blend-mode: normal; }
  .reference-hero-art img { opacity: .22; }
  .reference-hero .page-title { font-size: 29px; }
  .reference-hero .page-lead { font-size: 11px; }
  .reference-hero-pets ~ .panel,
  .reference-hero-health ~ .panel,
  .reference-hero-notices ~ .panel,
  .reference-hero-visits ~ .panel,
  .reference-hero-placements ~ .panel,
  .reference-hero-health ~ .rule-note,
  .reference-hero-notices ~ .rule-note,
  .reference-hero-visits ~ .rule-note,
  .reference-hero-placements ~ .rule-note { margin-inline: 0; }
  .reference-hero-pets ~ .panel .data-table td,
  .reference-hero-health ~ .panel .data-table td,
  .reference-hero-notices ~ .panel .data-table td,
  .reference-hero-visits ~ .panel .data-table td,
  .reference-hero-placements ~ .panel .data-table td { padding: 18px 20px; }
  .incident-empty::before { width: 190px; height: 140px; background-size: 1254px 706px; background-position: -615px -400px; }
}

/* 第三轮逐页对齐：台账页的纵向节奏、筛选工具栏与参考图中的行高。 */
@media (min-width: 761px) {
  html {
    scrollbar-width: none;
  }
  html::-webkit-scrollbar {
    width: 0;
    height: 0;
  }

  /* 学院管理员参考稿是“档案总览”布局：把搜索栏并入大 Hero，并保留底部场景。 */
  html[data-app-role="college"] .sidebar {
    width: 228px;
    flex-basis: 228px;
  }
  html[data-app-role="college"] .topbar { height: 76px; }
  html[data-app-role="college"] .topbar { padding-left: 39px; padding-right: 30px; }
  html[data-app-role="college"] .content { padding: 0 44px 65px 34px; }
  html[data-app-role="college"] .sidebar::before {
    background-size: 1748px 900px;
    background-position: 0 -580px;
  }
  html[data-app-role="college"] .reference-hero-pets {
    min-height: 267px;
    margin: 0 0 0;
    padding: 22px 34px 18px 278px;
    border-radius: 0;
    overflow: visible;
  }
  html[data-app-role="college"] .reference-hero-pets .reference-hero-copy { align-self: start; margin-top: 23px; }
  html[data-app-role="college"] .reference-hero-pets .page-title { font-size: 40px; }
  html[data-app-role="college"] .reference-hero-pets .page-lead { max-width: 430px; }
  html[data-app-role="college"] .reference-hero-pets .reference-hero-art {
    left: 918px;
    right: auto;
    top: 34px;
    width: 420px;
    height: 225px;
    background-image: url("assets/animals/dog-blue.png"), url("assets/animals/rabbit.png"), url("assets/animals/cat-kmcu.png");
    background-repeat: no-repeat;
    background-size: 185px 185px, 150px 170px, 190px 190px;
    background-position: -20px 34px, 110px 35px, 205px 30px;
    mix-blend-mode: normal;
    filter: contrast(1.05) saturate(1.04);
    overflow: visible;
    clip-path: none;
    -webkit-mask-image: none;
    mask-image: none;
  }
  html[data-app-role="college"] .reference-hero-pets .reference-hero-copy::before {
    content: "";
    position: absolute;
    left: -260px;
    top: -17px;
    width: 280px;
    height: 225px;
    background: url("assets/reference/college-pets-a.png") no-repeat -270px -105px / 1748px 900px;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 35%, transparent 78%);
    mask-image: radial-gradient(ellipse at center, #000 35%, transparent 78%);
  }
  html[data-app-role="college"] .reference-hero-pets ~ .toolbar {
    position: relative;
    z-index: 4;
    margin: -104px 0 0 278px;
    min-height: 72px;
    padding: 14px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  html[data-app-role="college"] .reference-hero-pets ~ .toolbar .filter-row {
    position: absolute;
    right: 0;
    top: 49px;
    gap: 10px;
  }
  html[data-app-role="college"] .reference-hero-pets ~ .toolbar .filter-row select {
    width: 109px;
    padding-inline: 12px;
  }
  html[data-app-role="college"] .reference-hero-pets .reference-hero-actions {
    position: absolute;
    top: 92px;
    right: 10px;
  }
  html[data-app-role="college"] .reference-hero-pets .reference-hero-actions .secondary-button {
    min-width: 95px;
    min-height: 50px;
  }
  html[data-app-role="college"] .reference-hero-pets ~ .toolbar .search-box { width: 340px; }
  html[data-app-role="college"] .reference-hero-pets ~ .panel {
    position: relative;
    z-index: 3;
    margin: 24px 0 0;
    border-radius: 20px;
    padding: 22px 20px 0;
  }
  html[data-app-role="college"] .reference-hero-pets ~ .panel .data-table th { padding: 17px 22px; }
  html[data-app-role="college"] .reference-hero-pets ~ .panel .data-table td { padding: 27px 22px; }
  html[data-app-role="college"] .reference-hero-pets ~ .panel .data-table tbody tr { height: 122px; }
  html[data-app-role="college"] .reference-hero-pets ~ .panel .pet-thumb {
    background-image: url("assets/reference/college-pets-a.png");
    background-size: 1748px 900px;
    background-position: -306px -451px;
  }
  html[data-app-role="college"] .reference-hero-pets ~ .panel .pet-thumb img { display: none; }
  html[data-app-role="college"] .reference-hero-pets ~ .panel .table-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 72px;
    border-top: 1px solid #edf2fb;
  }
  html[data-app-role="college"] .reference-hero-pets ~ .panel .page-button,
  html[data-app-role="college"] .reference-hero-pets ~ .panel select {
    min-width: 38px;
    height: 38px;
    border: 1px solid #dbe7f8;
    border-radius: 10px;
    background: #fff;
    color: #7890b7;
    font-size: 14px;
  }
  html[data-app-role="college"] .reference-hero-pets ~ .panel .page-button.active { color: #174aa8; border-color: #477fe4; background: #eaf2ff; }
  html[data-app-role="college"] .reference-hero-pets ~ .panel select { min-width: 100px; padding-inline: 10px; font-size: 12px; }
  html[data-app-role="college"][data-app-view="pets"] .main-area::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 292px;
    z-index: 0;
    pointer-events: none;
    background: url("assets/reference/college-pets-a.png") no-repeat -228px -608px / 1748px 900px;
    opacity: .9;
  }
  html[data-app-role="college"][data-app-view="dashboard"] .main-area::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 260px;
    z-index: 0;
    pointer-events: none;
    background: url("assets/reference/college-dashboard.png") no-repeat 0 -638px / 1752px 898px;
    opacity: .72;
  }

  html[data-app-role="student"] .topbar { height: 74px; }
  html[data-app-role="student"] .reference-hero-pets {
    margin-bottom: 3px;
  }
  html[data-app-role="student"] .reference-hero-pets .reference-hero-art {
    left: 787px;
    right: auto;
    top: -26px;
    mix-blend-mode: normal;
    filter: contrast(1.15) saturate(1.1) brightness(1.01);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 9%, #000 91%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 9%, #000 91%, transparent 100%);
  }
  html[data-app-role="student"] .reference-hero-pets .reference-hero-actions .primary-button { min-width: 128px; }
  html[data-app-role="student"] .reference-hero-pets .reference-hero-actions .secondary-button { min-width: 91px; }
  html[data-app-role="student"] .reference-hero-pets ~ .toolbar {
    min-height: 90px;
    margin-bottom: 0;
  }
  html[data-app-role="student"] .reference-hero-pets ~ .panel {
    margin: 0;
    padding: 22px 20px 30px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }
  html[data-app-role="student"] .reference-hero-pets ~ .panel .data-table { width: 100%; }
  html[data-app-role="student"][data-app-view="pets"] .main-area::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 573px;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
    background: transparent;
  }
  html[data-app-role="student"][data-app-view="pets"] .main-area::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 573px;
    bottom: 0;
    z-index: 0;
    font-size: 0;
    transform: none;
    background:
      linear-gradient(180deg, transparent 0, transparent 120px, rgba(245, 248, 255, .12) 230px, rgba(245, 248, 255, .46) 330px, #f5f8ff 400px, #f5f8ff 100%),
      linear-gradient(90deg, transparent 0, transparent 820px, rgba(245, 248, 255, .12) 1020px, rgba(245, 248, 255, .48) 1280px, #f5f8ff 1430px, #f5f8ff 100%),
      url("assets/reference/student-pets.png") no-repeat -260px -573px / 1672px 941px;
  }

  .reference-hero-application {
    margin-left: -4px;
    margin-right: -19px;
    margin-bottom: 0;
    padding-left: 34px;
  }
  .reference-hero-application .reference-hero-art {
    left: 596px;
    right: auto;
    top: 2px;
    bottom: auto;
    width: 430px;
    height: 178px;
    background-position: -880px -96px;
    mix-blend-mode: normal;
    filter: contrast(1.22) saturate(1.12) brightness(.99);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 9%, #000 92%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 9%, #000 92%, transparent 100%);
  }
  .reference-hero-application + .form-layout {
    grid-template-columns: minmax(0, 1fr) 434px;
    gap: 14px;
    margin-left: -2px;
    margin-right: -19px;
  }
  .reference-hero-application + .form-layout .form-section:first-child { min-height: 386px; }
  .reference-hero-application + .form-layout .sticky-card {
    min-height: 454px;
    padding: 21px 22px 14px;
  }
  .reference-hero-application + .form-layout .step-list { margin-top: 20px; }
  .reference-hero-application + .form-layout .step { padding-bottom: 20px; }

  .reference-hero-notices {
    min-height: 159px;
    margin-top: -4px;
    margin-bottom: 16px;
    margin-left: 4px;
    margin-right: 4px;
    padding-left: 132px;
    border: 1px solid #d7e6ff;
    border-radius: 23px;
    background: linear-gradient(105deg, #eaf3ff 0%, #e6f0ff 56%, #f3f8ff 100%);
    box-shadow: 0 9px 24px rgba(55, 105, 186, .07);
    overflow: hidden;
  }
  .reference-hero-notices .reference-hero-copy::before {
    content: "";
    position: absolute;
    left: -82px;
    top: -8px;
    width: 66px;
    height: 66px;
    border-radius: 50%;
    -webkit-mask-image: radial-gradient(circle, #000 57%, transparent 78%);
    mask-image: radial-gradient(circle, #000 57%, transparent 78%);
    background: url("assets/reference/student-notices.png") no-repeat -337px -111px / 1672px 941px;
    filter: drop-shadow(0 5px 8px rgba(70, 118, 190, .12));
  }
  .reference-hero-notices .reference-hero-art {
    left: 762px;
    width: 460px;
    height: 178px;
    top: -2px;
    background-position: -1050px -88px;
    mix-blend-mode: normal;
    filter: contrast(1.2) saturate(1.12) brightness(.99);
    overflow: visible;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
  }
  .reference-hero-notices .reference-hero-art::after {
    display: none;
  }
  .reference-hero-notices .reference-hero-callout {
    position: absolute;
    left: 1112px;
    top: 47px;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 104px;
    height: 76px;
    box-sizing: border-box;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, .82);
    border-radius: 17px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(241, 247, 255, .9));
    color: #1749a8;
    line-height: 1.45;
    text-align: center;
    box-shadow: 0 8px 18px rgba(67, 113, 190, .08);
    pointer-events: none;
  }
  .reference-hero-notices .reference-hero-callout strong,
  .reference-hero-notices .reference-hero-callout span {
    display: block;
    font-size: 16px;
    font-weight: 700;
  }
  .reference-hero-notices .reference-hero-actions::before {
    display: none;
  }
  .reference-hero-notices ~ .stats-grid { margin-bottom: 10px; }
  .reference-hero-notices ~ .stats-grid .stat-card {
    height: 150px;
    min-height: 150px;
    padding-block: 16px;
  }
  .reference-hero-notices ~ .stats-grid .stat-number { margin-top: 8px; }
  .reference-hero-notices ~ .stats-grid .stat-note { margin-top: 4px; }
  .reference-hero-notices ~ .toolbar {
    min-height: 83px;
    margin-bottom: 8px;
  }
  .reference-hero-notices ~ .toolbar .search-box { width: 495px; }
  .reference-hero-notices ~ .toolbar .search-box,
  .reference-hero-notices ~ .toolbar .filter-row { transform: translateY(-3px); }
  .reference-hero-notices ~ .panel .data-table tbody tr { height: 122px; }
  .reference-hero-notices ~ .rule-note { min-height: 79px; margin-top: 25px; padding-block: 21px; }

  .reference-hero-visits {
    min-height: 189px;
    overflow: hidden;
    margin-left: -6px;
    margin-right: -6px;
    padding-left: 50px;
    padding-right: 40px;
    border: 1px solid #d7e6ff;
    border-radius: 24px;
    background: linear-gradient(105deg, #eaf3ff 0%, #e6f0ff 56%, #f3f8ff 100%);
    box-shadow: 0 9px 24px rgba(55, 105, 186, .07);
  }
  .reference-hero-visits .reference-hero-art {
    left: 462px;
    top: -10px;
    width: 575px;
    height: 205px;
    background-position: -750px -84px;
    mix-blend-mode: normal;
    filter: contrast(1.24) saturate(1.14) brightness(.99);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 9%, #000 91%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 9%, #000 91%, transparent 100%);
  }
  .reference-hero-visits ~ .stats-grid {
    margin-bottom: 0;
  }
  .reference-hero-visits ~ .stats-grid .stat-card { min-height: 182px; }
  .reference-hero-visits ~ .visits-toolbar {
    min-height: 86px;
    margin-bottom: 12px;
    padding-block: 11px;
  }
  .reference-hero-visits ~ .visits-toolbar .search-box { width: 495px; }
  .reference-hero-visits ~ .panel .data-table td { padding-block: 29px; }
  .reference-hero-visits ~ .panel .data-table tbody tr { height: 108px; }
  .reference-hero-visits ~ .panel .pet-thumb img {
    content: url("assets/animals/cat-blue.png");
    object-fit: contain;
    transform: scale(1.08);
  }
  .reference-hero-visits ~ .rule-note { min-height: 75px; margin-top: 26px; padding-block: 21px; }

  .reference-hero-placements {
    min-height: 188px;
    margin-top: 10px;
    margin-bottom: 23px;
    margin-left: -6px;
    margin-right: -6px;
    padding-left: 44px;
    padding-right: 40px;
    border: 1px solid #d7e6ff;
    border-radius: 24px;
    background: linear-gradient(105deg, #eaf3ff 0%, #e6f0ff 56%, #f3f8ff 100%);
    box-shadow: 0 9px 24px rgba(55, 105, 186, .07);
    overflow: hidden;
  }
  .reference-hero-placements .reference-hero-copy { transform: translateY(0); }
  .reference-hero-placements .reference-hero-art {
    left: 362px;
    top: -8px;
    width: 720px;
    height: 210px;
    background-position: -650px -94px;
    mix-blend-mode: normal;
    filter: contrast(1.28) saturate(1.18) brightness(.99);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
  }
  .reference-hero-placements ~ .stats-grid {
    margin-bottom: 8px;
    margin-left: -5px;
    margin-right: -5px;
  }
  .reference-hero-placements ~ .stats-grid .stat-card { min-height: 172px; }
  .reference-hero-placements ~ .panel { margin-left: -5px; margin-right: -5px; }
  .reference-hero-placements ~ .panel .data-table th,
  .reference-hero-placements ~ .panel .data-table td { padding-left: 32px; padding-right: 32px; }
  .reference-hero-placements ~ .panel .data-table { table-layout: fixed; }
  .reference-hero-placements ~ .panel .data-table th:nth-child(1),
  .reference-hero-placements ~ .panel .data-table td:nth-child(1) { width: 17%; }
  .reference-hero-placements ~ .panel .data-table th:nth-child(2),
  .reference-hero-placements ~ .panel .data-table td:nth-child(2) { width: 18%; }
  .reference-hero-placements ~ .panel .data-table th:nth-child(3),
  .reference-hero-placements ~ .panel .data-table td:nth-child(3) { width: 18%; }
  .reference-hero-placements ~ .panel .data-table th:nth-child(4),
  .reference-hero-placements ~ .panel .data-table td:nth-child(4) { width: 20%; }
  .reference-hero-placements ~ .panel .data-table th:nth-child(5),
  .reference-hero-placements ~ .panel .data-table td:nth-child(5) { width: 15%; }
  .reference-hero-placements ~ .panel .data-table th:nth-child(6),
  .reference-hero-placements ~ .panel .data-table td:nth-child(6) { width: 12%; }
  .reference-hero-placements ~ .panel .data-table tbody tr { height: 118px; }
  .reference-hero-placements ~ .rule-note { min-height: 75px; margin-top: 25px; margin-left: -5px; margin-right: -5px; padding-block: 21px; }

  .reference-hero-visits .reference-hero-actions .primary-button { min-width: 158px; }
  .reference-hero-placements .reference-hero-actions .primary-button { min-width: 185px; }

  /* 参考图里的裁片边缘很柔和，收窄蒙版能去掉截图背景的矩形接缝。 */
  .reference-hero-pets .reference-hero-art {
    -webkit-mask-image: radial-gradient(ellipse 55% 68% at 52% 47%, #000 27%, transparent 73%);
    mask-image: radial-gradient(ellipse 55% 68% at 52% 47%, #000 27%, transparent 73%);
  }
  .reference-hero-notices .reference-hero-art,
  .reference-hero-placements .reference-hero-art {
    -webkit-mask-image: radial-gradient(ellipse 58% 70% at 52% 47%, #000 31%, transparent 77%);
    mask-image: radial-gradient(ellipse 58% 70% at 52% 47%, #000 31%, transparent 77%);
  }
}

@media (max-width: 760px) {
  .reference-hero-visits,
  .reference-hero-placements { min-height: 166px; }
  .reference-hero-visits ~ .visits-toolbar { min-height: 72px; margin-bottom: 8px; }
  .reference-hero-visits ~ .visits-toolbar .search-box { width: 100%; }
  .reference-hero-visits ~ .panel .data-table td { padding-block: 18px; }
  .reference-hero-notices ~ .toolbar .search-box { width: 100%; }
}

@media (min-width: 761px) {
  .reference-hero-visits ~ .stats-grid .stat-card,
  .reference-hero-placements ~ .stats-grid .stat-card,
  .reference-hero-notices ~ .stats-grid .stat-card { position: relative; overflow: hidden; }
  .reference-hero-visits ~ .stats-grid .stat-card > *,
  .reference-hero-placements ~ .stats-grid .stat-card > *,
  .reference-hero-notices ~ .stats-grid .stat-card > * { position: relative; z-index: 1; }
  .reference-hero-visits ~ .stats-grid .stat-card::after,
  .reference-hero-placements ~ .stats-grid .stat-card::after,
  .reference-hero-notices ~ .stats-grid .stat-card::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 132px;
    height: 94px;
    z-index: 0;
    pointer-events: none;
    background-repeat: no-repeat;
    background-size: 1672px 941px;
    opacity: .9;
    mix-blend-mode: multiply;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 84%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 84%, transparent 100%);
  }
  .reference-hero-visits ~ .stats-grid .stat-card:nth-child(1)::after { background-image: url("assets/reference/student-visits.png"); background-position: -490px -376px; }
  .reference-hero-visits ~ .stats-grid .stat-card:nth-child(2)::after { background-image: url("assets/reference/student-visits.png"); background-position: -820px -376px; }
  .reference-hero-visits ~ .stats-grid .stat-card:nth-child(3)::after { background-image: url("assets/reference/student-visits.png"); background-position: -1160px -376px; }
  .reference-hero-visits ~ .stats-grid .stat-card:nth-child(4)::after { background-image: url("assets/reference/student-visits.png"); background-position: -1490px -376px; }
  .reference-hero-placements ~ .stats-grid .stat-card:nth-child(1)::after { background-image: url("assets/reference/student-placements.png"); background-position: -470px -376px; }
  .reference-hero-placements ~ .stats-grid .stat-card:nth-child(2)::after { background-image: url("assets/reference/student-placements.png"); background-position: -815px -376px; }
  .reference-hero-placements ~ .stats-grid .stat-card:nth-child(3)::after { background-image: url("assets/reference/student-placements.png"); background-position: -1160px -376px; }
  .reference-hero-placements ~ .stats-grid .stat-card:nth-child(4)::after { background-image: url("assets/reference/student-placements.png"); background-position: -1490px -376px; }
  .reference-hero-notices ~ .stats-grid .stat-card:nth-child(1)::after { background-image: url("assets/reference/student-notices.png"); background-position: -300px -290px; }
  .reference-hero-notices ~ .stats-grid .stat-card:nth-child(2)::after { background-image: url("assets/reference/student-notices.png"); background-position: -630px -290px; }
  .reference-hero-notices ~ .stats-grid .stat-card:nth-child(3)::after { background-image: url("assets/reference/student-notices.png"); background-position: -970px -290px; }
  .reference-hero-notices ~ .stats-grid .stat-card:nth-child(4)::after { background-image: url("assets/reference/student-notices.png"); background-position: -1320px -290px; }
}

/* 最后一轮桌面细节：统一截图裁片的融合方式，并修正各台账页的横向节奏。 */
@media (min-width: 761px) {
  html[data-app-role="student"] .reference-hero-pets .reference-hero-art,
  html[data-app-role="student"] .reference-hero-health .reference-hero-art,
  html[data-app-role="student"] .reference-hero-notices .reference-hero-art,
  html[data-app-role="student"] .reference-hero-visits .reference-hero-art,
  html[data-app-role="student"] .reference-hero-placements .reference-hero-art,
  html[data-app-role="student"] .reference-hero-incidents .reference-hero-art,
  html[data-app-role="student"] .reference-hero-application .reference-hero-art {
    mix-blend-mode: multiply;
    filter: contrast(1.9) saturate(1.5) brightness(1.08);
    -webkit-mask-image: radial-gradient(ellipse 59% 72% at 52% 48%, #000 24%, transparent 82%);
    mask-image: radial-gradient(ellipse 59% 72% at 52% 48%, #000 24%, transparent 82%);
  }

  /* 公示页的统计卡是“左图右文”构图。 */
  html[data-app-role="student"] .reference-hero-notices ~ .stats-grid,
  html[data-app-role="student"] .reference-hero-notices ~ .toolbar,
  html[data-app-role="student"] .reference-hero-notices ~ .panel,
  html[data-app-role="student"] .reference-hero-notices ~ .rule-note {
    margin-left: 4px;
    margin-right: 4px;
  }
  .reference-hero-notices ~ .stats-grid .stat-card {
    position: relative;
    overflow: hidden;
  }
  .reference-hero-notices ~ .stats-grid .stat-top {
    display: block;
    min-height: 43px;
    padding-left: 92px;
  }
  .reference-hero-notices ~ .stats-grid .stat-icon {
    position: absolute;
    left: 14px;
    top: 35px;
    width: 64px;
    height: 64px;
    opacity: 0;
  }
  .reference-hero-notices ~ .stats-grid .stat-number,
  .reference-hero-notices ~ .stats-grid .stat-note {
    margin-left: 92px;
  }
  .reference-hero-notices ~ .stats-grid .stat-card::after {
    left: 9px;
    right: auto;
    top: 34px;
    bottom: auto;
    width: 86px;
    height: 86px;
    opacity: 1;
    mix-blend-mode: multiply;
    -webkit-mask-image: radial-gradient(circle, #000 52%, transparent 76%);
    mask-image: radial-gradient(circle, #000 52%, transparent 76%);
  }
  .reference-hero-notices ~ .stats-grid .stat-card:nth-child(1)::after { background-position: -305px -300px; }
  .reference-hero-notices ~ .stats-grid .stat-card:nth-child(2)::after { background-position: -640px -300px; }
  .reference-hero-notices ~ .stats-grid .stat-card:nth-child(3)::after { background-position: -976px -300px; }
  .reference-hero-notices ~ .stats-grid .stat-card:nth-child(4)::after { background-position: -1318px -300px; }
  html[data-app-role="student"] .reference-hero-notices ~ .panel .data-table th { padding-block: 18px; }
  html[data-app-role="student"] .reference-hero-notices ~ .panel .data-table tbody tr { height: 117px; }

  /* 出入校页的 Hero 横跨到顶栏，筛选器与参考稿同宽。 */
  html[data-app-role="student"] .reference-hero-visits {
    margin-top: -19px;
    margin-bottom: 14px;
    margin-left: 14px;
    margin-right: -10px;
    min-height: 199px;
  }
  html[data-app-role="student"] .reference-hero-visits ~ .stats-grid,
  html[data-app-role="student"] .reference-hero-visits ~ .visits-toolbar,
  html[data-app-role="student"] .reference-hero-visits ~ .panel,
  html[data-app-role="student"] .reference-hero-visits ~ .rule-note {
    margin-left: 14px;
    margin-right: -10px;
  }
  html[data-app-role="student"] .reference-hero-visits ~ .visits-toolbar .search-box { width: 386px; }
  html[data-app-role="student"] .reference-hero-visits ~ .visits-toolbar .filter-row select { min-width: 164px; }

  /* 事件空态截图含一层白底，边缘用柔和蒙版融合到面板。 */
  html[data-app-role="student"] .incident-empty::before {
    mix-blend-mode: multiply;
    opacity: .92;
    -webkit-mask-image: radial-gradient(ellipse 58% 62% at 50% 50%, #000 28%, transparent 83%);
    mask-image: radial-gradient(ellipse 58% 62% at 50% 50%, #000 28%, transparent 83%);
  }
  html[data-app-role="student"] .reference-hero-incidents {
    margin-top: 5px;
    margin-left: -3px;
    margin-right: 2px;
  }
  html[data-app-role="student"] .reference-hero-incidents ~ .stats-grid .stat-card {
    height: 138px;
    min-height: 138px;
  }
  html[data-app-role="student"] .reference-hero-incidents ~ .toolbar {
    margin-top: -6px;
    min-height: 71px;
  }
  html[data-app-role="student"] .reference-hero-incidents ~ .panel .incident-empty {
    min-height: 384px;
  }

  html[data-app-role="student"] .reference-hero-health ~ .panel .data-table tbody tr { height: 89px; }
  html[data-app-role="student"] .reference-hero-health ~ .rule-note {
    height: 75px;
    min-height: 75px;
    padding-block: 17px;
    overflow: hidden;
  }
  html[data-app-role="student"] .reference-hero-health ~ .rule-note::after {
    mix-blend-mode: multiply;
    -webkit-mask-image: radial-gradient(ellipse 62% 68% at 50% 55%, #000 28%, transparent 82%);
    mask-image: radial-gradient(ellipse 62% 68% at 50% 55%, #000 28%, transparent 82%);
  }

  html[data-app-role="student"] .reference-hero-pets {
    margin-top: -2px;
  }
  html[data-app-role="student"] .reference-hero-pets ~ .panel { padding-bottom: 31px; }

  html[data-app-role="student"] .reference-hero-application {
    margin-right: -4px;
    margin-top: -1px;
  }
  html[data-app-role="student"] .reference-hero-application + .form-layout {
    margin-right: -2px;
  }
  html[data-app-role="student"] .reference-hero-application + .form-layout .sticky-card {
    height: 454px;
    min-height: 454px;
  }
}

/* 学院管理员总览的最终像素校准。 */
@media (min-width: 761px) {
  html[data-app-role="college"][data-app-view="dashboard"] .main-area::before { display: none; }
  html[data-app-role="college"][data-app-view="dashboard"] .sidebar { height: 100vh; min-height: 0; }
  html[data-app-role="college"][data-app-view="dashboard"] .brand-mark,
  html[data-app-role="college"] .brand-mark {
    background: linear-gradient(135deg, #ffb52a 0%, #f58b1f 100%);
    color: #173d87;
  }
  html[data-app-role="college"][data-app-view="dashboard"] .nav-item[data-view="dashboard"].active {
    color: #d7e4ff;
    border-left-color: transparent;
    background: transparent;
    box-shadow: none;
  }
  html[data-app-role="college"][data-app-view="dashboard"] .nav-item[data-view="pets"] {
    color: #fff;
    border-left-color: var(--reference-yellow);
    background: rgba(153, 190, 255, .28);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.09), 0 7px 18px rgba(1, 35, 117, .12);
  }
  html[data-app-role="college"][data-app-view="dashboard"] .college-dashboard-animals { left: 970px; }
  html[data-app-role="college"][data-app-view="dashboard"] .college-dashboard-cards { margin-top: 18px; }
  html[data-app-role="college"][data-app-view="dashboard"] .college-dashboard-page::after {
    -webkit-mask-image: linear-gradient(to right, #000 0, #000 190px, transparent 245px, transparent calc(100% - 365px), #000 calc(100% - 315px), #000 100%);
    mask-image: linear-gradient(to right, #000 0, #000 190px, transparent 245px, transparent calc(100% - 365px), #000 calc(100% - 315px), #000 100%);
  }
  html[data-app-role="college"][data-app-view="dashboard"] .college-record-thumb {
    background: url("assets/reference/college-dashboard.png") no-repeat -299px -374px / 1752px 898px;
  }
  html[data-app-role="college"][data-app-view="dashboard"] .college-record-thumb img { display: none; }
  html[data-app-role="college"][data-app-view="dashboard"] .college-trend-chart svg { height: 215px; }
  html[data-app-role="college"][data-app-view="dashboard"] .college-trend-chart { padding-top: 7px; }
  html[data-app-role="college"][data-app-view="dashboard"] .trend-y-labels { top: 18px; bottom: 42px; }
  html[data-app-role="college"][data-app-view="dashboard"] .college-dashboard-tip { margin-top: 26px; }
  html[data-app-role="college"][data-app-view="dashboard"] .college-dashboard-hero::after {
    content: "♡";
    position: absolute;
    left: 468px;
    top: 62px;
    color: rgba(245, 123, 141, .65);
    font-size: 31px;
    font-weight: 300;
    transform: rotate(-12deg);
  }
}

/* 学院总览在常见 1280/1440 宽度下保持三栏完整可见，避免快捷操作卡和装饰插画被裁切。 */
@media (min-width: 761px) and (max-width: 1550px) {
  html[data-app-role="college"][data-app-view="dashboard"] .college-dashboard-animals {
    left: auto;
    right: 44px;
    transform: scale(.78);
    transform-origin: right top;
  }
  html[data-app-role="college"][data-app-view="dashboard"] .college-dashboard-cards {
    grid-template-columns: minmax(320px, .92fr) minmax(380px, 1.08fr) minmax(190px, .55fr);
  }
  html[data-app-role="college"][data-app-view="dashboard"] .college-quick-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    padding: 7px 10px 16px;
  }
  html[data-app-role="college"][data-app-view="dashboard"] .college-quick-grid button {
    min-height: 92px;
    gap: 5px;
    padding: 0 2px;
  }
  html[data-app-role="college"][data-app-view="dashboard"] .college-quick-grid i {
    width: 30px;
    height: 30px;
    font-size: 18px;
  }
  html[data-app-role="college"][data-app-view="dashboard"] .college-quick-grid strong {
    font-size: 10px;
  }
}

@media (min-width: 761px) and (max-width: 1200px) {
  html[data-app-role="college"][data-app-view="dashboard"] .college-dashboard-cards {
    grid-template-columns: 1fr;
    height: auto;
  }
  html[data-app-role="college"][data-app-view="dashboard"] .college-dashboard-card {
    min-height: 315px;
  }
  html[data-app-role="college"][data-app-view="dashboard"] .college-quick-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  html[data-app-role="college"][data-app-view="dashboard"] .main-area::before { display: none; }
  html[data-app-role="college"] .brand-mark { background: linear-gradient(135deg, #ffb52a 0%, #f58b1f 100%); color: #173d87; }
}

@media (min-width: 761px) {
  /* 这组规则放在所有页面精修层之后，避免学生端插画被后续通用蒙版重新洗淡。 */
  html[data-app-role="student"] .reference-hero-pets .reference-hero-art,
  html[data-app-role="student"] .reference-hero-health .reference-hero-art,
  html[data-app-role="student"] .reference-hero-notices .reference-hero-art,
  html[data-app-role="student"] .reference-hero-visits .reference-hero-art,
  html[data-app-role="student"] .reference-hero-placements .reference-hero-art,
  html[data-app-role="student"] .reference-hero-incidents .reference-hero-art,
  html[data-app-role="student"] .reference-hero-application .reference-hero-art {
    mix-blend-mode: normal;
    filter: contrast(1.12) saturate(1.08) brightness(1.02);
    -webkit-mask-image: radial-gradient(ellipse 50% 66% at 52% 48%, #000 32%, transparent 76%);
    mask-image: radial-gradient(ellipse 50% 66% at 52% 48%, #000 32%, transparent 76%);
  }
  html[data-app-role="college"] .avatar { background-image: url("assets/animals/cat-kmcu.png"); }
  html[data-app-role="college"][data-app-view="dashboard"] .role-switch > span { display: inline; margin-right: 9px; color: #8092b3; }
  html[data-app-role="college"][data-app-view="dashboard"] .college-dashboard-table-head { font-size: 13px; }
  html[data-app-role="college"][data-app-view="dashboard"] .college-dashboard-record { font-size: 13px; }
  html[data-app-role="college"][data-app-view="dashboard"] .college-dashboard-record strong { font-size: 14px; }
  html[data-app-role="college"][data-app-view="dashboard"] .college-dashboard-record small { font-size: 12px; }
  html[data-app-role="college"][data-app-view="dashboard"] .college-card-heading h2 { font-size: 17px; }
  html[data-app-role="college"][data-app-view="dashboard"] .college-summary-tile small { font-size: 11px; }
  html[data-app-role="college"][data-app-view="dashboard"] .college-summary-tile em { font-size: 10px; }
  html[data-app-role="college"][data-app-view="dashboard"] .college-quick-grid strong {
    font-size: clamp(10px, .75vw, 12px);
    line-height: 1.25;
    text-align: center;
  }
  html[data-app-role="college"][data-app-view="dashboard"] .college-dashboard-left-art {
    -webkit-mask-image: radial-gradient(ellipse 58% 78% at 50% 47%, #000 25%, transparent 88%);
    mask-image: radial-gradient(ellipse 58% 78% at 50% 47%, #000 25%, transparent 88%);
  }
}

/* 出入校头图重点提亮：扩大有效蒙版，强化猫咪、校门徽标和建筑轮廓，同时保留柔和渐隐边缘。 */
@media (min-width: 1201px) {
  html[data-app-role="student"] .reference-hero-visits .reference-hero-art {
    opacity: 1;
    mix-blend-mode: multiply;
    filter: contrast(1.62) saturate(1.38) brightness(.99);
    -webkit-mask-image:
      linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .34) 8%, #000 20%, #000 78%, rgba(0, 0, 0, .72) 88%, transparent 100%),
      linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, .7) 8%, #000 18%, #000 76%, rgba(0, 0, 0, .58) 88%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
      linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .34) 8%, #000 20%, #000 78%, rgba(0, 0, 0, .72) 88%, transparent 100%),
      linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, .7) 8%, #000 18%, #000 76%, rgba(0, 0, 0, .58) 88%, transparent 100%);
    mask-composite: intersect;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
  }

  html[data-app-role="student"] .reference-hero-incidents .reference-hero-art {
    opacity: 1;
    mix-blend-mode: multiply;
    filter: contrast(1.58) saturate(1.34) brightness(1);
    -webkit-mask-image:
      linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .42) 7%, #000 17%, #000 70%, rgba(0, 0, 0, .68) 83%, transparent 100%),
      linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, .72) 7%, #000 17%, #000 76%, rgba(0, 0, 0, .6) 89%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
      linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .42) 7%, #000 17%, #000 70%, rgba(0, 0, 0, .68) 83%, transparent 100%),
      linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, .72) 7%, #000 17%, #000 76%, rgba(0, 0, 0, .6) 89%, transparent 100%);
    mask-composite: intersect;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
  }

  html[data-app-role="student"] .reference-hero-application .reference-hero-art {
    mix-blend-mode: normal;
    filter: contrast(1.22) saturate(1.12) brightness(.99);
    -webkit-mask-image:
      linear-gradient(to right, transparent 0%, #000 13%, #000 87%, transparent 100%),
      linear-gradient(to bottom, transparent 0%, #000 8%, #000 68%, rgba(0, 0, 0, .72) 80%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
      linear-gradient(to right, transparent 0%, #000 13%, #000 87%, transparent 100%),
      linear-gradient(to bottom, transparent 0%, #000 8%, #000 68%, rgba(0, 0, 0, .72) 80%, transparent 100%);
    mask-composite: intersect;
  }

  /* 新建申请右侧时间线：保持数字、连接线和说明文字在窄卡片内稳定对齐。 */
  html[data-app-role="student"] .reference-hero-application + .form-layout .sticky-card {
    display: flex;
    flex-direction: column;
    padding: 22px 24px 14px;
  }
  html[data-app-role="student"] .reference-hero-application + .form-layout .step-list {
    margin-top: 21px;
    padding-left: 2px;
  }
  html[data-app-role="student"] .reference-hero-application + .form-layout .step {
    min-height: 54px;
    gap: 14px;
    padding: 2px 6px 16px 0;
    align-items: flex-start;
  }
  html[data-app-role="student"] .reference-hero-application + .form-layout .step:last-child {
    min-height: 38px;
    padding-bottom: 2px;
  }
  html[data-app-role="student"] .reference-hero-application + .form-layout .step:not(:last-child)::after {
    left: 13px;
    top: 31px;
    bottom: -1px;
    width: 2px;
    border: 0;
    background: repeating-linear-gradient(to bottom, #b9d1f7 0 5px, transparent 5px 9px);
  }
  html[data-app-role="student"] .reference-hero-application + .form-layout .step::before {
    content: "";
    position: absolute;
    inset: -5px 0 8px -8px;
    border-radius: 13px;
    background: transparent;
    z-index: 0;
  }
  html[data-app-role="student"] .reference-hero-application + .form-layout .step.active::before {
    background: linear-gradient(90deg, rgba(223, 236, 255, .86), rgba(240, 247, 255, .36) 62%, transparent);
  }
  html[data-app-role="student"] .reference-hero-application + .form-layout .step > * {
    position: relative;
    z-index: 1;
  }
  html[data-app-role="student"] .reference-hero-application + .form-layout .step-dot {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    margin-top: 0;
    border: 1.5px solid #c5d9f5;
    background: #fbfdff;
    color: #738bad;
    font-size: 11px;
    line-height: 1;
    text-align: center;
    box-shadow: 0 2px 7px rgba(47, 91, 160, .07);
  }
  html[data-app-role="student"] .reference-hero-application + .form-layout .step.active .step-dot {
    background: linear-gradient(145deg, #2b73e6, #154daf);
    border-color: #1958bd;
    box-shadow: 0 0 0 4px #e7f0ff, 0 6px 13px rgba(27, 83, 179, .22);
  }
  html[data-app-role="student"] .reference-hero-application + .form-layout .step strong {
    font-size: 13px;
    line-height: 1.35;
    letter-spacing: .01em;
  }
  html[data-app-role="student"] .reference-hero-application + .form-layout .step > div > span {
    margin-top: 3px;
    color: #768cac;
    font-size: 10.5px;
    line-height: 1.45;
  }
  html[data-app-role="student"] .reference-hero-application + .form-layout .rule-note {
    display: flex;
    align-items: center;
    min-height: 60px;
    margin-top: auto;
    padding: 11px 14px;
    border-radius: 12px;
  }
}

@media (max-width: 760px) {
  html[data-app-role="college"][data-app-view="dashboard"] .college-dashboard-hero {
    height: 280px;
    padding: 0;
    border: 1px solid #dce8f8;
    border-radius: 20px;
    background: linear-gradient(135deg, #eaf3ff, #f8fbff);
  }
  html[data-app-role="college"][data-app-view="dashboard"] .college-dashboard-copy {
    left: 20px;
    top: 20px;
    width: calc(100% - 40px);
  }
  html[data-app-role="college"][data-app-view="dashboard"] .college-dashboard-eyebrow {
    min-height: 23px;
    padding: 0 9px;
    font-size: 11px;
  }
  html[data-app-role="college"][data-app-view="dashboard"] .college-dashboard-copy h1 {
    margin-top: 8px;
    font-size: 30px;
  }
  html[data-app-role="college"][data-app-view="dashboard"] .college-dashboard-copy p {
    margin-top: 8px;
    font-size: 11px;
    line-height: 1.55;
    white-space: normal;
  }
  html[data-app-role="college"][data-app-view="dashboard"] .college-dashboard-search {
    position: absolute;
    left: 0;
    top: 112px;
    display: flex;
    width: 100%;
    height: 43px;
    padding: 0 11px;
    border: 1px solid #dbe7f7;
    border-radius: 12px;
    background: rgba(255,255,255,.96);
  }
  html[data-app-role="college"][data-app-view="dashboard"] .college-dashboard-search span { font-size: 17px; }
  html[data-app-role="college"][data-app-view="dashboard"] .college-dashboard-search input { font-size: 11px; }
  html[data-app-role="college"][data-app-view="dashboard"] .college-dashboard-left-art {
    left: -12px;
    top: 116px;
    width: 165px;
    height: 164px;
    transform: scale(.7);
    transform-origin: left top;
    opacity: .62;
  }
  html[data-app-role="college"][data-app-view="dashboard"] .college-dashboard-animals {
    left: auto;
    right: -200px;
    top: 155px;
    width: 490px;
    height: 215px;
    transform: scale(.48);
    transform-origin: right top;
    opacity: .72;
  }
  html[data-app-role="college"][data-app-view="dashboard"] .college-dashboard-actions {
    top: 20px;
    right: 20px;
  }
  html[data-app-role="college"][data-app-view="dashboard"] .college-dashboard-actions .secondary-button {
    min-width: 76px;
    min-height: 40px;
    padding: 8px 11px;
    font-size: 11px;
  }
  html[data-app-role="college"][data-app-view="dashboard"] .college-dashboard-filters {
    top: 218px;
    left: 20px;
    right: 20px;
    gap: 8px;
  }
  html[data-app-role="college"][data-app-view="dashboard"] .college-dashboard-filters select {
    width: auto;
    flex: 1;
    height: 38px;
    padding: 0 9px;
    border: 1px solid #dbe7f7;
    border-radius: 11px;
    color: #365585;
    background: rgba(255,255,255,.96);
    font-size: 11px;
  }
  html[data-app-role="college"][data-app-view="dashboard"] .college-dashboard-table {
    height: 154px;
    margin-top: 16px;
    border: 1px solid #e0eafa;
    border-radius: 17px;
    background: rgba(255,255,255,.97);
    box-shadow: 0 9px 20px rgba(49,92,172,.08);
  }
  html[data-app-role="college"][data-app-view="dashboard"] .college-dashboard-table-head {
    height: 48px;
    padding: 0 16px;
    color: #7083a7;
    background: #f7faff;
    border-bottom: 1px solid #e7eef9;
    font-size: 11px;
  }
  html[data-app-role="college"][data-app-view="dashboard"] .college-dashboard-record {
    height: 88px;
    padding: 0 16px;
    color: #54709f;
    font-size: 11px;
  }
  html[data-app-role="college"][data-app-view="dashboard"] .college-dashboard-record strong { font-size: 12px; }
  html[data-app-role="college"][data-app-view="dashboard"] .college-dashboard-record small { margin-top: 5px; font-size: 10px; }
  html[data-app-role="college"][data-app-view="dashboard"] .college-record-thumb { width: 40px; height: 40px; border-radius: 12px; }
  html[data-app-role="college"][data-app-view="dashboard"] .college-record-pet { gap: 8px; }
  html[data-app-role="college"][data-app-view="dashboard"] .college-dashboard-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    height: auto;
    margin-top: 16px;
  }
  html[data-app-role="college"][data-app-view="dashboard"] .college-dashboard-card {
    min-height: 0;
    border: 1px solid #e0eafa;
    border-radius: 17px;
    background: rgba(255,255,255,.97);
    box-shadow: 0 9px 20px rgba(49,92,172,.08);
  }
  html[data-app-role="college"][data-app-view="dashboard"] .college-card-heading { height: 51px; padding: 0 16px; }
  html[data-app-role="college"][data-app-view="dashboard"] .college-card-heading h2 { font-size: 15px; }
  html[data-app-role="college"][data-app-view="dashboard"] .college-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 8px;
    padding: 0 12px 12px;
  }
  html[data-app-role="college"][data-app-view="dashboard"] .college-summary-tile {
    min-height: 86px;
    gap: 7px;
    padding: 8px;
    border-radius: 13px;
  }
  html[data-app-role="college"][data-app-view="dashboard"] .summary-tile-icon { width: 31px; height: 31px; border-radius: 10px; font-size: 15px; }
  html[data-app-role="college"][data-app-view="dashboard"] .college-summary-tile small { font-size: 9px; }
  html[data-app-role="college"][data-app-view="dashboard"] .college-summary-tile strong { font-size: 21px; }
  html[data-app-role="college"][data-app-view="dashboard"] .college-summary-tile em { margin-top: 4px; font-size: 8px; }
  html[data-app-role="college"][data-app-view="dashboard"] .college-trend-chart { height: 220px; padding: 5px 14px 0 34px; }
  html[data-app-role="college"][data-app-view="dashboard"] .college-trend-chart svg { height: 175px; }
  html[data-app-role="college"][data-app-view="dashboard"] .trend-y-labels { left: 8px; top: 14px; bottom: 35px; font-size: 9px; }
  html[data-app-role="college"][data-app-view="dashboard"] .trend-x-labels { font-size: 9px; }
  html[data-app-role="college"][data-app-view="dashboard"] .college-quick-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 8px;
    padding: 0 12px 12px;
  }
  html[data-app-role="college"][data-app-view="dashboard"] .college-quick-grid button { min-height: 78px; gap: 5px; border-radius: 12px; }
  html[data-app-role="college"][data-app-view="dashboard"] .college-quick-grid i { width: 28px; height: 28px; font-size: 17px; }
  html[data-app-role="college"][data-app-view="dashboard"] .college-quick-grid strong { font-size: 9px; }
  html[data-app-role="college"][data-app-view="dashboard"] .college-dashboard-tip {
    height: auto;
    min-height: 48px;
    margin-top: 16px;
    padding: 10px 12px;
    border-radius: 13px;
    font-size: 10px;
    line-height: 1.5;
  }
  html[data-app-role="college"][data-app-view="dashboard"] .college-dashboard-search input {
    display: block;
    min-width: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    outline: 0;
    border-radius: 0;
    background: transparent;
    color: #34558d;
    font: inherit;
    font-size: 11px;
    appearance: none;
  }
  html[data-app-role="college"][data-app-view="dashboard"] .college-dashboard-record > div { min-width: 0; }
  html[data-app-role="college"][data-app-view="dashboard"] .college-record-pet {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 88px;
  }
  html[data-app-role="college"][data-app-view="dashboard"] .college-record-thumb {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(135deg, #e1edff, #f4f8ff);
  }
  html[data-app-role="college"][data-app-view="dashboard"] .college-record-pet > span:last-child,
  html[data-app-role="college"][data-app-view="dashboard"] .college-dashboard-record > div:not(.college-record-pet) {
    min-width: 0;
  }
  html[data-app-role="college"][data-app-view="dashboard"] .college-dashboard-record strong,
  html[data-app-role="college"][data-app-view="dashboard"] .college-dashboard-record small {
    display: block;
  }
  html[data-app-role="college"][data-app-view="dashboard"] .college-dashboard-record strong { color: #17418f; font-weight: 800; white-space: nowrap; }
  html[data-app-role="college"][data-app-view="dashboard"] .college-dashboard-record small { color: #7d91b4; white-space: nowrap; }
  html[data-app-role="college"][data-app-view="dashboard"] .college-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  html[data-app-role="college"][data-app-view="dashboard"] .college-card-heading h2 { color: #17418f; font-weight: 800; }
  html[data-app-role="college"][data-app-view="dashboard"] .college-summary-tile {
    display: flex;
    align-items: center;
    gap: 7px;
    border: 0;
    text-align: left;
    color: #1a478e;
    font: inherit;
    appearance: none;
  }
  html[data-app-role="college"][data-app-view="dashboard"] .college-summary-tile.blue { background: linear-gradient(135deg, #edf5ff, #f5f9ff); }
  html[data-app-role="college"][data-app-view="dashboard"] .college-summary-tile.green { background: linear-gradient(135deg, #effbf3, #f7fcf8); }
  html[data-app-role="college"][data-app-view="dashboard"] .college-summary-tile.orange { background: linear-gradient(135deg, #fff8e9, #fffaf2); }
  html[data-app-role="college"][data-app-view="dashboard"] .college-summary-tile.purple { background: linear-gradient(135deg, #f4f0ff, #faf8ff); }
  html[data-app-role="college"][data-app-view="dashboard"] .summary-tile-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 31px;
    height: 31px;
    border-radius: 10px;
    background: #d9eaff;
    color: #3981e8;
    font-size: 15px;
  }
  html[data-app-role="college"][data-app-view="dashboard"] .college-summary-tile.green .summary-tile-icon { background: #dff7e8; color: #37b86f; }
  html[data-app-role="college"][data-app-view="dashboard"] .college-summary-tile.orange .summary-tile-icon { background: #fff0c9; color: #f2ab17; }
  html[data-app-role="college"][data-app-view="dashboard"] .college-summary-tile.purple .summary-tile-icon { background: #e8ddff; color: #8564dc; }
  html[data-app-role="college"][data-app-view="dashboard"] .college-summary-tile > span:last-child { display: block; min-width: 0; }
  html[data-app-role="college"][data-app-view="dashboard"] .college-summary-tile small,
  html[data-app-role="college"][data-app-view="dashboard"] .college-summary-tile strong,
  html[data-app-role="college"][data-app-view="dashboard"] .college-summary-tile em { display: block; }
  html[data-app-role="college"][data-app-view="dashboard"] .college-quick-grid button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid #e5edf8;
    border-radius: 12px;
    background: rgba(255,255,255,.78);
    color: #17418f;
    font: inherit;
    appearance: none;
  }
  html[data-app-role="college"][data-app-view="dashboard"] .college-quick-grid i {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-style: normal;
  }
  html[data-app-role="college"][data-app-view="dashboard"] .college-quick-grid i.quick-blue { background: #dceaff; color: #397ce2; }
  html[data-app-role="college"][data-app-view="dashboard"] .college-quick-grid i.quick-green { background: #dff7e9; color: #39b878; }
  html[data-app-role="college"][data-app-view="dashboard"] .college-quick-grid i.quick-orange { background: #fff0cc; color: #f1a31b; }
  html[data-app-role="college"][data-app-view="dashboard"] .college-quick-grid i.quick-purple { background: #eadfff; color: #8764dc; }
  html[data-app-role="college"][data-app-view="dashboard"] .college-quick-grid i.quick-slate { background: #e3ecfa; color: #5079b9; }
  html[data-app-role="college"][data-app-view="dashboard"] .college-quick-grid strong { color: #17418f; font-weight: 800; }
}

/* 登录入口最终层：覆盖基础工作台样式，确保登录页在所有断点下保持独立构图。 */
.auth-gate {
  z-index: 60;
  overflow: hidden;
  padding: clamp(16px, 3vw, 42px);
  background:
    radial-gradient(circle at 8% 12%, rgba(120, 170, 255, .24), transparent 25%),
    radial-gradient(circle at 92% 88%, rgba(255, 202, 103, .2), transparent 22%),
    linear-gradient(135deg, rgba(13, 43, 112, .72), rgba(61, 111, 205, .52));
  backdrop-filter: blur(15px) saturate(1.08);
}
.auth-shell { grid-template-columns: minmax(390px, .92fr) minmax(470px, 1.08fr); width: min(1120px, 100%); min-height: 680px; overflow: hidden; border: 1px solid rgba(255,255,255,.58); border-radius: 30px; background: rgba(255,255,255,.94); box-shadow: 0 35px 90px rgba(6,31,88,.32), 0 8px 22px rgba(255,255,255,.16) inset; }
body.auth-locked,
body.auth-locked .app-shell { overflow-x: clip; }
.auth-visual { min-height: 680px; }
.auth-card { align-content: center; width: auto; min-height: 680px; padding: 48px clamp(42px, 5vw, 78px) 40px; gap: 0; border-radius: 0; box-shadow: none; }
.auth-card-heading h1 { margin: 8px 0 7px; }
.auth-card-heading p { margin: 0; }
.auth-service-status { margin-bottom: 20px; }
.auth-field { margin-bottom: 15px; }
.auth-input-wrap { min-height: 48px; padding: 0; border: 1px solid #d9e4f2; border-radius: 13px; background: #fbfdff; }
.auth-input-wrap:focus-within { border-color: #d9e4f2; box-shadow: none; }
.auth-input-wrap input:focus,
.auth-input-wrap input:focus-visible { outline: none !important; outline-offset: 0; }
.auth-input-wrap input { width: 100%; height: 46px; padding: 0 12px; border: 0; border-radius: 0; background: transparent; font-size: 13px; }
.auth-field-action { height: 32px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; font-size: 11px; }
.auth-submit, .auth-demo-button { min-height: 49px; padding: 0 16px; border-radius: 13px; }
.auth-footnote { margin: 14px 0 0; }
.account-mode .role-switch { display: none; }

@media (max-width: 900px) and (min-width: 761px) {
  .auth-shell { grid-template-columns: minmax(330px, .84fr) minmax(420px, 1.16fr); }
  .auth-visual-top, .auth-visual-copy, .auth-feature-row { padding-left: 30px; padding-right: 30px; }
  .auth-visual-copy { padding-top: 66px; }
  .auth-mascot { right: -75px; width: 360px; height: 360px; }
  .auth-card { padding-inline: 38px; }
}
@media (max-width: 760px) {
  .auth-gate { align-items: start; overflow-x: hidden; overflow-y: auto; padding: 12px; }
  .auth-gate::before, .auth-gate::after { display: none; }
  .auth-shell { display: block; width: min(500px, 100%); min-height: auto; border-radius: 23px; }
  .auth-visual { display: none; }
  .auth-card { display: grid; min-height: auto; padding: 25px 21px 22px; border-radius: 23px; }
  .auth-mobile-brand { display: flex; }
  .demo-account-grid { gap: 7px; }
}
@media (max-width: 380px) {
  .auth-gate { padding: 7px; }
  .auth-card { padding-inline: 16px; }
  .demo-account-grid { grid-template-columns: 1fr; }
}

/* 移动端工作台头部：保留当前视角和退出入口，避免文字在窄屏下被挤成竖排。 */
@media (max-width: 760px) {
  .topbar { display: flex; align-items: center; min-width: 0; }
  .breadcrumbs {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
  }
  .breadcrumbs strong { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar-actions { flex: 0 0 auto; min-width: 0; }
  body.session-mode .logout-button {
    display: inline-grid;
    place-items: center;
    flex: 0 0 29px;
    width: 29px;
    height: 32px;
    padding: 0;
    font-size: 0;
    line-height: 1;
    white-space: nowrap;
  }
  body.session-mode .logout-button::before { content: "↪"; color: #315da8; font-size: 20px; }
  .role-switch { flex: 0 0 auto; min-width: 0; }
  .role-switch select {
    width: 109px;
    min-width: 109px;
    max-width: 109px;
    padding: 9px 22px 9px 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .user-chip { flex: 0 0 auto; min-width: 40px; }
}

/* 学生工作台 Hero 右侧装饰：补足参考稿中的宠物氛围，同时给操作按钮留出清晰层级。 */
@media (min-width: 761px) {
  html[data-app-role="student"] .reference-hero-dashboard .reference-hero-art {
    display: block;
    left: 50%;
    right: auto;
    top: -13px;
    bottom: auto;
    width: 340px;
    height: 215px;
    overflow: visible;
    opacity: 1;
    z-index: 1;
    mix-blend-mode: normal;
    -webkit-mask-image: none;
    mask-image: none;
    background: radial-gradient(ellipse at 52% 68%, rgba(112, 166, 244, .22), rgba(112, 166, 244, 0) 68%);
  }
  html[data-app-role="student"] .reference-hero-dashboard .reference-hero-art img {
    position: absolute;
    right: 22px;
    bottom: -33px;
    width: 215px;
    height: 215px;
    opacity: .26;
    object-fit: contain;
    filter: saturate(.92) contrast(1.05) drop-shadow(0 10px 8px rgba(53, 89, 156, .1));
  }
  html[data-app-role="student"] .reference-hero-dashboard .reference-hero-art .hero-paw {
    display: block;
    position: absolute;
    color: rgba(87, 143, 234, .3);
    line-height: 1;
    text-shadow: 0 5px 12px rgba(84, 135, 223, .08);
  }
  html[data-app-role="student"] .reference-hero-dashboard .reference-hero-art .hero-paw-one {
    left: 31px;
    top: 93px;
    font-size: 39px;
    transform: rotate(-18deg);
  }
  html[data-app-role="student"] .reference-hero-dashboard .reference-hero-art .hero-paw-two {
    left: 89px;
    top: 42px;
    font-size: 27px;
    opacity: .72;
    transform: rotate(16deg);
  }
  html[data-app-role="student"] .reference-hero-dashboard .reference-hero-art::after {
    content: "♡";
    position: absolute;
    left: 166px;
    top: 23px;
    color: rgba(91, 143, 230, .5);
    font-size: 33px;
    font-weight: 700;
    transform: rotate(-12deg);
  }
  html[data-app-role="student"] .reference-hero-dashboard .reference-hero-art::before {
    content: "";
    position: absolute;
    left: 104px;
    top: 60px;
    width: 205px;
    height: 112px;
    border: 1px solid rgba(105, 157, 239, .22);
    border-radius: 50%;
    transform: rotate(-13deg);
    box-shadow: 0 0 0 10px rgba(132, 177, 244, .035);
  }
}

@media (max-width: 760px) {
  html[data-app-role="student"] .reference-hero-dashboard .reference-hero-art {
    display: block;
    right: -46px;
    opacity: .1;
  }
  html[data-app-role="student"] .reference-hero-dashboard .reference-hero-art img { opacity: .2; }
}

/* 管理工作台 Hero 装饰：按部门身份切换吉祥物，并以轨迹、脚印和审批徽章填补中部留白。 */
@media (min-width: 1201px) {
  html[data-app-role="reviewer"] .reference-hero-dashboard .reference-hero-art,
  html[data-app-role="security"] .reference-hero-dashboard .reference-hero-art {
    display: block;
    left: 26.5%;
    right: auto;
    top: -14px;
    bottom: auto;
    width: 420px;
    height: 190px;
    overflow: visible;
    opacity: 1;
    z-index: 1;
    mix-blend-mode: normal;
    -webkit-mask-image: none;
    mask-image: none;
    background:
      radial-gradient(circle at 79% 26%, rgba(255, 255, 255, .85) 0 5%, transparent 6%),
      radial-gradient(ellipse at 51% 76%, rgba(108, 164, 244, .23), rgba(108, 164, 244, 0) 69%);
  }
  html[data-app-role="reviewer"] .reference-hero-dashboard .reference-hero-art img,
  html[data-app-role="security"] .reference-hero-dashboard .reference-hero-art img {
    position: absolute;
    left: 128px;
    bottom: -18px;
    width: 190px;
    height: 190px;
    opacity: .78;
    object-fit: contain;
    filter: saturate(.96) contrast(1.04) drop-shadow(0 12px 10px rgba(45, 87, 158, .13));
  }
  html[data-app-role="reviewer"] .reference-hero-dashboard .reference-hero-art img {
    content: url("assets/animals/rabbit.png");
  }
  html[data-app-role="security"] .reference-hero-dashboard .reference-hero-art img {
    content: url("assets/animals/bird.png");
  }
  html[data-app-role="reviewer"] .reference-hero-dashboard .reference-hero-art .hero-paw,
  html[data-app-role="security"] .reference-hero-dashboard .reference-hero-art .hero-paw {
    display: block;
    position: absolute;
    color: rgba(83, 140, 232, .28);
    line-height: 1;
    text-shadow: 0 5px 12px rgba(84, 135, 223, .08);
  }
  html[data-app-role="reviewer"] .reference-hero-dashboard .reference-hero-art .hero-paw-one,
  html[data-app-role="security"] .reference-hero-dashboard .reference-hero-art .hero-paw-one {
    left: 48px;
    top: 90px;
    font-size: 36px;
    transform: rotate(-18deg);
  }
  html[data-app-role="reviewer"] .reference-hero-dashboard .reference-hero-art .hero-paw-two,
  html[data-app-role="security"] .reference-hero-dashboard .reference-hero-art .hero-paw-two {
    left: 100px;
    top: 42px;
    font-size: 24px;
    opacity: .72;
    transform: rotate(16deg);
  }
  html[data-app-role="reviewer"] .reference-hero-dashboard .reference-hero-art::before,
  html[data-app-role="security"] .reference-hero-dashboard .reference-hero-art::before {
    content: "";
    position: absolute;
    left: 82px;
    top: 56px;
    width: 250px;
    height: 105px;
    border: 1px solid rgba(105, 157, 239, .2);
    border-radius: 50%;
    transform: rotate(-10deg);
    box-shadow: 0 0 0 10px rgba(132, 177, 244, .032);
  }
  html[data-app-role="reviewer"] .reference-hero-dashboard .reference-hero-art::after,
  html[data-app-role="security"] .reference-hero-dashboard .reference-hero-art::after {
    content: "✓";
    position: absolute;
    left: 300px;
    top: 37px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(78, 137, 228, .22);
    border-radius: 14px;
    background: rgba(255, 255, 255, .68);
    color: rgba(36, 102, 205, .68);
    font-size: 19px;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(72, 119, 194, .1);
    transform: rotate(7deg);
  }
}

/* 出入校横幅图像优化：让参考图裁片在不同桌面宽度下保持清晰、完整并避开操作按钮。 */
@media (min-width: 761px) {
  html[data-app-view="visits"] .reference-hero-visits .reference-hero-art {
    left: clamp(60px, calc(33% - 247px), 462px);
    width: 575px;
    height: 205px;
    transform: scale(1.06);
    transform-origin: 53% 100%;
    mix-blend-mode: normal;
    filter: contrast(1.82) saturate(1.38) brightness(1.01) drop-shadow(0 12px 10px rgba(53, 89, 156, .14));
    -webkit-mask-image:
      linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .7) 6%, #000 14%, #000 90%, rgba(0, 0, 0, .65) 96%, transparent 100%),
      linear-gradient(to bottom, transparent 0%, #000 9%, #000 92%, transparent 100%);
    mask-image:
      linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .7) 6%, #000 14%, #000 90%, rgba(0, 0, 0, .65) 96%, transparent 100%),
      linear-gradient(to bottom, transparent 0%, #000 9%, #000 92%, transparent 100%);
  }

  /* 只对场景一侧做轻量提亮，保留猫咪前景的自然色彩。 */
  html[data-app-view="visits"] .reference-hero-visits .reference-hero-art::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: url("assets/reference/student-visits.png") no-repeat -750px -84px / 1672px 941px;
    filter: contrast(1.85) saturate(1.2) brightness(1.02);
    opacity: .14;
    clip-path: inset(0 38% 0 0);
    pointer-events: none;
  }

  html[data-app-view="visits"] .reference-hero-visits .reference-hero-art > * {
    position: relative;
    z-index: 1;
  }
}

/* 窄桌面时给按钮和插画留出独立空间，避免猫咪被按钮遮挡。 */
@media (min-width: 761px) and (max-width: 1400px) {
  html[data-app-view="visits"] .reference-hero-visits .reference-hero-art {
    left: clamp(60px, calc(33% - 247px), 180px);
    width: 520px;
    transform: scale(1.02);
    transform-origin: 48% 100%;
  }
}

@media (max-width: 760px) {
  html[data-app-view="visits"] .reference-hero-visits .reference-hero-art::before {
    display: none;
  }
}

/* 毕业安置横幅图像优化：裁掉参考稿中的文字与按钮残片，强化毕业猫主体，并在窄桌面保留操作区。 */
@media (min-width: 1601px) {
  html[data-app-view="placements"] .reference-hero-placements .reference-hero-art {
    left: clamp(280px, calc(33vw - 240px), 600px);
    right: auto;
    top: -8px;
    bottom: auto;
    width: 500px;
    height: 210px;
    background-position: -900px -94px;
    transform: scale(1.06);
    transform-origin: 50% 100%;
    opacity: .9;
    mix-blend-mode: normal;
    filter: contrast(1.82) saturate(1.38) brightness(1.01) drop-shadow(0 12px 10px rgba(53, 89, 156, .13));
    -webkit-mask-image:
      linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .06) 12%, #000 23%, #000 82%, rgba(0, 0, 0, .45) 95%, transparent 100%),
      linear-gradient(to bottom, transparent 0%, #000 9%, #000 92%, transparent 100%);
    mask-image:
      linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .06) 12%, #000 23%, #000 82%, rgba(0, 0, 0, .45) 95%, transparent 100%),
      linear-gradient(to bottom, transparent 0%, #000 9%, #000 92%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
  }

  /* 叠加一层低透明度前景，补回截图裁片在浅色背景上的层次，但不复制原稿文字。 */
  html[data-app-view="placements"] .reference-hero-placements .reference-hero-art::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: url("assets/reference/student-placements.png") no-repeat -900px -94px / 1672px 941px;
    opacity: .14;
    filter: contrast(1.85) saturate(1.2) brightness(1.02);
    clip-path: ellipse(38% 78% at 51% 52%);
    pointer-events: none;
  }

  html[data-app-view="placements"] .reference-hero-placements .reference-hero-art > * {
    position: relative;
    z-index: 1;
  }
}

/* 窄桌面时使用更紧的裁片，避免毕业猫进入导出和登记按钮的点击区域。 */
@media (min-width: 761px) and (max-width: 1600px) {
  html[data-app-view="placements"] .reference-hero-placements .reference-hero-art {
    left: clamp(150px, calc(30vw - 180px), 280px);
    right: auto;
    top: -5px;
    bottom: auto;
    width: 420px;
    height: 200px;
    background-position: -900px -90px;
    transform: scale(1.02);
    transform-origin: 52% 100%;
    opacity: .72;
    mix-blend-mode: normal;
    filter: contrast(1.58) saturate(1.25) brightness(1.03) drop-shadow(0 10px 9px rgba(53, 89, 156, .1));
    -webkit-mask-image:
      linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .06) 12%, #000 23%, #000 82%, rgba(0, 0, 0, .45) 95%, transparent 100%),
      linear-gradient(to bottom, transparent 0%, #000 9%, #000 92%, transparent 100%);
    mask-image:
      linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .06) 12%, #000 23%, #000 82%, rgba(0, 0, 0, .45) 95%, transparent 100%),
      linear-gradient(to bottom, transparent 0%, #000 9%, #000 92%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
  }

  html[data-app-view="placements"] .reference-hero-placements .reference-hero-art::before {
    display: none;
  }
}

/* 移动端保留透明角色回退，不加载桌面截图裁片。 */
@media (max-width: 760px) {
  html[data-app-view="placements"] .reference-hero-placements .reference-hero-art {
    transform: none;
    opacity: 1;
    mix-blend-mode: normal;
    filter: none;
    background-image: none;
    background-position: center;
    background-size: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }

  html[data-app-view="placements"] .reference-hero-placements .reference-hero-art::before {
    display: none;
  }
}

/* 受限桌面宽度：优先保证标题、说明和操作按钮可读，保留一枚低调的毕业猫剪影。 */
@media (min-width: 1001px) and (max-width: 1235px) {
  html[data-app-view="placements"] .reference-hero-placements .reference-hero-art {
    left: clamp(180px, calc(100vw - 844px), 300px);
    right: auto;
    top: 0;
    bottom: auto;
    width: 240px;
    height: 190px;
    background-position: -1040px -94px;
    transform: scale(.96);
    transform-origin: 50% 100%;
    opacity: .34;
    mix-blend-mode: normal;
    filter: contrast(1.3) saturate(1.12) brightness(1.02);
    -webkit-mask-image:
      linear-gradient(to right, transparent 0%, #000 16%, #000 84%, transparent 100%),
      linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
    mask-image:
      linear-gradient(to right, transparent 0%, #000 16%, #000 84%, transparent 100%),
      linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
  }
}

/* 1000px 以下的桌面布局空间不足以同时承载截图裁片和操作区，交给纯内容布局。 */
@media (min-width: 761px) and (max-width: 1000px) {
  html[data-app-view="placements"] .reference-hero-placements .reference-hero-art {
    display: none;
  }
}

/* 1600px 临界点采用连续尺寸，避免拖动窗口时插画突然放大一档。 */
@media (min-width: 1501px) and (max-width: 1700px) {
  html[data-app-view="placements"] .reference-hero-placements .reference-hero-art {
    left: clamp(270px, calc(33vw - 240px), 600px);
    width: clamp(420px, calc(80vw - 860px), 500px);
    height: 210px;
    background-position: -900px -94px;
    transform: scale(1.04);
    transform-origin: 50% 100%;
    opacity: .81;
  }
}

/* 事件与违规横幅图像优化：沿用参考稿的猫咪与校园场景，收紧裁切边界并保留原始明度。 */
@media (min-width: 1701px) {
  html[data-app-view="incidents"] .reference-hero-incidents .reference-hero-art {
    left: clamp(561px, calc(34vw - 309px), 590px);
    right: auto;
    top: 0;
    bottom: auto;
    width: 410px;
    height: 200px;
    background-position: -845px -91px;
    transform: none;
    transform-origin: 52% 100%;
    opacity: .95;
    mix-blend-mode: multiply;
    filter: contrast(1.55) saturate(1.18) brightness(.98) drop-shadow(0 10px 9px rgba(53, 89, 156, .1));
    -webkit-mask-image:
      linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .3) 8%, #000 19%, #000 82%, rgba(0, 0, 0, .5) 94%, transparent 100%),
      linear-gradient(to bottom, transparent 0%, #000 9%, #000 91%, transparent 100%);
    mask-image:
      linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .3) 8%, #000 19%, #000 82%, rgba(0, 0, 0, .5) 94%, transparent 100%),
      linear-gradient(to bottom, transparent 0%, #000 9%, #000 91%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
  }
}

/* 顶部栏控件精修：压低天气光晕，统一选择器尺寸与箭头，避免系统控件撑宽或错位。 */
.weather-chip {
  align-items: center;
  gap: 6px;
  flex: 0 0 132px;
  width: 132px;
  min-width: 132px;
  min-height: 22px;
  line-height: 1;
  color: #536b95;
}
.weather-chip-button {
  justify-content: flex-start;
  border: 0;
  padding: 0;
  border-radius: 8px;
  background: transparent;
  font: inherit;
  cursor: pointer;
  transition: background-color .18s ease, opacity .18s ease;
}
.weather-chip-button:hover { background: rgba(225, 237, 255, .7); }
.weather-chip-button:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(61, 126, 220, .16);
}
.weather-chip-button.is-loading { opacity: .78; }
.weather-chip-button.is-fallback { color: #6a7895; }
.weather-chip-button.is-error { color: #7e8aa3; }
.weather-sun {
  display: inline-grid;
  place-items: center;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  color: #f2ad17;
  font-size: 20px;
  line-height: 1;
  text-shadow: none;
}
.weather-condition,
.weather-temperature {
  line-height: 1;
}
.weather-condition {
  min-width: 0;
  max-width: 48px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}
.weather-chip strong.weather-temperature {
  color: #284b83;
  font-size: 13px;
  letter-spacing: .01em;
  font-variant-numeric: tabular-nums;
}
.role-switch {
  position: relative;
  flex: 0 0 auto;
}
.role-switch::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid #315b9d;
  border-bottom: 1.5px solid #315b9d;
  transform: translateY(-68%) rotate(45deg);
  pointer-events: none;
  transition: transform .18s ease, border-color .18s ease;
}
.role-switch:focus-within::after {
  border-color: #174da8;
  transform: translateY(-38%) rotate(225deg);
}
.role-switch select {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 136px;
  min-width: 136px;
  height: 38px;
  padding: 0 30px 0 14px;
  border: 1px solid rgba(202, 220, 246, .78);
  border-radius: 20px;
  background: #e7f0ff;
  color: #174ca4;
  font-size: 12px;
  font-weight: 700;
  line-height: 36px;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.role-switch select:hover {
  border-color: #a9c8f1;
  background: #e5efff;
}
.role-switch select:focus-visible {
  outline: 0;
  border-color: #7da9e9;
  box-shadow: 0 0 0 3px rgba(61, 126, 220, .16);
}

@media (max-width: 760px) {
  .weather-chip-button:hover { background: transparent; }
  .role-switch::after { right: 13px; }
  .role-switch select {
    width: 109px;
    min-width: 109px;
    max-width: 109px;
    height: 36px;
    padding: 0 24px 0 11px;
    line-height: 34px;
  }
}

/* 标准桌面随可用空间平滑收窄，给标题与右侧操作区留出稳定的呼吸间距。 */
@media (min-width: 1251px) and (max-width: 1600px) {
  html[data-app-view="incidents"] .reference-hero-incidents .reference-hero-art {
    left: clamp(450px, calc(25vw + 150px), 550px);
    right: auto;
    top: -4px;
    bottom: auto;
    width: clamp(205px, calc(50vw - 420px), 360px);
    height: clamp(190px, calc(25vw - 150px), 205px);
    background-position: -930px -90px;
    transform: none;
    transform-origin: 52% 100%;
    opacity: .86;
    mix-blend-mode: multiply;
    filter: contrast(1.48) saturate(1.16) brightness(.98);
    -webkit-mask-image:
      linear-gradient(to right, transparent 0%, #000 14%, #000 84%, transparent 100%),
      linear-gradient(to bottom, transparent 0%, #000 9%, #000 91%, transparent 100%);
    mask-image:
      linear-gradient(to right, transparent 0%, #000 14%, #000 84%, transparent 100%),
      linear-gradient(to bottom, transparent 0%, #000 9%, #000 91%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
  }
}

/* 1500–1700px 之间连续过渡裁片尺寸与背景坐标，拖动窗口时主体不跳位。 */
@media (min-width: 1501px) and (max-width: 1700px) {
  html[data-app-view="incidents"] .reference-hero-incidents .reference-hero-art {
    left: clamp(525px, calc(25vw + 150px), 561px);
    right: auto;
    top: -3px;
    bottom: auto;
    width: clamp(330px, calc(50vw - 420px), 410px);
    height: clamp(200px, calc(242.7px - 2.51vw), 205px);
    background-position: calc(42.7vw - 1570px) -90px;
    transform: none;
    transform-origin: 52% 100%;
    opacity: .9;
    mix-blend-mode: multiply;
    filter: contrast(1.52) saturate(1.17) brightness(.98) drop-shadow(0 10px 9px rgba(53, 89, 156, .1));
    -webkit-mask-image:
      linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .18) 9%, #000 19%, #000 82%, rgba(0, 0, 0, .5) 94%, transparent 100%),
      linear-gradient(to bottom, transparent 0%, #000 9%, #000 91%, transparent 100%);
    mask-image:
      linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .18) 9%, #000 19%, #000 82%, rgba(0, 0, 0, .5) 94%, transparent 100%),
      linear-gradient(to bottom, transparent 0%, #000 9%, #000 91%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
  }
}

/* 画布不足时隐藏固定截图裁片，避免它压住按钮；移动端继续使用透明角色回退。 */
@media (min-width: 761px) and (max-width: 1250px) {
  html[data-app-view="incidents"] .reference-hero-incidents .reference-hero-art {
    display: none;
  }
}

@media (max-width: 760px) {
  html[data-app-view="incidents"] .reference-hero-incidents .reference-hero-art {
    display: block;
    left: auto;
    right: -45px;
    top: auto;
    bottom: -10px;
    width: 165px !important;
    height: 155px !important;
    transform: none;
    opacity: .22;
    mix-blend-mode: normal;
    filter: none;
    background-image: none !important;
    background-position: center;
    background-size: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
}

/* 事件统计卡的桌面构图：沿用参考稿的左侧状态图标、右侧数据组和浅色爪印。 */
@media (min-width: 761px) {
  html[data-app-role="student"][data-app-view="incidents"] .incidents-stats .stat-card {
    --incident-stat-copy-offset: 107px;
    position: relative;
    overflow: hidden;
    height: 138px;
    min-height: 138px;
    padding: 16px 23px;
  }

  html[data-app-role="student"][data-app-view="incidents"] .incidents-stats .stat-card > * {
    position: relative;
    z-index: 1;
  }

  html[data-app-role="student"][data-app-view="incidents"] .incidents-stats .stat-top {
    display: block;
    min-height: 32px;
    padding: 13px 0 0 var(--incident-stat-copy-offset);
    font-size: 16px;
    line-height: 1.2;
  }

  html[data-app-role="student"][data-app-view="incidents"] .incidents-stats .stat-top > span:first-child {
    color: #173f8f;
    font-weight: 700;
  }

  /* 保留原有字符作为无障碍文本，视觉图标由参考图裁片呈现。 */
  html[data-app-role="student"][data-app-view="incidents"] .incidents-stats .stat-icon {
    position: absolute;
    left: 20px;
    top: 20px;
    width: 64px;
    height: 64px;
    opacity: 0;
    pointer-events: none;
  }

  html[data-app-role="student"][data-app-view="incidents"] .incidents-stats .stat-number,
  html[data-app-role="student"][data-app-view="incidents"] .incidents-stats .stat-note {
    min-width: 0;
    margin-left: var(--incident-stat-copy-offset);
  }

  html[data-app-role="student"][data-app-view="incidents"] .incidents-stats .stat-number {
    margin-top: 8px;
    white-space: nowrap;
  }

  html[data-app-role="student"][data-app-view="incidents"] .incidents-stats .stat-note {
    margin-top: 4px;
  }

  /* 左侧状态徽章：只取原图图标区域，不覆盖动态数字。 */
  html[data-app-role="student"][data-app-view="incidents"] .incidents-stats .stat-card::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 17px;
    width: 86px;
    height: 86px;
    z-index: 0;
    pointer-events: none;
    background-image: url("assets/reference/student-incidents.png");
    background-repeat: no-repeat;
    background-size: 1672px 941px;
    background-position: -305px -311px;
    opacity: .98;
    mix-blend-mode: multiply;
    filter: contrast(1.06) saturate(1.02) brightness(.99);
    -webkit-mask-image: radial-gradient(circle, #000 52%, transparent 78%);
    mask-image: radial-gradient(circle, #000 52%, transparent 78%);
  }

  html[data-app-role="student"][data-app-view="incidents"] .incidents-stats .stat-card:nth-child(2)::before {
    background-position: -740px -311px;
  }

  html[data-app-role="student"][data-app-view="incidents"] .incidents-stats .stat-card:nth-child(3)::before {
    background-position: -1185px -311px;
  }

  /* 右侧装饰爪印降低到背景层，增加卡片识别度但不抬高曝光。 */
  html[data-app-role="student"][data-app-view="incidents"] .incidents-stats .stat-card::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 9px;
    width: 132px;
    height: 94px;
    z-index: 0;
    pointer-events: none;
    background-image: url("assets/reference/student-incidents.png");
    background-repeat: no-repeat;
    background-size: 1672px 941px;
    background-position: -578px -326px;
    opacity: .78;
    mix-blend-mode: multiply;
    -webkit-mask-image: radial-gradient(ellipse 82% 78% at 62% 52%, #000 42%, transparent 92%);
    mask-image: radial-gradient(ellipse 82% 78% at 62% 52%, #000 42%, transparent 92%);
  }

  html[data-app-role="student"][data-app-view="incidents"] .incidents-stats .stat-card:nth-child(2)::after {
    background-position: -1018px -326px;
  }

  html[data-app-role="student"][data-app-view="incidents"] .incidents-stats .stat-card:nth-child(3)::after {
    background-position: -1510px -326px;
  }
}

/* 中等桌面收紧图文间距并降低爪印对文字的干扰。 */
@media (min-width: 761px) and (max-width: 1250px) {
  html[data-app-role="student"][data-app-view="incidents"] .incidents-stats .stat-card {
    --incident-stat-copy-offset: 96px;
  }

  html[data-app-role="student"][data-app-view="incidents"] .incidents-stats .stat-card::after {
    opacity: .22;
  }
}

/* 窄桌面改为两列，保留左图右文关系并给说明文字留出最小宽度。 */
@media (min-width: 761px) and (max-width: 1100px) {
  html[data-app-role="student"][data-app-view="incidents"] .incidents-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html[data-app-role="student"][data-app-view="incidents"] .incidents-stats .stat-card::after {
    opacity: .16;
  }
}

/* 新建申请页 Hero 插画融合层：让截图裁片回到底层渐变，边缘自然收束。 */
@media (min-width: 761px) {
  html[data-app-view="application"] .reference-hero-application .reference-hero-art {
    opacity: .96;
    mix-blend-mode: multiply;
    filter: contrast(1.16) saturate(1.08) brightness(.99);
    background-color: transparent;
    background-repeat: no-repeat;
    -webkit-mask-image:
      linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .18) 8%, #000 18%, #000 82%, rgba(0, 0, 0, .18) 92%, transparent 100%),
      linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, .30) 8%, #000 20%, #000 60%, rgba(0, 0, 0, .55) 72%, transparent 86%);
    mask-image:
      linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .18) 8%, #000 18%, #000 82%, rgba(0, 0, 0, .18) 92%, transparent 100%),
      linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, .30) 8%, #000 20%, #000 60%, rgba(0, 0, 0, .55) 72%, transparent 86%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
  }
}

/* 学院管理员的非专属页面（含校内公示）复用学生侧栏截图：补齐裁片尾部，保留吉祥物原位并让边缘融入深蓝背景。 */
@media (min-width: 761px) {
  html[data-app-role="college"]:not([data-app-view="dashboard"]):not([data-app-view="pets"]):not([data-app-view="approvals"]):not([data-app-view="settings"]) .sidebar::before {
    /* 这些页面实际使用 student-pets.png；沿用现有比例避免吉祥物和支持卡跳位。 */
    background-image:
      linear-gradient(to bottom, transparent 0%, transparent 78%, rgba(24, 57, 145, .35) 86%, rgba(24, 60, 153, .82) 93%, #1a3e9c 100%),
      var(--sidebar-reference-shot);
    background-size: 100% 100%, 1748px 900px;
    background-position: 0 0, 0 -580px;
    background-color: #1a3e9c;
    opacity: .92;
    mix-blend-mode: normal;
    filter: contrast(.99) saturate(.95) brightness(.99);
    -webkit-mask-image:
      linear-gradient(to right, rgba(0, 0, 0, .30) 0%, #000 8%, #000 72%, rgba(0, 0, 0, .48) 88%, transparent 100%),
      linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, .72) 5%, #000 11%, #000 92%, rgba(0, 0, 0, .65) 97%, transparent 100%);
    mask-image:
      linear-gradient(to right, rgba(0, 0, 0, .30) 0%, #000 8%, #000 72%, rgba(0, 0, 0, .48) 88%, transparent 100%),
      linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, .72) 5%, #000 11%, #000 92%, rgba(0, 0, 0, .65) 97%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
  }
}

/* 审批中心侧栏融合层：补齐学院专属裁片的底部空段，并让戴帽小狗的右缘自然收束到深蓝背景。 */
@media (min-width: 761px) {
  html[data-app-role="college"][data-app-view="approvals"] .sidebar::before {
    background-image:
      linear-gradient(to bottom, transparent 0%, transparent 78%, rgba(24, 57, 145, .35) 86%, rgba(24, 60, 153, .82) 93%, #1a3e9c 100%),
      var(--sidebar-reference-shot);
    background-size: 100% 100%, 1748px 900px;
    background-position: 0 0, 0 -580px;
    background-color: #1a3e9c;
    opacity: .92;
    mix-blend-mode: normal;
    filter: contrast(.99) saturate(.95) brightness(.99);
    -webkit-mask-image:
      linear-gradient(to right, rgba(0, 0, 0, .30) 0%, #000 8%, #000 72%, rgba(0, 0, 0, .48) 88%, transparent 100%),
      linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, .72) 5%, #000 11%, #000 92%, rgba(0, 0, 0, .65) 97%, transparent 100%);
    mask-image:
      linear-gradient(to right, rgba(0, 0, 0, .30) 0%, #000 8%, #000 72%, rgba(0, 0, 0, .48) 88%, transparent 100%),
      linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, .72) 5%, #000 11%, #000 92%, rgba(0, 0, 0, .65) 97%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
  }
}

/* 规则设置侧栏融合层：学院专属场景的猫咪与支持卡沿用同一套低曝光渐隐。 */
@media (min-width: 761px) {
  html[data-app-role="college"][data-app-view="settings"] .sidebar::before {
    background-image:
      linear-gradient(to bottom, transparent 0%, transparent 78%, rgba(24, 57, 145, .35) 86%, rgba(24, 60, 153, .82) 93%, #1a3e9c 100%),
      var(--sidebar-reference-shot);
    background-size: 100% 100%, 1748px 900px;
    background-position: 0 0, 0 -580px;
    background-color: #1a3e9c;
    opacity: .92;
    mix-blend-mode: normal;
    filter: contrast(.99) saturate(.95) brightness(.99);
    -webkit-mask-image:
      linear-gradient(to right, rgba(0, 0, 0, .30) 0%, #000 8%, #000 72%, rgba(0, 0, 0, .48) 88%, transparent 100%),
      linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, .72) 5%, #000 11%, #000 92%, rgba(0, 0, 0, .65) 97%, transparent 100%);
    mask-image:
      linear-gradient(to right, rgba(0, 0, 0, .30) 0%, #000 8%, #000 72%, rgba(0, 0, 0, .48) 88%, transparent 100%),
      linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, .72) 5%, #000 11%, #000 92%, rgba(0, 0, 0, .65) 97%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
  }
}

/* 台账 Hero 融合层：源截图只保留柔和的场景与主体，避免白色矩形和过曝感。 */
@media (min-width: 761px) {
  html[data-app-view="visits"] .reference-hero-visits .reference-hero-art,
  html[data-app-view="placements"] .reference-hero-placements .reference-hero-art,
  html[data-app-view="incidents"] .reference-hero-incidents .reference-hero-art {
    /* darken 让源图的浅色像素回到底层渐变，深色主体仍保持清晰。 */
    opacity: .88;
    mix-blend-mode: darken;
    filter: saturate(.94) contrast(1.05) brightness(.96);
    -webkit-mask-image:
      radial-gradient(ellipse 42% 78% at 52% 49%, #000 30%, rgba(0, 0, 0, .9) 48%, rgba(0, 0, 0, .46) 72%, transparent 100%),
      linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, .72) 9%, #000 18%, #000 80%, rgba(0, 0, 0, .35) 93%, transparent 100%);
    mask-image:
      radial-gradient(ellipse 42% 78% at 52% 49%, #000 30%, rgba(0, 0, 0, .9) 48%, rgba(0, 0, 0, .46) 72%, transparent 100%),
      linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, .72) 9%, #000 18%, #000 80%, rgba(0, 0, 0, .35) 93%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
  }

  /* 原规则中的提亮叠层会重新带出截图底色，这三页统一关闭。 */
  html[data-app-view="visits"] .reference-hero-visits .reference-hero-art::before,
  html[data-app-view="placements"] .reference-hero-placements .reference-hero-art::before,
  html[data-app-view="incidents"] .reference-hero-incidents .reference-hero-art::before {
    display: none;
  }
}

/* 宠物档案页底部场景：按主内容区宽度等比铺开源图的有效区域，并让顶部自然融入页面底色。 */
@media (min-width: 761px) {
  html[data-app-role="college"][data-app-view="pets"] .main-area::before {
    /* 场景源区从 y=608 开始，高度 292px；随主区宽度等比换算，避免带出源表格底部。 */
    height: clamp(112px, calc(19.21vw - 44px), 700px);
    background-image: url("assets/reference/college-pets-a.png");
    background-repeat: no-repeat;
    /* 源图左侧 228px 是侧栏，115% 恰好让其落到主区之外，主场景全宽且不拉伸。 */
    background-size: 115% auto;
    background-position: right bottom;
    opacity: .78;
    mix-blend-mode: darken;
    filter: saturate(.90) contrast(1.03) brightness(.97);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, .48) 5%, #000 15%, #000 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, .48) 5%, #000 15%, #000 100%);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
  }

  /* 侧栏吉祥物保留完整轮廓，最后几个像素再压回品牌蓝，消除截图裁片的亮色竖缝。 */
  html[data-app-role="college"][data-app-view="pets"] .sidebar::before {
    background-image:
      linear-gradient(to right, transparent 0%, transparent 87%, rgba(26, 62, 156, .35) 90%, rgba(26, 62, 156, .88) 93%, #1a3e9c 96%, #1a3e9c 100%),
      linear-gradient(to bottom, transparent 0%, transparent 78%, rgba(24, 57, 145, .35) 86%, rgba(24, 60, 153, .82) 93%, #1a3e9c 100%),
      var(--sidebar-reference-shot);
    background-size: 100% 100%, 100% 100%, 1748px 900px;
    background-position: 0 0, 0 0, 0 -580px;
    background-color: #1a3e9c;
    opacity: .92;
    mix-blend-mode: normal;
    filter: contrast(.99) saturate(.95) brightness(.99);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, .72) 5%, #000 11%, #000 92%, rgba(0, 0, 0, .65) 97%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, .72) 5%, #000 11%, #000 92%, rgba(0, 0, 0, .65) 97%, transparent 100%);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
  }
}
