/* A.Z TRADERS — storefront styles */

.page-orders .page-main {
  --af57-or-syne: "Syne", var(--display);
  --af57-or-teal: #0B5E5E;
  --af57-or-coral: #FF5E3A;
  --af57-or-gold: #E8C547;
  --af57-or-glass: rgba(255, 255, 255, 0.74);
  --af57-or-glass-edge: rgba(255, 255, 255, 0.48);
  --af57-or-ink: #0a1818;
  --af57-or-muted: #5a7474;
  background:
    radial-gradient(ellipse 75% 55% at 5% 0%, rgba(11, 94, 94, 0.1), transparent 50%),
    radial-gradient(ellipse 65% 45% at 100% 10%, rgba(232, 197, 71, 0.08), transparent 45%),
    var(--linen);
}

.af57-or-atlas {
  position: relative;
  padding: clamp(1.25rem, 3vw, 2rem) var(--space-container) clamp(3rem, 7vw, 5rem);
  max-width: calc(1180px + var(--space-container) * 2);
  margin-inline: auto;
}

/* ── Bento stats grid ── */
.af57-or-bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: auto auto;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  animation: af57-or-rise 0.55s var(--ease-smooth) both;
}

@keyframes af57-or-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.af57-or-bento-cell {
  padding: clamp(1rem, 2.5vw, 1.35rem) clamp(1.1rem, 2.5vw, 1.5rem);
  border-radius: 22px;
  background: var(--af57-or-glass);
  backdrop-filter: blur(18px);
  border: 1px solid var(--af57-or-glass-edge);
  box-shadow: 0 12px 36px rgba(4, 47, 47, 0.07);
}

.af57-or-bento-hero {
  grid-column: span 3;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(155deg, rgba(4, 47, 47, 0.96) 0%, rgba(11, 94, 94, 0.92) 55%, rgba(8, 68, 68, 0.95) 100%);
  color: var(--on-dark);
  border-color: rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.af57-or-bento-hero::before {
  content: "";
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(circle at 25% 30%, rgba(255, 94, 58, 0.22), transparent 45%),
    radial-gradient(circle at 75% 70%, rgba(232, 197, 71, 0.14), transparent 40%);
  pointer-events: none;
  animation: af57-or-drift 10s ease-in-out infinite alternate;
}

@keyframes af57-or-drift {
  from { transform: translate(-2%, -1%) rotate(0deg); }
  to { transform: translate(2%, 2%) rotate(6deg); }
}

.af57-or-bento-hero > * {
  position: relative;
  z-index: 1;
}

.af57-or-eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--af57-or-gold);
}

.af57-or-bento-hero h1 {
  margin: 0 0 0.65rem;
  font-family: var(--af57-or-syne);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.af57-or-bento-hero h1 span {
  background: linear-gradient(120deg, var(--af57-or-gold), var(--af57-or-coral));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.af57-or-dek {
  margin: 0;
  max-width: 42ch;
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(250, 250, 248, 0.72);
}

.af57-or-stat {
  grid-column: span 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  justify-content: center;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
}

.af57-or-stat:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(11, 94, 94, 0.12);
}

.af57-or-stat-wide {
  grid-column: span 2;
}

.af57-or-stat-label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--af57-or-muted);
}

.af57-or-stat strong {
  font-family: var(--af57-or-syne);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  color: var(--af57-or-teal);
  line-height: 1;
  transition: transform 0.35s var(--ease-spring), color 0.35s;
}

.af57-or-stat[data-stat="spend"] strong {
  color: var(--af57-or-coral);
}

.af57-or-stat strong.is-tick {
  animation: af57-or-tick 0.45s var(--ease-spring);
}

@keyframes af57-or-tick {
  0% { transform: scale(1); }
  40% { transform: scale(1.1); color: var(--af57-or-coral); }
  100% { transform: scale(1); }
}

/* ── Loading ── */
.af57-or-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
  padding: 4rem 2rem;
  border-radius: 28px;
  background: var(--af57-or-glass);
  backdrop-filter: blur(18px);
  border: 1px solid var(--af57-or-glass-edge);
  box-shadow: var(--shadow-md);
}

.af57-or-loader {
  position: relative;
  width: 56px;
  height: 56px;
}

.af57-or-loader span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
}

.af57-or-loader span:nth-child(1) {
  border-top-color: var(--af57-or-teal);
  animation: af57-or-spin 0.9s linear infinite;
}

.af57-or-loader span:nth-child(2) {
  inset: 9px;
  border-right-color: var(--af57-or-coral);
  animation: af57-or-spin 1.2s linear infinite reverse;
}

.af57-or-loader span:nth-child(3) {
  inset: 18px;
  border-bottom-color: var(--af57-or-gold);
  animation: af57-or-spin 0.75s linear infinite;
}

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

.af57-or-loading p {
  margin: 0;
  font-family: var(--af57-or-syne);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--af57-or-muted);
}

/* ── Guest gate ── */
.af57-or-gate {
  display: grid;
  place-items: center;
  min-height: 50vh;
  animation: af57-or-rise 0.5s var(--ease-smooth) both;
}

.af57-or-gate-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 420px;
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: 28px;
  background: var(--af57-or-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--af57-or-glass-edge);
  box-shadow: 0 24px 56px rgba(4, 47, 47, 0.1);
}

.af57-or-gate-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(11, 94, 94, 0.15), rgba(255, 94, 58, 0.1));
  font-family: var(--af57-or-syne);
  font-size: 1.5rem;
  color: var(--af57-or-teal);
}

.af57-or-gate-card h2 {
  margin: 0 0 0.5rem;
  font-family: var(--af57-or-syne);
  font-size: 1.35rem;
  font-weight: 800;
}

.af57-or-gate-card p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--af57-or-muted);
}

.af57-or-gate-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

/* ── Dashboard ── */
.af57-or-dashboard {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  animation: af57-or-rise 0.55s var(--ease-smooth) both;
}

/* Filter bar with glider */
.af57-or-filters {
  position: relative;
  display: flex;
  gap: 0.35rem;
  padding: 0.4rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  overflow-x: auto;
  scrollbar-width: none;
}

.af57-or-filters::-webkit-scrollbar { display: none; }

.af57-or-filters button {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
  min-width: max-content;
  padding: 0.7rem 1.1rem;
  border: none;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--af57-or-muted);
  font: inherit;
  font-family: var(--af57-or-syne);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.28s;
  white-space: nowrap;
}

.af57-or-filters button.is-active {
  color: var(--on-dark);
}

.af57-or-filter-glider {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  width: calc((100% - 0.8rem) / 5);
  height: calc(100% - 0.8rem);
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--af57-or-teal), #0a6868);
  box-shadow: 0 6px 22px var(--meridian-glow);
  transition: transform 0.42s var(--ease-spring);
  pointer-events: none;
}

.af57-or-filters[data-active="placed"] .af57-or-filter-glider { transform: translateX(100%); }
.af57-or-filters[data-active="packed"] .af57-or-filter-glider { transform: translateX(200%); }
.af57-or-filters[data-active="shipped"] .af57-or-filter-glider { transform: translateX(300%); }
.af57-or-filters[data-active="delivered"] .af57-or-filter-glider { transform: translateX(400%); }

/* Split pane */
.af57-or-split {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1.35fr);
  gap: 1rem;
  min-height: clamp(420px, 58vh, 640px);
}

.af57-or-scroll-wrap {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-radius: 24px;
  background: var(--af57-or-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--af57-or-glass-edge);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.af57-or-scroll-label {
  margin: 0;
  padding: 0.85rem 1.1rem 0.65rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--af57-or-muted);
  border-bottom: 1px solid rgba(11, 94, 94, 0.08);
}

.af57-or-scroll {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.65rem;
  overflow-y: auto;
  flex: 1;
  max-height: clamp(360px, 52vh, 580px);
}

/* Lane list items (JS-rendered) */
.af57-or-lane {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid transparent;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: background 0.25s, border-color 0.25s, transform 0.3s var(--ease-spring), box-shadow 0.3s;
  animation: af57-or-lane-in 0.4s calc(var(--lane-i, 0) * 0.05s) var(--ease-smooth) both;
}

@keyframes af57-or-lane-in {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: none; }
}

.af57-or-lane:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(11, 94, 94, 0.15);
  transform: translateX(4px);
}

.af57-or-lane.is-selected {
  background: rgba(11, 94, 94, 0.08);
  border-color: rgba(11, 94, 94, 0.28);
  box-shadow: 0 8px 24px rgba(11, 94, 94, 0.1);
}

.af57-or-lane.is-hidden { display: none; }

.af57-or-lane-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 42px;
  line-height: 1.1;
}

.af57-or-lane-date em {
  font-style: normal;
  font-family: var(--af57-or-syne);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--af57-or-teal);
}

.af57-or-lane-date span {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--af57-or-muted);
}

.af57-or-lane-main {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.af57-or-lane-seq {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--af57-or-muted);
}

.af57-or-lane-id {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--af57-or-ink);
  word-break: break-all;
}

.af57-or-lane-sum {
  font-size: 0.68rem;
  color: var(--af57-or-muted);
}

/* Status badges with tone transitions */
.af57-or-lane-badge,
.af57-or-detail-badge {
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.35s, color 0.35s, box-shadow 0.35s, transform 0.35s var(--ease-spring);
}

.tone-placed .af57-or-lane-badge,
.af57-or-detail-badge.tone-placed {
  background: rgba(148, 163, 184, 0.18);
  color: #475569;
}

.tone-packed .af57-or-lane-badge,
.af57-or-detail-badge.tone-packed {
  background: rgba(11, 94, 94, 0.14);
  color: var(--af57-or-teal);
}

.tone-shipped .af57-or-lane-badge,
.af57-or-detail-badge.tone-shipped {
  background: rgba(255, 94, 58, 0.14);
  color: #c0391a;
  box-shadow: 0 0 0 0 rgba(255, 94, 58, 0.35);
  animation: af57-or-badge-pulse 2.2s ease-in-out infinite;
}

@keyframes af57-or-badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 94, 58, 0.25); }
  50% { box-shadow: 0 0 0 6px rgba(255, 94, 58, 0); }
}

.tone-delivered .af57-or-lane-badge,
.af57-or-detail-badge.tone-delivered {
  background: rgba(184, 233, 134, 0.22);
  color: #2a5a2a;
}

.tone-cancelled .af57-or-lane-badge,
.af57-or-detail-badge.tone-cancelled {
  background: rgba(153, 27, 27, 0.12);
  color: #991b1b;
}

.af57-or-lane.is-selected .af57-or-lane-badge {
  transform: scale(1.04);
}

/* Deep-dive panel */
.af57-or-deep {
  position: relative;
  border-radius: 24px;
  background: var(--af57-or-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--af57-or-glass-edge);
  box-shadow: 0 20px 48px rgba(4, 47, 47, 0.08);
  overflow: hidden;
  min-height: 0;
}

.af57-or-deep-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  height: 100%;
  min-height: 320px;
  padding: 2rem;
  text-align: center;
  color: var(--af57-or-muted);
}

.af57-or-deep-placeholder span {
  font-size: 2rem;
  opacity: 0.35;
}

.af57-or-deep-placeholder p {
  margin: 0;
  max-width: 28ch;
  font-size: 0.875rem;
  line-height: 1.55;
}

.af57-or-detail {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  height: 100%;
  overflow-y: auto;
  max-height: clamp(360px, 52vh, 580px);
}

.af57-or-detail.is-enter {
  animation: af57-or-detail-in 0.45s var(--ease-smooth) both;
}

@keyframes af57-or-detail-in {
  from { opacity: 0; transform: translateX(14px); }
  to { opacity: 1; transform: none; }
}

.af57-or-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.af57-or-detail-seq {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--af57-or-muted);
}

.af57-or-detail-head h2 {
  margin: 0.2rem 0 0;
  font-family: ui-monospace, Consolas, monospace;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-weight: 600;
  word-break: break-all;
  color: var(--af57-or-ink);
}

.af57-or-detail-badge {
  font-size: 0.62rem;
  flex-shrink: 0;
}

/* Progress rail */
.af57-or-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
}

.af57-or-progress span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  position: relative;
  text-align: center;
}

.af57-or-progress span:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 14px;
  left: calc(50% + 14px);
  width: calc(100% - 28px);
  height: 2px;
  background: rgba(11, 94, 94, 0.12);
  z-index: 0;
}

.af57-or-progress span em {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-style: normal;
  font-family: var(--af57-or-syne);
  font-size: 0.58rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid rgba(11, 94, 94, 0.15);
  color: var(--af57-or-muted);
  transition: background 0.35s, border-color 0.35s, color 0.35s, box-shadow 0.35s, transform 0.35s var(--ease-spring);
}

.af57-or-progress span i {
  font-style: normal;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--af57-or-muted);
}

.af57-or-progress span.is-done em {
  background: var(--af57-or-teal);
  border-color: var(--af57-or-teal);
  color: var(--on-dark);
}

.af57-or-progress span.is-done::after {
  background: var(--af57-or-teal);
}

.af57-or-progress span.is-active em {
  background: var(--af57-or-coral);
  border-color: var(--af57-or-gold);
  color: var(--on-dark);
  box-shadow: 0 0 16px rgba(255, 94, 58, 0.4);
  animation: af57-or-node-glow 2s ease-in-out infinite;
}

@keyframes af57-or-node-glow {
  0%, 100% { box-shadow: 0 0 12px rgba(255, 94, 58, 0.35); transform: scale(1); }
  50% { box-shadow: 0 0 22px rgba(255, 94, 58, 0.55); transform: scale(1.06); }
}

.af57-or-progress.is-cancelled span em {
  opacity: 0.35;
}

/* Detail meta */
.af57-or-detail-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  margin: 0;
}

.af57-or-detail-meta > div {
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.af57-or-detail-meta dt {
  margin: 0 0 0.2rem;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--af57-or-muted);
}

.af57-or-detail-meta dd {
  margin: 0;
  font-family: var(--af57-or-syne);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--af57-or-ink);
}

/* Expandable items */
.af57-or-detail-items h3 {
  margin: 0 0 0.65rem;
  font-family: var(--af57-or-syne);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--af57-or-ink);
}

.af57-or-detail-items h3 span {
  font-weight: 600;
  color: var(--af57-or-muted);
}

.af57-or-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.af57-or-item {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.85);
  overflow: hidden;
  animation: af57-or-lane-in 0.35s calc(var(--item-i, 0) * 0.04s) var(--ease-smooth) both;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.af57-or-item.is-open {
  border-color: rgba(11, 94, 94, 0.22);
  box-shadow: 0 8px 24px rgba(11, 94, 94, 0.08);
}

.af57-or-item-toggle {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.af57-or-item-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--af57-or-ink);
  line-height: 1.35;
}

.af57-or-item-meta {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--af57-or-muted);
  white-space: nowrap;
}

.af57-or-item-chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--af57-or-teal);
  border-bottom: 2px solid var(--af57-or-teal);
  transform: rotate(45deg);
  transition: transform 0.35s var(--ease-spring);
}

.af57-or-item.is-open .af57-or-item-chevron {
  transform: rotate(-135deg) translateY(2px);
}

.af57-or-item-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.38s var(--ease-smooth);
}

.af57-or-item.is-open .af57-or-item-body {
  grid-template-rows: 1fr;
}

.af57-or-item-body > dl {
  overflow: hidden;
  margin: 0;
  padding: 0 0.9rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 0;
  opacity: 0;
  transition: opacity 0.28s, padding 0.38s var(--ease-smooth);
}

.af57-or-item.is-open .af57-or-item-body > dl {
  padding-bottom: 0.85rem;
  opacity: 1;
}

.af57-or-item-body[hidden] {
  display: none !important;
}

.af57-or-item-body dl div {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.75rem;
}

.af57-or-item-body dt {
  color: var(--af57-or-muted);
  font-weight: 700;
}

.af57-or-item-body dd {
  margin: 0;
  font-weight: 600;
  color: var(--af57-or-ink);
}

.af57-or-no-items {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--af57-or-muted);
  font-style: italic;
}

.af57-or-detail-foot {
  margin-top: auto;
  padding-top: 0.5rem;
}

/* Buttons */
.af57-or-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: var(--radius-full);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s, background 0.25s;
}

.af57-or-btn-fill {
  background: linear-gradient(135deg, var(--af57-or-teal), #0a6868);
  color: var(--on-dark);
  box-shadow: 0 8px 24px var(--meridian-glow);
}

.af57-or-btn-fill:hover {
  transform: translateY(-2px);
  color: var(--on-dark);
}

.af57-or-btn-line {
  background: transparent;
  color: var(--af57-or-teal);
  border: 2px solid rgba(11, 94, 94, 0.22);
}

.af57-or-btn-line:hover {
  border-color: var(--af57-or-teal);
  background: rgba(11, 94, 94, 0.06);
  color: var(--af57-or-teal);
}

.af57-or-track {
  width: 100%;
}

/* Empty / filter empty */
.af57-or-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
  border-radius: 28px;
  background: var(--af57-or-glass);
  border: 1px solid var(--af57-or-glass-edge);
  box-shadow: var(--shadow-md);
}

.af57-or-empty-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 1rem;
  border-radius: 20px;
  background: rgba(11, 94, 94, 0.08);
  font-size: 1.5rem;
  color: var(--af57-or-muted);
}

.af57-or-empty h2 {
  margin: 0 0 0.5rem;
  font-family: var(--af57-or-syne);
  font-size: 1.35rem;
  font-weight: 800;
}

.af57-or-empty p {
  margin: 0 0 1.5rem;
  max-width: 38ch;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--af57-or-muted);
}

.af57-or-filter-empty {
  margin: 0;
  padding: 1rem 1.25rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--af57-or-muted);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px dashed rgba(11, 94, 94, 0.15);
}

/* Legacy card hide */
.vm-or-card { display: none !important; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .af57-or-bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .af57-or-bento-hero {
    grid-column: span 2;
    grid-row: auto;
  }

  .af57-or-stat-wide {
    grid-column: span 2;
  }

  .af57-or-split {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .af57-or-scroll {
    max-height: 280px;
  }

  .af57-or-detail {
    max-height: none;
  }

  .af57-or-filters {
    flex-wrap: nowrap;
  }

  .af57-or-filter-glider {
    width: calc((100% - 0.8rem) / 5);
  }
}

@media (max-width: 560px) {
  .af57-or-bento {
    grid-template-columns: 1fr;
  }

  .af57-or-bento-hero,
  .af57-or-stat-wide {
    grid-column: auto;
  }

  .af57-or-detail-meta {
    grid-template-columns: 1fr;
  }

  .af57-or-progress span i {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .af57-or-bento-hero::before,
  .af57-or-lane,
  .af57-or-detail.is-enter,
  .af57-or-item,
  .af57-or-stat strong.is-tick,
  .tone-shipped .af57-or-lane-badge,
  .af57-or-progress span.is-active em,
  .af57-or-filter-glider {
    animation: none;
    transition: none;
  }
}
