/* Homepage content uses the same 1400px measure as the full schedule. */
@media (min-width: 1041px) {
  .page {
    width: min(1400px, calc(100% - 40px));
  }

  .home-schedule-grid {
    gap: clamp(10px, 1.1vw, 16px);
  }
}

@media (min-width: 1221px) {
  .owner-mode .queue-row,
  .queue-row {
    grid-template-columns: minmax(0, 1fr) clamp(310px, 25vw, 370px);
  }
}

/* Desktop type scale for the expanded homepage columns. */
@media (min-width: 1041px) {
  .home-schedule-heading p,
  .queue-section .queue-main .queue-description,
  .queue-section .queue-customer,
  .queue-section .queue-desktop-meta,
  .queue-section .queue-side-rating,
  .queue-section .queue-desktop-side .timer-progress-copy,
  .queue-section .queue-desktop-side .queue-progress-copy {
    font-size: 16px;
  }

  .queue-section .queue-main .order-title-link,
  .queue-section .queue-customer .customer-filter-link,
  .queue-section .queue-side-comment strong {
    font-weight: 700;
  }

  .queue-section .series-history-toggle,
  .queue-section .series-history-item > div > strong,
  .queue-section .series-history-item > div > span,
  .queue-section .series-history-item > small,
  .queue-section .queue-side-date,
  .queue-section .queue-side-comment,
  .queue-section .queue-side-comment strong,
  .queue-section .queue-desktop-status .status-pill {
    font-size: 14px;
  }

  .queue-section .queue-desktop-status .status-pill {
    font-weight: 600;
    border-width: 2px;
  }

  .queue-section .queue-desktop-side .timer-progress-track,
  .queue-section .queue-desktop-side .queue-progress-track {
    height: 4px;
  }

  .queue-section .filter-reset-bar button {
    font-size: 12px;
    font-weight: 700;
  }

  .queue-section .queue-heading h2 {
    font-size: 50px;
  }
}

/* Homepage schedule card: quieter labels and a darker poster backdrop. */
.home-schedule-art img {
  filter: blur(1.6px) saturate(.86) brightness(.70);
}

.home-schedule-v104 .home-schedule-copy > .home-schedule-status {
  gap: 0;
  text-transform: none;
}

.home-schedule-v104 .home-schedule-copy > .home-schedule-status i,
.home-schedule-v104 .home-schedule-order-item::before {
  display: none;
}

.home-schedule-v104 .home-schedule-order-item {
  gap: 0;
}

/* The same schedule card hierarchy applies at every viewport width. */
.home-schedule-card.home-schedule-v104 {
  border: 2px solid var(--line);
  box-shadow: none;
}

.home-schedule-v104 .home-schedule-copy {
  align-self: stretch;
  align-content: start;
  padding-top: 12px;
  padding-left: 17px;
}

.home-schedule-v104 .home-schedule-date .home-schedule-weekday,
.home-schedule-v104 .home-schedule-date .home-schedule-month {
  font-size: 12px;
  font-weight: 700;
}

.home-schedule-v104 .home-schedule-first-digit,
.home-schedule-v104 .home-schedule-numerals > .home-schedule-trailing {
  font-size: 40px;
  font-weight: 700;
}

.home-schedule-v104 .home-schedule-date .home-schedule-time {
  font-size: 22px;
  font-weight: 700;
}

.home-schedule-v104 .home-schedule-copy > strong {
  font-size: 20px;
  font-weight: 700;
}

.home-schedule-v104 .home-schedule-copy > .home-schedule-status {
  order: -1;
  padding: 7px 10px;
  border: 2px solid currentColor;
  border-radius: 99px;
  color: var(--home-schedule-accent);
  background: color-mix(in srgb, currentColor 8%, transparent);
  font-size: 13px;
  font-weight: 600;
  line-height: normal;
  letter-spacing: 0.01em;
}

html[data-theme="light"] .home-schedule-v104 .home-schedule-copy > .home-schedule-status {
  color: var(--home-schedule-accent);
}

.home-schedule-v104 .home-schedule-order-item {
  color: #d0d2d8;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.52;
}

@media (hover: hover) and (pointer: fine) {
  .home-schedule-card.home-schedule-v104:hover {
    border-color: var(--home-schedule-accent);
    transform: translateY(-2px);
  }
}

@media (hover: none) {
  .home-schedule-card.home-schedule-v104:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-schedule-card.home-schedule-v104:hover {
    transform: none;
  }
}

/* Add a little breathing room around current orders on desktop. */
@media (min-width: 1041px) {
  .current-card {
    border-width: 2px;
    padding: 16px;
  }
}

/* Current orders use the existing status palette for their desktop hover. */
@media (min-width: 1041px) and (hover: hover) and (pointer: fine) {
  .current-card {
    transition: min-height .38s ease, border-color .24s ease,
      box-shadow .24s ease, transform .24s ease;
  }

  .current-card:has(.current-heading-row > .status-pill.red) { --current-card-hover-color: #ef595d; }
  .current-card:has(.current-heading-row > .status-pill.cyan) { --current-card-hover-color: #54c8d8; }
  .current-card:has(.current-heading-row > .status-pill.blue) { --current-card-hover-color: #5e9fea; }
  .current-card:has(.current-heading-row > .status-pill.violet) { --current-card-hover-color: #a583e8; }
  .current-card:has(.current-heading-row > .status-pill.amber) { --current-card-hover-color: #d7a94e; }
  .current-card:has(.current-heading-row > .status-pill.green) { --current-card-hover-color: #55b985; }

  html[data-theme="light"] .current-card:has(.current-heading-row > .status-pill.red) { --current-card-hover-color: #c43b41; }
  html[data-theme="light"] .current-card:has(.current-heading-row > .status-pill.cyan) { --current-card-hover-color: #167f8f; }
  html[data-theme="light"] .current-card:has(.current-heading-row > .status-pill.blue) { --current-card-hover-color: #2d6fab; }
  html[data-theme="light"] .current-card:has(.current-heading-row > .status-pill.violet) { --current-card-hover-color: #7352b2; }
  html[data-theme="light"] .current-card:has(.current-heading-row > .status-pill.amber) { --current-card-hover-color: #986b17; }
  html[data-theme="light"] .current-card:has(.current-heading-row > .status-pill.green) { --current-card-hover-color: #267e56; }

  .current-card:has(.current-heading-row > .status-pill):hover {
    border-color: var(--current-card-hover-color);
    transform: translateY(-2px);
  }
}

@media (min-width: 1041px) and (prefers-reduced-motion: reduce) {
  .current-card:has(.current-heading-row > .status-pill):hover {
    transform: none;
  }
}

/* Compact phone scale; keep longer stream content free to increase card height. */
@media (max-width: 720px) {
  .home-schedule-card.home-schedule-v104 {
    min-height: 146px;
  }

  .home-schedule-v104 .home-schedule-first-digit,
  .home-schedule-v104 .home-schedule-numerals > .home-schedule-trailing {
    font-size: 32px;
  }

  .home-schedule-v104 .home-schedule-date .home-schedule-time {
    font-size: 19px;
  }

  .home-schedule-v104 .home-schedule-copy > strong {
    font-size: 17px;
  }

  .home-schedule-v104 .home-schedule-order-item {
    font-size: 14px;
  }

  .home-schedule-v104 .home-schedule-copy > .home-schedule-status {
    padding: 4px 9px;
    font-size: 12px;
  }
}

/* Desktop order details: a clearer title and quieter supporting data. */
@media (min-width: 1041px) {
  .queue-section .queue-row {
    min-height: 296px;
    padding-bottom: 9px;
  }

  .queue-section .queue-main > .queue-copy {
    margin-top: -4px;
  }

  .queue-section .queue-main > .queue-cover-column > .queue-cover {
    aspect-ratio: 40 / 61;
  }

  .queue-section .queue-main h3 {
    font-size: 22px;
    line-height: 1.3;
  }

  .queue-section .queue-main .order-title-link {
    font-weight: 700;
  }

  .queue-section .queue-desktop-meta {
    font-size: 15px;
    font-weight: 600;
  }

  .queue-section .queue-main .queue-description {
    font-size: 16px;
    font-weight: 400;
  }

  .queue-section .queue-customer {
    font-size: 15px;
    font-weight: 500;
  }

  .queue-section .series-history-toggle,
  .queue-section .series-history-item > div > strong {
    font-size: 14px;
    font-weight: 600;
  }

  .queue-section .series-history-item > div > span,
  .queue-section .series-history-item > small {
    font-size: 13px;
    font-weight: 500;
  }

  .queue-section .queue-desktop-side .queue-progress-copy,
  .queue-section .queue-desktop-side .timer-progress-copy {
    font-size: 15px;
    font-weight: 500;
  }

  .queue-section .queue-desktop-side .queue-progress-copy strong,
  .queue-section .queue-desktop-side .timer-progress-copy strong {
    font-size: 15px;
    font-weight: 700;
  }

  .queue-section .queue-side-date {
    font-size: 14px;
    font-weight: 500;
  }

  .queue-section .queue-desktop-side .recording-link {
    font-size: 14px;
    font-weight: 600;
  }

  .queue-section .queue-side-rating,
  .queue-section .queue-side-rating .rating-score {
    font-size: 16px;
    font-weight: 700;
  }

  .queue-section .queue-side-comment {
    font-size: 14px;
    font-weight: 400;
  }

  .queue-section .queue-side-comment strong {
    font-weight: 700;
  }
}

/* Desktop header and section typography. */
@media (min-width: 1041px) {
  .site-header .brand-mark {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
  }

  .site-header .brand-mark::after {
    display: none;
  }

  .site-header .brand strong {
    font-size: 16px;
    font-weight: 700;
  }

  .site-header .brand small {
    font-size: 12px;
    white-space: nowrap;
  }

  .site-header .header-stats strong {
    font-size: 16px;
    font-weight: 700;
  }

  .site-header .header-stats span {
    font-size: 16px;
  }

  .site-header .header-social-link,
  .site-header .header-social-link span,
  .site-header .custom-select-trigger,
  .site-header .account-button {
    font-size: 14px;
    font-weight: 700;
  }

  .hero-section .eyebrow,
  .home-schedule-section .home-schedule-heading .eyebrow,
  .queue-section .queue-heading .eyebrow {
    font-size: 14px;
    font-weight: 700;
  }

  .hero-section .section-heading h1,
  .home-schedule-section .home-schedule-heading h2,
  .queue-section .queue-heading h2 {
    font-size: 40px;
    font-weight: 800;
  }

  .hero-section .section-heading p,
  .home-schedule-section .home-schedule-heading p {
    font-size: 16px;
  }
}

@media (min-width: 1041px) and (max-width: 1180px) {
  .site-header .header-left {
    gap: 8px;
  }

  .site-header .brand {
    gap: 8px;
  }

  .site-header .brand small {
    letter-spacing: 0.12em;
  }
}

/* Order covers: let the artwork end cleanly without a bright rim. */
.current-card > .poster-placeholder,
.queue-row .queue-cover {
  border: 0;
  box-shadow: none;
}

/* v186: desktop order details and toolbar refinements. */
.queue-row .status-pill i {
  display: none;
}

.queue-section .queue-footer,
.queue-section .queue-footer button {
  font-size: 12px;
}

.queue-section .queue-footer button {
  font-weight: 700;
}

.queue-section .queue-footer > span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.queue-section .queue-footer .live-dot {
  margin-right: 0;
  flex: 0 0 6px;
}

.queue-section .filter-reset-bar button {
  border-width: 2px;
}

.queue-section .queue-found-count {
  font-size: 14px;
  font-weight: 600;
}

.queue-section .queue-title-actions .stats-button > span,
.home-schedule-section .home-schedule-link > span {
  font-weight: 600;
}

.queue-section .search-suggestion-heading {
  font-size: 12px;
  font-weight: 700;
}

.queue-section .search-suggestion-copy small {
  font-size: 13px;
}

.queue-section .search-suggestion-copy .search-suggestion-meta-parts {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.queue-section .search-suggestion-meta-parts > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.queue-section .search-suggestion-separator {
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  border-radius: 50%;
  background: currentColor;
}

.queue-related-area .desktop-recording-link {
  display: none;
}

@media (min-width: 1041px) {
  .queue-section .queue-desktop-meta {
    column-gap: 4px;
  }

  .queue-section .queue-title-line .order-copy-link {
    transform: translateY(-2px);
  }

  .queue-section .queue-related-area {
    min-height: 22px;
    margin-top: 12px;
  }

  .queue-section .queue-related-area > .series-history {
    margin-top: 0;
  }

  .queue-section .series-history-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 12px;
  }

  .queue-section .queue-related-area .desktop-recording-link {
    display: inline-flex;
    align-items: center;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
  }
}

/* Current orders follow the queue's desktop reading order and progress scale. */
.current-heading-row {
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.current-card .current-content h3 {
  min-width: 0;
  margin: 0;
}

.current-card .current-topline {
  margin-top: 6px;
}

.current-card .current-description {
  display: none;
}

.current-card .current-customer-row {
  letter-spacing: normal;
}

.current-card .current-order-date {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.current-card .current-progress-block {
  margin-top: 12px;
  padding-top: 0;
}

.new-badge {
  border-width: 2px;
  font-size: 10px;
  font-weight: 700;
  vertical-align: middle;
  transform: translateY(-2px);
}

.current-card .order-copy-link,
.queue-section .queue-title-line .order-copy-link {
  transform: translateY(-2px);
  vertical-align: middle;
}

@media (min-width: 1041px) {
  .current-heading-row {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
  }

  .current-card .current-content h3 {
    flex: 1 1 auto;
    font-size: 22px;
    line-height: 1.3;
    font-weight: 700;
  }

  .current-card .current-content h3 .order-title-link {
    font-weight: 700;
  }

  .current-heading-row .status-pill {
    flex: 0 0 auto;
    box-sizing: border-box;
    padding: 7px 10px;
    border-width: 2px;
    font-size: 14px;
    font-weight: 600;
  }

  .current-heading-row .status-pill i {
    display: none;
  }

  .current-card .current-topline {
    margin-top: 7px;
  }

  .current-card .type-label {
    font-size: 15px;
    font-weight: 600;
  }

  .current-card .current-customer-row {
    align-items: baseline;
    gap: 5px 14px;
    margin: 12px 0 0;
    font-weight: 500;
    letter-spacing: normal;
  }

  .current-card .current-customer {
    font-size: 15px;
    font-weight: 500;
  }

  .current-card .current-customer .customer-filter-link {
    font-weight: 700;
  }

  .current-card .current-order-date {
    font-size: 14px;
    font-weight: 500;
  }

  .current-card .current-recording-desktop {
    flex-basis: 100%;
  }

  .current-card .progress-copy,
  .current-card .timer-progress-copy {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.35;
  }

  .current-card .progress-copy strong,
  .current-card .timer-progress-copy strong {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
  }

  .current-card .progress-track,
  .current-card .timer-progress-track {
    height: 4px;
  }

  .current-card .progress-track {
    margin-top: 5px;
  }

  .current-card .progress-label-only {
    margin-top: 12px;
    padding-top: 0;
    font-size: 15px;
    font-weight: 500;
    text-align: left;
  }

  .owner-mode .current-card .current-heading-row {
    padding-right: 44px;
  }
}

@media (min-width: 1041px) and (max-width: 1220px) {
  .current-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    row-gap: 14px;
  }

  .current-card {
    grid-row-end: auto;
    margin-bottom: 0;
  }
}

/* Keep the current card compact while exposing its full queue entry. */
.current-card .current-content {
  padding-top: 0;
}

@media (min-width: 1041px) {
  .current-card {
    grid-template-columns: 131px minmax(0, 1fr);
    column-gap: 15px;
  }

  .current-card > .poster-placeholder {
    aspect-ratio: auto;
    align-self: stretch;
    margin-bottom: 0;
  }

  .current-card .current-content {
    margin-top: -5px;
  }

  .current-card .current-heading-row > .status-pill {
    transform: translateY(5px);
  }
}

@media (hover: hover) and (pointer: fine) {
  .timer-progress-block[data-tooltip]::before {
    font-size: 12px;
    font-weight: 500;
  }
}

.current-card .current-content h3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.current-card .current-topline {
  gap: 6px 4px;
  color: #c2c5ce;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.current-card .current-topline .type-label {
  color: inherit;
  font: inherit;
}

.current-card .current-topline i {
  display: block;
  align-self: center;
  width: 4px;
  height: 4px;
  flex: 0 0 4px;
  margin: 0 2px;
  border-radius: 50%;
  background: currentColor;
}

.current-card .current-queue-jump {
  margin-left: 10px;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.current-card .current-queue-jump:hover,
.current-card .current-queue-jump:focus-visible {
  color: #f0f1f4;
}

.current-card .current-queue-jump:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.current-card .current-customer-row {
  color: #d0d2d9;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.current-card .current-customer,
.current-card .current-order-date {
  color: inherit;
  font: inherit;
}

html[data-theme="light"] .current-card .current-topline,
html[data-theme="light"] .current-card .current-customer-row {
  color: #555b66;
}

html[data-theme="light"] .current-card .current-order-date {
  color: inherit;
}

html[data-theme="light"] .current-card .current-queue-jump:hover,
html[data-theme="light"] .current-card .current-queue-jump:focus-visible {
  color: #292d36;
}

@media (min-width: 1041px) {
  .current-card .current-topline {
    font-size: 15px;
    font-weight: 600;
  }

  .current-card .current-customer-row {
    font-size: 15px;
  }
}

@media (max-width: 1040px) {
  .current-card .progress-copy strong,
  .current-card .timer-progress-copy strong,
  .queue-section .queue-desktop-side .queue-progress-copy strong,
  .queue-section .queue-desktop-side .timer-progress-copy strong {
    font-size: 15px;
  }

  .home-schedule-v104 .home-schedule-copy > .home-schedule-status {
    padding: 7px 10px;
    border-width: 1px;
    font-size: 13px;
    font-weight: 600;
  }
}

/* v206: current orders use a full-width progress footer on phones and tablets. */
@media (max-width: 1040px) {
  .current-card {
    grid-template-columns: 116px minmax(0, 1fr);
    grid-template-rows: max-content max-content auto;
    column-gap: 16px;
    row-gap: 0;
    min-height: 0;
  }

  .current-card .current-content {
    display: contents;
  }

  .current-card > .poster-placeholder {
    grid-column: 1;
    grid-row: 1 / span 3;
    align-self: start;
    margin: 0;
  }

  .current-card .current-heading-row {
    grid-column: 2;
    grid-row: 1;
    gap: 6px;
  }

  .current-card .current-heading-row > .status-pill {
    padding: 5px 9px;
    border-width: 2px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
  }

  .current-card .current-heading-row > .status-pill i {
    display: none;
  }

  .current-card .current-content h3,
  .current-card .current-content h3 .order-title-link {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
  }

  .current-card .current-topline {
    grid-column: 2;
    grid-row: 2;
    margin-top: 7px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
  }

  .current-card .current-customer-row {
    grid-column: 2;
    grid-row: 3;
    align-self: start;
    gap: 4px 10px;
    margin: 9px 0 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
  }

  .current-card .current-customer {
    margin: 0;
    font-size: inherit;
    font-weight: 500;
    line-height: inherit;
  }

  .current-card .current-customer .customer-filter-link {
    font-weight: 700;
  }

  .current-card .current-order-date {
    font-size: 13px;
    font-weight: 500;
  }

  .current-card .current-progress-block,
  .current-card .progress-label-only {
    grid-column: 1 / -1;
    grid-row: 4;
    margin-top: 16px;
    padding-top: 0;
  }

  .current-card .timer-progress-block {
    grid-column: 1 / -1;
    grid-row: 5;
    margin-top: 12px;
  }

  .current-card .progress-copy,
  .current-card .timer-progress-copy,
  .current-card .progress-label-only {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
  }

  .current-card .progress-copy strong,
  .current-card .timer-progress-copy strong {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
  }

  .current-card .progress-track,
  .current-card .timer-progress-track {
    height: 4px;
  }

  .current-card .progress-track {
    margin-top: 5px;
  }

  .current-card .progress-label-only {
    text-align: left;
  }

  .current-card .current-details,
  .current-card .current-recording-mobile,
  .current-card .series-history,
  .current-card .current-card-controls {
    grid-column: 1 / -1;
  }
}

@media (min-width: 761px) and (max-width: 1040px) {
  .owner-mode .current-card .current-heading-row {
    padding-right: 44px;
  }
}

@media (max-width: 720px) {
  .current-card {
    grid-template-columns: clamp(86px, 15vw, 104px) minmax(0, 1fr);
    column-gap: 14px;
  }

  .current-card .current-heading-row > .status-pill {
    padding: 5px 8px;
    font-size: 12px;
  }

  .current-card .current-content h3,
  .current-card .current-content h3 .order-title-link {
    font-size: 17px;
  }

  .current-card .current-topline,
  .current-card .current-customer-row,
  .current-card .progress-copy,
  .current-card .timer-progress-copy,
  .current-card .progress-label-only,
  .current-card .progress-copy strong,
  .current-card .timer-progress-copy strong {
    font-size: 13px;
  }

  .current-card .current-order-date {
    font-size: 12px;
  }
}

/* v207: keep the current-order text rhythm independent of poster height. */
.current-card .current-summary {
  display: contents;
}

@media (max-width: 1040px) {
  .current-card {
    grid-template-rows: auto;
  }

  .current-card > .poster-placeholder {
    grid-row: 1;
  }

  .current-card .current-summary {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    align-self: start;
    min-width: 0;
  }

  .current-card .current-heading-row {
    grid-column: auto;
    grid-row: auto;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
  }

  .current-card .current-content h3 {
    flex: 1 1 auto;
  }

  .current-card .current-heading-row > .status-pill {
    flex: 0 0 auto;
    align-self: flex-start;
  }

  .current-card .current-topline,
  .current-card .current-customer-row {
    grid-column: auto;
    grid-row: auto;
  }

  .current-card .current-progress-block,
  .current-card .progress-label-only {
    grid-row: 2;
  }

  .current-card .timer-progress-block {
    grid-row: 3;
  }
}

@media (max-width: 720px) {
  .current-card .current-heading-row {
    flex-direction: column-reverse;
    align-items: stretch;
    justify-content: flex-start;
    gap: 6px;
  }

  .current-card .current-content h3 {
    flex: 0 1 auto;
  }

  .current-card .current-heading-row > .status-pill {
    align-self: flex-end;
  }

  .current-card .current-order-date {
    display: none;
  }
}

/* v208: phone status returns to the left; tablets use the desktop card layout. */
@media (max-width: 720px) {
  .current-card .current-heading-row > .status-pill {
    align-self: flex-start;
  }
}

@media (min-width: 721px) and (max-width: 1040px) {
  .current-card {
    grid-template-columns: 131px minmax(0, 1fr);
    column-gap: 15px;
    min-height: 216px;
    border-width: 2px;
    padding: 16px;
  }

  .current-card > .poster-placeholder {
    aspect-ratio: auto;
    align-self: stretch;
    margin-bottom: 0;
  }

  .current-card .current-content {
    display: flex;
    padding: 0 2px 4px 0;
    margin-top: -5px;
  }

  .current-card .current-summary {
    display: contents;
  }

  .current-card .current-heading-row {
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
  }

  .current-card .current-content h3,
  .current-card .current-content h3 .order-title-link {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
  }

  .current-card .current-heading-row > .status-pill {
    box-sizing: border-box;
    padding: 7px 10px;
    border-width: 2px;
    font-size: 14px;
    font-weight: 600;
    transform: translateY(5px);
  }

  .current-card .current-topline {
    margin-top: 7px;
    font-size: 15px;
    font-weight: 600;
  }

  .current-card .current-customer-row {
    align-items: baseline;
    gap: 5px 14px;
    margin: 12px 0 0;
    font-size: 15px;
    font-weight: 500;
  }

  .current-card .current-customer {
    font-size: 15px;
    font-weight: 500;
  }

  .current-card .current-order-date {
    font-size: 14px;
    font-weight: 500;
  }

  .current-card .current-progress-block,
  .current-card .progress-label-only {
    margin-top: 12px;
  }

  .current-card .progress-copy,
  .current-card .timer-progress-copy,
  .current-card .progress-label-only {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.35;
  }

  .current-card .progress-copy strong,
  .current-card .timer-progress-copy strong {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
  }
}

/* v209: keep the start date beside the customer throughout the tablet range. */
@media (min-width: 721px) and (max-width: 1040px) {
  .current-card .current-customer-row {
    display: flex;
    flex-wrap: nowrap;
    align-self: stretch;
    white-space: nowrap;
  }
}

/* v210: simplify the home header and align its mobile section typography. */
@media (max-width: 1040px) {
  .site-header {
    min-height: 68px;
    grid-template-rows: 68px;
  }

  .site-header .header-socials {
    display: none;
  }

  .current-card .current-order-date {
    font: inherit;
  }

  .hero-section .eyebrow,
  .home-schedule-section .home-schedule-heading .eyebrow,
  .queue-section .queue-heading .eyebrow {
    font-weight: 700;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 66px;
    grid-template-rows: 66px;
  }
}

/* v211: align home section actions with their titles and match card type scales. */
@media (max-width: 1040px) {
  .home-schedule-heading,
  .queue-section .queue-title-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto;
    column-gap: 20px;
    row-gap: 0;
    align-items: start;
  }

  .home-schedule-heading > div:first-child,
  .queue-section .queue-heading {
    display: contents;
  }

  .home-schedule-heading .eyebrow,
  .queue-section .queue-heading .eyebrow {
    grid-column: 1;
    grid-row: 1;
  }

  .home-schedule-heading h2,
  .queue-section .queue-heading h2 {
    grid-column: 1;
    grid-row: 2;
    align-self: end;
    min-width: 0;
  }

  .home-schedule-heading p {
    grid-column: 1;
    grid-row: 3;
  }

  .home-schedule-heading > .home-schedule-link,
  .queue-section .queue-title-actions {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: end;
    justify-self: end;
  }

  .home-schedule-heading > .home-schedule-link {
    margin: 0;
  }

  .queue-section .queue-title-actions {
    position: static;
  }

  .queue-section .queue-heading .mobile-queue-stats {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .owner-mode .home-schedule-heading {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .owner-mode .home-schedule-heading > .home-schedule-add {
    grid-column: 3;
    grid-row: 1 / 3;
    align-self: end;
    justify-self: end;
    margin: 0;
  }

  .home-schedule-v104 .home-schedule-copy > .home-schedule-status {
    padding: 7px 10px;
    border-width: 2px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
  }

  .home-schedule-v104 .home-schedule-copy > strong {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
  }

  .home-schedule-v104 .home-schedule-order-item {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
  }
}

@media (max-width: 720px) {
  .home-schedule-heading,
  .queue-section .queue-title-row {
    column-gap: 14px;
  }

  .home-schedule-v104 .home-schedule-copy > .home-schedule-status {
    padding: 5px 8px;
    font-size: 12px;
  }

  .home-schedule-v104 .home-schedule-copy > strong {
    font-size: 17px;
  }

  .home-schedule-v104 .home-schedule-order-item {
    font-size: 13px;
  }
}

/* Phone queue cards use the full width below the poster. */
@media (max-width: 720px) {
  .queue-section .queue-main {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 0;
    align-items: start;
  }
  .queue-section .queue-copy,
  .queue-section .queue-mobile-details { display: contents; }
  .queue-section .queue-cover-column {
    grid-column: 1;
    grid-row: 1 / 5;
    width: 88px;
    min-width: 0;
  }
  .queue-section .queue-cover { width: 88px; aspect-ratio: 2 / 3; }
  .queue-section .mobile-meta {
    grid-column: 2;
    grid-row: 1;
    gap: 5px 7px;
    margin-bottom: 5px;
  }
  .queue-section .mobile-meta .status-pill {
    padding: 5px 8px;
    border-width: 2px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
  }
  .queue-section .mobile-meta .status-pill i { display: none; }
  .queue-section .mobile-meta > span {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
  }
  .queue-section .queue-title-line {
    grid-column: 2;
    grid-row: 2;
    margin-bottom: 5px;
  }
  .queue-section .queue-main h3,
  .queue-section .queue-main .order-title-link {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }
  .queue-section .queue-customer {
    grid-column: 2;
    grid-row: 3;
    margin-top: 3px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
  }
  .queue-section .queue-customer .customer-filter-link { font-weight: 700; }
  .queue-section .queue-tags {
    grid-column: 2;
    grid-row: 4;
    margin-top: 3px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
  }
  .queue-section .queue-tags .rating-score {
    font-size: 13px;
    font-weight: 700;
  }
  .queue-section .queue-copy > .queue-description,
  .queue-section .queue-mobile-details > .mobile-comment { display: none; }
  .queue-section .queue-related-area,
  .queue-section .queue-mobile-details > * {
    grid-column: 1 / -1;
    min-width: 0;
  }
  .queue-section .queue-mobile-details > .queue-progress-block,
  .queue-section .queue-mobile-details > .queue-progress-label-only {
    order: 1;
    margin-top: 14px;
  }
  .queue-section .queue-mobile-details > .timer-progress-block {
    order: 2;
    margin-top: 12px;
  }
  .queue-section .queue-mobile-details > .mobile-order-date {
    order: 3;
    margin-top: 12px;
  }
  .queue-section .mobile-order-date.stacked {
    display: flex;
    flex-wrap: nowrap;
    align-items: baseline;
    gap: 4px;
    white-space: nowrap;
  }
  .queue-section .queue-related-area { order: 4; margin-top: 12px; }
  .queue-section .queue-related-area > .series-history { margin-top: 0; }
  .queue-section .series-history-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
  }
  .queue-section .queue-related-area .desktop-recording-link {
    display: inline-flex;
    align-items: center;
    min-height: 0;
    margin: 0;
    padding: 3px 0;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
  }
  .queue-section .queue-mobile-details > .recording-link {
    display: none;
  }
  .queue-section .queue-mobile-details > .queue-mobile-extra { order: 6; }
  .queue-section .queue-progress-copy,
  .queue-section .timer-progress-copy,
  .queue-section .queue-progress-label-only,
  .queue-section .mobile-order-date {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
  }
  .queue-section .queue-progress-copy strong,
  .queue-section .timer-progress-copy strong {
    font-size: 13px;
    font-weight: 700;
  }
  .queue-section .series-history-toggle,
  .queue-section .queue-mobile-details > .recording-link {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
  }
  .queue-section .queue-progress-track,
  .queue-section .timer-progress-track { height: 3px; }
  .queue-section .queue-mobile-extra {
    margin-top: 13px;
  }
  .queue-section .queue-mobile-extra::before {
    content: "";
    display: block;
    width: 60%;
    margin-inline: auto;
    border-top: 1px solid var(--line);
  }
  .queue-section .queue-mobile-extra summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 40px;
    list-style: none;
    cursor: pointer;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
  }
  .queue-section .queue-mobile-extra summary::-webkit-details-marker { display: none; }
  .queue-section .queue-mobile-extra[open] summary svg { transform: rotate(180deg); }
  .queue-section .queue-mobile-extra summary:focus-visible {
    outline: 2px solid var(--text);
    outline-offset: 2px;
    border-radius: 4px;
  }
  .queue-section .queue-mobile-extra-content {
    display: grid;
    gap: 12px;
    padding: 0 0 4px;
  }
  .queue-section .queue-mobile-extra-content strong {
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
  }
  .queue-section .queue-mobile-extra-content p {
    margin: 0;
    color: var(--text);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
    white-space: pre-wrap;
  }
  .owner-mode .queue-row .owner-row-actions { padding-left: 0; }
}
@media (max-width: 1040px) {
  .queue-section .mobile-meta > .mobile-meta-type {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
  }
  .queue-section .mobile-meta-type > i {
    display: block;
    align-self: center;
    width: 4px;
    height: 4px;
    flex: 0 0 4px;
    margin: 0 2px;
    border-radius: 50%;
    background: currentColor;
  }
}
@media (min-width: 721px) {
  .queue-mobile-extra { display: none; }
}
