:root {
  --bg: #0a0a0a;
  --bg-soft: #111111;
  --card: #151515;
  --card-line: #2a2a2a;
  --ink: #f5f5f5;
  --muted: #a3a3a3;
  --primary: #e84a21;
  --primary-2: #ff6b3d;
  --accent: #f5f5f5;
  --danger: #d64545;
  --success: #2e9f4f;
  --warning: #b98d2f;
  --text-soft: #d6d6d6;
  --text-faint: #8d8d8d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  background:
    radial-gradient(900px 450px at 8% -10%, #242424 0%, transparent 60%),
    radial-gradient(1000px 500px at 100% 0%, #1a1a1a 0%, transparent 55%),
    linear-gradient(180deg, #0f0f0f 0%, #0a0a0a 100%);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 24px 70px;
  position: relative;
  z-index: 2;
}

.bg-orb {
  display: none;
}

.orb-a {
  width: 360px;
  height: 360px;
  border-radius: 999px;
  background: #e84a21;
  left: -120px;
  top: 120px;
}

.orb-b {
  width: 420px;
  height: 420px;
  border-radius: 999px;
  background: #ff6b3d;
  right: -200px;
  top: 360px;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid #2a2a2a;
  background: #111111e6;
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 60;
}

.nav nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nav a {
  color: #e8e8e8;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid #333333;
  border-radius: 999px;
  padding: 8px 13px;
  transition: 0.2s;
}

.nav a:hover {
  border-color: #e84a21;
  background: #202020;
}

.brand {
  color: #ffffff !important;
  letter-spacing: 0.01em;
  font-weight: 800 !important;
  border: 0 !important;
  padding: 0 !important;
  display: flex;
  align-items: center;
}

.brand:hover {
  background: transparent !important;
  border: 0 !important;
}

.brand-logo {
  height: 54px;
  width: auto;
  display: block;
}

.hero {
  background:
    linear-gradient(130deg, #151515 0%, #202020 48%, #e84a21 100%);
  color: #f5f5f5;
  padding: 56px;
  border: 1px solid #333333;
  border-radius: 26px;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 6px;
  background: linear-gradient(180deg, var(--primary), var(--primary-2));
  opacity: 0.9;
}

.hero h1 {
  margin: 10px 0 12px;
  max-width: 900px;
  font-size: clamp(36px, 5.3vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.eyebrow {
  letter-spacing: 0.12em;
  opacity: 0.96;
  font-size: 12px;
  color: #ffb08a;
  font-weight: 700;
  text-transform: uppercase;
}

.sub {
  max-width: 760px;
  opacity: 0.95;
  color: #dddddd;
  font-size: 18px;
}

.hero-actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.section-head {
  margin: 24px 0 14px;
}

.section-head h1,
.section-head h2 {
  margin: 0;
  letter-spacing: -0.02em;
}

.panel {
  background: linear-gradient(180deg, #151515 0%, #111111 100%);
  border: 1px solid var(--card-line);
  border-radius: 18px;
  padding: 18px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.chip {
  border: 1px solid #333333;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  color: #e8e8e8;
  background: #111111;
  text-decoration: none;
  display: inline-block;
}

.chip-ok {
  border-color: #1f7e5b;
  background: #0b2b22;
  color: #9df2cb;
}

.chip-warn {
  border-color: #8a6a2e;
  background: #2b2410;
  color: #f2d892;
}

.upload-panel {
  margin-bottom: 16px;
}

.upload-form {
  margin-top: 10px;
}

.upload-flow-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.upload-flow-head h2 {
  margin: 0 0 6px;
}

.upload-step-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.upload-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.9fr);
  gap: 16px;
  align-items: start;
}

.upload-main,
.upload-side {
  display: grid;
  gap: 12px;
}

.upload-step-card {
  background: rgba(21, 21, 21, 0.78);
  border: 1px solid #303030;
  border-radius: 16px;
  padding: 14px 16px;
}

.upload-step-card h3 {
  margin: 4px 0 8px;
}

.upload-step-card-soft {
  background: rgba(255, 255, 255, 0.035);
}

.upload-step-label {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffb08a;
  font-weight: 800;
}

.upload-quick-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.upload-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.upload-form-grid p,
.upload-mapping-grid p {
  margin: 0;
}

.upload-primary-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
  align-items: center;
}

.upload-preview-shell {
  margin-top: 18px;
  border-top: 1px solid rgba(232, 74, 33, 0.22);
  padding-top: 18px;
  display: grid;
  gap: 14px;
}

.upload-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  flex-wrap: wrap;
}

.upload-preview-head h3 {
  margin: 4px 0 6px;
}

.upload-mapping-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.upload-preview-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(80, 80, 80, 0.6);
}

.upload-preview-actions-start {
  margin-top: 0;
  padding: 14px 16px;
  border: 1px solid #303030;
  border-radius: 16px;
  background: rgba(21, 21, 21, 0.78);
}

.upload-inline-form {
  margin: 0;
}

.upload-preview-table-wrap {
  overflow-x: auto;
  border: 1px solid #333333;
  border-radius: 16px;
}

.upload-preview-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  background: #111111;
}

.upload-preview-table th,
.upload-preview-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid #2a2a2a;
  vertical-align: top;
}

.upload-preview-table th {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffb08a;
  background: #1a1a1a;
  white-space: nowrap;
}

.upload-preview-table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.015);
}

.upload-progress {
  margin-top: 12px;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  border: 1px solid #333333;
  background: #151515;
  overflow: hidden;
  display: none;
}

.upload-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-2) 100%);
  transition: width 0.15s ease;
}

.lookup-hero {
  margin-bottom: 26px;
}

.lookup-composer {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.lookup-input-panel,
.lookup-help-card {
  background: rgba(21, 21, 21, 0.72);
  border: 1px solid #303030;
  border-radius: 18px;
  padding: 16px;
}

.lookup-label {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffb08a;
  font-weight: 800;
}

.bulk-lookup-form textarea {
  min-height: 180px;
  font-family:
    ui-monospace,
    "SFMono-Regular",
    Menlo,
    Monaco,
    Consolas,
    monospace;
  font-size: 14px;
  line-height: 1.45;
  width: 100%;
  border-radius: 16px;
  border: 1px solid #333333;
  background: #111111;
  color: #f5f5f5;
  padding: 16px 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  resize: vertical;
}

.bulk-lookup-form textarea:focus {
  outline: none;
  border-color: #ff6b3d;
  box-shadow: 0 0 0 4px rgba(232, 74, 33, 0.16);
}

.lookup-tools {
  margin-top: 10px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.lookup-divider {
  width: 1px;
  height: 14px;
  background: #333333;
}

.lookup-help-card {
  min-height: 100%;
}

.lookup-help-title {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #f5f5f5;
  font-weight: 800;
}

.lookup-help-copy {
  margin: 0 0 16px;
  color: var(--text-soft);
  font-size: 15px;
}

.lookup-example-block {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid #333333;
  background: #111111;
}

.lookup-example-title {
  margin: 0 0 2px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffb08a;
  font-weight: 800;
}

.lookup-example-block code {
  font-family:
    ui-monospace,
    "SFMono-Regular",
    Menlo,
    Monaco,
    Consolas,
    monospace;
  color: #f5f5f5;
  font-size: 15px;
}

.lookup-note {
  color: var(--text-faint);
  font-size: 14px;
  line-height: 1.5;
}

.lookup-actions {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  align-items: stretch;
  flex-wrap: wrap;
}

.btn-lookup-primary {
  min-width: 220px;
  padding-inline: 24px;
}

.lookup-secondary-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}


.lookup-summary {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.lookup-sticky-bar {
  margin-top: 14px;
  margin-bottom: 12px;
  position: sticky;
  top: 12px;
  z-index: 20;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 12px;
  border: 1px solid #333333;
  border-radius: 16px;
  background: rgba(17, 17, 17, 0.92);
  backdrop-filter: blur(10px);
}

.lookup-summary-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.lookup-summary-actions form {
  margin: 0;
}

.lookup-table-wrap {
  margin-top: 16px;
  overflow-x: auto;
  border: 1px solid var(--card-line);
  border-radius: 16px;
}

.lookup-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
  background: #111111;
}

.lookup-table th,
.lookup-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #2a2a2a;
  line-height: 1.4;
}

.lookup-table th {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffb08a;
  background: #1a1a1a;
  white-space: nowrap;
}

.lookup-table td a {
  color: #f5f5f5;
  text-decoration: none;
  font-weight: 800;
}

.lookup-request {
  display: block;
  font-weight: 700;
  color: #f5f5f5;
  word-break: break-word;
}

.lookup-subtle {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-faint);
  line-height: 1.45;
}

.lookup-table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.015);
}

.lookup-row-review td {
  background: rgba(125, 93, 29, 0.08);
}

.lookup-row-review td:first-child {
  box-shadow: inset 3px 0 0 #b98d2f;
}

.lookup-table td:nth-child(1),
.lookup-table td:nth-child(2),
.lookup-table td:nth-child(5),
.lookup-table td:nth-child(6),
.lookup-table td:nth-child(7),
.lookup-table td:nth-child(8),
.lookup-table td:nth-child(9) {
  white-space: nowrap;
}

.lookup-table td:nth-child(3) {
  min-width: 150px;
}

.lookup-table td:nth-child(4) {
  min-width: 320px;
}

.lookup-table td:nth-child(4) {
  font-weight: 600;
}

.lookup-table td:nth-child(7),
.price {
  font-variant-numeric: tabular-nums;
}

button,
input,
select,
textarea {
  font: inherit;
}

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.metrics {
  margin-bottom: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 35px #00000045;
}

.card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.card img[src*="logo"],
.part-image[src*="logo"] {
  object-fit: contain;
  padding: 16px;
  background:
    linear-gradient(135deg, #242424 0%, #111111 58%, #2a2a2a 100%);
}

.card-body {
  padding: 16px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.card h3 {
  margin: 0;
}

.card h3 a {
  color: #f5f5f5;
  text-decoration: none;
}

.chip-soft {
  background: #1f1f1f;
  border-color: #3a3a3a;
  color: #d6d6d6;
}

.field-label {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffb08a;
}

.part-number,
.detail-part-number {
  margin: 0 0 10px;
  font-size: clamp(24px, 2.2vw, 30px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  word-break: break-word;
}

.part-name,
.detail-part-name {
  margin: 0 0 12px;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.35;
}

.price {
  margin: 0;
  font-weight: 800;
  color: #ffb08a;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.muted {
  color: var(--muted);
  font-size: 14px;
}

.btn {
  border: 0;
  border-radius: 12px;
  padding: 11px 17px;
  font-weight: 700;
  background: linear-gradient(130deg, var(--primary), var(--primary-2));
  color: #f5f5f5;
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
  transition: 0.18s;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px #e84a2140;
}

.btn-secondary {
  background: #f5f5f5;
  color: #181818;
}

.btn-danger {
  background: var(--danger);
}

.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.checkbox-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #e8e8e8;
  border: 1px solid #333333;
  border-radius: 12px;
  background: #111111;
  padding: 11px 12px;
}

.checkbox-inline input {
  width: auto;
}

input,
select,
textarea {
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid #333333;
  background: #111111;
  color: #f5f5f5;
  width: 100%;
  font: inherit;
}

.part-layout {
  display: grid;
  gap: 22px;
  grid-template-columns: 1.2fr 1fr;
  margin-bottom: 24px;
}

.part-image {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--card-line);
  max-height: 460px;
  object-fit: cover;
}

.list {
  display: grid;
  gap: 12px;
}

.list-row {
  background: #151515;
  border-radius: 14px;
  border: 1px solid var(--card-line);
  padding: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.list-actions {
  text-align: right;
}

.status-form {
  margin-top: 8px;
  display: grid;
  gap: 8px;
}

.status-form select {
  min-width: 170px;
}

.checkout-box {
  margin-top: 20px;
  background: #151515;
  border: 1px solid var(--card-line);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.checkout-layout {
  display: grid;
  gap: 14px;
  grid-template-columns: 1.2fr 1fr;
}

.card-form {
  padding: 14px;
}

.auth-logo-wrap {
  display: flex;
  justify-content: center;
  margin: 6px 0 16px;
}

.auth-logo {
  height: 62px;
  width: auto;
}

.messages {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.message {
  margin: 0;
  background: #1a1a1a;
  border: 1px solid #333333;
  color: #e8e8e8;
  border-radius: 10px;
  padding: 10px 12px;
}

.pagination {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.invoice-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.invoice-logo {
  height: 52px;
  width: auto;
}

.invoice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.invoice-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.invoice-sheet {
  background: #ffffff;
  color: #181818;
  border-radius: 16px;
  border: 1px solid #dedede;
  padding: 28px;
  box-shadow: 0 16px 40px #00000033;
}

.invoice-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e0e0df;
}

.invoice-logo-print {
  height: 54px;
  width: auto;
}

.invoice-company {
  margin: 10px 0 6px;
  font-size: 19px;
  font-weight: 800;
}

.invoice-meta {
  margin: 2px 0;
  color: #6e6e6e;
  font-size: 13px;
}

.invoice-number-box {
  border: 1px solid #dedede;
  border-radius: 12px;
  padding: 12px 14px;
  background: #f7f7f7;
  align-self: start;
}

.invoice-number-box p {
  margin: 4px 0;
}

.invoice-title {
  margin: 0 0 10px !important;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.invoice-parties {
  margin: 18px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.invoice-party {
  border: 1px solid #dedede;
  border-radius: 12px;
  padding: 12px;
  background: #fbfbfb;
}

.invoice-party p {
  margin: 3px 0;
}

.invoice-label {
  margin: 0 0 6px;
  color: #6e6e6e;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.invoice-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 6px;
}

.invoice-table th,
.invoice-table td {
  border: 1px solid #dedede;
  padding: 8px 10px;
  font-size: 13px;
  text-align: left;
}

.invoice-table thead th {
  background: #f3f3f2;
  font-weight: 800;
}

.invoice-summary {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 14px;
}

.invoice-note {
  border: 1px solid #dedede;
  border-radius: 12px;
  padding: 12px;
  background: #fbfbfb;
}

.invoice-note p {
  margin: 4px 0;
}

.invoice-total-box {
  border: 1px solid #dedede;
  border-radius: 12px;
  padding: 12px;
  background: #f7f7f7;
}

.invoice-total-box p {
  margin: 8px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.invoice-grand {
  border-top: 1px solid #dedede;
  padding-top: 10px;
  font-size: 18px;
  font-weight: 900;
}

.invoice-signatures {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px dashed #cfcfce;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.invoice-signatures p {
  margin: 6px 0;
}

.compare-toolbar {
  margin-bottom: 12px;
}

/* Layout v2: sidebar navigation in original dark style */

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
}

.sidebar {
  background: linear-gradient(180deg, #111111 0%, #0a0a0a 100%);
  border-right: 1px solid #2a2a2a;
  padding: 20px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.brand-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  text-decoration: none;
}

.brand-logo-side {
  height: 56px;
  width: auto;
}

.brand-tagline {
  font-size: 12px;
  color: var(--text-faint);
  font-weight: 700;
}

.sidebar-nav {
  display: grid;
  gap: 7px;
}

.menu-group {
  border: 1px solid #333333;
  border-radius: 14px;
  background: #151515;
  padding: 6px;
}

.menu-group summary {
  list-style: none;
  cursor: pointer;
  color: #ffb08a;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  padding: 8px 10px;
}

.menu-group summary::-webkit-details-marker {
  display: none;
}

.sidebar-nav a {
  text-decoration: none;
  color: #d6d6d6;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  border-radius: 14px;
  padding: 10px 14px;
  border: 1px solid transparent;
  display: block;
}

.sidebar-nav a:hover {
  background: #242424;
}

.sidebar-nav a.active {
  background: linear-gradient(120deg, var(--primary) 0%, var(--primary-2) 100%);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(232, 74, 33, 0.22);
}

.sidebar-foot {
  margin-top: auto;
  display: grid;
  gap: 10px;
}

.side-btn,
.side-lang {
  text-decoration: none;
  border: 1px solid #333333;
  border-radius: 14px;
  padding: 10px 14px;
  color: #d6d6d6;
  font-weight: 700;
  text-align: center;
  background: #151515;
}

.side-lang-form {
  margin: 0;
}

.side-lang-select {
  width: 100%;
  border: 1px solid #333333;
  border-radius: 14px;
  padding: 10px 12px;
  background: #151515;
  color: #d6d6d6;
  font-weight: 700;
}

.app-content {
  padding: 20px 24px 30px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.topbar-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-top {
  padding: 10px 16px;
  border-radius: 12px;
}

.btn-outline {
  background: #151515;
  color: #d6d6d6;
  border: 1px solid #333333;
}

.container {
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.panel,
.card,
.list-row,
.checkout-box {
  box-shadow: 0 10px 28px #00000033;
}

@media (max-width: 1080px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .sidebar-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .menu-group {
    grid-column: span 2;
  }
}

.compare-wrap {
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
}

.compare-table th,
.compare-table td {
  border: 1px solid #333333;
  padding: 10px;
  vertical-align: top;
}

.compare-table th {
  background: #1a1a1a;
}

.compare-table td:first-child {
  width: 180px;
  color: var(--text-faint);
  font-weight: 700;
}

.compare-image {
  width: 160px;
  height: 90px;
  object-fit: contain;
  padding: 8px;
  border-radius: 10px;
  background:
    linear-gradient(135deg, #242424 0%, #111111 58%, #2a2a2a 100%);
}

.success {
  color: var(--success);
  font-weight: 700;
}

@media (max-width: 900px) {
  .upload-layout,
  .lookup-composer {
    grid-template-columns: 1fr;
  }

  .upload-preview-actions,
  .upload-preview-actions-start,
  .upload-flow-head {
    align-items: stretch;
  }

  .lookup-actions {
    flex-direction: column;
  }

  .lookup-secondary-actions {
    width: 100%;
  }

  .lookup-secondary-actions .btn,
  .btn-lookup-primary {
    width: 100%;
    text-align: center;
  }

  .filters,
  .part-layout,
  .checkout-layout,
  .invoice-grid,
  .invoice-top,
  .invoice-parties,
  .invoice-summary,
  .invoice-signatures {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 34px 26px;
  }

  .nav {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .brand-logo {
    height: 44px;
  }
}

@media print {
  body {
    background: #ffffff !important;
  }

  .nav,
  .bg-orb,
  .invoice-toolbar .btn,
  .messages {
    display: none !important;
  }

  .container {
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .invoice-sheet {
    box-shadow: none;
    border: 0;
    border-radius: 0;
    padding: 0;
  }
}
