:root { --bg: #f6f5f1; --card: #fff; --ink: #17140f; --ink2: #5c574d; --ink3: #8b857a; --line: #e7e3da; --red: #d8402e; --red-soft: #fbeae6; --green: #1f4a32; --green-soft: #e6efe7; --amber: #8a5a00; --amber-soft: #fbf1d9; --radius: 10px; --bar: #d8402e; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 13px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.shell { max-width: 1160px; margin: 0 auto; padding: 0 20px 48px; }
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 18px; margin: 0 -20px 18px; padding: 10px 20px; background: rgba(246,245,241,.92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); overflow-x: auto; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; white-space: nowrap; }
.brand i { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 50% 38%, #17140f 0 1px, transparent 1.4px), radial-gradient(circle, var(--red) 0 54%, #f6efd8 55% 68%, #2f6b3f 69%); }
.nav { display: flex; gap: 2px; }
.nav a { padding: 6px 10px; border-radius: 7px; color: var(--ink2); text-decoration: none; font-weight: 500; white-space: nowrap; }
.nav a:hover { background: #ece9e1; }
.nav a.on { background: var(--ink); color: #fff; }
.head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
h1 { margin: 0; font-size: 20px; letter-spacing: -.01em; }
h2 { margin: 0 0 2px; font-size: 14px; }
.sub { margin: 2px 0 0; color: var(--ink2); }
.small { font-size: 12px; color: var(--ink3); }
.period { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.period a, .period button, .btn { display: inline-flex; align-items: center; height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--card); color: var(--ink); font: inherit; font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap; }
.period a.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.period input[type=date] { width: auto; height: 30px; padding: 0 6px; border: 1px solid var(--line); border-radius: 7px; font: inherit; background: var(--card); color: var(--ink); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn:hover { border-color: var(--ink3); }
.pill { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 7px 12px; border-radius: 8px; background: var(--green-soft); color: var(--green); font-weight: 500; }
.pill.bad { background: var(--amber-soft); color: var(--amber); }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.grid { display: grid; gap: 12px; margin-bottom: 12px; }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hero { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(0, 2.2fr); gap: 12px; margin-bottom: 12px; }
.hero .me { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; background: var(--ink); border-color: var(--ink); color: #fff; }
.hero .me small { color: #b9b4a8; }
.big { font-size: 38px; line-height: 1; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.split { display: grid; gap: 4px; }
.split div { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.split span:first-child { color: #b9b4a8; }
.tile small { display: block; color: var(--ink2); }
.tile b { display: block; margin-top: 4px; font-size: 22px; line-height: 1.1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.tile em { display: block; margin-top: 3px; font-style: normal; font-size: 12px; color: var(--ink3); }
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: 170px; overflow: visible; }
.chart .tip { position: absolute; top: 0; transform: translateX(-50%); padding: 6px 9px; border-radius: 7px; background: var(--ink); color: #fff; font-size: 12px; white-space: nowrap; pointer-events: none; font-variant-numeric: tabular-nums; }
.chart-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
details summary { cursor: pointer; color: var(--ink2); font-size: 12px; margin-top: 8px; }
.tablewrap { overflow-x: auto; margin: 8px -16px -14px; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th { padding: 8px 10px; text-align: right; font-weight: 500; font-size: 12px; color: var(--ink3); border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 8px 10px; text-align: right; border-bottom: 1px solid #f0ede6; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
th:first-child, td:first-child { text-align: left; padding-left: 16px; }
th:last-child, td:last-child { padding-right: 16px; }
td.l, th.l { text-align: left; white-space: normal; }
tbody tr:hover { background: #faf9f5; }
.tag { display: inline-block; margin: 1px 3px 1px 0; padding: 1px 7px; border-radius: 99px; background: #f0ede6; font-size: 11px; font-weight: 500; white-space: nowrap; }
.tag.wheel { background: var(--red-soft); color: #a32a1b; }
.tag.bundle, .tag.second_piece, .tag.look { background: var(--green-soft); color: var(--green); }
.tag.free_shipping { background: #eef0f4; color: #3b4a63; }
.tag.tracked_code { background: var(--amber-soft); color: var(--amber); }
.est { color: var(--amber); font-size: 11px; margin-left: 4px; }
.inbar { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.inbar i { display: block; height: 6px; border-radius: 3px; background: var(--bar); }
.rate { font-weight: 600; }
.muted { color: var(--ink3); }
.funnel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.funnel b { display: block; font-size: 24px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.funnel .track { height: 6px; margin-top: 8px; border-radius: 3px; background: #f0ede6; overflow: hidden; }
.funnel .track i { display: block; height: 100%; border-radius: 3px; background: var(--bar); }
.facts { display: grid; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 8px; border-bottom: 1px solid #f0ede6; }
.facts li:last-child { border: 0; padding: 0; }
.facts b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.form { display: grid; gap: 12px; }
.fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px 14px; }
label.f { display: grid; gap: 3px; font-weight: 500; }
label.f span { font-weight: 400; color: var(--ink3); font-size: 12px; }
input[type=text], input[type=number], .form input[type=date], select, input.t { width: 100%; height: 32px; padding: 0 8px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink); font: inherit; }
label.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; }
label.check span { display: block; font-weight: 400; color: var(--ink3); font-size: 12px; }
.note { padding: 8px 12px; border-radius: 8px; background: var(--amber-soft); color: var(--amber); margin-bottom: 12px; }
.note.ok { background: var(--green-soft); color: var(--green); }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tabs { display: flex; gap: 6px; margin: 0 0 10px; flex-wrap: wrap; }
.empty { padding: 24px; text-align: center; color: var(--ink3); }
@media (max-width: 860px) { .g4, .funnel { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g2, .hero { grid-template-columns: minmax(0, 1fr); } .big { font-size: 32px; } }
