:root { color-scheme: light; font-family: system-ui, sans-serif; color: #191c18; background: #faf9f3; }
body { margin: 0; }
header { display: flex; gap: 1rem; align-items: center; padding: 1rem 2rem; background: #fff; color: #191c18; border-bottom: 1px solid #625f50; flex-wrap: wrap; }
header a { color: #191c18; display: inline-flex; min-height: 48px; align-items: center; }
.brand { font-size: 1.2rem; font-weight: 700; }
nav { display: flex; gap: 1rem; flex: 1; align-items: center; flex-wrap: wrap; }
header form { margin: 0; }
main { max-width: 1100px; margin: auto; padding: 2rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.dashboard-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.panel { background: white; border: 1px solid #625f50; border-radius: .5rem; padding: 1.25rem; margin-bottom: 1rem; }
.panel h2 { margin-top: 0; }
.panel strong { display: block; font-size: 2rem; }
.panel strong.metric-warning { color: #7a5800; }
.narrow { max-width: 520px; }
form { display: flex; gap: .75rem; align-items: end; flex-wrap: wrap; margin: .75rem 0; }
label { display: grid; gap: .35rem; }
input, select, button { min-height: 48px; box-sizing: border-box; font: inherit; }
input, select { border: 1px solid #625f50; border-radius: 6px; padding: .5rem; }
button { border: 1px solid #254f22; border-radius: 6px; padding: .5rem 1rem; background: white; color: #254f22; cursor: pointer; }
.primary { background: #254f22; color: white; }
:focus-visible { outline: 3px solid #a03a13; outline-offset: 2px; }
.error { border-left: 4px solid #ba1a1a; padding: .75rem; color: #410002; background: #ffdad6; }
.message { border-left: 4px solid #254f22; background: white; padding: .75rem; }
dl { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1rem; }
dt { font-weight: 700; }
.stacked-form { display: grid; align-items: stretch; }
.stacked-form label, .stacked-form input, .stacked-form button { width: 100%; }
.field-error { color: #ba1a1a; margin: -.35rem 0 .25rem; }
.notice { border-left: 4px solid #7a5800; background: #ffe08a; color: #261a00; padding: .75rem; }
.table-scroll { overflow-x: auto; background: white; border: 1px solid #625f50; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .75rem; border-bottom: 1px solid #625f50; text-align: left; }
thead { background: #ede4c2; }
.button-link { display: inline-flex; min-height: 48px; align-items: center; box-sizing: border-box; border: 1px solid #254f22; border-radius: 6px; padding: .5rem 1rem; color: #254f22; background: white; }
.button-link.secondary { border-color: #625f50; }
.action-list { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.printer-status { border: 1px solid #7a5800; background: #ffe08a; color: #261a00; border-radius: 6px; }
.printer-status summary { display: flex; align-items: center; gap: .5rem; min-height: 48px; padding: 0 .75rem; cursor: pointer; font-weight: 700; }
.printer-status summary span { display: inline-grid; place-items: center; width: 1.25rem; height: 1.25rem; border-radius: 50%; color: #fff; background: #7a5800; }
.printer-status p { margin: 0; padding: 0 .75rem .75rem; }
.product-list { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.product-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .75rem 1rem; align-items: end; padding: 1rem; background: #fff; border: 1px solid #625f50; border-radius: 8px; }
.product-card h2, .product-card dl { margin: 0; min-width: 0; }
.product-card dl { grid-column: 1; }
.product-card .button-link { grid-column: 2; grid-row: 1 / span 2; justify-content: center; min-width: 6rem; }
.preview-layout { display: grid; grid-template-columns: minmax(360px, 1fr) minmax(320px, 520px); gap: 1.5rem; align-items: start; }
.label-preview { min-width: 360px; overflow: auto; background: white; border: 1px solid #625f50; padding: 2rem; box-sizing: border-box; }
.label-page { position: relative; width: 40mm; height: 40mm; box-sizing: border-box; overflow: hidden; flex: none; color: #000; background: #fff; border: .25mm solid #625f50; font-family: system-ui, sans-serif; }
.shipment-title, .shipment-date, .barcode-text, .base-title, .base-price, .tax-title, .tax-price { position: absolute; white-space: nowrap; }
.shipment-title { left: 6mm; top: .5mm; font-size: 8.5pt; }
.shipment-date { left: 18mm; top: .75mm; font-size: 7.5pt; }
.label-fields { position: absolute; left: 2mm; top: 5mm; width: 36mm; height: 15mm; table-layout: fixed; border: .25mm solid #000; }
.label-fields th, .label-fields td { box-sizing: border-box; height: 4.25mm; padding: .5mm; border: 0; border-bottom: .25mm solid #000; font-size: 5.5pt; line-height: 1; overflow: hidden; white-space: nowrap; }
.label-fields th { width: 9.5mm; border-right: .25mm solid #000; font-weight: 400; }
.label-fields .product-row th, .label-fields .product-row td { height: 6.5mm; border-bottom: 0; }
.label-fields .product-row td { font-size: 7.5pt; }
.barcode-bars { position: absolute; left: 2.2mm; top: 20.5mm; width: 29.2mm; height: 5.5mm; fill: #000; shape-rendering: crispEdges; }
.barcode-text { left: 2.2mm; top: 26mm; width: 29.2mm; height: 2.5mm; text-align: center; font: 5.5pt ui-monospace, monospace; letter-spacing: .35mm; }
.plastic-mark { position: absolute; left: 32mm; top: 20.5mm; width: 6mm; height: 6mm; display: grid; place-items: center; font-size: 4.5pt; }
.plastic-mark svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: #000; stroke-width: 10; stroke-linecap: square; stroke-linejoin: round; }
.plastic-mark b { z-index: 1; }
.base-title { left: 4.5mm; top: 28.5mm; font-size: 5pt; font-weight: 700; }
.base-price { left: 2mm; top: 31mm; width: 30mm; height: 8mm; text-align: center; font-size: 15pt; line-height: 8mm; }
.tax-title { left: 25mm; top: 28.5mm; font-size: 4.5pt; }
.tax-price { right: 2mm; top: 31.5mm; width: 11.5mm; height: 6.5mm; text-align: right; font-size: 9.5pt; line-height: 6.5mm; }
.print-pages { display: flex; flex-wrap: wrap; gap: 1rem; }
@media (max-width: 760px) { main { padding: 1rem; } header { padding: .75rem 1rem; } header nav { flex-basis: 100%; order: 3; } .dashboard-columns, .preview-layout { grid-template-columns: 1fr; } .label-preview { min-width: 0; } .product-card { grid-template-columns: 1fr; align-items: stretch; } .product-card dl, .product-card .button-link { grid-column: 1; grid-row: auto; } }

.pitch-dashboard { background: #f7f7f4; }
.pitch-dashboard > header { padding-block: .5rem; }
.pitch-dashboard .pitch-wordmark { gap: .65rem; text-decoration: none; white-space: nowrap; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.15rem; font-weight: 800; letter-spacing: .05em; }
.pitch-dashboard .pitch-wordmark-mark { width: 1.5rem; height: 1.25rem; flex: none; color: #191c18; background: repeating-linear-gradient(90deg, currentColor 0 2px, transparent 2px 4px, currentColor 4px 7px, transparent 7px 9px); }
.pitch-dashboard > header nav a { padding: 0 .25rem; text-decoration: none; }
.pitch-dashboard > header nav a[aria-current="page"] { border-bottom: 3px solid #254f22; font-weight: 700; }
.pitch-dashboard .pitch-account { padding-left: 1rem; border-left: 1px solid #625f50; white-space: nowrap; }
.pitch-dashboard main { max-width: 1180px; }
.pitch-dashboard .pitch-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.pitch-dashboard .pitch-heading h1 { margin: 0; font-size: 1.6rem; }
.pitch-dashboard .pitch-heading p { margin: 0; color: #625f50; font-size: .9rem; }
.pitch-dashboard .pitch-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.pitch-dashboard .pitch-activity { margin: 0 0 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid #625f50; background: #fff; }
.pitch-dashboard .pitch-activity-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem 0; }
.pitch-dashboard .pitch-activity-heading h2 { margin: 0; font-size: 1.1rem; }
.pitch-dashboard .pitch-activity-heading span { color: #625f50; font-size: .9rem; }
.pitch-dashboard .pitch-activity-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: .75rem 1.25rem 0; border-block: 1px solid #d8d6cc; }
.pitch-dashboard .pitch-activity-stats > div { padding: .75rem 1rem; border-right: 1px solid #d8d6cc; }
.pitch-dashboard .pitch-activity-stats > div:last-child { border-right: 0; }
.pitch-dashboard .pitch-activity-stats dt { color: #494334; font-size: .8rem; }
.pitch-dashboard .pitch-activity-stats dd { margin: .25rem 0 0; font-size: 1.35rem; font-weight: 700; }
.pitch-dashboard .pitch-legend { display: flex; gap: 1.5rem; margin: .75rem 1.25rem 0; padding: 0; list-style: none; color: #494334; font-size: .9rem; }
.pitch-dashboard .pitch-legend li { display: flex; align-items: center; gap: .45rem; }
.pitch-dashboard .pitch-swatch { width: 1.5rem; border-top: 3px solid; }
.pitch-dashboard .pitch-shipment { width: .8rem; height: .8rem; border: 0; background: #275d8c; }
.pitch-dashboard .pitch-issuance { border-color: #a03a13; }
.pitch-dashboard .pitch-chart { display: block; width: 100%; height: auto; max-height: 300px; margin-top: .5rem; }
.pitch-dashboard .pitch-chart-grid line { stroke: #d8d6cc; stroke-width: 1; }
.pitch-dashboard .pitch-chart-grid text { fill: #625f50; font-size: 14px; text-anchor: end; }
.pitch-dashboard .pitch-chart-shipment { fill: #275d8c; opacity: .85; }
.pitch-dashboard .pitch-chart-issuance { fill: none; stroke-width: 4; stroke: #a03a13; stroke-linecap: round; stroke-linejoin: round; }
.pitch-dashboard .pitch-chart-point { fill: #fff; stroke: #a03a13; stroke-width: 3; }
.pitch-dashboard .pitch-chart-current { font-size: 14px; font-weight: 700; text-anchor: middle; paint-order: stroke; stroke: #fff; stroke-width: 5px; stroke-linejoin: round; }
.pitch-dashboard .pitch-chart-current-shipment { fill: #275d8c; }
.pitch-dashboard .pitch-chart-current-issuance { fill: #a03a13; }
.pitch-dashboard .pitch-chart-dates text { fill: #494334; font-size: 14px; text-anchor: middle; }
.pitch-dashboard .pitch-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; border-block: 1px solid #625f50; background: #fff; }
.pitch-dashboard .pitch-summary > div { padding: 1rem 1.25rem; border-right: 1px solid #d8d6cc; }
.pitch-dashboard .pitch-summary > div:last-child { border-right: 0; }
.pitch-dashboard .pitch-summary dt { color: #494334; font-size: .9rem; }
.pitch-dashboard .pitch-summary dd { margin: .35rem 0 0; font-size: 1.5rem; font-weight: 700; }
.pitch-dashboard .pitch-summary a { color: #7a5800; }
.pitch-dashboard .pitch-section { margin-top: 2rem; scroll-margin-top: 1rem; }
.pitch-dashboard .pitch-activity + #history { margin-top: 1rem; }
.pitch-dashboard .pitch-status { margin-top: 2rem; }
.pitch-dashboard .pitch-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-bottom: 2px solid #494334; }
.pitch-dashboard .pitch-section-heading h2 { margin: 0 0 .5rem; font-size: 1.1rem; }
.pitch-dashboard .pitch-section-heading span { color: #625f50; font-size: .9rem; }
.pitch-dashboard .table-scroll { border: 0; }
.pitch-dashboard table { font-size: .92rem; }
.pitch-dashboard thead { background: #eeede7; }
.pitch-dashboard th { font-weight: 700; color: #494334; }
.pitch-dashboard th,
.pitch-dashboard td { padding: .65rem .75rem; border-color: #d8d6cc; vertical-align: top; }
.pitch-dashboard #history table { min-width: 680px; }
.pitch-dashboard .pitch-number { text-align: right; white-space: nowrap; }
.pitch-dashboard .pitch-code { font-family: ui-monospace, monospace; white-space: nowrap; }
.pitch-dashboard .pitch-warning { color: #7a5800; font-weight: 700; }

@media (max-width: 760px) {
  .pitch-dashboard .pitch-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pitch-dashboard .pitch-summary > div:nth-child(2) { border-right: 0; }
  .pitch-dashboard .pitch-summary > div:nth-child(-n+2) { border-bottom: 1px solid #d8d6cc; }
  .pitch-dashboard .pitch-legend { align-items: flex-start; flex-direction: column; gap: .35rem; }
  .pitch-dashboard .pitch-heading { display: block; }
  .pitch-dashboard .pitch-heading p { margin-top: .35rem; }
}
