:root {
  --ink: #242326;
  --muted: #6f6d72;
  --line: #dedde0;
  --line-soft: #ecebed;
  --bg: #f4f3f2;
  --surface: #fff;
  --yellow: #ffc900;
  --yellow-dark: #e5b400;
  --navy: #171845;
  --gold: #8d7423;
  --ok: #247247;
  --warn: #9c5b00;
  --bad: #aa2c25;
  --shadow: 0 2px 8px rgb(27 25 24 / 7%);
}

* { box-sizing: border-box; }
html { min-width: 320px; }
body {
  margin: 0;
  font: 14px/1.5 "Avenir Next", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { outline-color: var(--navy); }

.brandbar {
  height: 58px;
  display: flex;
  align-items: center;
  padding: 0 28px;
  background: var(--yellow);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand { display: flex; align-items: baseline; gap: 14px; color: #161616; text-decoration: none; }
.wordmark { font: 700 23px/1 Georgia, "Times New Roman", serif; letter-spacing: -.8px; }
.product-name { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.user {
  margin-left: auto;
  font-size: 12px;
  color: #2f2d20;
  max-width: 42vw;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.environment-bar {
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #fff;
  background: var(--navy);
  font-size: 10px;
  letter-spacing: .02em;
  position: sticky;
  top: 58px;
  z-index: 10;
}

.sidebar {
  position: fixed;
  top: 82px;
  left: 0;
  bottom: 0;
  width: 224px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-right: 1px solid var(--line);
  z-index: 8;
}
.nav-section {
  padding: 23px 20px 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
}
.sidebar nav { padding: 0 8px; }
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 58px;
  margin: 2px 0;
  padding: 9px 12px;
  border-left: 3px solid transparent;
  color: #3b393d;
  text-decoration: none;
  font-weight: 600;
}
.sidebar nav a:hover { background: #f7f6f5; }
.sidebar nav a.active {
  background: #f0efef;
  border-left-color: var(--yellow);
  color: #171717;
}
.sidebar nav small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
}
.nav-icon {
  flex: 0 0 27px;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #272629;
  font-size: 10px;
  font-weight: 700;
}
.sidebar-footer {
  margin-top: auto;
  padding: 14px 20px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 11px;
}
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--ok);
}

main {
  min-height: calc(100vh - 82px);
  margin-left: 224px;
  padding: 26px 34px 50px;
  max-width: 1650px;
}
h1 {
  margin: 0 0 18px;
  font: 600 34px/1.15 Georgia, "Times New Roman", serif;
  letter-spacing: -.025em;
}
h2 {
  margin: 22px 0 10px;
  font-size: 14px;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.card {
  margin-bottom: 18px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow: var(--shadow);
}
.row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 10px;
}
.stat {
  min-height: 82px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-top: 3px solid transparent;
  border-radius: 3px;
  background: var(--surface);
  color: var(--muted);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .15s, border-color .15s;
}
.stat:hover { transform: translateY(-1px); border-top-color: var(--yellow); }
.stat b { display: block; color: var(--ink); font-size: 25px; line-height: 1.25; }
.stat.active { border-top-color: var(--yellow); box-shadow: 0 0 0 1px var(--yellow), var(--shadow); }

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
th, td {
  padding: 10px 11px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
}
th {
  position: sticky;
  top: 82px;
  z-index: 1;
  color: #57555a;
  background: #f4f3f3;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .12s; }
tbody tr:hover { background: #fffbee; cursor: pointer; }

button, .button {
  min-height: 36px;
  padding: 7px 15px;
  border: 1px solid #c8c7ca;
  border-radius: 2px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  transition: background .15s, border-color .15s;
}
button:hover, .button:hover { border-color: #8e8c91; background: #f8f7f6; }
button.primary {
  min-width: 120px;
  color: #1c1a12;
  background: var(--yellow);
  border-color: var(--yellow-dark);
}
button.primary:hover { background: #f3bf00; }
button.ok { color: #fff; background: var(--ok); border-color: var(--ok); }
button.bad { color: var(--bad); border-color: #dfc2bf; }
button:disabled { opacity: .45; cursor: default; }

input, select, textarea {
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid #d0cfd2;
  border-radius: 2px;
  color: var(--ink);
  background: #fff;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgb(255 201 0 / 18%);
}
input[type="checkbox"] { min-height: 0; accent-color: var(--yellow-dark); }
input[type="file"] { display: block; margin-top: 5px; max-width: 280px; }
label { color: #5f5d61; font-size: 11px; font-weight: 600; }

.pill {
  display: inline-block;
  margin: 1px 3px 1px 0;
  padding: 2px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #eeedef;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}
.pill.REVIEW { color: var(--warn); background: #fff4d9; border-color: #f1d49a; }
.pill.CREATE_STYLE_ROW, .pill.CREATE_SKU_ROW, .pill.EXCLUDE { color: var(--ok); background: #e6f3eb; border-color: #b9dac6; }
.pill.NO_CHANGE { color: #66636a; background: #ededef; }
.pill.approved { color: var(--ok); background: #e6f3eb; }
.pill.rejected { color: var(--bad); background: #fae7e5; }
.pill.reason { color: #665315; background: #f5f0df; }
.match { color: var(--ok); }
.mismatch { color: var(--bad); font-weight: 700; }
.muted { color: var(--muted); }
.progress { width: min(520px, 100%); height: 8px; overflow: hidden; border-radius: 4px; background: var(--line); }
.progress div { height: 100%; background: var(--yellow); transition: width .3s; }
.error { color: var(--bad); white-space: pre-wrap; }
.notice {
  margin-bottom: 18px;
  padding: 12px 15px;
  border-left: 4px solid var(--yellow);
  background: #fff9e8;
  color: #564b29;
}
details summary { cursor: pointer; }

#drawer {
  position: fixed;
  top: 82px;
  right: 0;
  bottom: 0;
  width: min(790px, 94vw);
  z-index: 20;
  overflow: auto;
  padding: 24px 28px 40px;
  background: #fff;
  border-left: 4px solid var(--yellow);
  box-shadow: -14px 0 38px rgb(0 0 0 / 16%);
}
#drawer .close { float: right; }
#drawer h1 { padding-right: 80px; font-size: 27px; }
#drawer th { top: -24px; }
.fields { display: grid; grid-template-columns: 165px 1fr; gap: 9px 12px; align-items: center; }
.fields input { width: 100%; }
.evidence { box-shadow: none; }
.evidence td { font-size: 12px; }
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding: 10px 14px 10px 46px;
  border: 1px solid var(--line);
  border-left-width: 0;
  background: var(--surface);
  color: var(--muted);
  counter-increment: step;
}
.steps li:first-child { border-left-width: 1px; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 13px;
  top: 12px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--line);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.steps b { display: block; color: var(--ink); font-size: 13px; }
.steps span { font-size: 11px; }
.steps li.done::before { content: "✓"; background: var(--ok); }
.steps li.current { box-shadow: inset 0 -3px 0 var(--yellow); background: #fffbee; }
.steps li.current::before { background: var(--navy); }
.letters div { white-space: nowrap; }
.readings input { width: 100%; min-width: 60px; }
.readings td { padding: 6px; }
.pager span { min-width: 90px; text-align: center; }
.cardimg { width: 100%; margin-top: 8px; border: 1px solid var(--line); border-radius: 2px; }
code {
  padding: 2px 5px;
  border-radius: 2px;
  color: #3f3d43;
  background: #efeff1;
  font: 11px/1.4 Consolas, monospace;
}

@media (max-width: 900px) {
  .product-name { display: none; }
  .sidebar { width: 72px; }
  .nav-section, .sidebar nav small, .sidebar nav a > span:last-child, .sidebar-footer { display: none; }
  .sidebar nav { padding: 12px 6px; }
  .sidebar nav a { justify-content: center; padding: 8px; border-left: 0; border-bottom: 3px solid transparent; }
  .sidebar nav a.active { border-bottom-color: var(--yellow); }
  main { margin-left: 72px; padding: 22px 18px 40px; }
  h1 { font-size: 28px; }
  table { display: block; overflow-x: auto; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li { border-left-width: 1px; }
}

@media (max-width: 560px) {
  .brandbar { height: 52px; padding: 0 14px; }
  .environment-bar { top: 52px; }
  .user { font-size: 0; }
  .user::after { content: "POC"; font-size: 11px; }
  .sidebar { top: 76px; }
  main { min-height: calc(100vh - 76px); }
  th { top: 76px; }
  .fields { grid-template-columns: 1fr; }
  #drawer { top: 76px; padding: 20px 16px; }
}
