*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg-dark: #0a0a0a;
  --card-bg: #1a1a1a;
  --accent-red: #cf3a3a;
  --text-main: #e0e0e0;
  --border: #444;
  --sidebar-width: 400px;
  --transition-smooth: all 0.2s ease;
}

html,
body {
  height: 100%;
  /* Ensure html and body take full height */
  margin: 0;
  overflow: hidden;
}

body {
  background-color: var(--bg-dark);
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.dashboard {
  display: grid;
  grid-template-areas:
    "header header"
    "sidebar main"
    "footer footer";
  grid-template-columns: var(--sidebar-width) 1fr;
  grid-template-rows: auto 1fr auto;
  width: 100%;
  height: 100vh;
  gap: 12px;
  padding: 12px;
  box-sizing: border-box;
  flex: 1;
  min-height: 0;
  background: var(--bg-dark);
}

.logged-out .header {
  display: none;
}

.logged-out .dashboard {
  grid-template-areas:
    "main"
    "footer";
  grid-template-columns: 1fr;
  grid-template-rows: 1fr auto;
}

.header {
  grid-area: header;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.sidebar-toggle {
  display: none;
  background: none;
  color: var(--text-main);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 0.85em;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
}

.sidebar-toggle:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
}

.hamburger-line {
  width: 16px;
  height: 2px;
  background: currentColor;
  display: block;
  border-radius: 2px;
}

.header h2 {
  font-size: 1.2rem;
  letter-spacing: 0.5px;
  color: #fff;
}

.app-title {
  margin: 0;
  font-weight: 700;
}

.app-title-line {
  display: inline;
}

.login-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  margin-right: 5px;
}

.header-nav a {
  color: #a0a0a0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.header-nav a:hover {
  color: #fff;
}

.header-nav .sep {
  color: #a0a0a0;
  opacity: 0.3;
  font-size: 0.7rem;
}

.login-controls #status {
  font-size: 0.85rem;
  white-space: nowrap;
}

.btn-logout {
  padding: 8px 18px;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.7225rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-logout:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.item-type-bubble {
  cursor: default;
  white-space: nowrap;
  flex-shrink: 0;
}

.sidebar {
  grid-area: sidebar;
  background-color: var(--card-bg);
  border-radius: 5px;
  padding: 0;
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

/* Collapsible Panel Styles */
.sidebar-panel {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--border);
  transition: var(--transition-smooth);
  min-height: 0;
}

.sidebar-panel:not(.is-collapsed) {
  flex: 1;
}

.sidebar-panel.is-collapsed {
  flex: 0 0 auto;
}

.sidebar-panel:last-child {
  border-bottom: none;
}

.sidebar-panel.is-collapsed .panel-content {
  display: none;
}

.sidebar-panel .panel-header {
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #262626;
  user-select: none;
  transition: background 0.2s ease;
}

.sidebar-panel .panel-header:hover {
  background: #333;
}

.sidebar-panel .panel-header h3 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.sidebar-panel .panel-content {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.panel-toggle-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.sidebar-panel.is-collapsed .panel-toggle-icon {
  transform: rotate(-90deg);
}

fieldset.is-collapsed>*:not(legend) {
  display: none !important;
}

fieldset legend {
  cursor: pointer;
  user-select: none;
}

.fieldset-toggle-icon {
  display: inline-block;
  margin-left: 8px;
  font-size: 0.8em;
  transition: transform 0.3s ease;
}

fieldset.is-collapsed .fieldset-toggle-icon {
  transform: rotate(-90deg);
}

.splash-screen {
  grid-area: main;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0a0a0a;
  padding: 0;
  overflow: hidden;
  position: relative;
}

.splash-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 1;
}

.splash-container {
  display: flex;
  width: 100%;
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 5;
}

.splash-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px;
  z-index: 10;
  width: 100%;
}

@media (min-width: 901px) {
  .splash-left {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    grid-template-areas:
      "logo image"
      "title image"
      "subtitle image"
      "login image";
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    gap: 0 60px;
    padding: 80px;
  }

  .splash-logo {
    grid-area: logo;
    align-self: end;
  }

  .hero-title {
    grid-area: title;
  }

  .hero-subtitle {
    grid-area: subtitle;
    align-self: start;
  }

  .login-box {
    grid-area: login;
    align-self: start;
  }

  .splash-right {
    grid-area: image;
    display: flex;
    align-items: center;
  }
}

.splash-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}

.splash-logo .logo-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  color: var(--accent-red);
}

.logo-icon svg {
  width: 100%;
  height: 100%;
}

.logo-text {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 2px;
  color: #fff;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  margin: 0;
  line-height: 1;
  background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #a0a0a0;
  margin-bottom: 40px;
  max-width: 400px;
  line-height: 1.6;
}

.login-box {
  width: 100%;
  max-width: 480px;
}

.input-wrapper {
  position: relative;
  margin-bottom: 24px;
}

.input-wrapper input {
  width: 100%;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  color: #fff;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.input-wrapper input:focus {
  outline: none;
  border-color: #4a90e2;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 20px rgba(74, 144, 226, 0.2);
}



.action-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 30px;
}

.btn-primary {
  padding: 14px 40px;
  background: #007aff;
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #0084ff;
  box-shadow: 0 6px 20px rgba(0, 122, 255, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  padding: 14px 30px;
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  font-weight: 400;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}

.splash-footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: #666;
}

.splash-footer-links a {
  color: #a0a0a0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.splash-footer-links a:hover {
  color: #fff;
}

.splash-footer-links .sep {
  opacity: 0.3;
}

.splash-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.image-perspective-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-perspective-box:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.app-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0a0a0a 0%, transparent 40%, transparent 100%);
  z-index: 1;
}

/* Logo icon in header */
.logo-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
}

.logo-link:hover,
.logo-link:active,
.logo-link:focus {
  text-decoration: none;
  color: inherit;
  outline: none;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-area .logo-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--accent-red);
}


.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.panel-title-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-panel .panel-header .item-selection-title {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.panel-title-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.reset-btn {
  padding: 8px 18px;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.7225rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.reset-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.main-content {
  grid-area: main;
  display: grid;
  grid-template-areas:
    "chart"
    "table";
  grid-template-columns: 1fr;
  grid-template-rows: 1.2fr 0.8fr;
  gap: 12px;
  overflow-y: auto;
  position: relative;
}

.selection-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  color: var(--text-main);
  font-size: 1.5rem;
  font-weight: 600;
  border-radius: 8px;
  pointer-events: none;
  backdrop-filter: blur(2px);
}

.is-hidden {
  display: none !important;
}

.footer {
  grid-area: footer;
  padding: 6px 10px;
  width: 100%;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  font-size: 0.7em;
  flex-wrap: wrap;
}

.footer-item {
  display: inline-flex;
  align-items: center;
}

.footer-item:not(:last-child)::after {
  content: "|";
  margin: 0 8px;
}

.chart {
  grid-area: chart;
  /* This might not be used anymore, review script.js */
  background-color: var(--card-bg);
  border-radius: 5px;
  padding: 10px;
  border: 1px solid var(--border);
}

.predictor {
  grid-area: chart;
  background-color: var(--card-bg);
  border-radius: 5px;
  padding: 10px;
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.chart-title {
  margin: 0 0 8px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 12px;
}

.chart-title-brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.chart-brand-icon {
  width: 20px;
  height: 20px;
  color: var(--accent-red);
  flex-shrink: 0;
}

.chart-brand-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.chart-brand-text {
  color: #f2f2f2;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1;
  font-size: 0.72rem;
}

.chart-brand-text-desktop {
  display: inline-grid;
  gap: 2px;
}

.chart-brand-line {
  display: block;
  white-space: nowrap;
}

.chart-brand-text-mobile {
  display: none;
  white-space: nowrap;
}

.chart-title-left,
.chart-title-right {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.chart-title-left {
  justify-self: center;
  justify-items: center;
  text-align: center;
}

.chart-title-right {
  justify-items: end;
  text-align: right;
}

.chart-item-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #f2f2f2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chart-item-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chart-item-name.chart-rarity-yellow {
  color: #d9c74f;
}

.chart-item-name.chart-rarity-orange {
  color: #d18a2f;
}

.chart-item-name.chart-rarity-red {
  color: #d96a6a;
}

.chart-filter-line {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 20px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
}

.chart-filter-label {
  flex-shrink: 0;
  color: #9b9b9b;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.chart-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: #d8d8d8;
  font-size: 0.75rem;
  line-height: 1.2;
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chart-filter-pill strong {
  color: #f4f4f4;
  font-weight: 600;
}

.chart-no-filter-text {
  color: #a9a9a9;
  font-size: 0.8rem;
  font-style: italic;
}

.chart-duration-line,
.chart-count-line {
  color: #cfcfcf;
  font-size: 0.82rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chart-count-line {
  color: #efefef;
  font-weight: 600;
}

.item-details-panel {
  grid-area: item-details;
  background-color: var(--card-bg);
  border-radius: 5px;
  padding: 10px;
  border: 1px solid var(--border);
  overflow-y: auto;
  overflow-x: hidden;
}

.panel-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 10px 0;
}

.table-panel {
  grid-area: table;
}

.tabulator a {
  color: #f0f0f0;
  text-decoration: underline;
}

.tabulator a:hover {
  color: #ffffff;
}

.chart-container {
  flex: 1;
  min-height: 0;
  position: relative;
  /* Needed for Chart.js responsiveness */
}

.chart-capture-btn {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 54px;
  height: 54px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: linear-gradient(160deg, #2b2b2b, #1e1e1e);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
  transition: transform 0.16s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  z-index: 15;
}

.chart-capture-btn svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.chart-capture-btn:hover {
  border-color: #6a6a6a;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.5);
}

.chart-capture-btn:active {
  transform: translateY(0);
}

.chart-capture-btn:focus-visible {
  outline: 2px solid var(--accent-red);
  outline-offset: 2px;
}

.chart-capture-btn.is-busy,
.chart-capture-btn:disabled {
  cursor: wait;
  opacity: 0.8;
}

.chart-capture-btn.is-success {
  border-color: var(--accent-red);
  box-shadow: 0 0 0 2px rgba(207, 58, 58, 0.2), 0 8px 20px rgba(0, 0, 0, 0.45);
}

.chart-capture-btn.is-error {
  border-color: var(--accent-red);
  background: #2a1616;
}

#ui-toast-root {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 2000;
  display: grid;
  gap: 8px;
  pointer-events: none;
}

.ui-toast {
  min-width: 220px;
  max-width: 320px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(20, 20, 20, 0.95);
  color: var(--text-main);
  padding: 10px 12px;
  font-size: 0.86rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  animation: toast-in 0.2s ease-out;
}

.ui-toast--success {
  border-color: #686868;
}

.ui-toast--error {
  border-color: var(--accent-red);
  background: rgba(40, 18, 18, 0.95);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#item-selection-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
  flex-grow: 1;
  /* Allow item-selection-container to take available space in sidebar */
}

#item-filter-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
}

#item-filter-container legend {
  padding: 0 6px;
  font-size: 0.85em;
  color: var(--text-main);
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.item-type-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.item-type-pill input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.item-type-pill span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #222;
  color: var(--text-main);
  font-size: 0.8em;
  font-weight: 400;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.item-type-pill span:hover {
  border-color: #9d2a2a;
}

.item-type-pill input[type="checkbox"]:checked + span {
  background: #8f1f1f;
  border-color: #b62f2f;
  color: #ffffff;
}

.item-type-pill input[type="checkbox"]:focus-visible + span {
  outline: 2px solid #d34a4a;
  outline-offset: 1px;
}

.item-type-pill input[type="checkbox"]:active + span {
  transform: translateY(1px);
}

.record-limit-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.record-limit-fieldset {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 8px 10px 10px;
}

.record-limit-fieldset legend {
  padding: 0 6px;
  font-size: 0.85em;
  color: var(--text-main);
}

.record-limit-label {
  font-size: 0.85em;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.record-limit-select {
  background-color: var(--bg-dark);
  border: 1px solid var(--border);
  color: var(--text-main);
  border-radius: 3px;
  padding: 4px 6px;
  font-size: 0.85em;
}

.retrieve-mode-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 6px;
}

.retrieve-mode-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8em;
  color: var(--text-main);
}

.record-retrieve-btn {
  margin-top: 10px;
}

.help-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75em;
  cursor: help;
  position: relative;
  color: var(--text-main);
}

.help-icon:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  top: 20px;
  left: 0;
  transform: none;
  background: #222;
  color: var(--text-main);
  padding: 6px 8px;
  border-radius: 4px;
  font-size: 1.2em;
  white-space: normal;
  width: 200px;
  max-width: 300px;
  border: 1px solid var(--border);
  z-index: 20;
}

#item-search {
  width: 100%;
  padding: 8px;
  background-color: var(--bg-dark);
  border: 1px solid var(--border);
  color: var(--text-main);
  border-radius: 3px;
  box-sizing: border-box;
}

#item-search:focus {
  outline: none;
  border-color: var(--accent-red);
}

/* Hide webkit search increment/decrement buttons if any */
#item-search::-webkit-search-decoration,
#item-search::-webkit-search-cancel-button,
#item-search::-webkit-search-results-button,
#item-search::-webkit-search-results-decoration {
  display: none;
}

#item-list {
  overflow-y: auto;
  flex-grow: 1;
  /* Allow item-list to take available space */
  border: 1px solid var(--border);
  border-radius: 3px;
}

.item {
  padding: 6px 8px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  font-size: 0.85em;
}

.item:last-child {
  border-bottom: none;
}

.item:hover {
  background-color: var(--accent-red);
}

.item.selected-item {
  background-color: var(--accent-red);
}

/* Auction Data Table Section Styling */
.auction-data-table {
  grid-area: table;
  /* Assign to the grid area */
  background-color: transparent;
  border-radius: 0;
  padding: 0;
  border: none;
  overflow: hidden;
}

.table-container {
  height: 100%;
  overflow: hidden;
}

#results-count {
  color: var(--text-main);
  padding-top: 2px;
  font-weight: 500;
}

.results-count {
  text-align: center;
  margin: 8px 0 0;
  color: var(--text-main);
  opacity: 0.95;
  font-size: 0.8em;
}

.auction-filters {
  display: contents;
}

.filter-row {
  display: contents;
}

.auction-filter-label {
  display: block;
}

.auction-filter-label {
  font-size: 0.85em;
  color: var(--text-main);
  white-space: nowrap;
}

.auction-filter-select {
  background-color: var(--bg-dark);
  border: 1px solid var(--border);
  color: var(--text-main);
  border-radius: 3px;
  padding: 4px 6px;
  font-size: 0.85em;
}

.rarity-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bonus-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.duration-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rarity-pill {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #222;
  color: var(--text-main);
  padding: 4px 10px;
  font-size: 0.8em;
  font-weight: 400;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.rarity-pill:hover {
  border-color: #888;
}

.rarity-pill:focus-visible {
  outline: 2px solid #d34a4a;
  outline-offset: 1px;
}

.rarity-pill.is-selected.rarity-pill--yellow {
  background: #d9c74f;
  border-color: #ecd779;
  color: #1d1705;
}

.rarity-pill.is-selected.rarity-pill--orange {
  background: #d18a2f;
  border-color: #e0a354;
  color: #1f1305;
}

.rarity-pill.is-selected.rarity-pill--red {
  background: #b23b3b;
  border-color: #cd6363;
  color: #ffffff;
}

.rarity-pill.is-selected.rarity-pill--unknown,
.rarity-pill.is-selected.rarity-pill--default {
  background: #f0f0f0;
  border-color: #ffffff;
  color: #111111;
}

.bonus-pill {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #222;
  color: var(--text-main);
  padding: 4px 10px;
  font-size: 0.8em;
  font-weight: 400;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.bonus-pill:hover {
  border-color: #9d2a2a;
}

.bonus-pill:focus-visible {
  outline: 2px solid #d34a4a;
  outline-offset: 1px;
}

.bonus-pill.is-selected {
  background: #8f1f1f;
  border-color: #b62f2f;
  color: #ffffff;
}

.duration-pill {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #222;
  color: var(--text-main);
  padding: 4px 10px;
  font-size: 0.8em;
  font-weight: 400;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.duration-pill:hover {
  border-color: #9d2a2a;
}

.duration-pill:focus-visible {
  outline: 2px solid #d34a4a;
  outline-offset: 1px;
}

.duration-pill.is-selected {
  background: #8f1f1f;
  border-color: #b62f2f;
  color: #ffffff;
}


/* Item Showcase Styling (Removed as section is removed) */
/* .item-showcase-content {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 10px;
}

.item-showcase-image {
  width: 120px;
  height: auto;
  border-radius: 5px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.item-showcase-details {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.item-showcase-details h3 {
  margin-top: 0;
  margin-bottom: 5px;
  color: var(--text-main);
}

.item-showcase-details p {
  margin: 0;
  font-size: 0.95em;
  line-height: 1.4;
} */

/* New item detail box styling */
.item-details-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  min-width: 0;
}

.sidebar-panel .panel-header .item-details-title {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.85rem;
  font-weight: 600;
  flex: 1;
}

.item-details-title-left {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto auto;
  column-gap: 8px;
  row-gap: 2px;
  align-items: center;
}

.item-details-title img {
  width: 40px;
  height: auto;
  border-radius: 3px;
  grid-row: 1 / span 3;
}

.item-details-title-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.item-details-title-text {
  font-weight: 600;
}

.item-details-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  font-weight: 400;
}

.item-details-links a {
  color: var(--text-main);
  text-decoration: underline;
}

.item-details-toggle {
  font-size: 0.9em;
  color: var(--text-main);
  display: none;
}

.item-details-panel.is-collapsed .item-stats-fieldset,
.item-details-panel.is-collapsed #prediction-message {
  display: none;
}

.item-details-panel.is-collapsed {
  padding-top: 6px;
  padding-bottom: 6px;
  height: auto;
}

.item-stats-fieldset {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px;
  margin: 0;
}

.item-details-panel .item-stats-fieldset+.item-stats-fieldset {
  margin-top: 5px;
  margin-bottom: 5px;
}

.filters-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  row-gap: 8px;
  align-items: start;
}

.filters-label {
  color: var(--text-main);
  padding-top: 2px;
}

.filters-grid,
.filters-grid .auction-filter-select {
  font-size: 0.8em;
}

.item-stats-fieldset legend {
  padding: 0 6px;
  font-size: 0.85em;
  color: var(--text-main);
}

.item-stats-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.8em;
}

.item-stats-list .stat-label {
  color: var(--text-main);
}

.item-stats-list .stat-value {
  color: var(--accent-red);
}

.item-stats-list .item-stats-link {
  color: inherit;
  text-decoration: underline;
}

.item-stats-list .stat-label,
.item-stats-list .stat-value,
.filters-label {
  font-size: 1.0em;
}

/* Auction Table Styling (Tabulator) */
#auction-data-grid {
  height: 100%;
  min-height: 220px;
}

.tabulator {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  color: #ffffff;
  font-size: 0.75em;
}

.tabulator .tabulator-header {
  background-color: var(--bg-dark);
  border-bottom: 1px solid var(--border);
  overflow: visible;
}

.tabulator .tabulator-header .tabulator-col,
.tabulator .tabulator-row .tabulator-cell {
  border-right: 1px solid var(--border);
}

.tabulator .tabulator-header .tabulator-col {
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow: visible;
  position: relative;
  z-index: 3;
}

@media (hover:hover) and (pointer:fine) {
  .tabulator .tabulator-header .tabulator-col.tabulator-sortable.tabulator-col-sorter-element:hover {
    background-color: #222222;
  }
}

.tabulator .tabulator-header .tabulator-col .tabulator-col-title {
  font-weight: 700;
}

.tabulator .tabulator-header .tabulator-col .tabulator-col-title-holder {
  overflow: visible;
}

.tabulator .tabulator-header .help-icon:hover::after {
  z-index: 2000;
}

.tabulator .tabulator-header .tabulator-col .tabulator-header-filter input {
  background-color: #202020;
  border: 1px solid var(--border);
  color: var(--text-main);
  border-radius: 2px;
  padding: 2px 4px;
  font-size: 0.9em;
}

.tabulator .tabulator-tableholder .tabulator-table .tabulator-row {
  background-color: var(--card-bg);
}

.tabulator .tabulator-row .tabulator-cell {
  color: #ffffff;
}

.tabulator .tabulator-tableholder .tabulator-table .tabulator-row.tabulator-row-even {
  background-color: #343434;
}

.tabulator .tabulator-row:hover {
  background-color: #3a3a3a;
}

.tabulator .tabulator-row.auction-row-owned,
.tabulator .tabulator-row.auction-row-owned.tabulator-row-even {
  background-color: rgba(180, 120, 0, 0.25);
}

.tabulator .tabulator-row.auction-row-owned:hover {
  background-color: rgba(180, 120, 0, 0.35);
}

.tabulator .tabulator-row.link-flash {
  animation: row-link-flash 1.5s ease-out;
}

.tabulator a.auction-user-match {
  color: #f0f0f0;
  font-weight: 700;
}

@keyframes row-link-flash {
  0% {
    box-shadow: inset 0 0 0 9999px rgba(207, 58, 58, 0.35);
  }

  100% {
    box-shadow: inset 0 0 0 9999px rgba(207, 58, 58, 0);
  }
}

/* API ToS Link Styling */
.api-tos-link {
  color: inherit;
  /* Inherit color from parent (var(--text-main)) */
  text-decoration: underline;
  /* Ensure underlined */
  font-size: 0.9em;
  cursor: pointer;
}

.api-tos-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
  box-sizing: border-box;
}

.api-tos-content {
  background-color: var(--card-bg);
  color: var(--text-main);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  max-width: 600px;
  width: 100%;
  max-height: 90%;
  overflow-y: auto;
  border: 1px solid var(--border);
  position: relative;
  /* Needed for absolute positioning of close button */
}

.close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 1.5em;
  color: var(--text-main);
  cursor: pointer;
  padding: 5px;
  line-height: 1;
}

.close-button:hover {
  color: var(--accent-red);
}

.api-tos-content h3 {
  margin-top: 0;
  color: var(--accent-red);
}

.api-tos-content table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.api-tos-content th,
.api-tos-content td {
  border: 1px solid var(--border);
  padding: 8px;
  text-align: left;
  font-size: 0.85em;
}

.api-tos-content th {
  background-color: var(--bg-dark);
}

.api-tos-content code {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 2px 4px;
  border-radius: 3px;
  font-family: monospace;
}

.faq-content {
  font-size: 0.85em;
  line-height: 1.35;
}

.faq-content p {
  margin: 8px 0;
}

.faq-content strong {
  color: var(--accent-red);
}

.faq-content a {
  color: var(--text-main);
  text-decoration: underline;
}

.api-tos-footer {
  display: flex;
  justify-content: center;
  margin-top: 15px;
}

.api-tos-close-btn {
  background-color: var(--accent-red);
  color: var(--text-main);
  border: none;
  padding: 8px 16px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9em;
  font-weight: bold;
}

.api-tos-close-btn:hover {
  background-color: #b32a2a;
}

/* Prediction Controls Styling */
.prediction-controls {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding-top: 0;
  border-top: none;
  margin-top: 0;
}

.prediction-controls.prediction-disabled {
  opacity: 0.6;
}

.slider-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.slider-group label {
  flex-shrink: 0;
  width: 80px;
  /* Adjust as needed */
  font-size: 0.85em;
}

.slider-group input[type="range"] {
  flex-grow: 1;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  background: var(--bg-dark);
  outline: none;
  border-radius: 5px;
}

/* Thumb for Webkit (Chrome, Safari, Edge) */
.slider-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-red);
  cursor: pointer;
  border: 2px solid var(--text-main);
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
  margin-top: -6px;
}

/* Thumb for Firefox */
.slider-group input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-red);
  cursor: pointer;
  border: 2px solid var(--text-main);
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}

/* Track for Webkit */
.slider-group input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 8px;
  cursor: pointer;
  background: var(--bg-dark);
  border-radius: 5px;
  border: 1px solid var(--border);
}

/* Track for Firefox */
.slider-group input[type="range"]::-moz-range-track {
  width: 100%;
  height: 8px;
  cursor: pointer;
  background: var(--bg-dark);
  border-radius: 5px;
  border: 1px solid var(--border);
}

.slider-group span {
  width: 40px;
  text-align: center;
  font-weight: bold;
  color: var(--accent-red);
}

.chart-panel,
.table-panel {
  background-color: var(--card-bg);
  border-radius: 8px;
  padding: 15px;
  border: 1px solid var(--border);
  transition: transform 0.2s ease;
}

.chart-panel:hover,
.table-panel:hover {
  transform: none;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}


#item-list {
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 3px;
  margin-top: 10px;
}

.item {
  padding: 6px 8px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  font-size: 0.85em;
}

.item:hover {
  background-color: var(--accent-red);
}

.item.selected-item {
  background-color: var(--accent-red);
  font-weight: bold;
}

#predictBtn {
  background-color: var(--accent-red);
  color: var(--text-main);
  border: none;
  padding: 5px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9em;
  font-weight: bold;
  transition: background-color 0.2s ease;
  width: 100%;
}

#predictBtn:hover {
  background-color: #b32a2a;
}

#predictBtn:disabled {
  background-color: #555;
  color: #c0c0c0;
  cursor: not-allowed;
}

.prediction-controls.prediction-disabled input[type="range"] {
  background: #3a3a3a;
}

.prediction-controls.prediction-disabled input[type="range"]::-webkit-slider-thumb {
  background: #666;
  border-color: #999;
}

.prediction-controls.prediction-disabled input[type="range"]::-moz-range-thumb {
  background: #666;
  border-color: #999;
}

.prediction-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.predict-btn-wrap,
.prediction-result {
  width: 100%;
}

.predict-btn-wrap {
  display: flex;
}

/* .predict-btn-wrap {
  position: relative;
  display: inline-flex;
} */

.predict-btn-wrap.has-tooltip:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  top: -34px;
  left: 50%;
  transform: translateX(-50%);
  background: #222;
  color: var(--text-main);
  padding: 6px 8px;
  border-radius: 4px;
  font-size: 0.75em;
  white-space: nowrap;
  border: 1px solid var(--border);
  z-index: 20;
}

#predictBtn {
  display: block;
  line-height: 1;
  min-height: 0;
}

.prediction-result {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prediction-result.is-hidden {
  display: none;
}

.prediction-result {
  text-align: center;
  padding: 10px 15px;
  border: 1px solid var(--accent-red);
  border-radius: 5px;
  background-color: rgba(var(--accent-red), 0.1);
  /* Slightly transparent red background */
  flex: 1;
  flex-direction: column;
  box-sizing: border-box;
}

.prediction-message {
  font-size: 0.7em;
  color: var(--text-main);
  opacity: 0.85;
  padding: 6px 0;
  border: none;
  border-radius: 0;
  background-color: transparent;
  text-align: center;
  font-style: italic;
}

#prediction-fieldset {
  padding-top: 16px;
}

.prediction-result .price-display {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--accent-red);
  line-height: 1;
  display: block;
}

.prediction-error {
  margin-top: 4px;
  font-size: 0.9em;
  color: var(--accent-red);
  opacity: 0.95;
  text-align: center;
}

.prediction-disclaimer {
  margin-top: 6px;
  font-size: 0.6em;
  color: var(--text-main);
  opacity: 0.75;
  text-align: center;
}

.prediction-debug {
  margin-top: 6px;
  font-size: 0.7em;
  color: var(--text-main);
  opacity: 0.85;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.prediction-debug.is-hidden {
  display: none;
}

.prediction-debug .debug-label {
  color: var(--accent-red);
}

/* Standardize typography within side-panel fieldsets */
#item-panel fieldset {
  --fieldset-font-size: 0.85rem;
  font-family: 'Outfit', sans-serif;
  font-size: var(--fieldset-font-size);
}

#item-panel fieldset legend,
#item-panel fieldset label,
#item-panel fieldset div,
#item-panel fieldset span,
#item-panel fieldset p,
#item-panel fieldset a,
#item-panel fieldset button,
#item-panel fieldset select,
#item-panel fieldset input {
  font-family: inherit;
  font-size: inherit;
  font-style: normal;
}

#item-panel #item-filter-container .item-type-pill span {
  font-size: 0.8em;
}

#item-panel #rarity-filter-pills .rarity-pill,
#item-panel #bonus-filter-pills .bonus-pill,
#item-panel #duration-filter-pills .duration-pill {
  font-size: 0.8em;
}

#rate-limit-warning {
  margin-top: 8px;
}

@media (max-width: 1200px) {
  :root {
    --sidebar-width: 340px;
  }
}

@media (max-width: 900px) {
  .dashboard {
    grid-template-columns: 1fr;
    grid-template-areas:
      "header"
      "main"
      "footer";
  }

  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    min-height: 0;
    border-radius: 0;
    transform: none;
    display: none;
  }

  .sidebar.is-open {
    display: flex;
  }

  .main-content {
    grid-template-areas:
      "chart"
      "table";
    grid-template-rows: auto auto;
  }
}

@media (max-width: 900px) {

  html,
  body {
    overflow: auto;
  }

  .dashboard {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    min-height: 100dvh;
    padding-bottom: 0;
  }

  .header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 8px;
  }

  .header-left {
    display: contents;
  }

  .sidebar-toggle {
    display: inline-flex;
  }

  .header h2 {
    text-align: left;
    justify-self: start;
    font-size: 1rem;
    line-height: 1.08;
    letter-spacing: 0.35px;
  }

  .app-title-line {
    display: block;
  }

  .logo-area .logo-icon {
    width: 24px;
    height: 24px;
  }

  .login-controls {
    grid-column: 3;
    justify-self: end;
    display: grid;
    grid-template-columns: auto auto;
    grid-template-areas:
      "nav nav"
      "status logout";
    align-items: center;
    justify-items: end;
    gap: 8px;
    row-gap: 4px;
  }

  .header-nav {
    grid-area: nav;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    margin-right: 0;
  }

  .login-controls #status {
    grid-area: status;
    font-size: 0.75rem;
    white-space: nowrap;
  }

  .login-controls #logoutBtn {
    grid-area: logout;
    padding: 6px 12px;
    font-size: 0.75rem;
    justify-self: end;
  }

  .sidebar {
    display: none;
    position: static;
    transform: none;
    max-height: none;
  }

  .sidebar.is-open {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
  }

  .sidebar.is-open #item-selection-container {
    display: flex;
    max-height: none;
    min-height: 0;
  }

  #item-list {
    max-height: none;
  }

  .item-details-toggle {
    display: inline-flex;
  }

  .sidebar {
    max-height: none;
  }

  .main-content {
    grid-template-areas:
      "item-details"
      "chart"
      "table";
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    overflow: visible;
    flex: 0 0 auto;
  }

  .predictor,
  .auction-data-table {
    min-height: 220px;
  }

  .chart-container {
    min-height: 240px;
  }

  .chart-capture-btn {
    width: 48px;
    height: 48px;
    right: 4px;
    bottom: 4px;
  }

  #ui-toast-root {
    right: 10px;
    bottom: 10px;
  }

  .ui-toast {
    min-width: 180px;
    max-width: 260px;
  }

  .chart-title {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .chart-title-brand {
    gap: 6px;
  }

  .chart-brand-text-desktop {
    display: none;
  }

  .chart-brand-text-mobile {
    display: inline;
    font-size: 0.72rem;
  }

  .chart-title-right {
    display: flex;
    justify-items: start;
    align-items: baseline;
    gap: 8px;
    text-align: left;
  }

  .chart-duration-line,
  .chart-count-line {
    font-size: 0.78rem;
  }

  .table-container {
    max-height: 45vh;
  }

  .footer-content {
    flex-wrap: wrap;
  }

  /* Responsive Splash Screen */
  .splash-container {
    flex-direction: column;
    height: auto;
    overflow-y: auto;
  }

  .splash-left {
    padding: 40px 20px;
    max-width: 100%;
    align-items: center;
    text-align: center;
    display: flex;
    flex-direction: column;
  }

  .hero-title {
    display: none;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
  }

  .splash-logo {
    justify-content: center;
    margin-bottom: 30px;
  }

  .splash-footer-links {
    justify-content: center;
  }

  .splash-right {
    padding: 0;
    margin-bottom: 40px;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .image-perspective-box {
    width: 70%;
    height: auto;
    aspect-ratio: 16/10;
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
    margin: 0 auto;
  }

  .action-buttons {
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
  }
}

@media (max-width: 600px) {
  .footer-content {
    flex-direction: column;
    gap: 4px;
  }

  .footer-item {
    display: block;
  }

  .footer-item:not(:last-child)::after {
    content: "";
    margin: 0;
  }
}

@media (max-width: 600px) {
  .logo-area {
    gap: 8px;
  }

  .logo-area .logo-icon {
    width: 22px;
    height: 22px;
  }

  .header h2 {
    font-size: 0.95rem;
    line-height: 1.05;
    letter-spacing: 0.3px;
  }

  .login-controls #status,
  .login-controls #logoutBtn {
    font-size: 0.72rem;
  }

  .header-nav {
    font-size: 0.72rem;
    gap: 5px;
  }
}

.rarity-yellow {
  background-color: transparent;
  color: inherit;
  font-weight: inherit;
}

.rarity-orange {
  background-color: transparent;
  color: inherit;
  font-weight: inherit;
}

.rarity-red {
  background-color: transparent;
  color: inherit;
  font-weight: inherit;
}
