@import url('/assets/forms.css');
@import url('/assets/finance.css');
.category-brand-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}
.category-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.order-danger-zone {
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding-top: 20px;
}
.button.danger {
  background: #b42318;
  border-color: #b42318;
  color: #fff;
}
.button.danger.secondary {
  background: #fff;
  color: #b42318;
  border-color: #e5b6b2;
}
.notice.deletion-warning {
  color: #7f231c;
  background: #fff7f6;
  border-color: #edc8c5;
  line-height: 1.7;
}
.support-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1100px;
}
.support-card .contact-value {
  font-size: 20px;
  overflow-wrap: anywhere;
  padding: 28px 0;
}
.contact-email {
  display: block;
}
.support-icon.email-icon {
  background: #f1eeee;
  color: #645f5d;
}
@media (max-width: 900px) {
  .support-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
  }
}
:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    'PingFang SC',
    'Microsoft YaHei',
    sans-serif;
  color: #31302e;
  background: #fff;
  font-size: 16px;
  --paper: #f6f5f4;
  --line: #e9e8e5;
  --muted: #787670;
  --blue: #0075de;
  --ink: #31302e;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a:hover {
  color: var(--blue);
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #0075de55;
  outline-offset: 3px;
}
.skip {
  position: fixed;
  top: -70px;
  left: 15px;
  background: #fff;
  padding: 12px;
  z-index: 100;
}
.skip:focus {
  top: 12px;
}
.topbar {
  height: 80px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 62px;
  padding: 0 36px;
  background: #fff;
}
.brand {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.8px;
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  color: #252523;
}
.brandmark {
  display: grid;
  place-items: center;
  background: #252523;
  color: white;
  border-radius: 8px;
  height: 34px;
  width: 34px;
  font-size: 29px;
  font-weight: 500;
}
.topbar nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  height: 100%;
}
.topbar nav a {
  height: 100%;
  display: flex;
  align-items: center;
  color: #77746f;
  position: relative;
}
.topbar nav .active {
  color: #252523;
  font-weight: 600;
}
.topbar nav .active:after {
  content: '';
  height: 2px;
  background: #31302e;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}
.top-actions {
  margin-left: auto;
  display: flex;
  gap: 20px;
  align-items: center;
}
.top-actions select {
  border: 0;
  background: transparent;
  font-size: 14px;
  max-width: 140px;
  padding: 8px;
}
.button {
  border: 1px solid #242423;
  background: #242423;
  color: white;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 12px 20px;
  font-weight: 500;
  font-size: 15px;
  white-space: nowrap;
  min-height: 44px;
  transition: background 0.15s;
}
.button:hover {
  background: #41413d;
  color: white;
}
.button.secondary {
  background: #fff;
  color: #45433f;
  border-color: #deddd9;
}
.button.secondary:hover {
  background: var(--paper);
  color: #161616;
}
.button.blue {
  background: var(--blue);
  border-color: var(--blue);
}
.button.blue:hover {
  background: #005bab;
}
.button.small {
  padding: 8px 14px;
  font-size: 14px;
  min-height: 36px;
}
.workspace {
  display: grid;
  grid-template-columns: 244px 1fr;
  min-height: calc(100vh - 80px);
}
.sidebar {
  background: var(--paper);
  border-right: 1px solid var(--line);
  padding: 39px 20px 24px;
  display: flex;
  flex-direction: column;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 1.3px;
  font-weight: 600;
  color: #92908a;
  margin-bottom: 18px;
}
.sidebar > .eyebrow {
  padding-left: 14px;
  letter-spacing: 1px;
}
.category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 5px;
  font-size: 14px;
  margin-bottom: 5px;
  min-height: 44px;
}
.category:hover {
  background: #efeeeb;
  color: #252523;
}
.category.selected {
  background: #e9e8e4;
  font-weight: 600;
  color: #242423;
}
.count {
  font-size: 12px;
  color: #898680;
  font-weight: 400;
}
.side-bottom {
  margin-top: auto;
  padding: 70px 14px 8px;
  color: #9b9790;
  font-size: 12px;
}
.sidebar-brand-mark {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.side-bottom p {
  margin: 10px 0;
}
.side-bottom a {
  display: block;
  font-size: 13px;
  margin-top: 16px;
  color: #6f6b64;
}
main {
  padding: 29px 52px 0;
  min-width: 0;
  width: 100%;
  max-width: 1530px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.breadcrumb {
  display: flex;
  gap: 13px;
  align-items: center;
  font-size: 13px;
  color: #8a877f;
  min-height: 25px;
}
.breadcrumb span {
  color: #c6c3bd;
}
.heading {
  display: flex;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-end;
  margin: 48px 0 28px;
}
.heading .eyebrow {
  margin: 0 0 10px;
}
h1 {
  font-size: 32px;
  letter-spacing: -1px;
  margin: 0 0 12px;
  color: #282725;
  line-height: 1.3;
}
h2 {
  font-size: 21px;
  letter-spacing: -0.4px;
  margin: 0 0 18px;
}
h3 {
  font-size: 17px;
  margin: 0 0 10px;
}
.title-count {
  font-size: 16px;
  font-weight: 400;
  color: #a19d95;
  margin-left: 14px;
  vertical-align: middle;
}
.muted {
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
  margin: 0;
}
.search {
  border: 1px solid #e3e1dc;
  border-radius: 6px;
  padding: 10px 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  color: #a29e96;
  width: 244px;
  margin-bottom: 5px;
}
.search input {
  border: 0;
  outline: 0 !important;
  width: 100%;
  font-size: 14px;
  color: #31302e;
  background: transparent;
}
.search input::placeholder {
  color: #a5a199;
}
.notice[hidden] {
  display: none;
}
.import-cost {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 16px;
}
.import-count {
  margin: 0 0 6px;
}
.import-cost-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 540px) {
  .import-cost-fields {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
.notice {
  border: 1px solid #e0e9ee;
  background: #f7fafc;
  color: #668195;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 25px;
  line-height: 1.6;
}
.table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.catalog {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.catalog thead {
  background: #fafaf9;
}
.catalog th {
  font-size: 12px;
  font-weight: 500;
  color: #97938c;
  padding: 15px 23px;
  border-bottom: 1px solid var(--line);
}
.catalog td {
  padding: 27px 23px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.catalog th:first-child {
  width: 53%;
}
.catalog tbody tr:hover {
  background: #fdfdfc;
}
.product-cell {
  display: flex;
  gap: 18px;
  align-items: center;
}
.product-icon {
  flex: none;
  width: 49px;
  height: 49px;
  background: #e9f0eb;
  border: 1px solid #dbe6df;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #487464;
  font-size: 28px;
  font-weight: 500;
  position: relative;
  letter-spacing: -2px;
}
.product-icon span {
  font-size: 14px;
  position: absolute;
  right: 5px;
  top: 1px;
  letter-spacing: 0;
}
.product-name {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.2px;
}
.product-meta {
  margin-top: 9px;
  display: flex;
  gap: 12px;
  align-items: center;
  color: #939089;
  font-size: 13px;
}
.tag {
  display: inline-flex;
  font-size: 11px;
  font-weight: 500;
  background: #f2f1ee;
  color: #8c887f;
  padding: 2px 6px;
  border-radius: 3px;
  line-height: 1.5;
}
.price {
  font-size: 21px;
  font-weight: 600;
  color: #34322e;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  letter-spacing: -0.5px;
}
.price small {
  font-size: 13px;
  margin: 0 2px;
  font-weight: 400;
}
.stock {
  font-size: 13px;
  color: #9b9486;
  white-space: nowrap;
}
.stock.available {
  color: #47826a;
}
.table-foot {
  padding: 14px 23px;
  font-size: 12px;
  color: #9a968e;
  display: flex;
  justify-content: space-between;
  background: #fdfdfc;
}
.flow {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 32px 4px;
  font-size: 12px;
  color: #8b887f;
}
.flow span {
  display: flex;
  gap: 9px;
  align-items: center;
}
.flow b {
  font-weight: 500;
  font-size: 11px;
  color: #9a968c;
  background: #f4f3f0;
  padding: 4px 6px;
  border-radius: 4px;
}
.flow i {
  font-style: normal;
  color: #c0bcb3;
}
footer {
  border-top: 1px solid var(--line);
  margin-top: auto;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  color: #a49f95;
  font-size: 12px;
  gap: 20px;
}
#toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  background: #2f302b;
  color: white;
  box-shadow: 0 4px 20px #0002;
  border-radius: 8px;
  padding: 12px 20px;
  z-index: 100;
  max-width: calc(100vw - 32px);
  display: none;
}
#toast.show {
  display: block;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  width: min(680px, calc(100vw - 32px));
  color: var(--ink);
  max-height: 90vh;
  box-shadow: 0 18px 60px #0002;
}
dialog::backdrop {
  background: #20202055;
}
dialog .modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
dialog h2 {
  margin: 0;
}
.icon-button {
  border: 0;
  background: transparent;
  border-radius: 4px;
  padding: 8px;
  font-size: 20px;
  min-width: 40px;
  min-height: 40px;
  color: #777;
}
.empty {
  text-align: center;
  padding: 64px 20px;
  color: #979189;
}
.empty h2 {
  color: #45413b;
}
.spinner {
  padding: 100px 0;
  text-align: center;
  color: #9a948b;
}
.nowrap {
  white-space: nowrap;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (min-width: 1550px) {
  main {
    padding-left: 70px;
    padding-right: 70px;
  }
  .workspace {
    grid-template-columns: 260px 1fr;
  }
}
@media (max-width: 1100px) {
  .topbar {
    gap: 30px;
    padding: 0 24px;
  }
  .workspace {
    grid-template-columns: 210px 1fr;
  }
  main {
    padding: 25px 28px 0;
  }
  .catalog td,
  .catalog th {
    padding-left: 16px;
    padding-right: 16px;
  }
  .topbar nav {
    gap: 22px;
  }
  .search {
    width: 210px;
  }
}
@media (max-width: 800px) {
  .topbar {
    height: auto;
    min-height: 72px;
    flex-wrap: wrap;
    padding: 18px 20px 0;
    gap: 15px;
  }
  .brand {
    font-size: 20px;
  }
  .top-actions {
    gap: 8px;
  }
  .top-actions select {
    max-width: 108px;
    font-size: 12px;
  }
  .topbar nav {
    order: 3;
    width: 100%;
    height: 43px;
    gap: 28px;
  }
  .workspace {
    display: block;
    min-height: calc(100vh - 115px);
  }
  .sidebar {
    padding: 13px 20px;
    display: flex;
    flex-direction: row;
    gap: 8px;
    overflow: auto;
    border-bottom: 1px solid var(--line);
    border-right: 0;
  }
  .sidebar > .eyebrow,
  .side-bottom {
    display: none;
  }
  .category {
    padding: 8px 14px;
    gap: 20px;
    margin: 0;
    white-space: nowrap;
    font-size: 13px;
  }
  .category.selected {
    background: #e8e7e3;
  }
  main {
    padding: 22px 20px 0;
    min-height: calc(100vh - 185px);
  }
  .heading {
    margin: 28px 0 22px;
    display: block;
  }
  h1 {
    font-size: 28px;
  }
  .search {
    margin-top: 23px;
    width: 100%;
  }
  .catalog .stock-column {
    display: none;
  }
  .catalog th:first-child {
    width: auto;
  }
  .catalog td,
  .catalog th {
    padding: 18px 12px;
  }
  .catalog td:last-child .button {
    font-size: 12px;
    padding: 8px;
    min-height: 38px;
  }
  .product-cell {
    gap: 11px;
  }
  .product-icon {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }
  .product-name {
    font-size: 14px;
  }
  .product-meta {
    font-size: 11px;
    gap: 6px;
    flex-wrap: wrap;
  }
  .price {
    font-size: 18px;
  }
  .price small {
    font-size: 11px;
  }
  .price small:last-child {
    display: none;
  }
  .flow {
    gap: 10px;
    justify-content: space-between;
    align-items: flex-start;
    line-height: 1.6;
  }
  .flow span {
    display: block;
    max-width: 30%;
  }
  .flow b {
    display: block;
    width: max-content;
    margin-bottom: 8px;
  }
  .flow i {
    margin-top: 4px;
  }
  .table-foot {
    padding: 12px;
    font-size: 11px;
  }
  footer {
    font-size: 11px;
    padding: 22px 0;
  }
  .notice {
    font-size: 12px;
    margin-bottom: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

.auth-short {
  display: none;
}
@media (max-width: 520px) {
  .topbar {
    padding: 16px 16px 0;
    gap: 10px;
  }
  .brand {
    font-size: 17px;
    letter-spacing: -0.6px;
    gap: 8px;
  }
  .brandmark {
    height: 28px;
    width: 28px;
    font-size: 24px;
  }
  .top-actions {
    gap: 6px;
  }
  .top-actions select {
    width: 78px;
    max-width: 78px;
    padding: 7px 0;
    font-size: 11px;
  }
  .top-actions .button {
    padding: 8px 10px;
    font-size: 12px;
  }
  .auth-full {
    display: none;
  }
  .auth-short {
    display: inline;
  }
  .topbar nav {
    height: 42px;
    gap: 26px;
  }
  .catalog thead {
    display: none;
  }
  .catalog,
  .catalog tbody {
    display: block;
  }
  .catalog tbody tr {
    display: grid;
    grid-template-columns: 1fr auto;
    border-bottom: 1px solid var(--line);
  }
  .catalog tbody tr:last-child {
    border-bottom: 0;
  }
  .catalog td {
    border: 0;
    display: block;
    padding: 10px 16px 18px;
  }
  .catalog td:first-child {
    grid-column: 1/-1;
    padding: 18px 16px 10px;
  }
  .catalog td:nth-child(2) {
    grid-column: 1;
    align-self: center;
    padding-left: 66px;
  }
  .catalog td:last-child {
    grid-column: 2;
  }
  .catalog .stock-column {
    display: none;
  }
  .product-name {
    font-size: 15px;
    line-height: 1.5;
  }
  .product-meta {
    font-size: 12px;
    margin-top: 5px;
  }
  .price {
    font-size: 19px;
  }
  .catalog td:last-child .button {
    min-height: 40px;
    padding: 8px 12px;
  }
  .table-foot {
    flex-wrap: wrap;
    gap: 7px;
  }
  .notice {
    font-size: 12px;
  }
  main {
    padding-top: 18px;
  }
  .heading {
    margin-top: 23px;
  }
  footer {
    flex-wrap: wrap;
  }
  .copy-nav {
    flex-wrap: wrap;
    gap: 15px;
  }
}

.store-brand-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex: 0 0 auto;
}

@font-face {
  font-family: 'Store Geist';
  src: url('/assets/fonts/geist.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}
.brand-wordmark {
  font-family: 'Store Geist', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.brand-slash {
  display: inline-block;
  position: relative;
  margin-right: 0.055em;
  transform: skewX(-14deg);
  transform-origin: center center;
}
