.seller-frame {
  --admin-text: #242424;
  --admin-muted: #595959;
  --admin-border: #dedede;
  --admin-surface: #f1f1f1;
  --admin-tint: #f7f7f7;
  --admin-link: #0056be;
  color: var(--admin-text);
  background: var(--admin-surface);
  border: 1px solid #ccd1ca;
  border-radius: var(--radius);
  overflow: hidden;
  font: 400 .86rem/1.45 system-ui, sans-serif;
  box-shadow: 0 9px 22px -17px #213c31b0;
}

.seller-toolbar, .seller-toolbar-actions, .seller-brand, .seller-page-top, .seller-inline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.seller-toolbar {
  justify-content: space-between;
  padding: 8px clamp(12px, 2.8vw, 29px);
  border-bottom: 1px solid var(--admin-border);
  background: white;
}

.seller-toolbar-actions { gap: 13px; }
.seller-brand { font-weight: 690; }
.seller-brand img { border-radius: 6px; flex: none; }
.seller-demo-badge { border: 1px solid #c9c9c9; border-radius: 4px; padding: 2px 6px; color: var(--admin-muted); font: 650 .71rem/1.3 system-ui, sans-serif; }

.seller-page { max-width: 1080px; margin-inline: auto; padding: clamp(12px, 3vw, 32px); }
.seller-frame .seller-heading { margin: 0 0 13px; font-size: clamp(1.25rem, 3.3vw, 1.75rem); letter-spacing: -.025em; line-height: 1.16; }
.seller-frame .seller-heading:focus { outline: none; }
.seller-page-top { justify-content: space-between; flex-wrap: wrap; }
.seller-page-top .seller-heading { margin-bottom: 0; }
.seller-page > .seller-page-top { margin-bottom: 13px; }
.seller-back { margin-bottom: 8px; }
.seller-card { background: white; border: 1px solid var(--admin-border); border-radius: 11px; box-shadow: 0 1px 2px #0000000c; }
.seller-section { padding: clamp(12px, 2vw, 20px); }
.seller-page > .seller-card + .seller-card { margin-top: 12px; }
.seller-section h4 { margin: 0 0 11px; font-size: .99rem; font-weight: 690; line-height: 1.2; }
.seller-section .seller-page-top h4 { margin: 0; }
.seller-muted, .seller-table small, .seller-item-name small { color: var(--admin-muted); }
.seller-empty { text-align: center; padding: 30px 15px; color: var(--admin-muted); }
.seller-empty strong { color: var(--admin-text); }

.seller-button, .seller-link {
  min-height: 35px;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--admin-text);
  font-size: .82rem;
  font-weight: 650;
  line-height: 1.3;
}
.seller-button:hover { background: #eaeaea; }
.seller-button[aria-current="true"], .seller-button.primary {
  border-color: #1d1d1d;
  background: #303030;
  color: white;
  box-shadow: inset 0 1px 0 #ffffff35;
}
.seller-button[aria-current="true"]:hover, .seller-button.primary:hover { background: #171717; }
.seller-button.secondary { background: white; border-color: #c9c9c9; }
.seller-button.secondary:hover { background: #f3f3f3; }
.seller-link { display: inline-flex; align-items: center; min-height: 31px; padding: 2px 0; color: var(--admin-link); text-decoration: none; text-align: left; }
.seller-link:hover { text-decoration: underline; text-underline-offset: .15em; }
.seller-frame :focus-visible { outline-color: #0056be; outline-offset: 2px; }
.seller-filter { display: flex; flex-wrap: wrap; gap: 4px; padding: 10px 12px; border-bottom: 1px solid var(--admin-border); }
.seller-filter > span { padding: 6px; }
.seller-search { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; padding: 10px 12px; }
.seller-frame form input:not([type="hidden"]), .seller-frame form textarea {
  min-height: 35px;
  padding: 5px 8px;
  border-color: #aeaeae;
  border-radius: 7px;
  color: var(--admin-text);
  background: white;
  font-size: .85rem;
}
.seller-search input { flex: 1 1 130px; }
.seller-search .seller-link { white-space: normal; }

.seller-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.seller-table th, .seller-table td { border-top: 1px solid var(--admin-border); padding: 8px 11px; vertical-align: middle; text-align: left; overflow-wrap: anywhere; }
.seller-table th { background: var(--admin-tint); color: var(--admin-muted); font-size: .76rem; font-weight: 680; }
.seller-table td small { display: block; font-size: .75rem; line-height: 1.35; }
.seller-table .buyer-parcel-row { background: #f7faf6; }
.seller-table tbody tr:last-child td:first-child { border-bottom-left-radius: 11px; }
.seller-table tbody tr:last-child td:last-child { border-bottom-right-radius: 11px; }

.seller-badge { display: inline-block; padding: 2px 6px; border-radius: 6px; background: #e9e9e9; color: #333; font-size: .75rem; font-weight: 650; }
.seller-badge[data-status="READY"], .seller-badge[data-status="SHIPPED"] { background: #cdfee1; color: #08452a; }
.seller-badge[data-status="PACKING"] { background: #e2edff; color: #193471; }
.seller-badge[data-status="AWAITING_PAYMENT"] { background: #fff1cc; color: #543b00; }
.seller-parcel-status { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 11px; }
.seller-parcel-status p { color: var(--admin-muted); margin-top: 5px; }
.seller-parcel-status [data-seller-notice]:empty, .seller-error:empty, .seller-copy-status:empty { display: none; }
.seller-inline { flex-wrap: wrap; }
.seller-inline > span { color: var(--admin-muted); }
.seller-packing-layout { display: grid; grid-template-areas: "details" "list" "tracking"; align-items: start; gap: 13px; margin-top: 13px; }
.seller-parcel-details { grid-area: details; }
.seller-packing-list { grid-area: list; }
.seller-tracking-panel { grid-area: tracking; }
.seller-pick-from, .seller-address { display: grid; justify-items: start; gap: 5px; }
.seller-address { border-top: 1px solid var(--admin-border); margin-top: 11px; padding-top: 9px; }
.seller-address .seller-page-top { width: 100%; }
.seller-address address { font-style: normal; }
.seller-copy-status { color: var(--admin-muted); font-size: .79rem; }
.seller-checklist-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 7px; margin-bottom: 11px; color: var(--admin-muted); }
.seller-progress { display: flex; align-items: center; gap: 6px; font-size: .76rem; }
.seller-progress progress { max-width: 76px; height: 7px; accent-color: #008060; }
.seller-packing-group { border: 1px solid var(--admin-border); border-radius: 9px; overflow: hidden; }
.seller-packing-group + .seller-packing-group { margin-top: 8px; }
.seller-order-number { display: block; padding: 6px 9px; background: var(--admin-tint); font-size: .77rem; }
.seller-item { display: flex; align-items: center; gap: 8px; min-height: 51px; padding: 7px 9px; }
label.seller-item { cursor: pointer; }
.seller-item:has(input:checked) { background: #f3f6f2; }
.seller-item:has(input:focus-visible) { outline: 2px solid var(--admin-link); outline-offset: -2px; }
.seller-item input { width: 17px; height: 17px; flex: none; margin: 0; accent-color: #303030; }
.seller-thumbnail { position: relative; width: 30px; height: 30px; flex: none; border: 1px solid #e0e0e0; border-radius: 6px; background: #f6f6f6; }
.seller-thumbnail::before { content: ""; position: absolute; inset: 7px; border: 1px solid #a8a8a8; border-radius: 2px; }
.seller-thumbnail::after { content: ""; position: absolute; left: 10px; top: 14px; width: 9px; height: 6px; border-left: 1px solid #a8a8a8; border-top: 1px solid #a8a8a8; transform: rotate(45deg); }
.seller-item-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.seller-item-name small { display: block; font-size: .73rem; }
.seller-print-measurements { display: none; }
.seller-tracking-form, .seller-notes form { display: grid; gap: 8px; margin-top: 8px; }
.seller-tracking-form button, .seller-notes form button { justify-self: start; }
.seller-tracking-form label, .seller-notes label { margin: 0; font-size: .81rem; }
.seller-tracking-form input, .seller-notes input, .seller-notes textarea { display: block; margin-top: 3px; font-weight: 400; }
.seller-error { color: #980b14; font-size: .79rem; }
.seller-order-summary { list-style: none; margin: 4px 0 0; padding: 0; }
.seller-order-summary > li { padding: 7px 0; overflow-wrap: anywhere; }
.seller-order-summary > li + li { border-top: 1px solid var(--admin-border); }
.seller-tracking-panel > p { overflow-wrap: anywhere; }
.seller-notes { margin-top: 8px; }
.seller-notes summary { cursor: pointer; font-weight: 650; }

@media (min-width: 905px) {
  .seller-packing-layout { grid-template-columns: minmax(0, 1.85fr) minmax(240px, 1fr); grid-template-areas: "list details" "list tracking" "list ."; }
}

@media (max-width: 520px) {
  .seller-filter .seller-button { min-height: 38px; font-size: .75rem; }
  .seller-table, .seller-table tbody { display: block; }
  .seller-table thead { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
  .seller-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 7px 10px; border-top: 1px solid var(--admin-border); }
  .seller-table td { border: 0; padding: 4px; }
  .seller-table td::before { display: block; content: attr(data-column); color: var(--admin-muted); font-size: .7rem; }
}

@media print {
  body:has(.seller-frame[data-screen="parcel"]) > :not(main),
  body:has(.seller-frame[data-screen="parcel"]) main > :not(.seller-demo),
  .seller-demo > .section-heading, .seller-toolbar, .seller-parcel-status, .seller-tracking-panel,
  .seller-frame button, .seller-progress, .seller-item input { display: none !important; }
  .seller-frame { border: 0; box-shadow: none; background: white; }
  .seller-demo { width: 100%; margin-top: 0; }
  .seller-packing-layout { display: block; }
  .seller-packing-list { margin-top: 14px; }
  .seller-print-measurements { display: block; margin-bottom: 10px; }
  .seller-packing-group { break-inside: avoid; }
}
