/* Universe selection inherits the app's graphite / amber theme. */
.hub-verse-switch { display: flex; align-items: center; gap: 6px; max-width: 100%; min-height: 36px; padding: 0; border: 0; background: transparent; color: var(--text); cursor: pointer; text-align: left; }
.hub-verse-switch .hub-verse { color: inherit; }
.hub-verse-switch > svg { width: 14px; height: 14px; flex: 0 0 auto; fill: none; stroke: var(--accent-hi); stroke-width: 1.8; }
#universe-gate { background: rgba(5,6,8,.78) !important; padding: 16px; }
#universe-gate .universe-gate-sheet { display: flex; flex-direction: column; width: min(100%, 460px); max-width: 460px; max-height: min(86dvh, 840px); padding: 24px 0 0 !important; border-radius: 16px !important; border: 0 !important; background: var(--bg-card) !important; box-shadow: var(--shadow-deep); overflow: hidden; animation: none; }
.universe-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 24px; flex-shrink: 0; }
.universe-heading h2 { margin: 0; font: 700 26px/1.2 var(--font-body); letter-spacing: -.025em; color: var(--text); }
#universe-close { width: 40px; height: 40px; padding: 10px; flex-shrink: 0; color: var(--text-sub); background: var(--bg-card-2); border: 0; border-radius: 12px; cursor: pointer; }
#universe-close[hidden] { display: none; }
.universe-heading svg, .universe-search svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
#universe-description { margin: 10px 24px 20px; color: var(--text-sub); font: 400 14px/1.5 var(--font-body); flex-shrink: 0; }
.universe-search { display: flex; align-items: center; gap: 10px; margin: 0 24px; padding: 0 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-app); color: var(--text-sub); flex-shrink: 0; }
.universe-search input { width: 100%; min-width: 0; height: 44px; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; color: var(--text); font: 400 16px var(--font-body); caret-color: var(--accent-hi); }
.universe-search input::placeholder { color: var(--text-sub); opacity: 1; }
#universe-status { padding: 12px 24px 8px; min-height: 34px; font: 400 12px/1.5 var(--font-body); color: var(--text-sub); flex-shrink: 0; }
#universe-gate-list { display: flex; flex-direction: column; gap: 0; min-height: 88px; overflow-y: auto; overscroll-behavior: contain; padding: 0 12px 8px; scrollbar-width: thin; scrollbar-color: var(--text-sub) var(--bg-card); }
.universe-row { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 88px; padding: 12px; background: transparent; border: 0; border-radius: 12px; color: var(--text); text-align: left; cursor: pointer; flex-shrink: 0; }
.universe-row:hover { background: var(--bg-hover); }
.universe-row[aria-pressed="true"] { background: var(--accent-soft); }
.universe-cover { width: 54px; height: 64px; flex-shrink: 0; overflow: hidden; border-radius: 8px; background: var(--bg-card-2); display: grid; place-items: center; color: var(--text-sub); }
.universe-cover img { width: 100%; height: 100%; object-fit: cover; }
.universe-cover > svg { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 1; }
.universe-row-copy { flex: 1; min-width: 0; }
.universe-row-copy strong { display: block; font: 600 15px/1.3 var(--font-body); overflow-wrap: anywhere; }
.universe-row-copy > span { display: block; margin-top: 6px; color: var(--text-sub); font: 400 12px/1.5 var(--font-body); font-variant-numeric: tabular-nums; }
.universe-row-copy em { display: block; font-style: normal; color: var(--accent-hi); }
.universe-radio { width: 22px; height: 22px; border: 1px solid var(--text-sub); border-radius: 50%; flex-shrink: 0; }
[aria-pressed="true"] > .universe-radio { border-color: var(--accent); background: var(--accent); color: #16130c; }
.universe-radio svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.universe-footer { padding: 16px 24px max(20px, env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: var(--bg-card); flex-shrink: 0; }
#universe-selection { margin: 0 0 10px; font: 600 14px/1.4 var(--font-body); color: var(--text); overflow-wrap: anywhere; }
#universe-confirm, .universe-retry { width: 100%; min-height: 48px; padding: 12px 16px; border: 0; border-radius: 12px; font: 600 15px/1.4 var(--font-body); background: var(--accent); color: #16130c; cursor: pointer; }
#universe-confirm:disabled { background: var(--bg-card-2); color: var(--text-sub); cursor: default; }
.universe-footer small { display: block; margin-top: 10px; color: var(--text-sub); font: 400 12px/1.5 var(--font-body); }
#universe-gate :focus-visible, .hub-verse-switch:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; }
#universe-gate ::selection { background: var(--accent); color: #16130c; }
#universe-gate button:disabled { cursor: default; }
@media (max-width: 480px) {
    #universe-gate { padding: max(12px, env(safe-area-inset-top)) 0 0; }
    #universe-gate.open { align-items: flex-end; }
    #universe-gate .universe-gate-sheet { width: 100%; max-width: none; max-height: min(86dvh, 800px); border-radius: 16px 16px 0 0 !important; }
    .universe-heading { padding: 0 20px; }
    #universe-description { margin-inline: 20px; }
    .universe-search { margin-inline: 20px; }
    .universe-footer { padding-inline: 20px; }
}
@media (max-height: 540px) {
    #universe-gate .universe-gate-sheet { max-height: calc(100dvh - 16px); padding-top: 8px !important; }
    .universe-heading h2 { font-size: 20px; }
    #universe-description { margin-block: 4px 8px; font-size: 12px; }
    #universe-status { padding-block: 4px; min-height: 26px; }
    #universe-gate-list { min-height: 0; flex: 1 1 auto; }
    .universe-footer { padding-block: 8px max(8px, env(safe-area-inset-bottom)); }
    #universe-selection { margin-bottom: 4px; }
    .universe-footer small { margin-top: 4px; font-size: 11px; }
}
