.page-achats { display: flex; flex-direction: column; flex: 1; min-height: 0; min-width: 0; }
.page-pc { flex: 1; min-width: 0; overflow-y: auto; padding: 22px 28px 48px; }

.nav-group {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  padding: 16px 12px 6px;
}
.nav-group:first-child { padding-top: 0; }

.card-photo-ext { background: #F6F8FB; }
.card-photo-ext .card-photo { object-fit: contain; padding: 6px; }
.detail-photo-ext { background: #F6F8FB; }
.detail-photo-ext .detail-photo { object-fit: contain; padding: 10px; }

.pc-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.pc-header h1 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: 0.01em; }
.pc-sub { margin: 4px 0 0; font-size: 12px; color: var(--text-mute); }

.pc-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--text-dim);
  border: 1px solid var(--border-strong); border-radius: 8px;
  padding: 9px 14px; font: 600 13px var(--font); cursor: pointer;
  transition: color 150ms ease, border-color 150ms ease, transform 160ms var(--ease-out);
}
.pc-btn:hover { color: var(--accent); border-color: var(--accent); }
.pc-btn:active { transform: scale(0.97); }
.pc-btn[disabled] { opacity: 0.7; cursor: progress; }
.pc-btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.pc-btn-primary:hover { color: var(--accent-ink); filter: brightness(1.08); }
.pc-btn-sm { padding: 6px 12px; font-size: 12px; }
.spin { animation: pc-spin 900ms linear infinite; }
@keyframes pc-spin { to { transform: rotate(360deg); } }

.pc-link {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; padding: 0; margin-right: 10px;
  color: var(--accent); font: 600 12px var(--font); cursor: pointer;
}
.pc-link:hover { text-decoration: underline; }
.pc-link.warn { color: var(--warning); }
.pc-muted { color: var(--text-mute); font-size: 12px; margin: 6px 0 0; }

.pc-error {
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
  background: rgba(244, 63, 94, 0.1); color: var(--danger);
  border: 1px solid rgba(244, 63, 94, 0.35); border-radius: 10px; padding: 10px 14px; font-size: 13px;
}

.pc-enter { animation: pc-in 300ms var(--ease-out); }
@keyframes pc-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.pc-skeleton { display: flex; flex-direction: column; gap: 16px; }
.sk { background: var(--bg-card); border-radius: 12px; animation: pc-pulse 1.4s ease-in-out infinite; }
.sk-rail { height: 150px; }
.sk-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.sk-row.two { grid-template-columns: 1.15fr 1fr; }
.sk-tile { height: 74px; }
.sk-panel { height: 200px; }
@keyframes pc-pulse { 50% { opacity: 0.55; } }

.pc-empty {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
  background: var(--bg-panel); border: 1px dashed var(--border-strong); border-radius: 14px; padding: 48px 24px;
}
.pc-empty h2 { margin: 6px 0 0; font-size: 16px; }
.pc-empty p { margin: 0 0 10px; color: var(--text-dim); font-size: 13px; max-width: 46ch; }
.pc-empty-icon { width: 36px; height: 36px; color: var(--accent); }
.pc-empty-inline { padding: 32px 24px; }

.pc-rail {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  background: var(--bg-panel); border: 1px solid var(--border); border-radius: 14px; padding: 22px 12px 18px;
}
.pc-station {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: none; border: none; color: var(--text); font-family: inherit; text-align: center;
  padding: 4px 8px; cursor: pointer;
}
.pc-station-badge {
  position: relative; z-index: 1; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; font-size: 22px;
  background: var(--bg-card); border: 1.5px solid var(--border-strong);
  transition: transform 200ms var(--ease-out), border-color 150ms ease;
}
.pc-station:hover .pc-station-badge { transform: translateY(-3px); }
.pc-station:active .pc-station-badge { transform: scale(0.96); }
.pc-station.tone-info .pc-station-badge { color: var(--accent); border-color: rgba(34, 211, 238, 0.5); }
.pc-station.tone-warning .pc-station-badge { color: var(--warning); border-color: rgba(245, 158, 11, 0.5); }
.pc-station.tone-success .pc-station-badge { color: var(--success); border-color: rgba(16, 185, 129, 0.5); }
.pc-station.is-zero { opacity: 0.5; }
.pc-station.is-zero .pc-station-badge { border-color: var(--border-strong); color: var(--text-mute); }
.pc-station-n { font-family: var(--font-mono); font-size: 32px; font-weight: 600; line-height: 1.1; margin-top: 8px; }
.pc-station-label { font-size: 13px; font-weight: 600; }
.pc-station-cap { font-size: 11px; color: var(--text-mute); max-width: 18ch; }
.pc-station:not(:last-child)::after {
  content: ''; position: absolute; top: 30px; left: calc(50% + 36px); right: calc(-50% + 36px); height: 2px;
  background: repeating-linear-gradient(90deg, var(--border-strong) 0 6px, transparent 6px 12px);
}
.pc-station:not(:last-child):not(.is-zero)::after {
  background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 12px);
  background-size: 12px 2px;
  animation: pc-flow 900ms linear infinite;
}
@keyframes pc-flow { to { background-position: 12px 0; } }

.pc-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.pc-metrics-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 0; }
.pc-metric {
  display: flex; flex-direction: column; gap: 4px; text-align: left;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px;
  color: var(--text); font-family: inherit;
}
.pc-metric-label { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-mute); }
.pc-metric-value { font-family: var(--font-mono); font-size: 22px; font-weight: 600; }
.pc-metric.is-alert .pc-metric-value { color: var(--danger); }
.pc-metric.is-warn .pc-metric-value { color: var(--warning); }
.pc-metric-link { cursor: pointer; transition: border-color 150ms ease, transform 160ms var(--ease-out); }
.pc-metric-link:hover { border-color: var(--accent); }
.pc-metric-link:active { transform: scale(0.98); }

.pc-cols { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; }
.pc-panel { background: var(--bg-panel); border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.pc-panel h2 { margin: 0 0 12px; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.pc-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.pc-panel-head h2 { margin: 0; }
.pc-section { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 14px; font-weight: 600; }
.pc-count {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; color: var(--text-dim);
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 999px; padding: 1px 8px;
}

.pc-alerts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pc-alert {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px;
  color: var(--text); font: 13px var(--font); cursor: pointer;
  transition: border-color 150ms ease, transform 160ms var(--ease-out);
}
.pc-alert:hover { border-color: var(--border-strong); }
.pc-alert:active { transform: scale(0.99); }
.pc-alert-icon { font-size: 16px; display: grid; place-items: center; }
.pc-alert.level-danger .pc-alert-icon { color: var(--danger); }
.pc-alert.level-warning .pc-alert-icon { color: var(--warning); }
.pc-alert.level-info .pc-alert-icon { color: var(--accent); }
.pc-alert-text { flex: 1; min-width: 0; }
.pc-alert-val { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); }
.pc-all-good { display: flex; align-items: center; gap: 10px; color: var(--success); font-size: 13px; padding: 8px 2px; }

.pc-mini-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pc-mini { position: relative; background: none; border: none; padding: 0; cursor: pointer; transition: transform 200ms var(--ease-out); }
.pc-mini:hover { transform: translateY(-3px); }
.pc-mini .pc-photo { width: 100%; height: auto; aspect-ratio: 1; }
.pc-mini-qty, .pc-strip-qty {
  position: absolute; right: 6px; bottom: 6px; font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  background: var(--accent); color: var(--accent-ink); border-radius: 6px; padding: 1px 6px;
}

.pc-photo {
  position: relative; display: grid; place-items: center; flex-shrink: 0; overflow: hidden;
  background: #F6F8FB; border-radius: 10px; color: var(--text-mute);
}
.pc-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.pc-photo-xs { width: 32px; height: 32px; border-radius: 6px; }
.pc-photo-sm { width: 46px; height: 46px; }
.pc-photo-md { width: 64px; height: 64px; }
.pc-photo-lg { width: 100%; aspect-ratio: 1.2; }
.pc-photo-xl { width: 112px; height: 112px; }
.pc-photo-empty { background: var(--bg-card); border: 1px dashed var(--border-strong); font-size: 22px; }

.pc-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.pc-search {
  display: flex; align-items: center; gap: 10px; flex: 1; min-width: 240px; max-width: 420px;
  background: var(--bg-panel); border: 1px solid var(--border); border-radius: 8px; padding: 0 12px; color: var(--text-mute);
}
.pc-search:focus-within { border-color: var(--accent); }
.pc-search input { flex: 1; background: none; border: none; outline: none; color: var(--text); font: 13px var(--font); padding: 10px 0; }
.pc-chips, .pc-presets { display: flex; gap: 6px; flex-wrap: wrap; }
.pc-chip {
  display: inline-flex; align-items: center; gap: 8px; background: var(--bg-panel); color: var(--text-dim);
  border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; font: 600 12px var(--font); cursor: pointer;
  transition: color 150ms ease, border-color 150ms ease, transform 160ms var(--ease-out);
}
.pc-chip span { font-family: var(--font-mono); font-weight: 500; color: var(--text-mute); }
.pc-chip:hover { color: var(--text); border-color: var(--border-strong); }
.pc-chip:active { transform: scale(0.97); }
.pc-chip.active { color: var(--accent); border-color: rgba(34, 211, 238, 0.5); background: rgba(34, 211, 238, 0.1); }

.pc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.pc-grid-wide { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
.pc-card { background: var(--bg-panel); border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.pc-product {
  display: flex; flex-direction: column; align-items: stretch; gap: 8px; text-align: left; color: var(--text); font-family: inherit;
  cursor: pointer; transition: border-color 150ms ease, transform 200ms var(--ease-out);
}
.pc-product:hover { border-color: var(--accent); transform: translateY(-3px); }
.pc-product:active { transform: scale(0.99); }
.pc-product.is-dormant { border-color: rgba(245, 158, 11, 0.4); }
.pc-product-name {
  font-size: 13px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.7em;
}
.pc-product-asin { font-family: var(--font-mono); font-size: 11px; color: var(--text-mute); }
.pc-product-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.pc-units { font-size: 12px; color: var(--text-dim); }
.pc-units b { font-family: var(--font-mono); font-size: 22px; color: var(--text); margin-right: 4px; }

.pc-tag {
  display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 500; padding: 2px 9px; border-radius: 999px; white-space: nowrap;
}
.pc-tag.tone-info { background: rgba(34, 211, 238, 0.14); color: var(--accent); }
.pc-tag.tone-success { background: rgba(16, 185, 129, 0.16); color: var(--success); }
.pc-tag.tone-warning { background: rgba(245, 158, 11, 0.16); color: var(--warning); }
.pc-tag.tone-danger { background: rgba(244, 63, 94, 0.16); color: var(--danger); }
.pc-tag.tone-muted { background: var(--bg-card); color: var(--text-mute); border: 1px solid var(--border); }
.pc-tag-block { align-self: flex-start; }

.pc-envoi { display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.pc-envoi header { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pc-envoi-id { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 13px; }
.pc-flag { font-size: 18px; }
.pc-envoi .pc-muted { margin: 0; }
.pc-steps { list-style: none; display: flex; margin: 4px 0 2px; padding: 0; }
.pc-steps li { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; color: var(--text-mute); }
.pc-steps i { position: relative; z-index: 1; width: 12px; height: 12px; border-radius: 50%; background: var(--bg-card); border: 2px solid var(--border-strong); }
.pc-steps li + li::before { content: ''; position: absolute; top: 5px; right: 50%; width: 100%; height: 2px; background: var(--border-strong); }
.pc-steps li.done { color: var(--text-dim); }
.pc-steps li.done i { background: var(--accent); border-color: var(--accent); }
.pc-envoi.tone-warning .pc-steps li.done i { background: var(--warning); border-color: var(--warning); }
.pc-envoi.tone-success .pc-steps li.done i { background: var(--success); border-color: var(--success); }
.pc-steps li.done + li.done::before { background: var(--accent); }
.pc-envoi.tone-warning .pc-steps li.done + li.done::before { background: var(--warning); }
.pc-envoi.tone-success .pc-steps li.done + li.done::before { background: var(--success); }
.pc-strip { display: flex; flex-wrap: wrap; gap: 8px; }
.pc-strip-item { position: relative; background: none; border: none; padding: 0; cursor: pointer; transition: transform 200ms var(--ease-out); }
.pc-strip-item:hover { transform: translateY(-2px); }
.pc-strip-qty { right: 3px; bottom: 3px; font-size: 10px; padding: 0 5px; }
.pc-tracks { display: flex; flex-direction: column; gap: 6px; }
.pc-track { display: inline-flex; align-items: center; gap: 8px; }
.pc-track code { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); }
.pc-track a, .pc-ids a { color: var(--text-mute); display: inline-grid; place-items: center; }
.pc-track a:hover, .pc-ids a:hover { color: var(--accent); }
.pc-copy { background: none; border: none; padding: 2px; color: var(--text-mute); cursor: pointer; display: inline-grid; place-items: center; }
.pc-copy:hover { color: var(--accent); }
.pc-copy.copied { color: var(--success); }
.pc-fold { margin-top: 24px; }
.pc-fold summary { cursor: pointer; list-style: none; }
.pc-fold summary::-webkit-details-marker { display: none; }
.pc-fold .pc-grid { margin-top: 4px; }

.pc-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.pc-rows li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.pc-rows li:last-child { border-bottom: none; }
.pc-rows li > span:first-child { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pc-rows small { color: var(--text-mute); font-size: 11px; }
.pc-row-amount { font-family: var(--font-mono); font-size: 13px; }
.pc-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.pc-bars li { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; align-items: center; gap: 12px; font-size: 12px; }
.pc-bar-label { color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-bar-track { height: 6px; border-radius: 3px; background: var(--bg-card); overflow: hidden; }
.pc-bar-track i { display: block; height: 100%; background: var(--accent); transform-origin: left; border-radius: 3px; }
.pc-bar-val { font-family: var(--font-mono); font-size: 12px; min-width: 64px; text-align: right; }

.pc-est { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(330px, 1fr); gap: 16px; align-items: start; }
.pc-est-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pc-est-row { display: flex; align-items: center; gap: 12px; padding: 10px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; }
.pc-est-row.no-dims { border: 1px dashed rgba(245, 158, 11, 0.5); }
.pc-est-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pc-est-name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-est-dims { font-size: 12px; color: var(--text-dim); font-family: var(--font-mono); }
.pc-est-avail { display: flex; gap: 6px; flex-wrap: wrap; }
.pc-stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--border-strong); border-radius: 8px; overflow: hidden; }
.pc-stepper button {
  width: 34px; background: var(--bg-panel); border: none; color: var(--text-dim); cursor: pointer; font-size: 14px;
  transition: background-color 150ms ease, color 150ms ease;
}
.pc-stepper button:hover { background: var(--border); color: var(--accent); }
.pc-stepper button:active { transform: scale(0.94); }
.pc-stepper input {
  width: 58px; text-align: center; background: var(--bg); border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border);
  color: var(--text); font: 600 14px var(--font-mono); padding: 8px 0; -moz-appearance: textfield;
}
.pc-stepper input::-webkit-outer-spin-button, .pc-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.pc-est-result { position: sticky; top: 0; display: flex; flex-direction: column; gap: 12px; max-height: calc(100vh - 150px); overflow-y: auto; padding-right: 2px; }
.pc-est-total { display: flex; flex-direction: column; gap: 10px; }
.pc-total-main { display: flex; align-items: baseline; gap: 10px; font-size: 14px; color: var(--text-dim); }
.pc-total-n { font-family: var(--font-mono); font-size: 46px; font-weight: 600; color: var(--text); line-height: 1; }
.pc-est-total dl { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.pc-est-total dl div { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-dim); }
.pc-est-total dd { margin: 0; font-family: var(--font-mono); }
.pc-est-total .grand { border-top: 1px solid var(--border); padding-top: 8px; color: var(--text); font-weight: 600; }
.pc-est-total .grand dd { color: var(--accent); font-size: 16px; }
.pc-est-total .pc-muted { margin: 0; }
.pc-est-empty { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pc-est-empty h2 { justify-content: center; margin: 4px 0 0; }
.pc-est-empty p { margin: 0; color: var(--text-dim); font-size: 13px; }

.pc-missing {
  display: flex; gap: 12px; font-size: 12px; color: var(--text-dim); line-height: 1.6;
  background: rgba(245, 158, 11, 0.08); border: 1px solid rgba(245, 158, 11, 0.35); border-radius: 12px; padding: 12px 14px;
}
.pc-missing > .icon { color: var(--warning); font-size: 16px; margin-top: 2px; flex-shrink: 0; }
.pc-missing b { color: var(--text); display: block; }

.pc-box header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.pc-box h3 { margin: 0; font-size: 14px; flex: 1; }
.pc-box-cost { font-family: var(--font-mono); font-size: 13px; color: var(--text-dim); }
.pc-gauge { display: grid; grid-template-columns: 52px minmax(0, 1fr) 44px; align-items: center; gap: 10px; font-size: 12px; margin-bottom: 8px; }
.pc-gauge-label { color: var(--text-mute); }
.pc-gauge-track { height: 10px; border-radius: 5px; background: var(--bg-card); overflow: hidden; }
.pc-gauge-track i { display: block; height: 100%; border-radius: 5px; transform-origin: left; transition: transform 450ms var(--ease-out); background: var(--accent); }
.pc-gauge.weight .pc-gauge-track i { background: #8DA2C0; }
.pc-gauge.full .pc-gauge-track i { background: var(--success); }
.pc-gauge.weight.full .pc-gauge-track i { background: var(--danger); }
.pc-gauge-pct { font-family: var(--font-mono); text-align: right; }
.pc-box-items { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pc-box-items li { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.pc-box-qty { font-family: var(--font-mono); font-weight: 600; min-width: 34px; }
.pc-box-name { flex: 1; min-width: 0; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pc-tip { background: rgba(34, 211, 238, 0.06); border: 1px dashed rgba(34, 211, 238, 0.45); border-radius: 12px; padding: 14px; font-size: 12px; color: var(--text-dim); }
.pc-tip p { margin: 0 0 10px; line-height: 1.5; }
.pc-tip b { color: var(--text); }
.pc-tip-list { display: flex; flex-wrap: wrap; gap: 10px; }
.pc-tip-item { position: relative; background: none; border: none; padding: 0; cursor: pointer; transition: transform 200ms var(--ease-out); }
.pc-tip-item:hover { transform: translateY(-2px); }
.pc-tip-item:active { transform: scale(0.95); }
.pc-tip-item span {
  position: absolute; right: 3px; bottom: 3px; font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  background: var(--accent); color: var(--accent-ink); border-radius: 6px; padding: 0 5px;
}

.pc-drawer { position: relative; display: flex; flex-direction: column; gap: 4px; }
.pc-drawer-load { opacity: 0.8; }
.detail-panel .pc-drawer-close {
  position: absolute; top: -4px; right: 0; background: none; color: var(--text-mute); padding: 6px; width: auto; border-radius: 8px; font-size: 18px;
}
.detail-panel .pc-drawer-close:hover { color: var(--text); filter: none; }
.pc-drawer-hero { display: flex; gap: 16px; align-items: center; margin: 4px 28px 16px 0; }
.pc-drawer-hero h2 { margin: 0 0 6px; font-size: 16px; line-height: 1.35; }
.pc-ids { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; }
.pc-ids code { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); }
.detail-panel .pc-copy { background: none; color: var(--text-mute); padding: 2px; width: auto; }
.detail-panel .pc-copy:hover { color: var(--accent); filter: none; }
.pc-quad { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.pc-quad div { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.pc-quad b { font-family: var(--font-mono); font-size: 24px; font-weight: 600; }
.pc-quad span { font-size: 11px; color: var(--text-mute); }
.pc-quad .hi b { color: var(--accent); }
.pc-split { display: flex; gap: 2px; height: 28px; border-radius: 8px; overflow: hidden; }
.pc-split span { display: grid; place-items: center; font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: #04251b; }
.seg-sent { background: var(--success); }
.seg-stock { background: var(--accent); }
.seg-other { background: #64748B; color: #fff; }
.pc-legend { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 8px 0 0; font-size: 11px; color: var(--text-mute); }
.pc-legend span { width: 8px; height: 8px; border-radius: 2px; display: inline-block; margin-left: 8px; }
.pc-legend span:first-child { margin-left: 0; }
.pc-h3 { margin: 18px 0 4px; font-size: 12px; font-weight: 600; color: var(--text-dim); letter-spacing: 0.06em; text-transform: uppercase; }
.pc-dimrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); }
.pc-src { display: block; margin-top: 3px; font-family: var(--font); font-size: 11px; color: var(--text-mute); }
.detail-panel .pc-btn { background: transparent; color: var(--text-dim); border: 1px solid var(--border-strong); border-radius: 8px; width: auto; }
.detail-panel .pc-btn:hover { color: var(--accent); filter: none; }

@media (max-width: 960px) {
  .page-pc { padding: 18px 16px 40px; }
  .pc-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 0; }
  .pc-station::after { display: none; }
  .pc-metrics, .pc-metrics-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pc-cols, .pc-est { grid-template-columns: 1fr; }
  .pc-est-result { position: static; max-height: none; }
  .pc-header { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  .pc-enter, .spin, .sk, .pc-station:not(:last-child):not(.is-zero)::after { animation: none; }
  .pc-gauge-track i { transition: none; }
}

.pc-grid-wide { grid-template-columns: repeat(auto-fill, minmax(390px, 1fr)); }

.pc-dests { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-dest {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11px; padding: 2px 9px; border-radius: 999px;
  background: rgba(34, 211, 238, 0.1); color: var(--accent); border: 1px solid rgba(34, 211, 238, 0.3);
}
.pc-dest b { font-family: var(--font-mono); font-weight: 600; }
.pc-dest.unknown { background: transparent; color: var(--text-mute); border: 1px dashed var(--border-strong); }
.pc-dests-drawer { margin: 0 0 14px; }

.pc-est-help { margin: 0 0 12px; line-height: 1.5; }
.pc-est-opts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.pc-opt {
  background: transparent; color: var(--text-mute); border: 1px solid var(--border-strong); border-radius: 999px;
  padding: 2px 10px; font: 500 11px var(--font); cursor: pointer;
  transition: color 150ms ease, border-color 150ms ease, transform 160ms var(--ease-out);
}
.pc-opt:hover { color: var(--text); }
.pc-opt:active { transform: scale(0.96); }
.pc-opt.on { color: var(--accent); border-color: rgba(34, 211, 238, 0.6); background: rgba(34, 211, 238, 0.1); }
.pc-est-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.pc-select {
  background: var(--bg); color: var(--text-dim); border: 1px solid var(--border-strong); border-radius: 8px;
  padding: 6px 8px; font: 12px var(--font); cursor: pointer;
}
.pc-select:focus { outline: none; border-color: var(--accent); }
.pc-est-cost { font-family: var(--font-mono); font-size: 11px; color: var(--text-mute); min-height: 14px; text-align: right; }
.pc-est-group { display: flex; flex-direction: column; gap: 12px; }
.pc-group-title { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 6px 0 0; font-size: 14px; font-weight: 600; }
.pc-group-title small { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); font-weight: 400; }
.pc-group-title.unknown span { color: var(--warning); }
.pc-est-group > .pc-muted { margin: -6px 0 0; }
.pc-total-sub { margin: -4px 0 0; }
.pc-est-total dt small { display: block; font-size: 11px; color: var(--text-mute); margin-top: 2px; max-width: 30ch; }
.pc-est-total dl div { align-items: flex-start; }

.pc-costs { border-top: 1px solid var(--border); margin-top: 2px; padding-top: 10px; }
.pc-costs summary { list-style: none; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; cursor: pointer; font-size: 13px; }
.pc-costs summary::-webkit-details-marker { display: none; }
.pc-costs summary::before {
  content: ''; width: 7px; height: 7px; border-right: 2px solid var(--text-mute); border-bottom: 2px solid var(--text-mute);
  transform: rotate(-45deg); transition: transform 200ms var(--ease-out); flex-shrink: 0;
}
.pc-costs[open] summary::before { transform: rotate(45deg); }
.pc-costs summary b { font-family: var(--font-mono); }
.pc-costs summary small { color: var(--text-mute); font-size: 11px; margin-right: auto; }
.pc-costs-body { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.pc-costs-body h4 { margin: 4px 0 0; font-size: 11px; color: var(--text-dim); letter-spacing: 0.06em; text-transform: uppercase; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.pc-costs-body h4 small { text-transform: none; letter-spacing: 0; color: var(--text-mute); font-weight: 400; }
.pc-note { margin: 0; font-size: 12px; color: var(--text-dim); background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; line-height: 1.5; }
.pc-fees { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pc-fees li { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--text-dim); }
.pc-fees b { font-family: var(--font-mono); color: var(--text); font-weight: 500; }
.pc-cartons { display: flex; flex-direction: column; gap: 10px; }
.pc-carton { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 10px; }
.pc-carton header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 12px; }
.pc-carton-cost { margin-left: auto; font-family: var(--font-mono); color: var(--text-dim); }
.pc-carton ul, .pc-prod-costs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pc-carton li, .pc-prod-costs li { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.pc-carton-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pc-carton-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-dim); }
.pc-carton-name code { font-family: var(--font-mono); font-size: 10px; color: var(--text-mute); }
.pc-prod-split { font-size: 11px; color: var(--text-mute); text-align: right; max-width: 120px; }
.pc-carton li b, .pc-prod-costs b { font-family: var(--font-mono); min-width: 52px; text-align: right; font-weight: 500; }
.pc-prod-costs small { font-family: var(--font-mono); color: var(--text-mute); min-width: 50px; text-align: right; }
.pc-nocost { margin: 0; }
.pc-rows li .pc-btn-sm { flex-shrink: 0; }
