/* UI refinement follows unslop by Damir Sokolovsky (@heydamir), CC BY 4.0.
   https://github.com/heydamir/unslop */
/* Shared Hall surfaces from the lab. Decorative art never sits behind copy. */
html[data-aim-local] .hall-gunwall { display: none !important; }
html[data-aim-local] :is(.hall-center, .pw, .rov, .st-view) {
  color: var(--rc-ink);
  background: var(--rc-paper);
  font-size: var(--rc-fs-15);
}
html[data-aim-local] :is(.hall-center, .st-view, .rov) { padding: var(--rc-space-6); }
html[data-aim-local] :is(.hall-center-head h1, .hall-board-head h1, .st-head h1, .pw-head h1) {
  color: var(--rc-ink);
  font: 700 var(--rc-fs-28)/var(--rc-lh-title) var(--rc-font-condensed) !important;
}
html[data-aim-local] :is(.hall-center-head p, .st-head p, .hall-field-text small) {
  color: var(--rc-slate);
  font-size: var(--rc-fs-13);
  line-height: var(--rc-lh-body);
}
html[data-aim-local] :is(.pw-diff, .aim-vt-card-difficulty) {
  border-radius: var(--rc-r-small) !important;
  color: var(--rc-ink) !important;
  border-color: var(--rc-rule) !important;
  background: transparent !important;
}
html[data-aim-local] :is(.hall-segment, .hall-choice-options, .hall-crosshair-tabs, .pw-shelf-tabs) {
  gap: 2px !important;
  padding: 2px !important;
  border: var(--rc-hairline);
  border-radius: var(--rc-r) !important;
  background: var(--rc-paper-raise) !important;
  box-shadow: none !important;
}
html[data-aim-local] :is(.hall-segment, .hall-choice-options, .hall-crosshair-tabs, .pw-shelf-tabs) :is(button, [role="button"]) {
  min-block-size: 40px;
  padding-inline: var(--rc-space-3);
  border-radius: var(--rc-r-small) !important;
  background: transparent;
  color: var(--rc-slate);
  font: 600 var(--rc-fs-15)/1.2 var(--rc-font-condensed) !important;
  box-shadow: none !important;
}
html[data-aim-local] :is(.hall-segment, .hall-choice-options, .hall-crosshair-tabs, .pw-shelf-tabs) button:is(.is-active, .is-on, [aria-pressed="true"]) {
  color: var(--rc-paper-raise) !important;
  background: var(--rc-ink) !important;
  box-shadow: none !important;
}
html[data-aim-local] :is(.st-search, .st-search-input, .st-preview-hint, .st-sens, .hall-dialog-note, .rov-empty) {
  border: var(--rc-hairline);
  border-radius: var(--rc-r-small) !important;
  background: var(--rc-paper-raise);
  box-shadow: none !important;
}
html[data-aim-local] .rov-empty { padding: var(--rc-space-12) var(--rc-space-4); }
html[data-aim-local] .rov-empty-acts {
  flex-wrap: wrap;
  justify-content: center;
}
html[data-aim-local] [data-role="favorites-view"] .hall-empty {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--rc-space-2) var(--rc-space-4);
  padding: var(--rc-space-4);
  border: var(--rc-hairline);
  border-radius: var(--rc-r);
  background: var(--rc-paper-raise);
  color: var(--rc-slate);
  overflow-wrap: anywhere;
}
html[data-aim-local] [data-role="favorites-view"] .hall-empty-go {
  min-block-size: 36px;
  padding-inline: var(--rc-space-3);
  margin: 0;
  border: var(--rc-hairline);
  background: var(--rc-paper-sunk);
  color: var(--rc-ink);
}
html[data-aim-local] [data-role="favorites-view"] .hall-empty-go:hover {
  border-color: var(--rc-signal);
  text-decoration: none;
}
html[data-aim-local] .hall-ball-head-top { flex-wrap: wrap; }
html[data-aim-local] .hall-ball-top { flex-wrap: wrap; }
html[data-aim-local] .hall-ball-pages { flex-wrap: wrap; gap: var(--rc-space-4); }
html[data-aim-local] .hall-ball-pages-sep { display: none; }
html[data-aim-local] .hall-ball-page {
  color: var(--rc-slate);
  font: 600 var(--rc-fs-20)/var(--rc-lh-title) var(--rc-font-condensed) !important;
}
html[data-aim-local] .hall-ball-page.is-on { color: var(--rc-ink); }
html[data-aim-local] .hall-ball-page .hall-icon { color: inherit; }
html[data-aim-local] .hall-ball-wall { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
html[data-aim-local] .hall-ball-head h2 { white-space: normal; font: 700 var(--rc-fs-20)/1.2 var(--rc-font-condensed) !important; }
html[data-aim-local] .hall-ball-head-top h2 { flex-basis: 100%; }
html[data-aim-local] .hall-ball-head h2 span,
html[data-aim-local] .hall-ball-card-body > b > span { white-space: normal; }
html[data-aim-local] .hall-ball-card { border-color: var(--rc-rule); background: var(--rc-paper-raise); }
html[data-aim-local] .hall-ball-card.is-on { border-color: var(--rc-ink); }
html[data-aim-local] .hall-ball-card :is(h3, b) { font-family: var(--rc-font-condensed) !important; }
html[data-aim-local] :is(.hall-ball-card-credit, .hall-ball-head-credit) {
  border-color: var(--rc-rule-strong);
  border-radius: var(--rc-r-small);
  background: var(--rc-paper-raise);
}
html[data-aim-local] :is(.hall-ball-card-credit, .hall-ball-head-credit):is(:hover, :focus-visible) {
  border-color: var(--rc-signal);
  background: var(--rc-paper-sunk);
}
html[data-aim-local] :is(.hall-ball-card-credit, .hall-ball-head-credit):focus-visible {
  outline: var(--rc-focus-ring);
  outline-offset: 2px;
}
html[data-aim-local] .hall-ball-card-body > small {
  overflow: visible;
  white-space: normal;
  overflow-wrap: anywhere;
}
html[data-aim-local] .hall-ball-card-foot { margin-block-start: auto; padding-block-start: 12px; }
html[data-aim-local] .hall-ball-detail .hall-ball-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
html[data-aim-local] .hall-ball-detail .hall-ball-stats :is(span, b) {
  white-space: normal;
  overflow-wrap: anywhere;
}
html[data-aim-local] .hall-ball-detail .hall-lb { min-block-size: 15rem; }
html[data-aim-local] .hall-ball-detail .hall-ball-actions {
  position: static;
  flex-wrap: wrap;
}
html[data-aim-local] .hall-ball-detail .hall-ball-actions button {
  block-size: auto;
  padding: var(--rc-space-2) var(--rc-space-3);
  line-height: 1.3 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
@media (max-width: 700px) {
  html[data-aim-local] :is(.hall-center, .st-view, .rov) { padding: var(--rc-space-4); }
}

html[data-aim-local] .hall-dialog.is-settings .sd-tabs {
  flex: none;
  overflow-x: auto;
}

/* Shared empty and modal panels; Settings owns its workspace surfaces. */
html[data-aim-local] :is(.rov-empty, .hall-dialog.is-settings) {
  border: var(--rc-hairline);
  border-radius: var(--rc-r-panel) !important;
  background: var(--rc-paper-raise);
}
