:root {
  --rooc-primary: #4f46e5;
  --rooc-primary-dark: #3730a3;
  --rooc-primary-soft: #eef2ff;
  --rooc-accent: #0ea5e9;
  --rooc-success: #059669;
  --rooc-warning: #d97706;
  --rooc-danger: #dc2626;
  --rooc-ink: #172033;
  --rooc-muted: #667085;
  --rooc-canvas: #f5f7fb;
  --rooc-surface: #ffffff;
  --rooc-border: #e4e7ec;
  --rooc-sidebar: 272px;
  --rooc-radius: 1rem;
  --rooc-shadow: 0 12px 32px rgba(16, 24, 40, 0.07);
  --bs-primary: #4f46e5;
  --bs-primary-rgb: 79, 70, 229;
  --bs-link-color: #4338ca;
  --bs-link-hover-color: #312e81;
  --bs-body-color: #172033;
  --bs-body-bg: #f5f7fb;
  --bs-border-color: #e4e7ec;
  --bs-border-radius: 0.75rem;
  --bs-border-radius-lg: 1rem;
}

* {
  scrollbar-color: #cbd5e1 transparent;
  scrollbar-width: thin;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--rooc-canvas);
  color: var(--rooc-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9375rem;
  -webkit-font-smoothing: antialiased;
}

a,
button,
input,
select,
textarea,
[tabindex] {
  scroll-margin-top: 6rem;
}

:focus-visible {
  outline: 3px solid #4338ca !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 5px #fff !important;
}

.skip-link {
  position: fixed;
  z-index: 2000;
  top: 0.75rem;
  left: 0.75rem;
  transform: translateY(-180%);
  padding: 0.75rem 1rem;
  border-radius: 0.625rem;
  background: #111827;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.boot-screen {
  display: grid;
  min-height: 100vh;
  place-content: center;
  justify-items: center;
  padding: 2rem;
  text-align: center;
}

.brand-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(145deg, #6366f1, #4338ca);
  box-shadow: 0 9px 20px rgba(79, 70, 229, 0.24);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark-lg {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  font-size: 1.65rem;
}

.brand-mark-logo {
  overflow: hidden;
}

.brand-mark-logo img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: contain;
}

.brand-copy {
  min-width: 0;
  line-height: 1.15;
}

.bulk-member-textarea {
  min-height: 22rem;
  resize: vertical;
}

.bulk-match-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.bulk-match-summary .badge,
.bulk-match-card .badge,
.bulk-removed-panel .badge {
  padding: 0.45rem 0.65rem;
  font-weight: 650;
}

.bulk-match-card {
  padding: 1rem;
  border: 1px solid var(--rooc-border);
  border-radius: 0.875rem;
  background: var(--rooc-surface);
}

.bulk-status-added {
  border: 1px solid #a7f3d0;
  background: #ecfdf5;
  color: #047857;
}

.bulk-status-retained {
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.bulk-status-renamed {
  border: 1px solid #c7d2fe;
  background: var(--rooc-primary-soft);
  color: var(--rooc-primary-dark);
}

.bulk-status-removed {
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.bulk-removed-panel {
  padding: 1rem;
  border: 1px solid #fecaca;
  border-radius: 0.875rem;
  background: #fff7f7;
  color: #7f1d1d;
}

.removed-member-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.65rem;
  border: 1px solid #fecaca;
  border-radius: 999px;
  background: #fff;
  color: #991b1b;
  font-size: 0.8125rem;
  font-weight: 600;
}

.position-capacity-summary {
  display: grid;
  gap: 0.35rem 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid #c7d2fe;
  border-radius: 0.8rem;
  background: var(--rooc-primary-soft);
  color: var(--rooc-primary-dark);
  grid-template-columns: auto 1fr;
}

.position-capacity-summary span {
  color: #475467;
  text-align: right;
}

.position-capacity-summary progress {
  width: 100%;
  height: 0.45rem;
  grid-column: 1 / -1;
  accent-color: var(--rooc-primary);
}

.bulk-role-list {
  max-height: min(27rem, 48vh);
  overflow-y: auto;
  padding: 0.35rem;
  border: 1px solid var(--rooc-border);
  border-radius: 0.8rem;
  background: #f8fafc;
}

.bulk-role-option {
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 0.8rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.65rem;
  background: #fff;
  cursor: pointer;
}

.bulk-role-option + .bulk-role-option {
  margin-top: 0.3rem;
}

.bulk-role-option:hover {
  background: var(--rooc-primary-soft);
}

.bulk-role-option.is-current {
  background: #f2f4f7;
  color: #667085;
  cursor: default;
}

.bulk-role-option strong,
.bulk-role-option small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bulk-role-option small {
  margin-top: 0.15rem;
  color: #667085;
}

.empty-inline {
  display: flex;
  min-height: 96px;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  color: #667085;
}

.position-limit-card,
.purchase-limit-group {
  padding: 1rem;
  border: 1px solid var(--rooc-border);
  border-radius: 0.8rem;
  background: #f8fafc;
}

.position-limit-card {
  height: 100%;
}

.purchase-limit-heading {
  margin-bottom: 0.85rem;
}

.purchase-limit-heading h3 {
  margin: 0;
  color: #1d2939;
  font-size: 1rem;
  font-weight: 750;
}

.purchase-limit-heading p {
  margin: 0.3rem 0 0;
  color: #667085;
  font-size: 0.85rem;
}

.purchase-limit-group legend {
  float: none;
  width: auto;
  margin: 0 0 0.8rem;
  color: #344054;
  font-size: 0.9rem;
  font-weight: 750;
}

.purchase-limit-accordion .accordion-button {
  min-height: 52px;
  font-weight: 700;
}

.purchase-limit-accordion .accordion-body {
  padding: 1rem;
}

@media (max-width: 575.98px) {
  .bulk-member-textarea {
    min-height: 18rem;
  }

  .bulk-match-card,
  .bulk-removed-panel {
    margin-inline: -0.25rem;
    padding: 0.875rem;
  }

  .position-capacity-summary {
    grid-template-columns: 1fr;
  }

  .position-capacity-summary span {
    text-align: left;
  }

  .purchase-limit-group {
    padding: 0.85rem;
  }
}

.brand-copy strong,
.brand-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-copy strong {
  font-size: 0.97rem;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.brand-copy small {
  margin-top: 0.28rem;
  color: #94a3b8;
  font-size: 0.75rem;
}

.auth-layout {
  position: relative;
  display: grid;
  min-height: 100vh;
  overflow-x: hidden;
  grid-template-columns: minmax(0, 1.05fr) minmax(440px, 0.95fr);
  background: #fff;
}

.auth-story {
  position: relative;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 6.5rem);
  background:
    radial-gradient(circle at 78% 16%, rgba(56, 189, 248, 0.28), transparent 23rem),
    radial-gradient(circle at 18% 86%, rgba(129, 140, 248, 0.28), transparent 26rem),
    linear-gradient(145deg, #111827 0%, #1e1b4b 48%, #312e81 100%);
  color: #fff;
}

.auth-story::after {
  position: absolute;
  right: -12rem;
  bottom: -14rem;
  width: 34rem;
  height: 34rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  box-shadow: 0 0 0 5rem rgba(255, 255, 255, 0.025), 0 0 0 10rem rgba(255, 255, 255, 0.018);
  content: "";
}

.auth-story-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.auth-story-title {
  display: block;
  max-width: 620px;
  margin: 4rem 0 1.5rem;
  color: #fff;
  font-size: clamp(2.35rem, 5vw, 4.75rem);
  font-weight: 760;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.auth-story p:not(.auth-story-title) {
  max-width: 570px;
  color: #cbd5e1;
  font-size: 1.08rem;
  line-height: 1.7;
}

.auth-feature-list {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.auth-feature-list li {
  display: flex;
  align-items: center;
  min-height: 42px;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #e2e8f0;
  font-size: 0.82rem;
  font-weight: 650;
  backdrop-filter: blur(12px);
}

.auth-panel {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: clamp(1.5rem, 5vw, 5rem);
  background: #fff;
}

.auth-card {
  width: min(100%, 470px);
}

.auth-card .eyebrow {
  margin-bottom: 0.75rem;
  color: var(--rooc-primary);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.auth-card h1 {
  margin-bottom: 0.7rem;
  font-size: clamp(1.85rem, 4vw, 2.45rem);
  font-weight: 760;
  letter-spacing: -0.04em;
}

.auth-card > p {
  margin-bottom: 2rem;
  color: var(--rooc-muted);
  line-height: 1.6;
}

.form-label {
  margin-bottom: 0.5rem;
  color: #344054;
  font-size: 0.85rem;
  font-weight: 680;
}

.form-control,
.form-select {
  min-height: 48px;
  border-color: #d0d5dd;
  border-radius: 0.72rem;
  background-color: #fff;
}

textarea.form-control {
  min-height: 96px;
}

.form-control:focus,
.form-select:focus {
  border-color: #818cf8;
  box-shadow: 0 0 0 0.22rem rgba(79, 70, 229, 0.12);
}

.searchable-select {
  position: relative;
}

.searchable-select-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

.searchable-select-input {
  padding-right: 2.75rem;
  background-image: none;
}

.searchable-select-input::-webkit-search-cancel-button {
  display: none;
}

.searchable-select-indicator {
  position: absolute;
  z-index: 4;
  top: 24px;
  right: 1rem;
  color: #667085;
  pointer-events: none;
  transform: translateY(-50%);
}

.searchable-select-menu {
  position: absolute;
  z-index: 1065;
  top: calc(100% + 0.35rem);
  right: 0;
  left: 0;
  display: none;
  max-height: min(17rem, 42vh);
  overflow-y: auto;
  padding: 0.35rem;
  border: 1px solid #d0d5dd;
  border-radius: 0.72rem;
  background: #fff;
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.14);
}

.searchable-select.is-open .searchable-select-menu {
  display: block;
}

.searchable-select-option,
.searchable-select-empty {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: 0.6rem 0.75rem;
  border-radius: 0.52rem;
  color: #344054;
  font-size: 0.875rem;
  line-height: 1.35;
}

.searchable-select-option {
  cursor: pointer;
}

.searchable-select-option:hover,
.searchable-select-option.is-active {
  background: var(--rooc-primary-soft);
  color: var(--rooc-primary-dark);
}

.searchable-select-option[aria-selected="true"]::after {
  margin-left: auto;
  padding-left: 0.75rem;
  color: var(--rooc-primary);
  font-family: bootstrap-icons, sans-serif;
  content: "\f26e";
}

.searchable-select-option[aria-disabled="true"],
.searchable-select-empty {
  color: #98a2b3;
  cursor: default;
}

.input-group > .btn {
  min-width: 48px;
}

.form-text {
  color: #667085;
  font-size: 0.78rem;
}

.btn {
  --bs-btn-border-radius: 0.7rem;
  min-height: 48px;
  padding: 0.6rem 1rem;
  font-weight: 680;
}

.btn-lg {
  min-height: 50px;
  padding: 0.75rem 1.15rem;
}

.btn-primary {
  --bs-btn-bg: #4f46e5;
  --bs-btn-border-color: #4f46e5;
  --bs-btn-hover-bg: #4338ca;
  --bs-btn-hover-border-color: #4338ca;
  --bs-btn-active-bg: #3730a3;
  --bs-btn-active-border-color: #3730a3;
  --bs-btn-disabled-bg: #818cf8;
  --bs-btn-disabled-border-color: #818cf8;
}

.btn-soft-primary {
  border-color: transparent;
  background: var(--rooc-primary-soft);
  color: #4338ca;
}

.btn-soft-primary:hover {
  border-color: #c7d2fe;
  background: #e0e7ff;
  color: #3730a3;
}

.btn-icon {
  display: inline-grid;
  width: 48px;
  min-width: 48px;
  height: 48px;
  padding: 0;
  place-items: center;
  border-radius: 0.75rem;
}

.btn-close {
  width: 1.5rem;
  height: 1.5rem;
  padding: 0.75rem;
}

.dropdown-item {
  display: flex;
  min-height: 48px;
  align-items: center;
}

.app-sidebar {
  position: fixed;
  z-index: 1035;
  inset: 0 auto 0 0;
  display: flex;
  width: var(--rooc-sidebar);
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background: #111827;
  color: #f8fafc;
}

.sidebar-brand {
  display: flex;
  min-height: 82px;
  align-items: center;
  gap: 0.8rem;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.sidebar-scroll {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 1.25rem 0.85rem;
}

.nav-section-label {
  margin: 1.4rem 0.7rem 0.5rem;
  color: #64748b;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-section-label:first-child {
  margin-top: 0;
}

.app-sidebar .nav-link,
.mobile-navigation .nav-link {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.24rem;
  padding: 0.65rem 0.8rem;
  border-radius: 0.72rem;
  color: #aeb9cb;
  font-size: 0.88rem;
  font-weight: 620;
  text-decoration: none;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

.app-sidebar .nav-link:hover,
.mobile-navigation .nav-link:hover {
  background: rgba(255, 255, 255, 0.065);
  color: #fff;
}

.app-sidebar .nav-link.active,
.mobile-navigation .nav-link.active {
  background: linear-gradient(110deg, rgba(99, 102, 241, 0.28), rgba(79, 70, 229, 0.12));
  color: #fff;
}

.app-sidebar .nav-link.active::after,
.mobile-navigation .nav-link.active::after {
  width: 6px;
  height: 6px;
  margin-left: auto;
  border-radius: 50%;
  background: #818cf8;
  content: "";
}

.app-sidebar .nav-link i,
.mobile-navigation .nav-link i {
  width: 1.25rem;
  color: #8390a4;
  font-size: 1.1rem;
  text-align: center;
}

.app-sidebar .nav-link.active i,
.mobile-navigation .nav-link.active i {
  color: #a5b4fc;
}

.sidebar-user {
  padding: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.sidebar-user-card {
  display: flex;
  min-width: 0;
  min-height: 60px;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem;
  border-radius: 0.8rem;
  color: inherit;
  text-decoration: none;
}

.sidebar-user-card:hover {
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
}

.avatar {
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #e0e7ff, #c7d2fe);
  color: #3730a3;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.avatar-sm {
  width: 34px;
  height: 34px;
  font-size: 0.72rem;
}

.avatar-lg {
  width: 72px;
  height: 72px;
  font-size: 1.25rem;
}

.user-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.user-copy strong,
.user-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-copy strong {
  color: inherit;
  font-size: 0.82rem;
  font-weight: 700;
}

.user-copy span {
  margin-top: 0.2rem;
  color: #7f8ba0;
  font-size: 0.7rem;
}

.app-content {
  min-height: 100vh;
  margin-left: var(--rooc-sidebar);
}

.app-topbar {
  position: sticky;
  z-index: 1025;
  top: 0;
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem clamp(1rem, 3vw, 2.25rem);
  border-bottom: 1px solid rgba(228, 231, 236, 0.88);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
}

.topbar-context {
  min-width: 0;
}

.topbar-context .breadcrumb {
  margin: 0;
  font-size: 0.8rem;
}

.topbar-context .breadcrumb-item.active {
  max-width: 38vw;
  overflow: hidden;
  color: #475467;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.page-shell {
  width: min(100%, 1580px);
  margin: 0 auto;
  padding: clamp(0.9rem, 2vw, 1.5rem);
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.page-header h1 {
  margin: 0;
  color: #101828;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 760;
  letter-spacing: -0.035em;
}

.page-header p {
  max-width: 720px;
  margin: 0.3rem 0 0;
  color: var(--rooc-muted);
  font-size: 0.85rem;
  line-height: 1.45;
}

.page-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
}

.surface {
  border: 1px solid var(--rooc-border);
  border-radius: var(--rooc-radius);
  background: var(--rooc-surface);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.025);
}

.surface-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #edf0f3;
}

.surface-header h2,
.surface-header h3 {
  margin: 0;
  color: #101828;
  font-size: 1rem;
  font-weight: 720;
  letter-spacing: -0.012em;
}

.surface-header p {
  margin: 0.35rem 0 0;
  color: var(--rooc-muted);
  font-size: 0.8rem;
}

.surface-body {
  padding: 1rem;
}

.auction-event-tabs {
  display: grid;
  padding: 0.75rem 0.75rem 0;
  border-bottom-color: var(--rooc-border);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auction-event-tabs .nav-link {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border-radius: 0.75rem 0.75rem 0 0;
  color: #667085;
}

.auction-event-tabs .nav-link > i {
  font-size: 1.05rem;
}

.auction-event-tabs .nav-link span,
.auction-event-tabs .nav-link strong,
.auction-event-tabs .nav-link small {
  display: block;
}

.auction-event-tabs .nav-link strong {
  color: inherit;
  font-size: 0.83rem;
  font-weight: 760;
}

.auction-event-tabs .nav-link small {
  margin-top: 0.1rem;
  color: #98a2b3;
  font-size: 0.7rem;
}

.auction-event-tabs .nav-link.active {
  border-color: var(--rooc-border) var(--rooc-border) #fff;
  background: #fff;
  color: var(--rooc-primary-dark);
}

.auction-event-tabs .nav-link.active small {
  color: var(--rooc-primary);
}

.week-picker {
  padding: 1rem;
  border: 1px solid #e4e7ec;
  border-radius: 0.9rem;
  background: #fbfcfe;
}

.week-picker-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.week-picker-controls {
  display: flex;
  flex: 0 0 auto;
  gap: 0.4rem;
}

.week-picker-controls .btn-icon {
  width: 48px;
  min-width: 48px;
  padding-right: 0;
  padding-left: 0;
}

.week-picker-range {
  margin: 1.1rem 0 0.7rem;
  color: #344054;
  font-size: 0.82rem;
  font-weight: 720;
  text-align: center;
}

.week-picker-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.5rem;
}

.week-day {
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: 88px;
  place-items: center;
  align-content: center;
  gap: 0.15rem;
  padding: 0.55rem 0.25rem;
  border: 1px solid #e4e7ec;
  border-radius: 0.75rem;
  background: #f2f4f7;
  color: #98a2b3;
  line-height: 1;
}

.week-day:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.week-day.is-available {
  border-color: #c7d7fe;
  background: #f5f7ff;
  color: #344054;
  cursor: pointer;
}

.week-day.is-available:hover {
  border-color: var(--rooc-primary);
  background: var(--rooc-primary-soft);
}

.week-day.is-available:focus-visible {
  outline: 3px solid rgba(79, 70, 229, 0.22);
  outline-offset: 2px;
}

.week-day.is-selected {
  border-color: var(--rooc-primary);
  background: var(--rooc-primary);
  box-shadow: 0 5px 14px rgba(79, 70, 229, 0.2);
  color: #fff;
}

.week-day.is-today:not(.is-selected) {
  box-shadow: inset 0 0 0 2px #98a2b3;
}

.week-day-name {
  font-size: 0.66rem;
  font-weight: 760;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.week-day-number {
  font-size: 1.15rem;
  font-weight: 760;
}

.week-day-status {
  min-width: 0;
  overflow: hidden;
  font-size: 0.6rem;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.week-day.is-selected .week-day-status {
  color: rgba(255, 255, 255, 0.82);
}

.selected-event-date {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.75rem;
  padding: 0.65rem 0.8rem;
  border-radius: 0.65rem;
  background: #fff;
  color: #475467;
  font-size: 0.78rem;
  font-weight: 650;
}

.selected-event-date > i {
  color: var(--rooc-primary);
}

.run-calendar {
  padding: 1rem 1.15rem 1.15rem;
}

.run-calendar-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.run-calendar-range {
  color: #344054;
  font-size: 0.88rem;
  font-weight: 720;
}

.run-calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.5rem;
}

.run-calendar-day {
  display: flex;
  min-width: 0;
  min-height: 172px;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.6rem 0.55rem;
  border: 1px solid var(--rooc-border);
  border-radius: 0.75rem;
  background: #f8fafc;
}

.run-calendar-day.is-event-day {
  border-color: #c7d7fe;
  background: #f5f7ff;
}

.run-calendar-day.is-today {
  box-shadow: inset 0 0 0 2px var(--rooc-primary);
}

.run-calendar-day-head {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.run-calendar-day-name {
  color: #667085;
  font-size: 0.66rem;
  font-weight: 760;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.run-calendar-day-number {
  color: #344054;
  font-size: 1.02rem;
  font-weight: 760;
}

.run-calendar-today-tag {
  margin-left: auto;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  background: var(--rooc-primary);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 720;
  text-transform: uppercase;
}

.run-calendar-day-tags {
  display: flex;
  min-height: 1.2rem;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.event-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.14rem 0.45rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 760;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.event-tag-guild_league {
  background: #eef2ff;
  color: #4338ca;
}

.event-tag-emperium_overrun {
  background: #fffaeb;
  color: #b54708;
}

.run-calendar-day-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.run-card {
  position: relative;
  border: 1px solid var(--rooc-border);
  border-radius: 0.65rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.run-card-guild_league {
  border-left: 3px solid var(--rooc-primary);
}

.run-card-emperium_overrun {
  border-left: 3px solid var(--rooc-warning);
}

.run-card-main {
  display: block;
  min-width: 0;
  padding: 0.5rem 0.55rem;
  color: #344054;
  text-decoration: none;
}

.run-card-main:hover,
.run-card-main:focus-visible {
  color: var(--rooc-primary-dark);
}

.run-card:hover {
  border-color: var(--rooc-primary);
}

.run-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
}

.run-card-status {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #d0d5dd;
}

.run-card-status.open {
  background: var(--rooc-warning);
}

.run-card-status.result {
  background: #175cd3;
}

.run-card-status.finalized {
  background: var(--rooc-success);
}

.run-card-rank {
  display: block;
  overflow: hidden;
  margin-top: 0.3rem;
  font-size: 0.72rem;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.run-card-meta {
  display: block;
  margin-top: 0.1rem;
  color: #667085;
  font-size: 0.66rem;
  font-weight: 620;
}

.run-card-delete {
  position: absolute;
  right: 0.3rem;
  bottom: 0.3rem;
  width: 1.6rem;
  height: 1.6rem;
  font-size: 0.72rem;
}

.run-card-delete:hover,
.run-card-delete:focus-visible {
  background: #fef3f2;
  color: var(--rooc-danger);
}

.run-card-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.4rem 0.5rem;
  border: 1px dashed #c7d7fe;
  border-radius: 0.65rem;
  color: var(--rooc-primary-dark);
  font-size: 0.7rem;
  font-weight: 700;
  text-decoration: none;
}

.run-card-add:hover,
.run-card-add:focus-visible {
  border-style: solid;
  background: var(--rooc-primary-soft);
  color: var(--rooc-primary-dark);
}

.run-calendar-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.9rem;
}

.view-toggle-field .btn.active {
  border-color: var(--rooc-primary);
  background: var(--rooc-primary-soft);
  color: var(--rooc-primary-dark);
}

.btn-icon-only {
  padding-right: 0.55rem;
  padding-left: 0.55rem;
}

.stat-card {
  position: relative;
  height: 100%;
  overflow: hidden;
  padding: 0.9rem 1rem;
  border: 1px solid var(--rooc-border);
  border-radius: var(--rooc-radius);
  background: #fff;
}

.stat-card::after {
  position: absolute;
  top: -2.5rem;
  right: -2.5rem;
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  background: var(--stat-glow, rgba(79, 70, 229, 0.07));
  content: "";
}

.stat-card.stat-blue {
  --stat-bg: #eff8ff;
  --stat-color: #1570ef;
  --stat-glow: rgba(14, 165, 233, 0.08);
}

.stat-card.stat-amber {
  --stat-bg: #fffaeb;
  --stat-color: #dc6803;
  --stat-glow: rgba(245, 158, 11, 0.08);
}

.stat-card.stat-green {
  --stat-bg: #ecfdf3;
  --stat-color: #039855;
  --stat-glow: rgba(16, 185, 129, 0.08);
}

.stat-icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 0.8rem;
  background: var(--stat-bg, #eef2ff);
  color: var(--stat-color, #4f46e5);
  font-size: 1.15rem;
}

.stat-icon-sm {
  width: 38px;
  height: 38px;
}

.stat-icon-rank {
  width: 40px;
  height: 40px;
}

.stat-icon-success {
  --stat-bg: #ecfdf3;
  --stat-color: #039855;
}

.stat-icon-warning {
  --stat-bg: #fffaeb;
  --stat-color: #dc6803;
}

.stat-icon-info {
  --stat-bg: #eff8ff;
  --stat-color: #1570ef;
}

.stat-label {
  margin-top: 0.7rem;
  color: var(--rooc-muted);
  font-size: 0.74rem;
  font-weight: 650;
}

.stat-value {
  margin-top: 0.1rem;
  color: #101828;
  font-size: 1.5rem;
  font-weight: 770;
  letter-spacing: -0.04em;
}

.stat-meta {
  min-height: 1.1rem;
  margin-top: 0.35rem;
  color: #667085;
  font-size: 0.72rem;
}

.stat-card-compact {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.8rem;
}

.stat-card-compact .stat-icon {
  flex-shrink: 0;
}

.stat-card-compact .stat-card-text {
  min-width: 0;
}

.stat-card-compact .stat-label {
  margin-top: 0;
  line-height: 1.2;
}

.stat-card-compact .stat-value {
  font-size: 1.3rem;
  line-height: 1.15;
}

.stat-card-compact .stat-meta {
  min-height: 0;
  margin-top: 0.15rem;
}

.table {
  --bs-table-bg: transparent;
  --bs-table-border-color: #edf0f3;
  margin-bottom: 0;
  vertical-align: middle;
}

.table > :not(caption) > * > * {
  padding: 0.9rem 1rem;
}

.table thead th {
  border-bottom-width: 1px;
  background: #f9fafb;
  color: #667085;
  font-size: 0.7rem;
  font-weight: 780;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  white-space: nowrap;
}

.table tbody th,
.table tbody td {
  color: #344054;
  font-size: 0.84rem;
}

.table tbody tr:last-child > * {
  border-bottom-width: 0;
}

.table-hover > tbody > tr:hover > * {
  --bs-table-bg-state: #fafbff;
}

.row-title {
  color: #101828;
  font-weight: 690;
}

.row-subtitle {
  margin-top: 0.2rem;
  color: #667085;
  font-size: 0.75rem;
}

.status-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.58rem;
  border-radius: 999px;
  background: #f2f4f7;
  color: #475467;
  font-size: 0.7rem;
  font-weight: 750;
  white-space: nowrap;
}

.status-pill::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.status-pill.success {
  background: #ecfdf3;
  color: #027a48;
}

.status-pill.warning {
  background: #fffaeb;
  color: #b54708;
}

.status-pill.danger {
  background: #fef3f2;
  color: #b42318;
}

.status-pill.info {
  background: #eff8ff;
  color: #175cd3;
}

.role-badge {
  display: inline-flex;
  padding: 0.28rem 0.55rem;
  border: 1px solid #e0e7ff;
  border-radius: 0.45rem;
  background: #f5f3ff;
  color: #4338ca;
  font-size: 0.7rem;
  font-weight: 740;
}

.empty-state,
.error-state,
.loading-state {
  display: grid;
  min-height: 300px;
  place-content: center;
  justify-items: center;
  padding: 2.5rem 1.25rem;
  text-align: center;
}

.loading-state-compact {
  min-height: 180px;
}

.empty-state-icon,
.error-state-icon {
  display: grid;
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  place-items: center;
  border-radius: 1.1rem;
  background: #f2f4f7;
  color: #667085;
  font-size: 1.45rem;
}

.error-state-icon {
  background: #fef3f2;
  color: #d92d20;
}

.empty-state h2,
.empty-state h3,
.error-state h2,
.error-state h3 {
  margin: 0;
  color: #101828;
  font-size: 1.05rem;
  font-weight: 720;
}

.empty-state p,
.error-state p {
  max-width: 500px;
  margin: 0.55rem 0 1.25rem;
  color: #667085;
  line-height: 1.55;
}

.request-id {
  display: inline-block;
  margin-top: 0.65rem;
  padding: 0.3rem 0.5rem;
  border-radius: 0.35rem;
  background: #f2f4f7;
  color: #475467;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.68rem;
}

.skeleton {
  overflow: hidden;
  border-radius: 0.35rem;
  background: #eef1f5;
}

.skeleton::after {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  content: "";
  transform: translateX(-100%);
  animation: skeleton-shimmer 1.35s infinite;
}

.skeleton-icon {
  width: 44px;
  height: 44px;
}

.skeleton-label {
  width: 45%;
  height: 12px;
}

.skeleton-value {
  width: 65%;
  height: 30px;
}

@keyframes skeleton-shimmer {
  100% { transform: translateX(100%); }
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid #edf0f3;
  background: #fbfcfe;
}

.filter-bar .search-field {
  min-width: min(100%, 280px);
  flex: 1 1 260px;
}

.filter-bar .filter-field {
  min-width: 150px;
  flex: 0 1 190px;
}

.reward-catalog-grid {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(330px, 0.75fr) minmax(0, 1.75fr);
  gap: 1.5rem;
}

.reward-rank-panel {
  position: sticky;
  top: 94px;
  overflow: hidden;
}

.reward-event-tabs {
  display: grid;
  padding: 0.75rem 0.75rem 0;
  border-bottom-color: var(--rooc-border);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.reward-event-tabs .nav-link {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 0.7rem 0.7rem 0 0;
  color: #667085;
  font-size: 0.8rem;
  font-weight: 720;
  white-space: nowrap;
}

.reward-event-tabs .nav-link.active {
  border-color: var(--rooc-border) var(--rooc-border) #fff;
  color: var(--rooc-primary-dark);
}

.reward-event-tabs .badge {
  background: #f2f4f7;
  color: #667085;
  font-size: 0.65rem;
}

.reward-event-tabs .nav-link.active .badge {
  background: var(--rooc-primary-soft);
  color: var(--rooc-primary-dark);
}

.reward-rank-list {
  max-height: calc(100vh - 280px);
  min-height: 220px;
  overflow-y: auto;
}

.reward-rank-row {
  display: flex;
  min-height: 76px;
  align-items: center;
  border-bottom: 1px solid #edf0f3;
  background: #fff;
  transition: background 140ms ease, box-shadow 140ms ease;
}

.reward-rank-row[hidden] {
  display: none;
}

.reward-rank-row:last-of-type {
  border-bottom: 0;
}

.reward-rank-row:hover {
  background: #fafbff;
}

.reward-rank-row.is-selected {
  background: var(--rooc-primary-soft);
  box-shadow: inset 4px 0 0 var(--rooc-primary);
}

.reward-rank-select {
  display: flex;
  min-width: 0;
  min-height: 76px;
  flex: 1 1 auto;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 0.65rem 0.75rem 1rem;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.reward-rank-select .row-title,
.reward-rank-select .row-subtitle {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reward-rank-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 0.4rem;
  padding-right: 0.75rem;
}

.reward-rank-actions .btn-icon {
  width: 44px;
  min-width: 44px;
  height: 48px;
}

.reward-rank-empty {
  display: grid;
  min-height: 240px;
  place-content: center;
  justify-items: center;
  padding: 1.5rem;
  color: #667085;
  text-align: center;
}

.reward-rank-empty > i {
  margin-bottom: 0.7rem;
  color: #98a2b3;
  font-size: 1.4rem;
}

.reward-rank-empty strong {
  color: #344054;
}

.reward-rank-empty span {
  max-width: 240px;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  line-height: 1.5;
}

.reward-items-panel {
  min-width: 0;
}

.reward-appearance-order {
  width: 9rem;
}

.table thead .reward-appearance-order {
  white-space: normal;
}

.input-icon {
  position: relative;
}

.input-icon > i {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 0.9rem;
  color: #98a2b3;
  transform: translateY(-50%);
}

.input-icon > .form-control {
  padding-left: 2.5rem;
}

.metric-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.metric-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid #edf0f3;
}

.metric-list > div:first-child {
  padding-top: 0;
}

.metric-list > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.metric-list dt {
  color: #667085;
  font-size: 0.8rem;
  font-weight: 600;
}

.metric-list dd {
  margin: 0;
  color: #101828;
  font-weight: 720;
}

.assignment-page-grid {
  display: grid;
  align-items: start;
  grid-template-columns: repeat(auto-fill, minmax(min(400px, 100%), 1fr));
  gap: 0.6rem;
}

.assignment-page {
  padding: 0.8rem;
  border: 1px solid var(--rooc-border);
  border-radius: 0.9rem;
  background: #fff;
  scroll-margin-top: 9.5rem;
}

.assignment-page:focus {
  outline: none;
}

.bidder-option {
  min-height: 52px;
}

.bid-exclusion-item {
  background: #fff;
}

.assignment-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.55rem;
}

.assignment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.assignment-card {
  position: relative;
  min-height: 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid #e4e7ec;
  border-radius: 0.8rem;
  background: #fafbfc;
  font-size: 0.9rem;
}

.assignment-slot {
  margin-bottom: 0.2rem;
  color: #98a2b3;
  font-size: 0.68rem;
  font-weight: 780;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.assignment-item {
  color: #101828;
  font-weight: 710;
  line-height: 1.3;
}

.assignment-member {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.15rem;
  margin-top: 0.3rem;
  color: #475467;
  font-size: 0.78rem;
}

/* A slot every bidder is barred from by a personal purchase limit. It keeps its
   place in the listing, so it has to read as a gap rather than an assignment. */
.assignment-card-unassigned {
  border-style: dashed;
  border-color: #fec84b;
  background: #fffcf5;
}

.assignment-card-unassigned .assignment-slot {
  color: #b54708;
}

.assignment-bid {
  margin-top: 0.2rem;
}

.assignment-member .position-badge {
  margin-left: 0.4rem;
}

.auction-summary-line {
  color: #101828;
  font-size: 0.95rem;
  font-weight: 730;
}

.auction-summary-items {
  color: #475467;
  font-weight: 620;
}

.auction-section-header {
  position: sticky;
  z-index: 5;
  top: 72px;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  border-radius: var(--rooc-radius) var(--rooc-radius) 0 0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
}

.auction-section.is-collapsed .auction-section-header {
  position: static;
  border-bottom-color: transparent;
}

.auction-section-headline {
  min-width: 0;
}

.auction-section-title {
  margin: 0;
}

.auction-section-toggle {
  display: inline-flex;
  min-height: 2.5rem;
  align-items: center;
  gap: 0.5rem;
  margin-left: -0.5rem;
  padding: 0.25rem 0.5rem;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: #101828;
  font-size: 1rem;
  font-weight: 720;
  letter-spacing: -0.012em;
}

.auction-section-toggle:hover,
.auction-section-toggle:focus-visible {
  background: #eef2f6;
}

.auction-section-caret {
  color: #667085;
  font-size: 0.85rem;
  transition: transform 160ms ease;
}

.auction-section.is-collapsed .auction-section-caret {
  transform: rotate(-90deg);
}

.auction-section-meta {
  margin: 0.15rem 0 0;
  color: var(--rooc-muted);
  font-size: 0.78rem;
}

.auction-section-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.4rem;
}

.auction-section-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.jump-bar {
  display: flex;
  min-width: 0;
  max-width: 100%;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.jump-bar-label {
  flex-shrink: 0;
  color: var(--rooc-muted);
  font-size: 0.7rem;
  font-weight: 760;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.jump-chips {
  display: flex;
  overflow-x: auto;
  max-width: 100%;
  flex-wrap: nowrap;
  gap: 0.3rem;
  padding-bottom: 0.15rem;
}

.jump-chip {
  display: inline-flex;
  min-width: 2.1rem;
  height: 2.1rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0 0.5rem;
  border: 1px solid #d0d5dd;
  border-radius: 0.5rem;
  background: #fff;
  color: #344054;
  font-size: 0.76rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.jump-chip:hover,
.jump-chip:focus-visible {
  border-color: var(--rooc-primary);
  background: var(--rooc-primary-soft);
  color: var(--rooc-primary-dark);
}

.jump-chip-name {
  max-width: 9.5rem;
}

.jump-chip-label {
  overflow: hidden;
  text-overflow: ellipsis;
}

.jump-chip-count {
  color: #667085;
  font-size: 0.68rem;
  font-weight: 760;
}

.is-jump-target {
  border-color: var(--rooc-primary) !important;
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.25);
}

.count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: #e0f2fe;
  color: #026aa2;
  font-size: 0.72rem;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
}

.position-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.5rem;
  border: 1px solid transparent;
  border-radius: 0.45rem;
  font-size: 0.64rem;
  font-weight: 760;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.position-badge-sm {
  padding: 0.12rem 0.4rem;
  font-size: 0.58rem;
}

/* Badges that trail a name inside a table cell or a heading need the space the
   flex rows give theirs. */
.row-title .position-badge,
.matrix-table th .position-badge {
  margin-left: 0.35rem;
}

.position-badge-member {
  border-color: #e4e7ec;
  background: #f2f4f7;
  color: #475467;
}

.position-badge-leader {
  border-color: #fedf89;
  background: #fef0c7;
  color: #b54708;
}

.position-badge-vice_leader {
  border-color: #fcceee;
  background: #fce7f6;
  color: #c11574;
}

.position-badge-officer {
  border-color: #c7d7fe;
  background: #e0eaff;
  color: #3538cd;
}

.btn-ghost-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  padding: 0;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: #667085;
}

.btn-ghost-icon:hover,
.btn-ghost-icon:focus-visible {
  background: #eef2f6;
  color: #101828;
}

.btn-ghost-icon-sm {
  width: 1.5rem;
  height: 1.5rem;
  font-size: 0.75rem;
}

.name-only-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(215px, 100%), 1fr));
  gap: 0.5rem;
}

.name-only-card {
  padding: 0.55rem 0.65rem;
  border: 1px solid #e4e7ec;
  border-radius: 0.8rem;
  background: #fafbfc;
  scroll-margin-top: 9.5rem;
}

.name-only-card:focus,
.bidder-name-card:focus {
  outline: none;
}

.member-header {
  flex-wrap: wrap;
}

.member-name-text {
  flex: 1 1 auto;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.name-only-card .avatar,
.bidder-name-card .avatar,
.name-only-card .count-badge,
.bidder-name-card .count-badge,
.name-only-card .position-badge,
.bidder-name-card .position-badge,
.name-only-card .btn-ghost-icon,
.bidder-name-card .btn-ghost-icon {
  flex-shrink: 0;
}

.name-only-cost {
  margin-top: 0.4rem;
  padding-top: 0.4rem;
  border-top: 1px solid #eaecf0;
}

.bidder-name-grid {
  display: grid;
  align-items: start;
  grid-template-columns: repeat(auto-fill, minmax(min(255px, 100%), 1fr));
  gap: 0.65rem;
}

.bidder-name-card {
  min-width: 0;
  padding: 0.75rem;
  border: 1px solid #e4e7ec;
  border-radius: 0.9rem;
  background: #fafbfc;
  scroll-margin-top: 9.5rem;
}

.bidder-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.bidder-item-name {
  flex: 1 1 auto;
  min-width: 0;
  padding-left: 0.5rem;
  border-left: 3px solid currentColor;
  font-size: 0.82rem;
  font-weight: 640;
  overflow-wrap: anywhere;
}

.bidder-item-row .btn-ghost-icon {
  flex-shrink: 0;
}

.slot-chip {
  flex-shrink: 0;
  padding: 0.15rem 0.55rem;
  border: 1px solid #d0d5dd;
  border-radius: 999px;
  background: #fff;
  color: #344054;
  font-size: 0.7rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.totals-chip {
  display: inline-flex;
  padding: 0.25rem 0.6rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: #fff;
  font-size: 0.72rem;
  font-weight: 660;
}

/* An unassigned reward the operator can tick before handing it out. */
.floating-pick {
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}

.floating-pick .form-check-input {
  width: 0.85rem;
  height: 0.85rem;
  margin: 0;
  flex: none;
}

.floating-pick:has(input:checked) {
  box-shadow: inset 0 0 0 2px currentColor;
}

.fairness-switch {
  padding: 0.9rem 1rem;
  border: 1px solid #e4e7ec;
  border-radius: 0.8rem;
  background: #f8fafc;
  color: #475467;
}

/* Dialogs that ask for several small decisions at once stay compact enough to
   fit without scrolling. */
.fairness-switch-compact {
  padding: 0.6rem 0.75rem;
}

.fairness-switch-compact .form-text {
  font-size: 0.78rem;
  line-height: 1.35;
}

.modal-form-compact .form-label {
  margin-bottom: 0.25rem;
}

.modal-form-compact .form-text {
  margin-top: 0.25rem;
}

/* The bidder control keeps a usable width; on a narrow phone the re-pick button
   wraps below it instead of squeezing it. */
.remove-item-pick > .flex-grow-1 {
  min-width: 12rem;
}

.item-color-0 { color: #157f3d; }
.item-color-1 { color: #6d28d9; }
.item-color-2 { color: #0e7490; }
.item-color-3 { color: #b45309; }
.item-color-4 { color: #be185d; }
.item-color-5 { color: #1d4ed8; }


.progress-thin {
  display: block;
  width: 100%;
  height: 7px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: #eaecf0;
  appearance: none;
}

.progress-thin .progress-bar {
  border-radius: inherit;
  background: linear-gradient(90deg, #4f46e5, #7c3aed);
}

.progress-thin::-webkit-progress-bar {
  border-radius: 999px;
  background: #eaecf0;
}

.progress-thin::-webkit-progress-value {
  border-radius: 999px;
  background: linear-gradient(90deg, #4f46e5, #7c3aed);
}

.progress-thin::-moz-progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, #4f46e5, #7c3aed);
}

.progress-compact {
  width: 64px;
  flex: 0 0 64px;
}

.timeline {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  position: absolute;
  top: 0.55rem;
  bottom: 0.55rem;
  left: 0.48rem;
  width: 1px;
  background: #e4e7ec;
  content: "";
}

.timeline-item {
  position: relative;
  padding: 0 0 1.15rem 2rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  z-index: 1;
  top: 0.35rem;
  left: 0.18rem;
  width: 10px;
  height: 10px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #818cf8;
  box-shadow: 0 0 0 2px #c7d2fe;
}

.timeline-title {
  color: #344054;
  font-size: 0.82rem;
  line-height: 1.45;
}

.timeline-time {
  margin-top: 0.25rem;
  color: #98a2b3;
  font-size: 0.7rem;
}

.transfer-dropzone {
  display: grid;
  min-height: 220px;
  place-content: center;
  justify-items: center;
  padding: 2rem;
  border: 1.5px dashed #a5b4fc;
  border-radius: 1rem;
  background: #fafaff;
  text-align: center;
  transition: border-color 150ms ease, background 150ms ease;
}

.transfer-dropzone.is-dragging {
  border-color: #4f46e5;
  background: #eef2ff;
}

.transfer-dropzone i {
  color: #6366f1;
  font-size: 2rem;
}

.transfer-dropzone h3 {
  margin: 0.85rem 0 0.35rem;
  font-size: 1rem;
  font-weight: 720;
}

.transfer-dropzone p {
  max-width: 430px;
  margin: 0 0 1rem;
  color: #667085;
  font-size: 0.8rem;
}

.preview-summary {
  border: 1px solid #c7d2fe;
  border-radius: 0.9rem;
  background: #f8f9ff;
  padding: 1.2rem;
}

.callout {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid #fedf89;
  border-radius: 0.8rem;
  background: #fffaeb;
  color: #7a2e0e;
  font-size: 0.8rem;
  line-height: 1.5;
}

.callout.info {
  border-color: #b2ddff;
  background: #eff8ff;
  color: #1849a9;
}

.callout.danger {
  border-color: #fecdca;
  background: #fef3f2;
  color: #912018;
}

.modal-content {
  overflow: hidden;
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 24px 64px rgba(16, 24, 40, 0.2);
}

.modal-header,
.modal-footer {
  border-color: #eaecf0;
  padding: 1.05rem 1.25rem;
}

.modal-body {
  padding: 1.25rem;
}

.toast {
  border: 1px solid rgba(208, 213, 221, 0.9);
  border-radius: 0.8rem;
  box-shadow: var(--rooc-shadow);
}

.toast-icon {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 0.6rem;
  background: #ecfdf3;
  color: #027a48;
}

.toast-icon.danger {
  background: #fef3f2;
  color: #b42318;
}

.audit-details {
  max-height: 260px;
  margin: 0;
  overflow: auto;
  padding: 0.8rem;
  border-radius: 0.55rem;
  background: #101828;
  color: #d0d5dd;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  white-space: pre-wrap;
}

.pagination .page-link {
  display: grid;
  min-width: 48px;
  min-height: 48px;
  place-items: center;
  border-color: #e4e7ec;
  color: #344054;
}

.pagination .active > .page-link {
  border-color: #4f46e5;
  background: #4f46e5;
  color: #fff;
}

.mobile-navigation.offcanvas {
  width: min(88vw, 320px);
  background: #111827;
  color: #fff;
}

.mobile-navigation .offcanvas-header {
  min-height: 76px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-navigation .btn-close {
  filter: invert(1) grayscale(1);
}

.mobile-navigation .offcanvas-body {
  padding: 1rem;
}

.mobile-navigation .offcanvas-footer {
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sensitive-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid #c7d2fe;
  border-radius: 0.8rem;
  background: #f5f3ff;
  color: #312e81;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1rem;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.section-divider {
  height: 1px;
  margin: 1.5rem 0;
  border: 0;
  background: #eaecf0;
}

.scroll-panel-tall {
  max-height: 540px;
  overflow: auto;
}

.sticky-panel {
  top: 94px;
}

.bidder-order {
  width: 24px;
}

.logo-preview {
  width: 112px;
  height: 112px;
}

.logo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.min-w-0 {
  min-width: 0;
}

.place-items-center {
  place-items: center;
}

.form-narrow {
  max-width: 560px;
}

/* A checkbox that filters the list beside it. Bootstrap's `.form-check` floats the
   box against a padded label, which the 44px touch-target rules below then pull out
   of line with the text; a flex row keeps the two centred on each other and still
   gives the label a comfortable height to tap. */
.filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  cursor: pointer;
}

/* The box keeps the size it has in the member pick lists rather than shrinking with
   the small print beside it. */
.filter-toggle .form-check-input {
  flex: none;
  width: 1rem;
  height: 1rem;
  margin: 0;
}

.form-check {
  min-height: 48px;
}

.form-check-label {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.sticky-actions {
  position: sticky;
  z-index: 10;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin: 1.25rem -1rem -1rem;
  padding: 0.85rem 1rem;
  border-top: 1px solid #eaecf0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
}

.text-muted {
  color: #667085 !important;
}

@media (max-width: 1199.98px) {
  .reward-catalog-grid { grid-template-columns: 1fr; }
  .reward-rank-panel { position: static; }
  .reward-rank-list { max-height: 420px; }
}

@media (max-width: 1199.98px) and (min-width: 992px) {
  .run-calendar-days { gap: 0.4rem; }
  .run-calendar-day { padding: 0.5rem 0.45rem; }
}

@media (max-width: 991.98px) {
  .auction-section-header { position: static; }
  .jump-bar {
    width: 100%;
    margin-left: 0;
  }
  .run-calendar-days { grid-template-columns: 1fr; }
  .run-calendar-day { min-height: 0; }
  .run-calendar-day:not(.is-event-day):not(.is-today) .run-calendar-day-body:empty { display: none; }
  .run-calendar-day-body {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
  .auth-layout { display: block; }
  .auth-story { display: none; }
  .auth-panel {
    position: relative;
    min-height: 100vh;
    background:
      radial-gradient(circle at 100% 0, rgba(99, 102, 241, 0.13), transparent 20rem),
      #fff;
  }
  .app-sidebar { display: none; }
  .app-content { margin-left: 0; }
  .app-topbar { min-height: 66px; }
}

@media (max-width: 767.98px) {
  .page-shell { padding: 1rem; }
  .page-header {
    align-items: stretch;
    flex-direction: column;
    margin-bottom: 1.15rem;
  }
  .page-actions { justify-content: stretch; }
  .page-actions .btn { flex: 1 1 auto; }
  .surface-header { padding: 1rem; }
  .surface-body { padding: 1rem; }
  .filter-bar { padding: 0.85rem; }
  .filter-bar .filter-field { flex: 1 1 140px; }
  .mobile-card-table thead { display: none; }
  .mobile-card-table,
  .mobile-card-table tbody,
  .mobile-card-table tr,
  .mobile-card-table th,
  .mobile-card-table td { display: block; width: 100%; }
  .mobile-card-table tbody { padding: 0.75rem; }
  .mobile-card-table tbody tr {
    margin-bottom: 0.75rem;
    overflow: hidden;
    border: 1px solid #e4e7ec;
    border-radius: 0.8rem;
    background: #fff;
  }
  .mobile-card-table tbody tr:last-child { margin-bottom: 0; }
  .mobile-card-table tbody th,
  .mobile-card-table tbody td {
    display: grid;
    min-height: 48px;
    grid-template-columns: minmax(92px, 34%) 1fr;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.85rem;
    border-bottom: 1px solid #f0f1f3;
    text-align: right;
  }
  .mobile-card-table tbody th::before,
  .mobile-card-table tbody td::before {
    color: #667085;
    content: attr(data-label);
    font-size: 0.68rem;
    font-weight: 760;
    letter-spacing: 0.035em;
    text-align: left;
    text-transform: uppercase;
  }
  .mobile-card-table tbody th:last-child,
  .mobile-card-table tbody td:last-child { border-bottom: 0; }
  .mobile-card-table .table-actions { justify-content: flex-end; }
  .table-responsive { border-radius: inherit; }
  .assignment-grid { grid-template-columns: 1fr; }
  .assignment-card { min-height: 0; }
  .reward-rank-list { max-height: none; }
  .sticky-actions { margin-right: -1rem; margin-bottom: -1rem; margin-left: -1rem; }
  .auth-panel { padding: 1.25rem; }
  .week-picker-heading { align-items: stretch; flex-direction: column; }
  .week-picker-controls { width: 100%; }
  .week-picker-controls .btn:not(.btn-icon) { flex: 1 1 auto; }
  .week-picker-days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 479.98px) {
  .page-actions { flex-direction: column; }
  .page-actions .btn { width: 100%; }
  .topbar-context { display: none; }
  .topbar-actions { margin-left: auto; }
  .filter-bar .filter-field { flex-basis: 100%; }
  .modal-dialog { margin: 0.5rem; }
  .toast-container { right: 0 !important; left: 0 !important; padding: 0.75rem !important; }
  .toast { width: 100%; }
  .auction-event-tabs { padding-right: 0.5rem; padding-left: 0.5rem; }
  .auction-event-tabs .nav-link { gap: 0.4rem; padding-right: 0.4rem; padding-left: 0.4rem; }
  .auction-event-tabs .nav-link strong { font-size: 0.74rem; }
  .auction-event-tabs .nav-link small { font-size: 0.62rem; }
  .week-picker { padding: 0.75rem; }
  .week-picker-days { gap: 0.4rem; }
  .week-day { min-height: 78px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* A matrix of members against items: the member column stays put while the item
   columns scroll, and the counts line up as figures rather than prose. */
.matrix-table th[scope='row'] {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--rooc-surface);
  white-space: nowrap;
}

.matrix-table td {
  font-variant-numeric: tabular-nums;
}

.matrix-table thead th:not(:first-child) {
  white-space: normal;
  min-width: 5.5rem;
}

.matrix-table tfoot th[scope='row'],
.matrix-table tfoot td {
  border-top: 2px solid var(--rooc-border);
}

/* The frame a report is printed from. It is never meant to be seen: it carries its
   own document and stylesheet, and only the print dialog ever renders it. */
.print-frame {
  position: fixed;
  width: 0;
  height: 0;
  border: 0;
  visibility: hidden;
}

@media print {
  .app-sidebar,
  .app-topbar,
  .page-actions,
  .filter-bar,
  .btn,
  /* Fixed positioning is laid out into the page box, so the skip link would
     otherwise print over the content. */
  .skip-link,
  .print-frame,
  .toast-container { display: none !important; }
  .app-content { margin: 0; }
  .page-shell { width: 100%; max-width: none; padding: 0; }
  body { background: #fff; }
  .surface,
  .stat-card { break-inside: avoid; box-shadow: none; }
  /* Printing the whole page still has to cope with the matrix: nothing is cut off at
     the edge of a scroll box, and a long roster breaks across sheets with its column
     headings repeated. Exporting the report alone uses its own document instead. */
  .table-responsive { overflow: visible !important; }
  .matrix-table { break-inside: auto; }
  .matrix-table thead { display: table-header-group; }
  .matrix-table tr { break-inside: avoid; }
  .matrix-table th[scope='row'] { position: static; }
}
