/* 步见 StepVision — demo styles */
:root {
  --ink: #111827;
  --ink-2: #1f2937;
  --paper: #f6f3ec;
  --card: #fffdf9;
  --line: #e6e0d4;
  --muted: #6b7280;
  --muted-2: #9ca3af;
  --accent: #dd6230;
  --accent-2: #f09a5c;
  --accent-soft: #fbe9dd;
  --green: #1f7a5c;
  --green-soft: #e2f2ea;
  --blue: #2f5d8a;
  --blue-soft: #e5eef7;
  --amber: #a86412;
  --amber-soft: #fbf0d9;
  --red: #b23b3b;
  --red-soft: #fbe5e5;
  --shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 10px 30px -18px rgba(17, 24, 39, .25);
  --shadow-lg: 0 24px 60px -24px rgba(17, 24, 39, .35);
  --radius: 18px;
  --sans: "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Georgia, "Songti SC", serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  background:
    radial-gradient(1100px 500px at 85% -10%, #fdf1e6 0%, transparent 60%),
    radial-gradient(900px 500px at -10% 110%, #eef3ee 0%, transparent 55%),
    var(--paper);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--accent-soft); }

/* ---------- shared ---------- */
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px;
  background: var(--accent); color: #fff;
  display: grid; place-items: center; flex: none;
  box-shadow: 0 6px 16px -6px rgba(221, 98, 48, .6);
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-name { display: block; font-weight: 750; letter-spacing: .02em; font-size: 17px; line-height: 1.2; }
.brand-sub { display: block; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted-2); margin-top: 2px; line-height: 1.2; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 12px;
  padding: 10px 16px; font-weight: 650; font-size: 14px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -10px rgba(221, 98, 48, .8); }
.btn-primary:hover { background: #c95325; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: #fff; }
.btn-soft { background: var(--accent-soft); color: #9a3d17; }
.btn-sm { padding: 7px 12px; font-size: 12.5px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn svg { width: 16px; height: 16px; flex: none; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 99px;
  font-size: 11.5px; font-weight: 650; letter-spacing: .01em;
  background: #f1ede5; color: var(--muted);
  white-space: nowrap;
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.green { background: var(--green-soft); color: var(--green); }
.chip.amber { background: var(--amber-soft); color: var(--amber); }
.chip.red { background: var(--red-soft); color: var(--red); }
.chip.blue { background: var(--blue-soft); color: var(--blue); }
.chip.plain::before { display: none; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 0;
}
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 22px 0; }
.card-title { font-size: 15px; font-weight: 750; letter-spacing: -.01em; margin: 0; }
.card-sub { font-size: 12.5px; color: var(--muted); margin: 4px 0 0; }
.card-body { padding: 18px 22px 22px; }
.muted { color: var(--muted); }
.tiny { font-size: 11.5px; }
.mono { font-variant-numeric: tabular-nums; }
.divider { height: 1px; background: var(--line); margin: 16px 0; }

.progress { height: 8px; border-radius: 99px; background: #ede8de; overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .7s cubic-bezier(.2,.8,.2,1); }
.progress.green > span { background: linear-gradient(90deg, #1f7a5c, #46a883); }
.progress.thin { height: 5px; }

/* ---------- app shell ---------- */
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 246px; flex: none;
  background: #101725; color: #e8eaf0;
  padding: 22px 14px 16px;
  display: flex; flex-direction: column; gap: 26px;
  position: sticky; top: 0; height: 100vh;
  border-right: 1px solid rgba(255,255,255,.06);
}
.sidebar .brand { padding: 0 8px; }
.sidebar .brand-name { color: #fff; }
.sidebar .brand-sub { color: #8b93a7; }
.sidebar .brand-mark { background: var(--accent); }
.nav { display: flex; flex-direction: column; gap: 3px; }
.nav-label { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: #6f7890; padding: 0 12px 8px; }
.nav a {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: 10px;
  color: #aeb5c6; font-size: 13.5px; font-weight: 550;
  transition: background .15s, color .15s;
  position: relative;
}
.nav a svg { width: 17px; height: 17px; opacity: .85; flex: none; }
.nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav a.active { background: rgba(221, 98, 48, .14); color: #fff; }
.nav a.active::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.sidebar-foot { margin-top: auto; border-top: 1px solid rgba(255,255,255,.08); padding-top: 14px; }
.tenant { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; }
.tenant:hover { background: rgba(255,255,255,.05); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: #2a3448; color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.tenant-name { font-size: 12.5px; font-weight: 650; color: #fff; }
.tenant-plan { font-size: 10.5px; color: #8b93a7; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 30px;
  background: rgba(246, 243, 236, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(230, 224, 212, .8);
}
.crumb { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.crumb b { color: var(--ink); font-weight: 650; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.search {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 11px;
  padding: 8px 12px; min-width: 220px;
}
.search svg { width: 15px; height: 15px; color: var(--muted-2); }
.search input { border: 0; outline: 0; background: transparent; width: 100%; font-size: 12.5px; color: var(--ink); }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--muted); }
.icon-btn:hover { color: var(--ink); }
.icon-btn svg { width: 17px; height: 17px; }
.content { padding: 28px 30px 70px; max-width: 1440px; width: 100%; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.page-head h1 { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.035em; margin: 0; font-weight: 800; }
.page-head p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.page-head .actions { display: flex; gap: 10px; }

/* ---------- dashboard ---------- */
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { padding: 18px 20px; position: relative; overflow: hidden; }
.kpi::after { content: ""; position: absolute; right: -30px; top: -30px; width: 100px; height: 100px; border-radius: 50%; background: radial-gradient(circle, var(--accent-soft), transparent 70%); opacity: .7; }
.kpi-label { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.kpi-value { font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; letter-spacing: -.04em; margin: 8px 0 2px; line-height: 1.1; }
.kpi-value small { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-left: 3px; }
.kpi-foot { font-size: 11.5px; display: flex; align-items: center; gap: 6px; color: var(--muted); }
.trend-up { color: var(--green); font-weight: 700; }
.trend-down { color: var(--red); font-weight: 700; }

.dash-grid { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.dash-grid-2 { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; }
.dash-grid > *, .dash-grid-2 > * { min-width: 0; }

.order-table { width: 100%; border-collapse: collapse; }
.order-table th { text-align: left; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); font-weight: 650; padding: 0 10px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.order-table td { padding: 13px 10px; border-bottom: 1px solid #f0ebe1; vertical-align: middle; font-size: 12.5px; }
.order-table tr:last-child td { border-bottom: 0; }
.order-table tbody tr { cursor: pointer; transition: background .15s; }
.order-table tbody tr:hover { background: #fbf7ef; }
.po-cell { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.style-thumb { width: 38px; height: 38px; border-radius: 10px; flex: none; display: grid; place-items: center; background: linear-gradient(135deg, #f3e6d6, #e5d2bc); color: #a97b4f; }
.style-thumb svg { width: 30px; height: 24px; }
.po-no { font-weight: 750; letter-spacing: -.01em; }
.po-style { font-size: 11px; color: var(--muted); margin-top: 2px; }
.progress-cell { min-width: 130px; }
.progress-top { display: flex; justify-content: space-between; font-size: 11px; margin-bottom: 5px; }
.progress-top b { font-weight: 750; }
.delivery { font-size: 12px; }
.delivery small { display: block; color: var(--muted-2); font-size: 10.5px; margin-top: 2px; }

.stage-list { display: flex; flex-direction: column; gap: 14px; }
.stage-row { display: grid; grid-template-columns: 52px 1fr 60px; gap: 12px; align-items: center; }
.stage-name { font-size: 12px; font-weight: 650; color: var(--ink-2); }
.stage-qty { font-size: 11.5px; color: var(--muted); text-align: right; }
.stage-meta { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--muted-2); margin-top: 4px; }

.alert-list { display: flex; flex-direction: column; gap: 10px; }
.alert-item { display: flex; gap: 10px; padding: 11px 12px; border-radius: 12px; background: #fbf7ef; border: 1px solid #f0e7d8; }
.alert-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; flex: none; background: var(--amber); }
.alert-dot.red { background: var(--red); }
.alert-title { font-size: 12px; font-weight: 650; line-height: 1.35; }
.alert-sub { font-size: 10.5px; color: var(--muted); margin-top: 2px; }

.chart { display: flex; align-items: flex-end; gap: 10px; height: 150px; padding-top: 10px; }
.bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; height: 100%; justify-content: flex-end; }
.bar { width: 100%; max-width: 34px; border-radius: 7px 7px 3px 3px; background: linear-gradient(180deg, #e9a06b, #dd6230); min-height: 6px; transition: height .7s cubic-bezier(.2,.8,.2,1); position: relative; }
.bar.soft { background: linear-gradient(180deg, #d8d1c3, #c4bbaa); }
.bar-label { font-size: 10px; color: var(--muted-2); }
.bar-value { font-size: 10px; color: var(--muted); font-weight: 650; }

.scan-feed { display: flex; flex-direction: column; }
.scan-item { display: flex; gap: 11px; padding: 10px 0; border-bottom: 1px solid #f1ece2; align-items: center; }
.scan-item:last-child { border-bottom: 0; }
.scan-icon { width: 30px; height: 30px; border-radius: 9px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; flex: none; }
.scan-icon svg { width: 15px; height: 15px; }
.scan-main { flex: 1; min-width: 0; }
.scan-title { font-size: 12px; font-weight: 650; }
.scan-sub { font-size: 10.5px; color: var(--muted); margin-top: 1px; }
.scan-qty { font-size: 12px; font-weight: 750; color: var(--green); }

/* ---------- timeline ---------- */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; margin: 8px 0 2px; }
.timeline::before { content: ""; position: absolute; top: 14px; left: 12%; right: 12%; height: 2px; background: #ebe5d9; z-index: 0; }
.tl-step { text-align: center; position: relative; z-index: 1; }
.tl-dot { width: 30px; height: 30px; border-radius: 50%; margin: 0 auto 8px; display: grid; place-items: center; background: #eee9df; color: #a79e8e; font-size: 11px; font-weight: 800; border: 3px solid var(--card); }
.tl-step.done .tl-dot { background: var(--green); color: #fff; }
.tl-step.active .tl-dot { background: var(--accent); color: #fff; box-shadow: 0 0 0 4px var(--accent-soft); }
.tl-name { font-size: 11.5px; font-weight: 650; }
.tl-qty { font-size: 10px; color: var(--muted-2); margin-top: 2px; }
.tl-step.active .tl-name { color: var(--accent); }

/* ---------- modal ---------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(17, 24, 39, .5); backdrop-filter: blur(3px); z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.open { display: flex; animation: fadeIn .18s ease; }
.modal { width: min(920px, 100%); max-height: 90vh; overflow: auto; background: var(--card); border-radius: 22px; box-shadow: var(--shadow-lg); animation: popIn .22s ease; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 24px 0; position: sticky; top: 0; background: var(--card); z-index: 2; }
.modal-body { padding: 20px 24px 26px; }
.modal-close { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--muted); display: grid; place-items: center; flex: none; }
.modal-close:hover { color: var(--ink); }
.qr-overlay { z-index: 120; }
.qr-dialog { width: min(430px, 100%); overflow: hidden; border-radius: 22px; background: var(--card); box-shadow: var(--shadow-lg); }
.qr-dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 20px 22px 0; }
.qr-dialog-head h2 { margin: 2px 0 0; font-size: 19px; }
.qr-dialog-content { padding: 18px 22px 22px; text-align: center; }
.qr-image { display: grid; place-items: center; width: 280px; height: 280px; max-width: 100%; margin: 0 auto 12px; padding: 10px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.qr-image svg { width: 100%; height: 100%; }
.qr-url { overflow-wrap: anywhere; margin: 0 auto 14px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.qr-actions { display: flex; justify-content: center; gap: 9px; }
.qr-help { margin: 14px 0 0; line-height: 1.6; }
.qr-tools { display: grid; grid-template-columns: 1fr auto; gap: 10px 14px; align-items: center; margin-top: 22px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.qr-tools > div:first-child { display: flex; flex-direction: column; gap: 2px; }
.qr-process { min-width: 150px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.qr-tools-actions { grid-column: 1 / -1; display: flex; gap: 9px; flex-wrap: wrap; }
.access-notice { width: min(540px, calc(100% - 32px)); margin: 28px auto; padding: 18px 20px; border: 1px solid #f0d5c5; border-radius: 16px; background: #fff8f2; color: #82411f; line-height: 1.7; box-shadow: var(--shadow); }
.process-chip:disabled:not(.active) { opacity: .38; cursor: not-allowed; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.detail-box { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: #fff; }
.detail-label { font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 4px; }
.detail-value { font-size: 14px; font-weight: 700; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.photo { position: relative; aspect-ratio: 4/3; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, #eadbc6, #d6c2a8); }
.photo img, .media-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo.tint-2 { background: linear-gradient(135deg, #dbe5da, #b9ccb9); }
.photo.tint-3 { background: linear-gradient(135deg, #dce2ea, #b8c6d6); }
.photo svg.shoe { position: absolute; inset: 0; margin: auto; width: 60%; opacity: .45; color: #6b5a44; }
.photo .tag { position: absolute; left: 7px; right: 7px; bottom: 7px; background: rgba(17, 24, 39, .72); color: #fff; border-radius: 7px; padding: 4px 7px; font-size: 9.5px; line-height: 1.25; backdrop-filter: blur(4px); }
.photo .cam { position: absolute; top: 7px; right: 7px; width: 20px; height: 20px; border-radius: 50%; background: rgba(255,255,255,.8); display: grid; place-items: center; color: #4b5563; }
.photo .cam svg { width: 11px; height: 11px; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 12px; font-size: 13px; font-weight: 600; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: all .25s ease; z-index: 200; display: flex; align-items: center; gap: 8px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast .dot { width: 7px; height: 7px; border-radius: 50%; background: #5ad1a0; }

/* ---------- landing ---------- */
.landing { max-width: 1180px; margin: 0 auto; padding: 0 26px; }
.landing-nav { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.landing-nav .links { display: flex; gap: 22px; font-size: 12.5px; color: var(--muted); }
.landing-nav .links a:hover { color: var(--ink); }
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding: 48px 0 40px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 750; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); }
.hero h1 { font-family: var(--serif); font-size: clamp(38px, 5.2vw, 66px); line-height: 1.03; letter-spacing: -.045em; margin: 14px 0 18px; font-weight: 600; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { font-size: 15px; line-height: 1.75; color: var(--muted); max-width: 500px; margin: 0 0 26px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-note { display: flex; gap: 16px; margin-top: 26px; font-size: 11.5px; color: var(--muted); flex-wrap: wrap; }
.hero-note span { display: flex; align-items: center; gap: 6px; }
.hero-note i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); display: inline-block; }

.mock-window { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; transform: rotate(-1.2deg); }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 13px; background: #f4f0e8; border-bottom: 1px solid var(--line); }
.mock-dot { width: 7px; height: 7px; border-radius: 50%; background: #d8d0c2; }
.mock-url { margin-left: 8px; flex: 1; background: #fff; border: 1px solid var(--line); border-radius: 6px; font-size: 9px; color: var(--muted); padding: 4px 8px; }
.mock-body { padding: 16px; }
.mock-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 13px; }
.mock-title { font-size: 11px; font-weight: 750; }
.mock-sub { font-size: 8.5px; color: var(--muted-2); margin-top: 2px; }
.mock-pill { font-size: 8px; font-weight: 700; color: var(--green); background: var(--green-soft); padding: 3px 8px; border-radius: 99px; }
.mock-timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 14px 0 16px; }
.mock-step { height: 7px; border-radius: 99px; background: #ece7dd; }
.mock-step.done { background: var(--green); }
.mock-step.active { background: var(--accent); }
.mock-row { display: flex; align-items: center; gap: 9px; padding: 8px 0; border-top: 1px solid #f2ede4; }
.mock-thumb { width: 34px; height: 34px; border-radius: 8px; background: linear-gradient(135deg, #efe1ce, #dcc7aa); flex: none; display: grid; place-items: center; color: #9b7b56; }
.mock-thumb svg { width: 26px; height: 20px; }
.mock-line { flex: 1; }
.mock-line b { display: block; font-size: 8.5px; }
.mock-line span { font-size: 7.5px; color: var(--muted-2); }
.mock-pct { font-size: 9px; font-weight: 750; }

.section { padding: 52px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.section-head h2 { font-size: clamp(24px, 3vw, 34px); letter-spacing: -.035em; margin: 0; font-weight: 800; }
.section-head p { color: var(--muted); font-size: 13.5px; margin: 6px 0 0; max-width: 520px; }
.role-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.role-card { padding: 22px; position: relative; overflow: hidden; }
.role-num { font-family: var(--serif); font-size: 40px; color: #e2d8c7; line-height: 1; margin-bottom: 12px; }
.role-card h3 { font-size: 16px; margin: 0 0 8px; }
.role-card p { font-size: 12.5px; color: var(--muted); line-height: 1.65; margin: 0 0 14px; }
.role-link { font-size: 12px; font-weight: 700; color: var(--accent); display: inline-flex; align-items: center; gap: 5px; }
.role-link:hover { gap: 8px; }
.role-icon { position: absolute; right: 18px; top: 18px; width: 38px; height: 38px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.role-icon svg { width: 19px; height: 19px; }

.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat-item { padding: 26px 22px; border-right: 1px solid var(--line); }
.stat-item:last-child { border-right: 0; }
.stat-big { font-size: 30px; font-weight: 800; letter-spacing: -.04em; }
.stat-big small { font-size: 13px; color: var(--muted); font-weight: 600; }
.stat-label { font-size: 11.5px; color: var(--muted); margin-top: 4px; }

.footer { display: flex; justify-content: space-between; gap: 16px; padding: 26px 0 40px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted-2); flex-wrap: wrap; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--ink); }

/* ---------- portal ---------- */
.portal-body { background: #fbfaf6; }
.portal-wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px 70px; }
.portal-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 0; }
.portal-nav { display: flex; align-items: center; gap: 18px; font-size: 13px; color: var(--muted); }
.portal-nav a:hover { color: var(--ink); }
.portal-user { display: flex; align-items: center; gap: 9px; }
.portal-user .avatar { background: var(--ink); }
.portal-user-name { font-size: 12px; font-weight: 650; }
.portal-user-role { font-size: 10.5px; color: var(--muted-2); }
.portal-hero { background: var(--ink); color: #fff; border-radius: 24px; padding: 32px 34px; display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; position: relative; overflow: hidden; margin-bottom: 22px; }
.portal-hero::after { content: ""; position: absolute; right: -60px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(221,98,48,.35), transparent 65%); }
.portal-hero h1 { font-family: var(--serif); font-size: clamp(26px, 3.4vw, 38px); font-weight: 500; letter-spacing: -.03em; margin: 8px 0 8px; }
.portal-hero p { margin: 0; color: #aeb5c6; font-size: 13px; }
.portal-hero .kpis { display: flex; gap: 26px; position: relative; z-index: 1; }
.portal-kpi b { display: block; font-size: 26px; letter-spacing: -.03em; }
.portal-kpi span { font-size: 10.5px; color: #aeb5c6; text-transform: uppercase; letter-spacing: .08em; }
.portal-section-head { display: flex; align-items: center; justify-content: space-between; margin: 26px 0 12px; }
.portal-section-head h2 { font-size: 15px; margin: 0; }
.portal-section-head span { font-size: 11.5px; color: var(--muted-2); }
.order-card { display: grid; grid-template-columns: 190px 1fr 120px; gap: 22px; align-items: center; padding: 18px; margin-bottom: 14px; cursor: pointer; transition: transform .18s, box-shadow .18s; }
.order-card:hover { transform: translateY(-2px); box-shadow: 0 14px 36px -18px rgba(17,24,39,.3); }
.order-visual { height: 118px; border-radius: 14px; background: linear-gradient(135deg, #efe0cb, #d8bd9b); position: relative; overflow: hidden; }
.order-visual.tint-2 { background: linear-gradient(135deg, #dfe8dc, #b7c9b4); }
.order-visual.tint-3 { background: linear-gradient(135deg, #e0e5ec, #b8c4d4); }
.order-visual svg { position: absolute; inset: 0; margin: auto; width: 70%; opacity: .55; color: #6b563d; }
.order-visual .badge { position: absolute; top: 9px; left: 9px; background: rgba(255,255,255,.9); border-radius: 7px; padding: 3px 7px; font-size: 9px; font-weight: 750; color: var(--ink); }
.order-main h3 { font-size: 15px; margin: 0 0 3px; }
.order-main .sub { font-size: 11.5px; color: var(--muted); }
.order-main .timeline { margin: 12px 0 4px; }
.order-main .tl-dot { width: 22px; height: 22px; font-size: 8px; border-width: 2px; }
.order-main .timeline::before { top: 10px; }
.order-main .tl-name { font-size: 9.5px; }
.order-main .tl-qty { font-size: 8.5px; }
.order-side { text-align: right; }
.order-side .pct { font-size: 24px; font-weight: 800; letter-spacing: -.04em; }
.order-side .pct small { font-size: 11px; color: var(--muted); }
.order-side .date { font-size: 10.5px; color: var(--muted); margin: 3px 0 8px; }
.order-side .view { font-size: 11px; font-weight: 700; color: var(--accent); }

.portal-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin: 18px 0 20px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-bottom: 12px; white-space: nowrap; }
.back-link svg { width: 15px; height: 15px; flex: none; }
.back-link:hover { color: var(--ink); }
.portal-detail-head h1 { font-size: clamp(24px, 3vw, 34px); letter-spacing: -.035em; margin: 0 0 4px; }
.portal-detail-head p { margin: 0; color: var(--muted); font-size: 12.5px; }
.portal-detail-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; }
.portal-panel { padding: 20px; }
.portal-panel h3 { font-size: 13px; margin: 0 0 14px; }
.vtl { position: relative; padding-left: 26px; }
.vtl::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 10px; width: 2px; background: #ebe5d9; }
.vtl-item { position: relative; padding-bottom: 18px; }
.vtl-item:last-child { padding-bottom: 0; }
.vtl-dot { position: absolute; left: -24px; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: #ece7dd; border: 3px solid var(--card); }
.vtl-item.done .vtl-dot { background: var(--green); }
.vtl-item.active .vtl-dot { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.vtl-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.vtl-name { font-size: 12.5px; font-weight: 700; }
.vtl-date { font-size: 10px; color: var(--muted-2); }
.vtl-meta { font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.ring-wrap { display: flex; align-items: center; gap: 18px; }
.ring { width: 86px; height: 86px; border-radius: 50%; flex: none; display: grid; place-items: center; background: conic-gradient(var(--accent) calc(var(--p) * 1%), #ece7dd 0); position: relative; }
.ring::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--card); }
.ring b { position: relative; z-index: 1; font-size: 18px; letter-spacing: -.03em; }
.ring b small { font-size: 9px; color: var(--muted); }
.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.media-tile { aspect-ratio: 1; border-radius: 10px; position: relative; overflow: hidden; background: linear-gradient(135deg, #eadbc6, #d6c2a8); }
.media-tile.tint-2 { background: linear-gradient(135deg, #dbe5da, #b9ccb9); }
.media-tile.tint-3 { background: linear-gradient(135deg, #dce2ea, #b8c6d6); }
.media-tile svg.shoe { position: absolute; inset: 0; margin: auto; width: 62%; opacity: .45; color: #6b5a44; }
.media-tile .tag { position: absolute; left: 5px; right: 5px; bottom: 5px; background: rgba(17,24,39,.7); color: #fff; font-size: 8px; padding: 3px 5px; border-radius: 5px; }
.camera-card { border-radius: 14px; overflow: hidden; background: #0d1420; color: #fff; position: relative; aspect-ratio: 16/10; display: grid; place-items: center; cursor: pointer; }
.camera-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 30%, rgba(90,120,160,.25), transparent 60%), repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 1px, transparent 1px 34px); }
.camera-play { width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35); display: grid; place-items: center; position: relative; z-index: 1; backdrop-filter: blur(4px); }
.camera-play svg { width: 16px; height: 16px; margin-left: 2px; }
.camera-label { position: absolute; left: 10px; top: 10px; font-size: 9px; background: rgba(0,0,0,.45); padding: 3px 7px; border-radius: 5px; display: flex; align-items: center; gap: 5px; }
.live-dot { width: 5px; height: 5px; border-radius: 50%; background: #ef4444; }
.camera-note { position: absolute; left: 10px; right: 10px; bottom: 9px; font-size: 8.5px; color: rgba(255,255,255,.65); }
.comment-list { display: flex; flex-direction: column; gap: 11px; margin-bottom: 12px; }
.comment { display: flex; gap: 9px; }
.comment-avatar { width: 28px; height: 28px; border-radius: 50%; background: #e8e2d6; color: #6b5a44; display: grid; place-items: center; font-size: 9px; font-weight: 700; flex: none; }
.comment-body { background: #f7f3ea; border-radius: 10px; padding: 8px 10px; font-size: 11px; line-height: 1.5; }
.comment-body b { display: block; font-size: 10px; margin-bottom: 2px; }
.comment-body span { color: var(--muted-2); font-size: 8.5px; }
.comment-form { display: flex; gap: 7px; }
.comment-form input { flex: 1; border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; font-size: 11px; outline: none; background: #fff; }
.comment-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.comment-form button { border: 0; border-radius: 9px; background: var(--ink); color: #fff; padding: 0 12px; font-size: 11px; font-weight: 650; }

/* ---------- scan ---------- */
.scan-body { background: #e9e4da; display: flex; justify-content: center; min-height: 100vh; }
.scan-shell { width: 100%; max-width: 460px; background: #fbfaf6; min-height: 100vh; box-shadow: 0 0 60px rgba(17,24,39,.12); display: flex; flex-direction: column; }
.scan-top { background: #101725; color: #fff; padding: 18px 20px 26px; border-radius: 0 0 26px 26px; }
.scan-top-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.scan-top .brand-name { color: #fff; font-size: 15px; }
.scan-top .brand-sub { color: #8b93a7; }
.scan-top .brand-mark { width: 32px; height: 32px; border-radius: 10px; }
.scan-top .brand-mark svg { width: 20px; height: 20px; }
.scan-close { width: 32px; height: 32px; border-radius: 9px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); color: #fff; display: grid; place-items: center; }
.scan-close svg { width: 15px; height: 15px; }
.scan-order { margin-top: 20px; }
.scan-order-label { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #8b93a7; }
.scan-order-no { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin-top: 4px; }
.scan-order-meta { display: flex; gap: 14px; margin-top: 8px; font-size: 11.5px; color: #aeb5c6; flex-wrap: wrap; }
.scan-body-inner { padding: 18px 18px 30px; flex: 1; }
.scan-section { margin-bottom: 18px; }
.scan-label { font-size: 11px; font-weight: 700; color: var(--muted); margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; }
.scan-label span { font-weight: 500; color: var(--muted-2); font-size: 10px; }
.process-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.process-chip { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 9px 4px; text-align: center; font-size: 11px; font-weight: 650; color: var(--muted); }
.process-chip.active { border-color: var(--accent); background: var(--accent-soft); color: #9a3d17; box-shadow: 0 0 0 2px rgba(221,98,48,.12); }
.process-chip small { display: block; font-size: 8.5px; font-weight: 500; color: var(--muted-2); margin-top: 2px; }
.process-chip.active small { color: #b65a2f; }
.qty-box { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; }
.qty-label { font-size: 10.5px; color: var(--muted); display: flex; justify-content: space-between; }
.qty-input-row { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.qty-input-row input { border: 0; outline: 0; width: 100%; font-size: 34px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); background: transparent; padding: 0; }
.qty-input-row input::placeholder { color: #d5cfc3; }
.qty-unit { font-size: 12px; color: var(--muted-2); flex: none; }
.qty-steppers { display: flex; gap: 6px; }
.step-btn { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 17px; line-height: 1; }
.step-btn:active { background: var(--accent-soft); }
.defect-row { display: flex; gap: 8px; margin-top: 10px; }
.defect-row select, .defect-row input { flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 10px; font-size: 11.5px; background: #fff; outline: none; min-width: 0; }
.photo-upload { border: 1.5px dashed #d8d1c3; border-radius: 12px; background: #f7f3ea; padding: 14px; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 11.5px; cursor: pointer; }
.photo-upload:hover { border-color: var(--accent); background: #fdf4ec; }
.photo-upload svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.photo-upload b { display: block; color: var(--ink); font-size: 11.5px; }
.offline-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 11px; background: #f1ede5; font-size: 10.5px; color: var(--muted); margin-top: 12px; }
.switch { width: 38px; height: 22px; border-radius: 99px; background: #d5cfc3; position: relative; border: 0; transition: background .2s; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch.on { background: var(--accent); }
.switch.on::after { transform: translateX(16px); }
.scan-submit { width: 100%; border: 0; border-radius: 15px; padding: 17px; background: var(--accent); color: #fff; font-size: 16px; font-weight: 750; box-shadow: 0 12px 28px -12px rgba(221,98,48,.9); display: flex; align-items: center; justify-content: center; gap: 8px; }
.scan-submit:active { transform: scale(.99); }
.scan-submit svg { width: 18px; height: 18px; }
.scan-foot { text-align: center; font-size: 10px; color: var(--muted-2); margin-top: 12px; }
.scan-success { display: none; flex-direction: column; align-items: center; text-align: center; padding: 30px 20px; }
.scan-success.show { display: flex; }
.success-ring { width: 84px; height: 84px; border-radius: 50%; background: var(--green-soft); display: grid; place-items: center; margin-bottom: 16px; animation: popIn .35s ease; }
.success-ring svg { width: 38px; height: 38px; color: var(--green); }
.scan-success h2 { margin: 0 0 6px; font-size: 22px; }
.scan-success p { margin: 0 0 18px; color: var(--muted); font-size: 12px; }
.success-summary { width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 16px; }
.success-line { display: flex; justify-content: space-between; font-size: 12px; padding: 7px 0; border-bottom: 1px solid #f2ede4; }
.success-line:last-child { border-bottom: 0; }
.success-line b { font-weight: 750; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: scale(.96) translateY(6px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp .5s ease both; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-grid, .dash-grid-2 { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; gap: 30px; padding-top: 24px; }
  .mock-window { transform: none; max-width: 620px; }
  .role-grid { grid-template-columns: 1fr; }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: 0; }
  .stat-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .portal-detail-grid { grid-template-columns: 1fr; }
  .order-card { grid-template-columns: 150px 1fr 100px; gap: 16px; }
}
@media (max-width: 820px) {
  .app-shell { display: block; }
  .sidebar { width: 100%; height: auto; position: static; flex-direction: row; align-items: center; padding: 12px 14px; gap: 14px; overflow-x: auto; }
  .sidebar .brand { padding: 0; flex: none; }
  .sidebar .brand-sub { display: none; }
  .nav { flex-direction: row; gap: 2px; }
  .nav-label { display: none; }
  .nav a { padding: 8px 10px; white-space: nowrap; font-size: 12px; }
  .nav a.active::before { display: none; }
  .sidebar-foot { margin: 0 0 0 auto; border: 0; padding: 0; }
  .tenant { padding: 4px; }
  .tenant-plan { display: none; }
  .topbar { padding: 10px 16px; }
  .search { min-width: 0; flex: 1; }
  .content { padding: 20px 16px 50px; }
  .page-head { flex-direction: column; align-items: flex-start; }
  .page-head .actions { width: 100%; }
  .page-head .actions .btn { flex: 1; }
  .portal-hero { flex-direction: column; align-items: flex-start; }
  .portal-hero .kpis { width: 100%; justify-content: space-between; }
  .order-card { grid-template-columns: 1fr; }
  .order-visual { height: 140px; }
  .order-side { text-align: left; display: flex; align-items: center; justify-content: space-between; }
  .portal-header { flex-wrap: wrap; }
  .portal-nav { order: 3; width: 100%; justify-content: space-between; }
  .detail-grid { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .landing-nav .links { display: none; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .stat-band { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .sidebar { flex-wrap: wrap; gap: 8px; padding: 10px 12px; }
  .sidebar .brand { width: 100%; }
  .nav { width: 100%; overflow-x: auto; padding-bottom: 2px; }
  .nav a { flex: none; }
  .sidebar-foot { display: none; }
  .topbar { padding: 10px 12px; gap: 8px; }
  .crumb { display: none; }
  .search { display: none; }
  .top-actions { margin-left: auto; gap: 6px; }
  .top-actions .btn { padding: 9px 11px; }
  .content { padding: 16px 12px 44px; }
  .kpi-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 14px 15px; }
  .kpi-value { font-size: 24px; }
  .top-actions .btn span { display: none; }
  .top-actions .btn { padding: 9px 11px; }
  .page-head h1 { font-size: 24px; }
  .card-head { padding: 16px 16px 0; }
  .card-body { padding: 14px 16px 18px; }
  .order-table { table-layout: fixed; }
  .order-table th:nth-child(2), .order-table td:nth-child(2),
  .order-table th:nth-child(4), .order-table td:nth-child(4),
  .order-table th:nth-child(5), .order-table td:nth-child(5) { display: none; }
  .order-table th, .order-table td { padding-left: 4px; padding-right: 4px; }
  .po-cell { min-width: 0; }
  .progress-cell { min-width: 0; }
  .portal-wrap { padding: 0 16px 50px; }
  .portal-hero { padding: 24px; }
  .portal-hero .kpis { gap: 14px; }
  .portal-kpi b { font-size: 22px; }
  .modal { border-radius: 18px; }
  .modal-head, .modal-body { padding-left: 16px; padding-right: 16px; }
  .qr-dialog { border-radius: 18px; }
  .qr-dialog-head { padding-left: 16px; padding-right: 16px; }
  .qr-dialog-content { padding: 16px; }
  .qr-image { width: 240px; height: 240px; }
  .qr-tools { grid-template-columns: 1fr; }
  .qr-process { width: 100%; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .scan-top { padding: 14px 16px 22px; }
}

/* ---------- Rui Ge company site and refined StepVision workspace ---------- */
:root {
  --ink: #19231f;
  --ink-2: #28342e;
  --paper: #f3f0e8;
  --card: #fffdf8;
  --line: #ded9ce;
  --muted: #69716b;
  --muted-2: #8c938c;
  --accent: #a45e43;
  --accent-2: #c7a16c;
  --accent-soft: #f2e7de;
  --green: #416d58;
  --green-soft: #e6eee8;
  --blue: #4e6970;
  --blue-soft: #e6edef;
  --amber: #946b2f;
  --amber-soft: #f4eddf;
  --red: #a54d43;
  --red-soft: #f3e5e1;
  --shadow: 0 2px 8px rgba(25, 35, 31, .04), 0 18px 40px -30px rgba(25, 35, 31, .25);
  --shadow-lg: 0 28px 70px -34px rgba(18, 27, 23, .42);
  --radius: 16px;
}

body.company-page {
  background: #f3f0e8;
  color: #19231f;
  overflow-x: hidden;
}
.company-site { max-width: 1600px; margin: 0 auto; padding: 0 clamp(20px, 6.4vw, 96px); }
.company-site a:focus-visible { outline: 2px solid #a45e43; outline-offset: 4px; }
.company-nav {
  position: sticky; top: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px;
  min-height: 88px; background: rgba(243, 240, 232, .95); border-bottom: 1px solid rgba(25,35,31,.12);
  backdrop-filter: blur(16px);
}
.company-brand { display: inline-flex; align-items: center; gap: 12px; min-width: 180px; }
.company-mark {
  width: 42px; height: 42px; display: grid; place-items: center; flex: none;
  border: 1px solid #a45e43; color: #a45e43; font-family: var(--serif); font-size: 16px; font-weight: 700; letter-spacing: -.08em;
}
.company-brand-copy strong { display: block; color: #19231f; font-size: 15px; letter-spacing: .19em; line-height: 1.2; }
.company-brand-copy small { display: block; margin-top: 5px; color: #72786f; font-size: 8px; letter-spacing: .19em; }
.company-nav-links { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 34px); }
.company-nav-links a, .company-nav-portal { color: #626a64; font-size: 10px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; transition: color .18s ease; }
.company-nav-links a:hover, .company-nav-portal:hover { color: #a45e43; }
.company-nav-actions { display: flex; align-items: center; justify-content: flex-end; gap: 20px; }
.company-nav-portal span { margin-left: 4px; color: #a45e43; }
.company-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 52px; padding: 0 22px;
  background: #19231f; color: #fffdf8; border: 1px solid #19231f; border-radius: 2px;
  font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; transition: background .2s ease, color .2s ease, transform .2s ease;
}
.company-button:hover { background: #a45e43; border-color: #a45e43; color: #fff; transform: translateY(-1px); }
.company-button span { color: #d6b77e; font-size: 15px; }
.company-button-small { min-height: 42px; padding: 0 16px; font-size: 9px; }
.company-button-outline { background: transparent; color: #19231f; border-color: #b9b5aa; }
.company-button-outline:hover { color: #fff; }
.company-button-light { color: #19231f; background: #f3f0e8; border-color: #f3f0e8; }
.company-button-light:hover { color: #fff; background: #a45e43; border-color: #a45e43; }

.company-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, .88fr); gap: clamp(40px, 7vw, 112px); align-items: center; padding: clamp(58px, 8vw, 116px) 0 78px; }
.company-hero-copy { max-width: 650px; }
.company-kicker { display: inline-flex; align-items: center; gap: 10px; color: #976044; font-size: 9px; font-weight: 750; letter-spacing: .2em; line-height: 1.5; text-transform: uppercase; }
.company-kicker > span { width: 24px; height: 1px; background: #a45e43; }
.company-kicker-light { color: #d4b27b; }
.company-kicker-light > span { background: #d4b27b; }
.company-hero h1 { margin: 22px 0 22px; color: #19231f; font-family: var(--serif); font-size: clamp(48px, 6.6vw, 92px); font-weight: 500; letter-spacing: -.065em; line-height: .98; }
.company-hero h1 em, .company-section-heading h2 em { color: #a45e43; font-weight: 400; }
.company-hero-lede { max-width: 530px; margin: 0; color: #69716b; font-size: 15px; line-height: 1.85; }
.company-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.company-hero-meta { display: flex; flex-wrap: wrap; gap: 18px 25px; margin-top: 36px; color: #68716a; font-size: 10px; letter-spacing: .04em; }
.company-hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.company-hero-meta i, .company-photo-caption i, .preview-footer i { width: 6px; height: 6px; border-radius: 50%; background: #6c8b6d; }
.company-hero-visual { position: relative; min-width: 0; height: clamp(440px, 45vw, 610px); background: #e6e1d7; overflow: hidden; }
.company-hero-visual > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.company-hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,22,19,.02) 46%, rgba(15,22,19,.28) 100%); pointer-events: none; }
.company-image-index { position: absolute; top: 22px; left: 22px; z-index: 1; display: flex; align-items: center; gap: 12px; color: #fff; font-size: 8px; font-weight: 700; letter-spacing: .18em; text-shadow: 0 1px 7px rgba(0,0,0,.35); }
.company-image-index span:first-child { font-family: var(--serif); font-size: 18px; }
.company-hero-note { position: absolute; left: 22px; right: 22px; bottom: 44px; z-index: 2; display: flex; align-items: center; gap: 14px; padding: 18px; color: #19231f; background: rgba(255,253,248,.94); box-shadow: var(--shadow); }
.company-note-mark { width: 34px; height: 34px; display: grid; place-items: center; flex: none; border: 1px solid #c9b28e; color: #a45e43; font-family: var(--serif); font-size: 13px; letter-spacing: -.08em; }
.company-hero-note small { display: block; margin-bottom: 6px; color: #8a6b4f; font-size: 8px; font-weight: 700; letter-spacing: .17em; }
.company-hero-note strong { display: block; font-family: var(--serif); font-size: 20px; font-weight: 500; line-height: 1.15; }
.company-note-arrow { margin-left: auto; color: #a45e43; font-size: 19px; }
.company-hero-label { position: absolute; right: 22px; bottom: 17px; z-index: 2; color: #fff; font-size: 8px; letter-spacing: .12em; text-transform: uppercase; text-shadow: 0 1px 5px rgba(0,0,0,.35); }

.company-entry-rail { display: grid; grid-template-columns: 1.05fr repeat(3, 1fr); margin: 0 0 24px; border: 1px solid #d9d3c7; background: #fffdf8; }
.company-entry-intro { display: flex; flex-direction: column; justify-content: center; min-height: 172px; padding: 25px 28px; color: #fffdf8; background: #1d2a25; }
.company-entry-eyebrow { margin-bottom: 11px; color: #d2ae73; font-size: 8px; font-weight: 700; letter-spacing: .17em; }
.company-entry-intro strong { font-family: var(--serif); font-size: 23px; font-weight: 500; line-height: 1.15; }
.company-entry-caption { margin-top: 10px; color: #b4beb5; font-size: 9px; }
.company-entry-card { display: flex; align-items: flex-start; gap: 13px; min-width: 0; padding: 25px 18px; border-right: 1px solid #e5dfd4; transition: background .2s ease; }
.company-entry-card:last-child { border-right: 0; }
.company-entry-card:hover { background: #f7f3eb; }
.company-entry-featured { background: #f6f1e8; }
.company-entry-icon { display: grid; place-items: center; width: 27px; height: 27px; flex: none; color: #a45e43; border: 1px solid #d8cbb7; font-family: var(--serif); font-size: 10px; }
.company-entry-card > span:nth-child(2) { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.company-entry-card small { color: #8b7259; font-size: 8px; font-weight: 700; letter-spacing: .14em; }
.company-entry-card strong { color: #1d2a25; font-family: var(--serif); font-size: 18px; font-weight: 500; }
.company-entry-card em { color: #737a72; font-size: 10px; font-style: normal; line-height: 1.55; }
.company-entry-arrow { margin-left: auto; color: #a45e43; font-size: 15px; }

.company-facts { display: grid; grid-template-columns: 1.2fr repeat(4, 1fr); margin: 0 0 45px; padding: 30px 0 35px; border-bottom: 1px solid #d9d3c7; }
.company-fact-lead, .company-fact { display: flex; flex-direction: column; justify-content: center; min-height: 96px; padding: 5px 24px; border-right: 1px solid #ddd7cb; }
.company-fact-lead { padding-left: 0; }
.company-fact:last-child { border-right: 0; }
.company-fact-lead span { margin-bottom: 8px; color: #997553; font-size: 8px; font-weight: 750; letter-spacing: .17em; }
.company-fact-lead strong { color: #26332d; font-family: var(--serif); font-size: 20px; font-weight: 500; line-height: 1.1; }
.company-fact > strong { color: #26332d; font-family: var(--serif); font-size: 38px; font-weight: 500; letter-spacing: -.05em; line-height: 1; }
.company-fact > strong span { color: #a45e43; font-size: 25px; }
.company-fact small { margin-top: 9px; color: #737a72; font-size: 9px; line-height: 1.55; }

.company-section { padding: 104px 0; }
.company-section-heading h2, .company-section-topline h2, .company-quality h2, .company-contact h2 { margin: 18px 0 0; color: #1c2822; font-family: var(--serif); font-size: clamp(38px, 5vw, 62px); font-weight: 500; letter-spacing: -.055em; line-height: 1.02; }
.company-about-grid { display: grid; grid-template-columns: 1.05fr .82fr; align-items: center; gap: clamp(44px, 8vw, 120px); margin-top: 46px; }
.company-about-image { position: relative; min-width: 0; height: clamp(360px, 43vw, 520px); background: #ddd8ce; }
.company-about-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.company-photo-caption { position: absolute; left: 17px; bottom: 17px; display: inline-flex; align-items: center; gap: 9px; padding: 10px 13px; color: #fff; background: rgba(25,35,31,.82); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.company-photo-caption i { background: #d3b175; }
.company-about-copy { max-width: 470px; }
.company-about-copy p { color: #69716b; font-size: 13px; line-height: 1.9; }
.company-about-copy .company-copy-lead { color: #25322c; font-family: var(--serif); font-size: 25px; line-height: 1.35; }
.company-text-link { display: inline-flex; align-items: center; gap: 13px; margin-top: 13px; padding-bottom: 8px; color: #94583e; border-bottom: 1px solid #b89674; font-size: 9px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.company-location-card { display: flex; align-items: center; gap: 13px; margin-top: 36px; padding-top: 22px; border-top: 1px solid #dcd6ca; }
.company-location-pin { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #d1c4ae; color: #a45e43; font-size: 9px; }
.company-location-card small { display: block; margin-bottom: 6px; color: #8b7259; font-size: 8px; font-weight: 700; letter-spacing: .15em; }
.company-location-card strong { color: #39463f; font-size: 10px; font-weight: 650; }

.company-collections { padding-top: 72px; }
.company-section-topline { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 38px; }
.company-section-topline h2 { margin-top: 15px; }
.company-section-topline > p { max-width: 390px; margin: 0 0 5px; color: #747a73; font-size: 12px; line-height: 1.85; }
.company-product-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 14px; }
.company-product-card { min-width: 0; background: #ebe7df; }
.company-product-image { height: clamp(260px, 27vw, 365px); overflow: hidden; background: #e8e4dc; }
.company-product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.2,.75,.25,1); }
.company-product-card:hover img { transform: scale(1.04); }
.company-product-meta { display: flex; flex-direction: column; gap: 8px; padding: 19px 20px 21px; }
.company-product-meta span { color: #927452; font-size: 8px; font-weight: 700; letter-spacing: .14em; }
.company-product-meta strong { color: #27332d; font-family: var(--serif); font-size: 20px; font-weight: 500; }

.company-capabilities { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(50px, 9vw, 130px); margin: 66px calc(clamp(20px, 6.4vw, 96px) * -1) 0; padding: 82px clamp(20px, 6.4vw, 96px); color: #f4f0e8; background: #1b2923; }
.company-capabilities-head h2, .company-stepvision h2 { margin: 20px 0 15px; color: #f7f3ec; font-family: var(--serif); font-size: clamp(38px, 4.7vw, 60px); font-weight: 500; letter-spacing: -.05em; line-height: 1.02; }
.company-capabilities-head p, .company-stepvision-copy > p { max-width: 360px; margin: 0 0 25px; color: #bcc4bb; font-size: 12px; line-height: 1.85; }
.company-capabilities-list { border-top: 1px solid rgba(255,255,255,.16); }
.company-capabilities-list article { display: grid; grid-template-columns: 34px 1fr 18px; gap: 13px; align-items: start; padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.company-capabilities-list article > span { padding-top: 3px; color: #d0b078; font-family: var(--serif); font-size: 14px; }
.company-capabilities-list h3 { margin: 0 0 7px; color: #f5f1e9; font-family: var(--serif); font-size: 20px; font-weight: 500; }
.company-capabilities-list p { max-width: 510px; margin: 0; color: #b8c0b8; font-size: 10px; line-height: 1.8; }
.company-capabilities-list article > b { color: #d0b078; font-size: 14px; font-weight: 400; }

.company-quality { display: grid; grid-template-columns: 150px 1fr auto; gap: 38px; align-items: center; padding: 100px 0; border-bottom: 1px solid #d9d3c7; }
.company-quality-seal { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 126px; height: 126px; border: 1px solid #b99c70; border-radius: 50%; color: #9c6045; font-family: var(--serif); font-size: 26px; letter-spacing: .08em; }
.company-quality-seal small { margin-top: 5px; color: #8b7259; font-family: var(--sans); font-size: 7px; font-weight: 700; letter-spacing: .17em; }
.company-quality-copy { max-width: 600px; }
.company-quality h2 { margin-top: 14px; font-size: clamp(34px, 4vw, 49px); }
.company-quality-copy p { max-width: 620px; margin: 16px 0 0; color: #69716b; font-size: 11px; line-height: 1.85; }
.company-quality-tags { display: flex; flex-direction: column; gap: 10px; }
.company-quality-tags span { min-width: 190px; padding: 11px 13px; border-left: 2px solid #c7a16c; color: #4a554e; background: #ebe7df; font-size: 9px; }

.company-stepvision { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(50px, 9vw, 130px); align-items: center; margin: 60px calc(clamp(20px, 6.4vw, 96px) * -1) 0; padding: 84px clamp(20px, 6.4vw, 96px); color: #f4f0e8; background: #25332d; }
.company-stepvision-copy { max-width: 560px; }
.company-stepvision-copy > p { max-width: 510px; margin-top: 0; }
.company-stepvision-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 25px; }
.company-stepvision-link { color: #eee7d9; font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.company-stepvision-link:hover { color: #d6b77e; }
.company-internal-note { display: block; max-width: 500px; margin-top: 20px; color: #aeb8af; font-size: 9px; line-height: 1.6; }
.company-stepvision-preview { max-width: 570px; padding: 0 24px 23px; color: #29342f; background: #fffdf8; box-shadow: 0 22px 55px rgba(0,0,0,.18); }
.preview-browser-bar { display: flex; align-items: center; gap: 5px; height: 43px; border-bottom: 1px solid #e6e1d7; }
.preview-browser-bar > span { width: 6px; height: 6px; border-radius: 50%; background: #c7c3b9; }
.preview-browser-bar small { margin-left: 9px; color: #8b918a; font-size: 7px; font-weight: 700; letter-spacing: .15em; }
.preview-order-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 25px 0 19px; }
.preview-order-head small { display: block; margin-bottom: 6px; color: #9b7956; font-size: 7px; font-weight: 700; letter-spacing: .15em; }
.preview-order-head strong { display: block; font-family: var(--serif); font-size: 18px; font-weight: 500; }
.preview-order-head > b { padding: 6px 9px; color: #547354; background: #e8eee4; font-size: 7px; letter-spacing: .08em; white-space: nowrap; }
.preview-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.preview-progress span { height: 5px; background: #ece8df; }
.preview-progress span:nth-child(1), .preview-progress span:nth-child(2), .preview-progress span:nth-child(3) { background: #9a7653; }
.preview-stage-list { margin-top: 12px; }
.preview-stage-list > div { display: grid; grid-template-columns: 31px 1fr auto; align-items: center; gap: 7px; min-height: 44px; border-bottom: 1px solid #eeeae2; }
.preview-stage-list > div > span { color: #a37f56; font-family: var(--serif); font-size: 11px; }
.preview-stage-list strong { color: #3d4841; font-size: 10px; font-weight: 650; }
.preview-stage-list b { color: #818880; font-size: 8px; font-weight: 500; }
.preview-footer { display: flex; justify-content: space-between; gap: 10px; padding-top: 15px; color: #8a9088; font-size: 7px; font-weight: 700; letter-spacing: .12em; }
.preview-footer span:first-child { display: flex; align-items: center; gap: 7px; }
.preview-footer i { background: #71876a; }

.company-contact { display: grid; grid-template-columns: 1fr .72fr; gap: 60px; align-items: center; padding: 104px 0 100px; }
.company-contact h2 { margin-top: 16px; }
.company-contact-copy > p { max-width: 430px; margin: 19px 0 0; color: #69716b; font-size: 12px; line-height: 1.85; }
.company-contact-card { padding: 29px; border: 1px solid #d9d3c7; background: #fffdf8; }
.company-contact-card > span { display: block; color: #8b7259; font-size: 8px; font-weight: 750; letter-spacing: .17em; }
.company-contact-card > a:not(.company-button) { display: flex; justify-content: space-between; gap: 12px; margin: 13px 0; color: #26342d; font-family: var(--serif); font-size: clamp(19px, 2.3vw, 27px); }
.company-contact-card > a:not(.company-button) b { color: #a45e43; font-family: var(--sans); font-size: 15px; font-weight: 400; }
.company-contact-card small { display: block; margin-bottom: 20px; color: #81877f; font-size: 9px; }
.company-contact-card .company-button { width: 100%; }
.company-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 105px; border-top: 1px solid #d9d3c7; }
.company-brand-footer .company-mark { width: 34px; height: 34px; font-size: 13px; }
.company-brand-footer .company-brand-copy strong { font-size: 12px; }
.company-brand-footer .company-brand-copy small { font-size: 7px; }
.company-footer-legal { color: #81877f; font-size: 9px; }
.company-footer > div { display: flex; flex-wrap: wrap; gap: 18px; }
.company-footer > div a { color: #69716b; font-size: 8px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.company-footer > div a:hover { color: #a45e43; }

/* StepVision stays an operations tool, with clearer company and portal shortcuts. */
.sidebar { background: #19241f; }
.nav a.active { background: rgba(199, 161, 108, .14); }
.nav a.active::before { background: #c7a16c; }
.sidebar .brand-mark { background: #a45e43; }
.factory-shortcuts { display: flex; align-items: center; gap: 8px; }
.factory-shortcuts a { display: inline-flex; align-items: center; min-height: 34px; padding: 0 11px; border: 1px solid #d4cec2; color: #566058; background: rgba(255,253,248,.7); font-size: 9px; font-weight: 700; letter-spacing: .06em; white-space: nowrap; }
.factory-shortcuts a:hover { color: #914f37; background: #fffdf8; border-color: #c4a77b; }
.factory-shortcuts a:last-child { color: #fffdf8; background: #1d2a25; border-color: #1d2a25; }
.factory-shortcuts a:last-child:hover { background: #a45e43; border-color: #a45e43; }
.workspace-badge { display: inline-flex; align-items: center; margin-top: 7px; padding: 4px 8px; border: 1px solid #d9c9ab; color: #806448; background: #f5efe3; font-size: 9px; font-weight: 700; letter-spacing: .04em; }
.portal-hero { background: #1d2a25; }
.portal-hero::after { background: radial-gradient(circle, rgba(199,161,108,.28), transparent 65%); }
.portal-preview-notice { display: flex; align-items: center; gap: 14px; margin: 2px 0 14px; padding: 12px 15px; border: 1px solid #e1d4be; color: #6c6253; background: #f6f0e5; font-size: 10px; line-height: 1.6; }
.portal-preview-notice b { flex: none; color: #945b3e; font-size: 8px; letter-spacing: .14em; }
.portal-body .brand-mark { background: #a45e43; }
.scan-top { background: #19241f; }
.access-notice { border-color: #d4c5a9; background: #f7f0e5; color: #5b4935; }

/* Company site language, process and market sections. */
.company-nav { grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(16px, 2.5vw, 36px); }
.company-nav-links { justify-content: center; gap: clamp(13px, 1.7vw, 26px); }
.company-language-switch { display: inline-flex; align-items: center; gap: 7px; color: #a9a69d; font-size: 9px; letter-spacing: .08em; white-space: nowrap; }
.company-language-switch a { color: #69716b; }
.company-language-switch a[aria-current="page"] { color: #a45e43; font-weight: 750; }
.company-language-switch a:hover { color: #a45e43; }
.company-facts-note { grid-column: 1 / -1; margin: 16px 0 0; color: #81877f; font-size: 9px; line-height: 1.6; }
.company-development { margin-top: 55px; }
.company-development .company-capabilities-head { align-self: center; }
.company-markets { display: grid; grid-template-columns: .8fr 1.4fr; align-items: center; gap: 14px 36px; margin: 10px 0 55px; padding: 34px 0; border-top: 1px solid #d9d3c7; border-bottom: 1px solid #d9d3c7; }
.company-markets h2 { margin: 12px 0 0; color: #1c2822; font-family: var(--serif); font-size: clamp(26px, 3vw, 38px); font-weight: 500; letter-spacing: -.04em; }
.company-market-list { display: flex; flex-wrap: wrap; gap: 8px; }
.company-market-list span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 13px; border: 1px solid #d9d3c7; color: #505a52; background: #fffdf8; font-size: 9px; font-weight: 650; letter-spacing: .04em; }
.company-markets > p { grid-column: 2; margin: 0; color: #81877f; font-size: 9px; line-height: 1.6; }

@media (max-width: 1120px) {
  .factory-shortcuts { display: none; }
  .company-nav { grid-template-columns: 1fr auto; gap: 14px 20px; padding: 13px 0; }
  .company-nav-links { grid-column: 1 / -1; grid-row: 2; justify-content: center; }
  .company-hero { grid-template-columns: minmax(0, 1fr) minmax(340px, .88fr); gap: 36px; padding-top: 68px; }
  .company-entry-rail { grid-template-columns: repeat(3, 1fr); }
  .company-entry-intro { grid-column: 1 / -1; min-height: auto; }
  .company-facts { grid-template-columns: repeat(4, 1fr); }
  .company-fact-lead { grid-column: 1 / -1; padding: 0 0 16px; border-right: 0; }
  .company-fact:nth-child(5) { border-right: 0; }
}
@media (max-width: 820px) {
  .company-site { padding: 0 22px; }
  .company-nav { position: relative; }
  .company-nav-links { justify-content: flex-start; gap: 22px; overflow-x: auto; padding: 3px 0 7px; }
  .company-nav-actions { gap: 12px; }
  .company-hero { grid-template-columns: 1fr; padding: 55px 0 48px; }
  .company-hero-copy { max-width: 690px; }
  .company-hero-visual { height: min(78vw, 560px); min-height: 370px; }
  .company-entry-rail { grid-template-columns: 1fr 1fr; }
  .company-entry-card:nth-child(3) { border-right: 0; }
  .company-entry-card:last-child { grid-column: 1 / -1; border-top: 1px solid #e5dfd4; }
  .company-facts { grid-template-columns: 1fr 1fr; }
  .company-fact { padding: 17px; border-bottom: 1px solid #ddd7cb; }
  .company-fact:nth-child(3), .company-fact:nth-child(5) { border-right: 0; }
  .company-fact:nth-child(4) { border-right: 1px solid #ddd7cb; }
  .company-fact:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .company-section { padding: 78px 0; }
  .company-about-grid { grid-template-columns: 1fr; gap: 32px; }
  .company-about-image { height: min(70vw, 480px); }
  .company-about-copy { max-width: 650px; }
  .company-section-topline { align-items: flex-start; flex-direction: column; gap: 16px; }
  .company-product-grid { grid-template-columns: 1fr 1fr; }
  .company-product-card:first-child { grid-column: 1 / -1; }
  .company-product-card:first-child .company-product-image { height: min(70vw, 440px); }
  .company-product-image { height: 260px; }
  .company-capabilities { grid-template-columns: 1fr; gap: 36px; margin-top: 38px; padding-top: 65px; padding-bottom: 65px; }
  .company-capabilities-head { max-width: 640px; }
  .company-quality { grid-template-columns: 110px 1fr; gap: 25px; padding: 74px 0; }
  .company-quality-seal { width: 100px; height: 100px; font-size: 22px; }
  .company-quality-tags { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .company-quality-tags span { min-width: auto; }
  .company-stepvision { grid-template-columns: 1fr; gap: 38px; margin-top: 38px; padding-top: 66px; padding-bottom: 66px; }
  .company-stepvision-preview { width: 100%; }
  .company-contact { grid-template-columns: 1fr; gap: 30px; padding: 78px 0; }
  .company-contact-card { max-width: 560px; }
  .company-footer { flex-wrap: wrap; justify-content: flex-start; padding: 22px 0; }
  .company-footer-legal { margin-left: auto; }
  .factory-shortcuts a { padding: 0 8px; font-size: 8px; }
  .company-markets { grid-template-columns: 1fr; gap: 15px; margin-bottom: 38px; padding: 29px 0; }
  .company-markets > p { grid-column: auto; }
  .company-nav-actions { gap: 12px; }
}
@media (max-width: 560px) {
  .company-site { padding: 0 17px; }
  .company-nav { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; min-height: auto; padding: 14px 0 0; }
  .company-brand { min-width: 0; gap: 9px; }
  .company-mark { width: 36px; height: 36px; font-size: 14px; }
  .company-brand-copy strong { font-size: 12px; }
  .company-brand-copy small { font-size: 7px; letter-spacing: .12em; }
  .company-nav-actions { gap: 9px; }
  .company-nav-portal { display: none; }
  .company-language-switch { gap: 4px; font-size: 9px; }
  .company-button-small { min-height: 36px; padding: 0 9px; font-size: 9px; letter-spacing: .04em; }
  .company-nav-links { grid-column: 1 / -1; gap: 17px; justify-content: flex-start; margin: 9px -17px 0; padding: 0 17px 11px; border-bottom: 1px solid rgba(25,35,31,.12); }
  .company-nav-links a { font-size: 10px; letter-spacing: .04em; }
  .company-hero { gap: 28px; padding: 43px 0 35px; }
  .company-hero h1 { margin: 17px 0; font-size: clamp(44px, 12vw, 62px); }
  .company-hero-lede { font-size: 13px; line-height: 1.75; }
  .company-hero-actions { flex-direction: column; align-items: stretch; margin-top: 23px; }
  .company-hero-actions .company-button { width: 100%; }
  .company-hero-meta { gap: 10px; flex-direction: column; margin-top: 22px; font-size: 9px; }
  .company-hero-visual { height: 390px; min-height: 0; }
  .company-hero-note { left: 12px; right: 12px; bottom: 39px; gap: 10px; padding: 13px; }
  .company-hero-note strong { font-size: 17px; }
  .company-image-index { top: 13px; left: 13px; }
  .company-hero-label { right: 12px; bottom: 14px; font-size: 7px; }
  .company-entry-rail { grid-template-columns: 1fr; }
  .company-entry-intro { grid-column: auto; min-height: 130px; padding: 20px; }
  .company-entry-card, .company-entry-card:nth-child(3), .company-entry-card:last-child { grid-column: auto; border-right: 0; border-top: 1px solid #e5dfd4; padding: 18px 16px; }
  .company-entry-card strong { font-size: 17px; }
  .company-facts { grid-template-columns: 1fr 1fr; padding: 25px 0; }
  .company-fact-lead { padding: 0 0 14px; }
  .company-fact { min-height: 98px; padding: 14px 10px; }
  .company-fact > strong { font-size: 31px; }
  .company-fact small { font-size: 9px; }
  .company-section { padding: 61px 0; }
  .company-section-heading h2, .company-section-topline h2, .company-contact h2 { font-size: 43px; }
  .company-about-grid { margin-top: 28px; }
  .company-about-image { height: 310px; }
  .company-about-copy .company-copy-lead { font-size: 22px; }
  .company-about-copy p { font-size: 12px; }
  .company-location-card { margin-top: 25px; }
  .company-product-grid { grid-template-columns: 1fr; gap: 12px; }
  .company-product-card:first-child { grid-column: auto; }
  .company-product-card:first-child .company-product-image, .company-product-image { height: 290px; }
  .company-capabilities { gap: 28px; margin: 22px -17px 0; padding: 54px 17px; }
  .company-capabilities-head h2, .company-stepvision h2 { font-size: 42px; }
  .company-capabilities-list article { grid-template-columns: 27px 1fr 14px; gap: 9px; padding: 18px 0; }
  .company-capabilities-list h3 { font-size: 18px; }
  .company-quality { grid-template-columns: 1fr; gap: 18px; padding: 62px 0; }
  .company-quality-seal { width: 82px; height: 82px; font-size: 19px; }
  .company-quality-seal small { font-size: 6px; }
  .company-quality h2 { font-size: 38px; }
  .company-quality-tags { gap: 7px; }
  .company-quality-tags span { flex: 1 1 145px; font-size: 9px; }
  .company-stepvision { gap: 28px; margin: 22px -17px 0; padding: 54px 17px; }
  .company-stepvision-actions { align-items: flex-start; flex-direction: column; gap: 15px; }
  .company-stepvision-preview { padding: 0 15px 17px; }
  .preview-order-head strong { font-size: 16px; }
  .company-contact { gap: 23px; padding: 62px 0; }
  .company-contact-card { padding: 21px 17px; }
  .company-contact-card > a:not(.company-button) { font-size: 20px; }
  .company-footer { gap: 15px; }
  .company-footer-legal { width: 100%; margin-left: 0; order: 3; }
  .company-footer > div { gap: 14px; }
  .company-footer > div a { font-size: 9px; }
  .factory-shortcuts { display: none; }
  .portal-preview-notice { align-items: flex-start; flex-direction: column; gap: 4px; }
}

/* Company identity shared by the existing order workspaces. */
:root { --paper: #f5f5f2; --card: #ffffff; --ink: #242422; --ink-2: #343430; --line: #deded6; --accent: #77533c; --accent-2: #946c50; --accent-soft: #f0e8e1; --radius: 8px; --shadow: none; }
body { background: var(--paper); }
.brand-mark, .btn-primary { box-shadow: none; }
.progress > span { background: var(--accent); }
.progress.green > span { background: var(--green); }
.kpi::after, .portal-hero::after { display: none; }
.portal-hero { background: #242422; border-radius: 8px; }
.portal-hero h1 { font-family: var(--sans); }
.style-thumb, .mock-thumb, .order-visual, .order-visual.tint-2, .order-visual.tint-3 { background: #eaeae4; }
.bar { background: var(--accent); }
.bar.soft { background: #c6c6bd; }
.photo, .photo.tint-2, .photo.tint-3, .media-tile, .media-tile.tint-2, .media-tile.tint-3 { background: #e8e8e1; }
.camera-card::before { background: none; }
