:root {
  --bg: #f3f4f6;
  --surface: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --danger: #dc2626;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding-bottom: 84px;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
}

.brand {
  color: var(--text);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.topbar-note {
  color: var(--muted);
  font-size: 13px;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.link-button:hover {
  color: var(--accent-dark);
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px;
}

.hero {
  margin: 8px 0 20px;
}

.hero h1,
.page-head h1 {
  margin: 0 0 4px;
  font-size: 26px;
  letter-spacing: -0.03em;
}

.hero p,
.page-head p {
  margin: 0;
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

.back {
  display: inline-block;
  margin: 4px 0 16px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.back:hover {
  color: var(--text);
}

.search-form {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

input[type="search"],
input[type="text"],
input[type="password"],
select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

input[type="search"]:focus,
input[type="text"]:focus,
input[type="password"]:focus,
select:focus,
.btn:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
}

.search-form .btn {
  width: 100%;
}

.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: #cbd5e1;
}

.btn-danger {
  background: #fef2f2;
  border-color: #fecaca;
  color: var(--danger);
}

.btn-small {
  min-height: 44px;
  font-size: 14px;
}

.result-meta {
  margin: 18px 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.grid,
.watchlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.card-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.card-tile:hover {
  border-color: #bfdbfe;
  transform: translateY(-1px);
}

.card-img {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 5 / 7;
  background: linear-gradient(145deg, #eef2f7, #e2e8f0);
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.no-image {
  color: var(--muted);
  font-size: 13px;
}

.tile-body {
  display: grid;
  gap: 4px;
  padding: 10px;
}

.tile-body strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 14px;
  line-height: 1.3;
}

.tile-meta {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--muted);
  font-size: 12px;
}

.badge {
  justify-self: start;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 700;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.pagination-label {
  color: var(--muted);
  font-size: 14px;
}

.empty {
  margin-top: 18px;
  padding: 32px 20px;
  background: var(--surface);
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius);
  text-align: center;
}

.empty h1,
.empty h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.empty p {
  margin: 0 0 16px;
  color: var(--muted);
}

.page-head {
  margin-bottom: 18px;
}

.detail {
  display: grid;
  gap: 20px;
}

.detail-img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  aspect-ratio: 5 / 7;
  background: linear-gradient(145deg, #eef2f7, #e2e8f0);
  border-radius: var(--radius);
}

.detail-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.detail-body h1 {
  margin: 0 0 4px;
  font-size: 26px;
  letter-spacing: -0.03em;
}

.info-list {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.info-list dt {
  color: var(--muted);
  font-size: 14px;
}

.info-list dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

.notice {
  margin-top: 20px;
  padding: 14px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
}

.notice strong {
  display: block;
  margin-bottom: 4px;
}

.notice p {
  margin: 0;
  color: #1e40af;
  font-size: 14px;
}

.watchlist-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.watchlist-item form {
  margin: 0;
}

.watchlist-item .btn {
  width: 100%;
}

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  display: flex;
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.nav-item {
  display: flex;
  flex: 1;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.nav-item.active {
  color: var(--accent);
}

@media (min-width: 720px) {
  .container {
    padding: 24px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .search-form {
    grid-template-columns: 1.6fr 1fr 1fr 0.7fr auto;
    align-items: end;
  }

  .search-form.search-form-no-size {
    grid-template-columns: 1.6fr 1fr 1fr auto;
  }

  .search-form .btn {
    width: auto;
  }

  .detail {
    grid-template-columns: 320px 1fr;
    align-items: start;
  }

  .detail-img {
    max-width: none;
  }

  .info-list {
    grid-template-columns: 1fr 1fr;
  }

  .info-list div {
    display: block;
    border-bottom: 0;
    padding-bottom: 0;
  }

  .info-list dd {
    text-align: left;
  }

  .grid,
  .watchlist-grid {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 16px;
  }
}

.search-form-simple {
  grid-template-columns: 1fr;
}

.offers-sort-form {
  max-width: 280px;
  margin: 0 0 14px;
}

.listing-section {
  margin-top: 24px;
  scroll-margin-top: 72px;
}

.listing-section h2 {
  margin: 0 0 10px;
  font-size: 20px;
}

.listing-list {
  display: grid;
  gap: 10px;
}

.listing-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  grid-template-areas:
    "thumb main price"
    "thumb actions actions";
  gap: 8px 10px;
  align-items: center;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.listing-thumb {
  grid-area: thumb;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  aspect-ratio: 5 / 7;
  overflow: hidden;
  background: #eef2f7;
  border-radius: 8px;
}

.listing-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.listing-main {
  grid-area: main;
  min-width: 0;
}

.listing-title {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
}

.listing-title a {
  text-decoration: none;
}

.listing-meta {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.listing-price {
  grid-area: price;
  font-weight: 800;
  white-space: nowrap;
  text-align: right;
}

.listing-actions {
  grid-area: actions;
}

.listing-actions .btn {
  width: 100%;
}

.badge-warn {
  background: #fef3c7;
  color: #92400e;
}

@media (min-width: 720px) {
  .search-form-simple {
    grid-template-columns: 1.4fr 1fr 140px auto;
  }

  .listing-row {
    grid-template-columns: 64px minmax(0, 1fr) auto auto;
    grid-template-areas: "thumb main price actions";
  }

  .listing-thumb {
    width: 64px;
  }

  .listing-actions .btn {
    width: auto;
  }
}

.card-link {
  display: flex;
  flex: 1;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.tile-watchlist {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  margin: 0;
}

.icon-btn {
  display: flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #4b5563;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(17, 24, 39, 0.12);
  backdrop-filter: blur(4px);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.icon-btn svg {
  width: 22px;
  height: 22px;
}

.icon-btn:hover {
  background: #ffffff;
  color: var(--text);
}

.icon-btn.active {
  border-color: #fcd34d;
  background: #fffbeb;
  color: #b45309;
}

.icon-btn.active svg {
  fill: currentColor;
}

.segmented {
  display: flex;
  width: 100%;
  max-width: 360px;
  gap: 4px;
  margin-bottom: 14px;
  padding: 4px;
  background: #e5e7eb;
  border-radius: 12px;
}

.segment {
  display: flex;
  flex: 1;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.segment.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.12);
}

.segment:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 1px;
}

.offers-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.offers-toolbar .segmented {
  margin-bottom: 0;
}

.scan-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 12px 14px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  color: #1e40af;
  font-size: 14px;
}

.scan-status a {
  font-weight: 700;
}

.scan-time {
  color: inherit;
  font-size: 12px;
  opacity: 0.8;
}

.scan-status-ok {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

.scan-status-error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.empty-secondary {
  margin: 12px 0 0;
  font-size: 14px;
}

.offers-filter-form {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.filter-row {
  display: grid;
  gap: 10px;
}

.offers-submit {
  width: 100%;
}

.filter-expansions {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f9fafb;
}

.filter-expansions summary {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  list-style: none;
  text-transform: uppercase;
}

.filter-expansions summary::-webkit-details-marker {
  display: none;
}

.filter-expansions summary::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: 4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

.filter-expansions[open] summary::after {
  transform: rotate(-135deg);
}

.filter-summary-count {
  margin-left: auto;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.filter-expansions .checkbox-list {
  padding: 0 12px 12px;
  border: 0;
  background: transparent;
}

.checkbox {
  display: flex;
  min-height: 40px;
  gap: 9px;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
}

.checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  flex: 0 0 auto;
}

@media (min-width: 720px) {
  .filter-row {
    grid-template-columns: 1fr 140px;
    align-items: end;
  }

  .offers-submit {
    width: auto;
    justify-self: end;
  }

  .checkbox-list {
    grid-template-columns: 1fr 1fr;
  }
}

.listing-source {
  display: inline-flex;
  width: max-content;
  gap: 6px;
  align-items: center;
  margin-top: 4px;
  padding: 2px 6px;
  background: #f3f4f6;
  border-radius: 6px;
}

.source-logo {
  display: block;
  width: auto;
  height: 16px;
  max-width: 120px;
  max-height: 16px;
  object-fit: contain;
}

.grouping-note {
  margin: -4px 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.card-offers-list {
  display: grid;
  gap: 14px;
}

.card-offers {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.card-offers-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.card-offers-ident {
  display: flex;
  min-width: 0;
  gap: 10px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.card-offers-thumb {
  display: flex;
  flex: 0 0 auto;
  width: 52px;
  aspect-ratio: 5 / 7;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #eef2f7;
  border-radius: 8px;
}

.card-offers-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card-offers-name {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.card-offers-name strong {
  font-size: 16px;
}

.card-offers-name .muted {
  font-size: 12px;
}

.card-offers-summary {
  display: grid;
  gap: 2px;
  text-align: right;
  font-size: 13px;
}

.card-offers-summary strong {
  font-size: 14px;
}

.offer-list {
  display: grid;
}

.offer-panel {
  border-top: 1px solid var(--line);
}

.offer-list .offer-panel:first-child {
  border-top: 0;
}

.offer-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
}

.offer-summary::-webkit-details-marker {
  display: none;
}

.offer-summary::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

.offer-panel[open] .offer-summary::after {
  transform: rotate(-135deg);
}

.offer-source {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  background: #f3f4f6;
  border-radius: 6px;
  font-size: 13px;
}

.offer-price {
  color: var(--text);
  font-size: 16px;
}

.offer-cond {
  color: var(--muted);
  font-size: 12px;
}

.offer-date {
  color: var(--muted);
  font-size: 12px;
}

.offer-trend {
  color: var(--muted);
  font-size: 12px;
}

.offer-low {
  font-size: 12px;
  font-weight: 700;
  color: #b45309;
}

.offer-low.at-low {
  color: #166534;
}

.offer-deal {
  display: inline-flex;
  min-width: 58px;
  height: 24px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.deal-detail {
  margin: 10px 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.deal-head {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: baseline;
  margin-bottom: 8px;
}

.deal-head span {
  color: var(--muted);
  font-size: 12px;
}

.deal-breakdown,
.deal-reasons,
.deal-warnings {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 6px 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
}

.deal-reasons li {
  color: #166534;
}

.deal-warnings li {
  color: #9a3412;
}

.badge-opportunity {
  background: #eef2ff;
  color: #3730a3;
}

.offer-body {
  padding: 0 12px 12px;
}

.offer-info {
  display: grid;
  gap: 6px;
  margin: 10px 0;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.offer-info div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.offer-info dt {
  color: var(--muted);
}

.offer-info dd {
  margin: 0;
  overflow-wrap: anywhere;
  text-align: right;
}

.offer-body .btn {
  width: 100%;
}

.more-offers {
  display: block;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

@media (min-width: 720px) {
  .offer-body .btn {
    width: auto;
  }
}

.market-price {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.market-price-head {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.market-price-head h2 {
  margin: 0;
  font-size: 20px;
}

.market-price-list {
  display: grid;
  gap: 6px;
}

.market-price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  align-items: center;
  padding: 8px 10px;
  background: #f9fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
}

.market-price-row span:nth-child(1) {
  font-weight: 600;
}

.market-price-row span:nth-child(2),
.market-price-row span:nth-child(3) {
  color: var(--muted);
}

.market-price-row strong {
  grid-row: 1 / span 2;
  grid-column: 2;
  text-align: right;
  white-space: nowrap;
}

.condition-price-list {
  display: grid;
  gap: 6px;
}

.condition-price-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: #f9fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
}

.condition-price-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.condition-price-main strong {
  font-weight: 600;
}

.condition-price-main .muted {
  font-size: 12px;
}

.condition-price-value {
  white-space: nowrap;
}

.market-price-note {
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 12px;
}

.market-price-ok {
  color: #166534;
  font-size: 13px;
}

.market-price-error {
  color: var(--danger);
  font-size: 13px;
}

.offer-panel {
  border-left: 4px solid #cbd5e1;
}

.offer-panel.score-excellent {
  border-left-color: #16a34a;
}

.offer-panel.score-good {
  border-left-color: #65a30d;
}

.offer-panel.score-fair {
  border-left-color: #d97706;
}

.offer-panel.score-poor {
  border-left-color: #ea580c;
}

.offer-panel.score-bad {
  border-left-color: #dc2626;
}

.offer-score {
  display: inline-flex;
  min-width: 34px;
  height: 24px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.offer-score.score-excellent {
  background: #dcfce7;
  color: #166534;
}

.offer-score.score-good {
  background: #ecfccb;
  color: #4d7c0f;
}

.offer-score.score-fair {
  background: #fef3c7;
  color: #92400e;
}

.offer-score.score-poor {
  background: #ffedd5;
  color: #9a3412;
}

.offer-score.score-bad {
  background: #fee2e2;
  color: #991b1b;
}

.offer-score.score-unknown {
  background: #f1f5f9;
  color: #94a3b8;
}

.offer-score-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 10px 0;
  padding: 8px 10px;
  background: #f9fafb;
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
}

.offer-score-detail strong {
  color: var(--text);
}

.page-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 10px 0 14px;
}

.page-jump label {
  display: flex;
  gap: 6px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.page-jump input[type="number"] {
  width: 76px;
  min-height: 44px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.page-jump-total {
  color: var(--muted);
  font-size: 13px;
}

.page-jump .btn {
  min-height: 44px;
}

@media (min-width: 720px) {
  .page-jump {
    justify-content: flex-end;
  }
}

.scan-set {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.scan-set .btn {
  width: 100%;
}

@media (min-width: 720px) {
  .scan-set {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .scan-set .btn {
    width: auto;
  }
}

.scan-set .filter-expansions {
  width: 100%;
}

.tile-cardmarket {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.detail-actions .btn {
  width: 100%;
}

@media (min-width: 720px) {
  .detail-actions .btn {
    width: auto;
  }
}

.tile-links {
  padding: 0 10px 10px;
}

.tile-links a {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.tile-links a:hover {
  border-color: #cbd5e1;
}


.auth-card {
  max-width: 420px;
  margin: 48px auto;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.auth-card h1 {
  margin: 0 0 4px;
  font-size: 24px;
}

.form-error {
  margin: 16px 0 0;
  color: var(--danger);
  font-weight: 700;
}

@media (max-width: 560px) {
  .topbar-note:first-child {
    display: none;
  }
}
