/* UniWay metro world: one ground, one ink, five line colours; no gradients, no glass, no blur. Loaded last.

   It draws two sections only: school search with the school page it opens, and everything under 我的申請. app.js sets
   html[data-skin="metro"] while one of those pages is on screen (syncSkin), and every rule that paints a page is written under that attribute,
   where it also re-points the tokens the older stylesheets read (--uw-*, --glass-*). Every other page keeps the look it had
   before this sheet existed.

   Shared by all pages, and so not under the attribute: the --mt-* tokens, and on screens wider than 900px the top bar with
   the page centring it needs (section 19). Below that width the same element is the drawer, which follows its page.
   A new rule for a metro page starts with [data-skin="metro"]; a rule without it changes the classic pages too. */

/* ---------- 1. Tokens ---------- */
:root, html[data-theme="light"] {
  --mt-action: #165cb4; --mt-on-action: #fff; --mt-action-hover: #104b94;
  --mt-page-title: clamp(28px, 2.5vw, 36px);
  --mt-ground: #fff; --mt-concourse: #f3f4f6; --mt-ink: #1a1d23; --mt-ink-2: #2b303a; --mt-ink-3: #4a5160;
  --mt-rule: #d6dae1; --mt-rule-strong: #8d95a3; --mt-board: #1a1d23; --mt-on-board: #fff; --mt-on-board-2: #c7cdd8;
  --mt-red: #d9262c; --mt-orange: #f2a81d; --mt-blue: #1f6fd1; --mt-green: #0c7d56; --mt-brown: #8c5a2e;
  --mt-on-red: #fff; --mt-on-orange: #1a1d23; --mt-on-blue: #fff; --mt-on-green: #fff; --mt-on-brown: #fff;
  --mt-red-text: #b81c22; --mt-blue-text: #165cb4;
  --mt-focus: #1f6fd1; --mt-radius: 12px; --mt-radius-lg: 12px;
  --mt-band: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 1' preserveAspectRatio='none'%3E%3Crect width='1' height='1' fill='%23d9262c'/%3E%3Crect x='1' width='1' height='1' fill='%23f2a81d'/%3E%3Crect x='2' width='1' height='1' fill='%231f6fd1'/%3E%3Crect x='3' width='1' height='1' fill='%230c7d56'/%3E%3Crect x='4' width='1' height='1' fill='%238c5a2e'/%3E%3C/svg%3E");
  --mt-font: "Poppins", "GenJyuuGothic", "UniWay Sign", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
}
html[data-skin="metro"], html[data-skin="metro"][data-theme="light"] {
  --uw-font-ui: var(--mt-font);
  --uw-page: var(--mt-ground); --uw-surface: var(--mt-ground); --uw-surface-soft: var(--mt-concourse);
  --uw-navy: var(--mt-ink); --uw-text: var(--mt-ink); --uw-muted: var(--mt-ink-2);
  --uw-accent: var(--mt-action); --uw-accent-hover: var(--mt-action-hover); --uw-on-accent: var(--mt-on-action); --uw-accent-edge: var(--mt-action); --uw-accent-wash: var(--mt-concourse);
  --uw-blue: var(--mt-blue); --uw-blue-strong: var(--mt-blue-text); --uw-blue-soft: #e8f1fc; --uw-cyan-soft: #e8f1fc;
  --uw-line: var(--mt-rule); --uw-line-strong: var(--mt-rule-strong); --uw-hairline: var(--mt-rule);
  --uw-radius: var(--mt-radius-lg); --uw-radius-lg: 16px; --uw-shadow-soft: 0 1px 2px #1a1d2314; --uw-shadow: 0 6px 18px #1a1d2318;
  --uw-page-bg: var(--mt-ground); --ink-soft: var(--mt-ink-2);
  --uw-lilac-ink: var(--mt-ink); --uw-amber-soft: #fdf1d6; --uw-amber-ink: #7a4e00;
  --uw-ph-a: #e9ecf1; --uw-ph-b: #f3f4f6;
  --glass-surface: var(--mt-ground); --glass-strong: var(--mt-ground); --glass-edge: var(--mt-rule); --glass-hi: transparent;
  --glass-shadow: 0 1px 2px #1a1d2314; --glass-blue: #e8f1fc; --glass-lilac: var(--mt-concourse); --glass-peach: #fdecec;
  --glass-coral: var(--mt-red); --glass-coral-strong: var(--mt-red-text);
  --amber: #8a4b00; --green: #0e6a49; --journal-coral: var(--mt-red-text);
}
html[data-theme="dark"] {
  --mt-action: #8bbcff; --mt-on-action: #11151c; --mt-action-hover: #b4d4ff;
  --mt-ground: #11151c; --mt-concourse: #1a2029; --mt-ink: #eef0f4; --mt-ink-2: #b9c0cc; --mt-ink-3: #8f98a8;
  --mt-rule: #2f3846; --mt-rule-strong: #5d6879; --mt-board: #000; --mt-on-board: #fff; --mt-on-board-2: #c7cdd8;
  --mt-red: #ff5a60; --mt-orange: #ffbf47; --mt-blue: #5aa2ff; --mt-green: #38d69b; --mt-brown: #d2a074;
  --mt-on-red: #1a1d23; --mt-on-orange: #1a1d23; --mt-on-blue: #0b1220; --mt-on-green: #0b1220; --mt-on-brown: #1a1d23;
  --mt-red-text: #ff8a8e; --mt-blue-text: #8ebcff; --mt-focus: #8ebcff;
  --mt-band: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 1' preserveAspectRatio='none'%3E%3Crect width='1' height='1' fill='%23ff5a60'/%3E%3Crect x='1' width='1' height='1' fill='%23ffbf47'/%3E%3Crect x='2' width='1' height='1' fill='%235aa2ff'/%3E%3Crect x='3' width='1' height='1' fill='%2338d69b'/%3E%3Crect x='4' width='1' height='1' fill='%23d2a074'/%3E%3C/svg%3E");
}
html[data-skin="metro"][data-theme="dark"] {
  --uw-page: var(--mt-ground); --uw-surface: #161b23; --uw-surface-soft: var(--mt-concourse);
  --uw-navy: var(--mt-ink); --uw-text: var(--mt-ink); --uw-muted: var(--mt-ink-2);
  --uw-accent: var(--mt-action); --uw-accent-hover: var(--mt-action-hover); --uw-on-accent: var(--mt-on-action); --uw-accent-wash: #232b36;
  --uw-blue: var(--mt-blue); --uw-blue-strong: var(--mt-blue-text); --uw-blue-soft: #1c2b44; --uw-cyan-soft: #1c2b44;
  --uw-line: var(--mt-rule); --uw-line-strong: var(--mt-rule-strong); --uw-hairline: var(--mt-rule);
  --uw-shadow-soft: 0 1px 2px #00000066; --uw-shadow: 0 6px 18px #00000066;
  --uw-page-bg: var(--mt-ground);
  --uw-lilac-ink: var(--mt-ink); --uw-amber-soft: #3a2f14; --uw-amber-ink: #ffd98a;
  --uw-ph-a: #1f2630; --uw-ph-b: #181e26;
  --glass-surface: #161b23; --glass-strong: #161b23; --glass-edge: var(--mt-rule); --glass-hi: transparent;
  --glass-shadow: 0 1px 2px #00000066; --glass-blue: #1c2b44; --glass-lilac: #232b36; --glass-peach: #3a1f21;
  --glass-coral: var(--mt-red); --glass-coral-strong: var(--mt-red-text);
  --amber: #ffbf47; --green: #38d69b; --journal-coral: var(--mt-red-text);
}

/* ---------- 2. Base ---------- */
html[data-skin="metro"], html[data-skin="metro"][data-theme] { font-family: var(--mt-font); }
[data-skin="metro"] body, [data-skin="metro"] button, [data-skin="metro"] input, [data-skin="metro"] select, [data-skin="metro"] option, [data-skin="metro"] optgroup, [data-skin="metro"] textarea, [data-skin="metro"] input::placeholder, [data-skin="metro"] textarea::placeholder, [data-skin="metro"] ::file-selector-button { font-family: var(--mt-font); }
[data-skin="metro"] body.unified-shell { background: var(--mt-ground); color: var(--mt-ink); }
html[data-skin="metro"] body.unified-shell.school-detail-open .workspace,
html[data-skin="metro"][data-theme="dark"] body.unified-shell.school-detail-open .workspace { background: transparent; }
[data-skin="metro"] ::selection { background: var(--mt-ink); color: var(--mt-ground); }
html[data-skin="metro"] { scrollbar-color: var(--mt-rule-strong) var(--mt-ground); caret-color: var(--mt-red); accent-color: var(--mt-blue); }
[data-skin="metro"] :where(a, button, input, select, textarea, summary, [tabindex]:not([tabindex="-1"])):focus-visible { outline: 3px solid var(--mt-focus); outline-offset: 2px; }
[data-skin="metro"] .mt-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Shared rhythm for the two upgraded sections. Classic content never matches these rules. */
html[data-skin="metro"] body.unified-shell #main-content #dashboard-view > :is(#partners, #application-path, #application-workspace, [data-university-page]),
html[data-skin="metro"] body.unified-shell #main-content :is(.school-detail-view, .page-back-bar) {
  box-sizing: border-box; width: calc(100% - 48px) !important; max-width: 1280px !important;
  margin-left: auto !important; margin-right: auto !important; padding-inline: 0;
}
html[data-skin="metro"] body.unified-shell .page-back-bar { margin-block: 12px 0; min-height: 48px; padding: 0; }
html[data-skin="metro"] body.unified-shell #main-content .page-back-bar .route-toolbar { width: auto !important; max-width: none !important; margin: 0 !important; }
html[data-skin="metro"] body.unified-shell:not(.school-detail-open):is([data-active-university-page="partners"], [data-active-university-page="my-application"]) .route-back-slot { display: none; }
html[data-skin="metro"] body.unified-shell #application-path .app-shell { margin-left: 0; padding: 0 0 32px; }
html[data-skin="metro"] body.unified-shell :is(#partners.pr-explore :is(h1, h2:where(.shell-section-title)), #school-detail-title, #application-path .app-header :is(h1, h2:where(.shell-section-title)),
  #eligibility-title, #application-center-title, #application-calendar-title, #deadlines-title, #scholarships-title,
  #budget-title, #favorites-title, #document-check-title, #guide-title) {
  margin-top: 0; font-size: var(--mt-page-title); font-weight: 700; line-height: 1.3; letter-spacing: -.02em;
}
html[data-skin="metro"] body.unified-shell #dashboard-view > .page-section { padding-top: 24px; }
html[data-skin="metro"] body.unified-shell #application-path .app-header { padding-block: 12px 20px; }
html[data-skin="metro"] body.unified-shell #application-workspace > [data-university-page] { width: 100% !important; margin-inline: 0 !important; padding-inline: 0; }
[data-skin="metro"] body.unified-shell :is(#eligibility, #application-center, #application-path, #school-detail-view) p { line-height: 1.75; }
[data-skin="metro"] body.unified-shell :is(#dashboard-view, #school-detail-view) :where(
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]):not([type="file"]):not([type="submit"]),
  select, textarea, .glide-select__trigger) {
  box-sizing: border-box; min-height: 48px; border: 1px solid var(--mt-rule-strong); border-radius: var(--mt-radius);
  padding: 10px 14px; background: var(--mt-ground); color: var(--mt-ink); font: 400 16px/1.5 var(--mt-font); box-shadow: none;
}
[data-skin="metro"] body.unified-shell :is(#dashboard-view, #school-detail-view) :is(input, textarea)::placeholder { color: var(--mt-ink-3); opacity: 1; }
[data-skin="metro"] body.unified-shell :is(#dashboard-view, #school-detail-view) :is(.primary-button, .secondary-button, .outline-button) {
  min-height: 48px; border-radius: var(--mt-radius); font-weight: 700; box-shadow: none;
}
html[data-skin="metro"] body.unified-shell #application-center .application-center-hero {
  min-height: 0; padding: 0; background: var(--mt-ground); color: var(--mt-ink); border: 0; box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
html[data-skin="metro"] body.unified-shell #application-center .application-center-hero::after { display: none; }
html[data-skin="metro"] body.unified-shell #application-center .application-center-hero-mark { background: transparent; border: 0; box-shadow: none; }
[data-skin="metro"] body.unified-shell #partners.pr-explore .pr-sort-tabs .on span { color: var(--mt-ink-2); }
[data-skin="metro"] body.unified-shell .pr-booking-fit.neutral { background: var(--mt-concourse); color: var(--mt-ink-2); }
[data-skin="metro"] body.unified-shell .pr-booking-fit.wait { background: var(--uw-amber-soft); color: var(--uw-amber-ink); }
[data-skin="metro"] body.unified-shell .pr-booking-fit.blocked { background: var(--glass-peach); color: var(--mt-red-text); }
[data-skin="metro"] body.unified-shell .pr-booking-fit strong { display: block; font-weight: 700; }
[data-skin="metro"] body.unified-shell .pr-booking-fit small { display: block; margin-top: 4px; font-size: 14px; font-weight: 400; line-height: 1.6; }
[data-skin="metro"] body.unified-shell .pr-req-list .blocked .pr-req-state { color: var(--mt-red-text); }
@media (max-width: 900px) {
  /* The full explanation also lives in 申請條件; keep the fixed action bar compact. */
  [data-skin="metro"] body.unified-shell .pr-booking-fit small { display: none; }
}
@media (max-width: 600px) {
  html[data-skin="metro"] body.unified-shell #main-content #dashboard-view > :is(#partners, #application-path, #application-workspace, [data-university-page]),
  html[data-skin="metro"] body.unified-shell #main-content :is(.school-detail-view, .page-back-bar) { width: calc(100% - 32px) !important; }
  html[data-skin="metro"] body.unified-shell .page-back-bar { margin-top: 12px; }
  [data-skin="metro"] body.unified-shell #partners.pr-explore :is(.pr-favorite, .favorite-toggle) { min-width: 44px; min-height: 44px; }
}

/* ---------- 6. Shell: the five-line band, the rail, the school switcher ----------
   Each rule for the rail is written twice: for the drawer on a metro page (narrow), and for the top bar on every page (wide). */
html[data-skin="metro"] body.unified-shell:not(#mt)::before {
  content: ""; position: fixed; z-index: 70; inset: 0 0 auto 0; height: 3px; pointer-events: none;
  background: var(--mt-band) 0 0 / 100% 100% no-repeat;
  filter: none; opacity: 1;
}
@media (max-width: 900px) { [data-skin="metro"] body.unified-shell .glass-navigation-rail {
  border: 1px solid var(--mt-rule); border-radius: 14px; background: var(--mt-ground); box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none; } }
@media (min-width: 901px) { body.unified-shell .glass-navigation-rail {
  border: 1px solid var(--mt-rule); border-radius: 14px; background: var(--mt-ground); box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none; } }
@media (max-width: 900px) { [data-skin="metro"] body.unified-shell .glass-navigation-rail .uniway-header-brand strong { font-weight: 700; letter-spacing: -.01em; } }
@media (min-width: 901px) { body.unified-shell .glass-navigation-rail .uniway-header-brand strong { font-weight: 700; letter-spacing: -.01em; } }
@media (max-width: 900px) { [data-skin="metro"] body.unified-shell .glass-navigation-rail .uniway-public-nav a[data-public-route] {
  position: relative; border: 0; border-radius: 10px; background: transparent; color: var(--mt-ink-2); font-weight: 700; box-shadow: none; } }
@media (min-width: 901px) { body.unified-shell .glass-navigation-rail .uniway-public-nav a[data-public-route] {
  position: relative; border: 0; border-radius: 10px; background: transparent; color: var(--mt-ink-2); font-weight: 700; box-shadow: none; } }
@media (max-width: 900px) { [data-skin="metro"] body.unified-shell .glass-navigation-rail .uniway-public-nav a[data-public-route]:hover { background: var(--mt-concourse); color: var(--mt-ink); } }
@media (min-width: 901px) { body.unified-shell .glass-navigation-rail .uniway-public-nav a[data-public-route]:hover { background: var(--mt-concourse); color: var(--mt-ink); } }
@media (max-width: 900px) { [data-skin="metro"] body.unified-shell .glass-navigation-rail .uniway-public-nav a[data-public-route]:is([aria-current="page"], .active) { background: var(--mt-ink); color: var(--mt-ground); } }
@media (min-width: 901px) { body.unified-shell .glass-navigation-rail .uniway-public-nav a[data-public-route]:is([aria-current="page"], .active) { background: var(--mt-ink); color: var(--mt-ground); } }
@media (max-width: 900px) { [data-skin="metro"] body.unified-shell .glass-navigation-rail .uniway-public-nav a[data-public-route]:is([aria-current="page"], .active) :is(span, svg, .lucide) { color: var(--mt-ground); } }
@media (min-width: 901px) { body.unified-shell .glass-navigation-rail .uniway-public-nav a[data-public-route]:is([aria-current="page"], .active) :is(span, svg, .lucide) { color: var(--mt-ground); } }
@media (max-width: 900px) { [data-skin="metro"] body.unified-shell .glass-navigation-rail .topbar-actions { border-top: 1px solid var(--mt-rule); } }
@media (min-width: 901px) { body.unified-shell .glass-navigation-rail .topbar-actions { border-top: 1px solid var(--mt-rule); } }
@media (max-width: 900px) { [data-skin="metro"] body.unified-shell .glass-navigation-rail .topbar-actions .icon-button, [data-skin="metro"] body.unified-shell .glass-navigation-rail #account-button {
  border: 1px solid var(--mt-rule); border-radius: 10px; background: var(--mt-ground); color: var(--mt-ink); box-shadow: none; } }
@media (min-width: 901px) { body.unified-shell .glass-navigation-rail .topbar-actions .icon-button, body.unified-shell .glass-navigation-rail #account-button {
  border: 1px solid var(--mt-rule); border-radius: 10px; background: var(--mt-ground); color: var(--mt-ink); box-shadow: none; } }
@media (max-width: 900px) { [data-skin="metro"] body.unified-shell .glass-navigation-rail .topbar-actions .icon-button:hover, [data-skin="metro"] body.unified-shell .glass-navigation-rail #account-button:hover { background: var(--mt-concourse); } }
@media (min-width: 901px) { body.unified-shell .glass-navigation-rail .topbar-actions .icon-button:hover, body.unified-shell .glass-navigation-rail #account-button:hover { background: var(--mt-concourse); } }

[data-skin="metro"] body.unified-shell .page-back-bar .route-back { border: 1px solid var(--mt-rule); border-radius: 10px; background: var(--mt-ground); color: var(--mt-ink); font-weight: 700; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
[data-skin="metro"] body.unified-shell .page-back-bar #school-switcher {
  border: 1px solid var(--mt-rule); border-radius: 10px; background: var(--mt-ground); color: var(--mt-ink); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
}
[data-skin="metro"] body.unified-shell .page-back-bar #school-switcher:hover:not(:disabled) { border-color: var(--mt-ink); background: var(--mt-concourse); transform: none; }
[data-skin="metro"] body.unified-shell .page-back-bar #school-switcher .school-switcher-icon { border-radius: 50%; background: var(--mt-ink); color: var(--mt-ground); }
[data-skin="metro"] body.unified-shell .page-back-bar #school-switcher small { color: var(--mt-ink-3); font-weight: 700; letter-spacing: .06em; }
[data-skin="metro"] body.unified-shell .page-back-bar #school-switcher strong { color: var(--mt-ink); font-weight: 700; }
[data-skin="metro"] body.unified-shell .page-back-bar #school-switcher > .lucide { color: var(--mt-ink); }
[data-skin="metro"] body.unified-shell .glass-mobile-header { border: 0; border-bottom: 1px solid var(--mt-rule); border-radius: 0; background: var(--mt-ground); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
[data-skin="metro"] body.unified-shell .glass-mobile-header a { color: var(--mt-ink); font-weight: 700; }
[data-skin="metro"] body.unified-shell .glass-mobile-header .mobile-guide-link { border: 0; border-radius: 8px; background: var(--mt-ink); color: var(--mt-ground); }

/* ---------- 7. Buttons and chips used across the site ---------- */
[data-skin="metro"] body.unified-shell .primary-button, html[data-skin="metro"][data-theme="dark"] body.unified-shell .primary-button {
  border: 1px solid transparent; border-radius: var(--mt-radius); background: var(--mt-action); color: var(--mt-on-action); font-weight: 700; box-shadow: none;
}
[data-skin="metro"] body.unified-shell .primary-button:hover, html[data-skin="metro"][data-theme="dark"] body.unified-shell .primary-button:hover { background: var(--mt-action-hover); border-color: var(--mt-action-hover); }

/* ---------- 9. School search and map: the old space theme becomes the same world (day or night follows the theme) ---------- */
[data-skin="metro"] body.unified-shell:has(#dashboard-view:not([hidden]) #partners:not([hidden])),
[data-skin="metro"] body.unified-shell #partners.pr-explore {
  --uw-page: var(--mt-ground); --uw-surface: var(--mt-ground); --uw-surface-soft: var(--mt-concourse);
  --uw-text: var(--mt-ink); --uw-navy: var(--mt-ink); --uw-muted: var(--mt-ink-2);
  --uw-blue: var(--mt-blue); --uw-blue-strong: var(--mt-blue-text); --uw-blue-soft: color-mix(in srgb, var(--mt-blue) 14%, var(--mt-ground));
  --uw-line: var(--mt-rule); --uw-line-strong: var(--mt-rule-strong);
  --glass-surface: var(--mt-ground); --glass-strong: var(--mt-ground); --glass-edge: var(--mt-rule);
}
html[data-skin="metro"]:has(#dashboard-view:not([hidden]) #partners:not([hidden])) { background: var(--mt-ground); color-scheme: light; }
html[data-skin="metro"][data-theme="dark"]:has(#dashboard-view:not([hidden]) #partners:not([hidden])) { color-scheme: dark; }
html[data-skin="metro"] body.unified-shell:has(#dashboard-view:not([hidden]) #partners:not([hidden]))::before {
  background: var(--mt-band) 0 0 / 100% 100% no-repeat;
  filter: none;
}
html[data-skin="metro"] body.unified-shell:has(#dashboard-view:not([hidden]) #partners:not([hidden])) .glass-navigation-rail { background: var(--mt-ground); border: 1px solid var(--mt-rule); }
html[data-skin="metro"] body.unified-shell:has(#dashboard-view:not([hidden]) #partners:not([hidden])) .glass-navigation-rail:is(:hover, :focus-within) { background: var(--mt-ground); }
html[data-skin="metro"] body.unified-shell:has(#dashboard-view:not([hidden]) #partners:not([hidden])) .glass-mobile-header { background: var(--mt-ground); border-bottom: 1px solid var(--mt-rule); }
html[data-skin="metro"] body.unified-shell:has(#dashboard-view:not([hidden]) #partners:not([hidden])) :is(.glass-navigation-rail a, .glass-navigation-rail button, .route-back, #school-switcher) { color: var(--mt-ink); }
html[data-skin="metro"] body.unified-shell:has(#dashboard-view:not([hidden]) #partners:not([hidden])) .glass-navigation-rail .uniway-public-nav a[data-public-route]:is([aria-current="page"], .active), html[data-skin="metro"] body.unified-shell:has(#dashboard-view:not([hidden]) #partners:not([hidden])) .glass-navigation-rail .uniway-public-nav a[data-public-route]:is([aria-current="page"], .active) :is(span, svg, .lucide) { color: var(--mt-ground); background-color: transparent; }
html[data-skin="metro"] body.unified-shell:has(#dashboard-view:not([hidden]) #partners:not([hidden])) .glass-navigation-rail .uniway-public-nav a[data-public-route]:is([aria-current="page"], .active) { background: var(--mt-ink); }
html[data-skin="metro"] body.unified-shell:has(#dashboard-view:not([hidden]) #partners:not([hidden])) .glass-navigation-rail :is(.topbar-actions .icon-button, #account-button) { border: 1px solid var(--mt-rule); }
html[data-skin="metro"] body.unified-shell:has(#dashboard-view:not([hidden]) #partners:not([hidden])) .route-back { border: 1px solid var(--mt-rule); }
html[data-skin="metro"] body.unified-shell:has(#dashboard-view:not([hidden]) #partners:not([hidden])) #school-switcher { border: 1px solid var(--mt-rule); }
html[data-skin="metro"] body.unified-shell:has(#dashboard-view:not([hidden]) #partners:not([hidden])) .glass-rail-brand { color: var(--mt-ink); }

/* Search bar: flat Metro concourse frame, crisp bordered fields, and solid action button. */
[data-skin="metro"] body.unified-shell #partners.pr-explore :is(h1, h2:where(.shell-section-title)) { color: var(--mt-ink); font-weight: 700; letter-spacing: -.02em; }
[data-skin="metro"] body.unified-shell #dashboard-view #partners.pr-explore .pr-search {
  display: grid; grid-template-columns: minmax(220px, 1.7fr) minmax(150px, 1fr) minmax(150px, 1fr) auto;
  gap: 8px; margin: 12px 0 10px; padding: 6px; background: var(--mt-concourse); color: var(--mt-ink);
  border: 1px solid var(--mt-rule); border-radius: 16px; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; overflow: visible;
}
[data-skin="metro"] body.unified-shell #dashboard-view #partners.pr-explore .pr-search .pr-field {
  position: relative; display: grid; align-content: center; gap: 3px; min-width: 0; min-height: 54px; margin: 0; padding: 6px 16px;
  border: 1px solid var(--mt-rule); border-radius: 12px; background: var(--mt-ground);
}
[data-skin="metro"] body.unified-shell #partners.pr-explore .pr-search .pr-field-icon { display: none; }
[data-skin="metro"] body.unified-shell #partners.pr-explore .pr-search .pr-field-body { display: grid; gap: 3px; min-width: 0; }
[data-skin="metro"] body.unified-shell #partners.pr-explore .pr-search .pr-field-body small { color: var(--mt-ink-2); font-size: 12px; font-weight: 700; letter-spacing: .02em; }
[data-skin="metro"] body.unified-shell #partners.pr-explore .pr-search .pr-field-body :is(input, select),
[data-skin="metro"] body.unified-shell #partners.pr-explore .pr-search .glide-select__trigger {
  width: 100%; min-width: 0; min-height: 24px; padding: 0; border: 0; border-radius: 0; background: transparent;
  color: var(--mt-ink); font: 500 16px/1.4 var(--mt-font); box-shadow: none;
}
[data-skin="metro"] body.unified-shell #partners.pr-explore .pr-search .pr-field-body input::placeholder { color: var(--mt-ink-3); font-weight: 400; opacity: 1; }
[data-skin="metro"] body.unified-shell #partners.pr-explore .pr-search .glide-select__trigger :is(.lucide, svg) { color: var(--mt-ink); }
[data-skin="metro"] body.unified-shell #partners.pr-explore .pr-search .pr-field:focus-within { outline: 3px solid var(--mt-focus); outline-offset: 2px; }
[data-skin="metro"] body.unified-shell #partners.pr-explore .pr-search-button {
  min-width: 124px; min-height: 52px; align-self: stretch; margin: 0; padding: 8px 18px; border: 1px solid transparent;
  border-radius: 12px; background: var(--mt-action); color: var(--mt-on-action); font: 700 16px/1.4 var(--mt-font); box-shadow: none; transform: none;
}
[data-skin="metro"] body.unified-shell #partners.pr-explore .pr-search-button:hover { background: var(--mt-action-hover); border-color: var(--mt-action-hover); transform: none; }
[data-skin="metro"] body.unified-shell #partners.pr-explore .pr-search-button:active { background: var(--mt-action-hover); transform: none; box-shadow: none; }
html[data-skin="metro"][data-theme="dark"] body.unified-shell #dashboard-view #partners.pr-explore .pr-search { background: var(--mt-concourse); border-color: var(--mt-rule); }
[data-skin="metro"] body.unified-shell #partners.pr-explore .glide-select__menu { background: var(--mt-ground); color: var(--mt-ink); border: 1px solid var(--mt-rule-strong); border-radius: var(--mt-radius); box-shadow: 0 6px 18px #1a1d2326; }

/* The rest of the page: ink on white (or light on night), rules instead of glow. */
[data-skin="metro"] body.unified-shell #partners.pr-explore .pr-view-toggle button { color: var(--mt-ink-2); border-radius: 10px; font-weight: 700; }
[data-skin="metro"] body.unified-shell #partners.pr-explore .pr-view-toggle button[aria-pressed="true"] { background: var(--mt-ink); color: var(--mt-ground); }
[data-skin="metro"] body.unified-shell #partners.pr-explore :is(.partner-result-count, .pr-applied, .discovery-muted), [data-skin="metro"] body.unified-shell #partners.pr-explore :is(.partner-map-access p, .partner-map-heading p) { color: var(--mt-ink-2); }
[data-skin="metro"] body.unified-shell #partners.pr-explore .partner-map-heading h2 { color: var(--mt-ink); font-weight: 700; }
[data-skin="metro"] body.unified-shell #partners.pr-explore .partner-map-actions .secondary-button { border: 1px solid var(--mt-rule); border-radius: 10px; background: var(--mt-ground); color: var(--mt-ink); font-weight: 700; }
[data-skin="metro"] body.unified-shell #partners.pr-explore .partner-map-preview { background: var(--mt-ground); color: var(--mt-ink); border: 1px solid var(--mt-rule); border-radius: 12px; box-shadow: 0 8px 22px #1a1d2326; backdrop-filter: none; }
[data-skin="metro"] body.unified-shell #partners.pr-explore .partner-map-status { background: var(--mt-ground); color: var(--mt-ink); }
[data-skin="metro"] body.unified-shell #partners.pr-explore :is(.partner-map-legend, .partner-map-footer) { color: var(--mt-ink-2); font-weight: 700; }
[data-skin="metro"] body.unified-shell #partners.pr-explore #partner-globe .maplibregl-ctrl-group { border: 1px solid var(--mt-rule); border-radius: 10px; background: var(--mt-ground); }
[data-skin="metro"] body.unified-shell #partners.pr-explore #partner-globe .maplibregl-ctrl-icon { filter: none; }
html[data-skin="metro"][data-theme="dark"] body.unified-shell #partners.pr-explore #partner-globe .maplibregl-ctrl-icon { filter: invert(1); }
[data-skin="metro"] body.unified-shell #partners.pr-explore #partner-globe .maplibregl-ctrl-attrib { background: var(--mt-ground); color: var(--mt-ink-2); }
[data-skin="metro"] body.unified-shell #partners.pr-explore #partner-globe .maplibregl-ctrl-attrib a { color: var(--mt-ink-2); }
[data-skin="metro"] body.unified-shell #partners.pr-explore #partner-globe .maplibregl-canvas { filter: none; }
[data-skin="metro"] body.unified-shell #partners.pr-explore .maplibregl-popup-content { background: var(--mt-ground); color: var(--mt-ink); border: 1px solid var(--mt-rule); border-radius: 10px; }
[data-skin="metro"] body.unified-shell #partners.pr-explore .glide-select__trigger { background: var(--mt-ground); color: var(--mt-ink); }
[data-skin="metro"] body.unified-shell #partners.pr-explore .pr-facets :is(legend, label, small, strong, summary, .pr-clear, .glide-select__trigger, .glide-select__menu), [data-skin="metro"] body.unified-shell #partners.pr-explore .pr-facets :is(.pr-facet-selects label > span, .pr-check > span:not(.pr-check-box)) { color: var(--mt-ink); }
[data-skin="metro"] body.unified-shell #partners.pr-explore:has([data-partner-view="map"][aria-pressed="true"]) .pr-facets > summary { color: var(--mt-ink); font-weight: 700; }
[data-skin="metro"] body.unified-shell #partners.pr-explore .pr-facets .pr-check-box { border: 1px solid var(--mt-rule-strong); border-radius: 4px; }
[data-skin="metro"] body.unified-shell #partners.pr-explore .pr-facets input:checked + .pr-check-box { background: var(--mt-blue); color: var(--mt-on-blue); border-color: var(--mt-ink); }
[data-skin="metro"] body.unified-shell #partners.pr-explore .map-tooltip, [data-skin="metro"] body.unified-shell #partners.pr-explore .map-tooltip strong, [data-skin="metro"] body.unified-shell #partners.pr-explore .map-tooltip small, [data-skin="metro"] body.unified-shell #partners.pr-explore .map-preview-top h4, [data-skin="metro"] body.unified-shell #partners.pr-explore .map-preview-place { color: var(--mt-ink); }
[data-skin="metro"] body.unified-shell #partners.pr-explore .map-home-marker { background: var(--mt-ink); color: var(--mt-ground); border-color: var(--mt-ink); box-shadow: none; }
[data-skin="metro"] body.unified-shell #partners.pr-explore .map-home-marker::after { border-color: var(--mt-ink); }
@media (max-width: 900px) {
  [data-skin="metro"] body.unified-shell #dashboard-view #partners.pr-explore .pr-search { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  [data-skin="metro"] body.unified-shell #partners.pr-explore .pr-search .pr-field:nth-child(1) { grid-column: 1 / -1; }
  [data-skin="metro"] body.unified-shell #partners.pr-explore .pr-search-button { grid-column: 1 / -1; min-height: 56px; }
}

/* The page's context line (school and partner count) reads under the heading, not as a label above it. */
[data-skin="metro"] body.unified-shell #partners.pr-explore .pr-explore-head > div:first-child { display: flex; flex-direction: column; }
[data-skin="metro"] body.unified-shell #partners.pr-explore .pr-explore-context { order: 2; margin: 6px 0 0; padding: 0; border: 0; background: transparent; color: var(--mt-ink-2); font-size: 14px; font-weight: 700; }

/* Rail labels sit on the 11px floor. */
@media (max-width: 900px) { [data-skin="metro"] body.unified-shell .glass-navigation-rail .uniway-public-nav a[data-public-route] > span { font-size: 11px; } }
@media (min-width: 901px) { body.unified-shell .glass-navigation-rail .uniway-public-nav a[data-public-route] > span { font-size: 11px; } }

/* The rail's compact labels are held to the 11px floor even in the collapsed rail; buttons carry no gradient in this world. */
@media (max-width: 900px) { html[data-skin="metro"] body.unified-shell .glass-navigation-rail:not(:hover):not(:focus-within) .uniway-public-nav a[data-public-route] > span { font-size: 11px !important; } }
@media (min-width: 901px) { html body.unified-shell .glass-navigation-rail:not(:hover):not(:focus-within) .uniway-public-nav a[data-public-route] > span { font-size: 11px !important; } }
[data-skin="metro"] body.unified-shell :is(button, .primary-button, .secondary-button, .icon-button, .back-button, .nav-button, .account-button) { background-image: none; }

/* ---------- 11. Review fixes ---------- */

/* Labels that sat above headings are gone: the heading carries itself. A school's country stays, under its name. */
[data-skin="metro"] body.unified-shell :is(.eyebrow, .section-kicker):not(#application-form-stage):not(#school-detail-country) { display: none; }
[data-skin="metro"] body.unified-shell .school-detail-copy .travel-detail-heading { display: flex; flex-direction: column; }
[data-skin="metro"] body.unified-shell #school-detail-country { display: none; } /* Place is already beside the school name in .pr-detail-subline. */
[data-skin="metro"] .mt-star { width: 1em; height: 1em; fill: currentColor; vertical-align: -.14em; margin-right: .3em; }
[data-skin="metro"] .map-legend-star .mt-star { margin: 0; }
[data-skin="metro"] body.unified-shell #dashboard-view #partners.pr-explore .pr-search-button .pr-search-label { position: static; display: inline; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; clip-path: none; white-space: nowrap; }

/* 13. The school card on the globe: the five figures that decide whether to look further, then one button for the rest.
   Long text is clamped; scrolling keeps the card usable at high zoom. Full text is behind 查看完整資料. */
[data-skin="metro"] body.unified-shell #partners.pr-explore .partner-map-preview { right: 16px; width: min(344px, calc(100% - 32px)); max-height: calc(100% - 84px); overflow: auto; background: var(--mt-ground); color: var(--mt-ink); border: 1px solid var(--mt-rule); border-radius: 12px; box-shadow: 0 10px 28px #1a1d2333; backdrop-filter: none; }
[data-skin="metro"] body.unified-shell #partners.pr-explore .map-preview-top { padding: 14px 46px 12px 16px; background: transparent; border-bottom: 1px solid var(--mt-rule); }
[data-skin="metro"] body.unified-shell #partners.pr-explore .map-preview-place { color: var(--mt-ink-2); font-size: 13px; font-weight: 700; letter-spacing: 0; }
[data-skin="metro"] body.unified-shell #partners.pr-explore .map-preview-top h4 { margin: 4px 0 8px; font-size: 21px; line-height: 1.25; color: var(--mt-ink); font-weight: 700; }
[data-skin="metro"] body.unified-shell #partners.pr-explore .map-preview-top h4 > span { display: block; margin-top: 3px; font-size: 14px; font-weight: 700; line-height: 1.3; color: var(--mt-ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
[data-skin="metro"] body.unified-shell #partners.pr-explore .map-preview-close { color: var(--mt-ink); }
[data-skin="metro"] body.unified-shell #partners.pr-explore .map-preview-body { padding: 12px 16px 14px; }
[data-skin="metro"] body.unified-shell #partners.pr-explore .map-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0 0 10px; padding: 0; border: 1px solid var(--mt-rule); border-radius: 10px; overflow: hidden; }
[data-skin="metro"] body.unified-shell #partners.pr-explore .map-facts > div { min-width: 0; padding: 8px 10px 9px; border-top: 1.5px solid var(--mt-rule-strong); border-left: 1.5px solid var(--mt-rule-strong); }
[data-skin="metro"] body.unified-shell #partners.pr-explore .map-facts > div:nth-child(-n+2) { border-top: 0; }
[data-skin="metro"] body.unified-shell #partners.pr-explore .map-facts > div:nth-child(odd) { border-left: 0; }
[data-skin="metro"] body.unified-shell #partners.pr-explore .map-facts > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
[data-skin="metro"] body.unified-shell #partners.pr-explore .map-facts dt { margin: 0 0 2px; font-size: 12px; font-weight: 700; color: var(--mt-ink-2); }
[data-skin="metro"] body.unified-shell #partners.pr-explore .map-facts dd { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.35; color: var(--mt-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
[data-skin="metro"] body.unified-shell #partners.pr-explore .discovery-preview-extras { margin: 0 0 10px; padding: 0; border: 0; }
[data-skin="metro"] body.unified-shell #partners.pr-explore .discovery-preview-extras section { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "head action" "body body"; gap: 2px 10px; align-items: center; }
[data-skin="metro"] body.unified-shell #partners.pr-explore .discovery-preview-extras h5 { grid-area: head; margin: 0; font-size: 13px; font-weight: 700; color: var(--mt-ink-2); }
[data-skin="metro"] body.unified-shell #partners.pr-explore .discovery-preview-extras p { grid-area: body; }
[data-skin="metro"] body.unified-shell #partners.pr-explore .discovery-preview-extras :is(button, a) { grid-area: action; justify-self: end; }
[data-skin="metro"] body.unified-shell #partners.pr-explore .map-facts-pending { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0 0 10px; font-size: 13px; font-weight: 700; color: var(--mt-ink-2); }
[data-skin="metro"] body.unified-shell #partners.pr-explore .map-facts-pending b { padding: 1px 8px; border: 1.5px solid var(--mt-ink-2); border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--mt-ink); }
[data-skin="metro"] body.unified-shell #partners.pr-explore .discovery-preview-extras p { font-size: 14px; line-height: 1.5; color: var(--mt-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
[data-skin="metro"] body.unified-shell #partners.pr-explore .discovery-preview-extras :is(button, a) { font-size: 13px; font-weight: 700; color: var(--mt-blue); white-space: nowrap; }
[data-skin="metro"] body.unified-shell #partners.pr-explore .discovery-match { margin: 0 0 8px; font-size: 13px; font-weight: 700; }
[data-skin="metro"] body.unified-shell #partners.pr-explore .map-preview-actions { flex-direction: row; gap: 8px; margin: 0; }
[data-skin="metro"] body.unified-shell #partners.pr-explore .map-preview-actions .primary-button { flex: 1 1 auto; min-height: 46px; margin: 0; padding: 0 14px; justify-content: center; font-size: 15px; }
[data-skin="metro"] body.unified-shell #partners.pr-explore .map-preview-actions .favorite-toggle { flex: none; min-height: 46px; padding-inline: 12px; }
[data-skin="metro"] body.unified-shell #partners.pr-explore .map-location-note { margin: 8px 0 0; font-size: 13px; color: var(--mt-ink-2); }
[data-skin="metro"] body.unified-shell #partners.pr-explore .map-location-note summary { min-height: 32px; display: flex; align-items: center; cursor: pointer; font-weight: 700; }
[data-skin="metro"] body.unified-shell #partners.pr-explore .map-location-note[open] > :not(summary) { max-height: 6.5em; overflow: auto; }
@media (max-width: 700px) {
  [data-skin="metro"] body.unified-shell #partners.pr-explore .partner-map-preview { left: 8px; right: 8px; bottom: 8px; width: auto; border-radius: 12px; }
  [data-skin="metro"] body.unified-shell #partners.pr-explore .partner-map-preview::before { content: none; }
  [data-skin="metro"] body.unified-shell #partners.pr-explore .map-preview-top { padding: 10px 44px 10px 14px; }
  [data-skin="metro"] body.unified-shell #partners.pr-explore .map-preview-top h4 { margin: 2px 0 6px; font-size: 18px; }
  [data-skin="metro"] body.unified-shell #partners.pr-explore .map-preview-top h4 > span { -webkit-line-clamp: 1; font-size: 13px; }
  [data-skin="metro"] body.unified-shell #partners.pr-explore .map-preview-body { padding: 10px 14px 12px; }
  [data-skin="metro"] body.unified-shell #partners.pr-explore .map-facts > div { padding: 6px 9px 7px; }
  [data-skin="metro"] body.unified-shell #partners.pr-explore .map-facts dd { font-size: 14px; -webkit-line-clamp: 1; }
  [data-skin="metro"] body.unified-shell #partners.pr-explore .discovery-preview-extras { display: none; }
}

/* Lines the scripts still write (for assistive technology and tests) but that carry no decision: they stay out of sight. */
[data-skin="metro"] :is(#partner-map-context, #partner-map-missing, #partner-map-home-status, #community-home-description, #discovery-save-note, #planning-period-hint, #discussion-bookmark-status)[hidden] { display: none !important; }

/* 15. The language-test (and every other) dropdown on the search bar: the highlighted row is a tint with an outline, never
   a solid bar the same colour as its text, in both themes. */
[data-skin="metro"] body.unified-shell #partners.pr-explore .glide-select__pill { background: var(--mt-concourse); background: color-mix(in srgb, var(--mt-ink) 12%, transparent); box-shadow: inset 0 0 0 2px var(--mt-ink); color: var(--mt-ink); }
[data-skin="metro"] body.unified-shell #partners.pr-explore .glide-select__option { position: relative; z-index: 1; color: var(--mt-ink); font-weight: 700; }
[data-skin="metro"] body.unified-shell #partners.pr-explore .glide-select__option[aria-selected="true"] { font-weight: 700; }

/* 17. School marks: every school its own hue, strong enough to tell apart (they were one pale blue). */
[data-skin="metro"] .school-emblem { background: hsl(var(--school-tint, 200) 82% 86%); color: hsl(var(--school-tint, 200) 75% 22%); box-shadow: inset 0 0 0 2px hsl(var(--school-tint, 200) 62% 42%); }
html[data-skin="metro"][data-theme="dark"] .school-emblem { background: hsl(var(--school-tint, 200) 50% 24%); color: hsl(var(--school-tint, 200) 90% 86%); box-shadow: inset 0 0 0 2px hsl(var(--school-tint, 200) 70% 58%); }

/* 18. 我的申請: boxes sized to what is in them and laid side by side, instead of full-width bars of one short line each. */
[data-skin="metro"] #application-path .plan-choice select { max-width: 420px; }
[data-skin="metro"] #application-path .plan-choice label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width: 701px) {
  [data-skin="metro"] #application-path .plan-strip { flex-wrap: wrap; justify-content: flex-start; gap: 10px 36px; }
  [data-skin="metro"] #application-path .plan-choice { flex: 0 1 520px; }
  [data-skin="metro"] #application-path .plan-progress { margin-left: auto; width: 240px; }
  [data-skin="metro"] #application-path .hub-tabs { flex: 1 0 100%; padding: 4px 0 0; }
}
[data-skin="metro"] #application-path .today { gap: 14px; margin-top: 12px; }
[data-skin="metro"] #application-path .today-top { grid-template-columns: minmax(0, 1.7fr) minmax(250px, 1fr); gap: 14px; }
[data-skin="metro"] #application-path .today-focus { min-height: 0; gap: 8px; padding: 18px 22px 20px; border-radius: 12px; }
[data-skin="metro"] #application-path .today-focus::after { display: none; }
[data-skin="metro"] #application-path .today-focus h2 { max-width: none; font-size: 24px; }
[data-skin="metro"] #application-path .today-focus p { max-width: 60ch; }
[data-skin="metro"] #application-path .today-panel { padding: 14px 18px 16px; border: 1px solid var(--mt-rule); border-radius: 12px; background: var(--mt-ground); }
[data-skin="metro"] #application-path .today-date { font-size: 36px; }
[data-skin="metro"] #application-path .today-head { margin-bottom: 8px; }
[data-skin="metro"] #application-path .today-head h2 { font-size: 16px; font-weight: 700; }
@media (max-width: 760px) {
  [data-skin="metro"] #application-path .today-top { grid-template-columns: minmax(0, 1fr); }
}
[data-skin="metro"] #application-path .plan-strip .plan-choice { flex: 0 1 520px; max-width: 520px; }
[data-skin="metro"] #application-path .plan-strip .plan-choice .glide-select, [data-skin="metro"] #application-path .plan-strip .plan-choice select { max-width: 100%; }

/* 19. The navigation is a top bar (it was a rail down the left edge, widening on hover). Narrow screens keep their drawer.
   The older sheets place every page 112px from the left edge to clear the rail; here they are centred, full width. */
@media (min-width: 901px) {
  html { scroll-padding-top: 80px; }
  html body.unified-shell { padding-top: 68px; --nav-header-height: 68px; --nav-toolbar-height: 0px; }
  html body.unified-shell .glass-navigation-rail {
    position: fixed !important; inset: 0 0 auto 0 !important; width: auto !important; height: 68px !important; padding: 0 24px !important; gap: 20px !important;
    flex-direction: row !important; align-items: center !important; overflow: visible !important; border: 0 !important; border-bottom: 1px solid var(--mt-rule) !important;
    border-radius: 0 !important; background: var(--mt-ground) !important; box-shadow: none !important; backdrop-filter: none !important; transform: none !important;
    visibility: visible !important; z-index: 60;
  }
  html body.unified-shell .glass-navigation-rail .glass-menu-close { display: none !important; }
  html body.unified-shell .glass-navigation-rail .uniway-header-brand { order: 0; width: auto !important; min-height: 0 !important; padding: 0 !important; flex: none; }
  /* The wordmark is always there. The old rail showed only the mark until the pointer touched it, which is why "UniWay" came and went. */
  html body.unified-shell .glass-navigation-rail .uniway-header-brand { justify-content: flex-start !important; gap: 10px !important; }
  html body.unified-shell .glass-navigation-rail .uniway-header-brand strong {
    display: inline !important; inline-size: auto !important; width: auto !important; opacity: 1 !important; visibility: visible !important; transform: none !important; overflow: visible !important; font-size: 22px;
  }
  html body.unified-shell .glass-navigation-rail .uniway-public-nav { order: 1; flex-direction: row !important; flex: 1 1 auto; width: auto !important; margin: 0 !important; gap: 4px !important; align-items: center; }
  html body.unified-shell .glass-navigation-rail .uniway-public-nav a[data-public-route],
  html body.unified-shell .glass-navigation-rail:not(:hover):not(:focus-within) .uniway-public-nav a[data-public-route] {
    flex-direction: row !important; justify-content: center; width: auto !important; height: 44px !important; min-height: 0 !important; padding: 0 14px !important; gap: 8px !important;
    border-radius: 8px; border: 2px solid transparent; color: var(--mt-ink); font-weight: 700;
  }
  html body.unified-shell .glass-navigation-rail .uniway-public-nav a > span,
  html body.unified-shell .glass-navigation-rail:not(:hover):not(:focus-within) .uniway-public-nav a[data-public-route] > span {
    position: static !important; display: inline !important; width: auto !important; inline-size: auto !important; max-inline-size: none !important; height: auto !important; opacity: 1 !important; clip: auto !important; overflow: visible !important; margin: 0 !important; font-size: 15px !important; font-weight: 700 !important; letter-spacing: 0 !important; line-height: 1 !important;
  }
  html body.unified-shell .glass-navigation-rail .uniway-public-nav a:hover { background: var(--mt-concourse); border-color: var(--mt-rule-strong); }
  html body.unified-shell .glass-navigation-rail .uniway-public-nav a[aria-current="page"] { background: var(--mt-ink); color: var(--mt-ground); border-color: var(--mt-ink); }
  html body.unified-shell .glass-navigation-rail .topbar-actions {
    order: 3; flex-direction: row !important; flex-wrap: nowrap !important; align-items: center; width: auto !important; margin: 0 0 0 auto !important; padding: 0 !important; border: 0 !important; gap: 8px !important;
  }
  html body.unified-shell .glass-navigation-rail .topbar-status, html body.unified-shell .glass-navigation-rail .rail-action-label { display: none !important; }
  html body.unified-shell .glass-navigation-rail .topbar-actions .icon-button { width: 44px !important; min-height: 44px !important; }
  html body.unified-shell .glass-navigation-rail .workspace-sync-control:not([hidden]) { width: auto !important; order: 2; }
  html body.unified-shell .glass-navigation-rail #account-button { order: 4; width: auto !important; max-width: 200px; min-height: 44px; padding: 0 12px !important; }
  /* pages: centred across the full width instead of 112px from the left */
  html body.unified-shell #dashboard-view > :is(#home-landing, #guide, #profile, #feedback, #search-panel, #application-workspace, #application-path, #sources.sources-disclosure, #partners, [data-university-page]), html body.unified-shell :is(.school-detail-view, #community-hub.global-community-section, .global-community-section, .page-back-bar, .route-toolbar) {
    width: calc(100% - 64px) !important; max-width: var(--pr-page-max, 1400px) !important; margin-left: auto !important; margin-right: auto !important;
  }
}
/* Just above the drawer breakpoint the links keep their icons and say their names only to assistive technology;
   medium screens show crisp single-row Chinese labels, and wide desktops show both icon and label. */
@media (min-width: 901px) and (max-width: 1220px) {
  html body.unified-shell .glass-navigation-rail { gap: 10px !important; padding: 0 14px !important; }
  html body.unified-shell .glass-navigation-rail .uniway-public-nav a > span,
  html body.unified-shell .glass-navigation-rail:not(:hover):not(:focus-within) .uniway-public-nav a[data-public-route] > span {
    position: absolute !important; width: 1px !important; inline-size: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important;
  }
  html body.unified-shell .glass-navigation-rail .uniway-public-nav a[data-public-route],
  html body.unified-shell .glass-navigation-rail:not(:hover):not(:focus-within) .uniway-public-nav a[data-public-route] { width: 42px !important; padding: 0 !important; }
  html body.unified-shell .glass-navigation-rail #account-button { max-width: 112px; }
}
@media (min-width: 1221px) and (max-width: 1400px) {
  html body.unified-shell .glass-navigation-rail { gap: 14px !important; padding: 0 18px !important; }
  html body.unified-shell .glass-navigation-rail .uniway-public-nav a[data-public-route],
  html body.unified-shell .glass-navigation-rail:not(:hover):not(:focus-within) .uniway-public-nav a[data-public-route] { padding: 0 9px !important; gap: 4px !important; }
  html body.unified-shell .glass-navigation-rail .uniway-public-nav a[data-public-route] > :is(svg, .lucide) { display: none !important; }
  html body.unified-shell .glass-navigation-rail .uniway-public-nav a > span,
  html body.unified-shell .glass-navigation-rail:not(:hover):not(:focus-within) .uniway-public-nav a[data-public-route] > span { font-size: 14px !important; }
}
@media (min-width: 1401px) {
  html body.unified-shell .glass-navigation-rail .uniway-public-nav a[data-public-route],
  html body.unified-shell .glass-navigation-rail:not(:hover):not(:focus-within) .uniway-public-nav a[data-public-route] { padding: 0 10px !important; gap: 6px !important; }
  html body.unified-shell .glass-navigation-rail .uniway-public-nav a > span,
  html body.unified-shell .glass-navigation-rail:not(:hover):not(:focus-within) .uniway-public-nav a[data-public-route] > span { font-size: 14.5px !important; }
}
@media (min-width: 1101px) {
  html body.unified-shell .glass-navigation-rail #account-button-label { display: inline !important; font-size: 14px; font-weight: 700; inline-size: auto !important; opacity: 1 !important; visibility: visible !important; transform: none !important; overflow: visible !important; }
}

/* 21. The search page is soft and round: pastel pills and bubbles instead of ink outlines and a black slab, nothing pressed against an edge,
   and a taller window so the globe is bigger. Colours are mixed from the same tokens, so night mode follows by itself. */
[data-skin="metro"] body.unified-shell #partners.pr-explore {
  --cute-pink: color-mix(in srgb, var(--mt-red) 14%, var(--mt-ground)); --cute-yellow: color-mix(in srgb, var(--mt-orange) 26%, var(--mt-ground));
  --cute-blue: color-mix(in srgb, var(--mt-blue) 15%, var(--mt-ground)); --cute-mint: color-mix(in srgb, var(--mt-green) 16%, var(--mt-ground));
  --cute-soft: color-mix(in srgb, var(--mt-ink) 7%, var(--mt-ground)); --cute-shadow: 0 6px 18px color-mix(in srgb, var(--mt-ink) 11%, transparent);
}
/* the rows of small controls: tinted pills, no outlines */
html[data-skin="metro"] body.unified-shell #partners.pr-explore.pr-explore :is(.discovery-criteria, .discovery-recents, .discovery-open-workspace, .journey-filter-drawer) { border: 0; border-radius: 26px; background: var(--cute-soft); box-shadow: none; }
html[data-skin="metro"] body.unified-shell #partners.pr-explore.pr-explore .journey-filter-drawer { background: transparent; }
[data-skin="metro"] body.unified-shell #partners.pr-explore .journey-filter-drawer > summary { width: max-content; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--cute-blue); }
html[data-skin="metro"] body.unified-shell #partners.pr-explore.pr-explore .discovery-criteria { background: var(--cute-blue); }
html[data-skin="metro"] body.unified-shell #partners.pr-explore.pr-explore .discovery-recents { background: var(--cute-mint); }
html[data-skin="metro"] body.unified-shell #partners.pr-explore.pr-explore .discovery-open-workspace { background: var(--cute-soft); }
[data-skin="metro"] body.unified-shell #partners.pr-explore :is(.discovery-criteria, .discovery-recents) > summary, [data-skin="metro"] body.unified-shell #partners.pr-explore .discovery-open-workspace { min-height: 44px; padding-block: 0; font-weight: 700; color: var(--mt-ink); }
html[data-skin="metro"] body.unified-shell #partners.pr-explore.pr-explore :is(.discovery-criteria, .discovery-recents)[open] { border-radius: 26px; background: var(--cute-blue); color: var(--mt-ink); }
html[data-skin="metro"] body.unified-shell #partners.pr-explore.pr-explore .discovery-recents[open] { background: var(--cute-mint); }
html[data-skin="metro"] body.unified-shell #partners.pr-explore.pr-explore .pr-view-toggle { padding: 4px; border: 0; border-radius: 999px; background: var(--cute-soft); }
html[data-skin="metro"] body.unified-shell #partners.pr-explore .pr-view-toggle button { border-radius: 999px; }
html[data-skin="metro"] body.unified-shell #partners.pr-explore .pr-view-toggle button[aria-pressed="true"] { background: var(--mt-action); color: var(--mt-on-action); box-shadow: none; }
/* the globe's own buttons sit inside the window with room around them, so none is clipped by its edge */
[data-skin="metro"] body.unified-shell #partners.pr-explore .partner-map-actions { padding: 8px 160px 0 0; pointer-events: none; }
[data-skin="metro"] body.unified-shell #partners.pr-explore .partner-map-actions .secondary-button {
  min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--cute-soft); color: var(--mt-ink); font: 700 13px/1 var(--mt-font);
  box-shadow: var(--cute-shadow); transition: transform 140ms ease;
}
[data-skin="metro"] body.unified-shell #partners.pr-explore .partner-map-actions .secondary-button:hover:not(:disabled) { transform: translateY(-2px); }
[data-skin="metro"] body.unified-shell #partners.pr-explore .partner-map-actions #map-motion { background: var(--cute-yellow); }
[data-skin="metro"] body.unified-shell #partners.pr-explore .partner-map-actions #map-home { background: var(--cute-pink); }
[data-skin="metro"] body.unified-shell #partners.pr-explore .partner-map-actions #map-global { background: var(--cute-blue); }
[data-skin="metro"] body.unified-shell #partners.pr-explore .partner-map-actions #map-gaps-open { background: var(--cute-mint); }
[data-skin="metro"] body.unified-shell #partners.pr-explore .partner-map-actions #map-motion[aria-pressed="false"] { opacity: .75; }
[data-skin="metro"] body.unified-shell #partners.pr-explore #partner-globe .maplibregl-ctrl-group { display: flex; border: 0; border-radius: 26px; background: var(--mt-ground); box-shadow: var(--cute-shadow); overflow: hidden; }
[data-skin="metro"] body.unified-shell #partners.pr-explore #partner-globe .maplibregl-ctrl-group button { width: 44px; height: 44px; border: 0; border-radius: 0; }
[data-skin="metro"] body.unified-shell #partners.pr-explore #partner-globe .maplibregl-ctrl-group button:hover { background: var(--cute-yellow); }
html[data-skin="metro"] body.unified-shell #partners.pr-explore.pr-explore .pr-sort-tabs { padding: 6px; border: 1px solid var(--mt-rule); border-radius: var(--mt-radius); background: var(--cute-soft); box-shadow: none; }
html[data-skin="metro"] body.unified-shell #partners.pr-explore.pr-explore .pr-sort-tabs button { border: 1px solid transparent; border-radius: 8px; }
html[data-skin="metro"] body.unified-shell #partners.pr-explore.pr-explore .pr-sort-tabs button.on { background: var(--mt-ground); border-color: var(--mt-rule); box-shadow: none; }
/* the window: no colour of its own, the same white as the page around it, so the globe floats on the page; it is tall enough that the globe fills it */
html[data-skin="metro"] body.unified-shell #partners.pr-explore.pr-explore .partner-map-stage { border-radius: 34px; overflow: hidden; background: var(--mt-ground); }
[data-skin="metro"] body.unified-shell #partners.pr-explore #partner-globe .maplibregl-canvas { filter: drop-shadow(0 10px 14px #172b3a18); }
[data-skin="metro"] body.unified-shell #partners.pr-explore .map-home-marker { border-color: #fff; background: #ff6f91; color: #fff; }
[data-skin="metro"] body.unified-shell #partners.pr-explore .map-home-marker::after { border-color: #ff6f91; }
@media (min-width: 901px) {
  html[data-skin="metro"] body.unified-shell #partners.pr-explore.pr-explore .partner-map-stage { height: clamp(700px, calc(100dvh - 100px), 1100px); }
  html[data-skin="metro"] body.unified-shell #main-content #dashboard-view > #partners.pr-explore:has([data-partner-view="map"][aria-pressed="true"]) { max-width: 1800px !important; }
  html[data-skin="metro"] body.unified-shell:has(#partners:not([hidden]) [data-partner-view="map"][aria-pressed="true"]) #main-content .page-back-bar { max-width: 1800px !important; }
  [data-skin="metro"] body.unified-shell #partners.pr-explore:has([data-partner-view="map"][aria-pressed="true"]) .journey-search-layout { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; }
  [data-skin="metro"] body.unified-shell #partners.pr-explore:has([data-partner-view="map"][aria-pressed="true"]) .journey-search-results { display: contents; }
  [data-skin="metro"] body.unified-shell #partners.pr-explore:has([data-partner-view="map"][aria-pressed="true"]) .pr-facets { grid-column: 1; grid-row: 1; }
  [data-skin="metro"] body.unified-shell #partners.pr-explore:has([data-partner-view="map"][aria-pressed="true"]) .pr-results-head { grid-column: 2; grid-row: 1; }
  [data-skin="metro"] body.unified-shell #partners.pr-explore:has([data-partner-view="map"][aria-pressed="true"]) .discovery-search-tools { grid-column: 3; grid-row: 1; }
  [data-skin="metro"] body.unified-shell #partners.pr-explore:has([data-partner-view="map"][aria-pressed="true"]) #discovery-criteria-result { grid-column: 1 / -1; grid-row: 2; }
  [data-skin="metro"] body.unified-shell #partners.pr-explore:has([data-partner-view="map"][aria-pressed="true"]) #partner-map-panel { grid-column: 1 / -1; grid-row: 3; }
  [data-skin="metro"] body.unified-shell #partners.pr-explore:has([data-partner-view="map"][aria-pressed="true"]) .pr-facets[open] { grid-column: 1 / -1; }
  [data-skin="metro"] body.unified-shell #partners.pr-explore:has([data-partner-view="map"][aria-pressed="true"]):has(.pr-facets[open]) .pr-results-head { grid-column: 1; grid-row: 2; }
  [data-skin="metro"] body.unified-shell #partners.pr-explore:has([data-partner-view="map"][aria-pressed="true"]):has(.pr-facets[open]) .discovery-search-tools { grid-column: 2 / -1; grid-row: 2; }
  [data-skin="metro"] body.unified-shell #partners.pr-explore:has([data-partner-view="map"][aria-pressed="true"]):has(.pr-facets[open]) #discovery-criteria-result { grid-row: 3; }
  [data-skin="metro"] body.unified-shell #partners.pr-explore:has([data-partner-view="map"][aria-pressed="true"]):has(.pr-facets[open]) #partner-map-panel { grid-row: 4; }
  /* Give expanded personal criteria / recent schools their own full-width row. */
  [data-skin="metro"] body.unified-shell #partners.pr-explore:has([data-partner-view="map"][aria-pressed="true"]):has(.discovery-search-tools details[open]) .discovery-search-tools { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
  [data-skin="metro"] body.unified-shell #partners.pr-explore:has([data-partner-view="map"][aria-pressed="true"]):has(.discovery-search-tools details[open]) #discovery-criteria-result { grid-row: 3; }
  [data-skin="metro"] body.unified-shell #partners.pr-explore:has([data-partner-view="map"][aria-pressed="true"]):has(.discovery-search-tools details[open]) #partner-map-panel { grid-row: 4; }
  [data-skin="metro"] body.unified-shell #partners.pr-explore:has([data-partner-view="map"][aria-pressed="true"]):has(.pr-facets[open]):has(.discovery-search-tools details[open]) .discovery-search-tools { grid-row: 3; }
  [data-skin="metro"] body.unified-shell #partners.pr-explore:has([data-partner-view="map"][aria-pressed="true"]):has(.pr-facets[open]):has(.discovery-search-tools details[open]) #discovery-criteria-result { grid-row: 4; }
  [data-skin="metro"] body.unified-shell #partners.pr-explore:has([data-partner-view="map"][aria-pressed="true"]):has(.pr-facets[open]):has(.discovery-search-tools details[open]) #partner-map-panel { grid-row: 5; }
}

/* The globe owns the full map width. The native zoom/compass tools share the
   action row on desktop; narrow screens get a single scrollable action row. */
[data-skin="metro"] body.unified-shell:has(#partners:not([hidden]) [data-partner-view="map"][aria-pressed="true"]) { --pr-page-max: 1800px; }
[data-skin="metro"] body.unified-shell #partners.pr-explore #partner-globe .maplibregl-ctrl-top-right { top: 0; }
[data-skin="metro"] body.unified-shell #partners.pr-explore #partner-globe .maplibregl-ctrl-group button + button { border-inline-start: 1px solid var(--mt-rule); }
[data-skin="metro"] body.unified-shell #partners.pr-explore .partner-map-actions > div { flex-wrap: nowrap; pointer-events: auto; }
[data-skin="metro"] body.unified-shell #partners.pr-explore .partner-map-actions .secondary-button { white-space: nowrap; flex-shrink: 0; }
@media (max-width: 900px) {
  [data-skin="metro"] body.unified-shell #partners.pr-explore .partner-map-panel { min-width: 0; }
  [data-skin="metro"] body.unified-shell #partners.pr-explore .partner-map-actions { min-width: 0; padding: 6px 0 12px; overflow-x: auto; }
  [data-skin="metro"] body.unified-shell #partners.pr-explore .partner-map-preview { top: 64px; }
}
@media (max-width: 700px) {
  [data-skin="metro"] body.unified-shell #partners.pr-explore .partner-map-preview { top: auto; bottom: 0; max-height: 57%; }
}
@media (prefers-reduced-motion: reduce) {
  [data-skin="metro"] body.unified-shell #partners.pr-explore :is(.pr-search-button, .partner-map-actions .secondary-button) { transition: none; }
  [data-skin="metro"] body.unified-shell #partners.pr-explore :is(.pr-search-button:hover, .pr-search-button:active, .partner-map-actions .secondary-button:hover:not(:disabled)) { transform: none; }
}

/* 23. The classic pages. Everything but school search and 我的申請 keeps the look it had before the metro world, under the
   same top bar. Those pages draw their backdrop on body::before, which the metro pages use for the five-colour band, so on
   a classic page the band is the top edge of the bar itself. */
@media (min-width: 901px) {
  html:not([data-skin="metro"]) body.unified-shell .glass-navigation-rail { background: var(--mt-band) 0 0 / 100% 3px no-repeat, var(--mt-ground) !important; }
}
/* Plan-owned preparation workspace: shared tokens also cover dark mode. */
html[data-skin="metro"] #application-path #hub[data-tab="workspace"] > :is(.next-sidebar,.preparation-boundary) { display:none; }
html[data-skin="metro"] #application-path .exchange-workspace { margin-top: 24px; }
html[data-skin="metro"] #application-path :is(.ex-head,.ex-actions,.ex-filters,.ex-counts,.ex-tabs) { display:flex; flex-wrap:wrap; align-items:center; gap:12px; }
html[data-skin="metro"] #application-path .ex-head { justify-content:space-between; align-items:flex-start; }
html[data-skin="metro"] #application-path .ex-head p { margin-top:8px; color:var(--uw-muted); max-width:65ch; }
html[data-skin="metro"] #application-path .ex-tabs { margin-block:20px; padding-bottom:12px; border-bottom:1px solid var(--uw-line); }
html[data-skin="metro"] #application-path .ex-tabs button { padding:10px 14px; border-radius:12px; color:var(--uw-text); }
html[data-skin="metro"] #application-path .ex-tabs [aria-pressed="true"] { background:var(--uw-accent-wash); color:var(--uw-accent); font-weight:700; }
html[data-skin="metro"] #application-path :is(.ex-counts,.ex-note) { padding:16px; background:var(--uw-surface-soft); border-radius:12px; margin-bottom:16px; }
html[data-skin="metro"] #application-path .ex-counts span:last-child { margin-left:auto; color:var(--uw-muted); font-size:13px; }
html[data-skin="metro"] #application-path .ex-filters { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); align-items:end; margin-block:16px; }
html[data-skin="metro"] #application-path .ex-filters>.ex-actions { grid-column:1/-1; margin-top:0; }
html[data-skin="metro"] #application-path .exchange-workspace button { box-shadow:none; }
html[data-skin="metro"] #application-path :is(.exchange-workspace .primary-button,.hub-tabs>a.active) { color:var(--uw-on-accent); }
html[data-skin="metro"] #application-path .ex-task h3 button { background:transparent; border:0; }
html[data-skin="metro"] #application-path .ex-actions { margin-block:12px; }
html[data-skin="metro"] #application-path .ex-actions button:not(.primary-button) { padding:8px 12px; border:1px solid var(--uw-line); border-radius:12px; }
html[data-skin="metro"] #application-path :is(.ex-task,.ex-preview,.ex-pack,.ex-course,.ex-summary,.ex-empty) { padding:20px; border:1px solid var(--uw-line); border-radius:16px; background:var(--uw-surface); margin-bottom:12px; min-width:0; }
html[data-skin="metro"] #application-path .ex-task { display:flex; justify-content:space-between; gap:20px; }
html[data-skin="metro"] #application-path .ex-task>div:first-child { min-width:0; }
html[data-skin="metro"] #application-path .ex-task h3 button { padding:4px 0; text-align:left; font-weight:700; font-size:18px; overflow-wrap:anywhere; }
html[data-skin="metro"] #application-path .ex-task p { margin-top:6px; overflow-wrap:anywhere; }
html[data-skin="metro"] #application-path :is(.ex-meta,.ex-task-action>span) { color:var(--uw-muted); font-size:13px; }
html[data-skin="metro"] #application-path .ex-task-action { display:grid; align-content:start; justify-items:end; gap:8px; flex-shrink:0; }
html[data-skin="metro"] #application-path .ex-wait { color:var(--uw-muted); }
html[data-skin="metro"] #application-path :is(.ex-summary h3,.ex-course h3,.ex-notice h3,.ex-peers h3) { font-size:20px; margin-bottom:8px; }
html[data-skin="metro"] #application-path .ex-summary { margin-block:20px; }
html[data-skin="metro"] #application-path .ex-summary ul { list-style:none; padding:0; margin:12px 0; }
html[data-skin="metro"] #application-path .ex-summary li a { display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px; padding-block:12px; border-bottom:1px solid var(--uw-line); }
html[data-skin="metro"] #application-path .ex-summary li span { color:var(--uw-muted); font-size:13px; }
html[data-skin="metro"] #application-path .exchange-workspace label { display:grid; gap:6px; margin-block:10px; font-size:14px; min-width:0; }
html[data-skin="metro"] #application-path .exchange-workspace :is(input:not([type="checkbox"]):not([type="file"]),textarea,select) { width:100%; min-width:0; padding:10px 12px; border:1px solid var(--uw-line-strong); border-radius:12px; color:var(--uw-text); background:var(--uw-surface); font-size:16px; min-height:48px; }
html[data-skin="metro"] #application-path .exchange-workspace textarea { resize:vertical; }
html[data-skin="metro"] #application-path .exchange-workspace .ex-check { display:flex; align-items:flex-start; gap:10px; padding-block:8px; }
html[data-skin="metro"] #application-path .ex-check input { width:20px; height:20px; min-height:20px; flex:none; margin-top:3px; }
html[data-skin="metro"] #application-path .ex-check small { display:block; font-size:13px; color:var(--uw-muted); line-height:1.7; margin-top:4px; }
html[data-skin="metro"] #application-path .ex-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 16px; }
html[data-skin="metro"] #application-path .exchange-workspace details { padding:12px 0; }
html[data-skin="metro"] #application-path .exchange-workspace summary { min-height:44px; cursor:pointer; font-weight:500; }
html[data-skin="metro"] #application-path .exchange-workspace fieldset { border:0; padding:0; min-width:0; }
html[data-skin="metro"] #application-path .exchange-workspace blockquote { margin:8px 0; padding:12px; background:var(--uw-surface-soft); white-space:pre-wrap; overflow-wrap:anywhere; }
html[data-skin="metro"] #application-path .exchange-workspace input[type="file"] { width:100%; max-width:100%; }
html[data-skin="metro"] #application-path #exchange-task-dialog { width:min(760px,calc(100vw - 32px)); max-height:90svh; padding:24px; border:1px solid var(--uw-line); border-radius:20px; background:var(--uw-surface); color:var(--uw-text); }
html[data-skin="metro"] #application-path #exchange-task-dialog::backdrop { background:rgb(0 0 0 / .42); }
html[data-skin="metro"] #application-path .exchange-workspace .is-error,html[data-skin="metro"] #application-path #exchange-edit-error { color:var(--ap-bad); }
@media(max-width:700px) {
  html[data-skin="metro"] #application-path .hub-tabs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); width:100%; gap:4px; }
  html[data-skin="metro"] #application-path .hub-tabs:has(> a[data-tab="plans"]:not([hidden])) { grid-template-columns:repeat(4,minmax(0,1fr)); }
  html[data-skin="metro"] #application-path .hub-tabs>a { justify-content:center; padding:10px 4px; gap:4px; }
  html[data-skin="metro"] #application-path .hub-tabs>a svg { width:18px; }
  html[data-skin="metro"] #application-path .ex-grid { grid-template-columns:minmax(0,1fr); }
  html[data-skin="metro"] #application-path .ex-filters { grid-template-columns:repeat(2,minmax(0,1fr)); }
  html[data-skin="metro"] #application-path .ex-task { flex-direction:column; gap:8px; padding:16px; }
  html[data-skin="metro"] #application-path .ex-task-action { display:flex; align-items:center; justify-content:space-between; }
  html[data-skin="metro"] #application-path #exchange-task-dialog { padding:16px; }
}

/* ---------- 24. Surface flattening across Metro school detail, application path, workbench & selection ---------- */
html[data-skin="metro"] body.unified-shell :is(
  #school-detail-view,
  #school-detail-view .detail-primary-facts,
  #school-detail-view .detail-side-column,
  #school-detail-view .pr-booking,
  #school-detail-view .overview-more,
  #school-detail-view .life-card,
  #application-form-page .document-workbench-tabs,
  #application-form-page .document-flow,
  #application-form-page .glass-panel,
  #favorites .discovery-ranking,
  #favorites .discovery-candidate,
  #favorites .discovery-compare-wrap,
  #application-path .plan-strip,
  #application-path .map-panel,
  #application-path .next-card,
  #application-path .stage-wave
) {
  background-image: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html[data-skin="metro"] #application-path :is(.outline-button, .primary-button, .secondary-button, .glide-select__trigger) {
  background-image: none;
  box-shadow: none;
  transform: none;
}
html[data-skin="metro"] #application-path .glide-select__trigger {
  background: var(--mt-ground);
  color: var(--mt-ink);
  border: 1px solid var(--mt-rule-strong);
}
html[data-skin="metro"] #application-path .glide-select__menu {
  background: var(--mt-ground);
  color: var(--mt-ink);
  border: 1px solid var(--mt-rule-strong);
  box-shadow: 0 6px 18px #1a1d2326;
}
html[data-skin="metro"] #application-path .map-scroll {
  background: var(--mt-concourse);
}
html[data-skin="metro"] #application-path :is(.node, .node.current, .node.started:not(.current), .node.done, .node.current .current-flag, .success-emblem) {
  background-image: none;
  box-shadow: none;
}
html[data-skin="metro"] #application-path .node.done::before,
html[data-skin="metro"] #application-path .node.done::after {
  display: none;
}
html[data-skin="metro"] #application-path .node.done {
  background: var(--uw-amber-soft);
  border: 2px solid var(--uw-amber-ink);
  color: var(--uw-amber-ink);
}
html[data-skin="metro"] #application-path .node.current {
  outline: 3px solid color-mix(in srgb, var(--mt-action) 28%, transparent);
  outline-offset: 3px;
}

@media (max-width: 700px) {
  [data-skin="metro"] body.unified-shell #dashboard-view #partners.pr-explore .pr-search {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
    margin: 6px 0 4px;
    padding: 4px;
    border-radius: 14px;
  }
  [data-skin="metro"] body.unified-shell #partners.pr-explore .pr-search .pr-field:not(.search-field) {
    display: none;
  }
  [data-skin="metro"] body.unified-shell #dashboard-view #partners.pr-explore .pr-search .pr-field.search-field {
    grid-column: auto;
    min-height: 44px;
    padding: 4px 12px;
    border-radius: 10px;
  }
  [data-skin="metro"] body.unified-shell #partners.pr-explore .pr-search .pr-field-body small {
    display: none;
  }
  [data-skin="metro"] body.unified-shell #partners.pr-explore .pr-search-button {
    grid-column: auto;
    min-width: 84px;
    min-height: 44px;
    margin: 0;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 15px;
  }
}

/* ---------- 25. Time-saving workflow bridges (TS-01..TS-04) ---------- */
[data-skin="metro"] #application-path .ap-prefill-note {
  margin: 0 0 10px;
  padding: 8px 12px;
  border: 1px solid var(--mt-rule);
  border-radius: 10px;
  background: var(--mt-concourse);
  color: var(--mt-ink-2);
  font-size: 13px;
  line-height: 1.5;
}
[data-skin="metro"] #application-path .ap-shortlist-quickstart {
  display: grid;
  gap: 10px;
  width: min(560px, 100%);
  margin: 18px auto 8px;
  padding: 16px;
  border: 1px solid var(--mt-rule);
  border-radius: 14px;
  background: var(--mt-concourse);
  text-align: left;
}
[data-skin="metro"] #application-path .ap-shortlist-head {
  display: grid;
  gap: 2px;
}
[data-skin="metro"] #application-path .ap-shortlist-head strong {
  color: var(--mt-ink);
  font-size: 15px;
  font-weight: 700;
}
[data-skin="metro"] #application-path .ap-shortlist-head small {
  color: var(--mt-ink-2);
  font-size: 13px;
  line-height: 1.5;
}
[data-skin="metro"] #application-path .ap-shortlist-list {
  display: grid;
  gap: 8px;
}
[data-skin="metro"] #application-path .ap-shortlist-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  width: 100%;
  min-height: 52px;
  padding: 10px 14px;
  border: 1px solid var(--mt-rule-strong);
  border-radius: 12px;
  background: var(--mt-ground);
  color: var(--mt-ink);
  text-align: left;
  cursor: pointer;
}
[data-skin="metro"] #application-path .ap-shortlist-item:hover {
  border-color: var(--mt-action);
  background: var(--uw-blue-soft);
}
[data-skin="metro"] #application-path .ap-shortlist-heading {
  color: var(--mt-ink);
  font-size: 15px;
  font-weight: 700;
}
[data-skin="metro"] #application-path .ap-shortlist-item .ap-shortlist-info,
[data-skin="metro"] #application-path .ap-shortlist-item .ap-shortlist-item-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-width: 0;
  flex: 1 1 180px;
}
[data-skin="metro"] #application-path .ap-shortlist-item .ap-shortlist-info > strong,
[data-skin="metro"] #application-path .ap-shortlist-item .ap-shortlist-item-main > strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--mt-ink);
  overflow-wrap: anywhere;
}
[data-skin="metro"] #application-path .ap-shortlist-item .ap-shortlist-info > small,
[data-skin="metro"] #application-path .ap-shortlist-item .ap-shortlist-item-main > small {
  display: block;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--mt-ink-2);
}
[data-skin="metro"] #application-path .ap-shortlist-cta {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--mt-action);
  color: var(--mt-on-action);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

[data-skin="metro"] body.unified-shell #partners.pr-explore .pr-card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 10px;
}
[data-skin="metro"] body.unified-shell #partners.pr-explore .pr-card-foot-meta {
  min-width: 0;
  flex: 1 1 140px;
  line-height: 1.45;
}
[data-skin="metro"] body.unified-shell #partners.pr-explore .pr-card-prepare-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--mt-action);
  border-radius: 999px;
  background: var(--uw-blue-soft);
  color: var(--mt-blue-text);
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
[data-skin="metro"] body.unified-shell #partners.pr-explore .pr-card-prepare-link:hover {
  background: var(--mt-action);
  color: var(--mt-on-action);
}
@media (max-width: 700px), (pointer: coarse) {
  [data-skin="metro"] body.unified-shell #partners.pr-explore .pr-card-prepare-link {
    min-height: 44px;
    padding: 0 14px;
    font-size: 13px;
  }
}

[data-skin="metro"] #favorites .discovery-ranking {
  position: static;
  background: var(--mt-concourse);
  border: 1px solid var(--mt-rule);
  color: var(--mt-ink);
}
[data-skin="metro"] #favorites .discovery-ranking li {
  background: var(--mt-ground);
  border: 1px solid var(--mt-rule);
}
[data-skin="metro"] #favorites .discovery-candidate footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
[data-skin="metro"] #favorites .discovery-candidate-plan-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--mt-action);
  color: var(--mt-on-action);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
[data-skin="metro"] #favorites .discovery-candidate-plan-link:hover {
  background: var(--mt-action-hover);
}
@media (max-width: 700px), (pointer: coarse) {
  [data-skin="metro"] #favorites .discovery-candidate footer :is(button, a) {
    min-height: 44px;
  }
}

[data-skin="metro"] #favorites .compare-col-head {
  display: grid;
  gap: 6px;
  justify-items: start;
}
[data-skin="metro"] #favorites .compare-avail-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--uw-blue-soft);
  color: var(--mt-blue-text);
  font-size: 12px;
  font-weight: 700;
}
[data-skin="metro"] #favorites .compare-avail-badge.is-blocked {
  background: var(--glass-peach);
  color: var(--mt-red-text);
}
[data-skin="metro"] #favorites .compare-school-trigger {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--mt-ink);
  font: 700 15px/1.35 var(--mt-font);
  text-align: left;
  cursor: pointer;
}
[data-skin="metro"] #favorites .compare-school-trigger:hover {
  color: var(--mt-blue-text);
  text-decoration: underline;
}
[data-skin="metro"] #favorites .compare-fit-cell {
  display: grid;
  gap: 4px;
}
[data-skin="metro"] #favorites .compare-fit-cell small {
  color: var(--mt-ink-2);
  font-size: 12.5px;
  line-height: 1.45;
}
[data-skin="metro"] #favorites .compare-fit-badge {
  display: inline-flex;
  width: fit-content;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: var(--mt-concourse);
  color: var(--mt-ink-2);
}
[data-skin="metro"] #favorites .compare-fit-cell.is-match .compare-fit-badge,
[data-skin="metro"] #favorites .compare-fit-badge.is-match {
  background: #e6f5ef;
  color: #0a5c3e;
}
html[data-skin="metro"][data-theme="dark"] #favorites .compare-fit-cell.is-match .compare-fit-badge,
html[data-skin="metro"][data-theme="dark"] #favorites .compare-fit-badge.is-match {
  background: #14352a;
  color: #88e6c1;
}
[data-skin="metro"] #favorites .compare-fit-cell.is-check .compare-fit-badge,
[data-skin="metro"] #favorites .compare-fit-badge.is-check {
  background: var(--uw-amber-soft);
  color: var(--uw-amber-ink);
}
[data-skin="metro"] #favorites .compare-fit-cell.is-mismatch .compare-fit-badge,
[data-skin="metro"] #favorites .compare-fit-badge.is-mismatch {
  background: var(--glass-peach);
  color: var(--mt-red-text);
}
[data-skin="metro"] #favorites .compare-source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}
[data-skin="metro"] #favorites .compare-source-links a {
  color: var(--mt-blue-text);
  font-size: 13px;
  font-weight: 700;
}
[data-skin="metro"] #favorites .compare-col-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
[data-skin="metro"] #favorites .compare-col-actions :is(.compare-start-btn, .compare-remove-btn) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  font-size: 13.5px;
  text-decoration: none;
}

[data-skin="metro"] #school-detail-view .overview-process-note {
  margin: 0 0 14px;
  padding: 10px 14px;
  border: 1px solid var(--mt-rule);
  border-radius: 12px;
  background: var(--mt-concourse);
  color: var(--mt-ink-2);
  font-size: 13.5px;
  line-height: 1.6;
}

[data-skin="metro"] #budget .budget-scholarship-chips {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid var(--mt-rule);
  border-radius: 12px;
  background: var(--mt-concourse);
}
[data-skin="metro"] #budget .budget-scholarship-chips-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 10px;
}
[data-skin="metro"] #budget .budget-scholarship-chips-head strong {
  color: var(--mt-ink);
  font-size: 13px;
}
[data-skin="metro"] #budget .budget-scholarship-chips-head small {
  color: var(--mt-ink-2);
  font-size: 12px;
}
[data-skin="metro"] #budget .budget-scholarship-chips-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
[data-skin="metro"] #budget .budget-scholarship-chip {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid var(--mt-rule-strong);
  border-radius: 10px;
  background: var(--mt-ground);
  color: var(--mt-ink);
  font: 600 13px/1.35 var(--mt-font);
  cursor: pointer;
}
[data-skin="metro"] #budget .budget-scholarship-chip:hover {
  border-color: var(--mt-action);
  background: var(--uw-blue-soft);
}
[data-skin="metro"] #budget .budget-scholarship-chip em {
  font-style: normal;
  font-weight: 700;
  color: var(--mt-blue-text);
}

[data-skin="metro"] #application-form-page .document-level-return-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin: 0 0 14px;
  padding: 12px 16px;
  border: 1px solid var(--mt-action);
  border-radius: 12px;
  background: var(--uw-blue-soft);
}
[data-skin="metro"] #application-form-page .document-level-return-banner[hidden] {
  display: none !important;
}
[data-skin="metro"] #application-form-page .document-level-return-banner p {
  margin: 0;
  color: var(--mt-ink);
  font-size: 14px;
  font-weight: 600;
}
[data-skin="metro"] #application-form-page .document-level-return-banner .primary-button {
  min-height: 44px;
}

[data-skin="metro"] #application-path .sched-ics-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
}
[data-skin="metro"] #application-path .sched-ics-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  text-decoration: none;
}

