/*
 * Homepage-only visual system. Every selector is gated by the route class.
 * The normal themes retain their own tokens and components on every other page.
 * !important is limited to properties already made important by the legacy CSS.
 */
html.home-theme-holographic {
  color-scheme: dark;
  --holo-page: #050e1d;
  --holo-panel: #0b2037;
  --holo-panel-raised: #12314e;
  --holo-ink: #edf7ff;
  --holo-muted: #b4cee3;
  --holo-line: #396984;
  --holo-cyan: #72ddff;
  --holo-blue: #138bdf;
  --holo-focus: #b2eeff;
  --page: var(--holo-page);
  --surface: var(--holo-panel);
  --surface-muted: var(--holo-panel-raised);
  --ink: var(--holo-ink);
  --warm-white: var(--holo-ink);
  --muted: var(--holo-muted);
  --silver: var(--holo-muted);
  --text-muted: var(--holo-muted);
  --line: var(--holo-line);
  --border-color: var(--holo-line);
  --antique-gold: var(--holo-line);
  --champagne: var(--holo-cyan);
  --gold: var(--holo-cyan);
  --wine-deep: #0d2942;
  --wine: #105d9e;
  --crimson: #1271b9;
  --deep-text: #eaf6ff;
  --teal: #168cda;
  --teal-dark: #95e5ff;
  --amber: #35b9ef;
  --amber-soft: #a1e5ff;
  --berry: #ffb7c1;
  --green: #8fe1b5;
  --navy: #07192d;
  --navy-soft: #103050;
  --blue: #148ee5;
  --blue-soft: #132f4a;
  --shadow: 0 15px 40px #0005;
  --panel-background: linear-gradient(150deg, #12314ef5, #091c32fa 62%);
  --panel-border: #4785a5;
  --field-background: #081b2e;
  --field-foreground: #edf7ff;
  --field-placeholder: #a9c5dc;
  --field-border: #5386a5;
  --field-disabled-background: #1b2c3e;
  --field-disabled-foreground: #b6c7d7;
  --field-focus: #9deaff;
  --picker-background: #0c2239;
  --picker-foreground: #edf7ff;
  --picker-option-hover-background: #17486d;
  --picker-option-hover-foreground: #ffffff;
  --homepage-list-hover-bg: #133652;
  --homepage-list-hover-fg: #f1f9ff;
  --homepage-list-focus-ring: #87dfff;
  background: var(--holo-page);
}

html.home-theme-holographic body {
  color: var(--holo-ink);
  background: radial-gradient(ellipse 75% 550px at 52% 10%, #153e60aa, transparent 80%), #050e1d;
  background-attachment: scroll;
}

html.home-theme-holographic body::before {
  inset: 0;
  opacity: .38;
  mix-blend-mode: normal;
  background:
    linear-gradient(90deg, #44baff0c 1px, transparent 1px),
    linear-gradient(#44baff0c 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(#000, transparent 90%);
}

/* Night-city scene on a layer pinned to the screen: phones (iOS Safari) ignore
   background-attachment: fixed, but honour position: fixed. Desktop replaces
   this layer's background in holographic-hud-phase1.css and puts the scene on
   body instead. */
html.home-theme-holographic body::after {
  inset: 0;
  opacity: 1;
  mix-blend-mode: normal;
  background:
    radial-gradient(ellipse 24% 40% at -8% 30%, #1264a330, transparent 80%),
    radial-gradient(ellipse 30% 60% at 108% 55%, #1264a330, transparent 80%),
    radial-gradient(ellipse 75% 20% at 50% 22%, rgba(4,12,30,.55), rgba(4,12,30,0) 75%),
    linear-gradient(rgba(5,11,31,.12), rgba(5,11,31,.35)),
    url(../assets/holographic/home-bg-library-night.webp) 46% center / cover no-repeat,
    linear-gradient(#10182a, #0a1020);
}
/* Upright screens (phones) get the portrait library photo instead. */
@media (max-aspect-ratio: 1/1) {
  html.home-theme-holographic body::after {
    background:
      radial-gradient(ellipse 75% 20% at 50% 22%, rgba(4,12,30,.55), rgba(4,12,30,0) 75%),
      linear-gradient(rgba(5,11,31,.12), rgba(5,11,31,.35)),
      url(../assets/holographic/home-bg-library-night-mobile.webp) center / cover no-repeat,
      linear-gradient(#10182a, #0a1020);
  }
}

html.home-theme-holographic :is(.site-main::before, .site-main::after, .center-decoration-overlay) {
  display: none !important;
}

html.home-theme-holographic #app,
html.home-theme-holographic :is(.section-band, .home-dashboard-band) {
  background: transparent !important;
  border-color: transparent !important;
}

/* Follows the screen on wide desktops, capped at 1560px (~81% of 1920). Below
   ~1300px the side gutter stays 32px, exactly as before, so tablets and phones
   keep their previous widths. */
html.home-theme-holographic .container {
  width: min(1560px, calc(100% - 2 * clamp(32px, 4vw - 20px, 96px)));
}

html.home-theme-holographic :is(h1, h2, h3, h4, strong, label, legend) {
  color: var(--holo-ink);
  text-shadow: none;
}

html.home-theme-holographic :is(p, small, .helper-text, .secondary-text) {
  color: var(--holo-muted);
  text-shadow: none;
}

html.home-theme-holographic a { color: #abe6ff; }
html.home-theme-holographic a:is(:hover, :focus-visible) { color: #fff; }
html.home-theme-holographic ::selection { color: #fff; background: #1769a8; }
html.home-theme-holographic [hidden] { display: none !important; }
html.home-theme-holographic .standard-home-art,
html.home-theme-holographic .warm-section-icon { display: none !important; }
html.home-theme-holographic .holo-only { display: block; }

/* Navigation keeps the existing links, menu, and account permissions. */
html.home-theme-holographic #site-header {
  background: linear-gradient(110deg, #071626f5, #0c2943f5 54%, #071626f5) !important;
  border-bottom: 1px solid #52b4e3;
  box-shadow: 0 4px 26px #0005, 0 1px 16px #309dda26;
  backdrop-filter: blur(16px);
}

html.home-theme-holographic #site-header::before {
  inset: auto 32px 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #72ddff 12%, transparent 32%, transparent 68%, #72ddff 88%, transparent);
  opacity: .9;
  mix-blend-mode: normal;
}

html.home-theme-holographic #site-header::after { display: none; }
/* Lines up with .container on wide desktops; the 24px gutter below ~1100px is unchanged. */
html.home-theme-holographic .nav-inner { width: min(1560px, calc(100% - 2 * clamp(24px, 4vw - 20px, 96px))); }
html.home-theme-holographic :is(.brand, .brand-name, .brand-copy, .nav-auth-user) { color: #f1f9ff !important; }
html.home-theme-holographic .brand-mark,
html.home-theme-holographic .footer-brand-lockup img { filter: brightness(0) invert(1) drop-shadow(0 0 5px #67cfff55); }
html.home-theme-holographic .brand-name { font-weight: 800; letter-spacing: .025em; }
html.home-theme-holographic .site-header .primary-nav .nav-link {
  color: #dceeff !important;
  background: transparent;
  border-color: #5385a5;
  text-shadow: none;
}
html.home-theme-holographic .site-header .primary-nav .nav-link:is(:hover, :focus-visible, .is-active) {
  color: #fff !important;
  background: #10314b;
  border-color: #8ee8ff;
}
html.home-theme-holographic .nav-link.is-active::after {
  background: #7ee3ff;
  box-shadow: 0 0 8px #5fcfff80;
}
html.home-theme-holographic .site-header .primary-nav .nav-link-report,
html.home-theme-holographic .site-header .primary-nav .nav-link-report:is(:hover, :focus-visible, .is-active) {
  color: #fff !important;
  background: linear-gradient(135deg, #0e568c, #0c3458) !important;
  border: 1px solid #64c6ee;
  box-shadow: inset 0 0 10px #50bcff30, 0 0 12px #1d95df20;
}
html.home-theme-holographic .view-mode-switcher {
  background: #06182b;
  border-color: #3c7194;
  box-shadow: inset 0 0 10px #0003;
}
html.home-theme-holographic .view-mode-button {
  background: transparent;
  color: #c4deef;
  border-color: transparent;
}
html.home-theme-holographic .view-mode-button:is(:hover, :focus-visible, .is-active) {
  color: #fff;
  background: #174669;
  border-color: #6fcbef;
}
html.home-theme-holographic .menu-button {
  color: #e9f8ff;
  background: #0f2b45;
  border-color: #5898bd;
}
html.home-theme-holographic :is(.menu-lines, .menu-lines::before, .menu-lines::after) { background: #c6efff; }
html.home-theme-holographic .primary-nav.is-open {
  background: #0a2138 !important;
  border-color: #5898bd;
  box-shadow: 0 16px 36px #0008;
}

/* Hero: generous text area, one purpose-built illustration, and a real search. */
html.home-theme-holographic .home-hero {
  padding: 38px 0 34px;
  border: 0 !important;
  background: radial-gradient(ellipse 44% 78% at 85% 48%, #1682d730, transparent 80%) !important;
}
html.home-theme-holographic .home-hero::before {
  content: "";
  position: absolute;
  inset: 34px 0 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 16%, #2b9fde18 16.08%, transparent 16.2%),
    linear-gradient(60deg, transparent 80%, #2b9fde18 80.08%, transparent 80.2%);
}
html.home-theme-holographic .home-hero-layout {
  grid-template-columns: minmax(0, 1.3fr) minmax(330px, .8fr);
  gap: 22px;
  min-height: 390px;
  align-items: center;
}
html.home-theme-holographic .hero-content { z-index: 4; padding-block: 18px; }
html.home-theme-holographic .hero-copy { text-align: left; }
html.home-theme-holographic .holo-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: #9adfff !important;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: .13em;
}
html.home-theme-holographic .holo-eyebrow::before {
  content: "";
  width: 27px;
  height: 3px;
  background: #72ddff;
  box-shadow: 0 0 12px #72ddff80;
}
html.home-theme-holographic .hero-copy h1.warm-home-heading {
  display: block;
  max-width: 760px;
  margin: 0;
  color: #f0faff;
  font-size: clamp(30px, 2.95vw, 47px);
  font-weight: 800;
  letter-spacing: .025em;
  line-height: 1.38;
  text-wrap: balance;
  text-shadow: 0 0 22px #42beff24;
}
html.home-theme-holographic .home-hero .hero-text {
  max-width: 610px;
  margin: 18px 0 0;
  color: #c8e3f6 !important;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.9;
  text-shadow: none;
}
html.home-theme-holographic .home-search-panel {
  padding: 12px;
  margin-top: 28px;
  border: 1px solid #5dbce7 !important;
  border-radius: 12px 4px 12px 4px;
  background: linear-gradient(110deg, #153b5beb, #0c2440ed) !important;
  box-shadow: 0 0 0 4px #2e94d312, inset 0 0 18px #4ba7de12, 0 10px 30px #0004;
}
html.home-theme-holographic .home-search-panel::after {
  content: "";
  position: absolute;
  height: 2px;
  width: 82px;
  left: 24px;
  bottom: -1px;
  background: #adf0ff;
  box-shadow: 0 0 8px #6adfff;
  pointer-events: none;
}
html.home-theme-holographic .search-form.is-hero.is-keyword-only { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
html.home-theme-holographic .search-form.is-hero .search-actions { min-width: 186px; gap: 8px; grid-column: auto; }
html.home-theme-holographic .search-form.is-hero .field input {
  min-height: 50px;
  padding-inline: 14px;
  border: 1px solid #407494;
  border-radius: 6px;
  font-size: 15px;
}
html.home-theme-holographic .search-form.is-hero .primary-button { min-width: 82px; min-height: 50px; }
html.home-theme-holographic .search-form.is-hero .search-clear-button { min-height: 50px; min-width: 94px; }
html.home-theme-holographic .popular-searches { display: none; }
html.home-theme-holographic .holo-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin: 18px 0 0;
  color: #f2faff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
}
/* Owner asked on 2026-11-09 for brighter text over the photo background. */
html.home-theme-holographic .holo-hero-meta > span { display: inline-flex; gap: 8px; align-items: center; text-shadow: 0 1px 2px #020a1af2, 0 0 4px #020a1ae6, 0 0 10px #020a1a99 !important; }
html.home-theme-holographic .holo-hero-meta svg { color: #9ee9ff; }
html.home-theme-holographic .holo-hero-meta > span::before { content: ""; width: 5px; height: 5px; background: #72ddff; transform: rotate(45deg); }
html.home-theme-holographic .hero-submit-action { justify-content: flex-start; margin: 20px 0 0; }
html.home-theme-holographic .hero-submit-button { width: auto; min-height: 44px; margin: 0; padding: 10px 22px; }
html.home-theme-holographic .home-hero-illustration {
  width: 100%;
  height: 410px;
  margin: 0;
  align-self: center;
  overflow: visible;
  pointer-events: none;
}
html.home-theme-holographic .home-hero-illustration::before {
  content: "";
  position: absolute;
  inset: 16% 3% 8%;
  border-radius: 50%;
  background: radial-gradient(ellipse, #51c8ff1f, transparent 70%);
  border: 1px solid #56bfe726;
  transform: rotate(-16deg);
  box-shadow: 0 0 0 23px #499bd308, 0 0 0 24px #56bfe713;
}
html.home-theme-holographic .home-hero-illustration .holo-guardian-art {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  /* Blue rim light blends the character into the scene instead of a frame;
     the bottom fades out so the cropped legs leave no hard edge. */
  filter: drop-shadow(0 0 2px rgba(143,227,255,.55)) drop-shadow(0 0 16px rgba(30,107,255,.45)) drop-shadow(0 12px 24px #0005);
  -webkit-mask-image: linear-gradient(#000 78%, transparent 98%);
  mask-image: linear-gradient(#000 78%, transparent 98%);
  content: normal;
}

/* Quiet, opaque reading surfaces keep sci-fi decoration away from the data. */
html.home-theme-holographic .home-dashboard-band { padding: 2px 0 52px; }
html.home-theme-holographic .home-illustration-guide { gap: 18px; margin-bottom: 26px; }
html.home-theme-holographic .home-illustration-card {
  position: relative;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 17px;
  min-height: 150px;
  padding: 20px;
  color: var(--holo-ink);
  border: 1px solid #4b8bae;
  border-radius: 14px 4px 14px 4px;
  background: linear-gradient(130deg, #173d5aeb, #0a223cf5);
  box-shadow: inset 0 1px 0 #b5eaff20, 0 8px 20px #0003;
}
html.home-theme-holographic .home-illustration-card::after {
  content: "";
  position: absolute;
  width: 50px;
  height: 2px;
  right: 18px;
  bottom: 0;
  background: #7fdfff;
  box-shadow: 0 0 8px #7fdfff55;
}
html.home-theme-holographic .home-illustration-card .holo-guide-art { width: 76px; height: 76px; object-fit: contain; filter: none; visibility: visible; }
html.home-theme-holographic .home-illustration-card h2 { color: #edf9ff; font-size: 17px; line-height: 1.5; }
html.home-theme-holographic .home-illustration-card p { color: #c3d9ea; font-size: 14px; line-height: 1.8; margin-top: 6px; }
html.home-theme-holographic .home-dashboard-grid { grid-template-columns: minmax(0, 1.6fr) minmax(380px, 1fr); gap: 22px; }
html.home-theme-holographic .home-panel {
  position: relative;
  min-width: 0;
  padding: 23px;
  background: var(--panel-background) !important;
  border: 1px solid #4785a5 !important;
  border-radius: 16px 5px 16px 5px;
  box-shadow: inset 0 1px 0 #93dcff20, 0 12px 28px #0004;
}
html.home-theme-holographic .home-panel::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 22px;
  width: 58px;
  height: 2px;
  background: #9be8ff;
  box-shadow: 0 0 8px #6fdcff66;
  pointer-events: none;
}
html.home-theme-holographic .home-panel .section-heading-row h2 { color: #edf7ff !important; font-size: 20px; line-height: 1.5; text-shadow: 0 0 10px rgba(79,195,255,.6); }
html.home-theme-holographic .holo-section-icon {
  display: inline-flex;
  width: 24px;
  height: 24px;
  margin-right: 9px;
  color: #83ddff;
  vertical-align: -5px;
}
html.home-theme-holographic .holo-section-icon .icon { width: 24px; height: 24px; }
html.home-theme-holographic .home-panel .heading-icon { display: none; }
html.home-theme-holographic .home-sidebar { gap: 18px; }
html.home-theme-holographic :is(.latest-meta, .latest-control > span, .panel-note) { color: #b7d3e8; font-size: 14px; }
html.home-theme-holographic .latest-meta { margin: 0; line-height: 1.8; }
html.home-theme-holographic .latest-toolbar { margin: 18px 0 16px; gap: 12px; }
html.home-theme-holographic .latest-filter-row { gap: 14px; }
html.home-theme-holographic .home-list-sections { gap: 18px; }
html.home-theme-holographic .home-list-section {
  background: rgba(8,27,46,.55) !important;
  border: 1px solid #345e7d !important;
  border-radius: 9px 3px 9px 3px;
  box-shadow: none !important;
}
html.home-theme-holographic .home-list-section .latest-table-head {
  padding: 12px;
  color: #e8f6ff !important;
  background: linear-gradient(180deg, rgba(40,130,190,.85), rgba(22,80,130,.85)) !important;
  border-color: #6fd0ff !important;
  box-shadow: inset 0 1px 0 rgba(200,245,255,.5);
  font-size: 14px;
}
html.home-theme-holographic .home-list-section .latest-table-head > * { color: #e8f6ff !important; }
html.home-theme-holographic .home-list-section :is(.latest-table-head, .list-card) {
  grid-template-columns: minmax(84px, 1.12fr) minmax(52px, .7fr) minmax(100px, 1.55fr) minmax(132px, 1.25fr) minmax(82px, .88fr);
  gap: 10px;
}
html.home-theme-holographic .home-list-section .list-card {
  min-height: 56px;
  padding: 10px 12px;
  color: #e9f4ff !important;
  background: rgba(11,32,53,.35) !important;
  border-color: #294965 !important;
  font-size: 14px;
  line-height: 1.65;
  transform: none;
  box-shadow: none;
  transition: background-color .16s ease;
}
html.home-theme-holographic .home-list-section .list-card:nth-child(even) { background: rgba(13,36,59,.45) !important; }
html.home-theme-holographic .home-list-section .list-card :is(span, time, strong, p, a, .reason-text, .name-line, .list-name-lines) {
  color: #e1effa !important;
  font-size: 14px;
  text-shadow: none;
}
html.home-theme-holographic .home-list-section .list-card :is(.name-line, .list-name-lines) { color: #f1faff !important; }
html.home-theme-holographic .home-list-section .list-card :is(.reason-text, time) { color: #bed5e7 !important; }
html.home-theme-holographic .home-list-section .list-card:is(:hover, :focus-visible, :focus-within, .is-selected) {
  background: #143652 !important;
  color: #f1f9ff !important;
  border-color: #4a85a8 !important;
}
html.home-theme-holographic .home-list-section .list-card:is(:focus-visible, :focus-within) { outline: 2px solid #8ee6ff; outline-offset: -2px; }
html.home-theme-holographic .home-list-section .list-card :is(.list-name-lines, .name-line):is(:hover, :focus-visible) {
  color: #b1efff !important;
  background: transparent !important;
  box-shadow: none !important;
  text-decoration: underline !important;
  text-underline-offset: 4px;
}
html.home-theme-holographic .home-empty-note,
html.home-theme-holographic .empty-note {
  color: #bdd6e7 !important;
  background: #0a1e32 !important;
  border-color: #325770 !important;
  box-shadow: none !important;
  font-size: 14px;
  line-height: 1.8;
}
html.home-theme-holographic .home-empty-note { padding-block: 26px; }
html.home-theme-holographic .home-pagination {
  padding: 14px 0 0;
  margin-top: 16px;
  background: transparent;
  border: 0;
  border-top: 1px solid #284e6b;
  border-radius: 0;
}
html.home-theme-holographic .home-pagination button { min-height: 38px; font-size: 14px; }
html.home-theme-holographic .home-pagination-ellipsis { color: #c4dbea; }
html.home-theme-holographic .home-pagination-page.is-current { background: #176da7 !important; color: #fff !important; border-color: #7edfff !important; }
html.home-theme-holographic .popular-badge { color: #b8f3ff; background: #123d57; border-color: #4c9db9; }
/* Today's most-viewed rows lead the list with a small 熱門 tag. */
html.home-theme-holographic .home-list-section .list-card .popular-badge { justify-self: start; width: max-content; padding: 0 8px; font-size: 12px; line-height: 20px; border: 1px solid #4c9db9; border-radius: 4px; }

/* Controls own every state; no shared burgundy, cream, or gold fallback. */
html.home-theme-holographic button,
html.home-theme-holographic :is(.primary-button, .secondary-button, .source-save-button, .source-cancel-button, .source-edit-button, .outline-button) {
  color: #edf7ff;
  background: #14334e;
  border-color: #5386a5;
  text-shadow: none;
  box-shadow: none;
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
html.home-theme-holographic button:is(:hover, :focus-visible),
html.home-theme-holographic :is(.secondary-button, .source-cancel-button, .source-edit-button, .outline-button):is(:hover, :focus-visible) {
  color: #fff;
  background: #1b496a;
  border-color: #9ae7ff;
  box-shadow: 0 0 0 1px #7cd9ff30;
}
html.home-theme-holographic :is(.primary-button, .source-save-button, .hero-submit-button),
html.home-theme-holographic .search-form.is-hero .primary-button {
  color: #fff;
  background: linear-gradient(135deg, #147cca, #115b9c);
  border: 1px solid #77d7ff;
  box-shadow: inset 0 1px 0 #d7f5ff38, 0 3px 14px #1478bc26;
}
html.home-theme-holographic :is(.primary-button, .source-save-button, .hero-submit-button):is(:hover, :focus-visible),
html.home-theme-holographic .search-form.is-hero .primary-button:is(:hover, :focus-visible) {
  color: #fff;
  background: linear-gradient(135deg, #1586d3, #146bae);
  border-color: #c5f1ff;
  box-shadow: 0 0 0 2px #70d7ff3d, 0 5px 18px #1683d04d;
}
html.home-theme-holographic .search-form.is-hero .search-clear-button {
  color: #e6f4ff;
  background: #133551;
  border-color: #5b94b7;
}
html.home-theme-holographic .search-form.is-hero .search-clear-button:is(:hover, :focus-visible) { color: #fff; background: #1d4a6b; border-color: #a0eaff; }
html.home-theme-holographic :is(.danger-button, .home-admin-delete-button) {
  color: #fff;
  background: #88334a;
  border-color: #db8aa3;
}
html.home-theme-holographic :is(.danger-button, .home-admin-delete-button):is(:hover, :focus-visible) { color: #fff; background: #a53c58; border-color: #ffd0dd; }
html.home-theme-holographic :is(button, .primary-button, .secondary-button, .source-save-button, .source-cancel-button):disabled {
  color: #b3c5d6 !important;
  background: #23364a !important;
  border-color: #4a6279 !important;
  opacity: 1;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}
html.home-theme-holographic :is(button, a, input, select, textarea, summary):focus-visible {
  outline: 2px solid #b2eeff !important;
  outline-offset: 3px;
}
html.home-theme-holographic :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea),
html.home-theme-holographic .home-list-section .home-new-entry-card :is(input:not([type="checkbox"]), select, textarea),
html.home-theme-holographic .curated-home-form :is(input:not([type="checkbox"]):not([type="radio"]), textarea) {
  color: #edf7ff !important;
  background: #081b2e !important;
  border-color: rgba(79,195,255,.7) !important;
  color-scheme: dark;
  -webkit-text-fill-color: #edf7ff;
  box-shadow: inset 0 1px 4px #0002;
}
html.home-theme-holographic :is(input, textarea)::placeholder { color: #a9c5dc !important; opacity: 1; -webkit-text-fill-color: #a9c5dc; }
html.home-theme-holographic select :is(option, optgroup) { color: #edf7ff; background: #0c2239; color-scheme: dark; }
html.home-theme-holographic :is(input, select, textarea):focus {
  border-color: #a4e9ff !important;
  outline: 2px solid #8ee4ff80;
  outline-offset: 2px;
}
html.home-theme-holographic :is(input, textarea, select):disabled {
  color: #b6c7d7 !important;
  background: #1b2c3e !important;
  border-color: #425b72 !important;
  -webkit-text-fill-color: #b6c7d7;
  opacity: 1;
}
html.home-theme-holographic input:is([type="checkbox"], [type="radio"]) { accent-color: #59b9f1; }
html.home-theme-holographic :is(.inline-picker-toggle, .region-picker-toggle) {
  min-height: 40px;
  color: #e5f5ff !important;
  background: #0c2943 !important;
  border: 1px solid rgba(79,195,255,.7) !important;
  font-size: 14px;
  border-radius: 6px;
}
html.home-theme-holographic :is(.inline-picker-toggle, .region-picker-toggle):is(:hover, :focus-visible, [aria-expanded="true"]) { background: #174565 !important; border-color: #99e4ff !important; }
html.home-theme-holographic :is(.inline-picker-menu, .region-picker-menu) {
  background: #0b233b !important;
  color: #edf7ff !important;
  border-color: #6bb7df !important;
  box-shadow: 0 10px 28px #0008;
}
html.home-theme-holographic .inline-picker-option {
  min-height: 39px;
  color: #edf7ff !important;
  background: #0b233b !important;
  border-color: transparent !important;
  font-size: 14px;
  box-shadow: none;
}
html.home-theme-holographic .inline-picker-option:is(:hover, :focus-visible, .is-selected) { color: #fff !important; background: #174c72 !important; box-shadow: none; }

/* Source branding stays recognizable, with a cyan interaction outline. */
html.home-theme-holographic :is(.source-inline-link, .source-inline-label)[data-platform="self"] {
  --source-bg: #245570;
}
html.home-theme-holographic .home-list-section .home-source-display,
html.home-theme-holographic .home-list-section .home-source-display :is(.source-links, .source-value, .source-description) {
  color: #d5e9f8 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
html.home-theme-holographic .home-list-section .home-source-display {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  width: auto;
}
html.home-theme-holographic .home-list-section .home-source-display :is(.source-inline-link, .source-inline-label)[data-platform],
html.home-theme-holographic .home-list-section .home-source-display .source-links > .source-inline-link[data-platform]:is(:link, :visited, :hover, :focus-visible, :active) {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-self: flex-start;
  color: #fff !important;
  background: var(--source-bg, #365d76) !important;
  border: 1px solid #bdd6e38c !important;
  border-radius: 5px;
  font-size: 13px;
  line-height: 1.3;
  text-shadow: none;
}
html.home-theme-holographic .home-list-section .home-source-display :is(.source-inline-link, .source-inline-label) * {
  color: inherit !important;
  background: transparent !important;
  border: 0 !important;
}
html.home-theme-holographic .home-list-section .home-source-display > .source-edit-button {
  padding: 4px 7px;
  min-height: 28px;
  color: #def3ff !important;
  background: #183e59 !important;
  border: 1px solid #699fbe !important;
  font-size: 12px;
  box-shadow: none !important;
}
html.home-theme-holographic .home-list-section .home-source-display > .source-edit-button:is(:hover, :focus-visible) {
  color: #fff !important;
  background: #215374 !important;
  border-color: #a7edff !important;
  box-shadow: 0 0 0 2px #80dfff50 !important;
}
html.home-theme-holographic .home-list-section .home-source-display .source-links > .source-inline-link[data-platform]:focus-visible {
  border-color: #adf0ff !important;
  box-shadow: 0 0 0 2px #80dfff80 !important;
}
@media (hover: hover) and (pointer: fine) {
  html.home-theme-holographic .home-list-section .home-source-display .source-links > .source-inline-link[data-platform]:hover {
    border-color: #adf0ff !important;
    box-shadow: 0 0 0 2px #80dfff80, 0 6px 17px #0005 !important;
  }
}

/* Owner editing remains a practical form, rather than six cramped table cells. */
html.home-theme-holographic .home-list-section .list-card.home-new-entry-card {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
  padding: 20px;
  color: #e5f4ff !important;
  background: #0e2c46 !important;
}
html.home-theme-holographic .home-new-entry-field > .sr-only {
  display: block;
  position: static;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0 0 5px;
  clip: auto;
  clip-path: none;
  overflow: visible;
  white-space: normal;
}
html.home-theme-holographic .home-new-entry-field { gap: 6px; }
html.home-theme-holographic .home-new-entry-card :is(input:not([type="checkbox"]), select, textarea) { width: 100%; min-height: 42px; font-size: 15px; padding: 9px 10px; border-radius: 6px; }
html.home-theme-holographic .home-new-entry-card :is(.home-new-entry-source, .home-new-entry-actions, .home-new-entry-reason) { grid-column: 1 / -1; }
html.home-theme-holographic .home-new-entry-card :is(.home-new-entry-updated, .home-new-entry-uploader) { color: #b9d4e6 !important; font-size: 13px; }
html.home-theme-holographic .home-new-entry-card .home-new-entry-updated { grid-column: 2; grid-row: 3; }
html.home-theme-holographic .home-new-entry-card :is(.source-editor-message, small) { color: #bfd9eb !important; line-height: 1.7; }
html.home-theme-holographic .home-new-entry-card .home-new-entry-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
html.home-theme-holographic .home-new-entry-actions > button { min-width: 80px; min-height: 42px; padding: 8px 15px; border-radius: 6px; }
html.home-theme-holographic .source-draft-row {
  padding: 12px;
  gap: 10px;
  background: #0a2036;
  border: 1px solid #3b6685;
}
html.home-theme-holographic .source-draft-row select { width: min(100%, 230px); }
html.home-theme-holographic .source-draft-row [data-source-remove] { align-self: flex-start; width: auto; }
html.home-theme-holographic .sources-editor button { color: #e5f5ff; background: #163c58; border-color: #6094b4; }
html.home-theme-holographic .sources-editor button:is(:hover, :focus-visible) { color: #fff; background: #245575; border-color: #a7e7ff; }
html.home-theme-holographic .home-source-editor { background: #0b233b !important; border-color: #5486a5 !important; }
html.home-theme-holographic .home-entry-notice { padding: 14px 16px; color: #d4f1ff; background: #123d58; border: 1px solid #5ea6c7; border-radius: 7px; font-size: 14px; }
html.home-theme-holographic .home-list-section.is-delete-mode :is(.latest-table-head, .list-card) {
  grid-template-columns: 26px minmax(76px, 1.12fr) minmax(48px, .7fr) minmax(90px, 1.55fr) minmax(132px, 1.25fr) minmax(82px, .88fr);
}
html.home-theme-holographic .home-delete-checkbox input { width: 20px; height: 20px; }
html.home-theme-holographic :is(.error-banner, .form-error, .field-error) { color: #ffd5de; background: #572b3c; border-color: #ce8da1; }
html.home-theme-holographic .success-banner { color: #cff5e0; background: #143c37; border-color: #73bba2; }
html.home-theme-holographic :is(.warning-banner, .notice-banner) { color: #f8e8b8; background: #413a23; border-color: #bdac72; }

/* Sidebar and editorial links use the same legible reading surfaces. */
html.home-theme-holographic .notice-panel .notice-list { background: transparent !important; }
html.home-theme-holographic .notice-panel .notice-item,
html.home-theme-holographic .notice-panel .notice-item:is(:hover, :focus-visible) { color: #edf7ff !important; background: transparent !important; border-color: #315776 !important; }
html.home-theme-holographic .notice-panel .notice-item time { color: #9cd5ef !important; font-size: 13px; }
html.home-theme-holographic .notice-panel .notice-item h3 { color: #edf7ff !important; font-size: 15px; }
html.home-theme-holographic .notice-panel .notice-item p { color: #c0d9e9 !important; font-size: 14px; line-height: 1.8; }
html.home-theme-holographic .visitor-summary-panel .visitor-counter { color: #e9f9ff !important; font-size: 27px; letter-spacing: .035em; }
html.home-theme-holographic .home-panel.curated-panel { padding: 20px; border-radius: 16px 5px 16px 5px; }
html.home-theme-holographic .curated-panel .section-heading-row { margin-bottom: 12px; }
html.home-theme-holographic .curated-panel .curated-link-list li { border-color: rgba(143,227,255,.18); }
html.home-theme-holographic .curated-panel .curated-link-list a {
  padding: 10px 0;
  min-height: 44px;
  color: #c2e6ff;
  background: transparent;
  border-color: rgba(143,227,255,.18);
  text-decoration: none;
}
html.home-theme-holographic .curated-panel .curated-link-list a:is(:hover, :focus-visible) { color: #fff; background: rgba(79,195,255,.12); outline-color: #78d9ff; }
html.home-theme-holographic .curated-panel [data-curated-items] .curated-link-list strong { color: inherit; font-size: 14px; line-height: 1.7; }
html.home-theme-holographic .curated-panel .curated-link-list a::after { color: #91cde8; }
html.home-theme-holographic .curated-panel [data-curated-more] {
  color: #d9f3ff;
  background: rgba(10,30,72,.6);
  border: 1px solid rgba(79,195,255,.7);
  box-shadow: inset 0 0 8px rgba(79,195,255,.25);
}
html.home-theme-holographic .curated-panel [data-curated-more]:is(:hover, :focus-visible) { color: #fff; background: rgba(34,85,118,.75); border-color: #9ee8ff; outline-color: #a7ebff; }
html.home-theme-holographic .curated-panel .curated-item-actions button:is(:hover, :focus-visible) { outline-color: #9ee8ff; filter: none; }
html.home-theme-holographic .recent-media-card { color: #d8edff; background: rgba(8,22,48,.55) !important; border-color: rgba(79,195,255,.35) !important; }
html.home-theme-holographic .recent-media-card:is(:hover, :focus-visible) { color: #fff; background: rgba(24,67,100,.65) !important; border-color: #9be6ff !important; }
html.home-theme-holographic .recent-media-card :is(p, small, span, strong) { color: #c6e2f5; }

/* Dialogs appended directly to body inherit the homepage gate as well. */
html.home-theme-holographic :is(.curated-manager-dialog, .article-media-dialog) {
  color: #edf7ff;
  background: #0b223a;
  border: 1px solid #71b4da;
  box-shadow: 0 24px 70px #000a, 0 0 0 5px #53a9db12;
}
html.home-theme-holographic :is(.curated-manager-dialog, .article-media-dialog)::backdrop { background: #020b17c7; backdrop-filter: blur(3px); }
html.home-theme-holographic .curated-manager-dialog :is(h1, h2, h3, label, legend) { color: #eef8ff; }
html.home-theme-holographic .curated-manager-dialog :is(p, small) { color: #bfd9eb; }
html.home-theme-holographic .curated-icon-picker { border-color: #4a7e9f; }
html.home-theme-holographic .curated-icon-choice { color: #edf7ff; background: #112d47; border-color: #3d6685; }
html.home-theme-holographic .curated-icon-grid input:checked + .curated-icon-choice { background: #1b4b6a; border-color: #89ddff; box-shadow: inset 0 0 0 1px #89ddff; }
html.home-theme-holographic .curated-icon-grid input:focus-visible + .curated-icon-choice,
html.home-theme-holographic .curated-icon-grid label:hover .curated-icon-choice { outline-color: #b2eeff; }
html.home-theme-holographic .curated-manager-dialog .admin-table { background: #0a1f34; border-color: #3b6888; }
html.home-theme-holographic .curated-manager-dialog .admin-table th { color: #f1f9ff !important; background: #154161 !important; border-color: #4d80a2 !important; }
html.home-theme-holographic .curated-manager-dialog .admin-table td { color: #e2f1fd !important; background: #102b44; border-color: #345975; }
html.home-theme-holographic .curated-manager-dialog .admin-table td > * { color: #e2f1fd !important; }
html.home-theme-holographic .owner-alert-pet { color: #e5f5ff; background: #0c2640f5; border-color: #61acd2; box-shadow: 0 8px 32px #0006, 0 0 12px #56baff20; }
html.home-theme-holographic .owner-alert-caption { color: #9edfff; }
html.home-theme-holographic .owner-alert-message a { color: #e1f4ff; }
html.home-theme-holographic .owner-alert-drag,
html.home-theme-holographic .owner-alert-drag:is(:hover, :focus-visible, :active) { color: inherit; background: transparent; border: 0; box-shadow: none; transform: none; }
html.home-theme-holographic .owner-alert-close { color: #d7edff; background: #193b54; }
html.home-theme-holographic .owner-alert-close:hover { color: #fff; background: #2a5776; }

/* Footer and watermark do not reuse the old decorative palette. */
html.home-theme-holographic #site-footer {
  color: #c0d7e7;
  background: #061426 !important;
  border-top: 1px solid #366a8c !important;
}
html.home-theme-holographic #site-footer .footer-inner { width: min(1560px, calc(100% - 2 * clamp(32px, 4vw - 20px, 96px))); padding-top: 36px; }
html.home-theme-holographic .footer-brand-divider > span { background: linear-gradient(90deg, transparent, #377ea6, transparent); }
html.home-theme-holographic .footer-brand-lockup { color: #e9f6ff; }
html.home-theme-holographic .footer-bottom-row,
html.home-theme-holographic .footer-bottom-row a { color: #b9d5e8; }
html.home-theme-holographic .footer-bottom-row a:hover { color: #fff; }
html.home-theme-holographic .footer-disclaimer-column h2 { color: #d5edfd; font-size: 15px; }
html.home-theme-holographic .footer-disclaimer-column p,
html.home-theme-holographic .footer-disclaimer-column .footer-copyright-line { color: #abc5d9; font-size: 13px; line-height: 1.85; }
html.home-theme-holographic #watermark.watermark-preview { color: #fff; opacity: .13; text-shadow: 0 0 1px #17324a, 0 0 2px #17324a, 0 0 2px #17324a; }
html.home-theme-holographic #watermark.watermark-preview { --watermark-size: 25; }

/* Both automatic responsive layout and the explicit mobile toggle use these
 * values. Components remain one implementation, including their interactive states. */
html.home-theme-holographic .home-list-section .static-list-card {
  grid-template-columns: var(--holo-card-columns, minmax(84px, 1.12fr) minmax(52px, .7fr) minmax(100px, 1.55fr) minmax(132px, 1.25fr) minmax(82px, .88fr));
}
html.home-theme-holographic .home-list-section .static-list-card > strong { grid-column: var(--holo-name-column, auto); grid-row: auto; padding-left: var(--holo-avatar-space, 0); }
html.home-theme-holographic .home-list-section .static-list-card > span { grid-column: var(--holo-cell-column, auto); }
html.home-theme-holographic .home-list-section .static-list-card > .reason-text { grid-column: var(--holo-reason-column, auto); }
html.home-theme-holographic .home-list-section .static-list-card > .home-source-display { grid-column: var(--holo-source-column, auto); }
html.home-theme-holographic .home-list-section .static-list-card > time { grid-column: var(--holo-date-column, auto); grid-row: var(--holo-date-row, auto); }
html.home-theme-holographic .home-list-section .static-list-card > span:nth-of-type(1)::before { content: var(--holo-region-label, none); color: #9dc7e0; font-size: 13px; }
html.home-theme-holographic .home-list-section .latest-table-head { display: var(--holo-table-head, grid); }
html.home-theme-holographic .home-list-section.is-delete-mode .static-list-card {
  grid-template-columns: var(--holo-delete-card-columns, 26px minmax(76px, 1.12fr) minmax(48px, .7fr) minmax(90px, 1.55fr) minmax(132px, 1.25fr) minmax(82px, .88fr));
}
html.home-theme-holographic .home-list-section.is-delete-mode .static-list-card > .home-delete-checkbox { grid-column: 1; grid-row: var(--holo-delete-checkbox-row, auto); }
html.home-theme-holographic .home-list-section.is-delete-mode .static-list-card > strong { grid-column: var(--holo-delete-cell-column, auto); }
html.home-theme-holographic .home-list-section.is-delete-mode .static-list-card > span { grid-column: var(--holo-delete-cell-column, auto); }
html.home-theme-holographic .home-list-section.is-delete-mode .static-list-card > time { grid-column: var(--holo-delete-date-column, auto); grid-row: var(--holo-date-row, auto); }

@media (max-width: 1199px) {
  html.home-theme-holographic .container { width: calc(100% - 40px); }
  html.home-theme-holographic .home-hero-layout { grid-template-columns: minmax(0, 1.4fr) minmax(280px, .8fr); gap: 16px; }
  html.home-theme-holographic .home-hero-illustration { height: 360px; }
  html.home-theme-holographic .hero-copy h1.warm-home-heading { font-size: 34px; }
  html.home-theme-holographic .home-illustration-card { grid-template-columns: 65px minmax(0, 1fr); padding: 17px 14px; gap: 12px; }
  html.home-theme-holographic .home-illustration-card .holo-guide-art { width: 65px; height: 74px; }
  html.home-theme-holographic .home-illustration-card h2 { font-size: 16px; }
  html.home-theme-holographic .home-dashboard-grid { grid-template-columns: minmax(0, 1fr) 290px; gap: 16px; }
  html.home-theme-holographic .home-panel { padding: 18px; }
}

@media (max-width: 1060px) {
  html.home-theme-holographic .home-dashboard-grid { grid-template-columns: minmax(0, 1fr); }
  html.home-theme-holographic .home-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html.home-theme-holographic .recent-media-panel { grid-column: auto; }
}

@media (max-width: 980px) {
  html.home-theme-holographic .home-hero { padding-block: 24px; }
  html.home-theme-holographic .home-hero-layout { grid-template-columns: minmax(0, 1fr) minmax(230px, .6fr); gap: 4px; }
  html.home-theme-holographic .home-hero-illustration { height: 330px; }
  html.home-theme-holographic .hero-copy h1.warm-home-heading { font-size: 31px; }
  html.home-theme-holographic .home-hero .hero-text { font-size: 16px; }
  html.home-theme-holographic .search-form.is-hero.is-keyword-only { grid-template-columns: 1fr; }
  html.home-theme-holographic .search-form.is-hero .search-actions { grid-column: auto; justify-content: flex-end; }
  html.home-theme-holographic .home-illustration-guide { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  html.home-theme-holographic .home-illustration-card { grid-template-columns: 1fr; justify-items: start; gap: 8px; align-content: start; min-height: 210px; }
  html.home-theme-holographic .home-illustration-card .holo-guide-art { width: 62px; height: 62px; }
  html.home-theme-holographic #site-footer .footer-inner { width: calc(100% - 40px); }
}

@media (max-width: 700px) {
  html.home-theme-holographic {
    --holo-card-columns: minmax(0, 1fr) auto;
    --holo-name-column: 1;
    --holo-cell-column: 1 / -1;
    --holo-reason-column: 1 / -1;
    --holo-source-column: 1 / -1;
    --holo-date-column: 2;
    --holo-date-row: 1;
    --holo-table-head: none;
    --holo-region-label: "地區：";
    --holo-uploader-label: "上傳者：";
    --holo-delete-card-columns: 24px minmax(0, 1fr) auto;
    --holo-delete-checkbox-row: 1 / span 6;
    --holo-delete-cell-column: 2 / -1;
    --holo-delete-date-column: 3;
  }
  html.home-theme-holographic .container { width: calc(100% - 28px); }
  html.home-theme-holographic .home-hero { padding: 26px 0 20px; }
  html.home-theme-holographic .home-hero-layout { grid-template-columns: 1fr; gap: 0; min-height: 0; }
  html.home-theme-holographic .hero-content { display: contents; padding: 0; }
  html.home-theme-holographic .hero-copy { grid-row: 1; text-align: center; }
  html.home-theme-holographic .holo-eyebrow { justify-content: center; margin-bottom: 12px; font-size: 10px; letter-spacing: .08em; }
  html.home-theme-holographic .hero-copy h1.warm-home-heading { max-width: 480px; margin-inline: auto; font-size: clamp(27px, 6.7vw, 34px); line-height: 1.5; }
  html.home-theme-holographic .home-hero .hero-text { max-width: 480px; margin: 12px auto 0; font-size: 15px; line-height: 1.85; text-align: center; }
  html.home-theme-holographic .home-hero-illustration { grid-row: 2; order: initial; width: 100%; height: 270px; margin: 6px auto -4px; }
  html.home-theme-holographic .home-hero-illustration::before { inset: 9% 22%; }
  html.home-theme-holographic .home-search-panel { grid-row: 3; width: 100%; padding: 10px; margin: 0; }
  html.home-theme-holographic .search-form.is-hero.is-keyword-only { grid-template-columns: 1fr; gap: 9px; }
  html.home-theme-holographic .search-form.is-hero .field input { font-size: 16px; min-height: 48px; }
  html.home-theme-holographic .search-form.is-hero .search-actions { display: grid; grid-template-columns: 1fr 1fr; min-width: 0; width: 100%; gap: 9px; }
  html.home-theme-holographic .search-form.is-hero .search-actions > * { min-width: 0; min-height: 46px; }
  html.home-theme-holographic .holo-hero-meta { grid-row: 4; justify-content: center; margin-top: 15px; gap: 12px; font-size: 12px; }
  html.home-theme-holographic .hero-submit-action { grid-row: 5; justify-content: center; margin-top: 16px; }
  html.home-theme-holographic .hero-submit-button { width: 100%; min-height: 46px; }
  html.home-theme-holographic .home-illustration-guide { grid-template-columns: 1fr; gap: 12px; margin-bottom: 22px; }
  html.home-theme-holographic .home-illustration-card { grid-template-columns: 74px minmax(0, 1fr); gap: 14px; min-height: 118px; padding: 16px; align-items: center; }
  html.home-theme-holographic .home-illustration-card .holo-guide-art { width: 74px; height: 74px; }
  html.home-theme-holographic .home-illustration-card p { font-size: 14px; line-height: 1.7; }
  html.home-theme-holographic .home-panel { padding: 17px 14px; }
  html.home-theme-holographic .latest-panel > .section-heading-row { margin-bottom: 12px; }
  html.home-theme-holographic .latest-meta { font-size: 13px; }
  html.home-theme-holographic .latest-toolbar { flex-direction: column; align-items: stretch; gap: 14px; }
  html.home-theme-holographic .latest-filter-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  html.home-theme-holographic .latest-filter-row .latest-control { display: grid; gap: 6px; }
  html.home-theme-holographic .latest-control .inline-picker-toggle { min-width: 0; width: 100%; min-height: 44px; }
  html.home-theme-holographic .latest-controls { justify-content: flex-start; }
  html.home-theme-holographic .latest-controls .inline-picker-toggle { min-width: 110px; }
  html.home-theme-holographic .inline-picker-option { min-height: 44px; }
  html.home-theme-holographic .home-list-section .static-list-card { gap: 7px 10px; padding: 17px 14px; }
  html.home-theme-holographic .home-list-section .static-list-card > strong { min-width: 0; }
  html.home-theme-holographic .home-list-section .static-list-card .name-line { font-size: 16px; }
  html.home-theme-holographic .home-list-section .static-list-card > .home-source-display { margin-top: 5px; }
  html.home-theme-holographic .home-list-section .home-source-display .source-links { flex-direction: row; flex-wrap: wrap; gap: 7px; }
  html.home-theme-holographic .home-list-section .home-source-display :is(.source-inline-link, .source-inline-label)[data-platform] { min-height: 36px; padding: 7px 9px; }
  html.home-theme-holographic .home-list-section .home-source-display > .source-edit-button { min-height: 36px; padding: 6px 10px; margin-top: 3px; }
  html.home-theme-holographic .home-pagination { flex-direction: column; align-items: stretch; gap: 12px; }
  html.home-theme-holographic .home-pagination-pages { display: flex; flex-wrap: wrap; gap: 8px; }
  html.home-theme-holographic .home-pagination button { min-height: 44px; width: auto; flex: 1 0 48px; }
  html.home-theme-holographic .home-pagination > button { width: 100%; }
  html.home-theme-holographic .home-sidebar { grid-template-columns: 1fr; }
  html.home-theme-holographic .home-panel.curated-panel { padding: 18px 16px; }
  html.home-theme-holographic .curated-panel .section-heading-row [data-curated-more] { min-height: 38px; font-size: 13px; }
  html.home-theme-holographic .home-list-section .list-card.home-new-entry-card { grid-template-columns: 1fr; gap: 15px; padding: 16px; }
  html.home-theme-holographic .home-new-entry-card :is(.home-new-entry-field, .home-new-entry-source, .home-new-entry-actions, .home-new-entry-uploader, .home-new-entry-updated) { grid-column: 1; grid-row: auto; }
  html.home-theme-holographic .home-new-entry-card :is(input:not([type="checkbox"]), select, textarea) { font-size: 16px; min-height: 46px; }
  html.home-theme-holographic .home-admin-add-row > button { min-height: 42px; font-size: 14px; padding: 8px 12px; }
  html.home-theme-holographic #site-footer .footer-inner { width: calc(100% - 32px); }
  html.home-theme-holographic .footer-disclaimer-grid { grid-template-columns: 1fr; }
}

/* Explicit mobile mode also works on a wide desktop browser window. */
html.home-theme-holographic[data-view-mode="mobile"] {
  --holo-card-columns: minmax(0, 1fr) auto;
  --holo-name-column: 1;
  --holo-cell-column: 1 / -1;
  --holo-reason-column: 1 / -1;
  --holo-source-column: 1 / -1;
  --holo-date-column: 2;
  --holo-date-row: 1;
  --holo-table-head: none;
  --holo-region-label: "地區：";
  --holo-uploader-label: "上傳者：";
  --holo-delete-card-columns: 24px minmax(0, 1fr) auto;
  --holo-delete-checkbox-row: 1 / span 6;
  --holo-delete-cell-column: 2 / -1;
  --holo-delete-date-column: 3;
}
html.home-theme-holographic[data-view-mode="mobile"] .container { width: min(700px, calc(100% - 28px)); }
html.home-theme-holographic[data-view-mode="mobile"] .home-dashboard-grid { grid-template-columns: 1fr; }
html.home-theme-holographic[data-view-mode="mobile"] .home-sidebar { grid-template-columns: 1fr; }
html.home-theme-holographic[data-view-mode="mobile"] .home-hero-layout { grid-template-columns: 1fr; gap: 0; min-height: 0; }
html.home-theme-holographic[data-view-mode="mobile"] .hero-content { display: contents; }
html.home-theme-holographic[data-view-mode="mobile"] .hero-copy { grid-row: 1; text-align: center; }
html.home-theme-holographic[data-view-mode="mobile"] .holo-eyebrow { justify-content: center; }
html.home-theme-holographic[data-view-mode="mobile"] .hero-copy h1.warm-home-heading { font-size: clamp(27px, 5vw, 36px); margin-inline: auto; max-width: 500px; }
html.home-theme-holographic[data-view-mode="mobile"] .home-hero .hero-text { text-align: center; margin-inline: auto; }
html.home-theme-holographic[data-view-mode="mobile"] .home-hero-illustration { grid-row: 2; order: initial; width: 100%; height: 290px; margin: 8px auto 0; }
html.home-theme-holographic[data-view-mode="mobile"] .home-hero-illustration::before { inset: 10% 24%; }
html.home-theme-holographic[data-view-mode="mobile"] .home-search-panel { grid-row: 3; width: 100%; margin-top: 0; }
html.home-theme-holographic[data-view-mode="mobile"] .search-form.is-hero.is-keyword-only { grid-template-columns: 1fr; }
html.home-theme-holographic[data-view-mode="mobile"] .search-form.is-hero .search-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; min-width: 0; }
html.home-theme-holographic[data-view-mode="mobile"] .holo-hero-meta { grid-row: 4; justify-content: center; }
html.home-theme-holographic[data-view-mode="mobile"] .hero-submit-action { grid-row: 5; justify-content: center; }
html.home-theme-holographic[data-view-mode="mobile"] .home-illustration-guide { grid-template-columns: 1fr; }
html.home-theme-holographic[data-view-mode="mobile"] .home-illustration-card { grid-template-columns: 80px minmax(0, 1fr); min-height: 120px; padding: 18px; align-items: center; }
html.home-theme-holographic[data-view-mode="mobile"] .home-illustration-card .holo-guide-art { width: 80px; height: 80px; }
html.home-theme-holographic[data-view-mode="mobile"] .home-list-section .static-list-card { padding: 18px 14px; gap: 8px 12px; }
html.home-theme-holographic[data-view-mode="mobile"] .home-list-section .static-list-card .name-line { font-size: 16px; }
html.home-theme-holographic[data-view-mode="mobile"] .home-list-section .home-source-display .source-links { flex-direction: row; flex-wrap: wrap; gap: 7px; }
html.home-theme-holographic[data-view-mode="mobile"] .home-list-section .list-card.home-new-entry-card { grid-template-columns: 1fr; }
html.home-theme-holographic[data-view-mode="mobile"] .home-new-entry-card :is(.home-new-entry-field, .home-new-entry-source, .home-new-entry-actions, .home-new-entry-updated, .home-new-entry-uploader) { grid-column: 1; grid-row: auto; }
html.home-theme-holographic[data-view-mode="mobile"] .footer-disclaimer-grid { grid-template-columns: 1fr; }
html.home-theme-holographic[data-view-mode="mobile"] .curated-panel .section-heading-row { flex-direction: row; align-items: center; }

@media (prefers-reduced-motion: reduce) {
  html.home-theme-holographic *,
  html.home-theme-holographic *::before,
  html.home-theme-holographic *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  html.home-theme-holographic .home-list-section .home-source-display .source-links > .source-inline-link[data-platform]:is(:hover, :focus-visible, :active),
  html.home-theme-holographic .home-list-section .home-source-display > .source-edit-button:is(:hover, :focus-visible, :active) { transform: none !important; }
}

@media (forced-colors: active) {
  html.home-theme-holographic :is(.home-panel, .home-illustration-card, .home-search-panel, .home-list-section, .curated-manager-dialog) { border: 1px solid CanvasText !important; }
  html.home-theme-holographic :is(.brand-mark, .footer-brand-lockup img) { filter: none; }
}

/* List editing: each field is only as wide as its content needs. */
html.home-theme-holographic .home-list-section .home-new-entry-card input[name="targetName"] { width: min(100%, 320px); }
html.home-theme-holographic .home-list-section .home-new-entry-card select[name="region"] { width: min(100%, 180px); }
html.home-theme-holographic .home-list-section .home-new-entry-card select[name="details"] { width: min(100%, 420px); }
html.home-theme-holographic .home-list-section .home-new-entry-card .source-draft-row select { width: min(100%, 220px); }
html.home-theme-holographic .home-list-section .home-new-entry-card .source-draft-row input { width: min(100%, 520px); }
html.home-theme-holographic[data-view-mode] #app .home-list-section button.home-entry-pick-button { color: #2a1a00 !important; -webkit-text-fill-color: #2a1a00; font-weight: 700; text-shadow: none !important; background: linear-gradient(180deg, #ffd678, #f5a83c) !important; border-color: #f5a83c !important; }
