@media (max-width: 1050px) {
  .process-band { overflow-x: auto; }
  .process-flow { min-width: 900px; }
  .workspace { grid-template-columns: 340px minmax(0, 1fr); }
  .summary-strip { grid-template-columns: 1fr 1fr; }
  .summary-item:nth-child(2) { border-right: 0; }
  .summary-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .topbar { height: 64px; padding: 0 15px; }
  .brand-lockup strong { font-size: 14px; }
  .brand-lockup small, .topbar .btn-quiet { display: none; }
  .top-actions { gap: 6px; }
  .mobile-data-menu { display: block; position: relative; }
  .mobile-data-menu summary { min-width: 44px; height: 38px; padding: 0 10px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.22); border-radius: 9px; color: rgba(255,255,255,.9); cursor: pointer; list-style: none; font-size: 13px; }
  .mobile-data-menu summary::-webkit-details-marker { display: none; }
  .mobile-data-menu__panel { width: 132px; padding: 6px; display: grid; position: absolute; top: 46px; right: 0; z-index: 25; border: 1px solid var(--line); border-radius: 11px; background: white; box-shadow: var(--shadow); }
  .mobile-data-menu__panel :is(button,label) { min-height: 42px; padding: 0 12px; display: flex; align-items: center; border: 0; border-radius: 7px; color: var(--ink); background: transparent; cursor: pointer; font-size: 13px; }
  .mobile-data-menu__panel :is(button,label):active { background: var(--jade-soft); }
  .topbar .btn-primary { min-height: 38px; padding: 0 12px; }
  .page-shell { width: min(100% - 24px, 680px); padding: 25px 0 38px; }
  .welcome { align-items: flex-start; }
  .welcome h1 { font-size: 29px; line-height: 1.24; }
  .welcome-copy { max-width: 88%; line-height: 1.6; font-size: 13px; }
  .today-card { display: none; }
  .process-band { margin-top: 20px; padding: 14px; overflow: visible; }
  .process-band-title { position: static; margin-bottom: 12px; }
  .process-band-title small { display: none; }
  .process-flow--desktop { display: none; }
  .process-flow-mobile { margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; list-style: none; }
  .process-flow-mobile li { min-width: 0; min-height: 82px; padding: 12px; display: grid; grid-template-columns: 28px minmax(0,1fr); align-items: start; gap: 9px; border: 1px solid var(--line); border-radius: 11px; background: #f8fbfc; }
  .process-flow-mobile b { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: white; background: var(--jade); font-size: 10px; }
  .process-flow-mobile strong, .process-flow-mobile small { display: block; }
  .process-flow-mobile strong { margin: 2px 0 5px; font-size: 13px; }
  .process-flow-mobile small { color: var(--muted); font-size: 10px; line-height: 1.45; }
  .metrics { margin: 22px 0 14px; grid-template-columns: 1fr 1fr; gap: 9px; }
  .metric { padding: 14px; }
  .metric-value { font-size: 25px; }
  .workspace { display: block; min-height: 0; overflow: visible; border: 0; box-shadow: none; background: transparent; }
  .order-panel { border: 1px solid var(--line); border-radius: 15px; overflow: hidden; background: var(--card); }
  .panel-heading { padding: 18px 16px 12px; }
  .filters { padding: 0 16px 14px; grid-template-columns: minmax(0,1fr) 104px; }
  .order-card { padding: 16px; background: var(--card); }
  .order-card.active { background: var(--jade-soft); }
  .detail-panel { display: none; position: fixed; inset: 0; z-index: 30; padding: 0; overflow-y: auto; background: var(--paper); }
  .detail-panel.mobile-open { display: block; }
  .detail-inner { min-height: 100%; padding: 20px 14px 42px; }
  .detail-head { position: sticky; top: 0; z-index: 3; margin: -20px -14px 0; padding: 16px 14px; align-items: center; background: rgba(244,241,234,.95); backdrop-filter: blur(10px); }
  .detail-title { align-items: center; }
  .detail-head h2 { font-size: 21px; }
  .detail-sub { font-size: 11px; }
  .detail-actions { flex-wrap: wrap; justify-content: flex-end; }
  .detail-actions .btn { min-width: 40px; min-height: 40px; }
  .detail-actions .edit-label { display: none; }
  .mobile-close { display: block !important; }
  .notice { margin-top: 14px; }
  .summary-strip { margin: 14px 0; grid-template-columns: 1fr 1fr; background: var(--card); }
  .summary-item { padding: 12px; }
  .detail-grid, .detail-column { gap: 12px; }
  .section-card { border-radius: 12px; }
  .item-row { min-height: 0; padding: 13px 0; grid-template-columns: 1fr; gap: 9px; }
  .item-row .row-actions { width: 100%; }
  .item-row .status-select { min-width: 0; width: 100%; height: 40px; }
  .stage-row { min-height: 0; padding: 8px 0 13px; grid-template-columns: 22px minmax(0,1fr); }
  .stage-row:not(:last-child)::before { bottom: -7px; }
  .stage-row .row-actions { grid-column: 2; width: 100%; }
  .stage-row .status-select { width: 100%; height: 40px; }
  .remove-btn { width: 40px; height: 40px; flex: 0 0 40px; border: 1px solid var(--line); border-radius: 8px; }
  .shipment-body { grid-template-columns: 1fr; }
  .shipment-body :is(input,select) { height: 42px; }
  .shipment-body .wide { grid-column: auto; }
  body.detail-is-open { overflow: hidden; }
  .modal { max-height: calc(100dvh - 24px); overflow: auto; }
  .modal form { padding: 19px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .wide { grid-column: auto; }
  .modal-actions .btn { flex: 1; }
}
@media (min-width: 761px) { .mobile-close { display: none !important; } }
@media (max-width: 400px) {
  .brand-mark { width: 34px; height: 34px; }
  .brand-lockup { gap: 8px; }
  .brand-lockup strong { max-width: 112px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar .btn-primary { font-size: 13px; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .filters { grid-template-columns: 1fr; }
  .filters select { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
