:root {
  color-scheme: dark;
  --background: #111213;
  --panel: #1a1b1d;
  --border: #353638;
  --ink: #f7f6f3;
  --muted: #b2b1b0;
  --orange: #ff702f;
  --orange-text: #ff9b68;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  background: var(--background);
  color: var(--ink);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }
:focus-visible { outline: 2px solid var(--orange-text); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; overflow-wrap: anywhere; }
h1 { font-size: clamp(31px, 4.1vw, 56px); line-height: 1.04; letter-spacing: -.045em; }
h2 { font-size: 19px; line-height: 1.25; letter-spacing: -.02em; }
h3 { font-size: 16px; }
p { color: var(--muted); line-height: 1.6; }
.topbar { background: #171819; border-bottom: 1px solid #2a2b2d; }
.top-inner { min-height: 76px; max-width: 1440px; margin: auto; padding: 12px clamp(16px, 4vw, 56px); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: grid; gap: 2px; flex-shrink: 0; }
.brand strong { white-space: nowrap; font-weight: 880; letter-spacing: -.055em; line-height: 1; font-size: clamp(22px, 3vw, 30px); }
.brand strong span { display: inline-block; width: .22em; height: .22em; background: var(--orange); margin-left: .12em; }
.brand small { color: var(--muted); font-size: 11px; }
#top-actions, .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.header-tools { display: flex; align-items: center; gap: 9px; }
.header-tools #language { width: auto; font-size: 13px; }
.button, button.primary, button.secondary { min-height: 44px; display: inline-flex; justify-content: center; align-items: center; gap: 8px; padding: 9px 15px; border: 1px solid transparent; border-radius: 8px; font-size: 14px; font-weight: 700; text-align: center; }
.primary { color: #19110d; background: var(--orange); border-color: #ff8b53 !important; }
.primary:hover { background: #ff925a; }
.secondary { color: var(--ink); border-color: #444548 !important; background: #222325; }
.secondary:hover { border-color: var(--orange) !important; }
.shell { max-width: 1440px; margin: auto; padding: 28px clamp(16px, 4vw, 56px) 56px; display: grid; grid-template-columns: minmax(174px, 210px) minmax(0, 1fr); gap: 30px; align-items: start; }
.sidebar { align-self: stretch; border-right: 1px solid #2c2d2f; padding-right: 17px; display: flex; flex-direction: column; justify-content: space-between; min-height: calc(100vh - 160px); }
.sidebar nav { display: grid; gap: 5px; }
.sidebar a { display: flex; gap: 12px; align-items: center; min-height: 46px; border-radius: 8px; padding: 10px 12px; color: var(--muted); font-size: 14px; font-weight: 650; }
.sidebar a:hover, .sidebar a[aria-current] { color: var(--orange-text); background: #32221a; }
.sidebar svg, .button svg, .tile-icon svg, .text-link svg { flex-shrink: 0; }
.sidebar-footer { display: grid; gap: 8px; padding: 20px 12px; color: #e3e1de; font-size: 10px; letter-spacing: .12em; }
.sidebar-footer small { color: var(--muted); font-size: 12px; letter-spacing: normal; }
.guest-main { grid-column: 1 / -1; }
.hero {
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, #1c1c1e 2%, #1c1c1ef7 30%, #1c1c1ebd 51%, #1c1c1e08 100%), url("/hero.webp") center right / cover;
  min-height: 288px;
  padding: clamp(20px, 4vw, 46px);
  border: 1px solid #41403f;
  border-radius: 14px;
}
.hero.landing { min-height: 420px; background-position: right center; }
.hero-content { max-width: 520px; }
.hero-content > p:not(.eyebrow) { max-width: 390px; margin: 14px 0 22px; color: #dedbd8; }
.eyebrow { color: var(--orange-text); letter-spacing: .115em; font-size: 11px; font-weight: 800; margin-bottom: 13px; }
.panel, .card { padding: clamp(16px, 2.1vw, 24px); border: 1px solid var(--border); border-radius: 12px; background: var(--panel); }
.panel + .panel, .stats + .panel { margin-top: 16px; }
.steps, .stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin: 16px 0; }
.steps h2 { margin: 14px 0 6px; }
.steps p, .panel p { font-size: 14px; }
.tile-icon { width: 39px; height: 39px; flex-shrink: 0; display: inline-grid; place-items: center; border-radius: 9px; background: #3b281e; color: var(--orange-text); }
.stat { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-items: center; gap: 4px 11px; }
.stat:hover { border-color: var(--orange); }
.stat .tile-icon { grid-row: span 2; }
.stat > span:not(.tile-icon) { color: var(--muted); font-size: 12px; }
.stat strong { font-size: 25px; line-height: 1.1; }
.status-box, .demo-actions, .section-line { display: flex; align-items: center; gap: 14px; }
.status-box p, .demo-actions p { margin-top: 3px; }
.status-box .pill, .demo-actions > .actions, .section-line > a { margin-left: auto; }
.recent > p { margin-top: 12px; }
.text-link { display: inline-flex; gap: 5px; align-items: center; color: var(--orange-text); font-size: 13px; white-space: nowrap; }
.page-heading { display: flex; gap: 16px; align-items: flex-end; justify-content: space-between; margin: 12px 0 23px; }
.page-heading p { margin-top: 11px; }
.page-heading .button { flex-shrink: 0; }
.pill { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 12px; border-radius: 50px; font-weight: 650; padding: 6px 9px; background: #303134; color: #dedcda; }
.pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.approved, .pill.published { color: #a4dfb8; background: #21382a; }
.pill.pending { color: #ffb581; background: #402c20; }
.pill.revision { color: #ffb1aa; background: #472a2a; }
.reason { color: #ffb1aa !important; }
.fields { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fields.single { grid-template-columns: 1fr; }
.company-upload, .company-files { display: grid; gap: 12px; margin: 17px 0; }
.check-label { display: flex; align-items: flex-start; gap: 9px; }
.check-label input { width: 18px; height: 18px; min-height: 0; margin: 1px 0 0; accent-color: var(--orange); }
.fields .wide { grid-column: 1 / -1; }
.form-page { max-width: 760px; margin: 22px auto; }
label { display: grid; gap: 7px; font-weight: 600; font-size: 14px; min-width: 0; }
label small, .hint { color: var(--muted); font-size: 13px; font-weight: 400; }
input, select, textarea { width: 100%; min-width: 0; border-radius: 7px; border: 1px solid #46474a; background: #121314; padding: 11px 12px; min-height: 44px; color: var(--ink); font-size: 16px; }
input[type=file] { padding: 9px; }
input::file-selector-button { border: 1px solid #58595b; border-radius: 6px; padding: 5px 9px; margin-right: 8px; cursor: pointer; }
textarea { resize: vertical; }
form .actions, form .hint, .fields + button { margin-top: 18px; }
.details { margin-bottom: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px 24px; }
.details dt { color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.details dd { margin: 0; overflow-wrap: anywhere; }
.product-filter { margin-bottom: 14px; }
.results-count { margin-bottom: 10px; }
.parcel-form { min-width: 0; margin: 22px 0 0; padding: 14px; border: 1px solid var(--border); border-radius: 9px; }
.parcel-form legend { padding: 0 6px; font-size: 17px; font-weight: 700; }
.parcel-form > p { margin-bottom: 15px; }
.import-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin-bottom: 16px; }
.import-layout .panel { margin: 0; }
.import-guide ol { padding-left: 20px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.import-guide li + li { margin-top: 5px; }
.import-form { display: grid; gap: 14px; }
.import-history { margin-top: 16px; }
.import-history > p, #import-inspection h2 + p, #import-inspection .section-line + p { margin: 9px 0; }
.import-history a { display: grid; gap: 5px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.import-history a:last-child { border: 0; padding-bottom: 0; }
.import-history a:hover strong { color: var(--orange-text); }
.import-history a span { color: var(--muted); font-size: 13px; }
#import-inspection p + a, #import-inspection .table-wrap + button, #import-inspection p + button { margin-top: 12px; }
.table-wrap { overflow-x: auto; margin: 14px 0 0; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.4; }
.table-wrap th, .table-wrap td { text-align: left; padding: 10px 12px 10px 0; vertical-align: top; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
.table-wrap th { color: var(--muted); font-size: 12px; }
.table-wrap th:first-child, .table-wrap td:first-child { width: 54px; }
.batch-state > p { margin-top: 12px; }
.batch-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 14px 0 4px; }
.batch-review-row { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: start; border-top: 1px solid var(--border); padding: 10px 0; }
.batch-review-row summary { cursor: pointer; }
.batch-review-row summary small { display: block; margin: 4px 0 0 14px; color: var(--muted); }
.batch-review-row .select-row { min-height: 34px; display: flex; align-items: start; }
.batch-review-row input[type=checkbox] { width: 19px; height: 19px; min-height: 0; margin: 0; accent-color: var(--orange); }
.offer-row { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.offer-open::after { content: ""; position: absolute; inset: 0; }
.offer-open:hover { color: var(--orange-text); }
.offer-actions { position: relative; z-index: 1; }
.offer-row:last-child { border-bottom: 0; }
.offer-row:first-child { padding-top: 2px; }
.recent .offer-row:first-child { padding-top: 15px; }
.offer-row:last-child { padding-bottom: 2px; }
.thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 7px; background: #292a2c; }
.placeholder { display: grid; place-items: center; color: var(--muted); }
.offer-price { display: grid; justify-items: end; gap: 6px; }
.offer-actions { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.stock-form, .stock-form label { display: flex; align-items: center; gap: 8px; }
.stock-form input { width: 72px; }
.media-strip { display: flex; flex-wrap: wrap; gap: 8px; }
.media-strip .thumb { width: 92px; height: 72px; }
.empty { text-align: center; padding: 25px 10px; }
.empty h2 { margin: 12px 0 5px; }
.review-section + .review-section { margin-top: 24px; }
.review-section > h2 { margin-bottom: 11px; }
.review-section > h2 small { margin-left: 7px; color: var(--orange-text); }
.review-card p, .review-card .media-strip { margin: 8px 0; }
.review-card form { margin-top: 12px; }
.preview-label { margin-bottom: 14px; display: grid; gap: 4px; }
.preview-label span { color: var(--muted); font-size: 13px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 13px; }
.catalog-card { display: grid; overflow: hidden; align-content: start; padding: 0; text-align: left; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); color: var(--ink); }
.catalog-card:hover { border-color: var(--orange); }
.catalog-card img { width: 100%; height: 144px; object-fit: contain; background: #f4f3f1; }
.card-body { display: grid; gap: 5px; padding: 12px; min-width: 0; overflow-wrap: anywhere; }
.card-body small { color: var(--orange-text); }
dialog { width: min(860px, 92vw); border: 1px solid var(--border); border-radius: 14px; background: var(--panel); color: var(--ink); padding: 18px; }
dialog::backdrop { background: #000a; }
.close { display: flex !important; margin: 0 0 10px auto; }
.detail-photo { width: 100%; height: min(280px, 36vh); object-fit: contain; background: #f5f4f2; border-radius: 8px; }
.buyer-card { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; gap: 20px; }
.buyer-content { display: grid; gap: 9px; }
.buyer-content .eyebrow { margin: 0; }
.buyer-price { font-size: 25px; }
.buyer-description { white-space: pre-wrap; }
.buyer-gallery .media-strip { margin-top: 7px; }
.photo-choice { background: transparent; border: 1px solid var(--border); border-radius: 8px; padding: 1px; }
.photo-choice .thumb { display: block; }
.photo-placeholder { display: grid; place-items: center; color: #5d5b59; }
#product-detail > p { margin: 9px 0; }
.notice { position: fixed; z-index: 5; bottom: 16px; right: 16px; max-width: min(440px, calc(100vw - 32px)); border: 1px solid #60615a; border-radius: 9px; background: #242923; padding: 12px 18px; box-shadow: 0 8px 24px #0007; }
.notice.error { background: #452724; border-color: #a6625d; }
@media (max-width: 760px) {
  .buyer-card { grid-template-columns: minmax(0, 1fr); }
  .top-inner { min-height: 64px; }
  #top-actions svg { display: none; }
  #top-actions .button, #top-actions button { padding: 7px 9px; }
  .shell { grid-template-columns: minmax(0, 1fr); gap: 15px; padding-top: 14px; }
  .sidebar { min-height: 0; padding: 0 0 10px; border: 0; border-bottom: 1px solid var(--border); }
  .sidebar nav { display: flex; flex-wrap: wrap; }
  .sidebar a { min-height: 44px; gap: 6px; padding: 7px 8px; font-size: 12px; }
  .sidebar a svg { width: 15px; height: 15px; }
  .sidebar-footer { display: none; }
  .hero.landing { min-height: 340px; }
  .hero { background-image: linear-gradient(90deg, #1c1c1efa, #1c1c1ed4 65%, #1c1c1e50), url("/hero.webp"); }
  .steps { grid-template-columns: 1fr; }
  .steps .card { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: start; }
  .steps h2 { margin: 0; }
  .steps .tile-icon { grid-row: span 2; }
  .stats { gap: 7px; }
  .stat { grid-template-columns: 1fr; padding: 10px; }
  .stat .tile-icon { display: none; }
  .status-box, .demo-actions, .page-heading { flex-wrap: wrap; }
  .demo-actions > .actions { margin-left: 0; }
  .status-box .pill { margin-left: 0; }
  .status-box > div { flex: 1 1 155px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
  .import-layout { grid-template-columns: minmax(0, 1fr); }
  .table-wrap .pill { white-space: normal; }
}
@media (max-width: 470px) {
  .top-inner { align-items: flex-start; }
  .header-tools { flex-wrap: wrap; justify-content: flex-end; }
  .fields, .details { grid-template-columns: 1fr; }
  .offer-row { grid-template-columns: 42px minmax(0, 1fr) auto; gap: 8px; }
  .offer-row .thumb { width: 42px; height: 42px; }
  .offer-price .pill { white-space: normal; }
  .stock-form { flex-wrap: wrap; }
  .catalog-card img { height: 110px; }
  .text-link svg { display: none; }
}
