:root {
  color-scheme: light;
  --ink: #14243a;
  --muted: #4e6077;
  --line: #dde5ed;
  --surface: #fff;
  --base: #f2f5f8;
  --navy: #13263d;
  --green: #08695c;
  --mint: #dff3eb;
  --yellow: #f9efdf;
  --shadow: 0 8px 24px #2338490a;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--base); font: 15px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--green); }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .5; cursor: default; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #278f7c; outline-offset: 2px; }
[hidden] { display: none !important; }
.wrap { width: min(1460px, calc(100% - 64px)); margin: auto; }
.top { background: var(--navy); color: white; }
.top-inner { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: flex; align-items: center; gap: 9px; color: #f6faff; text-decoration: none; font-weight: 790; white-space: nowrap; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; border: 1px solid #416d75; color: #9defcd; background: #254c53; width: 38px; height: 38px; border-radius: 10px; }
.brand small { margin-left: 4px; color: #9defcd; letter-spacing: .09em; font-size: 9px; }
nav { display: flex; gap: 6px; }
nav a { color: #dce8f2; border-radius: 8px; text-decoration: none; padding: 8px 12px; font-size: 13px; font-weight: 650; }
nav a:hover, nav a[aria-current] { color: #b4f1dc; background: #28475b; }
.local { white-space: nowrap; font-size: 12px; color: #d0e0ed; }
.local i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #77d5ad; margin-right: 4px; }
main { padding-block: 28px 26px; }
.hero { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 25px 28px; border: 1px solid #cce4dd; border-radius: 17px; background: linear-gradient(120deg,#edf5fa 3%,#e9f5f0 97%); }
.eyebrow { color: var(--green); font-size: 10px; font-weight: 820; letter-spacing: .105em; text-transform: uppercase; }
h1, h2 { margin: 4px 0 5px; letter-spacing: -.035em; line-height: 1.14; }
h1 { font-size: clamp(30px,4.1vw,49px); font-weight: 780; }
h2 { font-size: 22px; }
.hero p, .panel-head p, .dialog-head p { margin: 0; color: var(--muted); font-size: 13px; }
.hero-actions, .toolbar, .filter-actions, .pager>div { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 7px; min-height: 37px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--ink); font-size: 12px; font-weight: 740; text-decoration: none; white-space: nowrap; }
.button:hover:not(:disabled) { background: #eef4fa; }
.button.primary { background: var(--green); color: white; border-color: var(--green); padding-inline: 15px; }
.button.primary:hover:not(:disabled) { background: #07574d; }
.button.ghost { color: var(--green); border-color: #a9cfc1; }
.button.reset { color: #6c4b27; background: #fff9f0; border-color: #ecd9ba; }
.button.text-button { padding-inline: 7px; border-color: transparent; color: var(--green); }
.metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin: 14px 0 18px; }
.metric, .panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.metric { padding: 11px 15px; }
.metric span { display: block; font-size: 11px; font-weight: 730; color: var(--muted); }
.metric strong { display: block; letter-spacing: -.035em; font-size: clamp(18px,2.4vw,29px); line-height: 1.2; margin-block: 3px; overflow-wrap: anywhere; }
.metric small { display: block; color: var(--muted); font-size: 11px; }
.panel { overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 16px 19px; }
progress { appearance: none; width: 100%; height: 5px; display: block; border: 0; color: var(--green); background: var(--mint); accent-color: var(--green); }
progress::-webkit-progress-bar { background: var(--mint); }
progress::-webkit-progress-value { background: var(--green); transition: width .25s; }
.filters { border-top: 1px solid var(--line); padding: 13px 19px; background: #fafcfe; }
.segmented { display: flex; flex-wrap: wrap; gap: 6px; }
.segmented button, .chips button { border: 1px solid var(--line); background: white; border-radius: 9px; color: var(--ink); font-size: 12px; font-weight: 680; padding: 6px 10px; min-height: 33px; }
.segmented button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: white; }
.segmented small { font-size: 10px; opacity: .8; margin-left: 2px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 3px; }
.dot.pk { background: #8166d4; }.dot.op { background: #cc7634; }.dot.db { background: #31a785; }
.search-row { display: flex; align-items: end; gap: 10px; margin-block: 12px 9px; }
.search { flex: 1 1 280px; }
.toolbar { justify-content: flex-end; }
.field { display: block; min-width: 0; }
.field span { display: block; color: var(--muted); font-size: 11px; font-weight: 720; margin-bottom: 4px; }
.field input, .field select { width: 100%; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: white; padding: 7px 9px; min-height: 37px; font-size: 13px; }
.fields { display: grid; grid-template-columns: minmax(130px,1.45fr) repeat(5,minmax(0,1fr)); gap: 8px; margin-top: 9px; }
.stock-filter { grid-column: 1/-1; min-width: 0; margin: 0; padding: 5px 9px 7px; border: 1px solid var(--line); border-radius: 8px; }
.stock-filter legend { padding-inline: 4px; color: var(--muted); font-size: 11px; font-weight: 720; }
.stock-choices { display: flex; flex-wrap: wrap; gap: 6px 15px; font-size: 12px; }
.filter-actions { margin-top: 9px; font-size: 12px; }
.checkbox { display: flex; align-items: center; gap: 6px; }
.checkbox input { accent-color: var(--green); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips:not(:empty) { margin-top: 8px; }
.chips button { background: var(--mint); color: var(--green); font-size: 11px; padding: 4px 8px; min-height: 27px; }
.results-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 19px; border-top: 1px solid var(--line); }
.results-line strong { font-size: 13px; }
.results-line .field { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.results-line .field span { margin: 0; }
.results-line select { min-width: 145px; }
.grid { overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 8px 11px; background: #eaf1f7; color: #425a75; text-transform: uppercase; letter-spacing: .045em; font-size: 10px; font-weight: 800; white-space: nowrap; }
td { padding: 10px 11px; border-bottom: 1px solid #edf1f5; font-size: 13px; vertical-align: middle; }
th:first-child, td:first-child { padding-left: 19px; }
th:last-child, td:last-child { padding-right: 19px; }
tbody tr:hover { background: #f8fbfd; }
.product { width: 35%; min-width: 190px; }
.product strong { display: block; font-size: 13px; line-height: 1.32; }
.secondary { display: block; margin-top: 3px; font-size: 11px; color: var(--muted); }
.warning { color: #8b4b18; }
.price { white-space: nowrap; font-weight: 790; font-variant-numeric: tabular-nums; }
.badge { display: inline-block; padding: 4px 7px; border-radius: 999px; background: #eaf0f5; color: #445a74; font-size: 11px; font-weight: 750; white-space: nowrap; }
.badge.in, .badge.ok, .badge.completed { background: var(--mint); color: #075e50; }
.badge.preorder { background: #eae6fa; color: #574287; }
.badge.out, .badge.error { background: #f4e8ed; color: #804257; }
.badge.upcoming, .badge.partial, .badge.interrupted { background: var(--yellow); color: #80531d; }
.seller-score { display: inline-block; margin-top: 4px; color: var(--green); font-size: 11px; font-weight: 770; white-space: nowrap; }
.seller-score.limite { color: #86521c; }
.row-actions { display: flex; gap: 5px; align-items: center; }
.row-actions a { padding: 5px 7px; border: 1px solid var(--line); border-radius: 7px; font-size: 11px; font-weight: 740; text-decoration: none; white-space: nowrap; }
.row-actions a:hover { background: var(--mint); }
.cart-action { display: block; width: fit-content; padding: 2px 0; margin-top: 3px; border: 0; background: none; color: var(--green); font-size: 11px; font-weight: 750; text-align: left; text-decoration: underline; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 10px 19px; font-size: 12px; color: var(--muted); }
.empty { padding: 24px !important; text-align: center; color: var(--muted); }
.note, .footer { color: var(--muted); font-size: 12px; }
.footer { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-block: 12px 20px; }
dialog { width: min(900px,calc(100% - 25px)); max-height: min(85dvh,800px); padding: 0; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); box-shadow: 0 10px 50px #12243f30; }
dialog::backdrop { background: #14243a80; }
.cart-dialog { width: min(570px,calc(100% - 25px)); }
.cart-panel { display: grid; gap: 13px; padding: 16px; }
.cart-panel p { margin: 0; color: var(--muted); }
.cart-panel .toolbar { justify-content: start; }
.cart-panel .toolbar:not(:has(> :not([hidden]))) { display: none; }
#cart-feedback { padding: 12px; border-radius: 8px; background: #edf4f8; }
#cart-feedback p { margin-top: 5px; font-size: 13px; }
#cart-feedback .warning { color: #8b4b18; }
.dialog-head, .dialog-controls { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dialog-controls, .history-filters { display: grid; grid-template-columns: 2fr 1fr; gap: 9px; }
.dialog-controls .checkbox { grid-column: 1/-1; font-size: 13px; }
.source-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; padding: 12px 16px; }
.source { border: 1px solid var(--line); border-radius: 8px; background: #f8fafc; padding: 8px 10px; min-width: 0; }
.source button { border: 0; background: transparent; color: var(--green); text-align: left; font-weight: 740; padding: 0; text-decoration: underline; }
.source a { font-size: 11px; }
.source .badge { margin-top: 4px; }
.history-filters { background: #fafcfe; border-top: 1px solid var(--line); padding: 10px 19px; }
.change-filters { grid-template-columns: 1.4fr repeat(3,minmax(0,1fr)) 1.55fr; }
#variations { scroll-margin-top: 12px; }
.history-table { min-width: 600px; }
.velocity { margin-bottom: 15px; scroll-margin-top: 12px; }
.velocity-filters { grid-template-columns: repeat(4,minmax(0,1fr)); }
.velocity-note, .offer-velocity { margin: 0; padding: 10px 19px; color: var(--muted); background: #f4faf8; font-size: 12px; }
.velocity-note p { margin: 3px 0 0; }
.velocity-table th:nth-child(2) { color: var(--green); }
.velocity-flags { padding: 11px 19px; }
.velocity-flags summary { cursor: pointer; color: var(--green); font-weight: 730; font-size: 13px; }
.velocity-flags p { color: var(--muted); font-size: 12px; }
.release-controls { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px; margin-top: 16px; }
.release-controls .field { min-width: 175px; }
.release-group { display: grid; gap: 12px; margin-block: 20px; }
.release-card { scroll-margin-top: 12px; }
.release-card h3 { font-size: 21px; margin: 4px 0; letter-spacing: -.03em; }
.release-meta { display: flex; flex-direction: column; text-align: right; gap: 3px; font-size: 12px; color: var(--muted); }
.release-caution { margin: 0; padding: 10px 19px; color: #73420e; background: var(--yellow); font-size: 12px; }
.badge.planned { background: var(--yellow); color: #80531d; }
.release-link a { font-weight: 700; white-space: nowrap; }
.timeline, .log { margin-block: 0 15px; }
.log { margin-top: 15px; }
.chart { margin: 0 19px 13px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: #f8fcfb; color: var(--green); }
.chart svg { display: block; width: 100%; height: min(21vw,145px); min-height: 70px; }
.chart h3 { margin: 0; font-size: 13px; }
.chart .secondary { display: flex; justify-content: space-between; gap: 10px; }
.change-values { display: grid; gap: 2px; white-space: nowrap; }
@media(max-width:1020px) {
  .fields { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .offers { min-width: 890px; }
}
@media(max-width:720px) {
  .wrap { width: calc(100% - 24px); }
  .top-inner { min-height: 72px; flex-wrap: wrap; gap: 4px; padding-block: 7px; }
  nav { order: 2; flex: 0 0 100%; }
  nav a { padding: 6px 10px; }
  .local { font-size: 10px; }
  main { padding-top: 15px; }
  .hero { align-items: start; flex-direction: column; padding: 17px; gap: 12px; }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
  .metric { padding: 8px 10px; }
  .panel-head, .filters, .results-line, .pager { padding-inline: 12px; }
  .search-row { flex-wrap: wrap; }
  .toolbar { justify-content: flex-start; }
  .fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .velocity-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .change-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .change-filters .field:first-child { grid-column: 1/-1; }
  .offers { display: block; min-width: 0; }
  .offers thead { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); }
  .offers tbody { display: grid; gap: 8px; padding: 0 9px 6px; }
  .offers tr { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: 9px; }
  .offers td { display: block; padding: 5px 7px; border: 0; font-size: 12px; min-width: 0; }
  .offers td[data-label]::before { content: attr(data-label); display: block; color: var(--muted); font-size: 10px; margin-bottom: 2px; }
  .offers .product, .offers .offer-actions, .offers .empty { grid-column: 1/-1; width: auto; }
  .release-table { display: block; }
  .release-table thead { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); }
  .release-table tbody { display: grid; gap: 8px; padding: 0 9px 9px; }
  .release-table tr { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border: 1px solid var(--line); border-radius: 9px; }
  .release-table td { display: block; padding: 6px 8px; border: 0; min-width: 0; }
  .release-table td[data-label]::before { content: attr(data-label); display: block; color: var(--muted); font-size: 10px; }
  .source-list { grid-template-columns: 1fr; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { transition: none !important; animation: none !important; } }
