:root { font: 16px/1.55 system-ui, sans-serif; color: #1f2937; background: #f4f6fa; }
* { box-sizing: border-box; }
body { margin: 0; }
a { color: #1054ad; }
header { display: flex; justify-content: space-between; align-items: center; padding: 16px clamp(16px, 4vw, 52px); background: #192940; color: #f7fbff; gap: 12px; }
header a { color: inherit; }
.brand { font-size: 23px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.brand span { font-size: 10px; margin-left: 9px; padding: 4px 6px; background: #294463; border-radius: 4px; }
.account, .row, .tabs { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
nav { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px clamp(16px, 4vw, 52px); background: white; border-bottom: 1px solid #e1e6ef; }
nav a, .tabs a { text-decoration: none; padding: 6px 10px; border-radius: 5px; }
[aria-current="page"] { background: #e9f1ff; color: #114487; font-weight: 700; }
main { max-width: 1260px; margin: auto; padding: 24px clamp(12px, 4vw, 44px); }
h1 { margin: 0 0 22px; line-height: 1.2; font-size: clamp(27px, 4vw, 39px); }
h2 { margin: 0 0 12px; font-size: 19px; }
.panel, .table { background: white; border: 1px solid #e0e6ef; border-radius: 10px; }
.panel { padding: 20px; margin: 0 0 16px; }
.table { overflow: auto; margin-top: 15px; }
.panel .table { margin-top: 0; }
table { border-collapse: collapse; width: 100%; min-width: 500px; }
td, th { text-align: left; padding: 10px 13px; border-bottom: 1px solid #e8edf5; }
th { background: #f7f9fd; color: #44536a; font-weight: 650; }
tr:last-child td { border-bottom: 0; }
small { display: block; color: #5f6e80; }
button, input, textarea, select { font: inherit; border-radius: 6px; padding: 8px 11px; }
button { background: #1758ac; border: 1px solid #1758ac; color: white; cursor: pointer; }
button:hover { filter: brightness(1.12); }
.quiet { background: #edf2fa; border-color: #dce5f2; color: #213955; }
input, textarea, select { border: 1px solid #bfcbdc; background: white; max-width: 100%; }
textarea { width: 100%; }
label { display: block; margin-bottom: 12px; }
label :is(input, textarea, select) { display: block; }
.login { max-width: 480px; margin: 48px auto; }
.login input { width: 100%; }
.login img.bg-white { max-width: 100%; height: auto; background: white; }
.eyebrow { font-size: 12px; letter-spacing: .08em; color: #365d8b; }
.pill { display: inline-block; padding: 3px 8px; background: #ebf2fb; border-radius: 20px; font-size: 13px; white-space: nowrap; }
.notice { padding: 12px 15px; border-radius: 6px; background: #e8f4eb; }
.error, .errorlist { color: #8e2c28; background: #ffefec; }
.tabs { margin: 12px 0; gap: 6px; }
.photos { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 16px; }
.photos img { width: 180px; height: 130px; object-fit: contain; border: 1px solid #e1e6ef; border-radius: 8px; }
dl { display: grid; grid-template-columns: minmax(95px, 170px) 1fr; gap: 6px 12px; }
dt { color: #526275; }
dd { margin: 0; overflow-wrap: anywhere; }
.cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 12px; }
.cards strong { display: block; font-size: 23px; margin-top: 7px; }
.sparkline { display: block; width: 100%; height: 60px; background: #f2f6fb; margin-top: 10px; }
.sparkline polyline { fill: none; stroke: #1758ac; stroke-width: 2; vector-effect: non-scaling-stroke; }
.workflow { max-width: 600px; }
code { overflow-wrap: anywhere; }
.sku { min-width: 100px; max-width: 160px; font-size: 14px; font-weight: 750; overflow-wrap: anywhere; }
.stage-selector { margin-top: 5px; min-width: 160px; font-size: 14px; }
.stage-selector summary { cursor: pointer; color: #1054ad; }
.stage-selector form { margin: 8px 0 0; }
.stage-selector label { margin-bottom: 8px; }
.stage-selector input, .stage-selector select, .stage-selector button { padding: 5px 7px; }
.stage-selector .stage-confirm input { display: inline; }
.inventory-search, .pagination { margin: 14px 0; }
.inventory-search label, .sales-analytics form label { margin-bottom: 0; }
.sales-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 8px; }
.sales-metrics div { background: #f2f6fb; border-radius: 6px; padding: 10px; }
.sales-metrics dd { font-size: 19px; font-weight: 700; }
.sales-trends { max-height: 370px; }
.sales-trends meter { width: 75%; }
.device-timeline { list-style: none; padding: 0; margin: 10px 0 0 7px; }
.device-timeline li { position: relative; border-inline-start: 2px solid #e1e8f1; padding: 0 0 13px 17px; }
.device-timeline li:last-child { border-color: transparent; padding-bottom: 0; }
.device-timeline li::before { content: ""; position: absolute; inset: 5px auto auto -5px; width: 8px; height: 8px; border-radius: 50%; background: #2670bb; }
.timeline-date { font-size: 12px; color: #5c6c80; }
.timeline-links { display: flex; flex-wrap: wrap; gap: 8px; }
