/* New components reuse the site's surfaces, type and buttons. Each layout rule
   is scoped to its feature class; disabling a flag restores the original UI. */
.story .scene-divider { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 26px 0 14px; padding: 9px 12px; border-top: 1px solid #cdd7cb; border-radius: 0 0 8px 8px; background: #edf0e7; color: #53624f; font-family: Arial, sans-serif; font-size: 13px; line-height: 1.5; }
.scene-divider-hero { font-weight: 700; }
.scene-divider-place { color: #71816b; overflow-wrap: anywhere; min-width: 0; }
.scene-divider .entity-mention { font: inherit; color: inherit; }
html[data-theme="dark"] .story .scene-divider { background: #1b2b22; border-color: #344239; color: #b1c1a8; }
html[data-theme="dark"] .scene-divider-place { color: #96a59a; }
.world-library { margin-top: 52px; }
.world-library h3 { margin: 8px 0 0; }
.world-library .section-line { align-items: end; flex-wrap: wrap; gap: 12px; }
.world-library-filters { display: flex; gap: 12px; margin: 22px 0; }
.world-library-filters select { width: 260px; flex-shrink: 0; margin: 0; }
.world-library-filters input { max-width: 440px; margin: 0; }
.world-grid .card-art { height: 145px; }
.world-excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.6; }
.world-library-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.world-premise { line-height: 1.8; }
.scene-strip { display: flex; justify-content: space-between; gap: 12px; padding: 10px 28px; border-bottom: 1px solid #d9dfd5; font-size: 13px; line-height: 1.4; flex-shrink: 0; }
.scene-strip > div { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; min-width: 0; }
.scene-strip .scene-place, .scene-strip .scene-fact { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: min(100%, 44ch); }
.scene-strip .scene-fact { max-width: min(100%, 32ch); }
.scene-strip .eyebrow { font-family: inherit; font-size: 11px; letter-spacing: .08em; }
.scene-strip button { flex-shrink: 0; }
html[data-theme="dark"] .scene-strip { border-color: #344239; }
.ui-story-layout .story-turn.player { padding: 14px 20px; border: 1px solid var(--player-line); border-left-width: 4px; border-radius: 12px; background: var(--player-wash); }
.ui-story-layout .story-turn.player .story { font-family: inherit; font-size: 15px; line-height: 1.6; }
.ui-story-layout .story-turn.player .story-head { margin-bottom: 8px; }
.ui-story-layout .story-turn.player .story p:last-child { margin-bottom: 0; }
html[data-theme="dark"] .ui-story-layout .story-turn.player { background: var(--player-wash); border-color: var(--player-line); }
.ui-story-layout .story-turn.player .story,
.ui-story-layout .story-turn.player .story-head { color: var(--player-ink); }
.ui-story-layout .scene-art { max-width: 380px; margin: 18px 0; }
.ui-story-layout .scene-art img { max-height: 220px; object-fit: contain; cursor: zoom-in; }
.compose-context { margin: 0 0 6px; }
.compose-context button { font-size: 11px; padding: 6px 0; }
.entity-mention { display: inline; font: inherit; line-height: inherit; color: inherit; padding: 0; margin: 0; border: 0; border-bottom: 1px dotted #83b79b; border-radius: 0; background: transparent; text-align: inherit; }
.entity-mention:hover { text-decoration: underline; background: transparent; }
.entity-picker-list { display: grid; gap: 12px; margin-top: 12px; padding: 4px; max-height: 48dvh; overflow-y: auto; }
.entity-picker-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 92px), 1fr)); gap: 8px; margin-bottom: 12px; }
.entity-picker-tabs button { min-width: 0; min-height: 44px; padding: 10px 8px; font-size: 13px; }
.entity-picker-tabs [aria-selected="true"] { background: #dae7d9; border-color: #83b79b; }
html[data-theme="dark"] .entity-picker-tabs [aria-selected="true"] { background: #314739; }
.entity-picker-list button { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; text-align: left; min-height: 48px; padding: 12px 16px; }
.entity-picker-list button > span { flex: 1 1 140px; min-width: 0; overflow-wrap: break-word; }
.entity-picker-list button > small { flex-shrink: 0; }
.entity-detail { line-height: 1.7; }
dialog.entity-drawer .modal-head h2 { overflow-wrap: anywhere; }
.entity-description { overflow-wrap: anywhere; margin: 20px 0; }
dialog.entity-drawer { margin: 0 0 0 auto; width: min(440px, 100%); height: 100dvh; max-height: 100dvh; border-radius: 0; }
.turn-changes { margin-top: 18px; border-top: 1px solid #d9dfd5; padding-top: 12px; font: 12px/1.6 system-ui, sans-serif; }
.turn-changes summary { cursor: pointer; color: #7d8b77; }
.turn-changes ul { margin: 12px 0; padding-left: 20px; }
.turn-changes li { margin-bottom: 5px; }
html[data-theme="dark"] .turn-changes { border-color: #344239; }
html[data-theme="dark"] .turn-changes summary { color: #96a59a; }
.reading-mode .scene-strip { display: none; }
.solo-table-chat summary { cursor: pointer; font-size: 13px; }
.solo-table-chat > .table-chat { border: 0; padding: 12px 0 0; }
@media (max-width: 750px), (max-width: 950px) and (max-height: 500px) and (pointer: coarse) {
  .world-library { margin-top: 36px; }
  .world-library-filters { flex-direction: column; }
  .world-library-filters select, .world-library-filters input { width: 100%; max-width: none; }
  .world-library .section-line small { font-size: 11px; }
  .ui-story-layout .chapter-bar { flex-wrap: wrap; }
  .ui-story-layout .chapter-bar > div:first-child { flex: 1 0 100%; }
  .ui-story-layout .chapter-tools { width: 100%; justify-content: space-between; }
  .scene-strip { padding: 8px 16px; font-size: 10px; gap: 6px; }
  .scene-strip button { font-size: 10px; padding: 4px; }
  .scene-strip .scene-place, .scene-strip .scene-fact { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: min(100%, 44ch); }
.scene-strip .scene-fact { max-width: min(100%, 32ch); }
.scene-strip .eyebrow { display: none; }
  .ui-story-layout .story-turn.player { padding: 12px; }
  .ui-story-layout .story-turn.player .story { font-size: 14px; }
  .compose-context button { min-height: 28px; }
  dialog.entity-drawer { inset: auto 0 0; margin: 0; width: 100%; height: auto; max-height: 85dvh; border-radius: 16px 16px 0 0; }
}
/* The catalogue opens only when creating a world. */
dialog.world-picker { width: min(1120px, calc(100% - 40px)); max-width: 1120px; max-height: 90dvh; }
.world-picker .world-library { margin-top: 30px; }
.world-picker .world-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.world-grid .card-art { position: relative; overflow: hidden; background: #293b33; }
.world-grid .card-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.world-grid .card-art .tag { position: absolute; top: 14px; left: 14px; }
.world-grid .card-body { padding: 20px; }
.world-grid .card-body h3 { font-size: 25px; }
.world-grid .card-body p { font-size: 13px; }
.custom-world { display: grid; grid-template-columns: 220px 1fr; overflow: hidden; border: 1px solid #d9dfd5; border-radius: 16px; }
.custom-world > img { width: 100%; height: 100%; min-height: 210px; object-fit: cover; }
.custom-world > div { padding: 24px; }
.custom-world h3 { margin: 8px 0; }
.custom-world p { margin: 10px 0 20px; }
.world-preview-art { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; border-radius: 12px; margin-bottom: 20px; }
html[data-theme="dark"] .custom-world { border-color: #344239; }
@media(max-width: 900px) { .world-picker .world-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media(max-width: 600px) {
  dialog.world-picker { width: calc(100% - 20px); max-height: 94dvh; }
  .world-picker .world-grid { grid-template-columns: minmax(0,1fr); }
  .custom-world { grid-template-columns: minmax(0,1fr); }
  .custom-world > img { min-height: 0; height: 140px; }
  .custom-world > div { padding: 20px; }
  .world-picker .world-library-filters select { width: 100%; }
}
/* Soft overlap at the join, using the surrounding surface colour. */
.lobby-hero .art { mask-image: linear-gradient(90deg, transparent, #000 18%); }
.custom-world { position: relative; background: #f4f2ec; }
.custom-world > div { position: relative; }
.custom-world > div::before { content: ""; position: absolute; inset: 0 auto 0 -50px; width: 50px; background: linear-gradient(90deg, transparent, #f4f2ec); pointer-events: none; }
html[data-theme="dark"] .custom-world { background: #17221e; }
html[data-theme="dark"] .custom-world > div::before { background: linear-gradient(90deg, transparent, #17221e); }
@media (max-width: 600px) {
  .custom-world > div::before { inset: -36px 0 auto; width: 100%; height: 36px; background: linear-gradient(180deg, transparent, #f4f2ec); }
  html[data-theme="dark"] .custom-world > div::before { background: linear-gradient(180deg, transparent, #17221e); }
}

html[data-cover] .world-grid .card-art { padding: 0; aspect-ratio: 16/9; background: #293b33; }
.world-grid .card-art::before, .world-grid .card-art::after { content: none; }
.world-grid .card-art img { position: absolute; inset: 0; }
html[data-cover] .world-grid .card-art { width: 100%; height: auto; }
.custom-world { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
.custom-world > img { grid-column: 2; grid-row: 1; min-height: 250px; }
.custom-world > div { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; justify-content: center; }
.custom-world button { align-self: flex-start; }
.custom-world > div::before { inset: 0 -70px 0 auto; width: 70px; z-index: 1; background: linear-gradient(90deg, #f4f2ec, transparent); }
html[data-theme="dark"] .custom-world > div::before { background: linear-gradient(90deg, #17221e, transparent); }
@media(max-width: 600px) {
  .custom-world { grid-template-columns: minmax(0,1fr); }
  .custom-world > div { grid-column: 1; grid-row: 1; }
  .custom-world > img { grid-column: 1; grid-row: 2; min-height: 0; height: 180px; }
  .custom-world > div::before { inset: auto 0 -36px; width: 100%; height: 36px; background: linear-gradient(180deg, #f4f2ec, transparent); }
  html[data-theme="dark"] .custom-world > div::before { background: linear-gradient(180deg, #17221e, transparent); }
}
/* Keep the illustrated header on the home page; the chooser stays compact. */
@media(min-width: 601px) {
  .world-picker .custom-world { grid-template-columns: minmax(0, 1fr) 210px; }
  .world-picker .custom-world > img { min-height: 0; height: 180px; }
  .world-picker .custom-world > div { padding: 20px 24px; }
  .world-picker .custom-world p { margin: 8px 0 14px; }
}
.lobby-hero.banner-immersive .art { mask-image: none; }

/* Keep a pending roll beside its narration instead of below a blank reading page. */
.story-turn.gm-latest.gm-with-check { min-height: 0; }

/* Mobile reading: context stays available in the existing menus. */
.mobile-room-controls, .scene-info { display: none; }
@media (max-width: 750px), (max-width: 950px) and (max-height: 500px) and (pointer: coarse) {
  .ui-story-layout .chapter-bar { flex-wrap: nowrap; padding: 8px 16px; }
  .ui-story-layout .chapter-bar > div:first-child { flex: 1; min-width: 0; }
  .ui-story-layout .chapter-tools { display: none; }
  .mobile-room-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 16px 0; }
  .scene-strip { padding: 0 12px 0 16px; min-height: 36px; align-items: center; }
  .scene-strip > div { flex: 1; flex-wrap: nowrap; overflow: hidden; }
  .scene-strip .scene-place { max-width: 100%; font-size: 11px; }
  .scene-strip .scene-fact { display: none; }
  .scene-strip .scene-info { display: block; min-width: 44px; min-height: 36px; font-size: 18px; padding: 4px; }
  .mobile-typing .chapter-bar, .mobile-typing .scene-strip { display: none; }
  .mobile-typing .chronicle { padding: 10px 16px; }
  .mobile-typing .composer { padding: 6px 10px max(6px, env(safe-area-inset-bottom)); }
}

/* Keep actions aligned across cards of different text lengths. */
.campaign-card { display: flex; flex-direction: column; }
.campaign-card .card-art { flex-shrink: 0; }
.campaign-card .card-body { display: flex; flex-direction: column; flex: 1; }
.campaign-card .card-body > button:first-of-type { margin-top: auto; }
.campaign-card .card-body > p { margin-bottom: 24px; }

/* Room cover: campaign title first; the full setting remains in its tooltip. */
.room-cover { overflow: hidden; min-height: 0; flex-shrink: 0; }
.room-cover h3 { flex-shrink: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; font-size: 21px; line-height: 1.2; }
.room-cover small { flex-shrink: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.room-cover .room-cover-setting { margin: 3px 0 5px; font-size: 10px; line-height: 1.35; }
/* Smaller laptops retain the same layout with less decorative whitespace. */
@media (min-width: 751px) and (max-width: 1440px), (min-width: 751px) and (max-height: 850px) {
  .room-top { height: 60px; padding-inline: 16px; }
  .room-layout { height: calc(100dvh - 60px); }
  .room-side { padding: 16px 12px; }
  .room-cover { height: 155px; padding: 14px; }
  .side-nav { margin-block: 16px; gap: 2px; }
  .side-nav button { padding: 9px 10px; }
  .room-party { padding: 16px 16px; }
  .room-party .panel-section { padding-bottom: 16px; margin-bottom: 16px; }
  .room-party .panel-section h3 { margin: 6px 0 12px; }
  .room-party .party-member { margin-block: 12px; }
  .ui-story-layout .chapter-bar { padding: 14px 24px; gap: 10px; flex-wrap: wrap; }
  .ui-story-layout .chapter-bar h2 { font-size: 23px; margin-top: 3px; }
  .ui-story-layout .chapter-tools { flex-wrap: wrap; gap: 8px; }
  .ui-story-layout .scene-strip { padding: 7px 24px; }
  .room-main .chronicle { padding: 20px 24px; }
  .room-main .composer { padding: 10px 24px 12px; max-height: 40%; }
  .room-main .compose-box { padding: 10px; gap: 6px 10px; }
  .room-main .compose-box textarea { min-height: 64px; }
  .room-main .compose-bottom { margin-top: 3px; }
  .room-main .preparation-notice { padding: 12px; margin-bottom: 10px; }
}
@media (min-width: 1151px) and (max-width: 1440px) {
  .room-layout { grid-template-columns: 200px minmax(360px, 1fr) 230px; }
  .room-top .campaign-label b { max-width: 24ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .room-top .brand { gap: 8px; }
  .room-top .brand-name { font-size: 16px; }
}

/* Social status stays beside the action draft; mobile chat has its own viewport. */
.composer-social { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; flex-shrink: 0; }
.partner-status { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11px; line-height: 22px; color: #71816b; }
html[data-theme="dark"] .partner-status { color: #b1c1a8; }
.table-chat-open { flex-shrink: 0; min-height: 32px; padding: 5px 10px; }
.table-chat-unread { display: inline-block; border-radius: 10px; background: #83b79b; color: #14241b; padding: 1px 5px; font-size: 10px; }
.table-chat-unread[hidden] { display: none; }
dialog.chat-popup { width: min(480px, calc(100% - 24px)); height: min(640px, 85dvh); max-height: 85dvh; }
.chat-popup #modal-body, .chat-popup .modal-inner { height: 100%; min-height: 0; }
.chat-popup .modal-inner { display: flex; flex-direction: column; box-sizing: border-box; }
.chat-popup .modal-head { flex-shrink: 0; }
.chat-popup .table-chat { flex: 1; min-height: 0; display: flex; flex-direction: column; border: 0; padding: 0; }
.chat-popup .chat-messages { flex: 1; min-height: 0; max-height: none; overscroll-behavior: contain; }
.chat-popup .chat-form { flex-shrink: 0; }
.chat-popup .chat-form textarea { font-size: 16px; }
@media (max-width: 750px), (max-width: 950px) and (max-height: 500px) and (pointer: coarse) {
  dialog.chat-popup { height: min(640px, calc(var(--room-viewport-height, 100dvh) * .9)); max-height: calc(var(--room-viewport-height, 100dvh) * .9); }
  .chat-popup .modal-inner { padding: 16px; }
  .chat-popup .modal-head { margin-bottom: 12px; }
  .chat-popup .modal-head h2 { font-size: 24px; }
  .composer-social { margin-bottom: 2px; }
  .composer .table-chat-open { font-size: 12px; min-height: 36px; }
}

/* Starting gear is confirmed alongside the hero, separate from cosmetic facts. */
.hero-starting-inventory { margin: 1.4rem 0; padding: 1rem; border: 1px solid var(--line, #60766a); border-radius: 16px; }
.hero-starting-inventory h3 { margin: 0 0 .65rem; }
.inventory-row { display: grid; grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr) auto; gap: .5rem; margin: .65rem 0; align-items: start; }
.inventory-row input { min-width: 0; width: 100%; }
.inventory-row button { min-height: 44px; }
@media (max-width: 600px) {
  .inventory-row { grid-template-columns: minmax(0, 1fr) 66px 44px; }
  .inventory-description { grid-column: 1 / -1; grid-row: 2; }
  .hero-starting-inventory { padding: .75rem; }
}

/* Activity persists per player and is visible before opening a campaign. */
.campaign-activity { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0; }
.campaign-activity:empty { display: none; }
.campaign-activity .campaign-unread, .campaign-activity .campaign-attention { display: inline-flex; align-items: center; width: auto; padding: 6px 10px; margin: 0; min-height: 32px; border: 1px solid #b7c7b0; border-radius: 10px; background: #e5eee0; color: #32543e; font-size: 12px; line-height: 1.3; box-shadow: none; }
.campaign-activity .campaign-attention { background: #eee2bd; border-color: #c8b079; color: #59471c; font-weight: 600; }
html[data-theme="dark"] .campaign-activity .campaign-unread { background: #243d2e; border-color: #4d6b58; color: #c5dbbf; }
html[data-theme="dark"] .campaign-activity .campaign-attention { background: #443d26; border-color: #8e7a41; color: #edcf8e; }

/* Draft tools remain visible when the mobile keyboard is open. */
.composer-social .compose-context { margin: 0; flex-shrink: 0; }
.composer-social .compose-context button { min-height: 36px; padding: 6px 8px; }
@media (max-width: 750px), (max-width: 950px) and (max-height: 500px) and (pointer: coarse) {
  .composer-social { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 0 8px; }
  .composer-social .partner-status { grid-row: 1; grid-column: 1 / -1; font-size: 12px; }
  .composer-social .draft-expand { grid-row: 2; grid-column: 1; justify-self: start; min-height: 44px; }
  .composer-social .compose-context { grid-row: 2; grid-column: 2; }
  .composer-social .compose-context button, .composer-social .table-chat-open { min-height: 44px; font-size: 12px; }
  .composer-social .table-chat-open { grid-row: 2; grid-column: 3; }
}
@media (max-width: 950px) and (max-height: 500px) and (pointer: coarse) {
  #app.room-shell .room-top { height: 52px; min-height: 52px; max-height: 52px; }
  .room-top .campaign-label .brand, .room-top .campaign-label .sep,
  .room-top > .play-guide-link { display: none; }
  #app.room-shell .chapter-bar, #app.room-shell .scene-strip { display: none; }
  #app.room-shell .chronicle { padding: 8px 16px; }
  #app.room-shell .composer { padding: 6px 12px; max-height: calc(100% - 24px); }
  #app.room-shell .compose-box { padding: 8px; }
}

/* DM 2.0 compact layout: one opt-out class restores the previous room. */
.ui-compact-interface .room-side { padding: 16px 12px; }
.ui-compact-interface .room-cover { height: 148px; padding: 14px; }
.ui-compact-interface .side-nav { margin: 16px 0; gap: 4px; }
.ui-compact-interface .side-nav button { min-height: 44px; padding: 9px 12px; }
.ui-compact-interface .side-foot .scene-caption { display: none; }
.ui-compact-interface .room-party { padding: 16px; }
.ui-compact-interface .room-party .panel-section { padding-bottom: 16px; margin-bottom: 16px; }
.ui-compact-interface .room-party .party-member { margin-block: 12px; }
.ui-compact-interface .room-party .world-status { display: none; }
.ui-compact-interface .chapter-bar { padding: 12px 24px; gap: 8px; }
.ui-compact-interface .chapter-bar .eyebrow { display: none; }
.ui-compact-interface .chapter-bar h2 { margin: 0; font-size: clamp(18px, 2vw, 26px); overflow-wrap: anywhere; }
.ui-compact-interface .chronicle { padding: 18px 24px; }
.ui-compact-interface .composer { padding: 8px 24px 10px; }
.ui-compact-interface .compose-box { padding: 8px; gap: 6px 10px; }
.ui-compact-interface .compose-box textarea { min-height: 44px; }
.ui-compact-interface .busy-banner { padding: 10px 14px; font-size: 12px; }
.ui-compact-interface .pending-actions { padding: 8px 12px; }
.ui-compact-interface .partner-status:empty { display: none; }
@media (max-width: 1150px) and (min-width: 751px) {
  .ui-compact-interface .room-layout { grid-template-columns: 168px minmax(0, 1fr) 210px; }
  .ui-compact-interface .room-party { display: block; padding: 12px; }
  .ui-compact-interface .room-top .campaign-label b { max-width: 20ch; }
  .ui-compact-interface .room-top .brand-name { font-size: 15px; }
  .ui-compact-interface .room-top .brand-tag { display: none; }
}
@media (max-width: 750px), (max-width: 950px) and (max-height: 500px) and (pointer: coarse) {
  .ui-compact-interface .room-side, .ui-compact-interface .room-party { display: none; }
  .ui-compact-interface .room-layout { display: flex; }
  .ui-compact-interface .chapter-bar { padding: 6px 12px; }
  .ui-compact-interface .chapter-bar h2 { font-size: 15px; }
  .ui-compact-interface .chapter-tools { display: none; }
  .ui-compact-interface .scene-strip { min-height: 32px; padding-inline: 12px; }
  .ui-compact-interface .chronicle { padding: 12px; }
  .ui-compact-interface .composer { padding: 6px 10px max(6px, env(safe-area-inset-bottom)); }
  .ui-compact-interface .composer-social { display: flex; flex-wrap: wrap; gap: 4px 6px; }
  .ui-compact-interface .partner-status { order: -1; flex-basis: 100%; font-size: 11px; line-height: 18px; }
  .ui-compact-interface .composer-social .table-chat-open { margin-left: auto; }
  .ui-compact-interface .composer-social button { min-height: 36px; }
  .ui-compact-interface .compose-box textarea { min-height: 44px; }
  .ui-compact-interface .compose-bottom small { display: none; }
  .mobile-typing .ui-compact-interface .partner-status { display: none; }
}
@media (max-width: 360px) {
  .ui-compact-interface .room-top { padding-inline: 6px; }
  .ui-compact-interface .mobile-room-actions button { min-width: 36px; padding: 6px; }
  .ui-compact-interface .composer-social button { padding-inline: 5px; font-size: 11px; }
}
@media (min-width: 751px) and (max-width: 1440px) {
  .ui-compact-interface .room-top > .play-guide-link { display: none; }
}

.world-around-entry .scene-info { display: block; min-width: 36px; min-height: 32px; }
.world-around-entry .scene-place[role="button"] { cursor: pointer; border-bottom: 1px dotted currentColor; }
.world-around-entry .scene-place:focus-visible { outline: 2px solid #83b79b; outline-offset: 3px; }
.around-group { margin: 20px 0; }
.around-group h3 { font-size: 18px; margin: 0 0 10px; }
.around-cards, .around-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.around-cards button { border: 1px solid var(--line, #60766a); min-height: 44px; padding: 10px 14px; overflow-wrap: break-word; max-width: 100%; }
.world-around { overflow-wrap: anywhere; }
.around-update { padding: 10px; border: 1px solid #83b79b; border-radius: 10px; font-size: 13px; }
.around-update[hidden] { display: none; }
.wait-explore { white-space: nowrap; min-height: 32px; }
.busy-banner .wait-explore { margin-left: 8px; }
@media (max-width: 750px) { .around-tools button { min-height: 44px; } }

/* One local suggestion list, attached to the current textarea/dialog only. */
.mention-suggestions { position: fixed; z-index: 1100; overflow-y: auto; overscroll-behavior: contain; border: 1px solid #b7c7b0; border-radius: 12px; background: #f8f7f1; box-shadow: 0 8px 28px #0003; padding: 4px; box-sizing: border-box; }
.mention-suggestions button { display: flex; flex-direction: column; align-items: flex-start; text-align: left; width: 100%; min-height: 44px; padding: 10px 12px; gap: 4px; box-shadow: none; border: 0; overflow-wrap: break-word; }
.mention-suggestions button span { font-size: 13px; }
.mention-suggestions button small { font-size: 10px; font-weight: normal; line-height: 1.35; }
.mention-suggestions [aria-selected="true"] { background: #dae7d9; }
html[data-theme="dark"] .mention-suggestions { background: #1b2b22; border-color: #60766a; }
html[data-theme="dark"] .mention-suggestions [aria-selected="true"] { background: #314739; }

.entity-return { margin: 0 0 16px; color: #71816b; }
html[data-theme="dark"] .entity-return { color: #b1c1a8; }

.around-tools { margin-top: 20px; }
.around-tools [data-ui="prepare-draft"] { flex-basis: 100%; width: fit-content; flex-grow: 0; margin-top: 12px; }
