/* Starmap Atlas — one homepage composition, replacing compact + FileOS overrides.
 * References: measured public layouts, not copied artwork or application source.
 * Existing vanilla homepage retained; screen is one isolated React island, no new dependency.
 * PurePin study: shared edges, editorial primary column, compact companion
 * column, and an evenly sized directory. Keep one composition, no extra sheet.
 */
/* The only new homepage island; hide it with the other home-only modules. */
#home-tools-folder { min-width:0; }
.home-bento.is-secondary #home-tools-folder,html[data-home-ui="hidden"] #home-tools-folder { display:none; }
@media (max-width:1199px) { #home-tools-folder { margin-top:20px; } }
#settings-panel [hidden] { display:none!important; }
#settings-admin .workspace-module { margin:0; padding:0; border:0; background:transparent; }
#settings-admin .workspace-admin-link { display:inline-flex; margin:6px 8px 12px 0; }
/* One icon presentation for both card layouts: preserve logos, never circular-crop. */
body.site-refined .bookmark-root .bookmark-icon {
  width:44px; height:44px; flex-shrink:0; border:1px solid var(--ref-line); border-radius:11px;
  background:var(--ref-soft); color:var(--ref-accent); font-weight:600; font-size:17px;
}
body.site-refined .bookmark-root .bookmark-icon.has-hd { background:#fff; }
body.site-refined .bookmark-root .bookmark-icon img,
body.site-refined .bookmark-root .bookmark-icon img.bookmark-icon-hd {
  width:36px; height:36px; border-radius:6px; object-fit:contain;
}
body.site-refined .bookmark-root.is-view-2 .bookmark-icon { width:40px; height:40px; border-radius:10px; }
body.site-refined .bookmark-root.is-view-2 .bookmark-icon img { width:32px; height:32px; }
body.site-refined .bookmark-root.is-view-2 .bookmark-card { grid-template-columns:40px minmax(0,1fr); }
#home-screen { display:block; width:100%; min-width:0; margin:0; }
body.site-refined .bento-player-panel #home-screen,
body.site-refined .bento-player-panel .center-search-slot { width:100%; max-width:580px; align-self:flex-start; margin-inline:0; }
body.site-refined #center-search-slot #hero-search { width:100%; max-width:none; margin-inline:0; }
#home-screen[hidden],html[data-home-ui="hidden"] #home-screen { display:none; }
.home-bento.is-secondary #home-screen { display:none; }
.home-screen-fallback { aspect-ratio:16/9; box-sizing:border-box; border:1px solid #252526; border-radius:18px; background:#0b0b0c; }
@media(max-width:720px) { .home-screen-fallback { border-radius:16px; } }
body.site-refined {
  --ref-ink: #202d29;
  --ref-muted: #66736d;
  --ref-line: #dde3db;
  --ref-surface: #fff;
  --ref-soft: #eff3ed;
  --ref-accent: #306b54;
  --atlas-shadow: 0 2px 3px rgb(27 46 36 / 2%), 0 8px 22px -12px rgb(27 46 36 / 16%);
  --atlas-radius: 18px;
}
html[data-theme="dark"] body.site-refined {
  --ref-ink: #e9efea;
  --ref-muted: #a2afa6;
  --ref-line: #303a34;
  --ref-surface: #191f1c;
  --ref-soft: #222b25;
  --ref-accent: #a5c9b4;
  --atlas-shadow: inset 0 1px 0 rgb(255 255 255 / 3%), 0 8px 22px -12px rgb(0 0 0 / 40%);
}
/* Solid dark has its own neutral palette; existing fluid/wallpaper modes keep
 * their original colours. Avoid painting a second green/blue theme on top.
 */
html[data-background-mode="dark"] body.site-refined {
  --ref-ink: #ffffff;
  --ref-muted: #9a9a9f;
  --ref-line: #282829;
  --ref-surface: #151515;
  --ref-soft: #1e1e20;
  --ref-accent: #ff4458;
  --atlas-shadow: none;
}
html[data-background-mode="dark"] body.site-refined .page-shell > main { background: transparent; }
/* Glass preferences remain stored for wallpaper themes, but this preset is flat. */
html[data-background-mode="dark"] body.site-refined :is(.module-card,.bookmark-card) {
  background: var(--ref-surface) !important;
}
/* Retain sticky glass, but not the colourful animated light behind it. */
html[data-background-mode="dark"] body.site-refined .site-header::before {
  display: none;
  animation: none;
}
html[data-background-mode="dark"] body.site-refined .bento-directory-panel .module-grid .module-card:hover,
html[data-background-mode="dark"] body.site-refined .bento-directory-panel .module-grid .module-card:focus-visible {
  box-shadow: none;
}
body.site-refined .header-home-brand { display: none !important; }
/* Hidden overflow is scrollable: resizing a focused playback button can scroll
 * the card itself and clip its cover/title. Clip paint without a scroll box. */
@supports (overflow: clip) {
  body.site-refined #mobile-music-dock .music-dock-wrap { overflow: clip; }
}
/* QuotaView's actual fine-grain shader, restricted to the music surface.
 * Screen keeps the cover palette; the mask protects the title/cover area.
 * Scheduling is playback-aware in quantum-noise.js, not CSS fake equalizers.
 */
body.site-refined #mobile-music-dock .music-quantum-noise {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: .14;
  mask-image: linear-gradient(90deg, transparent 22%, #000 70%);
  -webkit-mask-image: linear-gradient(90deg, transparent 22%, #000 70%);
}
body.site-refined #mobile-music-dock .music-quantum-noise[hidden] { display: none; }
body.site-refined #mobile-music-dock .music-dock-wrap[data-playing="true"] .music-quantum-noise { opacity: .32; }
@media (prefers-reduced-motion: reduce) {
  body.site-refined #mobile-music-dock .music-dock-wrap[data-playing="true"] .music-quantum-noise { opacity: .14; }
}
body.site-refined .home-bento:not(.is-secondary) > .hero .hero-visual[data-mode="lyrics"] .hot-board,
body.site-refined .bento-player-panel .hero-visual[data-mode="lyrics"] .hot-board { display: none; }
html[data-background-mode="plain"] body.site-refined :is(.ambient,.liquid-stage) { display: none; }
html[data-background-mode="plain"] body.site-refined .page-shell > main { background: transparent; }
body.site-refined .hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 16px;
  color: var(--ref-accent);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .09em;
}
body.site-refined .hero .eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ref-accent) 9%, transparent);
}
/* Default title is editorial, not a glowing blue logo. Explicit user styles remain. */
html[data-title-style="glass"]:not([data-wallpaper="on"]):not([data-accent-lock]):not([data-title-accent]) body.site-refined #hero-display,
html[data-title-style="classic"]:not([data-wallpaper="on"]):not([data-accent-lock]):not([data-title-accent]) body.site-refined #hero-display {
  color: var(--ref-ink);
  filter: none !important;
  text-shadow: none !important;
}
html[data-title-style="glass"]:not([data-wallpaper="on"]):not([data-accent-lock]):not([data-title-accent]) body.site-refined #hero-display-main,
html[data-title-style="classic"]:not([data-wallpaper="on"]):not([data-accent-lock]):not([data-title-accent]) body.site-refined #hero-display-main {
  color: var(--ref-accent);
  background: none;
  -webkit-text-fill-color: currentColor;
  filter: none;
  text-shadow: none;
}
body.site-refined .bento-directory-panel {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
body.site-refined .bento-directory-panel .collection-heading {
  margin-bottom: 16px;
  align-items: end;
}
body.site-refined .bento-directory-panel .section-kicker {
  margin: 0 0 5px;
  color: var(--ref-accent);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .13em;
}
body.site-refined .bento-directory-panel .module-grid .module-card {
  border: 1px solid var(--ref-line);
  border-radius: var(--atlas-radius);
  background: var(--ref-surface);
  box-shadow: var(--atlas-shadow);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
body.site-refined .bento-directory-panel .module-grid .module-card:hover,
body.site-refined .bento-directory-panel .module-grid .module-card:focus-visible {
  border-color: color-mix(in srgb, var(--ref-accent) 48%, var(--ref-line));
  box-shadow: 0 9px 24px -12px color-mix(in srgb, var(--ref-accent) 35%, transparent);
  transform: translateY(-3px);
}
body.site-refined .bento-directory-panel .module-grid .module-icon {
  border: 1px solid color-mix(in srgb, var(--ref-accent) 12%, var(--ref-line));
  border-radius: 12px;
  background: var(--ref-soft);
  color: var(--ref-accent);
}
body.site-refined .bento-directory-panel .module-grid .module-name { color: var(--ref-ink); font-family: var(--font-ui); }
body.site-refined .module-icon svg.kubai-icon { width: 28px; height: 28px; }
body.site-refined .site-nav-icon svg.kubai-icon { width: 23px; height: 23px; }
body.site-refined .bento-directory-panel .module-grid :is(.module-card-description,.module-count) { color: var(--ref-muted); }
body.site-refined .bento-directory-panel .module-grid .module-card::after {
  color: var(--ref-muted);
  opacity: .7;
}
/* Never hide ranking data to obtain a shorter card; only remove artificial stretch. */
@media (min-width: 721px) {
  body.site-refined .home-bento:not(.is-secondary) > .hero .hero-visual .hot-board {
    position: relative;
    inset: auto;
    height: auto;
    min-height: 0;
    padding: 16px;
    gap: 10px;
    border: 1px solid var(--ref-line);
    border-radius: 20px;
    background: var(--ref-surface);
    box-shadow: var(--atlas-shadow);
  }
  body.site-refined .home-bento:not(.is-secondary) > .hero .hot-board-source-card {
    flex: 0 0 auto;
    min-height: 0;
    padding: 10px;
    border: 0;
    border-radius: 13px;
    background: var(--ref-soft);
  }
  body.site-refined .home-bento:not(.is-secondary) > .hero .hot-board-body {
    display: block;
    flex: 0 0 auto;
    min-height: 0;
  }
  body.site-refined .home-bento:not(.is-secondary) > .hero .hot-board-list {
    height: auto;
    min-height: 0;
    grid-auto-rows: auto;
    align-content: start;
    gap: 0;
  }
  body.site-refined .home-bento:not(.is-secondary) > .hero .hot-board-item {
    min-height: 35px;
    padding-block: 8px;
    font-size: 12px;
    line-height: 1.45;
  }
  body.site-refined .home-bento:not(.is-secondary) > .hero .hot-board-item + .hot-board-item {
    border-top: 1px solid color-mix(in srgb, var(--ref-line) 65%, transparent);
  }
  body.site-refined .home-bento:not(.is-secondary) > .hero .hot-board-source-copy h3 { font-size: 12px; }
  body.site-refined .home-bento:not(.is-secondary) > .hero .hot-board-source-icon { width: 24px; height: 24px; }
  body.site-refined .home-bento:not(.is-secondary) > .hero .hot-board-title { font-size: 15px; }
  body.site-refined .home-bento:not(.is-secondary) > .hero .hot-board-updated { font-size: 10px; }
  body.site-refined .home-bento:not(.is-secondary) > .hero .hot-board-station-wrap { flex-basis: 36px; }
  body.site-refined .home-bento:not(.is-secondary) > .hero .hot-board-station-shell { height: 36px; background: var(--ref-surface); }
  body.site-refined .home-bento:not(.is-secondary) > .hero .hot-board-station-shell[data-expanded="true"] {
    display: block;
    padding: 40px 6px 6px;
  }
  body.site-refined .home-bento:not(.is-secondary) > .hero .hot-board-tabs { height: 28px; }
  body.site-refined .home-bento:not(.is-secondary) > .hero .hot-board-station-shell[data-expanded="true"] .hot-board-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    height: auto;
    max-height: 100%;
    overflow-y: auto;
  }
  body.site-refined .home-bento:not(.is-secondary) > .hero .hot-board-station-shell[data-expanded="true"] .hot-board-expand { position: absolute; top: 6px; right: 6px; }
  body.site-refined .home-bento:not(.is-secondary) > .hero .hot-board-station-shell[data-expanded="true"] .hot-board-tab { min-width: 0; padding-inline: 4px; overflow: hidden; }
  body.site-refined .home-bento:not(.is-secondary) > .hero .hero-visual[data-mode="lyrics"] { min-height: 324px; }
  body.site-refined .home-bento:not(.is-secondary) > .hero .hot-board-rotate { top: 14px; right: 14px; }
}
@media (min-width: 1200px) {
  html[data-sidebar="collapsed"] { --rail-width: 76px; }
  body.site-refined .site-header {
    position: fixed;
    top: 14px;
    right: auto;
    left: calc(var(--rail-width) + (100% - var(--rail-width) - min(1040px, 100% - var(--rail-width) - 48px)) / 2);
    z-index: 72;
    display: flex;
    width: min(1040px, calc(100% - var(--rail-width) - 48px));
    max-width: none;
    height: 58px;
    min-height: 58px;
    margin: 0;
    padding: 8px 10px 8px 14px;
    gap: 16px;
    align-items: center;
    overflow: visible;
    border: 1px solid color-mix(in srgb, var(--ref-line) 88%, transparent);
    border-radius: 16px;
    background: color-mix(in srgb, var(--ref-surface) 78%, transparent);
    box-shadow: var(--atlas-shadow);
    backdrop-filter: blur(22px) saturate(155%);
    -webkit-backdrop-filter: blur(22px) saturate(155%);
  }
  body.site-refined .site-header::before,
  body.site-refined .site-header::after { display: none; }
  body.site-refined .site-header .header-brand-slot,
  body.site-refined .site-header .header-search-slot { display: flex; min-width: 0; align-items: center; }
  body.site-refined .site-header .header-home-brand {
    display: inline-flex !important;
    max-width: 320px;
    gap: 9px;
    align-items: center;
    color: var(--ref-ink);
    text-decoration: none;
  }
  body.site-refined .site-header .header-home-brand img { width: 30px; height: 30px; border-radius: 10px; }
  body.site-refined .site-header .header-home-brand strong { overflow: hidden; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
  body.site-refined .site-header .header-search-slot { margin-left: auto; }
  body.site-refined .site-header .header-search-shortcut { width: 230px; height: 36px; border-radius: 11px; background: var(--ref-soft); }
  body.site-refined .site-header .header-actions { margin-left: 0; gap: 6px; }
  body.site-refined .site-header .header-actions .icon-button { width: 36px; height: 36px; border-radius: 11px; background: transparent; }
  body.site-refined .page-shell > main { padding: 108px 24px 40px; }
  /* Explicit desktop hierarchy: title → search/video → three equal squares. */
  body.site-refined .home-bento:not(.is-secondary) {
    width: min(1040px, 100%); max-width: 1040px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: auto auto auto auto;
    gap: 24px 16px; align-items: start;
  }
  body.site-refined .home-bento:not(.is-secondary) > .hero .hero-text {
    width: 100%; max-width: none; grid-column: 1 / -1; grid-row: 1; text-align: center;
  }
  body.site-refined .home-bento:not(.is-secondary) > .hero #hero-display {
    width: 100%; max-width: none; margin: 0 auto; text-align: center;
    font-size: clamp(44px, 4.6vw, 62px); font-weight: 700; line-height: 1.08; letter-spacing: -.045em;
  }
  body.site-refined .home-bento:not(.is-secondary) > .hero #hero-display-lead { font-size: .58em; margin-bottom: 6px; }
  body.site-refined .home-bento:not(.is-secondary) > .hero .hero-cn { display: none; }
  body.site-refined .home-bento:not(.is-secondary) .bento-player-panel {
    grid-column: 1 / -1; grid-row: 2; justify-self: center;
    width: 100%; max-width: 580px; gap: 12px; margin: 0;
  }
  body.site-refined .home-bento:not(.is-secondary) .bento-player-panel #home-screen,
  body.site-refined .home-bento:not(.is-secondary) .center-search-slot { max-width: none; }
  body.site-refined .home-bento:not(.is-secondary) .bento-player-panel .hero-tools-row { display: none; }
  body.site-refined #center-search-slot #hero-search .search-box {
    height: 52px; padding: 6px 12px; border: 1px solid var(--ref-line); border-radius: 15px;
    background: var(--ref-surface); box-shadow: var(--atlas-shadow);
  }
  body.site-refined #center-search-slot #hero-search #search-input { height: 38px; font-size: 15px; }
  body.site-refined .home-bento:not(.is-secondary) > .hero #mobile-music-dock,
  body.site-refined .home-bento:not(.is-secondary) > .hero .hero-visual,
  body.site-refined .home-bento:not(.is-secondary) #home-tools-folder {
    position: relative; width: 100%; max-width: none; min-width: 0;
    height: auto; min-height: 0; aspect-ratio: 1; margin: 0;
    grid-row: 3; align-self: stretch;
  }
  body.site-refined .home-bento:not(.is-secondary) > .hero #mobile-music-dock { display: block; grid-column: 1; }
  body.site-refined .home-bento:not(.is-secondary) > .hero .hero-visual { display: block; grid-column: 2; }
  body.site-refined .home-bento:not(.is-secondary) #home-tools-folder { grid-column: 3; }
  body.site-refined .home-bento:not(.is-secondary) > .hero #mobile-music-dock .music-dock-wrap {
    --mw-cover: 104px; --mw-gap: 10px; --mw-btn: 32px; --mw-play: 42px;
    width: 100%; height: 100%; min-height: 0; padding: 18px 20px; border-radius: 20px;
  }
  body.site-refined .home-bento:not(.is-secondary) > .hero #mobile-music-dock .music-dock {
    height: 100%; grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 28px minmax(80px, 1fr) 48px 42px 16px;
    grid-template-areas: "tools" "cover" "copy" "controls" "bar";
    gap: 6px; align-items: center;
  }
  body.site-refined .home-bento:not(.is-secondary) > .hero #mobile-music-dock .music-dock-stage { justify-self: center; align-self: center; }
  body.site-refined .home-bento:not(.is-secondary) > .hero #mobile-music-dock .music-dock-tools { justify-self: end; }
  body.site-refined .home-bento:not(.is-secondary) > .hero #mobile-music-dock .music-dock-copy { text-align: center; min-height: 0; padding: 0; }
  body.site-refined .home-bento:not(.is-secondary) > .hero #mobile-music-dock .music-dock-title { font-size: 16px; line-height: 22px; text-align: center; }
  body.site-refined .home-bento:not(.is-secondary) > .hero #mobile-music-dock :is(.music-dock-note,.music-dock-lyric:not([hidden])) { font-size: 11px; line-height: 18px; text-align: center; }
  body.site-refined .home-bento:not(.is-secondary) > .hero #mobile-music-dock .music-dock-controls { position: relative; justify-content: center; gap: 16px; }
  body.site-refined .home-bento:not(.is-secondary) > .hero #mobile-music-dock .music-dock-favorite { position: absolute; left: 0; margin: 0; }
  body.site-refined .home-bento:not(.is-secondary) > .hero #mobile-music-dock .music-dock-visualizer { display: none; }
  body.site-refined .home-bento:not(.is-secondary) > .hero .hero-visual :is(.hot-board,.hero-lyrics) {
    position: absolute; inset: 0; height: 100%; min-height: 0; padding: 16px; border-radius: 20px;
  }
  body.site-refined .home-bento:not(.is-secondary) > .hero .hero-visual .hot-board { gap: 8px; }
  body.site-refined .home-bento:not(.is-secondary) > .hero .hot-board-source-card { flex: 1; min-height: 0; padding: 8px; }
  body.site-refined .home-bento:not(.is-secondary) > .hero .hot-board-source-head { position: static; height: 32px; min-height: 32px; justify-content: flex-start; }
  body.site-refined .home-bento:not(.is-secondary) > .hero .hot-board-source-copy { display: block; }
  body.site-refined .home-bento:not(.is-secondary) > .hero .hot-board-source-copy p { font-size: 9px; }
  body.site-refined .home-bento:not(.is-secondary) > .hero .hot-board-list .hot-board-item:first-child { padding-right: 0; }
  body.site-refined .home-bento:not(.is-secondary) > .hero .hot-board-item { min-height: 35px; padding-block: 8px; }
  body.site-refined .home-bento:not(.is-secondary) > .hero .hot-board-updated { max-width: 118px; font-size: 9px; }
  body.site-refined .home-bento:not(.is-secondary) > .hero .hot-board-rotate { top: 14px; right: 14px; }
  body.site-refined .home-bento:not(.is-secondary) .bento-directory-panel { grid-row: 4; margin-top: 0; padding-top: 24px; border-top: 1px solid var(--ref-line); }
  body.site-refined .home-bento:not(.is-secondary) .bento-directory-panel .collection-heading h2 { font-size: 25px; letter-spacing: -.035em; }
  body.site-refined .home-bento:not(.is-secondary) .bento-directory-panel .collection-heading > p { font-size: 12px; max-width: 300px; }
  body.site-refined .home-bento:not(.is-secondary) .bento-directory-panel .module-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 124px;
    gap: 12px;
  }
  body.site-refined .home-bento:not(.is-secondary) .bento-directory-panel .module-grid .module-card {
    display: grid;
    min-height: 124px;
    height: 124px;
    padding: 16px;
    grid-template-columns: 34px minmax(0, 1fr);
    grid-template-rows: 34px minmax(28px, 1fr) 12px;
    gap: 6px 10px;
    align-content: start;
  }
  body.site-refined .home-bento:not(.is-secondary) .bento-directory-panel .module-grid .module-icon { width: 34px; height: 34px; grid-column: 1; grid-row: 1; }
  body.site-refined .home-bento:not(.is-secondary) .bento-directory-panel .module-grid .module-name {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    padding-right: 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    white-space: normal;
  }
  body.site-refined .home-bento:not(.is-secondary) .bento-directory-panel .module-grid .module-card-description {
    display: -webkit-box;
    grid-column: 1 / -1;
    grid-row: 2;
    min-height: 0;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  body.site-refined .home-bento:not(.is-secondary) .bento-directory-panel .module-grid .module-count { grid-column: 1 / -1; grid-row: 3; font-size: 10px; }
  body.site-refined .home-bento:not(.is-secondary) .bento-directory-panel .module-grid .module-card::after { top: 17px; right: 12px; font-size: 11px; }
}
@media (max-width: 1199px) {
  body.site-refined .home-bento:not(.is-secondary) > .hero {
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:20px;
  }
}
@media (min-width: 721px) and (max-width: 1199px) {
  body.site-refined .page-shell { width: min(calc(100% - 40px), 580px); }
  body.site-refined .site-header { width: 100%; max-width: 580px; margin-inline: auto; }
  body.site-refined .page-shell > main { width: 100%; max-width: none; padding: 24px 0 40px; }
  body.site-refined .home-bento { width: 100%; }
  body.site-refined .home-bento:not(.is-secondary) > .hero { padding: 0; margin: 0 0 20px; }
  body.site-refined .home-bento:not(.is-secondary) > .hero .hero-text { padding: 0; margin: 0; max-width: none; }
  body.site-refined .bento-player-panel { display: flex; flex-direction: column; gap: 12px; padding: 0; border: 0; background: transparent; }
  body.site-refined .bento-player-panel .bento-panel-heading { display: none; }
  body.site-refined .bento-player-panel .hero-tools-row { width: 100%; max-width: none; margin: 0; }
  body.site-refined .bento-player-panel #mobile-music-dock { width: 100%; margin: 0; }
  body.site-refined #center-search-slot #hero-search .search-box { height: 52px; border: 1px solid var(--ref-line); border-radius: 15px; background: var(--ref-surface); }
  body.site-refined .bento-player-panel .hero-visual { width: 100%; height: 305px; min-height: 305px; margin: 16px 0 0; aspect-ratio: auto; }
  body.site-refined .bento-player-panel .hero-visual :is(.hot-board,.hero-lyrics) { height: 305px; min-height: 305px; padding: 16px; border: 1px solid var(--ref-line); border-radius: 18px; background: var(--ref-surface); }
  body.site-refined .bento-directory-panel { margin-top: 28px; }
  body.site-refined .bento-directory-panel .module-grid { grid-template-columns: repeat(2,minmax(0,1fr)); grid-auto-rows: 124px; gap: 12px; }
  body.site-refined .bento-directory-panel .module-grid .module-card { height: 124px; min-height: 124px; padding: 14px; }
}
@media (max-width: 720px) {
  body.site-refined main { width: min(calc(100% - 32px), var(--max-width)); }
  body.site-refined .home-bento > .hero { padding-top: 24px; }
  body.site-refined .home-bento > .hero .eyebrow { margin-bottom: 12px; font-size: 8px; }
  body.site-refined .home-bento > .hero #hero-display { font-size: 34px; line-height: 1.08; letter-spacing: -.04em; }
  body.site-refined .home-bento > .hero #hero-display-lead { font-size: .67em; }
  body.site-refined .home-bento > .hero #hero-subtitle { margin-top: 12px; font-size: 13px; line-height: 1.6; }
  body.site-refined #center-search-slot #hero-search .search-box { height: 50px; border-radius: 14px; background: var(--ref-surface); box-shadow: var(--atlas-shadow); }
  body.site-refined .bento-player-panel #mobile-music-dock .music-dock-wrap { min-height: 126px; padding: 14px 12px; border-radius: 18px; }
  body.site-refined .bento-player-panel .hero-visual { margin-top: 12px; }
  body.site-refined .bento-player-panel .hero-visual :is(.hot-board,.hero-lyrics) {
    height: 272px;
    min-height: 272px;
    border: 1px solid var(--ref-line);
    border-radius: 18px;
    background: var(--ref-surface);
    box-shadow: var(--atlas-shadow);
  }
  body.site-refined .bento-player-panel .hero-visual .hot-board { padding: 12px; }
  body.site-refined .bento-directory-panel { margin-top: 24px; }
  body.site-refined .bento-directory-panel .collection-heading h2 { font-size: 23px; }
  body.site-refined .bento-directory-panel .collection-heading > p { display: none; }
  body.site-refined .bento-directory-panel .module-grid { grid-template-columns: repeat(2,minmax(0,1fr)); grid-auto-rows: 112px; gap: 10px; }
  body.site-refined .bento-directory-panel .module-grid .module-card {
    display: grid;
    min-height: 112px;
    height: 112px;
    padding: 12px;
    grid-template-columns: 30px minmax(0,1fr);
    grid-template-rows: 30px minmax(28px,1fr) 12px;
    gap: 5px 8px;
    border-radius: 15px;
  }
  body.site-refined .bento-directory-panel .module-grid .module-icon { width: 30px; height: 30px; grid-column: 1; grid-row: 1; border-radius: 10px; }
  body.site-refined .bento-directory-panel .module-grid .module-name { grid-column: 2; grid-row: 1; align-self: center; padding-right: 6px; font-size: 12px; line-height: 1.25; }
  body.site-refined .bento-directory-panel .module-grid .module-card-description { display: -webkit-box; grid-column: 1/-1; grid-row: 2; overflow: hidden; font-size: 10.5px; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  body.site-refined .bento-directory-panel .module-grid .module-count { grid-column: 1/-1; grid-row: 3; font-size: 9px; }
  body.site-refined .bento-directory-panel .module-grid .module-card::after { top: 13px; right: 9px; }
  html[data-mobile-module-layout="single"] body.site-refined .bento-directory-panel .module-grid { grid-template-columns: minmax(0,1fr); }
}
@media (prefers-reduced-motion: reduce) {
  body.site-refined .bento-directory-panel .module-grid .module-card { transition: none; }
  body.site-refined .bento-directory-panel .module-grid .module-card:hover { transform: none; }
}
