/* Empire and Reports share compact, snapshot-driven reading rows. */
.concept-std .st-empire__overview { display: grid; gap: 12px; min-width: 0; }
.concept-std .st-empire__attention { min-width: 0; }
.concept-std .st-empire__figures > div { min-width: 0; }
.concept-std .st-empire__figures > div:nth-child(n+5) { display: none; }
.concept-std .st-empire__figures .st-figure-strip__value { font-size: 15px; white-space: nowrap; }
/* Four tiles across a 360 px phone: at 15 px "#19 of 20" ended in an ellipsis on the first screen of the game,
   and at 13 px it still did, by 2 px in English and 5 in Portuguese. */
@media (max-width: 380px) { .concept-std .st-empire__figures .st-figure-strip__value { font-size: 12px; } }
.concept-std .st-empire__action-row { display: flex; align-items: center; gap: 6px; }
.concept-std .st-empire__action-row > .st-row { flex: 1; min-width: 0; }
.concept-std .st-empire__fix { position: absolute; right: 46px; top: 50%; transform: translateY(-50%); }
.concept-std .st-empire__attention .st-rowset > .st-row { padding-right: 106px !important; }
.concept-std .st-empire__restore { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; margin-top: 6px; }
.concept-std .st-empire__restore-count { color: var(--st-muted); font-size: 12px; }
.concept-std .st-empire__research { color: var(--st-muted); }
.concept-std .st-reports__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-block: 8px; }
/* "Load older history (the last two weeks)" is wider than a 360 px phone in Portuguese. */
#app.concept-std .st-reports__controls .btn { flex: 0 1 auto; max-width: 100%; height: auto; padding-block: 4px; white-space: normal; }
.concept-std .st-reports__controls label { position: relative; display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; }
#app.concept-std .st-reports__controls input { position: relative; z-index: 1; box-sizing: border-box; min-width: 0; max-width: 100%; height: var(--st-size-control); min-height: var(--st-size-control); padding: 0 12px; border: 1px solid var(--st-line); border-radius: var(--st-radius-control); background: var(--st-panel); }
@media (pointer: coarse) {
  .concept-std .st-reports__controls label::after { content: ''; position: absolute; inset: calc(50% - var(--st-size-touch) / 2) 0; }
}
.concept-std .st-reports__detail { margin-block: 12px; }
@media (min-width: 1024px) {
  .concept-std .st-empire__overview { display: flex; flex-wrap: wrap; align-items: start; }
  .concept-std .st-empire__overview > * { flex: 1 1 max-content; max-width: 100%; min-width: calc(50% - 6px); }
  .concept-std .st-empire__overview > .st-grid { order: -1; }
  .concept-std .st-empire__figures > div:nth-child(n+5) { display: block; }
}
.concept-std .st-empire__away .st-row { min-height: 32px; padding-block: 4px; }
.concept-std .st-empire__away,
.concept-std .st-empire__away .st-rows { grid-template-columns: minmax(0, 1fr); }
.concept-std .st-empire__away > *,
.concept-std .st-empire__away .st-rows > li { min-width: 0; }
.concept-std .st-empire__away .st-row__body { flex-wrap: nowrap; align-items: baseline; }
.concept-std .st-empire__away .st-row__title,
.concept-std .st-empire__away .st-row__sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.concept-std .st-empire__figures .st-figure-strip__value { display: block; }
@media (min-width: 1024px) {
  .concept-std .st-empire__figures { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

.concept-std .st-away-row { display: flex; align-items: center; gap: 8px; height: 32px; min-width: 0; max-width: 100%; }
.concept-std .st-away-row__title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* There is no tooltip under a thumb: what needs you, and what happened while you were away, is read in full. */
@media (pointer: coarse) {
  .concept-std .st-away-row { height: auto; min-height: 32px; padding-block: 3px; }
  .concept-std .st-away-row__title { white-space: normal; overflow: visible; overflow-wrap: anywhere; }
  /* Against tighten()'s inline clamps, which a mouse still gets, with the tooltip they rely on. */
  .concept-std .st-row--whole .st-row__title,
  .concept-std .st-row--whole .st-row__sub { display: block !important; overflow: visible !important; -webkit-line-clamp: unset !important; word-break: normal !important; overflow-wrap: anywhere; }
}
.concept-std .st-away-row__tick, .concept-std .st-away-row__kind { flex: none; color: var(--st-muted); font-size: 12px; }
