.main-shell > [data-page].rank-ban-page { width: min(100%, 1080px); }
.main-shell:has(> .rank-ban-page:not([hidden])) { width: calc(100% - 48px); max-width: none; }
.main-shell > [data-page].rank-ban-page { width: 100%; }
.main-shell:has(> .rank-ban-page:not([hidden])) { padding-top: 24px; }
.rank-ban-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.rank-ban-kicker { margin-bottom: 10px; color: #b6a2ff; text-transform: uppercase; font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.rank-ban-heading h1 { margin: 0 0 8px; font-size: clamp(28px, 4vw, 38px); line-height: 1.2; letter-spacing: -.035em; }
.rank-ban-heading p { color: #aeb5ce; font-size: 14px; line-height: 1.6; }
.rank-ban-badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; white-space: nowrap; border: 1px solid #82602d; border-radius: 20px; background: #382a1c; color: #ffd08a; font-size: 12px; font-weight: 700; }
.rank-ban-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #ffc573; }
.rank-ban-notice { display: flex; gap: 13px; padding: 16px 18px; margin-bottom: 23px; border: 1px solid #54432d; border-radius: 12px; background: #231f22; color: #c9bdac; font-size: 13px; line-height: 1.6; }
.rank-ban-notice svg { flex-shrink: 0; color: #f4be6a; margin-top: 2px; }
.rank-ban-notice strong { display: block; color: #f5d5a6; margin-bottom: 3px; font-size: 14px; }
.rank-ban-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.rank-ban-card { min-width: 0; padding: 24px; border-radius: 16px; background: #101523; border: 1px solid #2a3046; }
.rank-ban-card-head { display: flex; gap: 11px; align-items: center; margin-bottom: 22px; }
.rank-ban-step { width: 33px; height: 33px; border-radius: 10px; display: grid; place-items: center; background: #292242; border: 1px solid #51406f; color: #cab5ff; font-size: 13px; font-weight: 800; }
.rank-ban-card h2 { margin: 0 0 3px; font-size: 17px; color: #f2efff; }
.rank-ban-card-head p { font-size: 12px; color: #969eb8; margin: 0; }
.rank-ban-card label { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 700; color: #e0def0; }
.rank-ban-card textarea { display: block; width: 100%; box-sizing: border-box; min-height: 186px; resize: vertical; padding: 15px; color: #e7e4fa; font: 13px/1.9 ui-monospace, Consolas, monospace; border: 1px solid #3c3557; border-radius: 10px; background: #090e1b; }
.rank-ban-card textarea::placeholder { color: #69728e; opacity: 1; }
.rank-ban-card textarea:focus { outline: 2px solid #aa8cff; outline-offset: 2px; }
.rank-ban-input-note { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 9px; font-size: 11px; color: #8992ad; }
.rank-ban-features { display: flex; flex-wrap: wrap; gap: 7px; margin: 18px 0; }
.rank-ban-features span { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border: 1px solid #31364d; border-radius: 6px; color: #b2b9d1; background: #171c2d; font-size: 11px; }
.rank-ban-submit { width: 100%; min-height: 47px; border: 1px solid #534470; border-radius: 9px; background: #34294c; color: #b4a6cb; font-weight: 750; font-size: 14px; cursor: not-allowed; }
.rank-ban-privacy { margin: 13px 0 0; color: #8992ad; font-size: 11px; line-height: 1.7; }
.rank-ban-empty { display: grid; justify-items: center; text-align: center; padding: 24px 12px 26px; border: 1px dashed #363d56; border-radius: 12px; background: #0c111f; }
.rank-ban-empty-icon { display: grid; place-items: center; width: 62px; height: 62px; margin-bottom: 15px; border: 1px solid #44375f; background: #211c35; border-radius: 18px; color: #b39ae8; }
.rank-ban-empty strong { color: #dcd8ef; font-size: 15px; }
.rank-ban-empty p { max-width: 270px; margin: 8px 0 0; font-size: 12px; line-height: 1.7; color: #8791ab; }
.rank-ban-results { display: grid; gap: 0; margin: 16px 0 0; }
.rank-ban-results > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid #252c40; font-size: 12px; }
.rank-ban-results > div:last-child { border-bottom: 0; padding-bottom: 0; }
.rank-ban-results dt { color: #9aa4bf; }
.rank-ban-results dd { margin: 0; color: #747f9c; text-align: right; }
.rank-ban-help { margin-top: 20px; padding: 17px 20px; border: 1px solid #2b3046; border-radius: 12px; background: #101523; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.rank-ban-help p { color: #9ca5bf; font-size: 12px; margin: 0; }
.rank-ban-help strong { display: block; color: #e2ddf3; margin-bottom: 3px; font-size: 13px; }
.rank-ban-help-links { display: flex; gap: 8px; flex-wrap: wrap; }
.rank-ban-help a { color: #c4b3f4; border: 1px solid #403654; background: #201a30; border-radius: 7px; padding: 8px 11px; font-size: 12px; text-decoration: none; }
.rank-ban-help a:hover { background: #34274d; }
@media (max-width: 760px) {
  .rank-ban-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .rank-ban-heading { align-items: start; gap: 12px; }
  .rank-ban-heading h1 { font-size: 27px; }
  .rank-ban-heading p { font-size: 12px; }
  .rank-ban-badge { padding: 6px 8px; font-size: 10px; }
  .rank-ban-card { padding: 20px; }
  .rank-ban-card textarea { font-size: 16px; min-height: 170px; }
  .rank-ban-notice { padding: 14px; }
}

.rank-ban-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.rank-ban-stats > div { display: grid; gap: 5px; min-width: 0; padding: 13px 18px; background: #111625; border: 1px solid #2c3249; border-radius: 12px; }
.rank-ban-stats span { color: #a5aec9; font-size: 12px; }
.rank-ban-stats strong { color: #ece5ff; font-size: 25px; line-height: 1.1; }
.rank-ban-stats small { color: #737e9b; font-size: 11px; }
.rank-ban-stats .rb-good { color: #7ddcb4; }
.rank-ban-stats .rb-danger { color: #ef9aa6; }
.rank-ban-layout.rb-bulk-layout { grid-template-columns: minmax(300px, .32fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.rb-input-card { padding: 20px; display: flex; flex-direction: column; }
.rb-input-card textarea { min-height: 360px; flex: 1; }
.rb-input-actions { display: flex; gap: 6px; margin-bottom: 20px; flex-wrap: wrap; }
.rb-action { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; padding: 8px 11px; border: 1px solid #383e57; border-radius: 7px; background: #191f32; color: #c9cde1; font: 600 12px/1.4 system-ui; text-decoration: none; cursor: pointer; }
.rb-input-actions label { margin: 0; color: #c9cde1; font-size: 12px; }
.rb-action:hover:not(:disabled) { border-color: #a08acb; background: #28223b; }
.rb-action:disabled { opacity: .5; cursor: not-allowed; }
.rb-input-card .rank-ban-submit { margin-top: 14px; }
.rb-results-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.rb-results-heading { padding: 20px; justify-content: space-between; margin: 0; flex-wrap: wrap; gap: 12px; }
.rb-batch-progress { padding: 0 20px 18px; }
.rb-batch-progress > div { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; color: #939db8; font-size: 11px; }
.rb-batch-progress strong { color: #c1b1e4; font-weight: 600; }
.rb-batch-progress progress { display: block; width: 100%; height: 6px; margin-top: 10px; appearance: none; border: 0; border-radius: 8px; background: #28243a; overflow: hidden; }
.rb-batch-progress progress::-webkit-progress-bar { background: #28243a; }
.rb-batch-progress progress::-webkit-progress-value { background: #a886f5; }
.rb-results-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 13px 20px; border-block: 1px solid #2b3044; background: #0f1422; }
.rb-result-tabs { display: flex; gap: 6px; }
.rb-result-tab { display: flex; align-items: center; gap: 6px; color: #8992ad; padding: 7px 8px; border: 1px solid transparent; border-radius: 6px; background: transparent; font: 600 11px system-ui; }
.rb-result-tab.active { border-color: #594775; color: #d4c3f4; background: #282038; }
.rb-result-tab span { font-size: 10px; color: #9690a8; }
.rb-results-toolbar input { min-width: 0; width: 215px; max-width: 100%; height: 33px; padding: 8px 10px; color: #8790ab; font-size: 11px; border: 1px solid #30364b; border-radius: 6px; background: #0a101c; }
.rb-table-wrap { overflow: auto; min-height: 290px; flex: 1; }
.rb-result-table { width: 100%; min-width: 730px; border-collapse: collapse; text-align: left; font-size: 11px; }
.rb-result-table th { white-space: nowrap; padding: 15px 14px; color: #8e98b3; background: #12192a; border-bottom: 1px solid #2c334b; font-weight: 650; }
.rb-result-table td { padding: 0; }
.rb-table-empty { display: grid; justify-items: center; align-content: center; min-height: 280px; padding: 24px; text-align: center; }
.rb-table-empty strong { color: #b6bed4; font-size: 14px; }
.rb-table-empty p { max-width: 340px; color: #77829e; font-size: 12px; line-height: 1.7; margin: 9px 0 16px; }
.rb-table-empty .rank-ban-badge { font-size: 10px; opacity: .8; }
.rb-table-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 13px 18px; border-top: 1px solid #2b3044; color: #7f8aa6; font-size: 11px; }
.rb-table-footer > div { display: flex; align-items: center; gap: 10px; }
.rb-table-footer .rb-action { padding: 4px 8px; }
@media (max-width: 1100px) {
  .rank-ban-layout.rb-bulk-layout { grid-template-columns: minmax(260px, .45fr) minmax(0, 1fr); }
}
@media (max-width: 850px) {
  .main-shell:has(> .rank-ban-page:not([hidden])) { width: calc(100% - 32px); }
  .rank-ban-layout.rb-bulk-layout { grid-template-columns: minmax(0, 1fr); }
  .rank-ban-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .rank-ban-stats > div { padding: 13px 11px; }
  .rank-ban-stats span { font-size: 11px; }
  .rb-input-card textarea { min-height: 230px; }
}
