:root {
      --brand: oklch(54% 0.17 258);
      --brand-soft: oklch(97% 0.025 250);
      --orange: oklch(62% 0.14 248);
      --blue: oklch(62% 0.14 248);
      --blue-violet: oklch(54% 0.17 258);
      --red-orange: oklch(56% 0.16 250);
      --red-pink: oklch(63% 0.18 8);
      --brand-2: var(--blue-violet);
      --blue-secondary: var(--blue);
      --bg: oklch(97.5% 0.012 250);
      --card: rgba(255, 255, 255, 0.82);
      --ink: oklch(24% 0.035 260);
      --muted: oklch(52% 0.035 260);
      --line: rgba(215, 224, 236, 0.9);
      --red: var(--red-pink);
      --amber: var(--red-orange);
      --violet: var(--blue-violet);
      --shadow: 0 18px 44px rgba(31, 41, 55, 0.09);
      --radius: 20px;
      --font-main: "MiSans", "OPPO Sans", "OPPOSans", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
      --ease-out: cubic-bezier(0.2, 0.72, 0.22, 1);
      --ease-spring: cubic-bezier(0.18, 0.86, 0.32, 1.16);
    }

    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      min-height: 100vh;
      background:
        radial-gradient(circle at 18% 0%, oklch(78% 0.12 248 / 0.08), transparent 34rem),
        radial-gradient(circle at 92% 18%, oklch(80% 0.08 258 / 0.06), transparent 32rem),
        linear-gradient(180deg, #fbfdff 0%, var(--bg) 100%);
      color: var(--ink);
      font-family: var(--font-main);
      font-size: 16px;
    }

    button,
    input,
    select {
      font: inherit;
    }

    button {
      cursor: pointer;
    }

    button,
    select,
    input,
    .hero-card,
      .score-panel,
      .wish-panel,
      .wish-row,
      .wish-empty,
      .suggestion-item,
      .collapse-toggle,
      .category-ribbon,
      .field,
    .tab,
    .stat-card,
    .result-item,
    .pill,
    .page-btn,
    .bottom-nav a,
    .sheet button {
      transition:
        transform 0.22s var(--ease-out),
        box-shadow 0.22s var(--ease-out),
        border-color 0.22s ease,
        background-color 0.22s ease,
        color 0.22s ease,
        opacity 0.22s ease,
        filter 0.22s ease;
      transform-origin: center;
    }

    button:active:not(:disabled):not([aria-disabled="true"]),
    .tab:active,
    .page-btn:active:not([aria-disabled="true"]) {
      transform: translateY(1px) scale(0.985);
    }

    @media (hover: hover) {
      button:hover:not(:disabled):not([aria-disabled="true"]),
      select:hover,
      input:hover,
      .hero-card:hover,
      .score-panel:hover,
      .wish-panel:hover,
      .wish-row:hover,
      .wish-empty:hover,
      .suggestion-item:hover,
      .collapse-toggle:hover,
      .field:hover,
      .tab:hover,
      .stat-card:hover,
      .result-item:hover,
      .pill:hover,
      .page-btn:hover:not([aria-disabled="true"]),
      .bottom-nav a:hover,
      .sheet button:hover {
        transform: translateY(-1px) scale(1.012);
      }
    }

    .app {
      position: relative;
      z-index: 1;
      width: min(100%, 820px);
      margin: 0 auto;
      padding: 0 16px 118px;
    }

    .app > * {
      animation: page-pop 0.42s cubic-bezier(0.2, 0.72, 0.22, 1) both;
    }

    .app > *:nth-child(2) {
      animation-delay: 0.04s;
    }

    .app > *:nth-child(3) {
      animation-delay: 0.08s;
    }

    .app > *:nth-child(n + 4) {
      animation-delay: 0.12s;
    }

    @keyframes page-pop {
      from {
        opacity: 0;
        transform: translateY(14px) scale(0.985);
      }
      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }

    @keyframes tab-pop {
      0% {
        transform: scale(0.96);
      }
      70% {
        transform: scale(1.035);
      }
      100% {
        transform: scale(1);
      }
    }

    @keyframes item-in {
      from {
        opacity: 0;
        transform: translateY(10px) scale(0.992);
      }
      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }

    @keyframes soft-flash {
      0% {
        transform: scale(0.98);
        filter: brightness(1);
      }
      55% {
        transform: scale(1.035);
        filter: brightness(1.04);
      }
      100% {
        transform: scale(1);
        filter: brightness(1);
      }
    }

    @keyframes sheet-pop {
      0% {
        opacity: 0;
        transform: translateY(28px) scale(0.94);
      }
      72% {
        opacity: 1;
        transform: translateY(-2px) scale(1.012);
      }
      100% {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }

    @keyframes watermark-float {
      0%,
      100% {
        transform: translate(-50%, -50%) scale(1);
      }
      50% {
        transform: translate(-50%, calc(-50% - 8px)) scale(1.025);
      }
    }

    .watermark {
      position: fixed;
      left: 50%;
      top: 62%;
      z-index: 0;
      width: min(42vw, 220px);
      max-width: 52%;
      opacity: 0.22;
      pointer-events: none;
      transform: translate(-50%, -50%);
      user-select: none;
      animation: watermark-float 7.5s ease-in-out infinite;
    }

    .topbar {
      position: sticky;
      top: 0;
      z-index: 20;
      padding: 16px 0 12px;
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.66));
      backdrop-filter: blur(18px) saturate(1.12);
      -webkit-backdrop-filter: blur(18px) saturate(1.12);
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 13px;
      min-height: 58px;
    }

    .logo {
      display: grid;
      width: 50px;
      height: 50px;
      place-items: center;
      border-radius: 14px;
      padding: 4px;
      border: 1px solid rgba(255, 255, 255, 0.82);
      background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.56)),
        oklch(98% 0.02 55 / 0.6);
      color: var(--brand);
      font-size: 22px;
      font-weight: 700;
      box-shadow: 0 12px 24px oklch(54% 0.17 258 / 0.18);
    }

    .logo img {
      width: 100%;
      height: 100%;
      border-radius: 11px;
      object-fit: cover;
    }

    .brand h1 {
      margin: 0;
      font-size: 22px;
      font-weight: 700;
      letter-spacing: 0;
    }

    .brand-name-line {
      color: var(--brand);
      font-size: 16px;
      font-weight: 600;
      margin-top: 2px;
    }

    .title-row,
    .label-with-icon,
    .button-with-icon {
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    .line-icon {
      width: 18px;
      height: 18px;
      flex: 0 0 auto;
      fill: none;
      stroke: currentColor;
      stroke-linecap: round;
      stroke-linejoin: round;
      stroke-width: 2;
    }

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

    .brand-tags span {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 2px 8px;
      border: 1px solid oklch(62% 0.17 38 / 0.28);
      border-radius: 999px;
      color: var(--brand);
      background: rgba(255, 255, 255, 0.54);
      font-size: 16px;
      font-weight: 500;
    }

    .brand-tags span:nth-child(2) {
      border-color: oklch(66% 0.18 32 / 0.32);
      background: linear-gradient(90deg, oklch(58% 0.2 22), oklch(72% 0.17 46));
      color: #fff;
      box-shadow: 0 8px 18px oklch(62% 0.18 32 / 0.18);
    }

    .brand-tags span:nth-child(3) {
      border-color: oklch(62% 0.14 248 / 0.28);
      color: var(--blue);
    }

    .tag-icon {
      width: 15px;
      height: 15px;
      border-radius: 4px;
      object-fit: cover;
    }

    .hero-card {
      position: relative;
      margin: 14px 0 14px;
      padding: 20px;
      border: 1px solid rgba(255, 255, 255, 0.72);
      border-radius: 22px;
      background:
        linear-gradient(135deg, oklch(94% 0.04 236 / 0.92), oklch(98% 0.018 236 / 0.86)),
        linear-gradient(120deg, oklch(62% 0.14 248 / 0.08), oklch(72% 0.1 248 / 0.05));
      color: var(--ink);
      box-shadow: var(--shadow);
      backdrop-filter: blur(18px) saturate(1.12);
      -webkit-backdrop-filter: blur(18px) saturate(1.12);
      transition:
        margin 0.28s var(--ease-out),
        padding 0.28s var(--ease-out),
        box-shadow 0.24s ease,
        transform 0.24s var(--ease-out),
        background-color 0.24s ease,
        border-color 0.24s ease;
    }

    .collapsible-card {
      overflow: hidden;
    }

    .collapsible-card:not(.collapsed),
    .collapsible-card:not(.collapsed) .collapsible-body {
      overflow: visible;
    }

    .collapsible-card:focus-within {
      position: relative;
      z-index: 35;
    }

    .collapsible-body {
      display: block;
      overflow: hidden;
      opacity: 1;
      transform: translateY(0);
    }

    .collapsible-body[hidden] {
      display: none;
    }

    .collapsible-card.collapsed .collapsible-body {
      opacity: 0;
      transform: translateY(-8px);
      pointer-events: none;
    }

    .collapsible-card.collapsed .info-row,
    .collapsible-card.collapsed .wish-head {
      margin-bottom: 0;
    }

    .collapsible-card.collapsed {
      box-shadow: 0 8px 22px rgba(15, 23, 42, 0.055);
      transform: translateY(-1px);
    }

    .collapse-toggle {
      flex-shrink: 0;
      border: 1px solid rgba(255, 255, 255, 0.72);
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.42);
      color: var(--blue);
      padding: 7px 11px;
      font-size: 16px;
      font-weight: 700;
    }

    .info-row {
      display: grid;
      grid-template-columns: minmax(160px, 0.48fr) minmax(0, 1fr);
      align-items: start;
      gap: 18px;
      min-height: 0;
      margin-bottom: 10px;
      padding-right: 164px;
      transition: margin 0.28s ease;
    }

    .info-actions {
      display: flex;
      flex-wrap: wrap;
      justify-content: flex-end;
      gap: 8px 9px;
      padding-top: 1px;
    }

    .info-text {
      min-width: 0;
      max-width: 240px;
      color: oklch(23% 0.04 258);
      font-size: 20px;
      font-weight: 700;
      line-height: 1.34;
    }

    .ghost-btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      flex-shrink: 0;
      border: 1px solid rgba(255, 255, 255, 0.72);
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.16);
      color: var(--brand);
      padding: 7px 13px;
      font-size: 16px;
      font-weight: 600;
      text-decoration: none;
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
    }

    .hero-card .all-mode-btn {
      position: absolute;
      top: 18px;
      right: 20px;
      z-index: 4;
      border-color: oklch(62% 0.14 248 / 0.26);
      background: rgba(255, 255, 255, 0.68);
      color: var(--brand);
      box-shadow: 0 10px 22px oklch(54% 0.17 258 / 0.1);
    }

    .hero-card .all-mode-btn.is-on {
      border-color: transparent;
      background: linear-gradient(135deg, var(--brand), var(--blue));
      color: #fff;
      box-shadow: 0 12px 26px oklch(54% 0.17 258 / 0.22);
    }

    .search-box {
      display: grid;
      grid-template-columns: 1fr 1fr auto;
      gap: 10px;
      padding: 10px;
      border: 1px solid rgba(255, 255, 255, 0.72);
      border-radius: 16px;
      background: rgba(255, 255, 255, 0.34);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
    }

    .search-box input {
      width: 100%;
      min-width: 0;
      height: 44px;
      border: 1px solid rgba(255, 255, 255, 0.72);
      border-radius: 12px;
      outline: none;
      padding: 0 12px;
      background: rgba(255, 255, 255, 0.92);
      color: var(--ink);
      font-size: 16px;
    }

    .search-suggestion-list {
      display: grid;
      gap: 8px;
      margin-top: 10px;
    }

    .search-suggestion-list:empty {
      display: none;
    }

    .primary-btn {
      min-height: 46px;
      border: 0;
      border-radius: 10px;
      background: #fff;
      color: var(--brand);
      padding: 0 16px;
      font-weight: 700;
      font-size: 16px;
      box-shadow: 0 8px 16px rgba(15, 23, 42, 0.1);
    }

    .upload-btn {
      border: 1px solid oklch(63% 0.18 8 / 0.24);
      background: rgba(255, 255, 255, 0.72);
      color: var(--red-pink);
      box-shadow: none;
    }

    .template-btn {
      color: var(--blue);
      background: rgba(255, 255, 255, 0.28);
    }

    .all-mode-btn.is-on {
      border-color: oklch(62% 0.14 248 / 0.32);
      background: oklch(94% 0.045 248 / 0.88);
      color: var(--blue);
      box-shadow: 0 8px 18px oklch(62% 0.14 248 / 0.14);
    }

    .all-mode-btn.is-flashing {
      animation: soft-flash 0.42s var(--ease-spring);
    }

    .controls {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 8px;
      margin: 14px 0;
      overflow-x: auto;
      padding-bottom: 2px;
      scrollbar-width: none;
    }

    .controls::-webkit-scrollbar {
      display: none;
    }

    .score-panel {
      position: relative;
      margin: 14px 0;
      padding: 15px;
      border: 1px solid rgba(255, 255, 255, 0.74);
      border-radius: 18px;
      background: rgba(255, 255, 255, 0.74);
      box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
      backdrop-filter: blur(16px) saturate(1.08);
      -webkit-backdrop-filter: blur(16px) saturate(1.08);
    }

    .score-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      color: var(--muted);
      font-size: 16px;
      font-weight: 600;
      min-height: 38px;
      margin-bottom: 8px;
      padding-right: 178px;
    }

    .score-head #scoreText {
      display: none;
    }

    .score-head-left {
      display: flex;
      align-items: center;
      gap: 10px;
      min-width: 0;
    }

    .score-reset-btn {
      border: 1px solid var(--line);
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.72);
      color: var(--brand);
      padding: 5px 11px;
      cursor: pointer;
      font-size: 16px;
      font-weight: 650;
      white-space: nowrap;
      transition: background .2s ease, border-color .2s ease;
    }

    .score-reset-btn:hover {
      background: #eef4ff;
      border-color: color-mix(in srgb, var(--brand) 36%, #fff);
    }

    .score-hint {
      margin: 10px 0 0;
      color: var(--muted);
      font-size: 16px;
      font-weight: 400;
      line-height: 1.5;
    }

    .score-values {
      position: absolute;
      top: 13px;
      right: 15px;
      z-index: 2;
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 7px;
      margin: 0;
    }

    .score-values input {
      width: 78px;
      height: 34px;
      border: 1px solid var(--line);
      border-radius: 11px;
      background: rgba(255, 255, 255, 0.86);
      color: var(--ink);
      outline: none;
      padding: 0 8px;
      font-size: 16px;
      font-weight: 700;
      text-align: center;
    }

    .wish-panel {
      margin: 14px 0;
      padding: 15px;
      border: 1px solid rgba(255, 255, 255, 0.74);
      border-radius: 20px;
      background: rgba(255, 255, 255, 0.76);
      box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
      backdrop-filter: blur(16px) saturate(1.08);
      -webkit-backdrop-filter: blur(16px) saturate(1.08);
      transition:
        margin 0.28s var(--ease-out),
        padding 0.28s var(--ease-out),
        box-shadow 0.24s ease,
        transform 0.24s var(--ease-out),
        background-color 0.24s ease,
        border-color 0.24s ease;
    }

    .wish-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 12px;
      transition: margin 0.28s ease;
    }

    .wish-title {
      margin: 0;
      color: var(--ink);
      font-size: 18px;
      font-weight: 700;
    }

    .wish-desc {
      margin-top: 4px;
      color: var(--muted);
      font-size: 16px;
      line-height: 1.5;
    }

    .wish-mode {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 6px;
      margin-bottom: 10px;
      padding: 5px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.5);
      border: 1px solid rgba(226, 232, 240, 0.82);
    }

    .wish-mode button {
      height: 36px;
      border: 0;
      border-radius: 999px;
      background: transparent;
      color: var(--muted);
      font-size: 16px;
      font-weight: 700;
    }

    .wish-mode button.active {
      background: oklch(62% 0.14 248 / 0.92);
      color: #fff;
      box-shadow: 0 8px 16px oklch(62% 0.14 248 / 0.16);
      animation: tab-pop 0.28s var(--ease-spring);
    }

    .wish-entry {
      display: grid;
      grid-template-columns: 1fr 1fr auto;
      gap: 8px;
      padding: 8px;
      border-radius: 14px;
      background: rgba(255, 255, 255, 0.34);
    }

    .wish-entry input {
      width: 100%;
      min-width: 0;
      height: 44px;
      border: 1px solid var(--line);
      border-radius: 10px;
      outline: none;
      padding: 0 12px;
      background: rgba(255, 255, 255, 0.9);
      color: var(--ink);
      font-size: 16px;
    }

    .smart-panel {
      background:
        linear-gradient(135deg, oklch(98% 0.018 236 / 0.8), rgba(255, 255, 255, 0.78)),
        rgba(255, 255, 255, 0.76);
    }

    .smart-batch-row {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 10px;
    }

    .smart-batch-label {
      flex: 0 0 auto;
      color: var(--muted);
      font-size: 16px;
      font-weight: 600;
      white-space: nowrap;
    }

    .smart-batch-toggle {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 4px;
      flex: 1 1 auto;
      padding: 3px;
      border-radius: 999px;
      background: rgba(220, 228, 240, 0.6);
    }

    .smart-batch-btn {
      min-height: 32px;
      border: 0;
      border-radius: 999px;
      background: transparent;
      color: var(--muted);
      cursor: pointer;
      font-size: 16px;
      font-weight: 650;
      transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    }

    .smart-batch-btn.active {
      background: #fff;
      color: var(--brand);
      box-shadow: 0 4px 12px rgba(31, 55, 107, 0.12);
    }

    .smart-entry {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 10px;
      align-items: stretch;
      padding: 8px;
      border-radius: 15px;
      background: rgba(255, 255, 255, 0.36);
    }

    .smart-entry textarea {
      width: 100%;
      min-width: 0;
      min-height: 76px;
      max-height: 136px;
      resize: vertical;
      border: 1px solid var(--line);
      border-radius: 12px;
      outline: none;
      padding: 11px 12px;
      background: rgba(255, 255, 255, 0.9);
      color: var(--ink);
      font-size: 16px;
      line-height: 1.55;
    }

    .smart-entry textarea:focus {
      border-color: oklch(62% 0.14 248 / 0.5);
      box-shadow: 0 10px 22px oklch(62% 0.14 248 / 0.12);
    }

    .smart-entry .primary-btn {
      min-width: 118px;
      align-self: stretch;
      justify-content: center;
    }

    .smart-entry .primary-btn.is-loading {
      pointer-events: none;
      filter: saturate(0.92);
    }

    .smart-count {
      margin-top: 7px;
      color: var(--muted);
      font-size: 16px;
      text-align: right;
    }

    .smart-result-list {
      display: grid;
      gap: 10px;
      margin-top: 10px;
      transition: opacity 0.22s ease, transform 0.24s var(--ease-out), filter 0.22s ease;
    }

    .result-list,
    .smart-result-list,
    .wish-list {
      position: relative;
      min-height: 42px;
    }

    .query-loading::before,
    .query-loading-done::before {
      content: '';
      position: absolute;
      left: 50%;
      top: 50%;
      z-index: 8;
      width: 42px;
      height: 42px;
      margin: -21px 0 0 -21px;
      border-radius: 999px;
      border: 2px solid transparent;
      border-top-color: oklch(56% 0.16 248);
      border-right-color: oklch(56% 0.16 248 / 0.34);
      box-shadow: 0 10px 24px oklch(56% 0.16 248 / 0.16);
      pointer-events: none;
    }

    .query-loading::before {
      animation: query-orbit 0.62s linear infinite;
    }

    .query-loading-done::before {
      animation: query-pop-away 0.34s var(--ease-spring) both;
    }

    .query-loading::after,
    .query-loading-done::after {
      content: '';
      position: absolute;
      inset: 0;
      z-index: 7;
      border-radius: 12px;
      background: rgba(255, 255, 255, 0.58);
      pointer-events: none;
      backdrop-filter: blur(1px);
    }

    .query-loading-done::after {
      animation: query-fade-away 0.34s ease both;
    }

    .smart-result-list:empty {
      display: none;
    }

    .smart-pager {
      margin-top: 12px;
    }

    .smart-pager:empty {
      display: none;
    }

    .smart-result-list.is-loading,
    .smart-result-list.is-updating {
      opacity: 0.72;
      transform: translateY(4px);
      filter: saturate(0.96);
    }

    .smart-result-list.is-loading .wish-empty {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 9px;
      animation: smart-pulse 0.9s ease-in-out infinite alternate;
    }

    .smart-result-list.is-loading .wish-empty::before {
      content: none;
      width: 15px;
      height: 15px;
      border-radius: 999px;
      border: 2px solid oklch(72% 0.12 248 / 0.24);
      border-top-color: oklch(56% 0.16 248);
      animation: smart-spin 0.8s linear infinite;
    }

    .smart-result {
      width: 100%;
      border: 1px solid #dce4ef;
      border-radius: 8px;
      background: #fff;
      color: var(--ink);
      padding: 13px;
      text-align: left;
      animation: item-in 0.34s var(--ease-out) both;
      cursor: pointer;
      transition:
        border-color 0.22s ease,
        background 0.22s ease,
        box-shadow 0.24s ease,
        transform 0.22s var(--ease-out);
    }

    .smart-result:hover {
      border-color: #bfcde2;
      background: #fbfcff;
      transform: none;
    }

    .smart-result.is-selected {
      border-color: #3867d6;
      background: #f6f8ff;
      box-shadow: none;
    }

    .smart-result-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 10px;
    }

    .smart-result-title {
      min-width: 0;
      color: var(--ink);
      font-size: 16px;
      font-weight: 800;
      line-height: 1.45;
    }

    .smart-result-major {
      margin-top: 3px;
      color: var(--muted);
      font-size: 16px;
      line-height: 1.45;
    }

    .smart-fallback-note {
      margin-top: 9px;
      padding-top: 8px;
      border-top: 1px dashed #d8e2ef;
      color: #5e6f85;
      font-size: 16px;
      line-height: 1.55;
    }

    .smart-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 5px;
      margin-top: 8px;
    }

    .smart-meta span {
      display: inline-flex;
      align-items: center;
      border-radius: 5px;
      padding: 3px 6px;
      background: #f1f4f8;
      color: #52637e;
      font-size: 16px;
      font-weight: 600;
      line-height: 1.2;
    }

    .smart-meta span:first-child {
      background: #edf3ff;
      color: #315eb7;
    }

    .smart-reasons {
      display: flex;
      flex-wrap: wrap;
      gap: 5px;
      margin-top: 8px;
    }

    .smart-reasons span {
      border-radius: 0;
      padding: 0;
      background: transparent;
      color: #687890;
      font-size: 16px;
      font-weight: 600;
    }

    .item-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 7px;
      flex: 0 0 auto;
      justify-content: flex-end;
      margin: 8px 0 0 auto;
    }

    .result-meta-actions {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 12px;
    }

    .result-meta-actions .meta {
      flex: 1 1 auto;
      min-width: 0;
    }

    .mini-action-btn,
    .prefill-delete {
      border: 1px solid #2457d6;
      border-radius: 6px;
      padding: 8px 12px;
      background: #2457d6;
      color: #fff;
      font-size: 16px;
      font-weight: 780;
      white-space: nowrap;
      cursor: pointer;
      transition:
        transform 0.18s var(--ease-out),
        box-shadow var(--query-motion-duration, 220ms) var(--query-motion-ease, ease),
        border-color 0.2s ease;
    }

    .mini-action-btn:hover,
    .prefill-delete:hover {
      transform: translateY(-1px);
      border-color: #194bc5;
      background: #194bc5;
      box-shadow: 0 9px 20px rgba(36, 87, 214, 0.22);
    }

    .mini-action-btn.is-added {
      border-color: oklch(20% 0.015 250);
      background: oklch(18% 0.015 250);
      color: #fff;
      box-shadow: none;
    }

    .mini-action-btn.is-added:hover {
      transform: none;
      border-color: oklch(20% 0.015 250);
      box-shadow: none;
    }

    .prefill-delete {
      border-color: #f0b5bf;
      background: #fff7f8;
      color: #c32f52;
      box-shadow: none;
    }

    .prefill-delete:hover {
      border-color: #df7890;
      background: #fff0f3;
      color: #a91f41;
      box-shadow: 0 7px 16px rgba(195, 47, 82, 0.12);
    }

    .prefill-panel {
      background:
        linear-gradient(135deg, oklch(98% 0.018 178 / 0.82), rgba(255, 255, 255, 0.78)),
        rgba(255, 255, 255, 0.76);
    }

    .prefill-meta {
      margin-bottom: 9px;
      color: var(--muted);
      font-size: 16px;
      font-weight: 700;
      text-align: right;
    }

    .prefill-table-wrap {
      overflow: visible;
      border: 1px solid rgba(226, 232, 240, 0.85);
      border-radius: 12px;
      background: rgba(255, 255, 255, 0.78);
    }

    .prefill-table {
      width: 100%;
      min-width: 880px;
      border-collapse: collapse;
      font-size: 16px;
    }

    .prefill-table th,
    .prefill-table td {
      border-bottom: 1px solid rgba(226, 232, 240, 0.72);
      padding: 8px 9px;
      text-align: left;
      white-space: nowrap;
    }

    .prefill-table th {
      background: oklch(96% 0.018 248 / 0.78);
      color: var(--muted);
      font-weight: 850;
    }

    .prefill-table tbody tr {
      transition: background 0.18s ease;
    }

    .prefill-table tbody tr:hover {
      background: oklch(97% 0.02 178 / 0.62);
    }

    @keyframes smart-spin {
      to {
        transform: rotate(360deg);
      }
    }

    @keyframes smart-pulse {
      from {
        opacity: 0.76;
      }
      to {
        opacity: 1;
      }
    }

    @keyframes query-orbit {
      to {
        transform: rotate(360deg);
      }
    }

    @keyframes query-pop-away {
      0% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
      }
      55% {
        opacity: 1;
        transform: scale(1.18) rotate(34deg);
      }
      100% {
        opacity: 0;
        transform: scale(0.28) rotate(70deg);
      }
    }

    @keyframes query-fade-away {
      to {
        opacity: 0;
      }
    }

    .wish-list {
      display: grid;
      gap: 8px;
      margin-top: 10px;
    }

    .wish-list:empty,
    .wish-list[hidden] {
      display: none;
      margin-top: 0;
    }

    .suggestion-list {
      display: grid;
      gap: 8px;
      margin-top: 10px;
    }

    .suggestion-item {
      width: 100%;
      border: 1px solid rgba(226, 232, 240, 0.86);
      border-radius: 14px;
      background: rgba(255, 255, 255, 0.74);
      color: var(--ink);
      padding: 10px;
      text-align: left;
    }

    .suggestion-main {
      font-size: 16px;
      font-weight: 700;
      line-height: 1.45;
    }

    .suggestion-meta {
      margin-top: 3px;
      color: var(--muted);
      font-size: 16px;
      line-height: 1.45;
    }

    .wish-row,
    .wish-empty {
      border: 1px solid rgba(226, 232, 240, 0.82);
      border-radius: 14px;
      background: rgba(255, 255, 255, 0.72);
    }

    .wish-row {
      display: grid;
      grid-template-columns: auto minmax(0, 1fr) auto;
      gap: 10px;
      align-items: center;
      padding: 10px;
    }

    .wish-order {
      display: inline-grid;
      width: 36px;
      height: 36px;
      place-items: center;
      border-radius: 50%;
      background: oklch(94% 0.045 248);
      color: var(--blue);
      font-size: 16px;
      font-weight: 700;
    }

    .wish-codes {
      color: var(--ink);
      font-size: 16px;
      font-weight: 600;
      line-height: 1.45;
    }

    .wish-match {
      margin-top: 2px;
      color: var(--muted);
      font-size: 16px;
      line-height: 1.45;
    }

    .wish-status {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 58px;
      border-radius: 999px;
      padding: 5px 9px;
      font-size: 16px;
      font-weight: 700;
      white-space: nowrap;
    }

    .wish-status.passed {
      background: oklch(94% 0.045 248);
      color: oklch(42% 0.13 248);
    }

    .wish-status.failed {
      background: oklch(94% 0.06 8);
      color: oklch(42% 0.15 8);
    }

    .wish-status.unknown {
      background: oklch(94% 0.06 8);
      color: var(--red-pink);
    }

    .wish-delete,
    .small-danger-btn {
      border: 1px solid oklch(63% 0.18 8 / 0.24);
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.72);
      color: var(--red-pink);
      font-size: 16px;
      font-weight: 700;
    }

    .wish-delete {
      min-width: 46px;
      height: 34px;
    }

    .small-danger-btn {
      height: 36px;
      padding: 0 12px;
      white-space: nowrap;
    }

    .wish-count {
      margin-top: 8px;
      color: var(--muted);
      font-size: 16px;
      text-align: right;
    }

    .wish-empty {
      padding: 18px 12px;
      color: var(--muted);
      font-size: 16px;
      line-height: 1.65;
      text-align: center;
      white-space: pre-line;
    }

    .range-wrap {
      position: relative;
      height: 38px;
      --start: 0%;
      --end: 100%;
    }

    .range-track {
      position: absolute;
      left: 0;
      right: 0;
      top: 17px;
      height: 5px;
      border-radius: 999px;
      background: rgba(148, 163, 184, 0.32);
    }

    .range-fill {
      position: absolute;
      left: var(--start);
      top: 17px;
      width: calc(var(--end) - var(--start));
      height: 5px;
      border-radius: 999px;
      background: linear-gradient(90deg, oklch(68% 0.17 18), oklch(62% 0.18 18));
    }

    .range-wrap input[type="range"] {
      position: absolute;
      left: 0;
      top: 0;
      width: 100%;
      height: 38px;
      margin: 0;
      appearance: none;
      background: transparent;
      pointer-events: none;
    }

    .range-wrap input[type="range"]::-webkit-slider-thumb {
      appearance: none;
      width: 24px;
      height: 24px;
      border: 3px solid #fff;
      border-radius: 50%;
      background: oklch(62% 0.18 18 / 0.94);
      box-shadow: 0 5px 14px rgba(31, 41, 55, 0.18);
      pointer-events: auto;
    }

    .range-wrap input[type="range"]::-moz-range-thumb {
      width: 24px;
      height: 24px;
      border: 3px solid #fff;
      border-radius: 50%;
      background: oklch(62% 0.18 18 / 0.94);
      box-shadow: 0 5px 14px rgba(31, 41, 55, 0.18);
      pointer-events: auto;
    }

    .field {
      display: grid;
      gap: 6px;
      min-width: 112px;
    }

    .field label {
      color: var(--muted);
      font-size: 16px;
      font-weight: 600;
    }

    .field input,
    .field select {
      width: 100%;
      height: 48px;
      border: 1px solid var(--line);
      border-radius: 12px;
      outline: none;
      padding: 0 12px;
      background: rgba(255, 255, 255, 0.82);
      color: var(--ink);
    }

    .field input:focus,
    .field select:focus {
      border-color: oklch(62% 0.14 248 / 0.5);
      box-shadow: 0 8px 18px oklch(62% 0.14 248 / 0.12);
      transform: translateY(-1px);
    }

    .field:focus-within {
      box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
      transform: translateY(-1px) scale(1.006);
    }

    .tabs {
      display: flex;
      flex-wrap: wrap;
      gap: 9px;
      margin: 16px 0;
    }

    .tab {
      border: 1px solid var(--line);
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.76);
      color: var(--muted);
      padding: 8px 13px;
      font-size: 16px;
      font-weight: 600;
    }

    .tab.active {
      border-color: transparent;
      background: var(--brand);
      color: #fff;
      box-shadow: 0 10px 20px oklch(54% 0.17 258 / 0.16);
      animation: tab-pop 0.28s var(--ease-spring);
    }

    .tab.failed.active {
      background: var(--red-pink);
    }

    .tab.passed.active {
      background: var(--blue-violet);
    }

    .tab.exact.active {
      background: var(--blue);
    }

    .summary {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
      margin: 14px 0;
    }

    .summary-toggle-row {
      display: flex;
      justify-content: flex-end;
      margin: 6px 0 2px;
    }

    .summary-toggle {
      border: 1px solid rgba(148, 163, 184, 0.28);
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.32);
      color: rgba(71, 85, 105, 0.72);
      padding: 4px 9px;
      font-size: 16px;
      font-weight: 600;
      box-shadow: none;
    }

    .summary-toggle:hover {
      color: var(--blue);
      border-color: rgba(37, 99, 235, 0.28);
      background: rgba(255, 255, 255, 0.58);
      transform: translateY(-1px);
    }

    .summary[hidden],
    .summary.is-hidden {
      display: none;
    }

    .stat-card,
    .result-item,
    .pager,
    .empty {
      border: 1px solid rgba(255, 255, 255, 0.72);
      background: var(--card);
      box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
      backdrop-filter: blur(16px) saturate(1.08);
      -webkit-backdrop-filter: blur(16px) saturate(1.08);
    }

    .stat-card {
      border-radius: 16px;
      padding: 14px;
    }

    .stat-label {
      color: var(--muted);
      font-size: 16px;
      font-weight: 500;
    }

    .stat-value {
      margin-top: 5px;
      font-size: 24px;
      font-weight: 700;
      font-variant-numeric: tabular-nums;
    }

    .result-list {
      display: grid;
      gap: 12px;
      transition: opacity 0.22s ease, transform 0.24s var(--ease-out), filter 0.22s ease;
    }

    .result-list.is-updating {
      opacity: 0.52;
      filter: saturate(0.86);
      transform: translateY(5px) scale(0.996);
    }

    .result-item {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 12px;
      align-items: center;
      border-radius: 18px;
      padding: 16px;
      animation: item-in 0.34s var(--ease-out) both;
    }

    .result-item.result-passed {
      border-color: oklch(72% 0.13 248 / 0.42);
      background:
        linear-gradient(135deg, oklch(98% 0.025 248 / 0.92), oklch(94% 0.04 248 / 0.76)),
        var(--card);
      box-shadow: 0 12px 28px oklch(62% 0.12 248 / 0.12);
    }

    .result-item.result-failed {
      border-color: oklch(70% 0.16 23 / 0.42);
      background:
        linear-gradient(135deg, oklch(98% 0.026 23 / 0.92), oklch(94% 0.048 23 / 0.76)),
        var(--card);
      box-shadow: 0 12px 28px oklch(58% 0.15 23 / 0.11);
    }

    .result-item.result-rush {
      border-color: oklch(75% 0.13 72 / 0.42);
      background:
        linear-gradient(135deg, oklch(98% 0.03 72 / 0.92), oklch(94% 0.05 72 / 0.76)),
        var(--card);
      box-shadow: 0 12px 28px oklch(64% 0.13 72 / 0.11);
    }

    /* Smart-query results keep the same data layout but a neutral reading surface. */
    .result-list.smart-query-results .result-item,
    .result-list.smart-query-results .result-item.result-passed,
    .result-list.smart-query-results .result-item.result-failed,
    .result-list.smart-query-results .result-item.result-rush {
      border-color: #dce4ef;
      background: #fff;
      box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
    }

    .result-item:hover {
      box-shadow: 0 14px 30px rgba(15, 23, 42, 0.09);
    }

    .school {
      margin: 0;
      font-size: 18px;
      font-weight: 700;
      line-height: 1.35;
      min-width: 0;
      flex: 1;
    }

    .school-code,
    .major-code {
      display: inline;
      margin-right: 6px;
      color: var(--blue);
      font-size: inherit;
      white-space: nowrap;
    }

    .school-code {
      font-weight: 800;
    }

    .major-code {
      font-weight: 700;
    }

    .school-row {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 10px;
      flex-wrap: wrap;
    }

    .school-brand,
    .smart-result-school {
      display: flex;
      align-items: center;
      gap: 10px;
      min-width: 0;
      flex: 1 1 260px;
    }

    .school-logo {
      display: grid;
      flex: 0 0 42px;
      width: 42px;
      height: 42px;
      place-items: center;
      overflow: hidden;
      border: 1px solid oklch(84% 0.045 248 / 0.72);
      border-radius: 999px;
      background: linear-gradient(135deg, oklch(98% 0.016 248 / 0.96), oklch(96% 0.024 55 / 0.86));
      color: var(--blue);
      font-size: 16px;
      font-weight: 900;
      box-shadow: 0 8px 18px oklch(62% 0.14 248 / 0.12);
    }

    .school-logo.smart {
      flex-basis: 34px;
      width: 34px;
      height: 34px;
      font-size: 16px;
    }

    .school-logo img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .school-logo.placeholder {
      background: linear-gradient(135deg, oklch(96% 0.026 248), oklch(94% 0.035 250));
    }

    .category-ribbon {
      display: inline-flex;
      align-items: center;
      flex-shrink: 0;
      width: max-content;
      max-width: 100%;
      border-radius: 999px;
      background: oklch(94% 0.045 248);
      color: var(--blue);
      padding: 5px 11px;
      font-size: 16px;
      font-weight: 800;
      line-height: 1.25;
    }

    .major {
      margin-top: 4px;
      color: var(--muted);
      font-size: 16px;
      line-height: 1.45;
    }

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

    .pill {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      border-radius: 999px;
      background: oklch(96% 0.035 248);
      color: var(--blue);
      padding: 3px 8px;
      font-size: 16px;
      font-weight: 500;
    }

    .pill .line-icon {
      width: 13px;
      height: 13px;
      stroke-width: 2.2;
    }

    .pill.flag-warn {
      background: linear-gradient(90deg, oklch(58% 0.2 22), oklch(72% 0.17 46));
      color: #fff;
      box-shadow: 0 8px 16px oklch(62% 0.18 32 / 0.14);
    }

    .pill.flag-warn .line-icon {
      stroke: #fff;
    }

    .meta .pill:nth-child(1) {
      background: oklch(96% 0.035 248);
      color: var(--blue);
    }

    .meta .pill:nth-child(2) {
      background: oklch(96% 0.035 248);
      color: var(--blue);
    }

    .meta .pill:nth-child(3) {
      background: oklch(96% 0.04 248);
      color: var(--orange);
    }

    .meta .pill:nth-child(4) {
      background: oklch(96% 0.035 248);
      color: var(--blue);
    }

    .metrics {
      display: grid;
      /* 2026-09-19：单招综评全部是专科，去掉恒为「专科」的「层次」格，指标改为 3 列 */
      grid-template-columns: repeat(3, minmax(52px, 1fr));
      gap: 1px;
      margin-top: 10px;
      overflow: hidden;
      border-radius: 12px;
      border: 1px solid rgba(226, 232, 240, 0.8);
      background: rgba(226, 232, 240, 0.8);
    }

    .metric {
      padding: 10px 6px;
      background: rgba(255, 255, 255, 0.72);
      text-align: center;
    }

    .metric b {
      display: block;
      font-size: 16px;
      font-weight: 700;
      font-variant-numeric: tabular-nums;
    }

    .metric span {
      display: block;
      margin-top: 2px;
      color: var(--muted);
      font-size: 16px;
    }

    .badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 64px;
      border-radius: 999px;
      padding: 6px 10px;
      font-size: 16px;
      font-weight: 700;
      white-space: nowrap;
    }

    .badge.passed {
      background: oklch(94% 0.045 248);
      color: oklch(42% 0.13 248);
    }

    .badge.failed {
      background: oklch(94% 0.06 8);
      color: oklch(42% 0.15 8);
    }

    .badge.rush,
    .wish-status.rush {
      background: oklch(94% 0.07 66);
      color: oklch(40% 0.13 66);
    }

    .badge.unknown {
      background: oklch(94% 0.06 8);
      color: var(--red-pink);
    }

    .badge.exact {
      background: oklch(94% 0.07 248);
      color: oklch(42% 0.14 32);
    }

    .empty {
      border-radius: 18px;
      padding: 42px 18px;
      color: var(--muted);
      text-align: center;
      line-height: 1.8;
    }

    .load-hint {
      margin: 12px 0 2px;
      color: var(--muted);
      font-size: 16px;
      text-align: center;
    }

    .pager {
      display: flex;
      justify-content: center;
      align-items: center;
      flex-wrap: wrap;
      gap: 7px;
      margin-top: 14px;
      border-radius: 16px;
      padding: 10px;
    }

    .page-btn {
      min-width: 36px;
      height: 36px;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: rgba(255, 255, 255, 0.78);
      color: var(--ink);
    }

    .page-btn.active {
      border-color: transparent;
      background: var(--brand);
      color: #fff;
    }

    .page-btn[aria-disabled="true"] {
      opacity: 0.45;
      cursor: not-allowed;
    }

    .toast {
      position: fixed;
      left: 50%;
      bottom: 82px;
      z-index: 120;
      max-width: min(88vw, 360px);
      padding: 10px 14px;
      border: 1px solid rgba(255, 255, 255, 0.72);
      border-radius: 999px;
      background: rgba(24, 36, 56, 0.84);
      color: #fff;
      box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18);
      font-size: 16px;
      line-height: 1.35;
      text-align: center;
      opacity: 0;
      pointer-events: none;
      transform: translate(-50%, 8px) scale(0.98);
      transition: opacity 0.18s ease, transform 0.18s ease;
      backdrop-filter: blur(12px) saturate(1.08);
      -webkit-backdrop-filter: blur(12px) saturate(1.08);
    }

    .toast.show {
      opacity: 1;
      transform: translate(-50%, 0) scale(1);
    }

    @media (prefers-reduced-motion: reduce) {
      .app > * {
        animation: none;
      }
    }

    .sheet-mask {
      position: fixed;
      inset: 0;
      z-index: 80;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 18px;
      background: rgba(15, 23, 42, 0.36);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: opacity 0.26s ease, visibility 0.26s ease;
    }

    .sheet-mask.show {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
    }

    .sheet {
      width: min(100%, 430px);
      border-radius: 24px;
      background: rgba(255, 255, 255, 0.92);
      box-shadow: 0 28px 70px rgba(15, 23, 42, 0.28);
      padding: 20px;
      opacity: 0;
      transform: translateY(24px) scale(0.96);
      transition: opacity 0.28s ease, transform 0.34s var(--ease-spring);
    }

    .sheet-mask.show .sheet {
      opacity: 1;
      transform: translateY(0) scale(1);
      animation: sheet-pop 0.34s var(--ease-spring) both;
    }

    #setupMask { align-items: center; }
    #setupMask .sheet { border-radius: clamp(2px, 0.45vw, 6px); }

    .admin-motion-disabled *,
    .admin-motion-disabled *::before,
    .admin-motion-disabled *::after { animation: none !important; transition-duration: 0.01ms !important; }

    .sheet h2 {
      margin: 0 0 14px;
      font-size: 18px;
    }

    .sheet-actions {
      display: grid;
      grid-template-columns: 1.35fr 1fr 1fr;
      gap: 10px;
      margin-top: 16px;
    }

    .sheet button {
      height: 44px;
      border-radius: 12px;
      border: 1px solid var(--line);
      background: #fff;
      color: var(--ink);
      font-weight: 600;
    }

    .sheet button.confirm {
      border: 0;
      background: var(--brand);
      color: #fff;
    }

    .bottom-nav {
      position: fixed;
      left: 50%;
      bottom: 18px;
      z-index: 50;
      display: flex;
      gap: 8px;
      padding: 8px;
      border: 1px solid rgba(255, 255, 255, 0.82);
      border-radius: 999px;
      background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.3)),
        oklch(98% 0.012 55 / 0.18);
      box-shadow: 0 12px 30px rgba(31, 41, 55, 0.08);
      transform: translateX(-50%);
      backdrop-filter: blur(14px) saturate(1.06);
      -webkit-backdrop-filter: blur(14px) saturate(1.06);
    }

    .bottom-nav a {
      display: inline-grid;
      min-width: 118px;
      height: 42px;
      place-items: center;
      border-radius: 999px;
      color: var(--ink);
      font-size: 16px;
      font-weight: 600;
      text-decoration: none;
    }

    .bottom-nav a.active {
      background: oklch(64% 0.18 32 / 0.72);
      color: #fff;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 8px 18px oklch(64% 0.18 32 / 0.2);
    }

    .admit-card {
      text-align: center;
      width: min(86vw, 360px);
      min-height: min(86vw, 360px);
      aspect-ratio: 1 / 1;
      display: grid;
      place-content: center;
      border-radius: 34px 28px 40px 30px;
      background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.88)),
        oklch(97% 0.025 248 / 0.8);
    }

    .celebrate-icon {
      width: 58px;
      height: 58px;
      margin: 0 auto 12px;
      color: var(--red-orange);
      filter: drop-shadow(0 10px 18px oklch(64% 0.18 32 / 0.18));
    }

    .celebrate-icon svg {
      width: 100%;
      height: 100%;
      fill: none;
      stroke: currentColor;
      stroke-linecap: round;
      stroke-linejoin: round;
      stroke-width: 1.9;
    }

    .confetti-layer {
      position: fixed;
      inset: 0;
      z-index: 110;
      pointer-events: none;
      overflow: hidden;
    }

    .confetti-piece {
      position: absolute;
      top: -18px;
      left: var(--x);
      width: var(--w);
      height: var(--h);
      border-radius: 999px;
      background: var(--c);
      opacity: 0;
      transform: translate3d(0, -20px, 0) rotate(0deg);
      animation: confetti-fall var(--d) ease-out var(--delay) forwards;
    }

    @keyframes confetti-fall {
      0% {
        opacity: 0;
        transform: translate3d(0, -20px, 0) rotate(0deg);
      }
      12% {
        opacity: 0.85;
      }
      100% {
        opacity: 0;
        transform: translate3d(var(--drift), 82vh, 0) rotate(var(--r));
      }
    }

    .admit-kicker {
      color: var(--brand);
      font-size: 16px;
      font-weight: 700;
      margin-bottom: 10px;
    }

    .admit-school {
      font-size: 22px;
      font-weight: 700;
      color: var(--ink);
      line-height: 1.45;
      margin-bottom: 8px;
    }

    .admit-major {
      color: var(--brand);
      font-size: 18px;
      font-weight: 600;
      line-height: 1.5;
      margin-bottom: 14px;
    }

    .admit-note {
      color: var(--muted);
      font-size: 16px;
      line-height: 1.7;
      margin-bottom: 16px;
    }

    @media (max-width: 560px) {
      .bottom-nav { width: calc(100% - 18px); border-radius: 16px; }
      .bottom-nav a { min-width: 0; flex: 1 1 0; font-size: 16px; }
    }

    .prefill-guard-mask {
      z-index: 95;
    }

    .prefill-guard-card {
      width: min(92vw, 420px);
      border-radius: 22px;
      padding: 24px;
    }

    .prefill-guard-icon {
      width: 44px;
      height: 44px;
      display: grid;
      place-items: center;
      margin-bottom: 14px;
      border-radius: 16px;
      color: var(--brand);
      background: rgba(37, 99, 235, 0.1);
      border: 1px solid rgba(37, 99, 235, 0.18);
    }

    .prefill-guard-icon svg {
      width: 24px;
      height: 24px;
      fill: none;
      stroke: currentColor;
      stroke-width: 1.9;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .prefill-guard-card p {
      margin: 0;
      color: var(--muted);
      font-size: 16px;
      line-height: 1.75;
      white-space: pre-line;
    }

    .prefill-guard-actions {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
      margin-top: 20px;
    }

    .prefill-guard-actions.is-alert {
      grid-template-columns: 1fr;
    }

    .prefill-guard-actions.is-alert #prefillGuardCancel {
      display: none;
    }

    .smart-action-mask {
      z-index: 96;
      align-items: center;
    }

    .smart-action-card {
      width: min(92vw, 460px);
      border-radius: 22px;
    }

    .smart-action-card p {
      margin: 0;
      color: var(--muted);
      font-size: 16px;
      line-height: 1.75;
      white-space: pre-line;
    }

    .smart-action-details {
      display: grid;
      gap: 6px;
      margin: 0 0 14px;
      padding: 12px 14px;
      border: 1px solid oklch(78% 0.055 250 / 0.5);
      border-radius: 14px;
      background: oklch(97% 0.018 250 / 0.78);
      color: var(--ink);
      font-size: 16px;
      line-height: 1.6;
    }

    .smart-action-buttons {
      grid-template-columns: 1fr 1fr;
      margin-top: 20px;
    }

    .smart-action-buttons.is-alert {
      grid-template-columns: 1fr;
    }

    .smart-action-buttons.is-alert #smartActionCancel {
      display: none;
    }

    @media (max-width: 560px) {
      .app {
        padding-inline: 10px;
      }

      .hero-card,
      .wish-panel,
      .score-panel {
        padding: 12px;
        border-radius: 18px;
      }

      .info-row {
        grid-template-columns: 1fr;
        min-height: 48px;
        padding-right: 122px;
        gap: 10px;
        margin-bottom: 12px;
      }

      .wish-head {
        gap: 8px;
      }

      .info-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        padding-top: 2px;
        justify-content: stretch;
      }

      .info-actions .ghost-btn,
      .info-actions .collapse-toggle {
        justify-content: center;
        width: 100%;
      }

      .hero-card .all-mode-btn {
        top: 12px;
        right: 12px;
        width: auto;
        min-width: 106px;
        max-width: 116px;
        padding-inline: 9px;
      }

      .info-text {
        max-width: none;
        font-size: 18px;
        line-height: 1.34;
      }

      .ghost-btn,
      .collapse-toggle,
      .small-danger-btn {
        min-height: 36px;
        padding: 6px 8px;
        font-size: 16px;
      }

      .search-box {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 8px;
        border-radius: 14px;
      }

      .search-box input {
        height: 42px;
      }

      .search-box .primary-btn {
        justify-content: center;
        width: 100%;
        height: 42px;
      }

      .smart-entry {
        grid-template-columns: 1fr;
        gap: 8px;
      }

      .smart-entry textarea {
        min-height: 88px;
        font-size: 16px;
      }

      .smart-entry .primary-btn {
        min-width: 0;
        min-height: 42px;
      }

      .smart-result-head {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
      }

      .school-brand,
      .smart-result-school {
        gap: 8px;
      }

      .school-logo {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
        font-size: 16px;
      }

      .school-logo.smart {
        flex-basis: 32px;
        width: 32px;
        height: 32px;
        font-size: 16px;
      }

      .search-box,
      .wish-entry {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
        gap: 6px;
        padding: 6px;
      }

      .search-box input,
      .wish-entry input {
        height: 40px;
        padding-inline: 8px;
        border-radius: 9px;
        font-size: 16px;
      }

      .primary-btn {
        min-height: 40px;
        padding-inline: 10px;
        font-size: 16px;
      }

      .controls {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 4px;
        margin: 12px 0;
        overflow: visible;
      }

      .field {
        min-width: 0;
        gap: 4px;
        overflow: hidden;
      }

      .field label {
        gap: 3px;
        justify-content: center;
        min-width: 0;
        overflow: hidden;
        font-size: 16px;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .field .line-icon {
        width: 14px;
        height: 14px;
      }

      .field select {
        height: 40px;
        padding: 0 4px;
        border-radius: 10px;
        font-size: 16px;
      }

      .score-values {
        grid-template-columns: 1fr 1fr;
        gap: 7px;
      }

      .summary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
      }

      .stat-card {
        padding: 10px 6px;
        border-radius: 14px;
      }

      .stat-label {
        font-size: 16px;
        white-space: nowrap;
      }

      .stat-value {
        font-size: 20px;
      }

      .tabs {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 5px;
      }

      .tab {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 2px;
        min-width: 0;
        min-height: 36px;
        padding: 7px 3px;
        font-size: 16px;
        line-height: 1.1;
        text-align: center;
        white-space: nowrap;
      }

      .tab span {
        flex: 0 0 auto;
        font-size: 16px;
        font-variant-numeric: tabular-nums;
      }

      .result-item {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
        padding: 12px;
        align-items: start;
      }

      .result-item > div {
        display: contents;
      }

      .school-row {
        grid-column: 1 / -1;
        grid-row: 1;
        display: flex;
        align-items: center;
        gap: 5px;
        min-width: 0;
        flex-wrap: nowrap;
      }

      .school {
        flex: 1 1 auto;
        min-width: 0;
        overflow: hidden;
        font-size: 16px;
        line-height: 1.25;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .school-code,
      .major-code {
        margin-right: 3px;
      }

      .category-ribbon {
        flex: 0 0 auto;
        max-width: 45%;
        padding: 3px 5px;
        overflow: hidden;
        font-size: 16px;
        line-height: 1.1;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .major,
      .result-meta-actions,
      .meta,
      .metrics {
        grid-column: 1 / -1;
      }

      .result-meta-actions {
        display: flex;
        align-items: flex-end;
        gap: 8px;
      }

      .result-meta-actions .meta {
        min-width: 0;
      }

      .result-meta-actions .item-actions {
        flex: 0 0 auto;
        margin-top: 6px;
      }

      .major {
        grid-column: 1;
        grid-row: 2;
        margin-top: 0;
        font-size: 16px;
        line-height: 1.35;
      }

      .meta {
        margin-top: 6px;
      }

      .wish-row {
        grid-template-columns: auto minmax(0, 1fr);
      }

      .wish-delete {
        grid-column: 1 / -1;
        width: 100%;
      }

      .badge {
        grid-column: 2;
        grid-row: 2;
        align-self: start;
        justify-self: end;
        width: max-content;
        min-width: 50px;
        padding: 5px 7px;
        font-size: 16px;
      }

      .metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin-top: 8px;
      }

      .metric {
        display: grid;
        place-items: center;
        min-width: 0;
        padding: 9px 2px;
        text-align: center;
      }

      .metric b {
        width: 100%;
        overflow: hidden;
        font-size: 16px;
        line-height: 1.05;
        text-align: center;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .metric span {
        width: 100%;
        font-size: 16px;
        line-height: 1.1;
        text-align: center;
        white-space: nowrap;
      }
    }

    @media (max-width: 390px) {
      .app {
        padding-inline: 8px;
      }

      .hero-card,
      .wish-panel,
      .score-panel {
        padding: 10px;
      }

      .controls,
      .metrics {
        gap: 3px;
      }

      .info-row {
        padding-right: 106px;
      }

      .hero-card .all-mode-btn {
        min-width: 94px;
        max-width: 102px;
        padding-inline: 7px;
        font-size: 16px;
      }

      .field label {
        font-size: 16px;
      }

      .field select {
        height: 38px;
        padding-inline: 3px;
        font-size: 16px;
      }

      .school {
        font-size: 16px;
      }

      .category-ribbon {
        max-width: 44%;
        padding-inline: 4px;
        font-size: 16px;
      }

      .major {
        font-size: 16px;
      }

      .metric {
        padding-inline: 2px;
      }

      .metric b {
        font-size: 16px;
      }

      .metric span {
        font-size: 16px;
      }

      .school-brand,
      .smart-result-school {
        gap: 7px;
      }

      .school-logo {
        flex-basis: 32px;
        width: 32px;
        height: 32px;
        font-size: 16px;
      }

      .school-logo.smart {
        flex-basis: 30px;
        width: 30px;
        height: 30px;
        font-size: 16px;
      }
    }

    @media (max-width: 560px) {
      .score-head {
        padding-right: 150px;
      }

      .score-values {
        top: 12px;
        right: 12px;
        gap: 6px;
      }

      .score-values input {
        width: 68px;
        height: 32px;
        border-radius: 10px;
        padding: 0 6px;
        font-size: 16px;
      }

      .hero-card .search-box {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      }

      .hero-card .search-box .primary-btn {
        grid-column: 1 / -1;
      }
    }

    @media (max-width: 390px) {
      .score-head {
        padding-right: 128px;
      }

      .score-values {
        gap: 5px;
      }

      .score-values input {
        width: 58px;
        font-size: 16px;
      }
    }

    @media (max-width: 430px) {
      .app {
        padding-inline: 10px;
        padding-bottom: 106px;
      }

      .brand h1 {
        font-size: 20px;
      }

      .brand-tags span {
        max-width: 100%;
      }

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

      .wish-head {
        display: grid;
        grid-template-columns: 1fr;
      }

      .wish-head > div[style] {
        justify-content: stretch !important;
      }

      .wish-head > div[style] > button,
      .wish-head > div[style] > .ghost-btn {
        justify-content: center;
        flex: 1 1 42%;
      }

      .wish-entry {
        grid-template-columns: 1fr;
      }

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

      .field label {
        justify-content: flex-start;
        font-size: 16px;
      }

      .field select {
        height: 40px;
        font-size: 16px;
      }

      .tabs {
        gap: 6px;
      }

      .result-item {
        grid-template-columns: 1fr;
      }

      .badge {
        justify-self: start;
      }

      .smart-result-head {
        grid-template-columns: 1fr;
      }

      .prefill-table-wrap {
        max-width: 100%;
      }
    }

    /* Both Spring sites share data and markup; configuration controls their visible tools. */
    html.spring-query-mode:not(.enable-line-query) #wishCard,
    html.spring-query-mode:not(.enable-line-query) .tabs,
    html.spring-query-mode:not(.enable-line-query) .summary .stat-card:nth-child(n + 2),
    html.spring-query-mode:not(.enable-line-query) .result-item .badge,
    html.spring-query-mode:not(.enable-line-query) #uploadWishBtn,
    html.spring-query-mode:not(.enable-line-query) #downloadTemplateBtn,
    html.spring-query-mode:not(.enable-line-query) #admitMask {
      display: none !important;
    }

    html.spring-line-mode:not(.enable-smart-search) #smartCard,
    html.spring-line-mode:not(.enable-prefill) #prefillCard,
    html.spring-line-mode:not(.enable-prefill) #resultList [data-prefill-key],
    html.spring-line-mode:not(.enable-prefill) #smartResultList [data-prefill-key],
    html.spring-line-mode:not(.enable-prefill) #prefillGuardMask {
      display: none !important;
    }

    html:not(.enable-line-query) #wishCard,
    html:not(.enable-line-query) .tabs,
    html:not(.enable-line-query) .summary .stat-card:nth-child(n + 2),
    html:not(.enable-line-query) .result-item .badge,
    html:not(.enable-line-query) #uploadWishBtn,
    html:not(.enable-line-query) #downloadTemplateBtn,
    html:not(.enable-smart-search) #smartCard,
    html:not(.enable-prefill) #prefillCard,
    html:not(.enable-prefill) #resultList [data-prefill-key],
    html:not(.enable-prefill) #smartResultList [data-prefill-key],
    html:not(.enable-upload) #uploadWishBtn,
    html:not(.enable-upload) #downloadTemplateBtn {
      display: none !important;
    }

    .system-switcher { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; margin: 12px 0 14px; }
    .system-switch-card { display: grid; gap: 3px; min-height: 68px; border: 1px solid rgba(255,255,255,.86); border-radius: 14px; padding: 12px; color: var(--ink); text-decoration: none; box-shadow: 0 8px 20px rgba(31,41,75,.08); transition: transform .2s var(--ease-out), box-shadow .2s ease; }
    .system-switch-card[hidden] { display: none !important; }
    .system-switch-card:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(31,41,75,.13); }
    .system-switch-card span { font-size: 16px; font-weight: 800; }
    .system-switch-card small { color: var(--muted); font-size: 16px; }
    .system-spring { background: oklch(94% .05 248); }
    .system-line { background: oklch(95% .045 300); }
    .system-summer { background: oklch(94% .045 218); }
    .system-summer-line { background: oklch(95% .04 58); }
    .system-zsb { background: oklch(95% .05 72); }
    .system-single { background: oklch(95% .05 160); }
    .mode-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    .mode-choice { display: grid; gap: 4px; padding: 20px 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.8); color: var(--ink); cursor: pointer; text-align: center; transition: transform .2s var(--ease-out), box-shadow .2s ease, border-color .2s ease; }
    .mode-choice:hover { transform: translateY(-2px); border-color: var(--brand); box-shadow: 0 12px 24px rgba(31,55,107,.12); }
    .mode-choice b { font-size: 22px; font-weight: 800; }
    .mode-choice small { color: var(--muted); font-size: 16px; }
    .result-item .meta .pill-batch { background: oklch(94% .045 248); color: oklch(42% .13 248); }
    .result-item .meta .pill-city { border: 0; background: oklch(94% .04 300); color: oklch(42% .12 300); font-size: 16px; font-weight: 500; line-height: 1.45; cursor: pointer; }
    .meta .pill:nth-child(3) { background: oklch(95% .045 72); color: oklch(42% .12 72); }
    .meta .pill:nth-child(4) { background: oklch(94% .04 185); color: oklch(40% .1 185); }

    @media (max-width: 640px) {
      .system-switcher { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .system-switch-card { min-height: 60px; padding: 10px; }
    }
/* Unified interaction rhythm; Spring cards rise softly from the page. */
:root { --interaction-duration: var(--query-motion-duration, 240ms); --interaction-ease: var(--query-motion-ease, cubic-bezier(.2,.72,.22,1)); }
button, select, input, textarea, .tab, .result-item, .page-btn { transition-duration: var(--interaction-duration); transition-timing-function: var(--interaction-ease); }
.result-item { animation-name: spring-result-enter; animation-duration: var(--interaction-duration); animation-timing-function: var(--interaction-ease); }
@keyframes spring-result-enter { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .result-item { animation: none; } }

.site-carousel { display: none; }
.site-carousel.ready { position: relative; display: block; aspect-ratio: 16 / 5; margin: 0 0 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.site-carousel-track, .site-carousel-slide { position: absolute; inset: 0; }
.site-carousel-slide { display: block; opacity: 0; pointer-events: none; transition: opacity .42s var(--ease-out), transform .52s var(--ease-out); transform: scale(1.012); }
.site-carousel-slide.active { opacity: 1; pointer-events: auto; transform: scale(1); }
.site-carousel-slide img { width: 100%; height: 100%; display: block; object-fit: cover; }
.site-carousel-slide strong { position: absolute; left: 18px; bottom: 16px; max-width: calc(100% - 36px); padding: 7px 10px; border-radius: 6px; background: rgba(15,23,42,.74); color: #fff; font-size: 16px; }
.site-carousel-arrow { position: absolute; top: 50%; z-index: 2; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255,255,255,.86); color: var(--ink); font-size: 24px; transform: translateY(-50%); }
.site-carousel-arrow.prev { left: 12px; } .site-carousel-arrow.next { right: 12px; }
.site-carousel-dots { position: absolute; z-index: 2; left: 50%; bottom: 10px; display: flex; gap: 6px; transform: translateX(-50%); }
.site-carousel-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.65); }
.site-carousel-dots button.active { width: 20px; border-radius: 5px; background: #fff; }
@media (min-width: 1024px) {
  .app { width: min(1360px, calc(100% - 48px)); padding-inline: 0; }
  .system-switcher { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .controls { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .result-list { gap: 12px; }
  .site-carousel.ready { border-radius: 18px; }
}


/* 2026 desktop composition, modal safety and backend icon overrides. */
.admin-custom-icon {
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
  object-fit: contain;
  vertical-align: -0.16em;
}
.sheet-mask {
  padding: 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.sheet {
  width: min(520px, 100%);
  max-height: calc(100dvh - 36px);
  overflow: auto;
  overscroll-behavior: contain;
}
.sheet h2,
.sheet p {
  overflow-wrap: anywhere;
}
.sheet button {
  min-width: 0;
  height: auto;
  min-height: 44px;
  white-space: normal;
  line-height: 1.35;
}
.mode-choice-grid {
  align-items: stretch;
}
.mode-choice {
  height: auto !important;
  min-height: 82px !important;
  padding: 14px 12px !important;
  place-content: center;
}
.mode-choice b,
.mode-choice small {
  display: block;
  line-height: 1.35;
}
@media (min-width: 1024px) {
  .app {
    width: min(1220px, calc(100% - 48px));
  }
  .app:has(#smartCard) {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(340px, .82fr);
    column-gap: 16px;
    align-items: start;
  }
  .app:has(#smartCard) > * {
    grid-column: 1 / -1;
  }
  .app:has(#smartCard) > #smartCard {
    grid-column: 1;
    min-height: 100%;
  }
  .app:has(#smartCard) > #prefillCard {
    grid-column: 2;
    min-height: 100%;
  }
  .controls {
    gap: 14px;
  }
  .result-item {
    padding-inline: 22px;
  }
}
@media (max-width: 640px) {
  .sheet-mask {
    padding: 12px;
    align-items: center;
  }
  .sheet {
    max-height: calc(100dvh - 24px);
  }
  .mode-choice-grid {
    gap: 10px;
  }
}
/* Desktop workspace for Single/Comprehensive evaluation. */
@media (min-width: 1024px) {
  .app:has(#smartCard), .app { width: min(1240px, calc(100% - 56px)); padding-bottom: 124px; }
  .topbar, .hero-card, .smart-panel, .prefill-panel, .filter-panel, .range-panel { padding: 22px 24px; }
  .system-switcher { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
  .system-switch-card { min-height: 88px; padding: 16px 18px; align-content: center; }
  .system-switch-card span { font-size: 18px !important; }
  .controls { grid-template-columns: repeat(4, minmax(190px, 1fr)); gap: 16px; overflow: visible; }
  .field input, .field select, .combo-input, .search-box input { min-height: 50px; padding-inline: 16px; }
  .search-box { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 136px; gap: 12px; }
  .tabs { gap: 10px; margin-block: 18px; }
  .tab, .mode-btn, .collapse-toggle, .ghost-btn, .primary-btn { min-height: 46px; padding-inline: 18px; }
  .result-item, .smart-result { padding: 20px 22px; }
  .sheet-card, .prefill-guard-card, .validation-dialog { max-width: 560px; padding: 26px; }
}


/* desktop-font-floor:start */
@media (min-width: 1024px) {
  body { font-size: 16px !important; }
  .admit-kicker, .admit-note, .badge, .brand-tags span, .category-ribbon,
  .field label, .load-hint, .metric span, .mode-choice small, .pill,
  .prefill-meta, .score-hint, .smart-action-details, .smart-count,
  .smart-fallback-note, .smart-meta span, .smart-reasons span,
  .stat-label, .suggestion-meta, .system-switch-card small, .toast,
  .wish-codes, .wish-count, .wish-desc, .wish-match, .wish-order,
  .wish-status { font-size: 16px !important; }
  .admit-major, .bottom-nav a, .brand-name-line, .collapse-toggle,
  .ghost-btn, .major, .metric b, .mini-action-btn, .prefill-delete,
  .prefill-guard-card p, .prefill-table, .primary-btn,
  .result-item .meta .pill-city, .score-head, .score-reset-btn,
  .score-values input, .search-box input, .small-danger-btn,
  .smart-action-card p, .smart-batch-btn, .smart-batch-label,
  .smart-entry textarea, .smart-result-major, .suggestion-main,
  .summary-toggle, .system-switch-card span, .tab, .wish-delete,
  .wish-empty, .wish-entry input, .wish-mode button { font-size: 18px !important; }
  .school, .smart-result-title, .wish-title { font-size: 20px !important; }
  .sheet h2, .site-carousel-slide strong { font-size: 22px !important; }
  .bottom-nav {
    background: color-mix(in srgb, #fff 70%, transparent) !important;
    border: 1px solid rgba(255, 255, 255, .72) !important;
    box-shadow: 0 18px 42px rgba(28, 56, 91, .16), inset 0 1px 0 rgba(255,255,255,.9) !important;
    -webkit-backdrop-filter: blur(22px) saturate(155%) !important;
    backdrop-filter: blur(22px) saturate(155%) !important;
  }
  .bottom-nav a { min-height: 48px; }
}
/* desktop-font-floor:end */

/* Configurable motion and a stable mobile action layout. */
:root {
  --query-motion-duration: 220ms;
  --query-motion-ease: cubic-bezier(.22, 1, .36, 1);
  --query-motion-distance: 8px;
}
html[data-query-motion-theme="ios"] { --query-motion-ease: cubic-bezier(.22, 1, .36, 1); }
html[data-query-motion-theme="macos"] { --query-motion-ease: cubic-bezier(.2, .8, .2, 1); }
html[data-query-motion-theme="android"] { --query-motion-ease: cubic-bezier(.2, 0, 0, 1); }
html.admin-motion-disabled *,
html.admin-motion-disabled *::before,
html.admin-motion-disabled *::after {
  animation: none !important;
  scroll-behavior: auto !important;
  transition: none !important;
}
@media (max-width: 760px) {
  .app, .app > * { animation: none !important; }
  .topbar, .hero-card, .score-panel, .wish-panel, .sheet, .stat-card, .result-item {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
  .bottom-nav {
    -webkit-backdrop-filter: blur(10px) saturate(1.08) !important;
    backdrop-filter: blur(10px) saturate(1.08) !important;
  }
  .result-item, .wish-row {
    contain: layout paint style;
    content-visibility: auto;
    contain-intrinsic-size: 220px;
  }
  .hero-card .info-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .hero-card .info-actions > * { width: 100%; min-width: 0; min-height: 44px; white-space: normal; }
  body :is(small, label, button, input, select, textarea, a, p, li, td, th, span) {
    font-size: max(16px, 1em) !important;
  }
  .brand-name-line, .info-text, .score-hint, .stat-label, .load-hint,
  .suggestion-meta, .toast { font-size: 16px !important; }
  .school, .major, .metric b, .smart-fallback-note, .wish-title, .wish-order, .wish-count {
    font-size: 16px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}

    /* ==========================================================================
       退出系统 · 本机缓存清理确认层（20260917-exit-cache-r1）
       只新增自有类名 .exit-*，不改动任何既有规则；页头改为弹性行以容纳右侧「退出」。
       字号一律 ≥16px（沿用站点 16px 可读性下限）。
       ========================================================================== */
    .topbar {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 10px 12px;
    }
    .topbar > .brand {
      flex: 1 1 260px;
      min-width: 0;
    }
    .exit-entry {
      flex: 0 0 auto;
      margin-left: auto;
      display: flex;
      align-items: center;
    }
    .exit-btn {
      min-height: 38px;
      padding: 0 18px;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.92);
      color: var(--ink);
      font-family: var(--font-main);
      font-size: 16px;
      font-weight: 600;
      line-height: 1;
      cursor: pointer;
      transition: background 0.18s var(--ease-out, cubic-bezier(0.2, 0.72, 0.22, 1)), border-color 0.18s var(--ease-out, cubic-bezier(0.2, 0.72, 0.22, 1)), color 0.18s var(--ease-out, cubic-bezier(0.2, 0.72, 0.22, 1));
    }
    .exit-btn:hover {
      background: var(--brand-soft);
      border-color: var(--brand);
      color: var(--brand);
    }
    .exit-btn:focus-visible {
      outline: 3px solid oklch(70% 0.12 250 / 0.5);
      outline-offset: 2px;
    }
    html.exit-dialog-open,
    html.exit-dialog-open body {
      overflow: hidden;
    }
    .exit-dialog[hidden] {
      display: none !important;
    }
    .exit-dialog {
      position: fixed;
      inset: 0;
      z-index: 9000;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 20px;
      background: rgba(23, 32, 51, 0.46);
    }
    .exit-dialog-card {
      width: min(92vw, 460px);
      padding: 22px 22px 18px;
      border: 1px solid var(--line);
      border-radius: var(--radius, 16px);
      background: #fff;
      box-shadow: var(--shadow);
      color: var(--ink);
      font-family: var(--font-main);
    }
    .exit-dialog-card h2 {
      margin: 0 0 10px;
      font-size: 20px;
      font-weight: 700;
      line-height: 1.35;
    }
    .exit-dialog-card p {
      margin: 0 0 18px;
      font-size: 16px;
      line-height: 1.6;
      color: var(--muted);
    }
    .exit-dialog-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }
    .exit-dialog-actions button {
      flex: 1 1 150px;
      min-height: 44px;
      padding: 0 16px;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: #fff;
      color: var(--ink);
      font-family: var(--font-main);
      font-size: 16px;
      font-weight: 600;
      cursor: pointer;
      transition: background 0.18s var(--ease-out, cubic-bezier(0.2, 0.72, 0.22, 1)), border-color 0.18s var(--ease-out, cubic-bezier(0.2, 0.72, 0.22, 1)), color 0.18s var(--ease-out, cubic-bezier(0.2, 0.72, 0.22, 1));
    }
    .exit-dialog-actions .exit-btn-primary {
      background: var(--brand);
      border-color: var(--brand);
      color: #fff;
    }
    .exit-dialog-actions .exit-btn-primary:hover {
      filter: brightness(1.05);
    }
    .exit-dialog-actions .exit-btn-ghost:hover {
      background: var(--brand-soft);
      border-color: var(--brand);
      color: var(--brand);
    }
    .exit-dialog-actions .exit-btn-text {
      flex: 1 1 100%;
      border-color: transparent;
      background: transparent;
      color: var(--muted);
      font-weight: 500;
    }
    .exit-dialog-actions .exit-btn-text:hover {
      color: var(--ink);
      text-decoration: underline;
    }
    @media (max-width: 480px) {
      .topbar > .brand {
        flex: 1 1 200px;
      }
      .exit-btn {
        min-height: 34px;
        padding: 0 13px;
      }
      .exit-dialog-actions button {
        flex: 1 1 100%;
      }
    }
