:root {
  color-scheme: dark;
  --bg: #111111;
  --surface: #1e1e1e;
  --line: #363636;
  --text: #f2f2f2;
  --muted: #b0b0b0;
  --accent: #eeeeee;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    14px/1.5 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
button,
input,
a {
  touch-action: manipulation;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
a {
  color: var(--accent);
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.shell {
  max-width: 1080px;
  margin: auto;
}
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 28px;
  border-bottom: 1px solid var(--line);
  padding-top: max(
    22px,
    env(safe-area-inset-top),
    var(--tg-content-safe-area-inset-top, 0px)
  );
}
.wordmark {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 15px;
}
.wordmark span {
  font-size: 9px;
  font-weight: 500;
  color: var(--muted);
  border-left: 1px solid var(--line);
  padding-left: 15px;
  letter-spacing: 0.18em;
}
.version {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.06em;
  padding: 8px 10px;
}
.version span {
  margin-left: 8px;
  color: var(--accent);
}
main {
  padding: 20px 28px 110px;
}
.notice {
  font-size: 11px;
  line-height: 1.5;
  color: #c4c4c4;
  padding: 10px 12px;
  border: 1px solid #464646;
  border-radius: 7px;
  background: #262626;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.notice a {
  white-space: nowrap;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 25px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 0.17em;
  color: var(--accent);
  margin: 0 0 8px;
}
h1 {
  font-size: 34px;
  font-weight: 550;
  letter-spacing: -0.045em;
  line-height: 1.15;
  margin: 0;
}
h2 {
  font-size: 26px;
  letter-spacing: -0.035em;
  line-height: 1.2;
}
h3 {
  font-size: 23px;
  line-height: 1.2;
  margin: 10px 0;
}
.icon-button {
  width: 44px;
  height: 44px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--accent);
  font-size: 25px;
}
.description {
  font-size: 13px;
  color: var(--muted);
  max-width: 500px;
  margin: 12px 0 22px;
}
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0 6px;
}
.chips::-webkit-scrollbar {
  display: none;
}
.chip {
  border: 1px solid var(--line);
  border-radius: 7px;
  white-space: nowrap;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  padding: 10px 15px;
  min-height: 40px;
}
.chip.active {
  background: var(--accent);
  color: #232323;
  border-color: var(--accent);
}
.list-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 15px 0 14px;
  color: var(--muted);
  font-size: 11px;
}
.view-switch {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 3px;
}
.view-switch button {
  width: 38px;
  height: 32px;
  background: transparent;
  border: 0;
  border-radius: 4px;
  color: var(--muted);
  font-size: 20px;
}
.view-switch .selected {
  background: var(--surface);
  color: var(--accent);
}
.new-items {
  width: 100%;
  border: 1px solid var(--accent);
  background: #363636;
  color: var(--accent);
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 14px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  min-width: 0;
}
.visual {
  aspect-ratio: 1.14;
  position: relative;
  background: #353535;
  overflow: hidden;
}
.image-button {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  color: inherit;
}
.image-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.placeholder {
  font-size: 44px;
  letter-spacing: -0.09em;
  color: #a2a2a2;
  font-weight: 300;
}
.product-sketch {
  width: 80%;
  height: 77%;
  color: #b1b1b1;
  filter: drop-shadow(0 8px 10px #00000033);
}
.illustration-note {
  position: absolute;
  bottom: 9px;
  left: 10px;
  font-size: 8px;
  letter-spacing: 0.08em;
  color: #cbcbcb;
  pointer-events: none;
}
.tag {
  position: absolute;
  left: 9px;
  top: 9px;
  font-size: 8px;
  padding: 4px 6px;
  background: #242424;
  color: var(--accent);
  border-radius: 4px;
  pointer-events: none;
}
.bookmark {
  position: absolute;
  right: 7px;
  top: 7px;
  width: 40px;
  height: 40px;
  background: #1a1a1ad9;
  color: var(--text);
  border: 1px solid #83838355;
  border-radius: 50%;
  font-size: 22px;
}
.bookmark[aria-pressed="true"] {
  color: var(--accent);
}
.card-body {
  padding: 13px;
}
.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.platform {
  font-size: 9px;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.time {
  color: var(--muted);
  font-size: 9px;
}
.title-button {
  display: block;
  text-align: left;
  background: none;
  border: 0;
  padding: 9px 0 5px;
  color: var(--text);
  width: 100%;
}
.brand {
  display: block;
  font-size: 14px;
  font-weight: 650;
}
.product-name {
  display: block;
  font-size: 12px;
  color: #cdcdcd;
  font-weight: 400;
  margin-top: 2px;
}
.meta {
  font-size: 10px;
  color: var(--muted);
  margin: 6px 0 10px;
  min-height: 15px;
}
.price {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.015em;
}
.price-note {
  font-size: 9px;
  color: var(--muted);
  margin: 3px 0 0;
}
.match-note {
  font-size: 10px;
  color: var(--accent);
  border-top: 1px solid var(--line);
  padding-top: 9px;
  margin-top: 10px;
}
.grid.list-view {
  grid-template-columns: 1fr;
  gap: 10px;
}
.list-view .card {
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr);
}
.list-view .visual {
  height: 100%;
  min-height: 176px;
  aspect-ratio: auto;
}
.list-view .card-body {
  padding: 14px 16px;
}
.list-view .title-button {
  padding-top: 7px;
}
.list-view .meta {
  margin: 5px 0 8px;
}
.list-view .price-note {
  display: none;
}
.list-view .brand {
  font-size: 16px;
}
.empty {
  padding: 38px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: center;
  color: var(--muted);
}
.empty-symbol {
  font-size: 30px;
  color: var(--accent);
  display: block;
  margin-bottom: 15px;
}
.empty b {
  display: block;
  font-size: 20px;
  color: var(--text);
  font-weight: 550;
}
.empty p {
  max-width: 420px;
  margin: 12px auto 20px;
}
.primary,
.more {
  background: var(--accent);
  color: #212121;
  border: 0;
  border-radius: 8px;
  padding: 13px 18px;
  font-weight: 650;
  min-height: 44px;
}
.more {
  display: block;
  width: 100%;
  margin-top: 18px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
}
.demo-action {
  display: block;
  margin: 25px auto 0;
  background: transparent;
  color: var(--muted);
  border: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 11px;
  min-height: 44px;
}
.footnote {
  text-align: center;
  font-size: 9px;
  letter-spacing: 0.17em;
  color: #a1a1a1;
  margin: 32px 0 0;
}
.search-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 23px;
}
.search-card p {
  color: var(--muted);
  font-size: 12px;
}
.search-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0 22px;
}
.search-summary span {
  border: 1px solid #525252;
  border-radius: 5px;
  padding: 5px 9px;
  font-size: 11px;
  color: #d1d1d1;
}
.search-label {
  font-size: 11px !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 24px;
}
.toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.toggle-label small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  max-width: 420px;
}
.switch {
  flex-shrink: 0;
  appearance: none;
  width: 40px;
  height: 24px;
  margin: 0;
  border: 1px solid #767676;
  border-radius: 20px;
  background: #414141;
  position: relative;
  cursor: pointer;
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  height: 16px;
  width: 16px;
  background: #c5c5c5;
  border-radius: 50%;
  transition: transform 0.15s;
}
.switch:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.switch:checked::after {
  background: #2a2a2a;
  transform: translateX(16px);
}
.search-card .primary {
  width: 100%;
  margin-top: 12px;
}
.search-card a {
  display: inline-block;
  font-size: 12px;
  margin-top: 12px;
}
.muted {
  color: var(--muted);
}
nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(100%, 1080px);
  display: flex;
  border-top: 1px solid #474747;
  background: #212121f5;
  backdrop-filter: blur(18px);
  padding: 9px 8px
    max(
      10px,
      env(safe-area-inset-bottom),
      var(--tg-content-safe-area-inset-bottom, 0px)
    );
  z-index: 4;
}
nav button {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 10px;
  padding: 6px 1px;
}
nav button span {
  display: block;
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: 4px;
}
nav .selected {
  color: var(--accent);
}
#toast {
  position: fixed;
  bottom: 105px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90%;
  border: 1px solid #6c6c6c;
  background: #e2e2e2;
  color: #212121;
  padding: 12px 18px;
  border-radius: 8px;
  z-index: 8;
  font-size: 12px;
}
dialog {
  background: var(--surface);
  color: var(--text);
  border: 1px solid #565656;
  border-radius: 15px;
  max-width: 460px;
  width: calc(100% - 32px);
  padding: 30px 24px;
  max-height: 85dvh;
  overflow: auto;
}
dialog::backdrop {
  background: #00000099;
  backdrop-filter: blur(3px);
}
.dialog-close {
  display: block;
  margin: -15px -9px 5px auto;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 28px;
}
dialog p {
  color: var(--muted);
  font-size: 13px;
}
dialog a {
  display: inline-block;
  margin-top: 14px;
}
.detail-visual {
  height: 190px;
  border-radius: 9px;
  overflow: hidden;
  position: relative;
  background: #393939;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
}
.detail-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.detail-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 20px 0;
}
.detail-meta div {
  padding: 11px;
  background: #202020;
  border-radius: 6px;
}
.detail-meta small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.detail-meta b {
  font-size: 12px;
  font-weight: 500;
}
.detail-actions .primary {
  width: 100%;
  margin-top: 15px;
}
@media (max-width: 650px) {
  .app-header {
    padding-left: 18px;
    padding-right: 18px;
  }
  .wordmark {
    font-size: 22px;
  }
  main {
    padding: 14px 16px 110px;
  }
  .page-heading {
    margin-top: 23px;
  }
  h1 {
    font-size: 31px;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .card-body {
    padding: 11px;
  }
  .brand {
    font-size: 13px;
  }
  .product-name {
    font-size: 11px;
  }
  .price {
    font-size: 15px;
  }
  .meta {
    font-size: 10px;
  }
  .list-view .card {
    grid-template-columns: 124px minmax(0, 1fr);
  }
  .list-view .visual {
    min-height: 171px;
  }
  .list-view .card-body {
    padding: 12px;
  }
  .list-view .brand {
    font-size: 14px;
  }
  .search-card {
    padding: 18px;
  }
  .notice {
    font-size: 10px;
  }
  .description {
    font-size: 12px;
  }
  .chip {
    padding: 9px 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
