.section.queue-page {
  width: min(calc(100% - 40px), 1180px);
  padding: 28px 0 64px;
}

.queue-page-heading {
  margin-bottom: 28px;
}

.queue-page-heading h2 {
  margin: 0 0 10px;
  font-size: 2rem;
  line-height: 1.2;
}

.queue-page-heading p {
  margin: 0;
  color: var(--soft-ink);
}

.queue-page .queue-shell {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: start;
  gap: 28px;
}

.queue-page .queue-column {
  min-width: 0;
  padding: 0;
  gap: 16px;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.queue-page .queue-column-heading {
  justify-content: flex-start;
  gap: 10px;
  padding-bottom: 14px;
}

.queue-page .queue-column-heading h3 {
  font-size: 1.2rem;
}

.queue-page .queue-column-heading > span {
  min-width: 28px;
  height: 28px;
  background: var(--fur);
  color: var(--coffee-deep);
}

.queue-page .queue-tabs {
  gap: 6px;
  margin: 0;
}

.queue-page .queue-tabs button {
  display: inline-flex;
  flex: 0 1 auto;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  color: var(--soft-ink);
  font-size: 0.9rem;
  font-weight: 700;
}

.queue-page .queue-tabs button.active {
  border-color: var(--coffee-deep);
  background: var(--coffee-deep);
  color: var(--white);
}

[data-queue-tab-count] {
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  opacity: 0.8;
}

.queue-page .queue-list {
  gap: 12px;
}

.queue-page .queue-item {
  grid-template-columns: 128px minmax(0, 1fr);
  align-items: stretch;
  gap: 18px;
  min-width: 0;
  padding: 12px;
  background: rgba(255, 252, 247, 0.94);
}

.queue-thumbnail {
  position: relative;
  min-width: 0;
  align-self: start;
}

.queue-page .queue-image-button,
.queue-placeholder {
  display: grid;
  width: 100%;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border-radius: 6px;
  background: var(--mist);
}

.queue-page .queue-item-image {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.queue-placeholder {
  align-content: center;
  gap: 8px;
  color: var(--coffee);
}

.queue-placeholder span {
  font-size: 0.76rem;
  font-weight: 600;
}

.queue-page .queue-position {
  position: absolute;
  top: 6px;
  left: 6px;
  min-width: 26px;
  padding: 0 5px;
  background: var(--panel-solid);
  color: var(--coffee-deep);
  border: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

.queue-item-body {
  min-width: 0;
  align-self: center;
}

.queue-page .queue-item strong {
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 1.05rem;
  line-height: 1.25;
}

.queue-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 4px 8px;
  border-radius: 5px;
  background: var(--mist);
  color: var(--coffee);
  font-size: 0.82rem;
  font-weight: 700;
}

.queue-status::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  content: '';
}

.queue-status-in_progress {
  background: #e8eddf;
  color: #4d6338;
}

.queue-status-shipped {
  background: #e5edf0;
  color: #385f6a;
}

.queue-work-progress {
  margin-top: 14px;
}

.queue-work-progress p {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  justify-content: space-between;
  margin: 0 0 7px;
  color: var(--soft-ink);
  font-size: 0.82rem;
  line-height: 1.2;
}

.queue-work-progress b {
  color: var(--coffee-deep);
  font-variant-numeric: tabular-nums;
}

.queue-work-progress progress {
  display: block;
  width: 100%;
  height: 5px;
  overflow: hidden;
  border: 0;
  border-radius: 5px;
  background: var(--fur);
  accent-color: var(--coffee);
}

.queue-work-progress progress::-webkit-progress-bar {
  border-radius: 5px;
  background: var(--fur);
}

.queue-work-progress progress::-webkit-progress-value {
  border-radius: 5px;
  background: var(--coffee);
}

.queue-work-progress progress::-moz-progress-bar {
  border-radius: 5px;
  background: var(--coffee);
}

.queue-page .queue-empty {
  padding: 24px 18px;
  white-space: normal;
  font-weight: 600;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .queue-page .queue-shell {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 760px) {
  .section.queue-page {
    width: calc(100% - 24px);
    padding: 20px 0 40px;
  }

  .queue-page-heading {
    margin-bottom: 24px;
  }

  .queue-page-heading h2 {
    font-size: 1.65rem;
  }

  .queue-page-heading p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .queue-page .queue-item {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 12px;
    padding: 10px;
  }

  .queue-page .queue-item strong {
    font-size: 1rem;
  }

  .queue-page .queue-tabs button {
    flex: 1 1 auto;
    padding-right: 8px;
    padding-left: 8px;
  }
}
