:root {
  color-scheme: dark;
  --bg: #0b100e;
  --panel: #111815;
  --surface: #18211d;
  --line: #26332d;
  --text: #f3f7f5;
  --soft: #b5c1bb;
  --muted: #7f9087;
  --primary: #e87e72;
  --green: #75e2a5;
  --amber: #f0bd68;
  --red: #f07878;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { min-height: 100vh; margin: 0; color: var(--text); background: radial-gradient(circle at 85% 0, rgba(232,126,114,.08), transparent 32%), var(--bg); }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; min-height: 68px; padding: 0 clamp(20px,4vw,58px); border-bottom: 1px solid rgba(255,255,255,.06); background: rgba(11,16,14,.9); backdrop-filter: blur(16px); }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark, .login-logo { display: grid; place-items: center; border-radius: 12px; color: #111; background: var(--primary); font-weight: 950; }
.brand-mark { width: 38px; height: 38px; }
.brand > span:last-child { display: flex; flex-direction: column; }
.brand strong { font-size: 13px; letter-spacing: .12em; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.page { width: min(1500px,100%); margin: 0 auto; padding: 48px clamp(20px,4vw,58px) 80px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.page-heading h1 { margin: 7px 0; font-size: clamp(34px,5vw,58px); line-height: 1; letter-spacing: -.055em; }
.page-heading p { margin: 0; color: var(--soft); }
.eyebrow { color: var(--primary) !important; font-size: 11px; font-weight: 850; letter-spacing: .18em; text-transform: uppercase; }
.muted { color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; border: 1px solid transparent; border-radius: 9px; color: var(--text); background: transparent; font-weight: 750; cursor: pointer; }
.button.primary { color: #1b0e0c; background: var(--primary); }
.button.secondary { border-color: var(--line); background: var(--surface); }
.button.ghost { color: var(--soft); border-color: transparent; }
.button:hover { filter: brightness(1.08); }
.button.disabled { pointer-events: none; opacity: .35; }
.panel, .stats article, .product-card, .empty-state, .login-card { border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(145deg, rgba(20,29,25,.98), rgba(14,21,18,.98)); box-shadow: inset 0 1px rgba(255,255,255,.025); }
.stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; margin-bottom: 17px; }
.stats article { display: flex; min-height: 120px; flex-direction: column; justify-content: space-between; padding: 20px; }
.stats span { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.stats strong { font-size: 33px; letter-spacing: -.04em; }
.filter-panel { padding: 16px; }
.filters { display: grid; grid-template-columns: minmax(240px,1fr) 190px 190px auto auto; align-items: end; gap: 10px; }
.filters label, .login-form label { display: grid; gap: 7px; color: var(--soft); font-size: 12px; font-weight: 700; }
input, select { width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; outline: 0; color: var(--text); background: #0e1512; }
input:focus, select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(232,126,114,.09); }
.section-line { display: flex; align-items: center; justify-content: space-between; margin: 30px 2px 14px; }
.section-line span { color: var(--muted); font-size: 12px; }
.product-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.product-card { min-width: 0; overflow: hidden; transition: transform .16s ease, border-color .16s ease; }
.product-card:hover { border-color: #3c5047; transform: translateY(-3px); }
.product-image { position: relative; display: grid; aspect-ratio: 4/3; place-items: center; overflow: hidden; color: var(--muted); background: #f2f1ed; font-size: 12px; }
.product-image img { width: 100%; height: 100%; object-fit: contain; }
.supplier { position: absolute; top: 10px; left: 10px; padding: 6px 8px; border-radius: 7px; color: #fff; background: rgba(8,13,11,.82); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; backdrop-filter: blur(8px); }
.product-copy { padding: 17px; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-top small { overflow: hidden; color: var(--muted); font: 10px ui-monospace,monospace; text-overflow: ellipsis; white-space: nowrap; }
.status { display: inline-flex; width: max-content; padding: 5px 8px; border-radius: 999px; color: var(--green); background: rgba(117,226,165,.08); font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.status.discontinued { color: var(--amber); background: rgba(240,189,104,.09); }
.status.missing { color: var(--red); background: rgba(240,120,120,.09); }
.product-copy h2 { margin: 16px 0 6px; overflow: hidden; font-size: 19px; letter-spacing: -.025em; text-overflow: ellipsis; white-space: nowrap; }
.product-copy p { min-height: 34px; margin: 0; color: var(--soft); font-size: 12px; line-height: 1.45; }
.card-meta { display: flex; gap: 14px; margin-top: 17px; padding-top: 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.pagination { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; }
.pagination span { color: var(--muted); font-size: 12px; }
.runs { margin-top: 30px; padding: 0; overflow: hidden; }
.runs summary { padding: 18px 20px; font-weight: 750; cursor: pointer; }
.runs > p { padding: 0 20px 20px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 12px 16px; color: var(--muted); background: rgba(255,255,255,.025); font-size: 10px; letter-spacing: .1em; text-align: left; text-transform: uppercase; white-space: nowrap; }
td { padding: 13px 16px; border-top: 1px solid var(--line); color: var(--soft); font-size: 12px; }
td strong { color: var(--text); }
.empty-state { display: grid; min-height: 240px; place-items: center; align-content: center; padding: 30px; text-align: center; }
.empty-state strong { font-size: 20px; }
.empty-state p { margin: 8px 0 0; color: var(--muted); }
.back { margin-bottom: 28px; color: var(--soft); font-size: 13px; }
.back a:hover { color: var(--primary); }
.detail-actions { display: flex; align-items: center; gap: 12px; }
.image-gallery { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; margin-bottom: 18px; }
.image-gallery figure { min-width: 0; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.image-gallery a, .missing-image { display: grid; aspect-ratio: 4/3; place-items: center; background: #f2f1ed; }
.image-gallery img { width: 100%; height: 100%; object-fit: contain; }
.missing-image { color: #65716b; font-size: 12px; }
.image-gallery figcaption { padding: 10px 12px; color: var(--muted); font-size: 10px; }
.detail-grid { display: grid; grid-template-columns: minmax(0,2fr) minmax(280px,1fr); align-items: start; gap: 15px; }
.detail-grid .panel { padding: 22px; overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.panel-head h2 { margin: 0; font-size: 17px; }
.panel-head span { color: var(--muted); font-size: 12px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-list > span { display: flex; flex-direction: column; gap: 3px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--soft); font-size: 12px; }
.tag-list small { color: var(--muted); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.identity { margin: 20px 0 0; padding-top: 10px; border-top: 1px solid var(--line); }
.identity div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; }
.identity dt { color: var(--muted); font-size: 11px; }
.identity dd { margin: 0; color: var(--soft); font-size: 11px; text-align: right; overflow-wrap: anywhere; }
.login-page { display: grid; min-height: 100vh; place-items: center; padding: 24px; }
.login-card { width: min(420px,100%); padding: 34px; }
.login-logo { width: 52px; height: 52px; margin-bottom: 25px; font-size: 22px; }
.login-card h1 { margin: 6px 0 8px; font-size: 37px; letter-spacing: -.05em; }
.login-form { display: grid; gap: 15px; margin-top: 28px; }
.login-form .button { margin-top: 4px; }
.alert { margin-top: 18px; padding: 11px 13px; border: 1px solid rgba(240,120,120,.22); border-radius: 8px; color: var(--red); background: rgba(240,120,120,.07); font-size: 12px; }
@media (max-width: 1050px) { .product-grid, .image-gallery { grid-template-columns: repeat(3,minmax(0,1fr)); } .filters { grid-template-columns: 1fr 1fr; } .search { grid-column: 1/-1; } }
@media (max-width: 760px) { .page { padding-top: 30px; } .stats { grid-template-columns: repeat(2,minmax(0,1fr)); } .product-grid, .image-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); } .detail-grid { grid-template-columns: 1fr; } .page-heading { align-items: flex-start; flex-direction: column; } }
@media (max-width: 480px) { .topbar { padding-inline: 15px; } .brand small { display: none; } .page { padding-inline: 15px; } .filters, .product-grid, .image-gallery { grid-template-columns: 1fr; } .search { grid-column: auto; } .stats article { min-height: 100px; } .detail-actions { align-items: flex-start; flex-direction: column; } }
