:root {
  color-scheme: light;
  --ink: #171721;
  --muted: #666673;
  --paper: #f6f6f8;
  --card: white;
  --line: #e4e3e9;
  --accent: #cd0849;
  --shell: 32rem;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font:
    16px/1.45 -apple-system,
    BlinkMacSystemFont,
    "Helvetica Neue",
    Arial,
    sans-serif;
  color: var(--ink);
  background: white;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.shell {
  width: min(100%, var(--shell));
  min-height: 100dvh;
  margin: auto;
  background: var(--paper);
}
header,
nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, var(--shell));
  z-index: 5;
  display: flex;
  align-items: center;
  background: #fff;
}
header {
  top: 0;
  height: calc(59px + var(--safe-top));
  padding: var(--safe-top) 18px 0;
  border-bottom: 1px solid var(--line);
  gap: 10px;
}
.brand {
  display: grid;
  place-items: center;
}
.brand img {
  width: 73px;
  height: 34px;
  object-fit: contain;
}
.division {
  font-size: 0.77rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 750;
  border-left: 1px solid var(--line);
  padding-left: 12px;
}
.gear {
  margin-left: auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--paper);
  display: grid;
  place-items: center;
}
.ico {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.shell main {
  padding: calc(80px + var(--safe-top)) 16px calc(88px + var(--safe-bottom));
  min-width: 0;
}
nav {
  bottom: 0;
  padding: 5px 8px calc(5px + var(--safe-bottom));
  border-top: 1px solid var(--line);
  justify-content: space-around;
}
nav a {
  min-height: 49px;
  flex: 1;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 3px;
  font-size: 0.74rem;
  line-height: 1.2;
  font-weight: 680;
  text-decoration: none;
  color: var(--muted);
}
nav a.active {
  color: var(--accent);
}
nav a.active .ico {
  stroke-width: 2.5;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.1;
  letter-spacing: -0.043em;
}
h1 {
  font-size: clamp(1.95rem, 7.8vw, 2.65rem);
  font-weight: 770;
}
h2 {
  font-size: 1.2rem;
}
h3 {
  font-size: 1.03rem;
}
.heading,
.row,
.sectionhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.heading {
  margin-bottom: 17px;
}
.sectionhead {
  margin: 20px 0 9px;
}
.micro,
.kicker {
  font-size: 0.73rem;
  font-weight: 730;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}
.kicker,
.meta,
.sub,
.help {
  color: var(--muted);
}
.meta,
.help,
.sub {
  font-size: 0.875rem;
  line-height: 1.45;
}
.help {
  overflow-wrap: anywhere;
}
.kicker {
  margin-bottom: 5px;
}
.card,
.empty,
.stat {
  background: var(--card);
  border-radius: 16px;
  border: 1px solid var(--line);
}
.card,
.empty {
  padding: 18px;
  margin-bottom: 12px;
}
.stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}
.stack > .card {
  margin-bottom: 0;
}
.card h2:not(:last-child) {
  margin-bottom: 10px;
}
.card.stack h2 {
  margin-bottom: 0;
}
.hero {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  padding: 18px 20px;
  color: white;
  background: linear-gradient(112deg, #271422, #720d38 64%, #be1852);
  border-radius: 16px;
}
.hero:after {
  content: "";
  position: absolute;
  inset: 0 0 0 48%;
  z-index: -1;
  background: repeating-linear-gradient(
    123deg,
    transparent 0 13px,
    #ffffff14 13px 15px
  );
  mask-image: linear-gradient(90deg, transparent, black);
}
.hero .micro {
  color: #ffd7e6;
}
.hero .big {
  display: block;
  font-size: 2.55rem;
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: -0.065em;
  font-variant-numeric: tabular-nums;
  margin: 4px 0 7px;
}
.hero .sub {
  color: #f6dae6;
}
.hero + .card {
  margin-top: 12px;
}
.search {
  margin: 16px 0 9px;
}
.chips {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.chips select {
  max-width: 100%;
  margin-left: auto;
}
.btn,
.minor,
.back,
.pill,
.copy,
.text-btn {
  border: 0;
  font: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-decoration: none;
  font-weight: 670;
}
.btn,
.minor,
.copy {
  border-radius: 11px;
  min-height: 44px;
  padding: 10px 15px;
}
.btn {
  background: var(--ink);
  color: white;
}
.btn.accent {
  background: var(--accent);
}
.heading .btn {
  min-height: 40px;
  padding: 8px 13px;
}
.minor,
.copy {
  background: #f0eff3;
}
.text-btn,
.back {
  background: transparent;
  padding: 0;
  color: var(--accent);
}
.text-btn {
  min-height: 30px;
}
.back {
  font-size: 0.88rem;
  color: var(--muted);
  justify-content: flex-start;
  min-height: 35px;
  margin-bottom: 7px;
}
.back svg {
  width: 15px;
}
.full {
  width: 100%;
}
.pill {
  min-height: 36px;
  border-radius: 20px;
  padding: 6px 12px;
  color: var(--muted);
  background: transparent;
  font-size: 0.84rem;
}
.pill.on {
  background: var(--ink);
  color: white;
}
.items {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
}
.item {
  width: 100%;
  min-width: 0;
  background: #fff;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) max-content;
  gap: 9px;
  align-items: center;
  min-height: 62px;
  padding: 7px 10px;
  text-decoration: none;
}
.itembody {
  min-width: 0;
}
.itembody strong,
.itembody .meta,
.truncate {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.itembody strong {
  font-size: 0.91rem;
  line-height: 1.35;
}
.item .meta {
  font-size: 0.75rem;
}
.item .tr {
  font-variant-numeric: tabular-nums;
}
.tr {
  text-align: right;
}
.tile {
  width: 52px;
  height: 43px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: #f4f4f6;
  color: #83828b;
}
.tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 720;
  line-height: 1.25;
  color: #84521b;
  background: #fff0d6;
  padding: 3px 6px;
  border-radius: 5px;
}
.tag.listed {
  background: #e8eafc;
  color: #4348a7;
}
.tag.sold {
  background: #dcf4e9;
  color: #1a6350;
}
.empty {
  text-align: center;
  padding: 25px 15px;
}
.empty .tile {
  margin: 0 auto 12px;
}
.empty p {
  margin: 7px 0 12px;
}
input,
select,
textarea {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid #d5d4dd;
  background: #fff;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 1rem;
}
label {
  display: grid;
  gap: 5px;
  min-width: 0;
  font-size: 0.86rem;
  font-weight: 650;
}
.pair,
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.stats {
  margin-top: 12px;
}
.stat {
  padding: 13px;
}
.stat strong,
.bigprice {
  display: block;
  font-size: 1.62rem;
  font-weight: 730;
  letter-spacing: -0.06em;
}
.line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.line:last-child {
  border: 0;
}
.line span {
  color: var(--muted);
}
.line b {
  text-align: right;
}
.card .help {
  margin-top: 8px;
}
.wrap {
  overflow-wrap: anywhere;
}
.top-space,
.source {
  margin-top: 10px;
}
.smalllink {
  font-weight: 650;
  font-size: 0.86rem;
}
.sectionhead .micro {
  color: var(--muted);
}
.error,
.notice {
  font-size: 0.9rem;
  background: #fff0f2;
  color: #8e173b;
  border-radius: 8px;
  padding: 11px;
}
.notice {
  background: #edf5ee;
  color: #375744;
}
#toast {
  position: fixed;
  bottom: calc(75px + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%);
  max-width: 90%;
  z-index: 8;
  background: #211e28;
  color: white;
  border-radius: 10px;
  padding: 10px 15px;
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
}
.check input {
  width: 20px;
  height: 20px;
  min-height: 20px;
  accent-color: var(--accent);
}
.catalog-row {
  display: flex;
  align-items: center;
  gap: 13px;
}
.catalog-row .tile {
  width: 92px;
  height: 62px;
}
.product-frame .tile {
  width: 100%;
  height: 145px;
  margin-bottom: 14px;
}
.product-frame .tile svg {
  width: 36px;
}
.login-art {
  background: linear-gradient(140deg, #eee7ee, #e5b4c7);
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}
.login-art img {
  width: 100%;
  height: clamp(160px, 35dvh, 290px);
  display: block;
  object-fit: contain;
  mix-blend-mode: multiply;
  transform: rotate(-8deg) scale(1.08);
}
.login h1 {
  font-size: clamp(2.6rem, 12vw, 4rem);
  margin: 18px 0;
  letter-spacing: -0.075em;
}
.login h1 span {
  color: var(--accent);
}
.login .btn {
  min-height: 48px;
}
.login input {
  background: #fff;
  min-height: 48px;
}
#guideResults {
  scroll-margin-top: calc(77px + var(--safe-top));
}
.catalog-row .meta:empty {
  display: none;
}
@media (min-width: 540px) {
  body {
    background: #e8e8ed;
  }
  .shell {
    box-shadow: 0 0 40px #2727380d;
  }
}
@media (max-width: 350px) {
  .shell main {
    padding-inline: 10px;
  }
  .item {
    grid-template-columns: 43px minmax(0, 1fr) max-content;
    gap: 6px;
  }
  .item .tile {
    width: 43px;
  }
  .pill {
    padding-inline: 8px;
  }
  .chips select {
    margin-left: 0;
  }
}
.size-row {
  padding: 9px 0;
}
.size-row .row span {
  font-size: 0.83rem;
  text-align: right;
}
.size-track {
  height: 5px;
  border-radius: 4px;
  background: #ededf0;
  position: relative;
  margin: 7px 3px;
}
.size-track i {
  height: 100%;
  position: absolute;
  background: #d78ca7;
  border-radius: 4px;
}
.size-track b {
  position: absolute;
  height: 13px;
  width: 3px;
  top: -4px;
  transform: translateX(-50%);
  background: var(--ink);
  border-radius: 1px;
}
header .refresh {
  margin-left: auto;
  border: 0;
}
header #settingsLink {
  margin-left: 0;
}
.stock-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 3px;
}
.stock-filters .pill {
  white-space: nowrap;
  padding-inline: clamp(5px, 1.8vw, 11px);
  font-size: 0.8rem;
}
.stock-filters select,
.sold-filter select {
  width: 100%;
  min-width: 0;
  font-size: 0.81rem;
  padding: 8px 3px;
  min-height: 37px;
}
.sold-filter {
  margin-top: 14px;
}
.sold-filter select {
  padding-inline: 12px;
}
.item {
  display: flex;
  align-items: center;
  gap: 7px;
}
.item-main {
  min-width: 0;
  flex: 1;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  text-decoration: none;
}
.item .tile {
  width: 48px;
  height: 44px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
}
.item .tile img {
  mix-blend-mode: normal;
}
.item-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  font-size: clamp(0.65rem, 2.7vw, 0.76rem);
  color: var(--muted);
}
.item-meta .code {
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.item-meta .amount {
  font-weight: 655;
  color: var(--ink);
  flex: none;
}
.list-now {
  align-self: center;
  display: grid;
  place-items: center;
  flex: none;
  height: 44px;
  border-radius: 8px;
  background: #007782;
  color: #fff;
  text-decoration: none;
  font-size: 0.64rem;
  letter-spacing: 0.04em;
  font-weight: 800;
  padding: 0 8px;
}
.product-card {
  min-width: 0;
}
.product-card h2 {
  font-size: 17px;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.35;
}
.product-frame {
  border-radius: 12px;
  background: #f4f4f5;
  border: 1px solid #dbdbdf;
  width: 100%;
  margin-bottom: 13px;
}
.product-frame .tile {
  width: 100%;
  height: clamp(145px, 44vw, 205px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  margin: 0;
  padding: 0;
}
.product-frame .tile img {
  width: 90%;
  height: 90%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  display: block;
  flex: none;
}
.price-panel {
  border: 1px solid #dfd6e0;
  border-radius: 16px;
  background: linear-gradient(140deg, #fff 52%, #fff0f5);
  padding: 19px;
  margin: 0 0 12px;
}
.price-panel > .kicker {
  color: #a41449;
}
.price-panel > strong {
  display: block;
  font-size: 2rem;
  color: #41172b;
  letter-spacing: -0.05em;
  line-height: 1.2;
}
.price-panel .help {
  margin: 8px 0;
}
.price-panel details {
  font-size: 0.83rem;
  margin-top: 12px;
}
.price-panel summary {
  cursor: pointer;
  font-weight: 680;
}
.sku-field {
  display: flex;
  gap: 3px;
  align-items: center;
  border: 1px solid #d5d4dd;
  background: white;
  border-radius: 10px;
  padding: 3px;
}
.sku-field input {
  flex: 1;
  border: 0;
  min-height: 36px;
}
.sku-field button {
  background: #24232b;
  color: white;
  border: 0;
  border-radius: 7px;
  font-size: 0.8rem;
  font-weight: 660;
  padding: 9px 13px;
}
.sku-field:focus-within {
  outline: 2px solid var(--accent);
}
.sku-field input:focus-visible {
  outline: 0;
}
.guide-pair {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 8px;
}
.danger {
  display: block;
  border: 1px solid #f0c3cc;
  background: #fff2f5;
  color: #992242;
  border-radius: 11px;
  padding: 12px;
  margin: 16px 0;
  font-weight: 670;
}
.cap-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.cap-pills .pill {
  background: #f9e7ee;
  color: #831740;
}
.cap-pills .pill[aria-pressed="true"] {
  background: #97234e;
  color: #fff;
}
.gain-box,
.profit-result {
  border-radius: 12px;
  background: #e5f6e8;
  color: #175a34;
  padding: 12px 15px;
}
.gain-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 660;
}
.gain-box strong {
  font-size: 1.45rem;
}
.gain-box.loss,
.profit-result.loss {
  background: #fff0f2;
  color: #8b2645;
}
.profit-result .line {
  padding: 0;
}
.profit-result .line span {
  color: inherit;
}
.version {
  text-align: center;
  margin: 15px auto;
}
.truncate {
  max-width: 65%;
}
.locked,
.locked .shell {
  background: #f8f6f7;
}
.locked .shell main {
  padding: 0;
  min-height: 100dvh;
}
.access {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.access-art {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  align-content: center;
  min-height: clamp(230px, 48dvh, 445px);
  padding-top: env(safe-area-inset-top);
  background: linear-gradient(140deg, #fbd7e0, #ee91a8 62%, #dc5f80);
}
.access-art:before {
  content: "";
  position: absolute;
  inset: -70%;
  background: repeating-radial-gradient(
    ellipse at 70% 65%,
    transparent 0 32px,
    #fff3 33px 34px,
    transparent 35px 53px
  );
  transform: rotate(-30deg);
  z-index: -1;
}
.access-logo {
  position: absolute;
  top: calc(18px + env(safe-area-inset-top));
  left: 22px;
  width: 98px;
  height: auto;
  z-index: 1;
}
.access-shoe {
  width: 91%;
  height: clamp(195px, 36dvh, 340px);
  justify-self: center;
  object-fit: contain;
  mix-blend-mode: multiply;
  transform: rotate(-12deg) translateY(8%);
}
.access section {
  background: #f8f6f7;
  padding: 28px 24px calc(28px + env(safe-area-inset-bottom));
  flex: 1;
}
.access h1 {
  font-size: clamp(2.4rem, 11vw, 3.8rem);
  letter-spacing: -0.075em;
  margin-bottom: 25px;
}
.access input,
.access .btn {
  min-height: 50px;
}
.locked .shell,
.locked .access,
.access section {
  background: #19191e;
}
.access-art {
  min-height: clamp(240px, 49dvh, 465px);
  background: linear-gradient(155deg, #fff 8%, #ecebef 63%, #bdbbc1);
  clip-path: polygon(0 0, 100% 0, 100% 84%, 0 100%);
}
.access-art:before {
  background: repeating-linear-gradient(
    120deg,
    transparent 0 42px,
    #fff8 42px 44px,
    transparent 44px 68px
  );
}
.access-logo {
  width: clamp(110px, 36vw, 162px);
  left: 6%;
  top: calc(21px + env(safe-area-inset-top));
}
.access-shoe {
  width: 93%;
  transform: rotate(-13deg) translateY(3%);
}
.access section {
  color: #fff;
  padding-inline: 6%;
}
.access h1 {
  color: #fff;
  margin: 0 0 22px;
  line-height: 1;
}
.access input {
  color: #fff;
  background: #27272f;
  border: 1px solid #53525b;
}
.access label {
  color: #e2dee2;
}
.access .btn {
  background: #e50c53;
}
.access .error {
  background: #40252f;
  color: #ffdce6;
}

.stock-states,
.stock-selects {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.stock-states {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.stock-selects {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 4px;
}
.stock-selects select {
  padding-inline: 10px;
}
.stock-selects select:disabled {
  background: #f2f2f3;
  color: #797980;
  opacity: 1;
}
.item-meta .purchase {
  font-weight: 400;
  color: #0a0a0a;
}
.minor,
.copy,
.pill:not(.on) {
  border: 1px solid #d5d5da;
}
.stack,
.stack label {
  min-width: 0;
}
input[type="date"] {
  display: block;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
}
input[type="date"]::-webkit-date-and-time-value {
  text-align: left;
}
.profit-result {
  margin-top: 10px;
}
.gain-box:not(.loss),
.profit-result:not(.loss) {
  background-image:
    radial-gradient(ellipse at 7px 8px, #43a06c45 0 1.4px, transparent 1.8px),
    radial-gradient(ellipse at 25px 19px, #4caa833d 0 1.6px, transparent 2px),
    radial-gradient(ellipse 2.5px 1px at 14px 5px, #40966d42 95%, transparent);
  background-size:
    39px 33px,
    53px 31px,
    47px 26px;
  background-repeat: repeat;
}
.refresh.refreshing svg {
  animation: refresh-spin 0.45s ease-out;
}
@keyframes refresh-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .refresh.refreshing svg {
    animation: none;
  }
}

.sweet-section { margin: 16px 0; }
.sweet-section h2 { font-size: 1rem; margin: 0 0 8px; }
.sweet-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sweet-card { min-width: 0; margin: 0; padding: 12px; }
.sweet-card h3 { margin: 0 0 7px; color: var(--muted); font-size: .79rem; }
.sweet-card strong { display: block; font-size: 1rem; line-height: 1.25; }
.sweet-card .sub { margin-top: 5px; font-size: .76rem; }
.sweet-card summary { cursor: pointer; }
