/* Soft reserves: the tab, hard reserves and GuildCoreLoot results. */

/* ----- Soft reserves tab (softres-view.js): the state and actions, stat tiles,
   then Members / Loot / Exports tabs. Item labels, the picker and tooltips are in
   loot.css. ----- */
.softres-card {
  margin-top: 12px;
}

.sr-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  margin-bottom: 18px;
}

.sr-head-state {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 320px;
}

.sr-head-state p {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.sr-head-state .badge .ui-icon {
  width: 12px;
  height: 12px;
  margin-right: 4px;
  vertical-align: -1px;
}

.sr-head-actions,
.sr-export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sr-head .button .ui-icon,
.sr-panel .button .ui-icon {
  width: 16px;
  height: 16px;
  margin-right: 6px;
}

.sr-stats {
  margin-bottom: 20px;
}

.sr-stats strong {
  font-size: 24px;
}

.sr-of {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 500;
}

/* A split raid's team switcher, between the stat tiles and the tabs */
.sr-teams {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-bottom: 16px;
}

.sr-teams .sr-note {
  flex: 1 1 260px;
  margin: 0;
}

.sr-chip.is-warn {
  border-color: var(--warning-border);
  color: var(--warning);
}

.sr-chip.is-warn[aria-pressed="true"] {
  background: var(--warning-bg);
}

.sr-tabs {
  margin-bottom: 18px;
}

.sr-tab-count {
  margin-left: 8px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.sr-card {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
}

.sr-card h2 {
  margin: 0;
  font-size: 15px;
}

.sr-card h3 {
  margin: 18px 0 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.sr-card-note,
.sr-note {
  margin: 6px 0 12px;
  font-size: 13px;
  color: var(--text-secondary);
}

.sr-sub {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--text-muted);
}

.sr-empty {
  padding: 18px;
  color: var(--text-secondary);
  text-align: center;
  list-style: none;
}

/* A split raid's team: its reserve rules */
.sr-team-rules {
  margin-bottom: 14px;
}

.sr-team-rules-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.sr-team-rules-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sr-team-rules-fields .option-grid {
  margin-top: 16px;
}

/* The export checklist */
.sr-checklist {
  margin-bottom: 18px;
}

.sr-checklist ul {
  display: grid;
  gap: 2px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.sr-check {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 6px 0;
  border-top: 1px solid var(--border);
}

.sr-check:first-child {
  border-top: 0;
}

.sr-check > div {
  flex: 1;
  min-width: 0;
}

.sr-check-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 999px;
}

.sr-check-icon .ui-icon {
  width: 16px;
  height: 16px;
}

.sr-check.is-ok .sr-check-icon {
  background: rgb(76 175 80 / 0.14);
  color: #7fd185;
}

.sr-check.is-todo .sr-check-icon {
  background: rgb(224 164 59 / 0.15);
  color: #e8b25a;
}

.sr-check-title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}

.sr-check-text {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--text-secondary);
}

.sr-host select {
  min-width: 220px;
  max-width: 100%;
}

/* Filter bars */
.sr-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.sr-search {
  position: relative;
  flex: 1 1 260px;
  max-width: 420px;
}

.sr-search .ui-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.sr-search input {
  width: 100%;
  min-height: 42px;
  padding-left: 36px;
}

.sr-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sr-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text-secondary);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.sr-chip span {
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.sr-chip:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.sr-chip[aria-pressed="true"] {
  border-color: var(--border-warm);
  background: var(--nav-selected);
  color: var(--accent);
}

/* Members: one row each, the member on the left, their reserves on the right */
.sr-members {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
}

.sr-member {
  display: grid;
  grid-template-columns: minmax(200px, 260px) 1fr;
  gap: 8px 18px;
  align-items: center;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
}

.sr-member:first-child {
  border-top: 0;
}

.sr-who {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.sr-who .wow-icon {
  flex: none;
  border-radius: 6px;
}

.sr-name {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.sr-reserves {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sr-reserve {
  display: flex;
  align-items: center;
  gap: 2px;
  max-width: 100%;
  padding: 3px 3px 3px 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-elevated);
}

.sr-reserve.is-invalid {
  border-style: dashed;
  background: transparent;
}

.sr-reserve.is-invalid .loot-label-name {
  text-decoration: line-through;
  opacity: 0.7;
}

.sr-reason {
  padding: 0 6px;
  font-size: 11px;
  color: #e8b25a;
  white-space: nowrap;
}

.sr-remove {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
}

.sr-remove .ui-icon {
  width: 16px;
  height: 16px;
}

.sr-remove:hover,
.sr-remove:focus-visible {
  background: var(--danger-bg);
  color: var(--danger);
}

.sr-add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px dashed var(--border-warm);
  border-radius: 8px;
  background: none;
  color: var(--accent);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.sr-add .ui-icon {
  width: 16px;
  height: 16px;
}

.sr-add span {
  color: var(--text-muted);
  font-weight: 400;
}

.sr-add:hover,
.sr-add[aria-expanded="true"] {
  border-style: solid;
  background: var(--bg-warm);
}

/* A missing last name is asked for under the member's reserves, in their row. */
.sr-last-name {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgb(224 164 59 / 0.08);
}

.sr-last-name label {
  font-size: 12px;
  color: #e8b25a;
}

.sr-last-name div {
  display: flex;
  gap: 6px;
  flex: 1 1 240px;
  max-width: 360px;
}

.sr-last-name input {
  flex: 1;
  min-width: 0;
  min-height: 40px;
}

.sr-gone {
  margin-top: 18px;
}

.sr-gone-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sr-gone-list > li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

.sr-gone-who {
  min-width: 160px;
  font-weight: 600;
  font-size: 13px;
}

/* Loot: items grouped by boss */
.sr-boss {
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
  overflow: hidden;
}

.sr-boss h3 {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
  font-size: 13px;
}

.sr-boss h3 span {
  color: var(--text-muted);
  font-weight: 400;
}

.sr-boss ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sr-loot-item {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) 90px minmax(0, 2fr) 36px auto;
  align-items: center;
  gap: 8px 14px;
  padding: 8px 16px;
  border-top: 1px solid var(--border);
}

.sr-loot-item:first-child {
  border-top: 0;
}

.sr-slot {
  font-size: 12px;
  color: var(--text-secondary);
}

.sr-reservers {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
}

.sr-reserver {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--bg-elevated);
  font-size: 12px;
  font-weight: 600;
}

.sr-none {
  font-size: 12px;
  color: var(--text-muted);
}

.sr-count {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.sr-loot-item.is-contested .sr-count {
  background: var(--bg-warm);
  border: 1px solid var(--border-warm);
  color: var(--accent);
}

/* Exports */
.sr-export-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  align-items: start;
}

.sr-export-grid .sr-card > .button {
  margin-top: 4px;
}

.sr-blockers {
  display: grid;
  gap: 6px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.sr-blockers li {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.sr-blockers .ui-icon,
.sr-ready .ui-icon {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 1px;
}

.sr-blockers .ui-icon {
  color: #e8b25a;
}

.sr-ready {
  display: flex;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 13px;
  color: #7fd185;
}

.sr-exports {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sr-exports li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}

.sr-exports li > div:first-child {
  flex: 1 1 140px;
}

.sr-exports p {
  margin: 0;
  font-size: 13px;
}

.sr-wire {
  display: grid;
  gap: 6px;
  margin: 14px 0 10px;
  font-size: 12px;
  color: var(--text-secondary);
}

/* Export and result strings: taller on drag, never wider than their card. */
.sr-wire textarea {
  width: 100%;
  max-width: 100%;
  resize: vertical;
  font-family: ui-monospace, monospace;
  font-size: 12px;
}

/* Hard reserves: the Loot tab's card, the badge on loot rows and the dialog. */
.sr-hr {
  margin-bottom: 16px;
}

.sr-hr-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}

.sr-hr-head h2 {
  margin: 0;
}

.sr-hr-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.sr-hr-row {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(0, 2fr) auto;
  align-items: center;
  gap: 8px 14px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}

.sr-hr-row:first-child {
  border-top: 0;
}

.sr-hr-for p {
  margin: 0;
}

.sr-hr-for .fact-warning {
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 12px;
}

.sr-hr-row.is-invalid .sr-hr-for strong {
  color: var(--danger);
}

.sr-hr-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.sr-hr-badge {
  padding: 3px 9px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--bg-warm);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}

.sr-hr-types {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 0;
  padding: 0;
  border: 0;
}

.sr-hr-types legend {
  margin-bottom: 7px;
  padding: 0;
}

.sr-hr-types label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  font-size: 13px;
  cursor: pointer;
}

.sr-hr-dialog [hidden] {
  display: none;
}

@media (max-width: 900px) {
  .sr-hr-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .sr-hr-buttons {
    justify-content: flex-start;
  }

  .sr-loot-item {
    grid-template-columns: minmax(0, 1fr) 36px auto;
  }

  .sr-slot {
    display: none;
  }

  .sr-reservers {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 760px) {
  .sr-member {
    grid-template-columns: 1fr;
  }

  .sr-last-name {
    grid-column: 1;
  }

  /* One reserve or Add reserve per line, all the same width. */
  .sr-reserves > li {
    flex: 1 1 100%;
  }

  .sr-reserve .sr-remove {
    margin-left: auto;
  }

  .sr-add {
    width: 100%;
    justify-content: center;
  }

  /* The show filters share one row. */
  .sr-toolbar .sr-chips {
    flex-wrap: nowrap;
    width: 100%;
  }

  .sr-toolbar .sr-chip {
    flex: 1 1 0;
    justify-content: center;
    min-width: 0;
    padding: 0 8px;
    white-space: nowrap;
  }

  .sr-search {
    max-width: none;
  }

  .sr-check {
    flex-wrap: wrap;
  }

  .sr-host {
    flex: 1 1 100%;
    padding-left: 40px;
  }

  .sr-host select {
    width: 100%;
    min-width: 0;
  }

  .sr-export-grid {
    grid-template-columns: 1fr;
  }
}

/* Results: GuildCoreLoot's awards, previewed and imported */
.rs-stack {
  display: grid;
  gap: 16px;
}

.rs-stack > .sr-card {
  margin: 0;
}

.rs-heading {
  display: flex;
  align-items: center;
  margin: 0 0 12px;
  font-size: 18px;
}

.rs-awards .sr-boss:last-child {
  margin-bottom: 0;
}

.rs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.rs-preview {
  border-color: var(--border-warm);
}

.rs-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rs-row {
  display: grid;
  /* Fixed type and button columns keep every row of a list aligned, with or
     without a Rolls button, and fit the longest type ("Disenchanted"). */
  grid-template-columns:
    minmax(170px, 1.4fr) minmax(110px, 1fr) 96px 64px 140px
    168px;
  align-items: center;
  gap: 6px 14px;
  padding: 8px 16px;
  border-top: 1px solid var(--border);
}

.rs-row:first-child {
  border-top: 0;
}

.rs-preview .rs-list,
.rs-row .rs-why {
  grid-column: 1 / -1;
}

.rs-preview .rs-list {
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.rs-winner {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 600;
}

.rs-row.is-none .rs-winner {
  color: var(--text-muted);
  font-weight: 400;
}

.rs-roll {
  color: var(--text-secondary);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.rs-why {
  color: var(--text-secondary);
  font-size: 13px;
}

/* Type, roll and delivery are the row's own columns; on a phone they wrap
   together under the winner. Rolls and Correct stay at the end of row 1. */
.rs-facts {
  display: contents;
}

.rs-buttons {
  display: flex;
  gap: 8px;
  grid-column: 6;
  grid-row: 1;
  justify-self: end;
}

.rs-item-name {
  min-width: 0;
  overflow-wrap: anywhere;
}

.rs-subheading {
  margin: 14px 0 0;
  font-size: 14px;
}

.rs-delivery {
  justify-self: start;
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  white-space: nowrap;
  color: var(--text-muted);
}

.rs-delivery-delivered {
  border-color: var(--success-border);
  background: var(--success-bg);
  color: var(--success);
}

.rs-delivery-unconfirmed,
.rs-delivery-pending {
  border-color: var(--warning-border);
  color: var(--warning);
}

/* The managers' delivery toggle (deliveryButton): the pill as a button, its
   action on a second line, and "by hand" beside it when a manager set it. */
.rs-delivery-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  align-items: center;
  min-width: 0;
}

button.rs-delivery {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 3px 10px;
  border-radius: 10px;
  background: transparent;
  font: inherit;
  font-size: 12px;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}

button.rs-delivery-delivered {
  background: var(--success-bg);
}

button.rs-delivery:hover {
  border-color: var(--accent);
}

button.rs-delivery:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.rs-delivery-sep {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.rs-delivery-action {
  color: var(--text-secondary);
  font-size: 11px;
}

/* The Rolls dialog: each round, who rolled what, and the result. */
.rs-rolls {
  width: min(560px, calc(100vw - 32px));
}

.rs-rounds {
  display: grid;
  gap: 12px;
  max-height: min(60vh, 560px);
  overflow-y: auto;
}

.rs-round {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.rs-round h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin: 0 0 8px;
  font-size: 15px;
}

.rs-round h3 small {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 400;
}

.rs-rollers {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rs-roller {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px auto 76px auto;
  align-items: center;
  gap: 4px 10px;
  padding: 5px 0;
  border-top: 1px solid var(--border);
  font-size: 13px;
}

.rs-roller:first-child {
  border-top: 0;
}

.rs-roller-name {
  min-width: 0;
  overflow-wrap: anywhere;
}

.rs-roller .rs-type {
  grid-column: 3;
}

.rs-roller .rs-roll {
  grid-column: 4;
}

.rs-roller-away {
  grid-column: 1 / 3;
  color: var(--text-muted);
  font-size: 12px;
}

.rs-roller-mark {
  grid-column: 5;
  grid-row: 1;
  justify-self: end;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}

.rs-roller.is-winner .rs-roller-name {
  color: var(--accent);
  font-weight: 600;
}

.rs-roller.is-tied .rs-roller-name {
  font-weight: 600;
}

.rs-round-note {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 12px;
}

.rs-round-result {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 600;
}

.rs-type {
  justify-self: start;
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-secondary);
}

.rs-type-soft_reserve {
  border-color: var(--border-warm);
  background: var(--bg-warm);
  color: var(--accent);
}

.rs-type-hard_reserve {
  border-color: var(--accent);
  background: var(--bg-warm);
  color: var(--accent);
  font-weight: 600;
}

.rs-type-manual {
  border-color: var(--warning-border);
  color: var(--warning);
}

.rs-type-disenchant,
.rs-type-off_spec,
.rs-type-bonus {
  border-style: dashed;
}

.rs-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 0 6px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  vertical-align: 1px;
}

.rs-gargul-rolls {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.rs-gargul-rolls th,
.rs-gargul-rolls td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
}

.rs-gargul-rolls td:first-child {
  width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.rs-gargul-rolls th {
  color: var(--text-secondary);
  font-weight: 600;
}

.rs-gargul-rolls .is-winner td {
  background: var(--bg-warm);
  font-weight: 600;
}

.rs-gargul-mark {
  margin-left: 6px;
  color: var(--accent);
  font-size: 12px;
}

.rs-imports {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rs-imports li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-top: 1px solid var(--border);
  font-size: 13px;
}

.rs-imports li:first-child {
  border-top: 0;
}

.loot-label.is-unknown {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
}

.loot-label.is-unknown small {
  color: var(--text-muted);
  font-size: 11px;
}

.rs-dialog {
  width: min(460px, calc(100vw - 32px));
}

.rs-dialog-form {
  display: grid;
  gap: 14px;
}

.rs-dialog-form h2 {
  margin: 0;
}

.rs-dialog-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  color: var(--text-secondary);
}

.rs-dialog .field {
  display: grid;
  gap: 7px;
}

.rs-dialog .field > span,
.rs-dialog legend {
  font-size: 12px;
  font-weight: 500;
}

.rs-dialog select,
.rs-dialog input:not([type="checkbox"], [type="radio"]) {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 13px;
}

.rs-dialog select {
  padding-right: 34px;
}

.rs-dialog-form > .fact-warning {
  margin: 0;
}

.rs-dialog select:focus,
.rs-dialog input:not([type="checkbox"], [type="radio"]):focus {
  border-color: var(--accent-border);
  outline: 2px solid var(--focus-ring);
  outline-offset: -1px;
}
