/* is-back/roguelike-admin/ — on top of pack-generation's look (pg-*): only what the tabs add */
.rla-page { max-width: 1400px; }
.rla-head { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; }
.rla-head h1 { margin: 0; font-size: 1.5rem; }
.rla-panel { background: rgba(18,18,18,.85); border: 1px solid #2a2a2a; border-radius: 12px; padding: 1rem 1.2rem; margin: .8rem 0; }
.rla-panel h3 { margin: 0 0 .6rem; font-size: 1.05rem; }
.rla-edited { color: #ffd21a; font-size: .8rem; margin-left: .4rem; }
.rla-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.rla-table th, .rla-table td { text-align: left; padding: .35rem .5rem; border-bottom: 1px solid #222; }
.rla-table th { color: #8b949e; font-weight: 500; cursor: default; }
.rla-table th.sort { cursor: pointer; }
.rla-table th.sort:hover { color: #00ffcc; }
.rla-table td.num, .rla-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.rla-scroll { overflow-x: auto; }
.rla-card { display: inline-flex; align-items: center; gap: .45rem; }
.rla-card img { width: 34px; height: 47px; object-fit: cover; border-radius: 3px; background: #111; }
.rla-type { font-size: .75rem; padding: 1px 6px; border-radius: 9px; border: 1px solid #333; color: #aaa; }
.rla-type.rock { color: #e0a96d; } .rla-type.paper { color: #9fd1ff; } .rla-type.scissors { color: #ff9ac2; } .rla-type.gun { color: #ffd21a; }
.rla-rare { color: #ffd21a; font-size: .8rem; }
.rla-search { position: relative; display: inline-block; }
.rla-search .pg-input { width: 18rem; }
.rla-results { position: absolute; z-index: 20; top: 100%; left: 0; width: 26rem; max-height: 22rem; overflow-y: auto;
  background: #141414; border: 1px solid #333; border-radius: 8px; margin-top: 4px; }
.rla-results button { display: flex; width: 100%; background: none; border: none; color: #e6edf3; padding: .3rem .5rem; cursor: pointer; text-align: left; }
.rla-results button:hover, .rla-results button.on { background: rgba(0,255,204,.1); }
.rla-split { display: grid; grid-template-columns: 17rem 1fr; gap: 1rem; align-items: start; }
.rla-list { max-height: 75vh; overflow-y: auto; border: 1px solid #222; border-radius: 10px; }
.rla-list button { display: flex; justify-content: space-between; width: 100%; background: none; border: none; border-bottom: 1px solid #1d1d1d;
  color: #e6edf3; padding: .45rem .7rem; cursor: pointer; text-align: left; font-size: .9rem; }
.rla-list button:hover { background: rgba(255,255,255,.04); }
.rla-list button.on { background: rgba(0,255,204,.12); color: #00ffcc; }
.rla-role { color: #8b949e; font-size: .75rem; }
.rla-size { font-weight: 600; }
.rla-size.ok { color: #3fb950; } .rla-size.bad { color: #ff4d6d; }
.rla-deck { display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: .3rem .8rem; margin-top: .6rem; }
.rla-deck .row { display: flex; align-items: center; gap: .4rem; justify-content: space-between; border-bottom: 1px solid #1d1d1d; padding: 2px 0; }
.rla-count { min-width: 1.6rem; text-align: center; font-weight: 600; display: inline-block; }
.rla-tiles { display: flex; flex-wrap: wrap; gap: .8rem; }
.rla-tile { background: rgba(255,255,255,.03); border: 1px solid #262626; border-radius: 10px; padding: .6rem 1rem; min-width: 8rem; }
.rla-tile b { display: block; font-size: 1.5rem; color: #00ffcc; }
.rla-tile span { color: #8b949e; font-size: .8rem; }
.rla-bar { height: 6px; background: #222; border-radius: 3px; overflow: hidden; min-width: 5rem; }
.rla-bar i { display: block; height: 100%; background: linear-gradient(90deg, #00ffcc, #00ccff); }
.rla-pack { display: flex; gap: .8rem; margin-top: .6rem; flex-wrap: wrap; }
.rla-pack img { width: 140px; border-radius: 8px; }
@media (max-width: 760px) {
  .rla-split { grid-template-columns: 1fr; }
  .rla-list { max-height: 14rem; }
  .rla-search .pg-input, .rla-results { width: min(100%, 20rem); }
}
/* fit: numbers wide enough for 5 digits, chips and counters on one line */
.rla-page .pg-input.tiny { width: 6.2rem; }
.rla-type { white-space: nowrap; }
.rla-card > span:nth-child(2) { min-width: 0; }
.rla-deck .row > span:last-child, .rla-offer-tools { white-space: nowrap; display: inline-flex; align-items: center; gap: .25rem; }
.rla-offer { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; padding: .4rem 0; border-bottom: 1px solid #1d1d1d; }
.rla-offer .rla-search .pg-input { width: 13rem; }
.rla-table td.num .rla-bar { margin-left: auto; margin-top: 3px; max-width: 8rem; }
/* Dialogue tab */
.rla-dl-group { margin: 1rem 0 .3rem; color: #00ffcc; font-size: .95rem; }
.rla-dl-row { display: grid; grid-template-columns: 1fr auto; gap: .6rem; align-items: center; padding: .35rem .2rem; border-bottom: 1px solid #1d1d1d; }
.rla-dl-row.edited { background: rgba(255,210,26,.04); }
.rla-dl-say { cursor: text; }
.rla-dl-say:hover { color: #00ffcc; }
.rla-dl-id { font-size: .72rem; margin-top: 2px; }
.rla-dl-edit { width: 100%; min-height: 4rem; resize: vertical; margin-bottom: .3rem; }
@media (max-width: 760px) { .rla-dl-row { grid-template-columns: 1fr; } }
