.realm-tabs { display: flex; gap: 8px; margin: 18px 0; }
.realm-tabs button { flex: 1; }
.realm-tabs [aria-selected=true] { background: #6E438F; border-color: #C69BE5; }
.realm-organisation { display: grid; grid-template-columns: minmax(0,1fr); gap: 8px; margin: 14px 0; }
.realm-organisation > label:first-child { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.realm-hub .realm-favourite, .realm-hub .realm-copy { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; margin: 0; line-height: 1; font-size: 27px; }
.realm-copy img { display: block; width: 24px; height: 24px; }
.realm-favourite[aria-pressed=true] { color: #F4D982; border-color: #CFAD60; }
.realm-category-label { font-size: 12px; color: #F3ABC9; margin: 3px 0 0; overflow-wrap: anywhere; }
.realm-limit { 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-weight: 400; font-variant-numeric: tabular-nums; white-space: nowrap; }
.realm-near-limit { color: #F1C478 !important; }
.realm-character-count { display: block; text-align: right; color: #BFA9CF; font-size: 11px; margin-top: 5px; }
.realm-category-row { display: flex; align-items: center; gap: 6px; margin: 12px 0; }
.realm-category-row span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.realm-list-entry { display: flex; gap: 10px; padding: 12px; margin-bottom: 12px; border: 1px solid #543366; border-radius: 8px; background: #191020; }
.realm-list-entry > button:first-child { flex: 1; min-width: 0; text-align: left; border: 0; background: transparent; padding: 4px; }
.realm-list-entry strong, .realm-list-entry span { display: block; overflow-wrap: anywhere; }
.realm-list-entry span { font-size: 12px; color: #CDB8D9; margin-top: 6px; }
.realm-checklist-item { border: 1px solid #543366; border-radius: 8px; background: #191020; padding: 14px; margin: 12px 0; }
.realm-checklist-item > label { display: flex; align-items: center; gap: 10px; min-height: 32px; }
.realm-checklist-item strong, #realm-lists-content h2 { overflow-wrap: anywhere; min-width: 0; }
.realm-checklist-item p { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; color: #CDB8D9; margin: 10px 0; }
.realm-checklist-item .realm-actions { margin-top: 10px; }
.realm-checklist-item .realm-item-actions { display: flex; flex-wrap: nowrap; gap: 6px; }
.realm-item-actions button { min-height: 40px; padding: 8px; font-size: 12px; white-space: nowrap; }
.realm-list-summary { padding: 14px; border: 1px solid #543366; border-radius: 8px; background: #191020; box-shadow: inset 3px 0 #9864BF; }
.realm-list-summary .realm-section-heading { margin: 0 0 14px; flex-wrap: nowrap; align-items: flex-start; }
.realm-list-summary .realm-section-heading button { flex-shrink: 0; }
.realm-list-summary > .realm-note, .realm-list-summary > button { margin-bottom: 14px; }
.realm-list-summary > .realm-quantity-summary { margin-bottom: 0; }
.realm-section-heading h3 { display: flex; align-items: center; gap: 8px; }
#realm-planner-status:empty, #realm-plan-status:empty { display: none; }
.realm-dialog textarea { resize: vertical; width: 100%; max-width: 100%; box-sizing: border-box; }
.realm-dialog label { line-height: 1.5; }
.realm-dialog .realm-select { margin-top: 6px; }
.realm-location { display: grid; grid-template-columns: minmax(0,1fr) 78px; gap: 0 10px; }
.realm-location-heading { display: contents; }
.realm-location-heading h3 { grid-column: 1; grid-row: 1; margin: 0 0 6px; }
.realm-location-tags { grid-column: 2; grid-row: 1 / span 2; text-align: right; line-height: 1.4; padding-bottom: 6px; }
.realm-location-tools { grid-column: 2; grid-row: 3 / span 2; display: flex; flex-direction: column; align-items: end; gap: 8px; }
.realm-location > .realm-coordinates, .realm-location > .realm-note, .realm-location > .realm-metadata { grid-column: 1; }
.realm-location > .realm-coordinates { grid-row: 2; margin: 0 0 6px; min-height: 0; align-items: start; gap: 6px 12px; }
.realm-location > .realm-actions { grid-column: 1 / -1; margin-top: 4px; }
.realm-converted-coordinate { color: #FFF; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .app-progress::-webkit-progress-value { transition: none; } }
.realm-quantity-summary { margin: 12px 0; font-size: 13px; }
.realm-quantity-summary progress { width: 100%; display: block; height: 8px; margin-top: 8px; accent-color: var(--theme-color); }
.realm-completed { margin: 20px 0; }
.realm-completed summary { cursor: pointer; padding: 12px 0; color: #D5BCE5; }
.realm-coordinates { user-select: text; -webkit-user-select: text; }
.realm-organisation select[hidden], #realm-lists-panel[hidden], #realm-locations-panel[hidden], #realm-plan-quantities[hidden] { display: none; }
#realm-plan-status { color: #F1C478; font-size: 13px; margin-top: 12px; }
#realm-categories-content [data-plan-action="category-delete"] { color: #FF7B72; background: #342023; border: 1px solid #694349; }
