@font-face {
  font-family: Inter;
  src: url("Inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --ink: #152f36;
  --muted: #687c80;
  --green: #087e78;
  --green-dark: #075e5c;
  --pale: #e6f4ef;
  --line: #dfe7e6;
  --bg: #f3f6f5;
  --gold: #ca9b40;
  --red: #ae3d33;
  --shadow: 0 14px 60px #14302e1a;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font:
    14px/1.5 Inter,
    Arial,
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button,
a {
  transition:
    background 0.15s,
    color 0.15s;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #83c8c1;
  outline-offset: 3px;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #8bc9c4;
  outline-offset: 1px;
}
a {
  color: var(--green);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  padding: 9px 15px;
  border-radius: 8px;
  font-weight: 550;
  white-space: nowrap;
}
button:hover {
  background: #f0f6f4;
}
.primary {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.primary:hover {
  background: var(--green-dark);
}
.quiet {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}
.danger {
  color: var(--red);
}
.small {
  padding: 6px 10px;
  font-size: 12px;
}
.text-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--green);
  text-align: left;
}
.text-button:hover {
  background: none;
  text-decoration: underline;
}
.muted {
  color: var(--muted);
}
.tiny {
  font-size: 12px;
}
.strong {
  font-weight: 650;
}
.tag {
  display: inline-block;
  background: var(--pale);
  color: #176658;
  border-radius: 5px;
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.tag.amber {
  background: #fff2d7;
  color: #88621f;
}
.tag.gray {
  background: #edf1f2;
  color: #65767a;
}
.money {
  font-variant-numeric: tabular-nums;
}
.empty {
  padding: 60px 25px;
  text-align: center;
  color: var(--muted);
}
.empty h3 {
  color: var(--ink);
}
.brand-mark {
  width: 39px;
  height: 39px;
  border-radius: 10px;
  background: #5cd5b7;
  color: #123a3c;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -2px;
  display: grid;
  place-items: center;
  padding-right: 3px;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
}
.brand strong {
  display: block;
  font-size: 17px;
  letter-spacing: -0.5px;
}
.brand span {
  font-size: 11px;
  color: #9db5b8;
}
.shell {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 30px 18px 20px;
  background: #102c34;
  color: white;
  display: flex;
  flex-direction: column;
  z-index: 3;
}
.sidebar .brand {
  padding: 0 9px 35px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.nav button {
  background: none;
  color: #b4c8cb;
  border: none;
  text-align: left;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav button:hover {
  background: #1c3c44;
  color: white;
}
.nav button.active {
  background: #245048;
  color: #b5f3d9;
}
.nav-icon {
  width: 19px;
  font-size: 18px;
  text-align: center;
}
.nav-count {
  margin-left: auto;
  background: #4a716b;
  border-radius: 5px;
  font-size: 11px;
  padding: 1px 6px;
  color: white;
}
.sidebar-foot {
  margin-top: auto;
  border-top: 1px solid #ffffff1c;
  padding-top: 20px;
}
.user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 9px 12px;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #33515a;
  display: grid;
  place-items: center;
  font-size: 12px;
}
.sidebar .quiet {
  color: #b4c8cb;
}
.main {
  padding: 0 36px 45px;
  min-width: 0;
}
.topbar {
  height: 74px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  margin-bottom: 30px;
  font-size: 12px;
  color: var(--muted);
}
.topbar .status {
  display: flex;
  gap: 8px;
  align-items: center;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3aa58c;
}
.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 25px;
}
.page-head h1 {
  font-size: 31px;
  line-height: 1.2;
  margin: 0 0 8px;
  font-weight: 650;
  letter-spacing: -1.2px;
}
.page-head p {
  margin: 0;
  color: var(--muted);
}
.button-row {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 21px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.stat-label {
  font-size: 12px;
  color: var(--muted);
}
.stat-value {
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.7px;
}
.stat-symbol {
  width: 35px;
  height: 35px;
  background: #eef5f2;
  color: var(--green);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 17px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
}
.card.pad {
  padding: 24px;
}
.card h2 {
  font-size: 18px;
  letter-spacing: -0.4px;
  margin: 0 0 7px;
}
.card h3 {
  font-size: 15px;
  margin: 0 0 8px;
}
.card p {
  margin: 0 0 16px;
}
.searchbar {
  padding: 20px 20px 0;
  display: flex;
  gap: 10px;
}
.search {
  position: relative;
  flex: 1;
}
.search input {
  padding: 12px 15px 12px 39px;
  background: #f5f8f7;
  font-size: 14px;
  min-width: 180px;
}
.search span {
  position: absolute;
  left: 14px;
  top: 10px;
  font-size: 20px;
  color: var(--muted);
}
input,
select,
textarea {
  width: 100%;
  color: var(--ink);
  border: 1px solid #d7e1df;
  border-radius: 7px;
  padding: 9px 10px;
  background: white;
}
input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
  margin: 0;
  cursor: pointer;
}
input[type="number"] {
  font-variant-numeric: tabular-nums;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 550;
  color: #506a70;
}
label input,
label select,
label textarea {
  display: block;
  margin-top: 6px;
}
label.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  font-size: 13px;
}
label.check input {
  margin: 0;
  flex-shrink: 0;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  padding: 16px 20px 18px;
}
.filters label {
  flex: 1;
  min-width: 130px;
}
.filters .year {
  max-width: 110px;
  min-width: 85px;
}
.filters .compact {
  min-width: 90px;
  max-width: 130px;
}
.filter-hint {
  font-size: 11px;
  color: var(--muted);
  padding: 0 20px 15px;
}
.table-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fbfcfc;
  gap: 12px;
}
.table-toolbar .button-row {
  gap: 5px;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
th {
  font-weight: 550;
  color: #6b7d81;
  text-align: left;
  font-size: 11px;
  background: #fafbfb;
  white-space: nowrap;
  padding: 12px 13px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 15px 13px;
  border-bottom: 1px solid #edf1f0;
  vertical-align: middle;
}
tbody tr:hover {
  background: #f7faf9;
}
tr.chosen {
  background: #f0f8f4;
}
td:first-child,
th:first-child {
  padding-left: 20px;
  width: 42px;
}
td:last-child,
th:last-child {
  padding-right: 20px;
}
.part-button {
  font-weight: 600;
  font-size: 12px;
  color: #15576a;
  white-space: nowrap;
}
.name-cell {
  min-width: 190px;
  max-width: 300px;
}
.name-cell .sub {
  font-size: 10px;
  margin-top: 3px;
  color: #849391;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.model-cell {
  max-width: 170px;
  min-width: 125px;
  font-size: 11px;
}
.fitment-level {
  margin-top: 5px;
  font-size: 10px;
}
.numeric {
  text-align: right;
  white-space: nowrap;
  font-size: 13px;
}
.qty {
  width: 72px;
  padding: 6px;
}
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}
.pager select {
  width: 76px;
  padding: 5px 8px;
}
.selection-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #e7f3ef;
  border: 1px solid #c4e0d5;
  padding: 12px 18px;
  border-radius: 9px;
  margin-bottom: 18px;
}
.selection-bar strong {
  color: #196953;
}
.selection-bar .button-row {
  margin-left: auto;
}
.price-mode {
  font-size: 10px;
  color: var(--muted);
  text-transform: capitalize;
  margin-top: 3px;
}
.rule-summary {
  padding: 19px 22px;
  background: #ebf5f0;
  display: flex;
  gap: 20px;
  align-items: center;
}
.rule-summary h3 {
  margin: 0 0 3px;
}
.rule-summary p {
  font-size: 12px;
  margin: 0;
  color: #54716a;
}
.rule-summary .button-row {
  margin-left: auto;
}
.grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid .wide {
  grid-column: 1/-1;
}
.form-stack {
  display: grid;
  gap: 16px;
}
.settings-column {
  max-width: 960px;
}
.notice {
  padding: 12px 15px;
  background: #fff4df;
  border: 1px solid #f0ddb6;
  color: #735b2b;
  border-radius: 8px;
  font-size: 12px;
  margin: 14px 0;
}
.info {
  background: #eef6f8;
  border-color: #d3e6eb;
  color: #3e6876;
}
.list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.list-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 23px;
}
.list-card h2 {
  font-size: 17px;
  margin: 0 0 8px;
}
.list-card p {
  color: var(--muted);
  margin: 0 0 24px;
  font-size: 12px;
}
.list-card .button-row {
  margin-top: 10px;
}
.history-row {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.history-row p {
  margin: 3px 0 0;
  font-size: 12px;
  color: var(--muted);
}
dialog {
  border: 0;
  border-radius: 15px;
  padding: 0;
  width: min(780px, calc(100% - 28px));
  max-height: 90vh;
  box-shadow: var(--shadow);
  color: var(--ink);
}
dialog::backdrop {
  background: #102c3480;
  backdrop-filter: blur(2px);
}
.modal-head {
  padding: 22px 25px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: white;
  z-index: 2;
}
.modal-head h2 {
  font-size: 21px;
  margin: 0;
  letter-spacing: -0.4px;
}
.modal-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.close {
  border: 0;
  font-size: 21px;
  line-height: 1;
  padding: 6px 10px;
  color: var(--muted);
}
.modal-body {
  padding: 22px 25px;
}
.modal-actions {
  padding: 17px 25px;
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  border-top: 1px solid var(--line);
  background: #f9fbfa;
  position: sticky;
  bottom: 0;
}
.detail-prices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}
.detail-price {
  background: #f2f7f5;
  padding: 16px;
  border-radius: 8px;
}
.detail-price strong {
  display: block;
  font-size: 26px;
  margin: 3px 0;
}
.application {
  padding: 15px 0;
  border-top: 1px solid var(--line);
}
.application h4 {
  margin: 0 0 5px;
  font-size: 13px;
}
.application p {
  font-size: 12px;
  margin: 5px 0;
  color: #607579;
}
.application a {
  font-size: 12px;
}
.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  margin: 18px 0;
}
.preview-table {
  max-height: 350px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.preview-count {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 12px;
}
.form-error {
  color: var(--red);
  font-size: 13px;
  min-height: 20px;
  margin: 8px 0;
}
.form-success {
  color: var(--green);
  font-size: 13px;
}
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-story {
  background: #102c34;
  color: white;
  padding: 60px 11%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
}
.auth-story h1 {
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -2px;
  font-weight: 550;
  margin: 0 0 24px;
}
.auth-story p {
  color: #acc2c4;
  max-width: 360px;
  font-size: 16px;
  line-height: 1.7;
}
.auth-story .brand {
  margin-bottom: 70px;
}
.auth-lines {
  border-top: 1px solid #ffffff25;
  margin-top: 50px;
}
.auth-lines div {
  padding: 15px 0;
  border-bottom: 1px solid #ffffff25;
  color: #bbcece;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
}
.auth-form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 35px;
}
.auth-form {
  width: 100%;
  max-width: 360px;
}
.auth-form h2 {
  font-size: 28px;
  letter-spacing: -0.8px;
  margin: 0 0 10px;
}
.auth-form > p {
  color: var(--muted);
  margin-bottom: 29px;
}
.auth-form form {
  display: grid;
  gap: 18px;
}
.auth-form .primary {
  padding: 12px;
}
.auth-form .brand {
  display: none;
}
.auth-footer {
  font-size: 11px;
  color: #6d8589;
}
.loading-screen {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 15px);
  background: #183e3d;
  color: white;
  padding: 13px 22px;
  border-radius: 9px;
  box-shadow: var(--shadow);
  max-width: 90vw;
  opacity: 0;
  transition: all 0.2s;
  pointer-events: none;
  z-index: 20;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #d0ddd7;
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.busy {
  opacity: 0.55;
  pointer-events: none;
}
.scroll-note {
  font-size: 11px;
  color: var(--muted);
  display: none;
}
@media (min-width: 1550px) {
  .main {
    padding-left: 48px;
    padding-right: 48px;
  }
  .name-cell {
    max-width: 390px;
  }
}
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 185px minmax(0, 1fr);
  }
  .main {
    padding: 0 22px 35px;
  }
  .sidebar {
    padding-left: 12px;
    padding-right: 12px;
  }
  .page-head h1 {
    font-size: 27px;
  }
  .stat {
    padding: 15px;
  }
  .stat-value {
    font-size: 22px;
  }
  .model-cell {
    display: none;
  }
  .grid-two {
    grid-template-columns: 1fr;
  }
  .topbar {
    height: 62px;
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
    padding-bottom: 77px;
  }
  .sidebar {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    height: 67px;
    padding: 6px 8px;
    display: block;
  }
  .sidebar .brand,
  .sidebar-foot {
    display: none;
  }
  .nav {
    flex-direction: row;
    justify-content: space-around;
    gap: 3px;
  }
  .nav button {
    font-size: 10px;
    flex: 1;
    flex-direction: column;
    gap: 0;
    padding: 5px 4px;
    position: relative;
    line-height: 1.7;
  }
  .nav-icon {
    font-size: 17px;
  }
  .nav-count {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0 4px;
    font-size: 9px;
  }
  .main {
    padding: 0 14px 20px;
  }
  .topbar {
    margin-bottom: 22px;
    font-size: 10px;
    height: 53px;
  }
  .topbar .status {
    gap: 5px;
  }
  .page-head {
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
  }
  .page-head h1 {
    font-size: 27px;
  }
  .page-head p {
    font-size: 12px;
  }
  .page-head .button-row {
    width: 100%;
  }
  .page-head .button-row button {
    flex: 1;
  }
  .stat-row {
    gap: 8px;
    margin-bottom: 18px;
  }
  .stat {
    padding: 12px;
    display: block;
  }
  .stat-label {
    font-size: 10px;
  }
  .stat-value {
    font-size: 20px;
    margin-top: 5px;
  }
  .stat-symbol {
    display: none;
  }
  .searchbar {
    padding: 14px 14px 0;
  }
  .search input {
    font-size: 13px;
  }
  .filters {
    padding: 14px;
    gap: 9px;
  }
  .filters label {
    min-width: 120px;
  }
  .filters .year {
    max-width: 100%;
    min-width: 85px;
  }
  .filters .compact {
    min-width: 90px;
    max-width: 100%;
  }
  .filter-hint {
    padding: 0 14px 12px;
  }
  .table-toolbar {
    padding: 10px 14px;
    flex-wrap: wrap;
    font-size: 12px;
  }
  .table-toolbar .button-row {
    width: 100%;
    justify-content: flex-end;
  }
  .name-cell {
    min-width: 160px;
  }
  .name-cell .sub {
    max-width: 165px;
  }
  td,
  th {
    padding: 13px 10px;
  }
  .numeric {
    font-size: 12px;
  }
  .pager {
    padding: 13px 14px;
    flex-wrap: wrap;
  }
  .selection-bar {
    flex-wrap: wrap;
    font-size: 12px;
  }
  .selection-bar .button-row {
    margin-left: 0;
    width: 100%;
  }
  .selection-bar button {
    font-size: 11px;
  }
  .rule-summary {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 17px;
  }
  .rule-summary .button-row {
    margin-left: 0;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .wide {
    grid-column: auto;
  }
  .card.pad {
    padding: 18px;
  }
  .modal-body {
    padding: 18px;
  }
  .modal-head {
    padding: 19px;
  }
  .modal-actions {
    padding: 15px;
  }
  .modal-head h2 {
    font-size: 18px;
  }
  .auth-shell {
    display: block;
  }
  .auth-story {
    display: none;
  }
  .auth-form-wrap {
    min-height: 100vh;
    padding: 25px;
  }
  .auth-form .brand {
    display: flex;
    margin-bottom: 60px;
  }
  .auth-form .brand span {
    color: var(--muted);
  }
  .scroll-note {
    display: block;
  }
}
/* Accessible form states and comfortable task text. */
[hidden] {
  display: none !important;
}
body {
  font-size: 16px;
}
label {
  font-size: 14px;
}
.small {
  font-size: 13px;
}
table {
  font-size: 14px;
}
th {
  font-size: 12px;
}
.part-button {
  font-size: 14px;
}
.model-cell {
  font-size: 13px;
}
.fitment-level,
.name-cell .sub {
  font-size: 12px;
}
.filter-hint {
  font-size: 12px;
}
.numeric {
  font-size: 14px;
}
.price-mode {
  font-size: 12px;
}
.tiny {
  font-size: 13px;
}
.sidebar .brand span {
  font-size: 11px;
}
.topbar {
  font-size: 12px;
}
.filters .year {
  max-width: 115px;
}
.auth-story .brand span {
  font-size: 12px;
}
.auth-footer {
  font-size: 12px;
}
.auth-lines div {
  font-size: 14px;
}
.modal-head p,
.application p,
.application a {
  font-size: 14px;
}
.tag {
  font-size: 12px;
}
.form-error {
  font-size: 14px;
}
.notice {
  font-size: 14px;
}
.rule-summary p {
  font-size: 14px;
}
.nav button {
  font-size: 14px;
}
.sidebar .brand {
  padding-left: 4px;
  padding-right: 0;
}
.brand span {
  line-height: 1.3;
}
@media (max-width: 760px) {
  body {
    font-size: 15px;
  }
  .nav button {
    font-size: 11px;
  }
  .page-head p {
    font-size: 14px;
  }
  .stat-label {
    font-size: 12px;
  }
  .filters label {
    font-size: 13px;
  }
  .filter-hint {
    font-size: 12px;
  }
  .numeric {
    font-size: 14px;
  }
  .table-toolbar {
    font-size: 14px;
  }
  .topbar {
    font-size: 11px;
  }
  .table-toolbar .button-row {
    flex-wrap: wrap;
  }
  .modal-body .checkbox-grid {
    grid-template-columns: 1fr;
  }
  .stat-value {
    font-size: 21px;
  }
  .selection-bar {
    font-size: 14px;
  }
}
