.home-shortcut-card .realm-symbol { width: 38px; height: 42px; }
.realm-hub { justify-content: flex-start; background: #08060B; }
.realm-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border-bottom: 1px solid #654080; flex-shrink: 0; background: #23132F; }
.realm-header h1 { color: #FCF3FF; letter-spacing: 0; font-size: 23px; }
.realm-eyebrow { font-size: 10px; color: #C9A6DF; }
.realm-header button { width: 42px; height: 42px; padding: 0; font-size: 24px; }
.realm-body { flex: 1; min-height: 0; overflow-y: auto; padding: 0 18px 24px; }
.realm-hub h2, .realm-dialog h2 { font-size: 19px; }
.realm-code-section { padding: 20px 0; border-bottom: 1px solid #463052; }
.realm-code-value { margin: 12px 0; overflow-wrap: anywhere; user-select: text; -webkit-user-select: text; font-family: monospace; font-size: 18px; }
.realm-actions, .realm-dialog-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.realm-hub button, .realm-dialog button { border: 1px solid #674783; border-radius: 8px; background: #30203F; color: #FBF3FF; padding: 10px 14px; font-size: 14px; }
.realm-hub .realm-back { display: grid; place-items: center; padding: 8px; }
.realm-back svg { width: 24px; height: 24px; fill: currentColor; }
.realm-hub .realm-primary, .realm-dialog .realm-primary { background: var(--theme-color); color: var(--theme-text-color); border-color: transparent; }
.realm-hub .realm-danger, .realm-dialog .realm-danger { color: #FFB4B4; background: #342023; border-color: #694349; }
.realm-section-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 20px 0 14px; }
.realm-section-heading h2 { display: flex; align-items: center; gap: 8px; }
#realm-location-count { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 26px; padding: 0 7px; border: 1px solid #76528C; border-radius: 6px; background: #30203F; color: #EDD8FF; font-size: 13px; font-variant-numeric: tabular-nums; }
#realm-location-count:empty { visibility: hidden; }
.realm-search-label, .realm-dialog label { display: block; font-size: 13px; color: #D1BEDD; margin: 12px 0 6px; }
.realm-hub input, .realm-hub select, .realm-dialog input, .realm-dialog select, .realm-dialog textarea { display: block; width: 100%; min-width: 0; border: 1px solid #61466F; border-radius: 6px; background: #110C18; color: #FFF; padding: 10px; font: inherit; font-size: 16px; min-height: 44px; }
.realm-dialog input, .realm-dialog select, .realm-dialog textarea { margin-top: 6px; }
#realm-location-list { display: grid; gap: 12px; }
.realm-location { padding: 16px; border: 1px solid #543366; border-radius: 8px; background: #191020; box-shadow: inset 3px 0 #9864BF; min-width: 0; }
.realm-location-heading { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.realm-location h3 { font-size: 17px; overflow-wrap: anywhere; }
.realm-dimension { font-size: 12px; color: #A7DBC0; }
.realm-dimension.nether { color: #D5A3FF; }
.realm-dimension.end { color: #E5DE9A; }
.realm-coordinates { display: flex; flex-wrap: wrap; gap: 8px 16px; font: 15px monospace; margin: 12px 0; overflow-wrap: anywhere; }
.realm-axis-x { color: #FF949F; }
.realm-axis-y { color: #9EDCB0; }
.realm-axis-z { color: #9ABFFF; }
.realm-note { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; font-size: 14px; }
.realm-metadata { font-size: 11px; line-height: 1.6; color: #BAA7C7; margin: 12px 0; }
#realm-status, #realm-editor-status, #realm-code-status { font-size: 13px; color: #E8CC9F; margin: 12px 0; overflow-wrap: anywhere; }
.realm-empty { padding: 24px 0; color: #BAA7C7; }
.realm-dialog { position: fixed; margin: auto; padding: 22px; width: min(440px, calc(100% - 28px)); max-height: calc(100dvh - 40px); overflow-y: auto; border: 1px solid #73508A; border-radius: 8px; background: #1D1327; color: #FFF; }
.realm-dialog::backdrop { background: #000B; backdrop-filter: blur(5px); }
.realm-dialog-actions { margin-top: 20px; justify-content: flex-end; }
.realm-coordinate-inputs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.realm-dialog .realm-coordinate-sign { width: 100%; min-height: 36px; margin-top: 6px; padding: 4px; font-size: 20px; }
#realm-coordinate-helper { font-size: 12px; color: #BAA7C7; margin-top: 10px; }
#app-confirm-body { margin-top: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.realm-hub button:focus-visible, .realm-dialog button:focus-visible { outline: 2px solid #FFF; outline-offset: 3px; }
.realm-select { min-width: 0; }
.realm-select select[hidden], .realm-select-options[hidden] { display: none; }
.realm-select .realm-select-trigger { width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: space-between; text-align: left; gap: 12px; font-size: 16px; font-weight: 400; background: #110C18; }
.realm-select-options { border: 1px solid #73508A; border-radius: 8px; padding: 4px; margin-top: 6px; background: #251632; display: grid; gap: 2px; }
.realm-select-options button { width: 100%; min-height: 44px; text-align: left; background: transparent; border-color: transparent; }
.realm-select-options button[aria-selected=true] { background: #513065; border-color: #A577C7; }
.realm-select-options button:focus-visible { outline-offset: -3px; }
.realm-portal-transition { position: fixed; inset: 0; z-index: 10000; pointer-events: auto; background: repeating-linear-gradient(90deg, #4D1F72D9 0 8%, #A652CEE6 9% 11%, #39134CEB 12% 20%); box-shadow: inset 0 0 90px 25px #190B2C; transform-origin: center; }
.realm-portal-transition::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 24px, #E0B1FF20 25px 27px, transparent 28px 52px); }
@media (prefers-reduced-motion: reduce) { .realm-portal-transition { display: none; } }
@media (prefers-reduced-motion: no-preference) {
    .realm-dialog[open] { animation: dialog-appear 160ms ease-out; }
    .realm-hub button:active, .realm-dialog button:active { transform: scale(.97); }
}
