.comp-line { margin-top: 4px; color: #9ad0ff; cursor: help; }
.town-screen .comp-panel { border: 1px solid #a28149; padding: 9px; }
.town-screen .comp-tabs { display: flex; gap: 8px; }
.town-screen .comp-tabs .btn { flex: 1; }
.town-screen .comp-layout { display: grid; grid-template-columns: 31% minmax(0, 1fr); flex: 1; min-height: 0; gap: 10px; }
.town-screen .comp-roster { display: grid; grid-auto-rows: minmax(44px, 1fr); min-height: 0; gap: 7px; }
.town-screen .comp-choice { padding: 5px; justify-content: flex-start; text-align: left; min-height: 0; }
.town-screen .comp-choice > .character-art { width: 62px; height: 62px; flex: 0 0 62px; }
.town-screen .comp-choice > span { min-width: 0; }
.town-screen .comp-choice b, .town-screen .comp-choice small { display: block; }
.town-screen .comp-choice b { font-size: 16px; }
.town-screen .comp-choice small { font-size: 13px; margin-top: 4px; }
.town-screen .comp-detail { display: grid; grid-template-columns: 42% minmax(0, 1fr); min-height: 0; border: 1px solid #b18a49; }
.town-screen .comp-info { display: flex; flex-direction: column; gap: 8px; padding: 12px; min-height: 0; }
.town-screen .comp-info h3 { font-size: 22px; }
.town-screen .comp-info > .city-reader { flex: 1; font-size: 16px; }
.town-screen .comp-actions { display: flex; flex-direction: column; gap: 8px; flex: 0 0 auto; }
.town-screen .comp-actions .btn { font-size: 18px; min-height: 50px; }
.town-screen .comp-rank { color: #e8b44a; letter-spacing: 4px; font-size: 20px; }
body[data-mobile='true'] .town-screen .comp-panel { padding: 5px; gap: 6px; }
body[data-mobile='true'] .town-screen .comp-layout { display: flex; }
body[data-mobile='true'] .town-screen .comp-roster { display: none; }
body[data-mobile='true'] .town-screen .comp-detail { flex: 1; grid-template-columns: 40% minmax(0, 1fr); }
body[data-mobile='true'] .town-screen .comp-info { padding: 8px; gap: 6px; }
body[data-mobile='true'] .town-screen .comp-info h3 { font-size: 18px; }
body[data-mobile='true'] .town-screen .comp-info p, body[data-mobile='true'] .town-screen .comp-info > .city-reader { font-size: 13px; }
body[data-mobile='true'] .town-screen .comp-rank { font-size: 17px; letter-spacing: 2px; }
body[data-mobile='true'] .town-screen .comp-actions .btn { font-size: 15px; min-height: 44px; }
@container city (max-height: 370px) {
  #tab-loc .town-screen .comp-panel { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 44px minmax(0, 1fr) 44px; gap: 4px; padding: 4px; }
  #tab-loc .town-screen .comp-tabs { gap: 4px; }
  #tab-loc .town-screen .comp-layout { grid-column: 1 / -1; display: flex; }
  #tab-loc .town-screen .comp-roster { display: none; }
  #tab-loc .town-screen .comp-detail { flex: 1; grid-template-columns: 18% minmax(0, 1fr); }
  #tab-loc .town-screen .comp-info { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 8px; padding: 5px; }
  #tab-loc .town-screen .comp-info h3 { font-size: 15px; }
  #tab-loc .town-screen .comp-info .city-icon, #tab-loc .town-screen .comp-rank { display: none; }
  #tab-loc .town-screen .comp-info > p { font-size: 12px; }
  #tab-loc .town-screen .comp-info > .city-reader { grid-column: 1; font-size: 12px; }
  #tab-loc .town-screen .comp-actions { grid-column: 2; grid-row: 2 / 5; align-self: end; flex-direction: row; gap: 4px; }
  #tab-loc .town-screen .comp-actions .btn { min-height: 44px; font-size: 13px; flex: 1; padding: 4px; }
  #tab-loc .town-screen .comp-panel > .city-note { min-width: 0; }
  #tab-loc .town-screen .comp-panel > .city-note summary { font-size: 11px; }
}
