/* Upload zone */
.upload-zone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 3rem 2rem;
  background: var(--surface);
  border: 2px dashed var(--border);
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
}

.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
}

.upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.upload-icon {
  font-size: 2.5rem;
  line-height: 1;
}

.upload-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
}

.upload-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.upload-sub code {
  font-family: monospace;
  background: var(--border);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

/* Results section */
.hidden {
  display: none !important;
}

.results-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.results-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.toolbar-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-secondary {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.35rem 0.75rem;
  font-size: 0.825rem;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.btn-secondary:hover {
  background: var(--border);
}

/* Split sections (always-visible, above primary) */
#split-sections {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 2px solid var(--border);
}
#split-sections.hidden { display: none; }

.split-section-header {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted, #888);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}

/* Mob list */
.mob-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mob-entry {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.15s;
}

.mob-entry.selected {
  border-color: var(--accent);
}

.mob-header {
  display: grid;
  grid-template-columns: 1rem 2fr 1fr 5rem auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  cursor: pointer;
  user-select: none;
}

.mob-header:hover {
  background: color-mix(in srgb, var(--accent) 4%, var(--surface));
}

.mob-checkbox {
  width: 1rem;
  height: 1rem;
  accent-color: var(--accent);
  flex-shrink: 0;
  cursor: pointer;
}

.mob-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.mob-session-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.mob-count {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--bg);
  padding: 0.15em 0.55em;
  border-radius: 999px;
  text-align: center;
  border: 1px solid var(--border);
}

.mob-chevron {
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.mob-entry.open .mob-chevron {
  transform: rotate(90deg);
}

/* Date dividers */
.date-divider {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0 0.25rem;
  list-style: none;
}

.date-divider::before,
.date-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.date-divider-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Loot table */
.loot-panel {
  border-top: 1px solid var(--border);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.25s ease;
}

.mob-entry.open .loot-panel {
  max-height: 2000px;
}

.loot-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.loot-table .col-exclude {
  width: 2rem;
  text-align: center;
  padding: 0 0.4rem 0 0;
  vertical-align: middle;
}

.exclude-item-btn {
  background: none;
  border: 1px solid var(--text-muted);
  color: var(--text-muted);
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  line-height: 1;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
  position: relative;
}

.exclude-item-btn:hover {
  color: #e05252;
  border-color: #e05252;
  background: rgba(224, 82, 82, 0.12);
}

.exclude-item-btn[data-tooltip] {
  position: relative;
}

.exclude-item-btn[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  right: 0;
  background: #1a1a2e;
  color: #e0e0e0;
  font-size: 0.72rem;
  line-height: 1.4;
  padding: 0.4rem 0.6rem;
  border-radius: 5px;
  white-space: pre-wrap;
  width: max-content;
  max-width: 260px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0s;
  z-index: 100;
}

.exclude-item-btn[data-tooltip]:hover::after {
  opacity: 1;
  transition-delay: 0s;
}

.loot-table .col-check {
  width: 2rem;
  text-align: center;
  padding-left: 0.75rem;
  padding-right: 0;
}

.loot-checkbox {
  accent-color: var(--accent);
  cursor: pointer;
  width: 0.95rem;
  height: 0.95rem;
}

.loot-table th {
  text-align: left;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.loot-table td {
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.loot-table tr:last-child td {
  border-bottom: none;
}

.loot-table tr:hover td {
  background: color-mix(in srgb, var(--accent) 4%, var(--surface));
}

.looter-you {
  color: var(--accent);
  font-weight: 600;
}

.loot-qty {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.loot-timestamp {
  color: var(--text-muted);
  font-size: 0.78rem;
  white-space: nowrap;
}

/* Filter bar */
.filter-toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  color: var(--text);
  white-space: nowrap;
}
.filter-toggle input[type="checkbox"] {
  width: 0.9rem;
  height: 0.9rem;
  cursor: pointer;
  accent-color: var(--accent);
}
.filter-toggle--right {
  margin-left: auto;
}

.filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.filter-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.filter-pill {
  background: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.825rem;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}

.filter-pill:hover {
  background: var(--border);
}

.filter-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Custom date range */
.custom-range {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
  width: 100%;
}

.range-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.range-label input[type="datetime-local"] {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.3rem 0.5rem;
  font-size: 0.825rem;
  color: var(--text);
  color-scheme: light dark;
  cursor: pointer;
}

.range-label input[type="datetime-local"]:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.range-sep {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ── Pagination ──────────────────────────────────────────────────────────────── */
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.5rem 0;
}

.page-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.page-info {
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.page-size-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.page-size-pill,
.mob-page-size-pill {
  background: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.8rem;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.page-size-pill:hover,
.mob-page-size-pill:hover {
  background: var(--border);
}

.page-size-pill.active,
.mob-page-size-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ── Processing spinner ─────────────────────────────────────────────────────── */
.processing-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 3rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.spinner {
  width: 2.5rem;
  height: 2.5rem;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.processing-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ── Modal ─────────────────────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  padding: 1rem;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem 1rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.modal-header h2 {
  font-size: 1rem;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0 0.2rem;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}

.modal-close:hover {
  color: var(--text);
  background: var(--border);
}

.modal-body {
  overflow-y: auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.modal-add-row {
  display: flex;
}

.btn-add {
  background: none;
  border: 1px dashed var(--border);
  border-radius: 7px;
  padding: 0.4rem 1rem;
  font-size: 0.825rem;
  color: var(--accent);
  cursor: pointer;
  width: 100%;
  text-align: center;
  transition: background 0.15s, border-color 0.15s;
}

.btn-add:hover {
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  border-color: var(--accent);
}

/* Target rows */
.targets-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.target-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.target-grip {
  color: var(--text-muted);
  font-size: 0.9rem;
  letter-spacing: -2px;
  cursor: default;
  user-select: none;
  flex-shrink: 0;
}

.target-input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.35rem 0.6rem;
  font-size: 0.875rem;
  color: var(--text);
  transition: border-color 0.15s;
}

.target-input:focus {
  outline: none;
  border-color: var(--accent);
}

.target-btn {
  background: none;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  padding: 0.25rem 0.45rem;
  font-size: 1rem;
  line-height: 1;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  flex-shrink: 0;
}

.target-remove {
  color: var(--text-muted);
}

.target-remove:hover {
  color: #e05252;
  background: rgba(224, 82, 82, 0.1);
  border-color: rgba(224, 82, 82, 0.3);
}

/* Modal footer */
.modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.25rem;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.btn-primary {
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 7px;
  padding: 0.45rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

/* ── Loot action buttons ─────────────────────────────────────────────────── */
.loot-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-top: 0.25rem;
}

.btn-action {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.55rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn-action:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
}

/* ── OpenDKP output box ──────────────────────────────────────────────────── */
.output-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.output-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.output-box-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.btn-copy {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.25rem 0.65rem;
  font-size: 0.8rem;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.btn-copy:hover {
  background: var(--border);
}

.output-text {
  margin: 0;
  padding: 1rem;
  font-family: monospace;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 260px;
  overflow-y: auto;
}

/* ── OpenDKP loot string — 3-line scroll window ─────────────────────────── */
#opendkp-text {
  max-height: calc(3em * 1.55 + 2rem); /* 3 lines × line-height + top/bottom padding */
  overflow-y: auto;
}

/* ── Delivery modal specifics ────────────────────────────────────────────── */
.modal-wide {
  max-width: 680px;
}

.delivery-raid-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.delivery-raid-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.delivery-raid-select {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  font-size: 0.85rem;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s;
}

.delivery-raid-select:focus {
  outline: none;
  border-color: var(--accent);
}

.delivery-raid-refresh {
  flex-shrink: 0;
  padding: 0.45rem 0.6rem;
  font-size: 1rem;
  line-height: 1;
}

.delivery-instructions {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.delivery-instructions code {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1em 0.4em;
  font-size: 0.82rem;
}

.delivery-textarea {
  width: 100%;
  min-height: 200px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--text);
  resize: vertical;
  transition: border-color 0.15s;
}

.delivery-textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.delivery-output-pre {
  max-height: 420px;
}

/* ── Collapsible panel ───────────────────────────────────────────────────── */
.collapsible-panel {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.collapsible-panel-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.85rem;
  background: var(--bg);
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  transition: background 0.15s;
}

.collapsible-panel-header:hover {
  background: var(--border);
}

.collapsible-chevron {
  font-size: 0.75rem;
  transition: transform 0.2s;
  display: inline-block;
}

.collapsible-panel-header[aria-expanded="true"] .collapsible-chevron {
  transform: rotate(90deg);
}

.collapsible-panel-body {
  padding: 0.85rem;
  border-top: 1px solid var(--border);
  background: var(--surface, var(--bg));
}

.opendkp-duration-input {
  width: 100px;
  flex: 0 0 auto;
}

.opendkp-client-input {
  width: 200px;
  flex: 0 0 auto;
  text-align: right;
}

.auction-items-section {
  margin-top: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.auction-items-header {
  display: flex;
  align-items: center;
  padding: 0.45rem 0.65rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  border-radius: 6px 6px 0 0;
  font-size: 0.82rem;
  font-weight: 600;
}

.auction-items-list {
  list-style: none;
  margin: 0;
  padding: 0 0 0.5rem 0;
  max-height: 35vh;
  overflow-x: hidden;
  overflow-y: auto;
  border-radius: 0 0 6px 6px;
}

.auction-items-header {
  justify-content: space-between;
}

.auction-select-next-btn {
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
}

.auction-items-select-all {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
}

.auction-items-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.65rem;
  font-size: 0.82rem;
  border-bottom: 1px solid var(--border);
}

.auction-items-list li:last-child {
  border-bottom: none;
}

.auction-item-name {
  flex: 1;
  color: var(--text);
}

.auction-item-blank {
  pointer-events: none;
}

.auction-item-done {
  opacity: 0.6;
}

.auction-item-done .auction-item-name {
  text-decoration: line-through;
}

.auction-created-badge {
  font-size: 0.72rem;
  color: #4caf82;
  white-space: nowrap;
  margin-left: auto;
  padding-left: 0.5rem;
}

.auction-item-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.05rem 0.45rem;
  white-space: nowrap;
}

.create-auctions-status-row {
  min-height: 1.2rem;
  margin-top: 0.35rem;
}

.create-auctions-status {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.create-auctions-status.status-error   { color: #e05c5c; }
.create-auctions-status.status-success { color: #4caf82; }

/* ── Delivery output chunks ──────────────────────────────────────────────── */
.chunk-block {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.chunk-label {
  padding: 0.35rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  border-bottom: 1px solid var(--border);
}

.modal-close-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s;
}

.modal-close-btn:hover {
  background: var(--border);
}

/* ── OpenDKP Loot String popup — responsive layout ───────────────────────── */

/* Modal base: fill viewport width on narrow screens */
@media (max-width: 600px) {
  .modal-backdrop {
    padding: 0.5rem;
    align-items: flex-end;        /* slide up from bottom on mobile */
  }

  .modal,
  .modal-wide {
    max-width: 100%;
    max-height: 92vh;
    border-radius: 14px 14px 0 0;
  }

  .modal-body {
    padding: 0.6rem 0.75rem;
  }

  .modal-header {
    padding: 0.85rem 0.75rem 0.75rem;
  }

  .modal-footer {
    padding: 0.75rem;
  }

  /* Stack each row vertically */
  .delivery-raid-row {
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.65rem;
  }

  /* Labels sit on their own line, full width */
  .delivery-raid-label {
    flex: 0 0 100%;
    font-size: 0.8rem;
  }

  /* Inputs/selects fill remaining space but allow refresh button beside them */
  .delivery-raid-select {
    flex: 1 1 0;
    min-width: 0;
  }

  /* Client subdomain input */
  .opendkp-client-input {
    width: auto;
    flex: 1 1 auto;
    text-align: left;
  }

  /* Duration input */
  .opendkp-duration-input {
    width: auto;
    flex: 1 1 auto;
  }

  /* Refresh button stays compact */
  .delivery-raid-refresh {
    flex: 0 0 auto;
  }

  /* Create Auctions button full width */
  #create-auctions-btn {
    flex: 1 1 100%;
  }

  /* Item list taller on mobile to use available space */
  .auction-items-list {
    max-height: 30vh;
  }

  /* Collapsible panel header font */
  .collapsible-panel-header {
    font-size: 0.82rem;
  }

  /* OpenDKP loot string pre — taller on mobile */
  #opendkp-text {
    max-height: calc(4em * 1.55 + 2rem);
  }
}

/* Mid-range: tablets / small laptops */
@media (min-width: 601px) and (max-width: 900px) {
  .modal-wide {
    max-width: 90vw;
  }

  .delivery-raid-row {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .opendkp-client-input {
    width: 140px;
  }

  .auction-items-list {
    max-height: 32vh;
  }
}
