/* PHASE 1: desktop HUD silhouette study. Remove this stylesheet to restore
   the previous holographic UI. No markup, API, or interaction changes.
   Shapes live on pointer-transparent pseudo-elements: menus are NOT clipped.
   Mobile/touch layouts and the two original themes deliberately do not match. */
@media (min-width: 1100px) {
  html.home-theme-holographic:not([data-view-mode="mobile"]) {
    --hud-edge: #73ccf1;
    --hud-highlight: #c0f5ff;
    --hud-glass: linear-gradient(125deg, #22537ca8, #0a203acb 48%, #122a48d9);
    --hud-outline: linear-gradient(135deg, #b7eeff 0%, #419eda 12%, #285c83 32%, #4993bd 60%, #b5efff 84%, #3b90be 100%);
    --hud-cut: 20px;
    --hud-shape: polygon(0 20px, 20px 0, 35% 0, calc(35% + 10px) 7px, calc(100% - 28px) 7px, 100% 35px, 100% calc(100% - 21px), calc(100% - 21px) 100%, 68% 100%, calc(68% - 9px) calc(100% - 6px), 14px calc(100% - 6px), 0 calc(100% - 20px));
    --hud-ring: polygon(evenodd, 0 20px, 20px 0, 35% 0, calc(35% + 10px) 7px, calc(100% - 28px) 7px, 100% 35px, 100% calc(100% - 21px), calc(100% - 21px) 100%, 68% 100%, calc(68% - 9px) calc(100% - 6px), 14px calc(100% - 6px), 0 calc(100% - 20px), 0 20px, 2px 21px, 2px calc(100% - 21px), 15px calc(100% - 8px), calc(68% - 8px) calc(100% - 8px), calc(68% + 1px) calc(100% - 2px), calc(100% - 22px) calc(100% - 2px), calc(100% - 2px) calc(100% - 22px), calc(100% - 2px) 36px, calc(100% - 29px) 9px, calc(35% + 9px) 9px, calc(35% - 1px) 2px, 21px 2px, 2px 21px);
  }

  /* Background foundation: fixed grid, two light fields and asymmetric rails.
     No moving particles, canvas, full-screen blur, or continuous animations. */
  html.home-theme-holographic:not([data-view-mode="mobile"]) body {
    background:
      radial-gradient(ellipse 53% 620px at 82% 180px, #234b7899, transparent 78%),
      radial-gradient(ellipse 45% 850px at -7% 950px, #064f7280, transparent 80%),
      linear-gradient(155deg, #08172e 0, #101c37 440px, #061222 1150px, #050d1a 2400px);
  }
  /* Grid and rails stay faint over the night-city background (hud-panels.css). */
  html.home-theme-holographic:not([data-view-mode="mobile"]) body::before {
    opacity: .18;
    background:
      linear-gradient(90deg, #67c7ff0e 1px, transparent 1px) 0 0 / 88px 88px,
      linear-gradient(#67c7ff0e 1px, transparent 1px) 0 0 / 88px 88px,
      linear-gradient(115deg, transparent 16%, #349cda20 16.06%, transparent 16.16%),
      linear-gradient(65deg, transparent 81%, #5bbdff16 81.1%, transparent 81.24%);
    mask-image: linear-gradient(#000, #0009 65%, transparent);
  }
  html.home-theme-holographic:not([data-view-mode="mobile"]) body::after {
    opacity: .3;
    background:
      linear-gradient(90deg, transparent 3%, #73d7ff1c 3.1%, transparent 3.24%, transparent 96%, #73d7ff16 96.1%, transparent 96.24%),
      radial-gradient(ellipse 30% 34% at 95% 6%, #7264c222, transparent 75%);
  }

  /* Navigation bar in the style of the concept: a plain dark bar, a long
     angled light frame that rises around the brand and drops to a thin
     bottom line with bright segments, a larger brand, and simple rounded
     buttons with a thin cyan line (the current page glows, with an underline). */
  html.home-theme-holographic:not([data-view-mode="mobile"]) #site-header {
    /* Same see-through glass and dot grid as the 推薦網站 panel. */
    background:
      radial-gradient(circle, rgba(143,227,255,.09) 1px, transparent 1.5px) 0 0 / 14px 14px,
      linear-gradient(180deg, rgba(170,236,255,.12), rgba(170,236,255,0) 12px),
      rgba(4,14,34,.62) !important;
    border-bottom: 0;
    box-shadow: 0 2px 6px rgba(2,10,24,.35);
    backdrop-filter: blur(3px) saturate(1.05) brightness(.8);
  }
  /* The angled frame. Drawn as an SVG stretched over the bar; the strokes keep
     their width (non-scaling-stroke) whatever the screen size. */
  html.home-theme-holographic:not([data-view-mode="mobile"]) #site-header::before {
    inset: 0;
    height: auto;
    opacity: 1;
    clip-path: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 84' preserveAspectRatio='none' fill='none'%3E%3Cpath d='M0 42H80L104 6H580L608 70H1000' stroke='%234fc3ff' stroke-opacity='.75' stroke-width='1.5' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M0 78H118L126 72H600' stroke='%238fe3ff' stroke-opacity='.5' stroke-width='1' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M606 82H1000' stroke='%234fc3ff' stroke-opacity='.45' stroke-width='1' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M86 42L104 15' stroke='%23e6fbff' stroke-width='3' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M590 21L604 54' stroke='%23e6fbff' stroke-width='3' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M640 70H760M800 70H830' stroke='%23e6fbff' stroke-width='2.5' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M290 6H420' stroke='%23bff3ff' stroke-width='2' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
    filter: drop-shadow(0 0 3px rgba(79,195,255,.9)) drop-shadow(0 0 8px rgba(30,140,255,.5));
  }
  /* A light pulse that travels back and forth along the bottom line. Plays
     regardless of motion settings, like the 熱門 marker. */
  html.home-theme-holographic:not([data-view-mode="mobile"]) #site-header::after {
    display: block;
    content: "";
    position: absolute;
    inset: auto auto 0 0;
    width: 180px;
    height: 4px;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(ellipse 50% 50% at 50% 50%, #fff, rgba(143,227,255,.9) 35%, rgba(79,195,255,0) 75%);
    filter: drop-shadow(0 0 6px rgba(79,195,255,1));
    animation: nav-scan 6s ease-in-out infinite alternate !important;
  }
  /* Bigger brand, as in the concept. */
  html.home-theme-holographic:not([data-view-mode="mobile"]) .site-header .brand { gap: 16px; }
  html.home-theme-holographic:not([data-view-mode="mobile"]) .site-header .brand-mark {
    width: 92px !important;
    height: auto !important;
    filter: brightness(0) invert(1) drop-shadow(0 0 4px rgba(143,227,255,.9)) drop-shadow(0 0 12px rgba(79,195,255,.6)) !important;
  }
  html.home-theme-holographic:not([data-view-mode="mobile"]) .site-header .brand-name {
    font-size: 27px;
    letter-spacing: .06em;
    text-shadow: 0 0 6px rgba(143,227,255,.8), 0 0 16px rgba(79,195,255,.5);
  }
  /* Buttons: dark, rounded, thin cyan line. */
  html.home-theme-holographic:not([data-view-mode="mobile"]) .site-header .primary-nav :is(.nav-link, .nav-link-report) {
    min-height: 40px;
    padding-inline: 18px;
    background: rgba(6,20,44,.55) !important;
    border: 1px solid rgba(143,227,255,.5);
    border-radius: 5px;
    box-shadow: inset 0 0 8px rgba(79,195,255,.12);
    font-size: 15px;
  }
  html.home-theme-holographic:not([data-view-mode="mobile"]) .site-header .primary-nav .nav-link.is-active {
    background:
      linear-gradient(#e6fbff, #e6fbff) 50% calc(100% - 5px) / 46% 2px no-repeat,
      linear-gradient(180deg, rgba(120,210,255,.22), rgba(30,107,255,.22)) !important;
    border-color: #bff3ff;
    box-shadow: inset 0 0 10px rgba(79,195,255,.35), 0 0 6px rgba(143,227,255,.8), 0 0 18px rgba(30,140,255,.55);
  }
  /* Desktop/phone switch in the same quiet style. */
  html.home-theme-holographic:not([data-view-mode="mobile"]) .view-mode-switcher {
    background: rgba(4,14,34,.6);
    border: 1px solid rgba(143,227,255,.35);
    border-radius: 5px;
    box-shadow: inset 0 0 8px rgba(79,195,255,.12);
  }
  html.home-theme-holographic:not([data-view-mode="mobile"]) .view-mode-button.is-active {
    background: linear-gradient(180deg, rgba(120,210,255,.28), rgba(30,107,255,.28));
    border-color: rgba(191,243,255,.8);
    box-shadow: 0 0 6px rgba(143,227,255,.5);
  }

  /* Hero is still the same art. An angled instrument ring anchors it to space. */
  /* Compact wide hero: copy and search on the left, the character on the right
     reaching down behind the feature cards. */
  html.home-theme-holographic:not([data-view-mode="mobile"]) .home-hero {
    padding-block: 8px 10px;
    overflow: visible;
    background: transparent !important;
  }
  html.home-theme-holographic:not([data-view-mode="mobile"]) .home-hero-layout {
    min-height: 0;
    grid-template-columns: minmax(0, 900px) minmax(360px, 1fr);
    gap: 8px;
  }
  html.home-theme-holographic:not([data-view-mode="mobile"]) .hero-content { padding-block: 10px 6px; }
  html.home-theme-holographic:not([data-view-mode="mobile"]) .hero-copy h1.warm-home-heading {
    font-size: clamp(40px, 3.1vw, 60px);
    max-width: none;
    letter-spacing: .04em;
    text-shadow: 0 0 2px rgba(255,255,255,.5), 0 0 22px rgba(79,195,255,.75), 0 0 48px rgba(30,107,255,.5);
  }
  html.home-theme-holographic:not([data-view-mode="mobile"]) .home-hero .hero-text {
    max-width: 720px;
    font-size: 19px;
  }
  html.home-theme-holographic:not([data-view-mode="mobile"]) .holo-eyebrow {
    margin-bottom: 14px;
    color: #b0e7ff !important;
  }
  html.home-theme-holographic:not([data-view-mode="mobile"]) .home-hero::before {
    inset: 16px 3% 0;
    background:
      linear-gradient(90deg, transparent 0 3%, #72cdff60 3% 10%, transparent 10% 72%, #4cb5ee40 72% 89%, transparent 89%) 0 100% / 100% 1px no-repeat,
      linear-gradient(120deg, transparent 21%, #64c7ff15 21.1%, transparent 21.25%),
      linear-gradient(60deg, transparent 83%, #64c7ff18 83.1%, transparent 83.25%);
  }
  html.home-theme-holographic:not([data-view-mode="mobile"]) .home-hero-illustration {
    height: 400px;
    margin: -24px 0 -56px;
    isolation: isolate;
  }
  /* Show the character from the cap down to the dog: the art is drawn taller
     than its 400px box and fades out behind the feature cards. */
  html.home-theme-holographic:not([data-view-mode="mobile"]) .home-hero-illustration .holo-guardian-art {
    height: 560px;
    object-position: 0 0;
    -webkit-mask-image: linear-gradient(#000 58%, transparent 80%);
    mask-image: linear-gradient(#000 58%, transparent 80%);
  }
  /* Cards and data sit above the hero (z-index 10) so the faded legs pass
     behind the translucent cards, not over their text. */
  html.home-theme-holographic:not([data-view-mode="mobile"]) .home-dashboard-band {
    position: relative;
    z-index: 11;
  }
  /* Holographic shield-and-paw emblem behind the character (replaces the
     earlier tilted oval frame). The character art carries its own ring. */
  html.home-theme-holographic:not([data-view-mode="mobile"]) .home-hero-illustration::before {
    inset: 2% 46% 30% -4%;
    border: 0;
    border-radius: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 220'%3E%3Cdefs%3E%3CradialGradient id='g' cx='50%25' cy='45%25' r='60%25'%3E%3Cstop offset='0' stop-color='%2347b8ff' stop-opacity='.12'/%3E%3Cstop offset='1' stop-color='%231e6bff' stop-opacity='.04'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cpath d='M100 8 182 38v66c0 54-36 92-82 110-46-18-82-56-82-110V38Z' fill='url(%23g)' stroke='%238fe3ff' stroke-width='3'/%3E%3Cpath d='M100 22 168 47v57c0 46-30 79-68 95-38-16-68-49-68-95V47Z' fill='none' stroke='%234fc3ff' stroke-opacity='.6' stroke-width='1.5'/%3E%3Cg fill='%23bff3ff' fill-opacity='.8'%3E%3Cellipse cx='70' cy='92' rx='11' ry='15'/%3E%3Cellipse cx='92' cy='72' rx='11' ry='15'/%3E%3Cellipse cx='118' cy='72' rx='11' ry='15'/%3E%3Cellipse cx='138' cy='92' rx='10' ry='14'/%3E%3Cpath d='M104 106c-20 0-38 22-38 40 0 14 12 18 22 14 6-3 10-4 16-4s10 1 16 4c10 4 22 0 22-14 0-18-18-40-38-40Z'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
    box-shadow: none;
    transform: none;
    opacity: .75;
    filter: drop-shadow(0 0 4px rgba(79,195,255,.8));
  }

  /* Reusable HUD frame: polygon silhouette + inset glass + separate stroke.
     Host stays rectangular/unclipped so dropdowns and focus rings can escape.
     Component variants change only the shape/glass/outline custom properties. */
  html.home-theme-holographic:not([data-view-mode="mobile"]) :is(.home-search-panel, .home-illustration-card, .latest-panel, .notice-panel, .visitor-summary-panel) {
    position: relative;
    isolation: isolate;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none;
    overflow: visible;
    filter: drop-shadow(0 0 3px #5fbff635) drop-shadow(0 14px 18px #020b1855);
  }
  html.home-theme-holographic:not([data-view-mode="mobile"]) :is(.home-search-panel, .home-illustration-card, .latest-panel, .notice-panel, .visitor-summary-panel)::before {
    content: "";
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    z-index: -2;
    pointer-events: none;
    clip-path: var(--hud-shape);
    background:
      linear-gradient(90deg, #a1dfff00, #b2eaff50, #a1dfff00) 10% 12px / 35% 1px no-repeat,
      linear-gradient(90deg, #70cfff55, #70cfff00) 12px calc(100% - 14px) / 120px 1px no-repeat,
      linear-gradient(#a9eeff20, transparent 42%) 8px 13px / 1px calc(100% - 26px) no-repeat,
      var(--hud-glass);
    box-shadow: inset 0 0 28px #5dbeff0e;
    backdrop-filter: blur(10px);
  }
  html.home-theme-holographic:not([data-view-mode="mobile"]) :is(.home-search-panel, .home-illustration-card, .latest-panel, .notice-panel, .visitor-summary-panel)::after {
    content: "";
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    z-index: -1;
    pointer-events: none;
    clip-path: var(--hud-ring);
    background: var(--hud-outline);
    box-shadow: none;
  }

  /* Primary search console: widest corner cuts and highest optical hierarchy. */
  html.home-theme-holographic:not([data-view-mode="mobile"]) .home-search-panel {
    --hud-glass: linear-gradient(115deg, #2a648ba6, #122c48c7 53%, #21578287);
    --hud-outline: linear-gradient(125deg, #b7f2ff, #438fc2 16%, #7accf2 44%, #c6f8ff 76%, #4ba5df);
    padding: 18px 36px;
    margin-top: 18px;
    max-width: 660px;
    filter: drop-shadow(0 0 4px #64c9ff55) drop-shadow(0 9px 22px #0007);
  }
  html.home-theme-holographic:not([data-view-mode="mobile"]) .home-search-panel .search-form {
    position: relative;
    z-index: 1;
  }
  html.home-theme-holographic:not([data-view-mode="mobile"]) .home-search-panel .search-form .field {
    position: relative;
  }
  /* Pure-CSS magnifier; decorative pseudo-elements never cover input hit areas. */
  html.home-theme-holographic:not([data-view-mode="mobile"]) .home-search-panel .search-form .field::before {
    content: "";
    position: absolute;
    z-index: 2;
    width: 15px;
    height: 15px;
    left: 17px;
    top: 16px;
    border: 2px solid #c7f3ff;
    border-radius: 50%;
    box-shadow: 0 0 9px #49bdff70;
    pointer-events: none;
  }
  html.home-theme-holographic:not([data-view-mode="mobile"]) .home-search-panel .search-form .field::after {
    content: "";
    position: absolute;
    z-index: 2;
    width: 10px;
    height: 2px;
    left: 31px;
    top: 33px;
    background: #c7f3ff;
    transform: rotate(45deg);
    pointer-events: none;
  }
  html.home-theme-holographic:not([data-view-mode="mobile"]) .home-search-panel .search-form .field input {
    padding-left: 50px;
    min-height: 54px;
    background: #081b2ecf !important;
    border-color: #81bad5bd;
    box-shadow: inset 0 2px 12px #020e2080, 0 1px 0 #caf5ff30;
    border-radius: 4px 11px 4px 4px;
  }
  html.home-theme-holographic:not([data-view-mode="mobile"]) .home-search-panel .primary-button {
    min-width: 102px;
    min-height: 54px;
    background: linear-gradient(125deg, #319cd487, #14558aba) !important;
    border: 1px solid #9ce9ff;
    border-radius: 7px 2px 7px 2px;
    box-shadow: inset 0 0 18px #64d3ff45, 0 0 13px #46baff52;
    text-shadow: 0 0 9px #65ceff80;
  }
  html.home-theme-holographic:not([data-view-mode="mobile"]) .home-search-panel .search-clear-button {
    min-height: 54px;
    background: linear-gradient(125deg, #6292b520, #16426755) !important;
    border-color: #74b5d28a;
    border-radius: 3px 9px 3px 3px;
    box-shadow: inset 0 1px 0 #d1faff24;
  }

  /* Three quieter HUD modules, each with a different asymmetric silhouette. */
  html.home-theme-holographic:not([data-view-mode="mobile"]) .home-illustration-guide { gap: 6px; margin-bottom: 10px; }
  /* Blocks sit close together, as in the concept. The list and sidebar frames
     keep their facing sides straight (hud-panels.css), so a plain 10px gap
     stays visible and nothing overlaps. */
  html.home-theme-holographic:not([data-view-mode="mobile"]) .home-dashboard-grid { gap: 10px; }
  /* Rows keep 8-10px: the top tab and bottom notch reach the box edge, so
     touching rows would merge their outlines. */
  /* Sidebar as a grid of smaller blocks: notice and media span both columns;
     visitors / record count and news / recommendations sit side by side. */
  html.home-theme-holographic:not([data-view-mode="mobile"]) .home-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-content: start;
    gap: 8px 10px;
  }
  /* Compact panels: little room between the frame and the content. */
  html.home-theme-holographic:not([data-view-mode="mobile"]) .home-sidebar > :is(.curated-panel[aria-labelledby="news-title"], .recent-media-panel) { padding: 12px 22px 10px; }
  html.home-theme-holographic:not([data-view-mode="mobile"]) .notice-list { gap: 0; }
  html.home-theme-holographic:not([data-view-mode="mobile"]) .notice-item { padding: 5px 0; }
  html.home-theme-holographic:not([data-view-mode="mobile"]) .latest-panel .latest-toolbar { margin: 8px 0 8px; }  html.home-theme-holographic:not([data-view-mode="mobile"]) .home-illustration-card { padding-block: 12px !important; }
  /* Rows: notice | visitors + recommendations (compact, side by side) | news | media. */
  html.home-theme-holographic:not([data-view-mode="mobile"]) .home-sidebar > :is(.notice-panel, .recent-media-panel) { grid-column: 1 / -1; }
  html.home-theme-holographic:not([data-view-mode="mobile"]) .home-sidebar > .curated-panel[aria-labelledby="news-title"] { grid-column: 1 / -1; order: 1; }
  html.home-theme-holographic:not([data-view-mode="mobile"]) .home-sidebar > .recent-media-panel { order: 2; }
  html.home-theme-holographic:not([data-view-mode="mobile"]) .home-sidebar > :is(.visitor-summary-panel, .curated-panel[aria-labelledby="links-title"]) { padding: 12px 20px 10px; }
  html.home-theme-holographic:not([data-view-mode="mobile"]) .home-sidebar > :is(.visitor-summary-panel, .curated-panel[aria-labelledby="links-title"]) .section-heading-row { margin-bottom: 4px; padding-bottom: 6px; }
  html.home-theme-holographic:not([data-view-mode="mobile"]) .home-sidebar > :is(.visitor-summary-panel, .curated-panel[aria-labelledby="links-title"]) h2 { font-size: 17px; }
  /* 累積資料數 as a small line at the bottom of 今日訪客. */
  html.home-theme-holographic:not([data-view-mode="mobile"]) .visitor-summary-panel .records-counter {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 10px 0 0;
    padding-top: 8px;
    border-top: 1px solid rgba(143,227,255,.18);
    color: #9fc6e0 !important;
    font-size: 13px;
    font-weight: 400;
    text-shadow: none;
  }
  html.home-theme-holographic:not([data-view-mode="mobile"]) .visitor-summary-panel .records-counter .icon { width: 15px; height: 15px; color: #83ddff; }
  html.home-theme-holographic:not([data-view-mode="mobile"]) .visitor-summary-panel .records-counter strong { color: #7fe0ff; font-size: 15px; }
  /* Half-width blocks: one link per row, and the visitor count on one line. */
  html.home-theme-holographic:not([data-view-mode="mobile"]) .home-sidebar [data-curated-items=recommendation] .curated-link-list { grid-template-columns: minmax(0, 1fr); }
  html.home-theme-holographic:not([data-view-mode="mobile"]) .home-sidebar .visitor-summary-panel .visitor-counter { margin-top: 6px; font-size: 23px; white-space: nowrap; }
  html.home-theme-holographic:not([data-view-mode="mobile"]) .home-illustration-card {
    padding: 20px 26px;
    min-height: 0;
    --hud-shape: polygon(0 21px, 21px 0, calc(100% - 13px) 0, 100% 13px, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
    --hud-ring: polygon(evenodd, 0 21px, 21px 0, calc(100% - 13px) 0, 100% 13px, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 21px, 1.5px 22px, 1.5px calc(100% - 1.5px), calc(100% - 19px) calc(100% - 1.5px), calc(100% - 1.5px) calc(100% - 19px), calc(100% - 1.5px) 14px, calc(100% - 14px) 1.5px, 22px 1.5px, 1.5px 22px);
    --hud-glass: linear-gradient(140deg, #2c537e85, #10213bd9 65%);
    --hud-outline: linear-gradient(135deg, #b2f1ff, #4485b8 17%, #244766 38%, #4f8dba 72%, #b2ebff);
  }
  html.home-theme-holographic:not([data-view-mode="mobile"]) .home-illustration-card--care {
    --hud-shape: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
    --hud-ring: polygon(evenodd, 0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 18px 100%, 0 calc(100% - 18px), 0 0, 1.5px 1.5px, 1.5px calc(100% - 19px), 19px calc(100% - 1.5px), calc(100% - 1.5px) calc(100% - 1.5px), calc(100% - 1.5px) 23px, calc(100% - 23px) 1.5px, 1.5px 1.5px);
  }
  html.home-theme-holographic:not([data-view-mode="mobile"]) .home-illustration-card--submit {
    --hud-shape: polygon(0 12px, 12px 0, 60% 0, calc(60% + 8px) 5px, calc(100% - 20px) 5px, 100% 25px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
    --hud-ring: polygon(evenodd, 0 12px, 12px 0, 60% 0, calc(60% + 8px) 5px, calc(100% - 20px) 5px, 100% 25px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px, 1.5px 13px, 1.5px calc(100% - 1.5px), calc(100% - 13px) calc(100% - 1.5px), calc(100% - 1.5px) calc(100% - 13px), calc(100% - 1.5px) 26px, calc(100% - 21px) 6.5px, calc(60% + 7px) 6.5px, calc(60% - 1px) 1.5px, 13px 1.5px, 1.5px 13px);
  }

  /* Reading surface stays dark. Only the result's OUTER shell changes in P1. */
  html.home-theme-holographic:not([data-view-mode="mobile"]) .latest-panel {
    --hud-glass: linear-gradient(135deg, #1b3c63c7, #08192de8 240px, #0b1d32ef);
    padding: 14px 22px 14px;
    --hud-outline: linear-gradient(145deg, #c0f4ff 0, #3b8ec5 3%, #385f8599 11%, #29465f 40%, #396a8a 78%, #8dd9ff 98%);
  }
  html.home-theme-holographic:not([data-view-mode="mobile"]) .latest-panel > .section-heading-row {
    padding: 0 0 15px;
    border-bottom: 1px solid #8bcbec35;
    background: linear-gradient(90deg, #c2f7ff, #3b83b9, transparent) 0 100% / 175px 1px no-repeat;
  }

  /* Compact telemetry modules: notice has a notched crown; visitor a clipped foot. */
  html.home-theme-holographic:not([data-view-mode="mobile"]) :is(.notice-panel, .visitor-summary-panel) { padding: 14px 22px 12px; }
  html.home-theme-holographic:not([data-view-mode="mobile"]) .notice-panel {
    --hud-shape: polygon(0 19px, 19px 0, 60% 0, calc(60% + 7px) 6px, calc(100% - 19px) 6px, 100% 25px, 100% calc(100% - 17px), calc(100% - 17px) 100%, 0 100%);
    --hud-ring: polygon(evenodd, 0 19px, 19px 0, 60% 0, calc(60% + 7px) 6px, calc(100% - 19px) 6px, 100% 25px, 100% calc(100% - 17px), calc(100% - 17px) 100%, 0 100%, 0 19px, 1.5px 20px, 1.5px calc(100% - 1.5px), calc(100% - 18px) calc(100% - 1.5px), calc(100% - 1.5px) calc(100% - 18px), calc(100% - 1.5px) 26px, calc(100% - 20px) 7.5px, calc(60% + 6px) 7.5px, calc(60% - 1px) 1.5px, 20px 1.5px, 1.5px 20px);
    --hud-glass: linear-gradient(135deg, #254c76a8, #0b213cd9 70%);
  }
  html.home-theme-holographic:not([data-view-mode="mobile"]) .visitor-summary-panel {
    --hud-shape: polygon(0 12px, 12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 24px), calc(100% - 24px) 100%, 25% 100%, calc(25% - 9px) calc(100% - 7px), 0 calc(100% - 7px));
    --hud-ring: polygon(evenodd, 0 12px, 12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 24px), calc(100% - 24px) 100%, 25% 100%, calc(25% - 9px) calc(100% - 7px), 0 calc(100% - 7px), 0 12px, 1.5px 13px, 1.5px calc(100% - 8.5px), calc(25% - 8px) calc(100% - 8.5px), calc(25% + 1px) calc(100% - 1.5px), calc(100% - 25px) calc(100% - 1.5px), calc(100% - 1.5px) calc(100% - 25px), calc(100% - 1.5px) 13px, calc(100% - 13px) 1.5px, 13px 1.5px, 1.5px 13px);
    --hud-glass: linear-gradient(120deg, #1a487194, #0e2440de);
  }
  html.home-theme-holographic:not([data-view-mode="mobile"]) :is(.notice-panel, .visitor-summary-panel, .curated-panel, .recent-media-panel) .section-heading-row {
    padding-bottom: 6px;
    margin-bottom: 6px;
    border-bottom: 1px solid #77b4dd40;
    background: linear-gradient(90deg, #9ce6ff65, transparent 70%) 0 100% / 100% 1px no-repeat;
  }
  html.home-theme-holographic:not([data-view-mode="mobile"]) .visitor-counter {
    margin-top: 14px;
    color: #7fe0ff !important;
    text-shadow: 0 0 12px rgba(79,195,255,.7);
  }
}

/* Preserve a plain, legible frame in OS forced-colors modes. */
@media (min-width: 1100px) and (forced-colors: active) {
  html.home-theme-holographic:not([data-view-mode="mobile"]) :is(.home-search-panel, .home-illustration-card, .latest-panel, .notice-panel, .visitor-summary-panel) {
    border: 1px solid CanvasText !important;
    background: Canvas !important;
    filter: none;
  }
  html.home-theme-holographic:not([data-view-mode="mobile"]) :is(.home-search-panel, .home-illustration-card, .latest-panel, .notice-panel, .visitor-summary-panel)::before,
  html.home-theme-holographic:not([data-view-mode="mobile"]) :is(.home-search-panel, .home-illustration-card, .latest-panel, .notice-panel, .visitor-summary-panel)::after { display: none; }
}
