:root {
  --bg: #f3f9fb;
  --surface: #ffffff;
  --surface-2: #eef9fb;
  --surface-3: #f8fcfd;
  --text: #132536;
  --muted: #62748a;
  --line: #d5e6ed;
  --blue: #2563eb;
  --cyan: #14b8c6;
  --green: #059669;
  --red: #dc4a58;
  --amber: #b7791f;
  --ink: #0f2338;
  --shadow: 0 18px 44px rgba(31, 65, 88, 0.1);
  --soft-shadow: 0 8px 22px rgba(31, 65, 88, 0.08);
}

/* ONE PIECE BOX loader review v6: evidence-first article */
.loader-review-v6 .article-title-review {
  white-space: nowrap;
}

.loader-review-v6 .article-prose-lead {
  margin: 0 0 24px;
  color: #40566a;
  font-size: 17px;
  line-height: 1.95;
}

.loader-review-v6 .review-fact-strip {
  display: grid;
  margin: 24px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.loader-review-v6 .review-fact-strip > div {
  display: grid;
  grid-template-columns: minmax(110px, 0.42fr) minmax(0, 1fr);
  gap: 16px;
  padding: 13px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.loader-review-v6 .review-fact-strip dt {
  color: #a8c2d2;
  font-size: 12px;
  font-weight: 800;
}

.loader-review-v6 .review-fact-strip dd {
  margin: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.loader-review-v6 .article-proof-photo {
  width: min(100%, 680px);
  margin: 28px auto 0;
}

.loader-review-v6 .article-proof-photo img {
  display: block;
  width: 100%;
  max-height: 760px;
  border-radius: 14px 14px 0 0;
  background: #edf3f5;
  object-fit: contain;
}

.loader-review-v6 .loader-square-photo img {
  height: auto;
  max-height: none;
}

.loader-review-v6 .article-proof-photo figcaption,
.loader-review-v6 .fit-detail-grid figcaption {
  margin: 0;
  padding: 13px 15px;
  border-radius: 0 0 14px 14px;
  background: #10283d;
  color: #e8f1f5;
  font-size: 13px;
  line-height: 1.75;
}

.loader-review-v6 .test-answer-card {
  margin-bottom: 28px;
  padding: 22px 24px;
  border-left: 5px solid #14b8c6;
  border-radius: 0 14px 14px 0;
  background: #effbfd;
}

.loader-review-v6 .test-answer-card strong {
  color: #087f8c;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.loader-review-v6 .test-answer-card p {
  margin: 8px 0 0;
  color: #173b50;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.7;
}

.loader-review-v6 .fit-detail-grid {
  margin-top: 28px;
}

.loader-review-v6 .fit-detail-grid img {
  width: 100%;
  height: auto;
  max-height: none;
  border-radius: 14px 14px 0 0;
  object-fit: cover;
}

.loader-review-article.loader-review-v6 .fit-detail-grid img {
  height: auto;
  max-height: none;
}

.loader-review-v6 .compact-compatibility-table {
  min-width: 0;
}

.loader-review-v6 .compact-compatibility-table td:first-child {
  display: grid;
  gap: 3px;
}

.loader-review-v6 .compact-compatibility-table td:first-child strong {
  color: #0b8792;
  font-size: 13px;
}

.loader-review-v6 .compact-compatibility-table td:first-child span {
  color: #40566a;
  font-size: 12px;
}

.loader-review-v6 .compact-compatibility-table th:last-child,
.loader-review-v6 .compact-compatibility-table td:last-child {
  width: 104px;
  text-align: center;
  white-space: nowrap;
}

.loader-review-v6 .drop-test-panel {
  margin-top: 30px;
  padding: clamp(24px, 5vw, 34px);
  border-radius: 18px;
  background: #10283d;
  color: #fff;
}

.loader-review-v6 .drop-test-heading span {
  color: #67e8f9;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.loader-review-v6 .drop-test-heading h3 {
  margin: 8px 0 22px;
  color: #fff;
  font-size: clamp(22px, 4vw, 29px);
  line-height: 1.45;
}

.loader-review-v6 .drop-test-panel ol {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.loader-review-v6 .drop-test-panel li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.loader-review-v6 .drop-test-panel li strong {
  color: #67e8f9;
}

.loader-review-v6 .drop-test-panel > p {
  margin: 22px 0 0;
  color: #fff;
  font-size: 16px;
  line-height: 1.8;
}

.loader-review-v6 .uv-proof-grid {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.loader-review-v6 .uv-proof-grid > div {
  padding: 20px 22px;
  border-left: 4px solid #14b8c6;
  background: #f6fafb;
}

.loader-review-v6 .uv-proof-grid span {
  display: block;
  margin-bottom: 6px;
  color: #71889a;
  font-size: 11px;
  font-weight: 800;
}

.loader-review-v6 .uv-proof-grid strong {
  color: #173b50;
  font-size: 17px;
}

.loader-review-v6 .uv-proof-grid p {
  margin: 7px 0 0;
  color: #52687c;
  font-size: 13px;
  line-height: 1.75;
}

.loader-review-v6 .final-verdict-panel {
  padding: clamp(24px, 5vw, 34px);
  border-radius: 18px;
  background: #effbfd;
}

.loader-review-v6 .final-verdict-panel p {
  margin: 0;
  color: #304b60;
  font-size: 16px;
  line-height: 1.95;
}

.loader-review-v6 .final-verdict-panel p + p {
  margin-top: 18px;
}

.loader-review-v6 .final-verdict-panel .article-product-button {
  margin-top: 24px;
}

@media (max-width: 700px) {
  .loader-review-v6 .article-title-review {
    font-size: 0.9em;
  }

  .loader-review-v6 .review-conclusion {
    padding: 26px 20px;
  }

  .loader-review-v6 .article-prose-lead {
    font-size: 16px;
  }

  .loader-review-v6 .article-proof-photo img {
    max-height: 70vh;
  }

  .loader-review-v6 .test-answer-card {
    padding: 19px 18px;
  }

  .loader-review-v6 .test-answer-card p {
    font-size: 16px;
  }

  .loader-review-v6 .drop-test-panel li {
    grid-template-columns: 64px minmax(0, 1fr);
    font-size: 14px;
  }
}

/* Title market hubs and explicit movement destinations. */
.tcg-list-overview {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.8fr);
  gap: 24px;
  margin: 30px 0;
  padding: 24px;
  border: 1px solid rgba(8, 168, 181, 0.24);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(8, 168, 181, 0.08), rgba(37, 99, 235, 0.05));
  box-shadow: var(--soft-shadow);
}

.tcg-list-overview-copy p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.tcg-list-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 10px;
}

.tcg-list-stat-grid a {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
  min-height: 142px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
}

.tcg-list-stat-grid a:hover,
.tcg-list-stat-grid a:focus-visible {
  border-color: rgba(8, 168, 181, 0.55);
  transform: translateY(-1px);
}

.tcg-list-stat-grid span,
.tcg-list-stat-grid b {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.tcg-list-stat-grid strong {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 27px;
  line-height: 1.1;
}

.tcg-list-stat-grid strong small {
  color: var(--muted);
  font-size: 11px;
}

.tcg-list-stat-grid strong i {
  font-size: 22px;
  font-style: normal;
}

.tcg-list-stat-grid strong i.up {
  color: var(--green);
}

.tcg-list-stat-grid strong i.down {
  color: var(--red);
}

.tcg-list-stat-grid b {
  align-self: end;
  margin-top: auto;
  color: #087f8c;
}

.tcg-list-facts {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(8, 168, 181, 0.18);
  color: var(--muted);
  font-size: 12px;
}

.tcg-list-facts strong {
  color: var(--ink);
}

.tcg-list-facts a {
  margin-left: auto;
  color: #087f8c;
  font-weight: 850;
}

.list-catalog {
  margin-top: 52px;
  scroll-margin-top: 96px;
}

.list-type-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.list-type-filter a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.list-type-filter a span {
  display: grid;
  place-items: center;
  min-width: 23px;
  min-height: 23px;
  padding-inline: 5px;
  border-radius: 999px;
  background: #eef4f5;
  color: var(--ink);
  font-size: 10px;
}

.list-type-filter a.is-active {
  border-color: #0e7490;
  background: #0e7490;
  color: #fff;
}

.list-type-filter a.is-active span {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.movement-tcg-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
}

.movement-tcg-filter a {
  min-height: 40px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.movement-tcg-filter a.is-active {
  border-color: #0e7490;
  background: #0e7490;
  color: #fff;
}

.movement-summary-grid {
  scroll-margin-top: 96px;
}

.movement-summary-grid > a {
  position: relative;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.movement-summary-grid > a:hover,
.movement-summary-grid > a:focus-visible {
  border-color: rgba(8, 168, 181, 0.55);
  transform: translateY(-1px);
}

.movement-summary-grid > a > b {
  color: #087f8c;
  font-size: 10px;
  font-weight: 850;
}

.movement-summary-grid > a::after {
  position: absolute;
  right: 15px;
  bottom: 15px;
  color: #83a0a8;
  content: "↓";
  font-size: 13px;
  font-weight: 900;
}

.movement-index a.method {
  margin-left: auto;
  border-style: dashed;
  color: #526a76;
  background: transparent;
}

.movement-ranking,
.movement-method,
.movement-detail-list,
.movement-tcg-summary {
  scroll-margin-top: 96px;
}

.movement-detail-list {
  margin-top: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

.movement-detail-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 19px 21px;
  cursor: pointer;
  list-style: none;
}

.movement-detail-list summary::-webkit-details-marker {
  display: none;
}

.movement-detail-list summary span {
  display: grid;
  gap: 4px;
}

.movement-detail-list summary strong {
  color: var(--ink);
  font-size: 18px;
}

.movement-detail-list summary small {
  color: var(--muted);
  line-height: 1.5;
}

.movement-detail-list summary > b {
  flex: 0 0 auto;
  color: #087f8c;
  font-size: 13px;
}

.movement-detail-list[open] summary {
  border-bottom: 1px solid var(--line);
}

.movement-compact-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  background: var(--line);
}

.movement-compact-list a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 54px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
}

.movement-compact-list a span {
  padding: 4px 6px;
  border-radius: 999px;
  background: #edf4f5;
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
}

.movement-compact-list a strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 11px;
}

.movement-compact-list a b {
  font-size: 11px;
  white-space: nowrap;
}

.movement-back-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-top: 14px;
  color: #087f8c;
  font-size: 11px;
  font-weight: 850;
}

.movement-detail-list > .movement-back-link {
  margin: 12px 18px;
}

.movement-tcg-summary a.is-active {
  border-color: #8de4eb;
  background: rgba(141, 228, 235, 0.12);
}

.ssr-tcg-list-summary {
  max-width: 1180px;
  margin: 0 auto;
  padding: 38px clamp(16px, 4vw, 48px);
}

.ssr-tcg-list-summary > nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 12px;
}

.ssr-list-kicker {
  margin-bottom: 8px;
  color: #0e7490;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.ssr-tcg-list-summary h1 {
  font-size: clamp(30px, 5vw, 52px);
}

.ssr-list-lead,
.ssr-list-note,
.ssr-list-update {
  color: var(--muted);
  line-height: 1.75;
}

.ssr-tcg-list-summary dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 28px 0 12px;
}

.ssr-tcg-list-summary dl > div {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
}

.ssr-tcg-list-summary dt,
.ssr-tcg-list-summary dd {
  margin: 0;
}

.ssr-tcg-list-summary dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.ssr-tcg-list-summary dd {
  margin-top: 6px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 900;
}

.ssr-list-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 30px;
}

.ssr-list-links a {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: #087f8c;
  font-size: 12px;
  font-weight: 850;
}

.ssr-list-products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
  list-style: none;
}

.ssr-list-products a {
  display: grid;
  gap: 4px;
  min-height: 58px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.ssr-list-products strong {
  color: var(--ink);
  font-size: 12px;
}

.ssr-list-products span {
  color: var(--muted);
  font-size: 10px;
}

@media (max-width: 900px) {
  .tcg-list-overview {
    grid-template-columns: 1fr;
  }

  .movement-compact-list,
  .ssr-list-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ssr-tcg-list-summary dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .tcg-list-overview {
    margin-inline: -2px;
    padding: 18px;
  }

  .tcg-list-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tcg-list-stat-grid a {
    min-height: 132px;
    padding: 14px;
  }

  .tcg-list-facts {
    align-items: flex-start;
    flex-direction: column;
  }

  .tcg-list-facts a {
    min-height: 44px;
    margin-left: 0;
    padding-block: 11px;
  }

  .list-type-filter a,
  .movement-tcg-filter a {
    min-height: 44px;
  }

  .movement-index a.method {
    flex-basis: 100%;
    margin-left: 0;
    text-align: center;
  }

  .movement-compact-list,
  .ssr-list-products {
    grid-template-columns: 1fr;
  }

  .movement-detail-list summary {
    align-items: flex-start;
    padding: 17px;
  }

  .ssr-tcg-list-summary dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ssr-list-links a {
    display: flex;
    align-items: center;
    min-height: 44px;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(219, 247, 251, 0.72) 0, rgba(243, 249, 251, 0) 360px),
    repeating-linear-gradient(90deg, rgba(20, 184, 198, 0.055) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(180deg, rgba(37, 99, 235, 0.04) 0 1px, transparent 1px 96px),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
  padding: 12px clamp(16px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
  background: rgba(248, 252, 253, 0.88);
  box-shadow: 0 10px 32px rgba(31, 65, 88, 0.06);
  backdrop-filter: blur(18px);
}

.admin-mode .topbar {
  display: none;
}

.admin-mode .app {
  min-height: 100vh;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 186px;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0f2338, #0e7490);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(14, 116, 144, 0.24);
}

.brand-mark::after {
  position: absolute;
  right: 7px;
  bottom: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #a7f3d0;
  content: "";
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(213, 230, 237, 0.8);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
  overflow-x: auto;
  white-space: nowrap;
}

.nav a,
.chip,
.period-button,
.view-button,
.action-button {
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.nav a {
  padding: 9px 12px;
  font-size: 14px;
  font-weight: 700;
}

.nav a:hover,
.nav a.is-active,
.period-button.is-active,
.view-button.is-active {
  border-color: rgba(20, 184, 198, 0.24);
  background: #e7fbfd;
  color: var(--ink);
}

.app {
  min-height: calc(100vh - 68px);
}

.app:focus {
  outline: none;
}

.section {
  padding: 38px clamp(16px, 4vw, 48px);
}

.section.band {
  margin: 28px calc(clamp(16px, 4vw, 48px) * -1) 0;
  padding-inline: clamp(16px, 4vw, 48px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(239, 249, 251, 0.88));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.hero-section .section-head {
  justify-content: center;
  text-align: center;
}

.hero-section .section-head > div {
  width: 100%;
}

.eyebrow {
  margin: 0 0 8px;
  color: #0e7490;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 1180px;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: clamp(30px, 5vw, 56px);
  font-weight: 850;
  line-height: 1.05;
}

h1.hero-title {
  max-width: none;
  margin-bottom: 14px;
  font-size: clamp(40px, 4.2vw, 72px);
  line-height: 1.12;
  white-space: nowrap;
}

h1.hero-title em {
  background: linear-gradient(90deg, #2563eb, #7c3aed, #ec4899, #f97316, #14b8c6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: normal;
}

h1.hero-title .hot-word {
  color: #e5484d;
}

h1.hero-title .cool-word {
  color: #2563eb;
}

h2 {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 22px;
}

h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

.lead {
  max-width: 920px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 23px);
  line-height: 1.75;
}

.hero-section .lead {
  margin-inline: auto;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(34px, 7vw, 82px);
  margin: 36px auto 0;
  padding: 0;
}

.hero-stats div {
  min-width: 150px;
  text-align: center;
}

.hero-stats strong {
  display: block;
  color: var(--ink);
  font-size: clamp(31px, 4vw, 48px);
  font-weight: 900;
  line-height: 1;
}

.hero-stats span {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 750;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 22px;
  align-items: stretch;
  position: relative;
}

.home-controls {
  margin-top: 28px;
}

.home-controls .toolbar {
  margin-bottom: 0;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 360px;
  padding: 8px 0;
}

.hero-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-content: center;
  padding: 14px;
  border: 1px solid rgba(213, 230, 237, 0.84);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(234, 250, 252, 0.72)),
    repeating-linear-gradient(135deg, rgba(20, 184, 198, 0.08) 0 1px, transparent 1px 18px);
  box-shadow: var(--shadow);
}

.featured-product {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(148px, 0.48fr);
  min-height: 238px;
  overflow: hidden;
  border: 1px solid rgba(213, 230, 237, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--soft-shadow);
}

.featured-product .product-photo-wrap {
  min-height: 238px;
}

.featured-meta {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px;
}

.featured-meta span {
  color: #0e7490;
  font-size: 12px;
  font-weight: 850;
}

.featured-meta strong {
  color: var(--ink);
  font-size: 30px;
  line-height: 1.05;
}

.featured-meta small {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.5;
}

.metric-tile {
  min-height: 148px;
  padding: 18px;
  border: 1px solid rgba(213, 230, 237, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--soft-shadow);
}

.metric-tile span {
  display: block;
  color: #0e7490;
  font-size: 12px;
  font-weight: 800;
}

.metric-tile strong {
  display: block;
  margin-top: 12px;
  color: var(--ink);
  font-size: 32px;
  line-height: 1.05;
}

.metric-tile small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.5;
}

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

.list-toolbar {
  justify-content: flex-end;
}

.segmented,
.periods {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(213, 230, 237, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.period-data-pending {
  margin: 0;
  padding: 9px 12px;
  border: 1px solid rgba(213, 230, 237, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.chip,
.period-button,
.view-button,
.action-button {
  min-height: 38px;
  padding: 8px 12px;
  font-weight: 800;
}

.chip.is-active,
.action-button.primary {
  border-color: #0e7490;
  background: linear-gradient(135deg, #0e7490, #14b8c6);
  color: #fff;
  box-shadow: 0 8px 18px rgba(14, 116, 144, 0.22);
}

.action-button {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.86);
}

.action-button:hover {
  border-color: #9fb2ca;
}

.select-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.select-row select,
.select-row input,
.admin-filter-select,
.admin-form input,
.admin-form select,
.admin-form textarea {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  padding: 8px 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.ranking-grid,
.card-grid,
.detail-grid,
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card-grid {
  grid-template-columns: repeat(auto-fit, minmax(184px, 220px));
  justify-content: center;
  gap: 18px;
  align-items: start;
}

.card-grid > .box-card {
  width: 100%;
  max-width: 220px;
}

.ranking-showcase {
  display: grid;
  gap: 36px;
  margin-top: 34px;
  min-width: 0;
}

.ranking-shelf {
  position: relative;
  min-width: 0;
}

.shelf-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.shelf-head h2 {
  position: relative;
  margin: 0;
  padding-left: 18px;
  font-size: 25px;
}

.shelf-head h2::before {
  position: absolute;
  top: 4px;
  bottom: 3px;
  left: 0;
  width: 6px;
  border-radius: 99px;
  background: #14b8c6;
  content: "";
}

.ranking-shelf.green .shelf-head h2::before {
  background: #10b981;
}

.ranking-shelf.pink .shelf-head h2::before {
  background: #f43f7f;
}

.ranking-shelf.blue .shelf-head h2::before {
  background: #2563eb;
}

.ranking-shelf.gold .shelf-head h2::before {
  background: #d98b0b;
}

.shelf-head span {
  display: block;
  margin-top: 5px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.shelf-head a {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

.shelf-scroll {
  display: grid;
  grid-auto-columns: minmax(190px, 220px);
  grid-auto-flow: column;
  gap: 18px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 16px;
  scroll-snap-type: x proximity;
  scrollbar-color: #14b8c6 #e8f1f5;
}

.shelf-scroll::-webkit-scrollbar {
  height: 10px;
}

.shelf-scroll::-webkit-scrollbar-track {
  border-radius: 99px;
  background: #e8f1f5;
}

.shelf-scroll::-webkit-scrollbar-thumb {
  border: 3px solid #e8f1f5;
  border-radius: 99px;
  background: #14b8c6;
}

.ranking-product-card {
  display: grid;
  grid-template-rows: 292px 1fr;
  overflow: hidden;
  border: 1px solid rgba(213, 230, 237, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--soft-shadow);
  scroll-snap-align: start;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.ranking-product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(20, 184, 198, 0.38);
  box-shadow: 0 22px 44px rgba(31, 65, 88, 0.14);
}

.latest-portrait-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 18px;
}

.latest-portrait-card {
  grid-template-rows: 310px 1fr;
}

.portrait-frame {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--art-a) 10%, #fff), color-mix(in srgb, var(--art-b) 8%, #fff));
}

.portrait-frame img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 8px;
  object-fit: contain;
  object-position: center;
}

.portrait-rank {
  position: absolute;
  top: 10px;
  left: 10px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  background: linear-gradient(135deg, #14b8c6, #2563eb);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(15, 35, 56, 0.2);
}

.ranking-shelf.green .portrait-rank {
  background: linear-gradient(135deg, #10b981, #14b8c6);
}

.ranking-shelf.pink .portrait-rank {
  background: linear-gradient(135deg, #f43f7f, #fb7185);
}

.ranking-shelf.blue .portrait-rank {
  background: linear-gradient(135deg, #2563eb, #14b8c6);
}

.ranking-shelf.gold .portrait-rank {
  background: linear-gradient(135deg, #b7791f, #e4a72c);
}

.portrait-body {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.portrait-body h3 {
  display: -webkit-box;
  min-height: 46px;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.portrait-body p {
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portrait-metrics {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  margin-top: 2px;
  min-width: 0;
  padding: 10px;
  border-radius: 8px;
  background: rgba(245, 250, 252, 0.92);
}

.portrait-price {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(213, 230, 237, 0.76);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f4fbfd 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.portrait-price span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.portrait-price strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 24px;
  font-weight: 950;
  line-height: 1.05;
}

.shelf-scroll .portrait-price strong {
  font-size: 22px;
}

.portrait-date {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.portrait-date strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
}

.portrait-metric-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}

.portrait-metric-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portrait-metric-grid .portrait-metrics {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.portrait-metrics span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.portrait-metrics strong {
  color: var(--ink);
  overflow-wrap: normal;
  font-size: 17px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.shelf-scroll .portrait-metrics.change-metric {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  padding-inline: 6px;
}

.shelf-scroll .portrait-metrics.change-metric span {
  font-size: 10px;
}

.shelf-scroll .portrait-metrics.change-metric strong {
  justify-self: end;
  font-size: 13px;
}

.shelf-scroll .portrait-metrics.change-metric .metric-subvalue {
  justify-self: end;
  margin-top: 0;
  font-size: 9px;
  line-height: 1;
  text-align: right;
  white-space: nowrap;
}

.shelf-scroll .portrait-metrics.profit-metric {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 6px;
}

.shelf-scroll .portrait-metrics.profit-metric strong {
  justify-self: start;
  max-width: 100%;
  font-size: 17px;
  line-height: 1.05;
}

.detail-grid {
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
}

.public-detail {
  display: grid;
  gap: 18px;
}

.detail-overview {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(213, 230, 237, 0.92);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 252, 253, 0.82)),
    repeating-linear-gradient(135deg, rgba(20, 184, 198, 0.06) 0 1px, transparent 1px 18px);
  box-shadow: var(--shadow);
}

.detail-summary {
  display: grid;
  align-content: center;
  gap: 14px;
  min-width: 0;
  padding: clamp(6px, 1.4vw, 18px);
}

.detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(20, 184, 198, 0.22);
  border-radius: 8px;
  background: #e7fbfd;
  color: #0e7490;
  font-size: 12px;
  font-weight: 850;
}

.detail-label {
  margin: 8px 0 -8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

.detail-price {
  color: var(--ink);
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
}

.detail-price.is-pending {
  font-size: clamp(32px, 4.5vw, 58px);
  line-height: 1.15;
  overflow-wrap: anywhere;
  white-space: normal;
}

.detail-copy {
  max-width: 100%;
  margin: 0;
  overflow: visible;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.8;
  text-overflow: clip;
  white-space: normal;
}

.public-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 4px;
}

.public-summary .stat.featured {
  background: #e7fbfd;
}

.ranking-card,
.box-card,
.detail-card,
.article-card,
.admin-panel,
.notice {
  border: 1px solid rgba(213, 230, 237, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.ranking-card,
.detail-card,
.article-card,
.admin-panel,
.notice {
  padding: 20px;
}

.ranking-card,
.detail-card,
.article-card,
.admin-panel,
.box-card,
.notice,
.table-wrap {
  backdrop-filter: blur(8px);
}

.ranking-card {
  position: relative;
  overflow: hidden;
}

.ranking-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #14b8c6, #2563eb, #34d399);
  content: "";
}

.ranking-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ranking-list a,
.latest-row,
.related-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: var(--surface-3);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.ranking-list a:hover,
.latest-row:hover,
.related-row:hover {
  transform: translateY(-1px);
  border-color: rgba(20, 184, 198, 0.28);
  background: #effbfd;
}

.rank-number {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #dff7fa;
  color: #0e7490;
  font-weight: 800;
}

.item-title {
  min-width: 0;
}

.item-title strong,
.item-title span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-title span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.delta.up {
  color: var(--green);
  font-weight: 850;
}

.delta.down {
  color: var(--red);
  font-weight: 850;
}

.price {
  font-weight: 800;
}

.box-card {
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.box-card:hover {
  transform: translateY(-3px);
  border-color: rgba(20, 184, 198, 0.36);
  box-shadow: 0 24px 52px rgba(31, 65, 88, 0.14);
}

.box-card-link {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 0;
}

.box-visual {
  position: relative;
  display: block;
  overflow: hidden;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--art-a) 22%, #fff), rgba(255, 255, 255, 0.86)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.42) 0 1px, transparent 1px 16px);
}

.box-visual::after,
.detail-visual::after {
  position: absolute;
  inset: auto 16px 14px;
  height: 1px;
  background: rgba(15, 35, 56, 0.12);
  content: "";
}

.portrait-list-visual {
  display: grid;
  place-items: center;
  aspect-ratio: 9 / 16;
  width: 100%;
  height: auto;
  padding: 10px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--art-a) 10%, #fff), color-mix(in srgb, var(--art-b) 8%, #fff));
}

.portrait-list-visual::after {
  content: none;
}

.portrait-list-visual img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.product-photo-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 210px;
  overflow: hidden;
  background: #e7fbfd;
}

.product-photo-wrap.detail {
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 0;
  padding: 0;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--art-a) 8%, #fff), color-mix(in srgb, var(--art-b) 7%, #fff)),
    repeating-linear-gradient(135deg, rgba(20, 184, 198, 0.07) 0 1px, transparent 1px 18px);
}

.product-photo-wrap.feature {
  min-height: 238px;
}

.product-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
  filter: saturate(1.04) contrast(1.02);
  transform: scale(1.02);
}

.product-photo-wrap.detail .product-photo {
  position: absolute;
  inset: 22px;
  width: calc(100% - 44px);
  height: calc(100% - 44px);
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
  filter: saturate(1.02) contrast(1.01);
  transform: none;
}

.product-photo-wrap.detail .photo-tint {
  display: none;
}

.photo-tint {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 35, 56, 0.03), rgba(15, 35, 56, 0.58)),
    linear-gradient(135deg, color-mix(in srgb, var(--art-a) 20%, transparent), color-mix(in srgb, var(--art-b) 18%, transparent));
}

.photo-title {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  z-index: 2;
  display: grid;
  gap: 7px;
  color: #fff;
  text-shadow: 0 2px 10px rgba(15, 35, 56, 0.52);
}

.photo-title span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 26px;
  padding: 4px 9px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 850;
}

.photo-title strong {
  display: -webkit-box;
  overflow: hidden;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.22;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-photo-wrap.detail .photo-title {
  right: 22px;
  bottom: 22px;
  left: 22px;
  display: none;
}

.product-photo-wrap.detail .photo-title strong {
  max-width: 680px;
  font-size: clamp(28px, 5vw, 44px);
  -webkit-line-clamp: 3;
}

.product-photo-wrap.feature .photo-title strong {
  font-size: 22px;
}

.box-art {
  position: relative;
  z-index: 1;
  width: min(86%, 220px);
  height: auto;
  filter: drop-shadow(0 18px 22px rgba(15, 35, 56, 0.2));
}

.art-shadow {
  fill: rgba(17, 24, 39, 0.16);
}

.art-side {
  fill: color-mix(in srgb, var(--art-b) 74%, #111827);
}

.art-front {
  fill: url(#box-front);
}

.art-top {
  fill: color-mix(in srgb, var(--art-a) 70%, #ffffff);
}

.art-band {
  fill: rgba(255, 255, 255, 0.64);
}

.art-seal {
  fill: rgba(255, 255, 255, 0.82);
}

.box-body {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 8px;
  background: #e7fbfd;
  color: #0e7490;
  font-size: 12px;
  font-weight: 700;
}

.signal-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  width: fit-content;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbfd;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

.signal-badge.up {
  border-color: rgba(5, 150, 105, 0.28);
  background: rgba(209, 250, 229, 0.78);
  color: #047857;
}

.signal-badge.down {
  border-color: rgba(220, 38, 38, 0.24);
  background: rgba(254, 226, 226, 0.76);
  color: #b91c1c;
}

.signal-badge.caution {
  border-color: rgba(217, 119, 6, 0.26);
  background: rgba(254, 243, 199, 0.78);
  color: #b45309;
}

.signal-badge.neutral {
  border-color: rgba(100, 116, 139, 0.24);
  background: rgba(241, 245, 249, 0.9);
  color: #475569;
}

.signal-badge.muted {
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(248, 250, 252, 0.92);
  color: #64748b;
}

.box-title {
  display: -webkit-box;
  min-height: calc(1.3em * 3);
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.card-signal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 30px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.card-signal-row > span:last-child {
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.box-stats,
.summary-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.box-card .box-stats {
  grid-template-columns: 1fr;
  gap: 7px;
}

.stat {
  min-width: 0;
  padding: 10px;
  border-radius: 8px;
  background: #f7fbfd;
}

.box-card .stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
}

.stat span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.stat strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.box-card .stat strong {
  margin-top: 0;
  font-size: 15px;
  white-space: nowrap;
}

.box-card .stat span {
  flex: 0 0 auto;
  white-space: nowrap;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 13px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

th {
  background: #f2fbfd;
  color: #0e7490;
  font-size: 12px;
  font-weight: 800;
}

tbody tr:hover {
  background: #f8fcfd;
}

td a {
  color: #0e7490;
  font-weight: 800;
}

.detail-visual {
  position: relative;
  height: clamp(340px, 42vw, 520px);
  min-height: 0;
  display: block;
  margin: -18px -18px 18px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--art-a) 22%, #fff), rgba(255, 255, 255, 0.88)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.42) 0 1px, transparent 1px 18px);
}

.detail-overview .detail-visual {
  width: 100%;
  max-width: 320px;
  height: auto;
  aspect-ratio: 9 / 16;
  justify-self: center;
  margin: 0;
  border: 1px solid rgba(213, 230, 237, 0.92);
  border-radius: 8px;
}

.detail-overview .detail-visual::after {
  content: none;
}

.chart-wrap {
  height: 330px;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f8fcfd);
}

.chart-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.detail-chart-card .toolbar {
  margin-bottom: 14px;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-line {
  display: inline-block;
  width: 26px;
  height: 4px;
  border-radius: 999px;
  background: #2563eb;
}

.legend-line.avg7 {
  background: #0f9f8f;
}

.legend-line.avg30 {
  background: #f59e0b;
}

.market-chart-card {
  margin-bottom: 18px;
}

.market-chart-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.25;
}

.market-chart-summary {
  display: grid;
  min-width: 190px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fcfd;
  text-align: right;
}

.market-chart-summary span,
.market-chart-summary small,
.market-chart-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.market-chart-summary strong {
  color: var(--ink);
  font-size: 26px;
  font-weight: 950;
  line-height: 1.2;
}

.market-chart-wrap {
  height: 300px;
  max-width: none;
}

.market-chart-note {
  margin: 10px 0 0;
}

.detail-info-card {
  display: grid;
  gap: 14px;
}

.signal-card .section-head {
  margin-bottom: 14px;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.signal-tile {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(213, 230, 237, 0.68);
  border-radius: 8px;
  background: #f8fcfd;
}

.signal-tile.featured {
  background: #e7fbfd;
}

.signal-tile.featured.up {
  border-color: rgba(5, 150, 105, 0.28);
  background: rgba(209, 250, 229, 0.78);
}

.signal-tile.featured.down {
  border-color: rgba(220, 38, 38, 0.24);
  background: rgba(254, 226, 226, 0.76);
}

.signal-tile.featured.neutral {
  border-color: rgba(100, 116, 139, 0.24);
  background: rgba(241, 245, 249, 0.92);
}

.signal-tile.featured.muted {
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(248, 250, 252, 0.95);
}

.signal-tile.featured.up strong,
.signal-tile.featured.up small {
  color: #047857;
}

.signal-tile.featured.down strong,
.signal-tile.featured.down small {
  color: #b91c1c;
}

.signal-tile.featured.neutral strong,
.signal-tile.featured.neutral small {
  color: #475569;
}

.signal-tile.featured.muted strong,
.signal-tile.featured.muted small {
  color: #64748b;
}

.signal-tile span,
.signal-tile small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.5;
}

.signal-tile strong {
  display: block;
  margin: 4px 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 950;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.detail-info-card h2,
.detail-chart-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.25;
}

.detail-info-card p {
  max-width: 960px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.8;
}

.detail-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.detail-mini-grid div {
  min-width: 0;
  padding: 12px;
  border-radius: 8px;
  background: #f8fcfd;
}

.detail-mini-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.detail-mini-grid strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.25;
}

.section-head.compact {
  margin-bottom: 12px;
}

.section-head.compact h2 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
}

.related-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.related-detail-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid rgba(213, 230, 237, 0.92);
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
  box-shadow: var(--soft-shadow);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.related-detail-card:hover {
  transform: translateY(-2px);
  border-color: rgba(20, 184, 198, 0.36);
  box-shadow: 0 18px 42px rgba(31, 65, 88, 0.12);
}

.related-detail-visual {
  position: relative;
  display: grid;
  place-items: center;
  width: 60%;
  aspect-ratio: 9 / 16;
  margin: 12px auto 0;
  padding: 0;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(231, 251, 253, 0.72), rgba(255, 255, 255, 0.92)),
    repeating-linear-gradient(135deg, rgba(20, 184, 198, 0.08) 0 1px, transparent 1px 16px);
}

.related-detail-visual img {
  display: block;
  position: absolute;
  inset: 14px;
  width: calc(100% - 28px);
  height: calc(100% - 28px);
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
}

.related-detail-body {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 10px 12px 12px;
}

.related-detail-body strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.32;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.related-detail-body p {
  margin: 0;
  color: var(--ink);
  font-size: 21px;
  font-weight: 950;
  line-height: 1.1;
}

.related-detail-body small {
  font-size: 12px;
}

canvas {
  width: 100%;
  height: 100%;
}

.latest-list,
.related-list {
  display: grid;
  gap: 10px;
}

.article-card p,
.notice p {
  color: var(--muted);
  line-height: 1.7;
}

.article-card {
  display: grid;
  align-content: space-between;
  min-height: 180px;
}

.card-grid.compact .box-card-link {
  grid-template-rows: 170px 1fr;
  min-height: 352px;
}

.card-grid.compact .product-photo-wrap {
  min-height: 170px;
}

.card-grid.compact .box-title {
  font-size: 18px;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr);
  gap: 16px;
}

.admin-section {
  padding-top: 22px;
}

.admin-tabs {
  position: static;
  top: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -22px calc(clamp(16px, 4vw, 48px) * -1) 18px;
  padding: 12px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(248, 252, 253, 0.92);
  box-shadow: 0 10px 28px rgba(31, 65, 88, 0.06);
  backdrop-filter: blur(16px);
}

.admin-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid rgba(213, 230, 237, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  font-weight: 850;
}

.admin-tabs a.is-active {
  border-color: rgba(20, 184, 198, 0.42);
  background: #e7fbfd;
  color: var(--ink);
}

.admin-tabs #logoutAdminTop {
  margin-left: auto;
}

.admin-layout.wide {
  align-items: start;
  grid-template-columns: minmax(340px, 0.95fr) minmax(360px, 1.05fr);
}

.compact-toolbar {
  align-items: center;
  margin-bottom: 14px;
}

.compact-toolbar h2,
.compact-toolbar p {
  margin: 0;
}

.admin-help {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.7;
}

.admin-help code,
.notice code {
  padding: 2px 5px;
  border-radius: 6px;
  background: #eef9fb;
  color: #0e7490;
  font-size: 0.92em;
}

.admin-form {
  display: grid;
  gap: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.form-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.form-grid input,
.form-grid select,
.admin-form textarea,
.json-output,
.json-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font: inherit;
  outline: none;
}

.form-grid input,
.form-grid select {
  min-height: 42px;
  padding: 9px 10px;
}

.admin-form textarea {
  min-height: 84px;
  padding: 10px;
  resize: vertical;
}

.form-grid input:focus,
.form-grid select:focus,
.admin-form textarea:focus,
.json-output:focus,
.json-input:focus {
  border-color: rgba(20, 184, 198, 0.72);
  box-shadow: 0 0 0 3px rgba(20, 184, 198, 0.12);
}

.period-form-grid {
  padding: 12px;
  border: 1px solid rgba(213, 230, 237, 0.78);
  border-radius: 8px;
  background: #f8fcfd;
}

.upload-panel {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(213, 230, 237, 0.78);
  border-radius: 8px;
  background: #f8fcfd;
}

.upload-panel label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.upload-panel input[type="file"] {
  width: 100%;
  padding: 10px;
  border: 1px dashed rgba(20, 184, 198, 0.5);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.upload-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.7;
}

.json-output,
.json-input {
  min-height: 340px;
  padding: 14px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.6;
}

.json-input {
  min-height: 150px;
}

.import-box {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.import-box h3 {
  margin-bottom: 0;
}

.db-note-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.db-note-list p {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  margin: 0;
  padding: 13px;
  border: 1px solid rgba(213, 230, 237, 0.78);
  border-radius: 8px;
  background: #f8fcfd;
  color: var(--muted);
  line-height: 1.6;
}

.db-note-list strong {
  color: #0e7490;
  font-size: 13px;
}

.db-note-list span {
  min-width: 0;
}

.admin-list-panel {
  margin-top: 16px;
}

.admin-scrape-panel,
.scrape-admin-layout,
.evidence-admin-layout {
  margin-top: 16px;
}

.scrape-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.scrape-summary div {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(213, 230, 237, 0.82);
  border-radius: 8px;
  background: #f8fcfd;
}

.scrape-summary strong {
  display: block;
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
}

.scrape-summary span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.scrape-summary .ok strong {
  color: var(--green);
}

.scrape-summary .warn strong {
  color: var(--amber);
}

.scrape-summary .bad strong {
  color: var(--red);
}

.evidence-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.scrape-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.scrape-group {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(213, 230, 237, 0.88);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
}

.scrape-group.success {
  border-color: rgba(5, 150, 105, 0.24);
}

.scrape-group.error {
  border-color: rgba(220, 74, 88, 0.32);
}

.scrape-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.scrape-group-head span {
  color: #0e7490;
  font-size: 12px;
  font-weight: 850;
}

.scrape-group-head strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scrape-pages {
  display: grid;
  gap: 8px;
}

.scrape-page-pill {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(213, 230, 237, 0.78);
  border-radius: 8px;
  background: #f8fcfd;
  color: var(--ink);
  text-align: left;
}

.scrape-page-pill span,
.scrape-page-pill small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scrape-page-pill span {
  font-weight: 850;
}

.scrape-page-pill strong {
  grid-row: span 2;
  align-self: center;
  padding: 5px 8px;
  border-radius: 8px;
  background: #e8f1f5;
  color: var(--muted);
  font-size: 12px;
}

.scrape-page-pill small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.scrape-page-pill.success strong,
.status-badge.success {
  background: #dcfce7;
  color: var(--green);
}

.scrape-page-pill.empty strong,
.status-badge.empty {
  background: #fff7ed;
  color: var(--amber);
}

.scrape-page-pill.error strong,
.status-badge.error {
  background: #fff1f3;
  color: var(--red);
}

.scrape-page-pill.running strong,
.status-badge.running {
  background: #e7fbfd;
  color: #0e7490;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 8px;
  background: #e8f1f5;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.scrape-source-form .checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
}

.scrape-source-form .checkbox-label input {
  width: auto;
  min-height: 0;
}

.scrape-source-table table {
  min-width: 1080px;
}

.scrape-notice {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(220, 74, 88, 0.28);
  border-radius: 8px;
  background: #fff7f8;
}

.scrape-notice strong {
  color: var(--red);
}

.scrape-notice span {
  color: var(--muted);
  line-height: 1.6;
}

.admin-table-wrap table {
  min-width: 760px;
}

.admin-thumb {
  display: block;
  width: 46px;
  height: 64px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fcfd;
  object-fit: cover;
}

.calendar-admin-layout {
  align-items: start;
}

.calendar-tabs-panel {
  padding: 12px;
}

.calendar-admin-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.calendar-admin-tabs button {
  display: grid;
  gap: 4px;
  min-height: 70px;
  padding: 12px 14px;
  border: 1px solid rgba(213, 230, 237, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--muted);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.calendar-admin-tabs button:hover,
.calendar-admin-tabs button.is-active {
  border-color: rgba(20, 184, 198, 0.5);
  background: #e7fbfd;
  color: var(--ink);
  box-shadow: 0 12px 30px rgba(14, 116, 144, 0.1);
}

.calendar-admin-tabs strong {
  font-size: 15px;
  font-weight: 900;
}

.calendar-admin-tabs span {
  font-size: 12px;
  font-weight: 800;
}

.calendar-workflow-panel {
  margin-bottom: 18px;
}

.calendar-workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.calendar-workflow-grid div {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid rgba(213, 230, 237, 0.86);
  border-radius: 8px;
  background: #f8fcfd;
}

.calendar-workflow-grid strong {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e7fbfd;
  color: #0e7490;
  font-size: 15px;
}

.calendar-workflow-grid span {
  color: var(--ink);
  font-weight: 850;
}

.calendar-workflow-grid small {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.5;
}

.calendar-primary-panel {
  border-color: rgba(20, 184, 198, 0.42);
  box-shadow: 0 18px 42px rgba(14, 116, 144, 0.1);
}

.calendar-single-panel {
  margin-bottom: 16px;
}

.calendar-panel-title {
  margin-bottom: 14px;
}

.calendar-panel-title > span {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 5px 9px;
  border-radius: 8px;
  background: #e7fbfd;
  color: #0e7490;
  font-size: 12px;
  font-weight: 850;
}

.calendar-panel-title h2 {
  margin-bottom: 4px;
}

.calendar-admin-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
}

.calendar-admin-details > * {
  min-width: 0;
}

.calendar-admin-details summary {
  cursor: pointer;
  color: var(--ink);
  font-size: 18px;
  font-weight: 850;
}

.calendar-admin-details[open] summary {
  margin-bottom: 12px;
}

.lottery-condition-tags {
  display: grid;
  gap: 10px;
  margin: 2px 0 14px;
  padding: 12px;
  border: 1px solid rgba(213, 230, 237, 0.9);
  border-radius: 8px;
  background: #f8fcfd;
}

.lottery-condition-tags legend {
  padding: 0 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.lottery-batch-products {
  display: grid;
  gap: 10px;
  margin: 2px 0;
  padding: 12px;
  border: 1px solid rgba(20, 184, 198, 0.28);
  border-radius: 8px;
  background: #f8fcfd;
}

.lottery-batch-products legend {
  padding: 0 5px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.lottery-batch-product-rows {
  display: grid;
  gap: 10px;
}

.lottery-batch-product-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(213, 230, 237, 0.9);
  border-radius: 8px;
  background: #fff;
}

.lottery-batch-product-row label {
  min-width: 0;
}

.lottery-add-product {
  justify-self: start;
}

.lottery-add-product[hidden] {
  display: none;
}

.lottery-tag-inputs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lottery-tag-inputs label,
.lottery-profile-apply {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 5px 8px;
  border: 1px solid rgba(213, 230, 237, 0.9);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.lottery-tag-inputs input {
  width: auto;
  min-height: 0;
}

.lottery-profile-apply {
  align-self: end;
  justify-content: space-between;
  color: var(--muted);
}

.compact-form > label,
.admin-form > label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ai-export-box {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(213, 230, 237, 0.78);
  border-radius: 8px;
  background: #f8fcfd;
}

.inline-evaluation-form {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(180px, 1fr) repeat(3, auto);
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}

.inline-evaluation-form select,
.inline-evaluation-form input {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
}

.calendar-edit-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(20, 184, 198, 0.42);
  border-radius: 8px;
  background: #e7fbfd;
  color: var(--ink);
}

.calendar-draft-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(234, 88, 12, 0.36);
  border-radius: 8px;
  background: #fff7ed;
  color: var(--ink);
}

.calendar-draft-banner[hidden],
.calendar-draft-status[hidden] {
  display: none;
}

.calendar-draft-banner > div:first-child {
  display: grid;
  gap: 3px;
}

.calendar-draft-banner strong {
  font-size: 14px;
}

.calendar-draft-banner span,
.calendar-draft-status,
.admin-login-draft-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.calendar-draft-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.calendar-draft-status,
.admin-login-draft-note {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f1f5f9;
}

.calendar-edit-banner[hidden],
.calendar-prediction-edit-form[hidden] {
  display: none;
}

.form-grid-full {
  grid-column: 1 / -1;
}

[data-lottery-shimamura-only][hidden],
[data-lottery-unit-other][hidden],
[data-lottery-entry-web][hidden],
[data-lottery-entry-other][hidden],
[data-lottery-region-detail][hidden],
[data-lottery-product-condition-other][hidden],
[data-lottery-notification-other][hidden] {
  display: none;
}

.calendar-edit-banner > div {
  display: grid;
  gap: 3px;
}

.calendar-edit-banner strong {
  font-size: 14px;
}

.calendar-edit-banner span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.calendar-prediction-edit-form {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 24px;
}

.calendar-primary-panel form.is-editing {
  scroll-margin-top: 24px;
}

.calendar-row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.calendar-row-actions .mini-button {
  margin-right: 0;
}

.evidence-warning.neutral {
  background: #f8fcfd;
  color: var(--muted);
}

.status-badge.pending {
  border-color: #d5e6ed;
  background: #f8fcfd;
  color: var(--muted);
}

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

.calendar-month-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.calendar-month-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px 12px;
}

.calendar-month-head span {
  color: #08727b;
  font-size: 10px;
  font-weight: 900;
}

.calendar-month-head h2 {
  margin-top: 3px;
  color: var(--ink);
  font-size: 26px;
}

.calendar-month-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.calendar-month-actions button {
  display: grid;
  place-items: center;
  min-width: 38px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #f7f9fa;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.calendar-month-actions button:first-child,
.calendar-month-actions button:last-child {
  padding: 0;
  font-size: 24px;
  line-height: 1;
}

.calendar-month-actions button:hover {
  border-color: #9dcbd0;
  background: #eaf6f6;
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  padding: 0 20px 12px;
}

.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.calendar-legend span::before {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: #df741d;
  content: "";
}

.calendar-legend .lottery::before {
  background: #5965d8;
}

.calendar-legend .guerrilla::before {
  background: var(--green);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f3f6f7;
}

.calendar-weekdays span {
  padding: 8px 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-align: center;
}

.calendar-weekdays span:first-child {
  color: var(--red);
}

.calendar-weekdays span:last-child {
  color: #287aa1;
}

.calendar-month-grid {
  display: block;
}

.calendar-week {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-day {
  min-width: 0;
  min-height: 138px;
  padding: 8px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.calendar-day-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.calendar-day-trigger:focus-visible {
  outline: 2px solid #087d88;
  outline-offset: 2px;
  border-radius: 4px;
}

.calendar-label-short {
  display: none;
}

.calendar-mobile-filters {
  display: none;
}

.calendar-mobile-view-select {
  display: none;
}

.calendar-day:nth-child(7n) {
  border-right: 0;
}

.calendar-day.is-outside {
  background: #f7f9fa;
}

.calendar-day.is-today {
  background: #fff1f2;
  box-shadow: inset 0 0 0 2px rgba(224, 107, 120, 0.38);
}

.calendar-day-number {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-bottom: 5px;
  border-radius: 50%;
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
}

.calendar-day.is-today .calendar-day-number {
  color: #6f1d2b;
  background: #f6b8bf;
}

.calendar-day-events {
  display: grid;
  gap: 4px;
  margin-top: calc(var(--week-range-lanes, 0) * 32px);
}

.calendar-lottery-range {
  z-index: 2;
  display: flex;
  grid-row: 1;
  align-self: start;
  align-items: center;
  gap: 6px;
  min-width: 0;
  min-height: 27px;
  margin: calc(38px + var(--range-lane, 0) * 32px) 4px 0;
  padding: 4px 8px;
  overflow: hidden;
  border: 0;
  border-left: 3px solid #5965d8;
  border-radius: 4px;
  background: #eef0ff;
  box-shadow: 0 1px 0 rgba(89, 101, 216, 0.1);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.calendar-lottery-range span,
.calendar-lottery-range small {
  flex: 0 0 auto;
  white-space: nowrap;
}

.calendar-lottery-range span {
  color: #4d57bd;
  font-size: 8px;
  font-weight: 900;
}

.calendar-lottery-range strong {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 9px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-lottery-range small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
}

.calendar-day-event {
  width: 100%;
  min-width: 0;
  padding: 5px 6px;
  border: 1px dashed rgba(223, 116, 29, 0.46);
  border-left: 3px solid #df741d;
  border-radius: 4px;
  background: #fff2e6;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.calendar-day-event.lottery {
  border: 1px solid rgba(89, 101, 216, 0.3);
  border-left-color: #5965d8;
  background: #eef0ff;
}

.calendar-day-event.guerrilla {
  border: 1px solid rgba(10, 142, 101, 0.28);
  border-left-color: var(--green);
  background: #e7f7ef;
}

.calendar-day-event span,
.calendar-day-event strong,
.calendar-day-event small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-day-event span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
}

.calendar-day-event strong {
  margin-top: 1px;
  color: var(--ink);
  font-size: 9px;
  font-weight: 850;
}

.calendar-day-event small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 750;
}

.calendar-day-event .calendar-event-products {
  display: grid;
  gap: 2px;
  margin-top: 3px;
  overflow: visible;
  white-space: normal;
}

.calendar-event-products b {
  display: block;
  padding-top: 2px;
  border-top: 1px solid rgba(15, 35, 56, 0.1);
  color: var(--ink);
  font-size: 9px;
  line-height: 1.25;
  white-space: normal;
}

.calendar-event-products em {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
  font-style: normal;
  font-weight: 850;
}

.calendar-week.is-week-view .calendar-day {
  min-height: 220px;
}

.calendar-event-dialog {
  width: min(760px, calc(100% - 28px));
  max-height: calc(100dvh - 36px);
  padding: 24px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(7, 21, 34, 0.22);
}

.calendar-event-dialog::backdrop {
  background: rgba(7, 21, 34, 0.48);
}

.calendar-event-dialog h2 {
  margin: 5px 0 18px;
  font-size: clamp(20px, 3vw, 28px);
}

.calendar-event-dialog dl {
  display: grid;
  gap: 0;
  margin: 0 0 20px;
  border-top: 1px solid var(--line);
}

.calendar-event-dialog dl > div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.calendar-event-dialog dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.calendar-event-dialog dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 750;
}

.calendar-event-dialog > .mini-button {
  margin-top: 16px;
}

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

.loader-review-article .compatibility-market-link {
  display: grid;
  gap: 2px;
  color: inherit;
  text-decoration: none;
}

.loader-review-article .compatibility-market-link em {
  color: var(--accent, #087f8c);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
}

.loader-review-article .compatibility-market-link:hover em,
.loader-review-article .compatibility-market-link:focus-visible em {
  text-decoration: underline;
}

.calendar-date-detail-list {
  display: grid;
  gap: 10px;
}

.calendar-date-detail-item {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-left: 3px solid #df741d;
  border-radius: 8px;
  background: #fffaf5;
}

.calendar-date-detail-item.lottery,
.calendar-date-detail-item.lottery-range {
  border-left-color: #5965d8;
  background: #f7f7ff;
}

.calendar-date-detail-item.guerrilla {
  border-left-color: var(--green);
  background: #f4fbf7;
}

.calendar-date-detail-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.calendar-date-detail-item h3 {
  margin: 5px 0 2px;
  color: var(--ink);
  font-size: 16px;
}

.calendar-date-detail-item p,
.calendar-date-detail-item small {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.calendar-date-detail-item small {
  margin-top: 3px;
}

.calendar-date-detail-item .mini-button {
  margin-top: 9px;
}

.calendar-date-detail-empty {
  margin: 0;
  padding: 20px 4px;
  color: var(--muted);
  text-align: center;
}

.calendar-lottery-period {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  margin: -4px 0 18px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #f3f5ff;
}

.calendar-lottery-period span,
.calendar-lottery-detail-card dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.calendar-lottery-period strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
}

.calendar-guerrilla-period {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  margin: -4px 0 18px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #f0faf5;
}

.calendar-guerrilla-period span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.calendar-guerrilla-period strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
}

.calendar-lottery-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 14px;
}

.calendar-lottery-detail-card {
  padding: 16px;
  border: 1px solid rgba(89, 101, 216, 0.22);
  border-radius: 8px;
  background: #fff;
}

.calendar-lottery-detail-product {
  display: grid;
  gap: 5px;
  margin-bottom: 6px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.calendar-lottery-detail-product span {
  width: fit-content;
  padding: 3px 7px;
  border-radius: 999px;
  color: #4652bd;
  background: #eef0ff;
  font-size: 10px;
  font-weight: 900;
}

.calendar-lottery-detail-product h3 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.45;
}

.calendar-lottery-detail-card dl {
  margin: 0 0 14px;
  border-top: 0;
}

.calendar-lottery-detail-card dl > div {
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 0;
}

.calendar-lottery-detail-card dd {
  line-height: 1.55;
}

.calendar-guerrilla-detail-grid {
  display: grid;
  gap: 12px;
}

.calendar-guerrilla-detail-card {
  padding: 16px;
  border: 1px solid rgba(16, 150, 104, 0.24);
  border-radius: 8px;
  background: #fff;
}

.calendar-guerrilla-detail-card dl {
  margin-bottom: 14px;
  border-top: 0;
}

.calendar-guerrilla-detail-card dl > div {
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 0;
}

.calendar-more {
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
}

.calendar-month-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 24px;
  margin-top: 44px;
}

.calendar-agenda {
  min-width: 0;
}

.calendar-agenda.full-width {
  grid-column: 1 / -1;
}

.calendar-agenda .section-head {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.calendar-agenda .lead {
  font-size: 13px;
}

.coming-soon {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: min(520px, 62vh);
  margin-top: 18px;
  padding: 70px 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.coming-soon > span {
  color: #087d88;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.coming-soon h2 {
  margin-top: 12px;
  color: var(--ink);
  font-size: clamp(30px, 5vw, 52px);
}

.coming-soon p {
  max-width: 580px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.8;
}

.coming-soon a {
  margin-top: 26px;
  padding: 10px 16px;
  border: 1px solid #bcd8dc;
  border-radius: 6px;
  color: #075d66;
  background: #edf8f8;
  font-size: 12px;
  font-weight: 900;
}

.calendar-public-grid {
  display: grid;
  gap: 22px;
}

.calendar-section .section-head {
  margin-bottom: 16px;
}

.calendar-card-list {
  display: grid;
  gap: 12px;
}

.calendar-card-list.compact-list {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.calendar-sale-groups {
  display: grid;
  gap: 12px;
}

.calendar-sale-group {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(5, 150, 105, 0.24);
  border-left: 4px solid #0a8e65;
  border-radius: 8px;
  background: #fff;
}

.calendar-sale-group.calendar-brand-animate {
  border-color: rgba(52, 119, 193, 0.24);
  border-left-color: #3477C1;
}

.calendar-sale-group.calendar-brand-ionstyle {
  border-color: rgba(167, 33, 124, 0.24);
  border-left-color: #A7217C;
}

.calendar-sale-group.is-ended {
  opacity: 0.55;
  filter: grayscale(0.3);
}

.calendar-sale-group.is-ended .calendar-sale-when,
.calendar-sale-group.is-ended .calendar-sale-heading h3,
.calendar-sale-group.is-ended .calendar-sale-products li > strong {
  color: #6e7b85;
}

.calendar-sale-group.calendar-brand-ionstyle .calendar-sale-when {
  background: #f3eeff;
}

.calendar-sale-group.calendar-brand-animate .calendar-sale-when {
  background: #f1f8ff;
}

.calendar-sale-when {
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 18px;
  border-right: 1px solid var(--line);
  background: #f2faf7;
}

.calendar-sale-when strong {
  color: var(--ink);
  font-size: 17px;
}

.calendar-sale-when span {
  color: #087d63;
  font-size: 15px;
  font-weight: 900;
}

.calendar-sale-when small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.calendar-sale-content {
  min-width: 0;
  padding: 16px 18px 18px;
}

.calendar-sale-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.calendar-sale-heading h3 {
  color: var(--ink);
  font-size: 17px;
}

.calendar-sale-condition {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid rgba(5, 150, 105, 0.18);
  border-radius: 6px;
  color: #087556;
  background: #edf9f4;
  font-size: 11px;
  font-weight: 850;
}

.calendar-sale-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.calendar-sale-products li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px 0;
  border-top: 1px solid #e6eef0;
}

.calendar-sale-products li > span {
  min-width: 48px;
  padding: 3px 6px;
  border-radius: 4px;
  color: #08727b;
  background: #edf7f8;
  font-size: 10px;
  font-weight: 900;
  text-align: center;
}

.calendar-sale-products li > strong {
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.4;
}

.calendar-event-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(213, 230, 237, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--soft-shadow);
}

.calendar-event-card.calendar-brand-ionstyle {
  border-color: rgba(167, 33, 124, 0.24);
  border-left: 4px solid #A7217C;
}

.calendar-event-card.calendar-brand-animate {
  border-color: rgba(52, 119, 193, 0.24);
  border-left: 4px solid #3477C1;
}

.calendar-event-card.is-ended {
  opacity: 0.55;
  filter: grayscale(0.3);
}

.calendar-event-card.is-ended .calendar-event-date,
.calendar-event-card.is-ended .calendar-event-body h3,
.calendar-event-card.is-ended p,
.calendar-event-card.is-ended .calendar-kicker,
.calendar-event-card.is-ended .calendar-lottery-period-line strong,
.calendar-event-card.is-ended .calendar-condition strong {
  color: #6e7b85;
}

button.calendar-event-card {
  width: 100%;
  appearance: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

button.calendar-event-card:hover {
  border-color: rgba(89, 101, 216, 0.5);
  transform: translateY(-1px);
}

button.calendar-event-card:focus-visible {
  outline: 3px solid rgba(14, 116, 144, 0.28);
  outline-offset: 3px;
}

.calendar-event-card.prediction {
  border-color: rgba(223, 116, 29, 0.38);
  background: linear-gradient(135deg, rgba(255, 242, 230, 0.96), rgba(255, 255, 255, 0.98));
}

.calendar-event-card.prediction {
  display: block;
}

.calendar-prediction-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 14px;
  align-items: stretch;
}

.calendar-prediction-title {
  min-width: 0;
}

.calendar-prediction-date {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.15;
}

.calendar-prediction-title h3 {
  margin: 8px 0 0;
}

.calendar-prediction-image {
  display: grid;
  place-items: center;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(213, 230, 237, 0.9);
  border-radius: 8px;
  background: #f8fcfd;
  box-sizing: border-box;
  padding: 12px;
}

.calendar-prediction-image img {
  display: block;
  width: 100%;
  min-height: 0;
  height: 100%;
  object-fit: contain;
}

@media (min-width: 761px) {
  .calendar-prediction-hero {
    display: block;
    position: relative;
    padding-right: 126px;
  }

  .calendar-prediction-image {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 112px;
    height: auto;
  }

  .calendar-prediction-title .calendar-meta-row {
    margin-bottom: 0;
  }

  .calendar-event-card.prediction .calendar-event-body > p {
    margin-top: 14px;
  }
}

.calendar-event-card.lottery {
  border-color: rgba(89, 101, 216, 0.28);
  background: linear-gradient(135deg, rgba(238, 240, 255, 0.94), rgba(255, 255, 255, 0.98));
}

.calendar-event-card.guerrilla {
  border-color: rgba(5, 150, 105, 0.22);
}

.calendar-event-date {
  display: grid;
  align-content: center;
  gap: 4px;
  min-height: 82px;
  padding: 12px;
  border: 1px solid rgba(213, 230, 237, 0.9);
  border-radius: 8px;
  background: #f8fcfd;
}

.calendar-event-date strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.1;
}

.calendar-event-date span {
  color: #0e7490;
  font-size: 13px;
  font-weight: 850;
}

.calendar-event-type-badge {
  display: inline-flex;
  width: fit-content;
  margin-top: 2px;
  padding: 4px 8px;
  border: 1px solid rgba(223, 116, 29, 0.26);
  border-radius: 999px;
  color: #9a4a0a;
  background: #fff3e0;
  font-size: 11px;
  font-weight: 900;
}

.calendar-event-body {
  min-width: 0;
}

.calendar-kicker {
  display: block;
  margin-bottom: 5px;
  color: #0e7490;
  font-size: 12px;
  font-weight: 850;
}

.calendar-brand-ionstyle {
  color: #0f172a;
}

.calendar-brand-animate {
  color: #0f172a;
}

.calendar-day-event.calendar-brand-ionstyle {
  border-color: rgba(167, 33, 124, 0.32);
  border-left-color: #A7217C;
  background: #f7f4ff;
}

.calendar-day-event.calendar-brand-animate {
  border-color: rgba(52, 119, 193, 0.32);
  border-left-color: #3477C1;
  background: #eef5ff;
}

.calendar-lottery-range.calendar-brand-ionstyle {
  border-left-color: #A7217C;
  background: #f2f0ff;
}

.calendar-lottery-range.calendar-brand-animate {
  border-left-color: #3477C1;
  background: #edf4ff;
}

.calendar-event-body h3 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
}

.calendar-event-body p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.65;
}

.calendar-condition {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 8px;
  margin-top: 8px !important;
  padding: 9px 10px;
  border-radius: 8px;
  background: #f8fcfd;
}

.calendar-condition strong,
.calendar-lottery-period-line strong {
  color: var(--ink);
  font-size: 12px;
}

.calendar-prediction-details {
  display: grid;
  gap: 7px;
  margin: 8px 0 10px;
  padding: 8px 10px;
  border: 1px dashed #f0d4ac;
  border-radius: 8px;
  background: #fffbf5;
}

.calendar-prediction-site {
  display: inline-block;
  width: auto;
  max-width: none;
  margin-top: 0;
  margin-bottom: 10px;
  padding: 7px 14px;
}

.calendar-prediction-site strong {
  display: inline-block;
  width: auto;
  white-space: nowrap;
}

.calendar-prediction-details div {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
}

.calendar-prediction-details span {
  color: #7f5f2b;
  font-size: 11px;
  font-weight: 900;
}

.calendar-prediction-details strong {
  min-width: 0;
  color: #3e2b0a;
  font-size: 13px;
  line-height: 1.45;
}

.calendar-condition span,
.calendar-lottery-period-line span {
  min-width: 0;
}

.calendar-lottery-period-line {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 8px;
}

.calendar-card-tap-hint {
  display: inline-flex;
  margin-top: 10px;
  color: #4f5cc5;
  font-size: 12px;
  font-weight: 850;
}

.calendar-lottery-product-list {
  display: grid;
  gap: 0;
  margin: 10px 0;
  padding: 0;
  border-top: 1px solid rgba(89, 101, 216, 0.16);
  list-style: none;
}

.calendar-lottery-product-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(89, 101, 216, 0.16);
}

.calendar-lottery-product-list strong {
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}

.calendar-lottery-product-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
  text-align: right;
}

.calendar-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.mini-button {
  min-height: 32px;
  margin-right: 6px;
  padding: 6px 10px;
  border: 1px solid rgba(20, 184, 198, 0.28);
  border-radius: 8px;
  background: #e7fbfd;
  color: #0e7490;
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
}

.mini-button.disabled {
  opacity: 0.42;
  pointer-events: none;
}

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

.evidence-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(213, 230, 237, 0.88);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
}

.evidence-card.suspect {
  border-color: rgba(245, 158, 11, 0.42);
  background: #fffdf7;
}

.evidence-card.unmatched {
  opacity: 0.78;
}

.evidence-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.evidence-card-head div {
  min-width: 0;
}

.evidence-card-head span {
  color: #0e7490;
  font-size: 12px;
  font-weight: 850;
}

.evidence-card-head h3 {
  margin: 2px 0 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
}

.evidence-price-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.evidence-price-row p {
  min-width: 0;
  margin: 0;
  padding: 12px;
  border-radius: 8px;
  background: #f8fcfd;
}

.evidence-price-row span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.evidence-price-row strong {
  display: block;
  margin-top: 6px;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.2;
}

.evidence-warning {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff7ed;
  color: #b45309;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.6;
}

.evidence-items {
  display: grid;
  gap: 8px;
}

.evidence-match-details {
  padding: 10px;
  border: 1px solid rgba(213, 230, 237, 0.72);
  border-radius: 8px;
  background: rgba(248, 252, 253, 0.84);
}

.evidence-match-details summary {
  cursor: pointer;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.evidence-match-details .evidence-items {
  margin-top: 10px;
}

.evidence-matrix-wrap {
  box-shadow: none;
}

.evidence-matrix {
  min-width: 760px;
  table-layout: fixed;
}

.evidence-matrix th,
.evidence-matrix td {
  min-width: 112px;
  padding: 12px 10px;
  border-right: 1px solid var(--line);
  text-align: center;
  vertical-align: middle;
}

.evidence-matrix th:last-child,
.evidence-matrix td:last-child {
  border-right: 0;
}

.evidence-matrix th {
  background: #f8fcfd;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.evidence-matrix td {
  background: #fff;
}

.evidence-price-link,
.evidence-missing-link {
  display: inline-grid;
  gap: 3px;
  justify-items: center;
  min-width: 72px;
  padding: 4px 6px;
  border-radius: 8px;
  text-decoration: none;
}

.evidence-price-link {
  color: var(--ink);
}

.evidence-price-link strong {
  font-size: 16px;
  font-weight: 950;
  line-height: 1.15;
  white-space: nowrap;
}

.evidence-price-link small,
.evidence-missing-link small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.1;
}

.evidence-price-link:hover {
  background: #e7fbfd;
}

.evidence-missing-link {
  color: #dc2626;
}

.evidence-missing-link span {
  font-size: 28px;
  font-weight: 950;
  line-height: 0.95;
}

.evidence-missing-link:hover {
  background: #fff1f3;
}

.evidence-price-link.disabled,
.evidence-missing-link.disabled {
  opacity: 0.46;
  pointer-events: none;
}

.evidence-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(213, 230, 237, 0.72);
  border-radius: 8px;
  background: #fff;
}

.evidence-item div {
  min-width: 0;
}

.evidence-item span,
.evidence-item small {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.evidence-item strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.evidence-item p {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 950;
  white-space: nowrap;
}

.empty.compact {
  padding: 12px;
  font-size: 13px;
}

.mini-button:hover {
  border-color: rgba(20, 184, 198, 0.52);
  background: #d8f7fb;
}

.mini-button.danger {
  border-color: rgba(220, 74, 88, 0.22);
  background: #fff1f3;
  color: var(--red);
}

.local-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 8px;
  background: #ecfdf5;
  color: var(--green);
  font-size: 11px;
  font-weight: 850;
  vertical-align: middle;
}

.login-panel {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 18px;
  max-width: 920px;
}

.login-form {
  display: grid;
  gap: 12px;
}

.login-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.login-form input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  outline: none;
}

.login-form input:focus {
  border-color: rgba(20, 184, 198, 0.72);
  box-shadow: 0 0 0 3px rgba(20, 184, 198, 0.12);
}

.login-error {
  min-height: 24px;
  margin: 0;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
}

.security-note {
  padding: 16px;
  border: 1px solid rgba(213, 230, 237, 0.8);
  border-radius: 8px;
  background: #f8fcfd;
}

.security-note p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.empty {
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #f8fcfd;
  color: var(--muted);
  text-align: center;
}

.warning {
  color: var(--amber);
}

@media (max-width: 980px) {
  .dashboard-hero,
  .detail-grid,
  .detail-overview,
  .admin-layout,
  .admin-layout.wide,
  .login-panel {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    order: -1;
  }

  .ranking-grid,
  .article-grid,
  .latest-portrait-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid {
    grid-template-columns: repeat(auto-fit, minmax(176px, 210px));
  }

  .detail-visual {
    height: min(460px, 72vw);
  }

  .detail-overview .detail-visual {
    width: min(300px, 100%);
    max-width: 300px;
    height: auto;
  }

  .public-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .related-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .related-detail-visual {
    width: min(150px, 62%);
  }

  .scrape-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .evidence-price-row {
    grid-template-columns: 1fr;
  }

  h1.hero-title {
    font-size: clamp(38px, 5vw, 50px);
  }
}

@media (max-width: 820px) {
  h1.hero-title {
    white-space: normal;
  }
}

@media (max-width: 680px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
  }

  .admin-tabs {
    flex-wrap: wrap;
  }

  .admin-tabs a {
    flex: 1 1 140px;
  }

  .admin-tabs #logoutAdminTop {
    width: 100%;
    margin-left: 0;
  }

  .section-head,
  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .market-chart-summary {
    text-align: left;
  }

  .hero-panel,
  .featured-product,
  .ranking-grid,
  .article-grid,
  .latest-portrait-grid,
  .public-summary,
  .detail-mini-grid,
  .signal-grid,
  .related-card-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .detail-copy {
    white-space: normal;
  }

  .detail-overview {
    padding: 12px;
  }

  .detail-summary {
    padding: 4px;
  }

  .detail-overview .detail-visual {
    width: min(270px, 100%);
    max-width: 270px;
    height: auto;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .card-grid > .box-card {
    max-width: none;
  }

  .shelf-head {
    align-items: start;
    flex-direction: column;
  }

  .shelf-scroll {
    grid-auto-columns: minmax(164px, 178px);
    gap: 14px;
    margin-right: calc(clamp(16px, 4vw, 48px) * -1);
    padding-right: clamp(16px, 4vw, 48px);
  }

  .ranking-product-card {
    grid-template-rows: 238px 1fr;
  }

  .box-card-link {
    grid-template-rows: auto 1fr;
    min-height: 0;
  }

  .box-stats,
  .summary-stats {
    grid-template-columns: 1fr;
  }

  .scrape-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .evidence-item {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .evidence-item strong,
  .evidence-item span,
  .evidence-item small {
    white-space: normal;
  }

  .evidence-card-head {
    flex-direction: column;
  }

  .inline-evaluation-form,
  .calendar-event-card {
    grid-template-columns: 1fr;
  }

  .calendar-card-list.compact-list,
  .calendar-admin-tabs,
  .calendar-workflow-grid,
  .form-grid.two {
    grid-template-columns: 1fr;
  }

  .chart-wrap {
    height: 270px;
    padding: 8px;
  }

  h1 {
    font-size: 34px;
  }

  h1.hero-title {
    font-size: 40px;
    white-space: normal;
  }
}

@media (max-width: 380px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

/* ONE PIECE BOX loader review: long-form reading layout */
.article-page.loader-review-article {
  box-sizing: border-box;
  width: min(calc(100% - 48px), 820px);
  padding-top: 38px;
  color: #24384a;
}

.loader-review-article .article-header {
  max-width: none;
}

.loader-review-article .article-header h1 {
  max-width: 780px;
  font-size: clamp(30px, 3.8vw, 42px);
  line-height: 1.18;
  letter-spacing: -0.025em;
  overflow-wrap: normal;
  text-wrap: wrap;
  word-break: normal;
}

.loader-review-article .article-title-main,
.loader-review-article .article-title-review {
  display: block;
}

.loader-review-article .article-title-main {
  color: var(--ink);
}

.loader-review-article .article-title-review {
  margin-top: 5px;
  color: #087f8c;
}

.loader-review-article .article-title-scope {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 16px;
  align-items: center;
  margin: 18px 0 0;
  padding-left: 13px;
  border-left: 3px solid #14b8c6;
  color: #52687c;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.6;
}

.loader-review-article .article-title-scope strong {
  color: #087f8c;
}

.loader-review-article .article-eyecatch {
  overflow: hidden;
  margin: 24px 0 0;
  border: 1px solid #d8e3e8;
  border-radius: 18px;
  background: #eef3f5;
  box-shadow: 0 14px 36px rgba(20, 42, 58, 0.1);
}

.loader-review-article .article-eyecatch img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.loader-review-article .article-lead {
  max-width: 760px;
  margin-top: 26px;
  font-size: 17px;
  line-height: 2;
}

.loader-review-article .article-byline {
  margin-top: 22px;
  font-size: 13px;
}

.loader-review-article .article-disclosure {
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 36px 0;
  padding: 20px 22px;
  border: 0;
  border-left: 4px solid #14b8c6;
  border-radius: 0 10px 10px 0;
  background: #f4fafb;
}

.loader-review-article .article-disclosure strong {
  font-size: 13px;
  white-space: normal;
}

.loader-review-article .article-disclosure p {
  font-size: 14px;
  line-height: 1.9;
}

.loader-review-article .article-index-detailed {
  display: block;
  scroll-margin-top: 88px;
  margin: 38px 0 72px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #88c5cc;
  border-radius: 16px;
  background: #eff8f9;
  box-shadow: 0 12px 30px rgba(20, 42, 58, 0.08);
}

.loader-review-article .article-index-heading {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 14px 86px;
  border: 0;
  background: linear-gradient(135deg, #087f8c 0%, #1594a2 100%);
  color: #fff;
  cursor: pointer;
  list-style: none;
}

.loader-review-article .article-index-heading::-webkit-details-marker {
  display: none;
}

.loader-review-article .article-index-heading:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.9);
  outline-offset: -5px;
}

.loader-review-article .article-index-title {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.loader-review-article .article-index-heading strong {
  color: #fff;
  font-size: 20px;
  letter-spacing: 0.06em;
}

.loader-review-article .article-index-icon {
  display: grid;
  gap: 3px;
  width: 18px;
}

.loader-review-article .article-index-icon i {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: -5px 0 0 -1px currentColor;
}

.loader-review-article .article-index-toggle {
  position: absolute;
  right: 16px;
  display: inline-grid;
  min-width: 52px;
  min-height: 28px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.loader-review-article .article-index-detailed:not([open]) .when-open,
.loader-review-article .article-index-detailed[open] .when-closed {
  display: none;
}

.loader-review-article .article-index-body {
  padding: 14px 24px 18px;
  background: #eff8f9;
}

.loader-review-article .article-index-guide {
  margin: 0 0 5px;
  color: #647b89;
  font-size: 12px;
  line-height: 1.6;
}

.loader-review-article .article-index ol {
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
}

.loader-review-article .article-index li + li {
  border-top: 1px solid #e6edf0;
}

.loader-review-article .article-index a {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 46px;
  padding: 9px 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #18364a;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.55;
}

.loader-review-article .article-index a::after {
  content: none;
}

.loader-review-article .article-index a > span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 7px;
  background: #d9eef1;
  color: #0b8792;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.loader-review-article .article-index a:hover,
.loader-review-article .article-index a:focus-visible {
  color: #087f8c;
  background: rgba(255, 255, 255, 0.72);
}

.loader-review-article .article-section {
  margin-top: 72px;
  padding-top: 72px;
  border-top: 1px solid #dce6eb;
}

.loader-review-article .review-conclusion {
  margin-top: 0;
  padding: 34px;
  border-top: 0;
}

.loader-review-article .article-section-heading {
  max-width: none;
  margin-bottom: 30px;
}

.loader-review-article .article-section-heading > p {
  margin-bottom: 12px;
  font-size: 11px;
  letter-spacing: 0.14em;
}

.loader-review-article .article-section-heading h2 {
  font-size: clamp(28px, 3.3vw, 36px);
  line-height: 1.42;
  letter-spacing: -0.015em;
}

.loader-review-article .article-section-heading > span {
  max-width: 720px;
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.9;
}

.loader-review-article .conclusion-grid,
.loader-review-article .evidence-grid,
.loader-review-article .spec-with-summary,
.loader-review-article .article-photo-grid,
.loader-review-article .decision-columns,
.loader-review-article .purchase-panel,
.loader-review-article .rating-panel,
.loader-review-article .article-related {
  grid-template-columns: minmax(0, 1fr);
}

.loader-review-article .conclusion-grid {
  gap: 28px;
}

.loader-review-article .conclusion-main > p {
  font-size: 16px;
  line-height: 1.95;
}

.loader-review-article .conclusion-main ul {
  gap: 10px;
  font-size: 15px;
  line-height: 1.8;
}

.loader-review-article .conclusion-facts dt,
.loader-review-article .conclusion-facts dd {
  font-size: 13px;
  line-height: 1.65;
}

.loader-review-article .evidence-grid,
.loader-review-article .article-photo-grid {
  gap: 28px;
}

.loader-review-article .evidence-grid figure,
.loader-review-article .article-photo-grid figure {
  width: min(100%, 660px);
  margin-inline: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.loader-review-article .evidence-grid img,
.loader-review-article .article-photo-grid img {
  height: min(75vh, 680px);
  aspect-ratio: auto;
  object-fit: contain;
  background: #eef3f5;
}

.loader-review-article figcaption,
.loader-review-article .evidence-grid figcaption {
  font-size: 13px;
  line-height: 1.8;
}

.loader-review-article .spec-with-summary,
.loader-review-article .purchase-panel {
  gap: 24px;
}

.loader-review-article .spec-summary-card p,
.loader-review-article .purchase-panel p,
.loader-review-article .spec-summary-card ul,
.loader-review-article .purchase-panel ul {
  font-size: 14px;
  line-height: 1.9;
}

.loader-review-article .article-spec-list dt,
.loader-review-article .article-spec-list dd {
  font-size: 14px;
  line-height: 1.7;
}

.loader-review-article .buyer-question-list,
.loader-review-article .review-points {
  gap: 16px;
}

.loader-review-article .buyer-question-list article,
.loader-review-article .review-points article {
  padding: 24px;
  border: 0;
  background: #f5f8f9;
}

.loader-review-article .buyer-question-list h3,
.loader-review-article .review-points h3 {
  font-size: 18px;
  line-height: 1.6;
}

.loader-review-article .buyer-question-list p,
.loader-review-article .review-points p {
  font-size: 14px;
  line-height: 1.9;
}

.loader-review-article .article-prose {
  max-width: 720px;
  margin-inline: auto;
  font-size: 16px;
  line-height: 2;
}

.loader-review-article .article-prose h3 {
  margin-top: 38px;
  font-size: 22px;
  line-height: 1.55;
}

.loader-review-article .table-scroll-hint {
  display: none;
  margin: 0 0 8px;
  color: #647987;
  font-size: 12px;
  text-align: right;
}

.loader-review-article .test-result-table th,
.loader-review-article .test-result-table td,
.loader-review-article .comparison-table th,
.loader-review-article .comparison-table td,
.loader-review-article .compatibility-table th,
.loader-review-article .compatibility-table td {
  padding: 16px;
  font-size: 14px;
  line-height: 1.75;
}

.loader-review-article .fit-summary {
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.loader-review-article .fit-summary > div {
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.loader-review-article .fit-legend {
  margin: 20px 0;
  font-size: 14px;
  line-height: 1.75;
}

.loader-review-article .decision-columns {
  gap: 18px;
}

.loader-review-article .decision-columns > div {
  padding: 26px;
}

.loader-review-article .decision-columns h3 {
  font-size: 20px;
}

.loader-review-article .decision-columns ul {
  gap: 12px;
  font-size: 15px;
  line-height: 1.8;
}

.loader-review-article .purchase-panel {
  padding: 30px;
}

.loader-review-article .purchase-action {
  padding: 26px;
}

.loader-review-article .rating-panel {
  gap: 28px;
  padding: 34px;
}

.loader-review-article .rating-total {
  padding: 0 0 26px;
  border-right: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.loader-review-article .rating-panel dl > div {
  grid-template-columns: 150px minmax(0, 1fr);
}

.loader-review-article .rating-panel dt,
.loader-review-article .rating-panel dd strong {
  font-size: 13px;
}

.loader-review-article .final-review-copy {
  max-width: 720px;
  margin-inline: auto;
  font-size: 16px;
  line-height: 2;
}

.loader-review-article .article-note {
  font-size: 14px;
  line-height: 1.9;
}

@media (max-width: 700px) {
  .article-page.loader-review-article {
    width: min(calc(100% - 32px), 820px);
    padding: 22px 0 56px;
  }

  .loader-review-article .article-breadcrumbs {
    margin-bottom: 20px;
    font-size: 11px;
  }

  .loader-review-article .article-header h1 {
    font-size: clamp(24px, 7vw, 28px);
    line-height: 1.2;
  }

  .loader-review-article .article-title-main {
    white-space: nowrap;
  }

  .loader-review-article .article-title-review {
    margin-top: 7px;
  }

  .loader-review-article .article-title-scope {
    gap: 5px 12px;
    margin-top: 16px;
    padding-left: 11px;
    font-size: 12px;
  }

  .loader-review-article .article-lead {
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.95;
  }

  .loader-review-article .article-byline {
    gap: 7px 14px;
    font-size: 11px;
  }

  .loader-review-article .article-disclosure {
    margin: 28px 0;
    padding: 18px 16px;
  }

  .loader-review-article .article-index-detailed {
    margin: 30px 0 54px;
  }

  .loader-review-article .article-index-heading {
    display: flex;
    min-height: 54px;
    padding: 12px 72px 12px 16px;
  }

  .loader-review-article .article-index-heading strong {
    font-size: 18px;
  }

  .loader-review-article .article-index-title {
    gap: 9px;
  }

  .loader-review-article .article-index-toggle {
    right: 12px;
    min-width: 48px;
    min-height: 26px;
    font-size: 10px;
  }

  .loader-review-article .article-index-body {
    padding: 12px 14px 15px;
  }

  .loader-review-article .article-index a {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 8px;
    min-height: 46px;
    padding: 8px 2px;
    font-size: 14px;
  }

  .loader-review-article .article-section {
    margin-top: 52px;
    padding-top: 52px;
  }

  .loader-review-article .review-conclusion {
    margin-top: 0;
    padding: 24px 20px;
  }

  .loader-review-article .article-section-heading {
    margin-bottom: 24px;
  }

  .loader-review-article .article-section-heading h2,
  .loader-review-article .compatibility-heading h3 {
    font-size: 25px;
    line-height: 1.45;
  }

  .loader-review-article .article-section-heading > span {
    font-size: 14px;
  }

  .loader-review-article .conclusion-facts > div,
  .loader-review-article .article-spec-list > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
    padding: 15px 16px;
  }

  .loader-review-article .buyer-question-list article,
  .loader-review-article .review-points article {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    padding: 18px 16px;
  }

  .loader-review-article .buyer-question-list h3,
  .loader-review-article .review-points h3 {
    font-size: 16px;
  }

  .loader-review-article .buyer-question-list p,
  .loader-review-article .review-points p {
    font-size: 14px;
  }

  .loader-review-article .evidence-grid img,
  .loader-review-article .article-photo-grid img {
    height: min(72vh, 560px);
  }

  .loader-review-article .table-scroll-hint {
    display: block;
  }

  .loader-review-article .fit-legend {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
  }

  .loader-review-article .fit-legend p {
    margin: 0 0 12px;
  }

  .loader-review-article .decision-columns > div,
  .loader-review-article .purchase-panel,
  .loader-review-article .purchase-action,
  .loader-review-article .rating-panel {
    padding: 22px 18px;
  }

  .loader-review-article .rating-panel dl > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .loader-review-article .rating-total > strong {
    font-size: 56px;
  }

  .loader-review-article .article-product-button {
    padding-inline: 16px;
    font-size: 13px;
  }
}

@media (max-width: 360px) {
  .loader-review-article .article-header h1 {
    font-size: 22px;
  }
}

/* Site-wide mobile header menu v1 */
.mobile-menu-toggle {
  display: none;
}

@media (max-width: 620px) {
  body {
    padding-bottom: 0;
  }

  body.mobile-menu-open {
    overflow: hidden;
  }

  body.mobile-menu-open::before {
    position: fixed;
    z-index: 19;
    inset: 0;
    background: rgba(7, 21, 34, 0.36);
    content: "";
  }

  .topbar {
    z-index: 30;
    display: flex;
    min-height: 60px;
    padding: 8px 14px;
  }

  .mobile-menu-toggle {
    position: relative;
    z-index: 32;
    display: grid;
    place-content: center;
    gap: 5px;
    width: 46px;
    height: 46px;
    margin-left: auto;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(7, 21, 34, 0.08);
    color: var(--ink);
    cursor: pointer;
  }

  .mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 99px;
    background: currentColor;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }

  .mobile-menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .mobile-menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav {
    position: absolute;
    z-index: 31;
    top: calc(100% + 8px);
    right: 14px;
    bottom: auto;
    left: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3px;
    width: min(310px, calc(100vw - 28px));
    height: auto;
    max-height: calc(100dvh - 86px);
    margin: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.99);
    box-shadow: 0 18px 48px rgba(7, 21, 34, 0.2);
    opacity: 0;
    overflow-x: hidden;
    overflow-y: auto;
    pointer-events: none;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top right;
    visibility: hidden;
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
  }

  .nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    visibility: visible;
  }

  .nav .nav-storage,
  .nav .nav-about {
    display: flex;
  }

  .nav a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 48px;
    padding: 11px 14px;
    border-radius: 8px;
    overflow: visible;
    font-size: 14px;
    letter-spacing: 0;
    text-align: left;
    text-overflow: clip;
    white-space: nowrap;
  }

  .nav a > span {
    font-size: inherit;
    letter-spacing: inherit;
  }

  .nav a.is-active::after {
    top: 12px;
    right: auto;
    bottom: 12px;
    left: 5px;
    width: 3px;
    height: auto;
  }

  .nav-label-full {
    display: inline;
  }

  .nav-label-short {
    display: none;
  }

  .analytics-consent {
    bottom: 12px;
  }
}

/* Editorial storage article showcase. */
.storage-feature-showcase {
  margin: 30px 0 52px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid #dce6eb;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(20, 42, 58, 0.08);
}

.storage-feature-heading {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
}

.storage-feature-heading::before {
  display: block;
  width: 96px;
  height: 4px;
  margin: -24px auto 28px;
  border-radius: 999px;
  background: #14b8c6;
  content: "";
}

.storage-feature-heading p,
.article-kicker,
.article-section-heading > p,
.article-final-cta > p,
.article-related > div > p {
  margin: 0 0 10px;
  color: #67e8f9;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.storage-feature-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(27px, 3.4vw, 38px);
  line-height: 1.35;
}

.storage-feature-heading > span {
  display: block;
  margin-top: 14px;
  color: #52687c;
  font-size: 14px;
  line-height: 1.8;
}

.storage-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.storage-feature-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dce6eb;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(20, 42, 58, 0.08);
}

a.storage-feature-card {
  color: var(--ink);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

a.storage-feature-card:hover,
a.storage-feature-card:focus-visible {
  border-color: #8bdbe2;
  box-shadow: 0 14px 32px rgba(20, 42, 58, 0.14);
  transform: translateY(-3px);
}

.storage-feature-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #eaf1f3;
}

.storage-feature-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

a.storage-feature-card:hover .storage-feature-media img,
a.storage-feature-card:focus-visible .storage-feature-media img {
  transform: scale(1.025);
}

.storage-feature-status {
  position: absolute;
  z-index: 1;
  top: 14px;
  left: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(7, 31, 49, 0.9);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.storage-feature-body {
  display: grid;
  align-content: start;
  padding: 22px;
}

.storage-feature-body > p {
  margin: 0 0 7px;
  color: #087f8c;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.11em;
}

.storage-feature-body h3 {
  margin: 0;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.45;
}

.storage-feature-body > span {
  min-height: 5.4em;
  margin-top: 10px;
  color: #52687c;
  font-size: 13px;
  line-height: 1.8;
}

.storage-feature-body > strong {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 46px;
  margin-top: 18px;
  padding: 12px 15px;
  border-radius: 10px;
  background: #0f7f8a;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.storage-feature-body > strong.is-muted {
  justify-content: center;
  background: #e8eef1;
  color: #657985;
}

.storage-feature-placeholder {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.78), transparent 25%),
    linear-gradient(145deg, #dff7fa, #b9e8ed 48%, #74cbd4);
}

.storage-feature-placeholder > b {
  position: absolute;
  right: 16px;
  bottom: 14px;
  color: rgba(8, 79, 87, 0.78);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.storage-loader-visual {
  position: relative;
  width: 42%;
  aspect-ratio: 1.45 / 1;
  border: 3px solid rgba(255, 255, 255, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 16px 15px 0 rgba(8, 94, 103, 0.16), 0 18px 30px rgba(8, 94, 103, 0.18);
  transform: rotate(-4deg);
}

.storage-loader-visual::before,
.storage-loader-visual::after,
.storage-loader-visual > span {
  position: absolute;
  border: 2px solid rgba(255, 255, 255, 0.85);
  content: "";
}

.storage-loader-visual::before {
  inset: 11% 10%;
  border-radius: 4px;
}

.storage-loader-visual::after {
  top: 16%;
  right: -13%;
  width: 13%;
  height: 66%;
  border-left: 0;
  transform: skewY(-24deg);
}

.storage-loader-visual > span {
  top: -18%;
  left: 8%;
  width: 82%;
  height: 18%;
  border-bottom: 0;
  transform: skewX(-42deg);
}

.article-page {
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: 28px 0 72px;
}

.article-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 12px;
}

.article-breadcrumbs a {
  color: #087f8c;
  font-weight: 800;
}

.article-header {
  max-width: 900px;
}

.article-header h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(34px, 5.4vw, 58px);
  line-height: 1.16;
  letter-spacing: -0.035em;
}

.article-header h1 span {
  color: #087f8c;
}

.article-lead {
  max-width: 860px;
  margin: 22px 0 0;
  color: #40566a;
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.95;
}

.article-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.article-disclosure {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 20px;
  margin: 30px 0 24px;
  padding: 18px 20px;
  border: 1px solid #d5e6ed;
  border-left: 4px solid #14b8c6;
  border-radius: 12px;
  background: #f8fcfd;
}

.article-disclosure strong {
  color: #087f8c;
  font-size: 12px;
  white-space: nowrap;
}

.article-disclosure p {
  margin: 0;
  color: #52687c;
  font-size: 12px;
  line-height: 1.75;
}

.article-hero-photo,
.article-wide-photo,
.article-photo-grid figure,
.article-spec-layout figure {
  margin: 0;
}

.article-hero-photo img,
.article-wide-photo img,
.article-photo-grid img,
.article-spec-layout img {
  display: block;
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: var(--soft-shadow);
}

.article-hero-photo img {
  aspect-ratio: 16 / 9;
}

.article-hero-photo figcaption,
.article-wide-photo figcaption,
.article-photo-grid figcaption,
.article-spec-layout figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.article-verdict {
  margin: 32px 0;
  padding: clamp(24px, 4vw, 38px);
  border-radius: 18px;
  background: linear-gradient(145deg, #0c2136, #153b50);
  color: #fff;
  box-shadow: var(--shadow);
}

.article-verdict > div > p {
  margin: 0 0 7px;
  color: #67e8f9;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.article-verdict h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(24px, 3.6vw, 38px);
  line-height: 1.35;
}

.article-verdict ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.article-verdict li {
  display: grid;
  gap: 6px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.article-verdict li strong {
  color: #67e8f9;
  font-size: 12px;
}

.article-verdict li span {
  color: #e7f0f6;
  font-size: 13px;
  line-height: 1.7;
}

.article-product-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 13px 22px;
  border-radius: 10px;
  background: #ff9900;
  color: #16212b;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 8px 22px rgba(245, 137, 0, 0.24);
}

.article-product-button:hover,
.article-product-button:focus-visible {
  background: #ffad2f;
  transform: translateY(-1px);
}

.article-verdict > small,
.article-final-cta > small {
  display: block;
  margin-top: 10px;
  color: #bfd0dc;
  font-size: 10px;
}

.article-index {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 12px;
}

.article-index a {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #315067;
  font-size: 12px;
  font-weight: 800;
}

.article-section {
  scroll-margin-top: 90px;
  margin-top: 58px;
  padding-top: 2px;
}

.article-section-heading {
  max-width: 820px;
  margin-bottom: 24px;
}

.article-section-heading > p,
.article-final-cta > p,
.article-related > div > p {
  color: #087f8c;
}

.article-section-heading h2,
.article-related h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(26px, 3.5vw, 38px);
  line-height: 1.32;
}

.article-section-heading > span {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.fit-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.fit-summary > div {
  display: grid;
  gap: 3px;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.fit-summary strong {
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
}

.fit-summary span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.fit-legend {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 7px 12px;
  align-items: center;
  margin: 18px 0;
  padding: 16px;
  border-radius: 12px;
  background: #eef6f8;
}

.fit-legend p {
  margin: 0;
  color: #52687c;
  font-size: 11px;
  line-height: 1.6;
}

.fit-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 88px;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.fit-status.confirmed {
  background: #dcfce7;
  color: #047857;
}

.fit-status.supported {
  background: #dbeafe;
  color: #1d4ed8;
}

.fit-status.unsupported {
  background: #fee2e2;
  color: #b42318;
}

.fit-status.manufacturer {
  background: #dbeafe;
  color: #1d4ed8;
}

.fit-status.unverified {
  background: #edf2f5;
  color: #657789;
}

.article-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.compatibility-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.compatibility-table th,
.compatibility-table td {
  padding: 13px 15px;
  border-bottom: 1px solid #e4eef2;
  text-align: left;
  vertical-align: middle;
  font-size: 12px;
  line-height: 1.55;
}

.compatibility-table thead th {
  background: #eef6f8;
  color: #425b70;
  font-size: 10px;
  letter-spacing: 0.06em;
}

.compatibility-table tbody tr:last-child td {
  border-bottom: 0;
}

.compatibility-table tbody tr[data-fit-status="confirmed"] {
  background: rgba(220, 252, 231, 0.26);
}

.compatibility-table tbody tr[data-fit-status="supported"] {
  background: rgba(219, 234, 254, 0.22);
}

.compatibility-table tbody tr[data-fit-status="unsupported"] {
  background: rgba(254, 226, 226, 0.3);
}

.compatibility-table td:first-child a {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 10px;
  align-items: center;
  color: var(--ink);
}

.compatibility-table td:first-child strong {
  color: #087f8c;
  font-size: 11px;
}

.compatibility-table td:first-child span {
  font-weight: 800;
}

.article-note {
  margin: 16px 0 0;
  padding: 14px 16px;
  border-left: 3px solid #f59e0b;
  background: #fff8e7;
  color: #6f5526;
  font-size: 12px;
  line-height: 1.8;
}

.article-wide-photo {
  width: min(100%, 680px);
  margin: 26px auto 0;
}

.article-wide-photo img {
  max-height: 780px;
  object-fit: contain;
  background: #eef3f5;
}

.article-prose {
  max-width: 820px;
  color: #40566a;
  font-size: 15px;
  line-height: 2;
}

.article-prose p {
  margin: 0 0 16px;
}

.article-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 26px 0;
}

.article-photo-grid img {
  aspect-ratio: 3 / 4;
}

.article-spec-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  gap: 24px;
  align-items: start;
}

.article-spec-layout img {
  max-height: 600px;
  object-fit: contain;
  background: #eef3f5;
}

.article-spec-list {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.article-spec-list > div {
  display: grid;
  grid-template-columns: minmax(128px, 0.45fr) minmax(0, 1fr);
  gap: 16px;
  padding: 13px 16px;
  border-bottom: 1px solid #e4eef2;
}

.article-spec-list > div:last-child {
  border-bottom: 0;
}

.article-spec-list dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.article-spec-list dd {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.protection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.protection-grid article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.protection-grid article > span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
}

.protection-grid article.helps > span {
  background: #dcfce7;
  color: #047857;
}

.protection-grid article.separate > span {
  background: #fff1d6;
  color: #a05b00;
}

.protection-grid h3 {
  margin: 13px 0 7px;
  color: var(--ink);
  font-size: 15px;
}

.protection-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.decision-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.decision-columns > div {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.decision-columns > div:first-child {
  border-top: 4px solid #14b8c6;
}

.decision-columns > div:last-child {
  border-top: 4px solid #f59e0b;
}

.decision-columns h3 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 18px;
}

.decision-columns ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: #40566a;
  font-size: 13px;
  line-height: 1.65;
}

.article-faq details {
  background: #fff;
}

.article-final-cta {
  display: grid;
  justify-items: start;
  margin-top: 60px;
  padding: clamp(28px, 5vw, 48px);
  border-radius: 18px;
  background: linear-gradient(145deg, #0c2136, #15455a);
  color: #fff;
  box-shadow: var(--shadow);
}

.article-final-cta > p {
  color: #67e8f9;
}

.article-final-cta h2 {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-size: clamp(27px, 4vw, 42px);
  line-height: 1.35;
}

.article-final-cta > span {
  max-width: 780px;
  margin: 14px 0 22px;
  color: #d5e3ec;
  font-size: 14px;
  line-height: 1.85;
}

.article-related {
  display: grid;
  grid-template-columns: minmax(160px, 0.7fr) repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 36px;
}

.article-related > div,
.article-related > a {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}

.article-related > a {
  display: grid;
  align-content: start;
  gap: 7px;
  color: var(--ink);
}

.article-related > a strong {
  font-size: 13px;
}

.article-related > a span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.article-related h2 {
  font-size: 20px;
}

.article-index-detailed {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.review-conclusion {
  margin-top: 36px;
  padding: clamp(24px, 4vw, 38px);
  border-radius: 18px;
  background: linear-gradient(145deg, #0c2136, #153b50);
  color: #fff;
  box-shadow: var(--shadow);
}

.review-conclusion .article-section-heading > p {
  color: #67e8f9;
}

.review-conclusion .article-section-heading h2 {
  color: #fff;
}

.conclusion-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(250px, 0.7fr);
  gap: 24px;
}

.conclusion-main {
  display: grid;
  align-content: start;
  justify-items: start;
}

.conclusion-label {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(103, 232, 249, 0.13);
  color: #67e8f9;
  font-size: 10px;
  font-weight: 900;
}

.conclusion-main > p {
  margin: 14px 0;
  color: #e3edf4;
  font-size: 15px;
  line-height: 1.9;
}

.conclusion-main ul {
  display: grid;
  gap: 8px;
  margin: 0 0 22px;
  padding-left: 21px;
  color: #fff;
  font-size: 13px;
  line-height: 1.7;
}

.conclusion-main small,
.purchase-action small {
  margin-top: 9px;
  color: #bed0dd;
  font-size: 10px;
}

.conclusion-facts {
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
}

.conclusion-facts > div {
  display: grid;
  grid-template-columns: minmax(105px, 0.8fr) minmax(0, 1.2fr);
  gap: 12px;
  padding: 13px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.conclusion-facts > div:last-child {
  border-bottom: 0;
}

.conclusion-facts dt {
  color: #9fb6c7;
  font-size: 10px;
  font-weight: 800;
}

.conclusion-facts dd {
  margin: 0;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.review-conclusion > .article-note {
  border-left-color: #67e8f9;
  background: rgba(255, 255, 255, 0.07);
  color: #d6e4ed;
}

.evidence-hero {
  margin-bottom: 22px;
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.evidence-grid figure {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.evidence-grid img {
  display: block;
  width: 100%;
  height: min(58vw, 620px);
  border-radius: 12px;
  background: #eef3f5;
  object-fit: contain;
}

.evidence-grid figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.spec-with-summary {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.spec-summary-card {
  padding: 24px;
  border: 1px solid #cfe2e8;
  border-top: 4px solid #14b8c6;
  border-radius: 14px;
  background: #f8fcfd;
}

.spec-summary-card > span,
.purchase-panel > div:first-child > span {
  color: #087f8c;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.spec-summary-card h3,
.purchase-panel h3 {
  margin: 7px 0 12px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.45;
}

.spec-summary-card p,
.purchase-panel p {
  margin: 0 0 14px;
  color: #40566a;
  font-size: 13px;
  line-height: 1.85;
}

.spec-summary-card > strong {
  color: var(--ink);
  font-size: 12px;
}

.spec-summary-card ul,
.purchase-panel ul {
  display: grid;
  gap: 7px;
  margin: 10px 0 0;
  padding-left: 20px;
  color: #40566a;
  font-size: 12px;
  line-height: 1.65;
}

.buyer-question-list,
.review-points {
  display: grid;
  gap: 12px;
}

.buyer-question-list article,
.review-points article {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  padding: 19px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.buyer-question-list article > span,
.review-points article > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #dff7fa;
  color: #087f8c;
  font-size: 11px;
  font-weight: 900;
}

.buyer-question-list h3,
.review-points h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
}

.buyer-question-list p,
.review-points p {
  margin: 0;
  color: #52687c;
  font-size: 12px;
  line-height: 1.78;
}

.test-result-table,
.comparison-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.test-result-table th,
.test-result-table td,
.comparison-table th,
.comparison-table td {
  padding: 14px 15px;
  border-bottom: 1px solid #e4eef2;
  text-align: left;
  vertical-align: top;
  color: #40566a;
  font-size: 12px;
  line-height: 1.65;
}

.test-result-table thead th,
.comparison-table thead th {
  background: #eaf4f7;
  color: #35536a;
  font-size: 10px;
}

.test-result-table tbody th,
.comparison-table tbody th {
  color: var(--ink);
  font-weight: 900;
}

.result-good {
  color: #047857;
}

.result-caution {
  color: #a05b00;
}

.article-prose h3 {
  margin: 28px 0 8px;
  color: var(--ink);
  font-size: 19px;
}

.compatibility-heading {
  margin-top: 42px;
}

.compatibility-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(23px, 3vw, 32px);
  line-height: 1.35;
}

#hands-on-tests > .article-product-button {
  margin-top: 20px;
}

.good-points article {
  border-left: 4px solid #14b8c6;
}

.good-points article > span {
  background: #dcfce7;
  color: #047857;
}

.caution-points article {
  border-left: 4px solid #f59e0b;
}

.caution-points article > span {
  background: #fff1d6;
  color: #a05b00;
}

.comparison-table .is-current {
  background: rgba(220, 252, 231, 0.3);
}

.comparison-table thead .is-current {
  background: #d8f4e3;
  color: #047857;
}

.comparison-table td strong {
  color: #047857;
}

.decision-detailed > div:first-child {
  background: #f6fdf9;
}

.decision-detailed > div:last-child {
  background: #fffbf3;
}

.purchase-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.85fr);
  gap: 18px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.purchase-action {
  display: grid;
  align-content: start;
  justify-items: start;
  padding: 20px;
  border-radius: 14px;
  background: #10283d;
}

.purchase-action > strong {
  color: #67e8f9;
  font-size: 12px;
}

.purchase-action > p {
  margin-top: 9px;
  color: #d5e3ec;
}

.rating-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: 22px;
  padding: clamp(24px, 4vw, 38px);
  border-radius: 18px;
  background: linear-gradient(145deg, #0c2136, #15455a);
  color: #fff;
}

.rating-total {
  display: grid;
  align-content: center;
  justify-items: start;
  padding-right: 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.rating-total > span {
  color: #67e8f9;
  font-size: 11px;
  font-weight: 900;
}

.rating-total > strong {
  color: #fff;
  font-size: 68px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.rating-total > strong small {
  color: #9fb6c7;
  font-size: 18px;
  letter-spacing: 0;
}

.rating-total > p {
  margin: 12px 0 0;
  color: #bfd0dc;
  font-size: 10px;
  line-height: 1.7;
}

.rating-panel dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.rating-panel dl > div {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.rating-panel dt {
  color: #d7e4ec;
  font-size: 11px;
  font-weight: 800;
}

.rating-panel dd {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  gap: 10px;
  align-items: center;
  margin: 0;
}

.rating-panel dd > span {
  position: relative;
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
}

.rating-panel dd > span::after {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--score);
  border-radius: inherit;
  background: linear-gradient(90deg, #14b8c6, #67e8f9);
  content: "";
}

.rating-panel dd strong {
  color: #fff;
  font-size: 11px;
  text-align: right;
}

.final-review-copy {
  max-width: 850px;
  margin-top: 22px;
  color: #40566a;
  font-size: 14px;
  line-height: 1.95;
}

.final-review-copy p {
  margin: 0 0 14px;
}

.final-rating-action {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 20px;
}

.final-rating-action > a:not(.article-product-button) {
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: #315067;
  font-size: 12px;
  font-weight: 900;
}

.ssr-article-summary {
  padding: 38px 0 24px;
}

.ssr-article-summary h1 {
  max-width: 900px;
}

.ssr-article-summary img {
  display: block;
  width: 100%;
  margin-top: 24px;
  border-radius: 18px;
}

.ssr-article-summary table {
  width: 100%;
  margin-top: 22px;
  border-collapse: collapse;
  background: #fff;
}

.ssr-article-summary th,
.ssr-article-summary td {
  padding: 10px;
  border: 1px solid var(--line);
  text-align: left;
  font-size: 12px;
}

@media (max-width: 820px) {
  .article-spec-layout {
    grid-template-columns: 1fr;
  }

  .protection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-related {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .conclusion-grid,
  .purchase-panel,
  .rating-panel,
  .spec-with-summary {
    grid-template-columns: 1fr;
  }

  .rating-total {
    padding: 0 0 22px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }
}

@media (max-width: 620px) {
  .storage-feature-showcase {
    margin: 24px 0 44px;
    padding: 22px 16px 18px;
    border-radius: 16px;
  }

  .storage-feature-heading {
    margin-bottom: 22px;
  }

  .storage-feature-heading::before {
    width: 72px;
    margin: -22px auto 22px;
  }

  .storage-feature-heading h2 {
    font-size: 25px;
  }

  .storage-feature-heading > span {
    font-size: 13px;
  }

  .storage-feature-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .storage-feature-body {
    padding: 18px;
  }

  .storage-feature-body > span {
    min-height: 0;
  }

  .article-page {
    padding-top: 18px;
    padding-bottom: 48px;
  }

  .article-header h1 br {
    display: block;
  }

  .article-header h1 {
    font-size: 28px;
  }

  .article-disclosure,
  .article-verdict ul,
  .article-photo-grid,
  .evidence-grid,
  .protection-grid,
  .decision-columns,
  .article-related {
    grid-template-columns: 1fr;
  }

  .article-disclosure strong {
    white-space: normal;
  }

  .fit-summary {
    gap: 7px;
  }

  .fit-summary > div {
    padding: 13px 10px;
  }

  .fit-summary strong {
    font-size: 23px;
  }

  .article-index {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 5px;
  }

  .article-index a {
    flex: 0 0 auto;
    min-height: 42px;
  }

  .article-product-button {
    width: 100%;
  }

  .buyer-question-list article,
  .review-points article {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
  }

  .buyer-question-list article > span,
  .review-points article > span {
    width: 36px;
    height: 36px;
  }

  .evidence-grid img {
    height: 520px;
  }

  .rating-panel dl > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .rating-total > strong {
    font-size: 58px;
  }

  .final-rating-action > a:not(.article-product-button) {
    width: 100%;
    text-align: center;
  }

  .article-section {
    margin-top: 46px;
  }

  .article-wide-photo img {
    max-height: 620px;
  }

  .article-spec-list > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

.detail-lottery-loading,
.detail-lottery-empty {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-3);
  color: var(--muted);
}

.detail-lottery-empty {
  display: grid;
  gap: 6px;
}

.detail-lottery-empty strong {
  color: var(--ink);
}

.detail-lottery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.detail-lottery-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-3);
}

.detail-lottery-card > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.detail-lottery-card > div span,
.detail-lottery-card p,
.detail-lottery-card small {
  color: var(--muted);
}

.detail-lottery-card > div strong {
  flex: 0 0 auto;
  color: var(--blue);
}

.detail-lottery-card p,
.detail-lottery-card small {
  margin: 0;
}

.detail-lottery-card a,
.detail-lottery-manage {
  font-weight: 800;
}

.detail-lottery-manage {
  display: inline-flex;
  margin-top: 18px;
}

@media (max-width: 700px) {
  .detail-lottery-grid {
    grid-template-columns: 1fr;
  }

  .detail-lottery-card > div {
    display: grid;
    gap: 4px;
  }
}

/* 2026 market dashboard redesign */
:root {
  --bg: #f3f6f8;
  --surface: #ffffff;
  --surface-2: #eef3f5;
  --surface-3: #f7f9fa;
  --text: #152532;
  --muted: #667682;
  --line: #dce4e8;
  --blue: #1677a8;
  --cyan: #08a8b5;
  --green: #078a61;
  --red: #cc4655;
  --amber: #a96c12;
  --ink: #071522;
  --shadow: 0 12px 32px rgba(7, 21, 34, 0.07);
  --soft-shadow: 0 5px 18px rgba(7, 21, 34, 0.055);
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(8, 168, 181, 0.32);
  outline-offset: 3px;
}

.topbar {
  min-height: 68px;
  padding: 10px max(24px, calc((100vw - 1440px) / 2));
  border-bottom-color: rgba(220, 228, 232, 0.84);
  background: rgba(255, 255, 255, 0.91);
  box-shadow: 0 3px 16px rgba(7, 21, 34, 0.045);
  backdrop-filter: blur(20px) saturate(1.25);
}

.brand {
  min-width: 174px;
  gap: 11px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 7px;
  background: #071522;
  box-shadow: 0 8px 18px rgba(7, 21, 34, 0.17);
}

.brand-mark::after {
  right: 6px;
  bottom: 6px;
  width: 8px;
  height: 8px;
  background: #32c997;
}

.brand strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
}

.brand small {
  margin-top: 3px;
  font-size: 9px;
  letter-spacing: 0.08em;
}

.nav {
  gap: 2px;
  padding: 3px;
  border: 0;
  background: transparent;
}

.nav a {
  position: relative;
  min-height: 38px;
  padding: 10px 13px;
  border: 0;
  border-radius: 6px;
  font-size: 13px;
  transition: color 0.16s ease, background 0.16s ease;
}

.nav a:hover,
.nav a.is-active {
  border: 0;
  background: #edf6f7;
  color: var(--ink);
}

.nav a.is-active::after {
  position: absolute;
  right: 12px;
  bottom: 4px;
  left: 12px;
  height: 2px;
  border-radius: 99px;
  background: var(--cyan);
  content: "";
}

.nav-label-short {
  display: none;
}

.section {
  width: min(100%, 1536px);
  margin-inline: auto;
  padding: 46px clamp(22px, 4vw, 48px) 64px;
}

.section-head {
  align-items: flex-start;
  margin-bottom: 28px;
}

.eyebrow {
  margin-bottom: 10px;
  color: #087d88;
  font-size: 11px;
  letter-spacing: 0.08em;
}

h1,
h1.hero-title {
  max-width: 900px;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: clamp(34px, 4.2vw, 54px);
  font-weight: 900;
  line-height: 1.12;
  white-space: normal;
}

h2 {
  font-size: 22px;
  font-weight: 900;
}

.lead {
  max-width: 800px;
  color: var(--muted);
  font-size: clamp(15px, 1.7vw, 18px);
  font-weight: 650;
  line-height: 1.75;
}

.hero-section .section-head {
  justify-content: flex-start;
  text-align: left;
}

.hero-section .lead {
  margin-inline: 0;
}

.market-pulse {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.market-pulse-card {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 138px;
  align-content: space-between;
  gap: 8px;
  overflow: hidden;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--soft-shadow);
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

a.market-pulse-card:hover {
  transform: translateY(-2px);
  border-color: #b9cbd1;
  box-shadow: var(--shadow);
}

.market-pulse-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #94a3ad;
  content: "";
}

.market-pulse-card.gain::before {
  background: var(--green);
}

.market-pulse-card.loss::before {
  background: var(--red);
}

.market-pulse-card.coverage::before {
  background: var(--cyan);
}

.market-pulse-card.breadth::before {
  background: var(--amber);
}

.market-pulse-card > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.market-pulse-card > strong {
  color: var(--ink);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 950;
  line-height: 1;
}

.market-pulse-card.gain > strong {
  color: var(--green);
}

.market-pulse-card.loss > strong {
  color: var(--red);
}

.market-pulse-card.breadth.bullish > strong {
  color: var(--green);
}

.market-pulse-card.breadth.bearish > strong {
  color: var(--red);
}

.market-pulse-card.breadth.neutral > strong {
  color: var(--amber);
}

.market-pulse-card strong small {
  margin-left: 4px;
  color: var(--muted);
  font-size: 13px;
}

.market-pulse-card p {
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-pulse-card p b {
  margin-left: 5px;
  color: var(--ink);
  font-weight: 900;
}

.market-pulse-card p.market-pulse-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.market-pulse-product {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-pulse-card p.market-pulse-detail b {
  margin-left: 0;
  white-space: nowrap;
}

.market-pulse-card.breadth p {
  display: flex;
  justify-content: space-between;
  gap: 7px;
}

.market-pulse-card.breadth p b {
  margin: 0;
}

.market-pulse-card.breadth .breadth-up {
  color: var(--green);
}

.market-pulse-card.breadth .breadth-down {
  color: var(--red);
}

.market-breadth-bar {
  display: flex;
  height: 5px;
  overflow: hidden;
  border-radius: 3px;
  background: #e4eaed;
}

.market-breadth-bar i {
  display: block;
  min-width: 0;
}

.market-breadth-bar .up {
  background: var(--green);
}

.market-breadth-bar .flat {
  background: #9aa9b1;
}

.market-breadth-bar .down {
  background: var(--red);
}

.market-commandbar {
  margin: 22px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 4px 16px rgba(7, 21, 34, 0.035);
}

.market-commandbar .toolbar {
  align-items: flex-end;
  margin: 0;
}

.market-search-group {
  flex: 1 1 300px;
  min-width: 250px;
}

.market-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 42px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.market-search:focus-within {
  border-color: #67b6bd;
  box-shadow: 0 0 0 3px rgba(20, 184, 198, 0.12);
}

.market-search input {
  width: 100%;
  min-width: 0;
  padding: 0 12px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 13px;
  font-weight: 750;
}

.market-search button {
  min-width: 64px;
  padding: 0 14px;
  border: 0;
  border-left: 1px solid #cfe0e4;
  color: #fff;
  background: #0a7f89;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.market-search button:hover {
  background: #076d75;
}

.search-feedback {
  min-height: 13px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.control-group {
  display: grid;
  gap: 7px;
}

.control-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.segmented,
.periods {
  flex-wrap: nowrap;
  gap: 3px;
  padding: 3px;
  border-color: var(--line);
  border-radius: 7px;
  background: #f1f5f6;
}

.chip,
.period-button,
.view-button,
.action-button {
  min-height: 36px;
  border-radius: 6px;
  font-size: 13px;
}

.chip.is-active,
.action-button.primary {
  border-color: #087d88;
  background: #087d88;
  box-shadow: none;
}

.period-button.is-active,
.view-button.is-active {
  border-color: #c8dfe2;
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 2px 7px rgba(7, 21, 34, 0.07);
}

.ranking-showcase {
  gap: 44px;
  margin-top: 44px;
}

.ranking-shelf {
  overflow: hidden;
}

.shelf-head {
  margin-bottom: 14px;
}

.shelf-head h2 {
  padding-left: 14px;
  font-size: 21px;
}

.shelf-head h2::before {
  top: 3px;
  bottom: 2px;
  width: 4px;
}

.shelf-head span {
  margin-top: 4px;
  padding-left: 14px;
  font-size: 12px;
}

.shelf-head a {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: #31505d;
  font-size: 12px;
}

.shelf-head a:hover {
  border-color: #9fc9ce;
  color: #087d88;
}

.shelf-scroll {
  grid-auto-columns: minmax(184px, 204px);
  gap: 12px;
  padding: 2px 2px 12px;
  scrollbar-width: thin;
  scrollbar-color: #b7c7ce transparent;
}

.shelf-scroll::-webkit-scrollbar {
  height: 6px;
}

.shelf-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.shelf-scroll::-webkit-scrollbar-thumb {
  border: 0;
  background: #b7c7ce;
}

.ranking-product-card {
  grid-template-rows: 250px 1fr;
  border-color: var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(7, 21, 34, 0.05);
}

.ranking-product-card:hover {
  transform: translateY(-2px);
  border-color: #b8d4d7;
  box-shadow: 0 10px 24px rgba(7, 21, 34, 0.09);
}

.portrait-frame {
  background: #eef3f5;
}

.portrait-frame img {
  padding: 12px;
}

.portrait-rank {
  top: 9px;
  left: 9px;
  width: 30px;
  height: 30px;
  border-width: 1px;
  background: #087d88;
  font-size: 12px;
  box-shadow: 0 4px 12px rgba(7, 21, 34, 0.17);
}

.ranking-shelf.green .portrait-rank {
  background: var(--green);
}

.ranking-shelf.pink .portrait-rank {
  background: var(--red);
}

.ranking-shelf.blue .portrait-rank {
  background: #286f9b;
}

.ranking-shelf.gold .portrait-rank {
  background: #b7791f;
}

.portrait-body {
  gap: 9px;
  padding: 12px;
}

.shelf-empty {
  display: grid;
  grid-column: 1 / -1;
  place-items: center;
  min-height: 150px;
  padding: 24px;
  border: 1px dashed #cbd8dd;
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  font-weight: 750;
  text-align: center;
}

.portrait-body h3 {
  min-height: 43px;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.4;
}

.portrait-price {
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.portrait-price strong,
.shelf-scroll .portrait-price strong {
  font-size: 22px;
}

.portrait-metrics {
  padding: 9px 10px;
  background: var(--surface-3);
}

.metric-subvalue {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.metric-subvalue.up {
  color: var(--green);
}

.metric-subvalue.down {
  color: var(--red);
}

.section.band {
  width: auto;
  margin-top: 58px;
  padding-top: 42px;
  padding-bottom: 48px;
  background: #eaf0f2;
}

.latest-portrait-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.latest-portrait-card {
  grid-template-rows: 290px 1fr;
}

.ranking-card,
.box-card,
.detail-card,
.article-card,
.admin-panel,
.notice,
.table-wrap {
  border-color: var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--soft-shadow);
  backdrop-filter: none;
}

.detail-card,
.article-card,
.admin-panel,
.notice {
  padding: clamp(16px, 2vw, 24px);
}

.toolbar {
  gap: 14px;
}

.select-row select,
.select-row input,
.admin-filter-select,
.admin-form input,
.admin-form select,
.admin-form textarea {
  border-radius: 7px;
  background: #fff;
  box-shadow: none;
}

.card-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  justify-content: stretch;
  gap: 14px;
}

.card-grid > .box-card {
  max-width: none;
}

.box-card:hover {
  transform: translateY(-2px);
  border-color: #b8d4d7;
  box-shadow: 0 10px 26px rgba(7, 21, 34, 0.09);
}

.portrait-list-visual {
  --image-inset: 12px;
  position: relative;
  aspect-ratio: 4 / 5;
  padding: 12px;
  background: #eef3f5;
}

.portrait-list-visual img {
  position: absolute;
  inset: var(--image-inset);
  width: calc(100% - var(--image-inset) * 2);
  height: calc(100% - var(--image-inset) * 2);
  min-width: 0;
  min-height: 0;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
}

.box-body {
  gap: 10px;
  padding: 14px;
}

.box-title {
  min-height: calc(1.4em * 3);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.4;
}

.card-signal-row {
  min-height: 27px;
  font-size: 11px;
}

.signal-badge {
  min-height: 25px;
  border-radius: 6px;
  font-size: 11px;
}

.box-card .box-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.box-card .stat {
  display: grid;
  align-content: start;
  gap: 4px;
  min-height: 57px;
  padding: 8px 9px;
  border: 1px solid #e8edef;
  border-radius: 6px;
  background: #f8fafb;
}

.box-card .stat:first-child {
  grid-column: 1 / -1;
  min-height: 68px;
  border-color: #d6e7e9;
  background: #eef7f7;
}

.box-card .stat span {
  font-size: 10px;
  font-weight: 800;
}

.box-card .stat strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.box-card .stat small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.box-card .stat:first-child strong {
  color: var(--ink);
  font-size: 22px;
  font-weight: 950;
}

.list-toolbar {
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.list-search-block {
  display: grid;
  grid-template-columns: minmax(190px, 260px) auto;
  align-items: center;
  gap: 5px 10px;
}

.list-search-block .control-label {
  grid-column: 1 / -1;
}

.list-search-block input {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: 0;
  color: var(--ink);
  background: #fff;
  font-size: 13px;
  font-weight: 750;
}

.list-search-block input:focus {
  border-color: #67b6bd;
  box-shadow: 0 0 0 3px rgba(20, 184, 198, 0.12);
}

.list-search-block span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.quick-sort-tabs {
  display: flex;
  gap: 3px;
  overflow-x: auto;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f1f5f6;
  scrollbar-width: none;
}

.quick-sort-tabs::-webkit-scrollbar {
  display: none;
}

.quick-sort-tabs button {
  display: grid;
  place-items: center;
  min-height: 34px;
  padding: 0 11px;
  border: 0;
  border-radius: 5px;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
  cursor: pointer;
}

.quick-sort-tabs button:hover {
  color: var(--ink);
  background: #fff;
}

.quick-sort-tabs button.is-active {
  color: #075d66;
  background: #fff;
  box-shadow: 0 2px 8px rgba(7, 21, 34, 0.08);
}

.list-empty {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-height: 180px;
  margin-top: 16px;
  padding: 36px 20px;
  border: 1px dashed #c9d8dc;
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.list-empty strong {
  color: var(--ink);
  font-size: 17px;
}

.list-empty span {
  font-size: 12px;
  font-weight: 700;
}

.table-wrap {
  box-shadow: none;
}

th {
  background: #eef4f5;
  color: #34515e;
}

tbody tr:hover {
  background: #f5f9fa;
}

.detail-overview {
  gap: clamp(28px, 5vw, 70px);
  padding: clamp(18px, 3vw, 32px);
  border-color: var(--line);
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.detail-overview .detail-visual {
  max-width: 300px;
  border-color: #d7e0e4;
  border-radius: 7px;
  background: #eef3f5;
}

.detail-summary {
  gap: 13px;
}

.detail-badges span,
.tag {
  border-radius: 6px;
  background: #e9f5f6;
  color: #08727b;
}

.detail-price {
  font-size: clamp(46px, 6vw, 76px);
}

.public-summary .stat,
.detail-mini-grid div,
.signal-tile {
  border: 1px solid #e5ebee;
  border-radius: 7px;
  background: #f8fafb;
}

.public-summary .stat.featured,
.signal-tile.featured {
  background: #eaf6f6;
}

.chart-wrap {
  height: clamp(280px, 34vw, 390px);
  max-width: none;
  border-color: #e0e7ea;
  border-radius: 7px;
  background: #fff;
}

.market-chart-card {
  margin-top: 28px;
}

.market-chart-summary {
  border-radius: 7px;
  background: #f5f8f9;
}

.related-detail-card {
  border-color: var(--line);
  border-radius: 8px;
  box-shadow: 0 3px 12px rgba(7, 21, 34, 0.045);
}

.related-detail-visual {
  background: #eef3f5;
}

.calendar-public-grid {
  gap: 16px;
}

.calendar-event-card {
  border-color: #e1e8eb;
  border-radius: 7px;
  box-shadow: none;
}

.calendar-event-card.prediction {
  border-left: 4px solid #df741d;
}

.calendar-event-card.lottery {
  border-left: 4px solid #5965d8;
}

.calendar-event-card.guerrilla {
  border-left: 4px solid #0a8e65;
}

.admin-tabs,
.calendar-admin-tabs {
  background: rgba(255, 255, 255, 0.94);
}

.admin-tabs a,
.calendar-admin-tabs button {
  border-radius: 7px;
  box-shadow: none;
}

@media (max-width: 1100px) {
  .topbar {
    padding-inline: 22px;
  }

  .nav a {
    padding-inline: 10px;
  }

  .latest-portrait-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .latest-portrait-card {
    grid-template-rows: 340px 1fr;
  }

  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  }
}

@media (max-width: 820px) {
  .topbar {
    align-items: center;
    flex-direction: row;
    gap: 10px;
    min-height: 62px;
    padding: 9px 16px;
  }

  .brand {
    min-width: 154px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .nav {
    width: auto;
    margin-left: auto;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .section {
    padding: 34px 22px 52px;
  }

  .section.band {
    margin-inline: -22px;
  }

  .market-pulse {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .market-pulse-card {
    min-height: 128px;
    padding: 16px;
  }

  .market-commandbar .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .market-search-group {
    flex: none;
    width: 100%;
    min-width: 0;
  }

  .list-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .list-search-block {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .quick-sort-tabs {
    width: 100%;
  }

  .calendar-month-details {
    grid-template-columns: 1fr;
  }

  .calendar-agenda.full-width {
    grid-column: auto;
  }

  .period-control,
  .period-control .periods {
    width: 100%;
  }

  .period-control .periods {
    overflow-x: auto;
  }

  .period-control .period-button {
    flex: 1 0 auto;
  }

  .detail-overview {
    grid-template-columns: minmax(190px, 250px) minmax(0, 1fr);
    gap: 24px;
  }

  .detail-overview .detail-visual {
    width: 100%;
  }

  .detail-price {
    font-size: clamp(40px, 7vw, 58px);
  }
}

@media (max-width: 620px) {
  body {
    padding-bottom: 64px;
  }

  .topbar {
    position: sticky;
    display: block;
    min-height: 56px;
    padding: 8px 14px;
    backdrop-filter: none;
  }

  .brand {
    width: fit-content;
    min-width: 0;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand small {
    display: none;
  }

  .nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0;
    width: 100%;
    height: 62px;
    margin: 0;
    padding: 5px max(5px, env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) max(5px, env(safe-area-inset-left));
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -6px 20px rgba(7, 21, 34, 0.07);
    backdrop-filter: blur(18px);
  }

  .nav a {
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 48px;
    padding: 6px 2px;
    overflow: hidden;
    font-size: 9px;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav a.is-active::after {
    top: 2px;
    right: 28%;
    bottom: auto;
    left: 28%;
  }

  .nav .nav-storage {
    display: none;
  }

  .nav-label-full {
    display: none;
  }

  .nav-label-short {
    display: inline;
  }

  .admin-mode {
    padding-bottom: 0;
  }

  .section {
    padding: 28px 14px 42px;
  }

  .section-head {
    margin-bottom: 22px;
  }

  .eyebrow {
    margin-bottom: 7px;
    font-size: 9px;
  }

  h1,
  h1.hero-title {
    margin-bottom: 9px;
    font-size: clamp(29px, 9vw, 38px);
    line-height: 1.16;
  }

  .lead {
    font-size: 14px;
    line-height: 1.65;
  }

  .market-pulse {
    display: grid;
    grid-auto-columns: minmax(218px, 78vw);
    grid-auto-flow: column;
    grid-template-columns: none;
    gap: 10px;
    margin-right: -14px;
    overflow-x: auto;
    padding: 1px 14px 10px 1px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .market-pulse::-webkit-scrollbar {
    display: none;
  }

  .market-pulse-card {
    min-height: 122px;
    scroll-snap-align: start;
  }

  .market-commandbar {
    margin-top: 16px;
    padding: 10px;
  }

  .market-commandbar .segmented,
  .market-commandbar .periods {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .market-commandbar .chip {
    flex: 1 0 auto;
  }

  .market-search {
    min-height: 44px;
  }

  .market-search button {
    min-width: 58px;
    padding-inline: 10px;
  }

  .list-search-block {
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
  }

  .quick-sort-tabs {
    margin-right: -14px;
    padding-right: 14px;
    border-right: 0;
    border-radius: 7px 0 0 7px;
  }

  .quick-sort-tabs button {
    min-height: 38px;
    padding-inline: 13px;
  }

  .portrait-list-visual {
    --image-inset: 8px;
  }

  .calendar-month-head {
    padding: 14px 12px 10px;
  }

  .calendar-month-head h2 {
    font-size: 21px;
  }

  .calendar-month-actions button {
    min-width: 34px;
    min-height: 34px;
    padding-inline: 9px;
  }

  .calendar-legend {
    justify-content: flex-start;
    padding: 0 12px 10px;
  }

  .calendar-day {
    min-height: 88px;
    padding: 5px;
  }

  .calendar-day-number {
    width: 20px;
    height: 20px;
    margin-bottom: 3px;
    font-size: 10px;
  }

  .calendar-day-events {
    display: grid;
    gap: 2px;
    margin-top: calc(var(--week-range-lanes, 0) * 24px);
  }

  .calendar-lottery-range {
    gap: 3px;
    min-height: 22px;
    margin: calc(29px + var(--range-lane, 0) * 24px) 2px 0;
    padding: 2px 4px;
    border-left-width: 2px;
    border-radius: 3px;
  }

  .calendar-lottery-range span {
    display: none;
  }

  .calendar-lottery-range strong {
    font-size: 7px;
  }

  .calendar-lottery-range small {
    max-width: 45%;
    overflow: hidden;
    font-size: 6px;
    text-overflow: ellipsis;
  }

  .calendar-day-event {
    width: 100%;
    height: auto;
    padding: 2px 3px;
    border-left: 2px solid #df741d;
    border-radius: 3px;
  }

  .calendar-day-event.lottery {
    background: #eef0ff;
  }

  .calendar-day-event.guerrilla {
    background: #eaf7f2;
  }

  .calendar-day-event span,
  .calendar-more {
    display: none;
  }

  .calendar-day-event strong,
  .calendar-day-event small {
    display: block;
    overflow: hidden;
    font-size: 6px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .calendar-day-event small {
    margin-top: 1px;
  }

  .calendar-day-event .calendar-event-products {
    display: grid;
    gap: 1px;
    margin-top: 2px;
    white-space: normal;
  }

  .calendar-event-products b {
    padding-top: 1px;
    font-size: 6px;
    line-height: 1.2;
  }

  .calendar-event-products em {
    font-size: 6px;
  }

  .calendar-toolbar {
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 5px;
    margin-bottom: 12px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .calendar-toolbar::-webkit-scrollbar {
    display: none;
  }

  .calendar-toolbar .segmented {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 2px;
    padding: 2px;
    border-radius: 6px;
  }

  .calendar-toolbar .segmented {
    display: none;
  }

  .calendar-mobile-filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    flex: 1 1 auto;
    gap: 4px;
    min-width: 0;
    width: 100%;
  }

  .calendar-mobile-filter-field {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 4px;
    min-width: 0;
    color: var(--muted);
    font-size: 9px;
    font-weight: 900;
    white-space: nowrap;
  }

  .calendar-mobile-filters select {
    min-width: 0;
    height: 34px;
    padding: 0 20px 0 7px;
    border: 1px solid rgba(213, 230, 237, 0.95);
    border-radius: 6px;
    color: var(--ink);
    background: #fff;
    font: inherit;
    font-size: 10px;
    font-weight: 850;
    text-overflow: ellipsis;
  }

  .calendar-mobile-view-select {
    display: block;
    height: 34px;
    min-width: 64px;
    padding: 0 18px 0 7px;
    border: 1px solid rgba(213, 230, 237, 0.95);
    border-radius: 6px;
    color: var(--ink);
    background: #fff;
    font: inherit;
    font-size: 10px;
    font-weight: 850;
  }

  .calendar-toolbar .chip {
    flex: 0 0 auto;
    min-height: 30px;
    padding: 5px 8px;
    font-size: 10px;
    white-space: nowrap;
  }

  .calendar-toolbar .segmented:nth-child(2) .chip {
    max-width: 92px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .calendar-event-dialog {
    padding: 18px;
  }

  .calendar-event-dialog dl > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .calendar-lottery-period,
  .calendar-guerrilla-period,
  .calendar-lottery-detail-card dl > div,
  .calendar-guerrilla-detail-card dl > div,
  .calendar-condition,
  .calendar-lottery-period-line {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .calendar-month-details {
    gap: 34px;
    margin-top: 34px;
  }

  .calendar-sale-products {
    grid-template-columns: 1fr;
  }

  .calendar-lottery-product-list,
  .calendar-lottery-product-list li {
    grid-template-columns: minmax(0, 1fr);
  }

  .calendar-lottery-product-list span {
    text-align: left;
  }

  .calendar-lottery-product-list strong,
  .calendar-lottery-period-line strong,
  .calendar-sale-heading h3,
  .calendar-event-body h3,
  .calendar-event-date strong,
  .calendar-event-date span,
  .calendar-prediction-details strong,
  .calendar-prediction-details span,
  .calendar-sale-when strong,
  .calendar-sale-when span,
  .calendar-sale-when small,
  .calendar-sale-condition,
  .calendar-sale-products li > strong,
  .calendar-lottery-product-list li > strong,
  .calendar-lottery-product-list li > span,
  .calendar-condition span,
  .calendar-lottery-period-line span {
    word-break: break-word;
  }

  .ranking-showcase {
    gap: 36px;
    margin-top: 36px;
  }

  .shelf-head {
    align-items: center;
    flex-direction: row;
    gap: 8px;
  }

  .shelf-head h2 {
    font-size: 18px;
  }

  .shelf-head a {
    padding: 6px 8px;
    font-size: 10px;
  }

  .shelf-scroll {
    grid-auto-columns: minmax(158px, 172px);
    gap: 10px;
    margin-right: -14px;
    padding-right: 14px;
  }

  .ranking-product-card {
    grid-template-rows: 218px 1fr;
  }

  .portrait-body {
    padding: 10px;
  }

  .portrait-body h3 {
    min-height: 40px;
    font-size: 13px;
  }

  .portrait-price strong,
  .shelf-scroll .portrait-price strong {
    font-size: 19px;
  }

  .portrait-metrics strong {
    font-size: 15px;
  }

  .section.band {
    margin: 42px -14px -42px;
    padding: 32px 14px 40px;
  }

  .latest-portrait-grid {
    display: grid;
    grid-auto-columns: minmax(174px, 72vw);
    grid-auto-flow: column;
    grid-template-columns: none;
    gap: 10px;
    margin-right: -14px;
    overflow-x: auto;
    padding-right: 14px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .latest-portrait-grid::-webkit-scrollbar {
    display: none;
  }

  .latest-portrait-card {
    grid-template-rows: 250px 1fr;
    scroll-snap-align: start;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .box-card-link {
    grid-template-columns: 118px minmax(0, 1fr);
    grid-template-rows: none;
  }

  .portrait-list-visual {
    width: 118px;
    height: 100%;
    min-height: 236px;
    aspect-ratio: auto;
    padding: 8px;
  }

  .box-body {
    gap: 8px;
    padding: 11px;
  }

  .box-title {
    min-height: calc(1.35em * 3);
    font-size: 14px;
    line-height: 1.35;
  }

  .card-signal-row {
    display: grid;
    justify-items: start;
    min-height: 0;
  }

  .card-signal-row > span:last-child {
    display: none;
  }

  .box-card .box-stats {
    gap: 5px;
  }

  .box-card .stat {
    min-height: 50px;
    padding: 6px 7px;
  }

  .box-card .stat:first-child {
    min-height: 57px;
  }

  .box-card .stat:first-child strong {
    font-size: 19px;
  }

  .box-card .stat strong {
    font-size: 12px;
  }

  .detail-overview {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 14px;
  }

  .detail-overview .detail-visual {
    width: min(220px, 72vw);
  }

  .detail-summary {
    padding: 0;
  }

  .detail-price {
    font-size: clamp(42px, 14vw, 58px);
  }

  .public-summary,
  .detail-mini-grid,
  .signal-grid,
  .related-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary-stats .stat,
  .signal-tile,
  .detail-mini-grid div {
    min-width: 0;
    padding: 9px;
  }

  .summary-stats .stat strong,
  .signal-tile strong {
    font-size: 16px;
  }

  .chart-wrap {
    height: 250px;
    margin-inline: 0;
    padding: 5px;
  }

  .detail-chart-card .toolbar .periods,
  .market-chart-card .toolbar .periods {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .detail-chart-card .period-button,
  .market-chart-card .period-button {
    flex: 1 0 auto;
  }

  .related-detail-visual {
    width: min(128px, 70%);
  }

  .calendar-event-card {
    padding: 11px;
    grid-template-columns: 1fr;
  }

  .calendar-prediction-hero {
    grid-template-columns: minmax(0, 1fr) 120px;
    gap: 10px;
    min-height: 164px;
  }

  .calendar-prediction-date {
    font-size: 18px;
  }

  .calendar-prediction-image {
    min-height: 164px;
    height: 164px;
    box-sizing: border-box;
    padding: 10px;
  }

  .calendar-prediction-image img {
    width: 100%;
    min-height: 0;
    height: 100%;
  }

  .calendar-sale-group {
    grid-template-columns: 1fr;
  }

  .calendar-sale-when {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .calendar-sale-when,
  .calendar-sale-content {
    padding: 12px;
  }

  .calendar-sale-when strong {
    font-size: 13px;
  }

  .calendar-sale-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .calendar-sale-condition {
    white-space: normal;
  }

  .calendar-event-body h3 {
    font-size: 15px;
  }
}

/* Product detail discovery and internal links */
.ssr-product-summary {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(18px, 3vw, 34px);
  border: 1px solid rgba(213, 230, 237, 0.9);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.ssr-product-summary nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.ssr-product-summary nav a {
  color: #0e7490;
}

.ssr-product-grid {
  display: grid;
  grid-template-columns: minmax(180px, 300px) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 46px);
  align-items: center;
}

.ssr-product-grid.without-image {
  grid-template-columns: minmax(0, 1fr);
}

.ssr-product-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 360px;
  border-radius: 10px;
  object-fit: contain;
}

.ssr-product-kicker,
.ssr-product-label,
.ssr-product-code {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.ssr-product-summary h1 {
  margin: 7px 0 4px;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.ssr-product-label {
  margin-top: 22px;
}

.ssr-product-price {
  display: block;
  margin-top: 4px;
  color: #0e7490;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.15;
}

.ssr-product-summary dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 20px 0 0;
}

.ssr-product-summary dl > div {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-3);
}

.ssr-product-summary dt,
.ssr-product-summary dd {
  margin: 0;
}

.ssr-product-summary dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.ssr-product-summary dd {
  margin-top: 3px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.ssr-product-note {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.ssr-product-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.ssr-product-links a {
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid #bcd9e1;
  border-radius: 8px;
  color: #0e7490;
  font-size: 12px;
  font-weight: 900;
}

.detail-jump-nav {
  display: flex;
  gap: 7px;
  margin-bottom: 14px;
  padding: 7px;
  overflow-x: auto;
  border: 1px solid rgba(213, 230, 237, 0.88);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.8);
  scrollbar-width: thin;
}

.detail-jump-nav a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 40px;
  padding: 9px 11px;
  border-radius: 7px;
  color: #496276;
  background: #eef6f8;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.detail-jump-nav a:hover {
  color: #0e7490;
  background: #e1f5f6;
}

#price-overview,
#data-summary,
#price-history,
#market-signals,
#market-memo,
#storage-guide,
#related-products {
  scroll-margin-top: 92px;
}

.detail-context-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(213, 230, 237, 0.88);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.detail-context-bar > a,
.detail-watchlist-toggle {
  color: #0e7490;
  font-size: 12px;
  font-weight: 850;
}

.detail-watchlist-toggle {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

.detail-watchlist-toggle::before {
  content: "＋ ";
}

.detail-watchlist-toggle.is-saved::before {
  content: "✓ ";
}

.detail-popular-badge {
  padding: 5px 8px;
  border: 1px solid rgba(217, 139, 11, 0.24);
  border-radius: 6px;
  color: #98620d;
  background: #fff7e7;
  font-size: 10px;
  font-weight: 900;
}

.detail-primary-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  max-width: 620px;
}

.detail-primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid #cddde3;
  border-radius: 8px;
  background: #fff;
  color: #0e7490;
  font-family: inherit;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
  cursor: pointer;
}

.detail-primary-action.primary {
  border-color: #0e8491;
  background: #0e8491;
  color: #fff;
}

.detail-primary-action.detail-watchlist-toggle {
  padding: 10px 13px;
}

.detail-primary-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 18px rgba(15, 35, 56, 0.1);
}

.detail-action-text {
  grid-column: 1 / -1;
  width: fit-content;
  color: #0e7490;
  font-size: 11px;
  font-weight: 850;
}

.detail-section-kicker {
  margin: 0 0 5px !important;
  color: #0e7490 !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  letter-spacing: 0.12em;
}

.detail-reading-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(238, 249, 251, 0.9));
}

.detail-reading-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.detail-reading-grid > div {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(213, 230, 237, 0.82);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
}

.detail-reading-grid span,
.detail-reading-grid small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.55;
}

.detail-reading-grid strong {
  display: block;
  min-height: 1.35em;
  margin: 6px 0;
  color: var(--ink);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 950;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.detail-reading-copy {
  margin: 14px 0 0;
  padding: 13px 14px;
  border-left: 3px solid var(--cyan);
  background: rgba(255, 255, 255, 0.72);
  color: #4b6173;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.8;
}

.detail-storage-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 22px 24px;
  border-radius: 10px;
  background: linear-gradient(135deg, #102539, #0d677a);
  box-shadow: 0 18px 38px rgba(15, 35, 56, 0.16);
}

.detail-storage-cta p {
  margin: 0 0 5px;
  color: #88e4ec;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.detail-storage-cta h2 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 22px;
}

.detail-storage-cta span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  line-height: 1.65;
}

.detail-storage-cta > a {
  flex: 0 0 auto;
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.detail-storage-cta > a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.detail-storage-fit {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid #c9e1e6;
  border-left: 5px solid #0e8491;
  background: #f5fbfc;
  box-shadow: 0 16px 34px rgba(15, 35, 56, 0.12);
}

.detail-storage-fit.has-photo { grid-template-columns: 220px minmax(0, 1fr); }
.detail-storage-fit.is-caution { border-left-color: var(--amber); background: #fffaf0; }
.detail-storage-fit.is-unsupported { border-left-color: #758694; background: #f5f7f8; }
.detail-storage-fit-media { min-height: 250px; margin: 0; overflow: hidden; background: #e9f4f6; }
.detail-storage-fit-media img { width: 100%; height: 100%; min-height: 250px; object-fit: cover; object-position: center; }
.detail-storage-fit-body { display: grid; align-content: center; gap: 8px; min-width: 0; padding: 22px 24px; }
.detail-storage-fit p { margin: 0; color: #0e7490; }
.detail-storage-fit h2 { margin: 0; color: var(--ink); font-size: 22px; line-height: 1.45; }
.detail-storage-fit-body > span:not(.detail-storage-fit-badge) { color: #52687a; font-size: 12px; line-height: 1.75; }
.detail-storage-fit-badge { width: fit-content; padding: 5px 8px; border-radius: 999px; background: #dff4f7; color: #0e7490; font-size: 10px; font-weight: 900; }
.detail-storage-fit.is-caution .detail-storage-fit-badge { background: #fff0d7; color: #965e00; }
.detail-storage-fit.is-unsupported .detail-storage-fit-badge { background: #e8edf0; color: #52626e; }
.detail-storage-fit-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 5px; }
.detail-storage-fit-actions a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 13px; border: 1px solid #0e8491; border-radius: 8px; background: #0e8491; color: #fff; font-size: 12px; font-weight: 900; text-align: center; }
.detail-storage-fit-actions a + a { border-color: #c8dade; background: #fff; color: #0e7490; }

.detail-related-section {
  display: grid;
  gap: 22px;
}

.detail-related-group {
  min-width: 0;
}

.detail-related-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.detail-related-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
}

.detail-related-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.detail-list-link {
  width: fit-content;
  margin-left: auto;
  color: #0e7490;
  font-size: 13px;
  font-weight: 900;
}

@media (max-width: 900px) {
  .detail-reading-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .ssr-product-grid {
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: start;
  }

  .ssr-product-grid.without-image {
    grid-template-columns: minmax(0, 1fr);
  }

  .ssr-product-summary {
    padding: 16px;
  }

  .ssr-product-summary h1 {
    font-size: 22px;
  }

  .ssr-product-price {
    font-size: 28px;
  }

  .ssr-product-summary dl,
  .ssr-product-links {
    grid-column: 1 / -1;
  }

  .ssr-product-summary dl {
    grid-template-columns: 1fr;
  }

  .ssr-product-links a {
    width: 100%;
    min-height: 44px;
  }

  .detail-jump-nav a {
    min-height: 44px;
  }

  .detail-storage-cta,
  .detail-related-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-reading-grid {
    grid-template-columns: 1fr;
  }

  .detail-storage-cta {
    padding: 19px 17px;
  }

  .detail-storage-cta > a {
    width: 100%;
    text-align: center;
  }

  .detail-storage-fit,
  .detail-storage-fit.has-photo {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .detail-storage-fit-media { min-height: 190px; max-height: 250px; }
  .detail-storage-fit-media img { min-height: 190px; max-height: 250px; object-position: center 32%; }
  .detail-storage-fit-body { padding: 19px 17px; }
  .detail-storage-fit-actions { flex-direction: column; }
  .detail-storage-fit-actions a { width: 100%; }
}

/* Storage guide */
.storage-disclosure {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(20, 184, 198, 0.28);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(231, 251, 253, 0.94), rgba(255, 255, 255, 0.96));
}

.storage-disclosure > span {
  padding: 5px 8px;
  border-radius: 6px;
  color: #0e7490;
  background: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.storage-disclosure strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 14px;
}

.storage-disclosure p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.storage-index {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 42px;
}

.storage-index a {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #0e7490;
  background: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  font-weight: 850;
}

.storage-index a:hover {
  border-color: rgba(20, 184, 198, 0.44);
  background: #fff;
}

.storage-block {
  margin-top: 54px;
  scroll-margin-top: 96px;
}

.storage-heading {
  max-width: 760px;
  margin-bottom: 20px;
}

.storage-heading > p,
.storage-market-links > div > p {
  margin: 0 0 7px;
  color: #0e7490;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.storage-heading h2,
.storage-market-links h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.25;
}

.storage-heading > span,
.storage-market-links > div > span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.storage-purpose-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.storage-risk-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.storage-criteria-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.storage-criteria-grid article {
  position: relative;
  min-height: 190px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.storage-criteria-grid article > span {
  position: absolute;
  top: 10px;
  right: 14px;
  color: rgba(14, 116, 144, 0.1);
  font-size: 42px;
  font-weight: 950;
  line-height: 1;
}

.storage-criteria-grid h3 {
  position: relative;
  margin: 0 0 10px;
  padding-right: 42px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.5;
}

.storage-criteria-grid p {
  position: relative;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.storage-risk-grid article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(145deg, #fff, #f5fbfc);
}

.storage-risk-grid article > span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 50%;
  color: #0e7490;
  background: #e7f8fb;
  font-size: 11px;
  font-weight: 950;
}

.storage-risk-grid h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 17px;
}

.storage-risk-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.storage-purpose-card {
  position: relative;
  min-height: 264px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(213, 230, 237, 0.96);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--soft-shadow);
}

.storage-purpose-card.featured {
  border-color: rgba(20, 184, 198, 0.38);
  background: linear-gradient(155deg, #e8fbfd, #fff 72%);
}

.storage-number {
  position: absolute;
  top: 8px;
  right: 13px;
  color: rgba(14, 116, 144, 0.09);
  font-size: 52px;
  font-weight: 950;
  line-height: 1;
}

.storage-purpose-label {
  position: relative;
  margin: 0 0 12px;
  color: #0e7490;
  font-size: 11px;
  font-weight: 900;
}

.storage-purpose-card h3 {
  position: relative;
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 22px;
}

.storage-purpose-card > p:not(.storage-purpose-label) {
  position: relative;
  min-height: 78px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.storage-purpose-card > strong {
  position: relative;
  display: block;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 12px;
  line-height: 1.6;
}

.storage-purpose-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 14px;
  color: #0e7490;
  font-size: 12px;
  font-weight: 900;
}

.storage-purpose-action:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.storage-table tr[id] {
  scroll-margin-top: 96px;
}

.storage-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.storage-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  font-size: 13px;
}

.storage-table th,
.storage-table td {
  padding: 15px 14px;
  border-bottom: 1px solid #e7eff2;
  text-align: left;
  vertical-align: middle;
  line-height: 1.55;
}

.storage-table thead th {
  color: #4c6275;
  background: #f4fafb;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.storage-table tbody th {
  color: var(--ink);
  font-size: 14px;
  white-space: nowrap;
}

.storage-table tbody tr:last-child th,
.storage-table tbody tr:last-child td {
  border-bottom: 0;
}

.storage-rating {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-weight: 950;
}

.storage-rating.strong {
  color: #087556;
  background: #e5f7ef;
}

.storage-rating.good {
  color: #0e7490;
  background: #e7f8fb;
}

.storage-rating.weak {
  color: #9a6417;
  background: #fff4dd;
}

.storage-rating.neutral {
  color: #7c8b98;
  background: #f0f4f6;
}

.storage-caption {
  margin: 12px 2px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.storage-sizing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.storage-sizing-grid article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.storage-sizing-grid article > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 9px;
  color: #fff;
  background: #0e7490;
  font-size: 16px;
  font-weight: 950;
}

.storage-sizing-grid h3 {
  margin: 0 0 7px;
  color: var(--ink);
  font-size: 16px;
}

.storage-sizing-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.storage-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.storage-plan-grid article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(145deg, #fff, #f5fbfc);
}

.storage-plan-grid article > span {
  display: inline-block;
  margin-bottom: 11px;
  padding: 5px 8px;
  border-radius: 6px;
  color: #0e7490;
  background: #e7f8fb;
  font-size: 11px;
  font-weight: 900;
}

.storage-plan-grid h3 {
  margin: 0 0 9px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.5;
}

.storage-plan-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.storage-checklist {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 1px;
  border-radius: 10px;
  background: var(--line);
  list-style: none;
  overflow: hidden;
}

.storage-checklist li {
  min-height: 180px;
  padding: 20px 16px;
  background: #fff;
  counter-increment: storage-check;
}

.storage-checklist {
  counter-reset: storage-check;
}

.storage-checklist li::before {
  display: block;
  margin-bottom: 20px;
  color: #14a6b4;
  content: "0" counter(storage-check);
  font-size: 22px;
  font-weight: 950;
}

.storage-checklist strong,
.storage-checklist span {
  display: block;
}

.storage-checklist strong {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 15px;
}

.storage-checklist span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.storage-faq {
  display: grid;
  gap: 9px;
}

.storage-faq details {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.92);
}

.storage-faq summary {
  position: relative;
  padding: 17px 48px 17px 18px;
  color: var(--ink);
  cursor: pointer;
  font-size: 14px;
  font-weight: 850;
  list-style: none;
}

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

.storage-faq summary::after {
  position: absolute;
  top: 50%;
  right: 18px;
  color: #0e7490;
  content: "+";
  font-size: 22px;
  transform: translateY(-50%);
}

.storage-faq details[open] summary::after {
  content: "−";
}

.storage-faq details p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.storage-market-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 58px;
  padding: 26px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0f2338, #0e6175);
  box-shadow: 0 20px 44px rgba(15, 35, 56, 0.2);
}

.storage-market-links h2,
.storage-market-links > div > span {
  color: #fff;
}

.storage-market-links > div > span {
  opacity: 0.76;
}

.storage-market-links > div > p {
  color: #8de4eb;
}

.storage-market-links nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.storage-market-links a {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 850;
}

.storage-market-links a:hover {
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 1020px) {
  .storage-purpose-grid,
  .storage-risk-grid,
  .storage-criteria-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .storage-checklist {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .storage-disclosure {
    grid-template-columns: 1fr;
  }

  .storage-index {
    flex-wrap: nowrap;
    margin-right: -14px;
    padding-right: 14px;
    overflow-x: auto;
  }

  .storage-index a {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    min-height: 44px;
  }

  .storage-block {
    margin-top: 42px;
  }

  .storage-purpose-grid,
  .storage-risk-grid,
  .storage-criteria-grid,
  .storage-sizing-grid,
  .storage-plan-grid,
  .storage-checklist {
    grid-template-columns: 1fr;
  }

  .storage-purpose-card {
    min-height: 0;
  }

  .storage-purpose-card > p:not(.storage-purpose-label) {
    min-height: 0;
  }

  .storage-checklist li {
    min-height: 0;
  }

  .storage-market-links {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px 18px;
  }

  .storage-market-links nav {
    justify-content: flex-start;
  }
}

@media (max-width: 380px) {
  .nav a {
    font-size: 8px;
  }

  .box-card-link {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .calendar-sale-group {
    grid-template-columns: 1fr;
  }

  .calendar-sale-when {
    grid-template-columns: 1fr;
    align-items: flex-start;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .calendar-sale-when small {
    justify-self: start;
  }

  .portrait-list-visual {
    width: 104px;
  }

  .public-summary,
  .detail-mini-grid,
  .signal-grid,
  .related-card-grid {
    grid-template-columns: 1fr;
  }
}

.market-moves-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 22px 0 0;
  padding: 22px 26px;
  border: 1px solid rgba(8, 168, 181, 0.28);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(8, 168, 181, 0.1), rgba(37, 99, 235, 0.07));
  color: var(--ink);
  box-shadow: var(--soft-shadow);
}

.market-moves-entry:hover {
  border-color: rgba(8, 168, 181, 0.58);
  transform: translateY(-1px);
}

.market-moves-entry div {
  display: grid;
  gap: 5px;
}

.market-moves-entry span {
  color: #087f8c;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.market-moves-entry strong {
  font-size: 21px;
}

.market-moves-entry p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.market-moves-entry > b {
  flex: 0 0 auto;
  padding: 11px 15px;
  border-radius: 8px;
  background: #0d7380;
  color: #fff;
  font-size: 12px;
}

.movement-date-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 20px 22px;
  border-left: 4px solid var(--cyan);
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

.movement-date-bar div {
  display: grid;
  gap: 3px;
}

.movement-date-bar span,
.movement-date-bar p {
  color: var(--muted);
  font-size: 12px;
}

.movement-date-bar strong {
  color: var(--ink);
  font-size: 17px;
}

.movement-date-bar p {
  max-width: 520px;
  margin: 0;
  line-height: 1.7;
}

.movement-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.movement-summary-grid > * {
  display: grid;
  gap: 7px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--soft-shadow);
}

.movement-summary-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.movement-summary-grid strong {
  font-size: 28px;
}

.movement-summary-grid small {
  margin-left: 4px;
  color: var(--muted);
  font-size: 12px;
}

.movement-summary-grid .up strong {
  color: var(--green);
}

.movement-summary-grid .down strong {
  color: var(--red);
}

.movement-index {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
}

.movement-index a {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.movement-ranking {
  margin-top: 54px;
  scroll-margin-top: 24px;
}

.movement-result-count {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.movement-product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.movement-product-card {
  position: relative;
  display: grid;
  min-width: 0;
  padding: 17px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--soft-shadow);
}

.movement-product-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--green);
  content: "";
}

.movement-product-card.down::before {
  background: var(--red);
}

.movement-product-card:hover {
  border-color: rgba(8, 168, 181, 0.42);
  transform: translateY(-2px);
}

.movement-card-main {
  display: grid;
  grid-template-columns: minmax(92px, 0.62fr) minmax(0, 1.38fr);
  align-items: stretch;
  gap: 10px;
  min-width: 0;
}

.movement-card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 144px;
  padding: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--art-a) 12%, #fff), color-mix(in srgb, var(--art-b) 8%, #fff));
}

.movement-card-media img {
  width: 100%;
  height: 100%;
  max-height: 158px;
  object-fit: contain;
}

.movement-card-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.movement-card-head {
  display: flex;
  align-items: center;
  gap: 6px;
}

.movement-rank,
.movement-tcg,
.movement-direction {
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
}

.movement-direction {
  margin-left: auto;
  color: var(--green);
}

.movement-tcg-short {
  display: inline;
}

.movement-tcg-full {
  display: none;
}

.movement-product-card.down .movement-direction {
  color: var(--red);
}

.movement-product-card h3 {
  min-height: 44px;
  margin: 12px 0 3px;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.55;
}

.movement-card-info > small {
  min-height: 17px;
  color: var(--muted);
  font-size: 10px;
}

.movement-rate {
  margin-top: auto;
  padding-top: 14px;
  color: var(--green);
  font-size: 27px;
  line-height: 1;
}

.movement-product-card.down .movement-rate {
  color: var(--red);
}

.movement-amount {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.movement-price-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 11px;
}

.movement-price-flow span,
.movement-price-flow b {
  color: var(--muted);
}

.movement-price-flow strong {
  font-size: 12px;
}

.movement-empty {
  padding: 22px;
  border: 1px dashed var(--line);
  color: var(--muted);
  text-align: center;
}

.movement-tcg-summary {
  display: grid;
  grid-template-columns: minmax(210px, 0.7fr) minmax(0, 1.8fr);
  gap: 24px;
  margin-top: 58px;
  padding: 26px;
  border-radius: 12px;
  background: #0f2338;
  color: #fff;
}

.movement-tcg-summary p {
  margin: 0 0 6px;
  color: #8de4eb;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.movement-tcg-summary h2 {
  margin: 0;
  color: #fff;
  font-size: 20px;
}

.movement-tcg-summary nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.movement-tcg-summary a {
  display: grid;
  gap: 6px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #fff;
}

.movement-tcg-summary a span {
  color: #b8cad4;
  font-size: 10px;
}

.movement-method {
  margin-top: 48px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  scroll-margin-top: 24px;
}

.movement-method h2 {
  margin: 4px 0 12px;
}

.movement-method ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 1.3em;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

@media (max-width: 1500px) and (min-width: 1081px) {
  .movement-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  .movement-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .movement-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .market-moves-entry,
  .movement-date-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .market-moves-entry > b {
    width: 100%;
    text-align: center;
  }

  .movement-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .movement-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .movement-tcg-summary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .movement-product-grid,
  .movement-tcg-summary nav {
    grid-template-columns: 1fr;
  }

  .movement-product-card {
    padding: 15px;
  }

  .movement-card-main {
    display: grid;
    grid-template-columns: minmax(92px, 0.78fr) minmax(0, 1.45fr);
    align-items: stretch;
    gap: 14px;
    min-width: 0;
  }

  .movement-card-media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 164px;
    padding: 8px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: linear-gradient(145deg, color-mix(in srgb, var(--art-a) 12%, #fff), color-mix(in srgb, var(--art-b) 8%, #fff));
  }

  .movement-card-media img {
    width: 100%;
    height: 100%;
    max-height: 176px;
    object-fit: contain;
  }

  .movement-card-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .movement-card-head {
    margin-bottom: 12px;
  }

  .movement-tcg-full {
    display: none;
  }

  .movement-tcg-short {
    display: inline;
  }

  .movement-product-card h3 {
    min-height: 0;
    margin: 0 0 4px;
    font-size: 15px;
    line-height: 1.45;
  }

  .movement-card-info > small {
    min-height: 0;
  }

  .movement-rate {
    margin-top: auto;
    padding-top: 16px;
    font-size: 28px;
  }
}

.home-compare-entry {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: fit-content;
  margin-top: 10px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  box-shadow: var(--soft-shadow);
}

.home-compare-entry:hover {
  border-color: rgba(37, 99, 235, 0.42);
}

.home-compare-entry span {
  color: var(--blue);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.home-compare-entry strong {
  font-size: 13px;
}

.home-compare-entry b {
  color: var(--muted);
  font-size: 11px;
}

.home-watchlist-entry {
  border-color: rgba(8, 168, 181, 0.28);
  background: linear-gradient(135deg, rgba(8, 168, 181, 0.08), rgba(37, 99, 235, 0.05));
}

.home-watchlist-entry span {
  color: #087e8c;
}

.home-data-status-entry {
  border-color: rgba(4, 120, 87, 0.24);
  background: linear-gradient(135deg, rgba(4, 120, 87, 0.07), rgba(8, 168, 181, 0.04));
}

.home-data-status-entry span {
  color: #047857;
}

.home-recently-viewed {
  margin-top: 32px;
  padding: clamp(18px, 2.6vw, 28px);
  border: 1px solid rgba(8, 126, 140, 0.2);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(234, 248, 249, 0.94), rgba(255, 255, 255, 0.98));
}

.home-recently-viewed .section-head {
  margin-bottom: 16px;
}

.recently-viewed-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.recently-viewed-clear {
  flex: 0 0 auto;
  min-height: 40px;
}

.watchlist-privacy-note {
  display: grid;
  gap: 4px;
  margin-bottom: 20px;
  padding: 15px 17px;
  border: 1px solid rgba(8, 168, 181, 0.25);
  border-radius: 10px;
  background: rgba(8, 168, 181, 0.06);
}

.watchlist-privacy-note strong {
  color: var(--ink);
  font-size: 13px;
}

.watchlist-privacy-note span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.watchlist-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.watchlist-summary > div {
  display: grid;
  gap: 3px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

.watchlist-summary span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.watchlist-summary strong {
  color: var(--ink);
  font-size: 24px;
}

.watchlist-summary .up strong {
  color: var(--green);
}

.watchlist-summary .down strong {
  color: var(--red);
}

.watchlist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.watchlist-card {
  display: grid;
  gap: 15px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

.watchlist-card-product {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.watchlist-card-product img {
  width: 78px;
  height: 106px;
  border-radius: 7px;
  background: #eef4f7;
  object-fit: contain;
}

.watchlist-card-product > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.watchlist-card-product small,
.watchlist-card-product span {
  color: var(--muted);
  font-size: 10px;
}

.watchlist-card-product h2 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
}

.watchlist-card-product h2 a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.watchlist-card-product > div > strong {
  color: var(--ink);
  font-size: 21px;
}

.watchlist-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.watchlist-metric-grid > div {
  display: grid;
  gap: 3px;
  min-height: 67px;
  padding: 10px;
  border-radius: 8px;
  background: #f4f8fa;
}

.watchlist-metric-grid span,
.watchlist-metric-grid small {
  color: var(--muted);
  font-size: 9px;
}

.watchlist-metric-grid strong {
  color: var(--ink);
  font-size: 14px;
}

.watchlist-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.watchlist-card-actions a,
.watchlist-card-actions button {
  color: #0e7490;
  font-size: 11px;
  font-weight: 850;
}

.watchlist-card-actions button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
}

.watchlist-empty {
  display: grid;
  gap: 10px;
  justify-items: start;
  padding: 32px;
  border: 1px dashed #b8c8d0;
  border-radius: 12px;
  background: #f7fafb;
}

.watchlist-empty span {
  color: #0e7490;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.watchlist-empty strong {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
}

.watchlist-empty > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.watchlist-next-action {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
  padding: 14px 17px;
  border-radius: 10px;
  background: #0f2338;
}

.watchlist-next-action span {
  color: #8de4eb;
  font-size: 10px;
  font-weight: 900;
}

.watchlist-next-action a {
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.data-status-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.data-status-overview > div {
  display: grid;
  gap: 4px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

.data-status-overview span,
.data-status-overview small {
  color: var(--muted);
  font-size: 10px;
}

.data-status-overview span {
  font-weight: 850;
}

.data-status-overview strong {
  color: var(--ink);
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.1;
}

.data-status-scope-note {
  margin: 14px 0 0;
  padding: 13px 15px;
  border-left: 3px solid #0e7490;
  background: rgba(8, 168, 181, 0.06);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.data-status-scope-note strong {
  color: var(--ink);
}

.data-status-section {
  margin-top: 30px;
}

.data-status-tcg-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.data-status-tcg-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

.data-status-tcg-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.data-status-tcg-head > div {
  display: grid;
  gap: 3px;
}

.data-status-tcg-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.data-status-tcg-head strong {
  color: var(--ink);
  font-size: 20px;
}

.data-status-tcg-head b {
  color: #047857;
  font-size: 12px;
}

.data-status-progress {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6eef1;
}

.data-status-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0e7490, #0f9f8f);
}

.data-status-tcg-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.data-status-tcg-card dl > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.data-status-tcg-card dt,
.data-status-tcg-card dd {
  margin: 0;
  font-size: 11px;
}

.data-status-tcg-card dt {
  color: var(--muted);
}

.data-status-tcg-card dd {
  color: var(--ink);
  font-weight: 800;
  text-align: right;
}

.data-status-tcg-card > a {
  color: #0e7490;
  font-size: 11px;
  font-weight: 850;
}

.data-status-state-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.data-status-state-grid > div {
  display: grid;
  align-content: start;
  gap: 5px;
  padding: 17px;
  border-top: 3px solid #0e7490;
  border-radius: 9px;
  background: #f7fafb;
}

.data-status-state-grid .fallback {
  border-top-color: #b45309;
}

.data-status-state-grid .limited {
  border-top-color: #b45309;
}

.data-status-state-grid .initial {
  border-top-color: #2563eb;
}

.data-status-state-grid .missing {
  border-top-color: #64748b;
}

.data-status-state-grid span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.data-status-state-grid strong {
  color: var(--ink);
  font-size: 26px;
}

.data-status-state-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
}

.data-status-product-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.data-status-product-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
}

.data-status-product-list a,
.data-status-product-list li > div {
  display: grid;
  gap: 3px;
}

.data-status-product-list a {
  min-width: 0;
}

.data-status-product-list a span,
.data-status-product-list small {
  color: var(--muted);
  font-size: 9px;
}

.data-status-product-list a strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.data-status-product-list li > div {
  flex: 0 0 auto;
  justify-items: end;
}

.data-status-product-list b {
  color: #b45309;
  font-size: 11px;
}

.data-status-product-list.missing b {
  color: #64748b;
}

.data-status-method-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 30px;
  padding: 24px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0f2338, #0e6175);
  color: #fff;
}

.data-status-method-link p {
  margin: 0 0 5px;
  color: #8de4eb;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.data-status-method-link h2 {
  margin: 0 0 5px;
  color: #fff;
  font-size: 20px;
}

.data-status-method-link span {
  color: #c1d3dc;
  font-size: 12px;
}

.data-status-method-link a {
  flex: 0 0 auto;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 850;
}

.comparison-selector-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: end;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

.comparison-selector-card > p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.comparison-select-field {
  display: grid;
  gap: 7px;
}

.comparison-select-field label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.comparison-select-field select {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-3);
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
}

.comparison-swap {
  display: grid;
  place-items: center;
  min-width: 54px;
  min-height: 46px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--ink);
  cursor: pointer;
  font-size: 19px;
}

.comparison-swap span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
}

.comparison-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.comparison-product-panel {
  position: relative;
  min-width: 0;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 4px solid var(--comparison-color);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

.comparison-product-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.comparison-product-head span {
  color: var(--comparison-color);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.comparison-product-head a {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.comparison-product-identity {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 174px;
  padding: 18px 0;
}

.comparison-product-identity img {
  width: 112px;
  height: 152px;
  object-fit: contain;
}

.comparison-product-identity > div {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.comparison-product-identity small,
.comparison-product-identity span {
  color: var(--muted);
  font-size: 10px;
}

.comparison-product-identity h2 {
  margin: 3px 0 12px;
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.45;
}

.comparison-product-identity strong {
  color: var(--ink);
  font-size: clamp(24px, 3vw, 34px);
}

.comparison-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.comparison-metric-grid > div {
  display: grid;
  align-content: start;
  gap: 5px;
  min-height: 96px;
  padding: 13px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.comparison-metric-grid span,
.comparison-metric-grid small {
  color: var(--muted);
  font-size: 9px;
}

.comparison-metric-grid strong {
  font-size: 15px;
}

.comparison-chart-card {
  margin-top: 24px;
}

.comparison-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 12px;
}

.comparison-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.comparison-chart-legend i {
  width: 18px;
  height: 4px;
  border-radius: 999px;
}

.comparison-chart-wrap {
  min-height: 340px;
}

.comparison-chart-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.comparison-next-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 28px;
  padding: 24px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0f2338, #0e6175);
  color: #fff;
}

.comparison-next-action p {
  margin: 0 0 5px;
  color: #8de4eb;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.comparison-next-action h2 {
  margin: 0 0 5px;
  color: #fff;
  font-size: 20px;
}

.comparison-next-action span {
  color: #c1d3dc;
  font-size: 12px;
}

.comparison-next-action a {
  flex: 0 0 auto;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 850;
}

@media (max-width: 900px) {
  .data-status-overview,
  .data-status-state-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .data-status-tcg-grid {
    grid-template-columns: 1fr;
  }

  .comparison-product-identity {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .comparison-product-identity img {
    width: 84px;
    height: 124px;
  }

  .comparison-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .home-compare-entry {
    grid-template-columns: 1fr auto;
    width: 100%;
  }

  .home-recently-viewed {
    margin-top: 24px;
    padding: 16px 14px;
  }

  .home-recently-viewed .section-head {
    align-items: flex-start;
  }

  .home-compare-entry span {
    grid-column: 1 / -1;
  }

  .comparison-selector-card {
    grid-template-columns: 1fr;
  }

  .comparison-swap {
    grid-auto-flow: column;
    justify-content: center;
  }

  .comparison-products {
    grid-template-columns: 1fr;
  }

  .comparison-product-identity {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .comparison-product-identity img {
    width: 96px;
    height: 136px;
  }

  .comparison-next-action {
    align-items: flex-start;
    flex-direction: column;
  }

  .comparison-next-action a {
    width: 100%;
    text-align: center;
  }

  .watchlist-grid {
    grid-template-columns: 1fr;
  }

  .watchlist-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .watchlist-next-action {
    align-items: flex-start;
    flex-direction: column;
  }

  .data-status-product-list {
    grid-template-columns: 1fr;
  }

  .data-status-method-link {
    align-items: flex-start;
    flex-direction: column;
  }

  .data-status-method-link a {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 390px) {
  .comparison-metric-grid {
    grid-template-columns: 1fr;
  }

  .comparison-metric-grid > div {
    min-height: 74px;
  }

  .watchlist-metric-grid {
    grid-template-columns: 1fr;
  }

  .watchlist-card-product {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .watchlist-card-product img {
    width: 68px;
    height: 94px;
  }

  .watchlist-card-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .data-status-overview,
  .data-status-state-grid {
    grid-template-columns: 1fr;
  }

  .data-status-product-list li {
    align-items: flex-start;
    flex-direction: column;
  }

  .data-status-product-list li > div {
    justify-items: start;
  }
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding: 28px max(24px, calc((100vw - 1440px) / 2));
  border-top: 1px solid var(--line);
  background: #071522;
  color: #dce8ee;
}

.site-footer-brand {
  display: grid;
  gap: 6px;
}

.site-footer-brand strong {
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.site-footer-brand span {
  color: #9fb2bf;
  font-size: 12px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
}

.site-footer a {
  color: #dce8ee;
  font-size: 12px;
  font-weight: 700;
}

.footer-link-button {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #dce8ee;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.site-footer a:hover,
.footer-link-button:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.admin-mode .site-footer {
  display: none;
}

.analytics-consent {
  position: fixed;
  z-index: 1200;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: #071522;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.34);
  color: #fff;
}

.analytics-consent[hidden] {
  display: none;
}

.analytics-consent > div:first-child {
  display: grid;
  gap: 7px;
}

.analytics-consent strong {
  font-size: 16px;
}

.analytics-consent p {
  margin: 0;
  color: #c7d5dd;
  font-size: 13px;
  line-height: 1.7;
}

.analytics-consent a {
  width: fit-content;
  color: #8ee8ef;
  font-size: 12px;
  font-weight: 700;
}

.analytics-consent-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.consent-button {
  min-width: 104px;
  padding: 11px 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 7px;
  font-weight: 800;
  cursor: pointer;
}

.consent-button.secondary {
  background: transparent;
  color: #fff;
}

.consent-button.primary {
  border-color: #19b8c4;
  background: #19b8c4;
  color: #041014;
}

.legal-document {
  display: grid;
  gap: 20px;
  max-width: 880px;
}

.legal-document section {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

.legal-document h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 19px;
}

.legal-document p,
.legal-document li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.legal-document p {
  margin: 0;
}

.legal-document ul {
  margin: 0;
  padding-left: 1.4em;
}

.legal-updated {
  font-size: 12px !important;
}

.legal-note {
  padding: 14px 16px;
  border-left: 3px solid var(--cyan);
  background: rgba(8, 168, 181, 0.07);
}

.contact-email-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 16px;
}

@media (max-width: 680px) {
  .site-footer {
    display: grid;
    padding: 24px 16px 30px;
  }

  .site-footer nav {
    justify-content: flex-start;
  }

  .legal-document section {
    padding: 20px 18px;
  }

  .analytics-consent {
    right: 12px;
    bottom: calc(78px + env(safe-area-inset-bottom));
    left: 12px;
    display: grid;
    gap: 16px;
    padding: 18px;
  }

  .analytics-consent-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .consent-button {
    width: 100%;
    min-width: 0;
  }
}

/* Mobile readability and navigation integrity */
@media (max-width: 620px) {
  body {
    max-width: 100%;
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
    overflow-x: hidden;
  }

  .topbar {
    top: 0;
  }

  .nav {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    height: calc(64px + env(safe-area-inset-bottom));
    padding-bottom: calc(5px + env(safe-area-inset-bottom));
    overflow: hidden;
  }

  .nav .nav-storage,
  .nav .nav-about {
    display: none;
  }

  .nav a {
    min-height: 52px;
    line-height: 1.15;
  }

  .nav a > span {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .chip,
  .period-button,
  .view-button,
  .action-button {
    min-height: 44px;
  }

  .market-pulse-card p.market-pulse-detail {
    align-items: start;
  }

  .market-pulse-product {
    overflow: visible;
    line-height: 1.4;
    overflow-wrap: anywhere;
    text-overflow: clip;
    white-space: normal;
  }

  .comparison-product-head a,
  .detail-context-bar > a,
  .data-status-tcg-card > a,
  .data-status-product-list a,
  .movement-index a,
  .watchlist-card-actions a,
  .watchlist-card-actions button {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-block: 10px;
  }

  .data-status-product-list a {
    align-self: stretch;
  }

  .detail-context-bar > a {
    padding-inline: 0;
  }

  .watchlist-next-action a {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 44px;
    padding: 11px 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
  }

  .section,
  .section-head,
  .section-head > div,
  .public-detail,
  .detail-summary {
    min-width: 0;
    max-width: 100%;
  }

  h1,
  h1.hero-title,
  .section-head h2 {
    overflow-wrap: anywhere;
  }

  .home-compare-entry {
    grid-template-columns: 1fr;
    gap: 5px;
    width: 100%;
  }

  .home-compare-entry span {
    grid-column: auto;
  }

  .home-compare-entry b {
    justify-self: start;
  }

  .detail-context-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 52px;
    overflow: hidden;
  }

  .detail-context-bar > a {
    width: fit-content;
    white-space: nowrap;
  }

  .detail-context-bar > .detail-popular-badge {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .detail-overview {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 10px 13px;
    align-items: start;
    padding: 13px;
  }

  .detail-summary {
    display: contents;
  }

  .detail-overview .detail-visual {
    grid-column: 1;
    grid-row: 1 / span 3;
    align-self: stretch;
    width: 112px;
    max-width: 112px;
    height: 168px;
    aspect-ratio: auto;
  }

  .detail-overview .product-photo-wrap.detail .product-photo {
    inset: 8px;
    width: calc(100% - 16px);
    height: calc(100% - 16px);
  }

  .detail-badges {
    grid-column: 2;
    grid-row: 1;
    gap: 5px;
  }

  .detail-badges span {
    min-height: 25px;
    padding: 4px 7px;
    font-size: 10px;
  }

  .detail-label {
    grid-column: 2;
    grid-row: 2;
    align-self: end;
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
  }

  .detail-price {
    grid-column: 2;
    grid-row: 3;
    align-self: start;
    max-width: 100%;
    font-size: clamp(29px, 8.5vw, 40px);
    letter-spacing: -0.035em;
    white-space: nowrap;
  }

  .detail-price.is-pending {
    font-size: clamp(24px, 6.8vw, 31px);
    line-height: 1.15;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .detail-copy {
    grid-column: 1 / -1;
    grid-row: 4;
    font-size: 13px;
    line-height: 1.7;
  }

  .detail-primary-actions {
    grid-column: 1 / -1;
    grid-row: 5;
    width: 100%;
    max-width: none;
  }

  .detail-primary-action {
    min-height: 44px;
  }

  .detail-overview .public-summary {
    grid-column: 1 / -1;
    grid-row: 6;
    width: 100%;
  }

  .public-summary .stat strong,
  .detail-mini-grid strong,
  .detail-reading-grid strong,
  .comparison-product-identity strong,
  .watchlist-card-product > div > strong {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .related-card-grid {
    grid-template-columns: 1fr;
  }

  .related-detail-card {
    grid-template-columns: 88px minmax(0, 1fr);
    grid-template-rows: none;
    min-height: 118px;
  }

  .related-detail-visual {
    width: 88px;
    height: 100%;
    min-height: 118px;
  }

  .related-detail-body strong {
    display: block;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  .data-status-product-list a strong,
  .movement-product-card h3,
  .watchlist-card-product h2,
  .comparison-product-identity h2 {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

}

@media (max-width: 360px) {
  .detail-overview {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .detail-overview .detail-visual {
    width: 96px;
    max-width: 96px;
    height: 148px;
  }

  .detail-primary-actions {
    grid-template-columns: 1fr;
  }

  .detail-action-text {
    grid-column: auto;
  }
}

/* Affiliate link foundation: public disclosure, safe outbound links, and admin controls. */
.affiliate-public-section {
  scroll-margin-top: 96px;
}

.affiliate-pr-notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 26px;
  padding: 18px 20px;
  border: 1px solid #f0d29a;
  border-radius: 16px;
  background: #fffaf0;
  color: #5f4b28;
}

.affiliate-pr-notice strong {
  flex: 0 0 auto;
  padding: 4px 9px;
  border-radius: 999px;
  background: #8b5c00;
  color: #fff;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: .08em;
}

.affiliate-pr-notice p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
}

.affiliate-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.affiliate-product-card {
  display: grid;
  gap: 18px;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(17, 43, 58, .06);
}

.affiliate-product-card > div:first-child > span {
  display: block;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.45;
}

.affiliate-product-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.affiliate-criteria-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--brand-deep);
  font-size: 13px;
  font-weight: 700;
}

.affiliate-link-list {
  display: grid;
  gap: 10px;
  align-self: end;
}

.affiliate-outbound-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--brand);
  border-radius: 12px;
  background: #f0fcfd;
  color: var(--brand-deep);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
}

.affiliate-outbound-wrap {
  min-width: 0;
}

.affiliate-outbound-link span {
  flex: 0 0 auto;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--brand-deep);
  color: #fff;
  font-size: 10px;
  letter-spacing: .08em;
}

.affiliate-admin-hero,
.affiliate-slot-card,
.affiliate-link-form,
.affiliate-slot-heading > div {
  min-width: 0;
}

.affiliate-admin-metrics {
  margin-top: 22px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.affiliate-setup-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.affiliate-setup-steps li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7fbfc;
}

.affiliate-setup-steps li > span {
  display: grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-deep);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.affiliate-setup-steps strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
}

.affiliate-setup-steps p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.affiliate-safety-note {
  margin-top: 20px;
  padding: 18px 20px;
  border: 1px solid #f0d29a;
  border-radius: 14px;
  background: #fffaf0;
}

.affiliate-safety-note strong {
  display: block;
  margin-bottom: 9px;
  color: #6d4c00;
}

.affiliate-safety-note ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0;
  padding-left: 20px;
  color: #6f634d;
  font-size: 13px;
  line-height: 1.7;
}

.affiliate-admin-slots {
  display: grid;
  gap: 22px;
  margin-top: 22px;
}

.affiliate-slot-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.affiliate-slot-heading span {
  display: block;
  color: var(--brand-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
}

.affiliate-slot-heading h2 {
  margin: 5px 0 6px;
}

.affiliate-slot-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.affiliate-partner-forms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.affiliate-link-form {
  display: grid;
  gap: 15px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fbfdfe;
}

.affiliate-readiness {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #eef4f6;
}

.affiliate-readiness strong {
  width: 100%;
  color: var(--ink);
  font-size: 12px;
}

.affiliate-readiness span {
  padding: 4px 8px;
  border: 1px solid #d3dde1;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.affiliate-readiness span.is-done {
  border-color: #a7dcc9;
  background: #e9f8f1;
  color: #087553;
}

.affiliate-partner-heading,
.affiliate-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.affiliate-link-form label:not(.affiliate-enable-control) {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.affiliate-link-form input[type="url"],
.affiliate-link-form input[type="datetime-local"],
.affiliate-link-form textarea {
  width: 100%;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
}

.affiliate-link-form textarea {
  min-height: 96px;
  resize: vertical;
}

.affiliate-link-form label small,
.affiliate-fingerprint {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.55;
}

.affiliate-enable-control {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.affiliate-enable-control input {
  width: 20px;
  height: 20px;
}

.affiliate-form-feedback {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .affiliate-product-grid,
  .affiliate-partner-forms {
    grid-template-columns: 1fr;
  }

  .affiliate-admin-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .affiliate-setup-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .affiliate-pr-notice,
  .affiliate-slot-heading,
  .affiliate-partner-heading,
  .affiliate-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .affiliate-product-card,
  .affiliate-link-form {
    padding: 16px;
  }

  .affiliate-admin-metrics {
    grid-template-columns: 1fr;
  }

  .affiliate-setup-steps {
    grid-template-columns: 1fr;
  }

  .affiliate-slot-heading .mini-button,
  .affiliate-form-actions .action-button {
    width: 100%;
  }
}

/* Remaining small-text readability v1 */
.shelf-scroll .portrait-metrics.change-metric {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 8px;
}

.shelf-scroll .portrait-metrics.change-metric > span {
  grid-column: 1;
}

.shelf-scroll .portrait-metrics.change-metric > strong {
  grid-column: 2;
}

.shelf-scroll .portrait-metrics.change-metric .metric-subvalue {
  grid-column: 1 / -1;
  margin-top: 0;
  font-size: 11px;
  line-height: 1.25;
}

.movement-rank,
.movement-tcg,
.movement-direction {
  padding: 4px 6px;
  font-size: 11px;
  line-height: 1.25;
  white-space: nowrap;
}

.movement-card-head {
  gap: 4px;
}

.movement-compact-list a span {
  font-size: 11px;
  line-height: 1.25;
  white-space: nowrap;
}

.movement-compact-list a strong,
.movement-compact-list a b {
  font-size: 12px;
  line-height: 1.4;
}

.calendar-lottery-range span,
.calendar-lottery-range small,
.calendar-day-event span,
.calendar-day-event small,
.calendar-more,
.calendar-event-products em {
  font-size: 10px;
  line-height: 1.3;
}

.calendar-lottery-range strong,
.calendar-day-event strong,
.calendar-event-products b {
  font-size: 11px;
  line-height: 1.3;
}

.calendar-mobile-guide,
.calendar-day-badges {
  display: none;
}

@media (max-width: 900px) and (min-width: 621px) {
  .calendar-day {
    min-height: 112px;
    padding: 6px;
  }

  .calendar-day-events {
    gap: 3px;
  }

  .calendar-day-event {
    padding: 4px;
  }

  .calendar-lottery-range {
    min-height: 25px;
    padding: 3px 6px;
  }
}

@media (max-width: 900px) {
  .calendar-mobile-guide {
    display: block;
    margin: 14px 0 10px;
    padding: 11px 12px;
    border: 1px solid #d5e6ed;
    border-radius: 8px;
    color: var(--muted);
    background: #f7fbfc;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.6;
  }

  .calendar-day {
    min-height: 82px;
    padding: 5px 3px;
  }

  .calendar-day-events,
  .calendar-lottery-range {
    display: none;
  }

  .calendar-day-badges {
    display: grid;
    gap: 2px;
  }

  .calendar-day-badges span {
    display: block;
    min-width: 0;
    padding: 2px 1px;
    overflow: hidden;
    border-radius: 3px;
    color: #8b4d12;
    background: #fff2e6;
    font-size: 10px;
    font-weight: 900;
    line-height: 1.25;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .calendar-label-full {
    display: none;
  }

  .calendar-label-short {
    display: inline;
  }

  .calendar-legend .calendar-label-short {
    display: inline;
  }

  .calendar-day-badges .calendar-label-short,
  .calendar-day-badges .calendar-label-full {
    display: inline;
    padding: 0;
    color: inherit;
    background: transparent;
    font-size: inherit;
    font-weight: inherit;
  }

  .calendar-day-badges .lottery {
    color: #4d57bd;
    background: #eef0ff;
  }

  .calendar-day-badges .guerrilla {
    color: #087556;
    background: #e7f7ef;
  }

  .calendar-lottery-product-list li {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .calendar-lottery-product-list span {
    text-align: left;
  }
}

.admin-dashboard-hero,
.dashboard-section {
  margin-top: 16px;
}

.admin-dashboard-hero {
  display: block;
}

.admin-dashboard-hero .compact-toolbar {
  margin-bottom: 18px;
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-metric {
  display: grid;
  grid-template-rows: auto auto 1fr;
  min-width: 0;
  min-height: 128px;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-left: 4px solid #9fb3bf;
  border-radius: 9px;
  background: #f8fcfd;
}

.dashboard-metric span,
.dashboard-metric small,
.dashboard-metric strong {
  display: block;
}

.dashboard-metric span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.dashboard-metric strong {
  margin: 9px 0 8px;
  color: var(--ink);
  font-size: clamp(25px, 2.2vw, 34px);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  overflow-wrap: break-word;
}

.dashboard-metric small {
  align-self: end;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.55;
}

.dashboard-metric.ok { border-left-color: var(--green); background: #f3fcf7; }
.dashboard-metric.warn { border-left-color: var(--amber); background: #fffaf0; }
.dashboard-metric.bad { border-left-color: var(--red); background: #fff5f6; }
.dashboard-metric.ok strong { color: var(--green); }
.dashboard-metric.warn strong { color: #a96500; }
.dashboard-metric.bad strong { color: var(--red); }

.database-backup-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.weekly-report-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.weekly-automation-status {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.weekly-automation-status article {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-left: 4px solid #9fb9c5;
  border-radius: 9px;
  background: #f8fcfd;
}

.weekly-automation-status article.ok { border-left-color: var(--green); background: #f3fcf7; }
.weekly-automation-status article.warn { border-left-color: var(--amber); background: #fffaf0; }
.weekly-automation-status article.bad { border-left-color: var(--red); background: #fff5f6; }
.weekly-automation-status span { color: var(--muted); font-size: 10px; font-weight: 900; }
.weekly-automation-status strong { min-width: 0; font-size: 17px; line-height: 1.35; overflow-wrap: anywhere; }
.weekly-automation-status small { color: var(--muted); font-size: 11px; line-height: 1.5; }

.weekly-report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.weekly-report-grid .weekly-report-card:first-child { grid-column: 1 / -1; }

.weekly-focus {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid #acdce2;
  border-left: 5px solid var(--blue);
  border-radius: 10px;
  background: #f3fbfc;
}

.weekly-focus.is-critical { border-color: #efb8bf; border-left-color: var(--red); background: #fff5f6; }
.weekly-focus.is-improve { border-color: #f0c77d; border-left-color: var(--amber); background: #fffaf0; }
.weekly-focus.is-stable { border-color: #b9dfcc; border-left-color: var(--green); background: #f3fcf7; }
.weekly-focus-heading { display: grid; gap: 7px; }
.weekly-focus-heading span { width: fit-content; padding: 4px 8px; border-radius: 999px; background: #dff4f7; color: var(--blue); font-size: 10px; font-weight: 900; }
.weekly-focus.is-critical .weekly-focus-heading span { background: #ffe7ea; color: var(--red); }
.weekly-focus.is-improve .weekly-focus-heading span { background: #fff0d7; color: #965e00; }
.weekly-focus.is-stable .weekly-focus-heading span { background: #def5e8; color: var(--green); }
.weekly-focus h3 { margin: 0; font-size: 18px; line-height: 1.5; }
.weekly-focus dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0 0; }
.weekly-focus dl > div { min-width: 0; padding: 12px; border-radius: 8px; background: rgba(255, 255, 255, 0.78); }
.weekly-focus dt { color: var(--muted); font-size: 10px; font-weight: 900; }
.weekly-focus dd { margin: 5px 0 0; color: var(--ink); font-size: 12px; font-weight: 700; line-height: 1.65; overflow-wrap: anywhere; }

.weekly-report-card,
.weekly-report-empty {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fcfd;
}

.weekly-report-card h3 {
  margin: 0 0 14px;
  font-size: 16px;
}

.weekly-alerts {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid #f0c77d;
  border-radius: 10px;
  background: #fffaf0;
}

.weekly-alerts h3 { margin: 0; color: #8a5500; font-size: 15px; }
.weekly-alerts.is-clear { border-color: #b9dfcc; background: #f3fcf7; }
.weekly-alerts.is-clear strong { color: var(--green); }
.weekly-alerts.is-clear span { color: var(--muted); font-size: 12px; line-height: 1.6; }

.weekly-alert {
  padding: 13px 14px;
  border-left: 4px solid var(--amber);
  border-radius: 7px;
  background: #fff;
}

.weekly-alert.is-critical { border-left-color: var(--red); }
.weekly-alert > div { display: flex; align-items: flex-start; gap: 9px; }
.weekly-alert > div span { flex: 0 0 auto; padding: 3px 7px; border-radius: 999px; background: #fff0d7; color: #965e00; font-size: 10px; font-weight: 900; }
.weekly-alert.is-critical > div span { background: #ffe7ea; color: var(--red); }
.weekly-alert strong { font-size: 13px; line-height: 1.55; }
.weekly-alert p { margin: 7px 0 0; color: var(--ink); font-size: 12px; line-height: 1.6; }
.weekly-alert small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.6; }

.weekly-report-card > p,
.weekly-report-empty span {
  display: block;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.weekly-history-details > .admin-help { margin: 12px 14px 0; }

.weekly-history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
  padding: 12px 14px 14px;
}

.weekly-history-card {
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f8fcfd;
}

.weekly-history-card > strong { display: block; font-size: 12px; line-height: 1.5; }
.weekly-history-card dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 10px 0 0; }
.weekly-history-card dl > div { min-width: 0; padding: 9px; border-radius: 7px; background: #fff; }
.weekly-history-card dt { color: var(--muted); font-size: 10px; font-weight: 900; line-height: 1.4; }
.weekly-history-card dd { margin: 4px 0 0; color: var(--ink); font-size: 18px; font-weight: 900; line-height: 1.3; overflow-wrap: anywhere; }

.weekly-funnel {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.weekly-funnel li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 14px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.weekly-funnel li:first-child { border-top: 0; }
.weekly-funnel span { color: var(--ink); font-size: 13px; font-weight: 800; }
.weekly-funnel strong { grid-row: 1 / 3; grid-column: 2; align-self: center; font-size: 22px; font-variant-numeric: tabular-nums; }
.weekly-funnel small { color: var(--muted); font-size: 11px; }

.weekly-revenue-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.weekly-revenue-actions .dashboard-metric { min-height: 118px; }

.weekly-report-details {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.weekly-report-details summary {
  cursor: pointer;
  color: var(--blue);
  font-weight: 900;
}

.weekly-report-details .table-wrap { margin-top: 12px; }

.database-backup-latest,
.database-backup-feedback {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.database-backup-feedback:not(:empty) {
  padding: 11px 13px;
  border-radius: 7px;
  background: #eef8fa;
  color: var(--ink);
}

.database-backup-details {
  margin-top: 14px;
}

.database-backup-details summary {
  cursor: pointer;
  color: var(--blue);
  font-weight: 900;
}

.database-backup-details .table-wrap {
  margin-top: 10px;
}

.dashboard-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.dashboard-filter-buttons .chip {
  min-width: 92px;
}

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

.admin-notice-list.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-notice-card {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 15px 16px;
  border: 1px solid rgba(225, 160, 45, 0.34);
  border-left: 4px solid var(--amber);
  border-radius: 9px;
  background: #fffaf0;
}

.admin-notice-card.critical {
  border-color: rgba(211, 61, 76, 0.3);
  border-left-color: var(--red);
  background: #fff5f6;
}

.admin-notice-card.workflow-investigating {
  border-left-color: #0e7490;
}

.admin-notice-card.workflow-resolved {
  border-color: rgba(5, 150, 105, 0.3);
  border-left-color: var(--green);
  background: #f3fcf7;
}

.admin-notice-head,
.admin-notice-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-notice-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-notice-statuses {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.admin-notice-tags span {
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.admin-notice-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.45;
}

.admin-notice-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.admin-notice-context {
  display: grid;
  gap: 7px;
  margin: 0;
}

.admin-notice-context > div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(207, 220, 226, 0.7);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.86);
}

.admin-notice-context dt,
.admin-notice-context dd {
  min-width: 0;
  overflow-wrap: anywhere;
}

.admin-notice-context dt {
  color: #536672;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.55;
}

.admin-notice-context dd {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.6;
}

.admin-notice-context .impact {
  border-color: rgba(211, 61, 76, 0.18);
  background: rgba(255, 248, 249, 0.94);
}

.admin-notice-context .impact dt {
  color: #aa2636;
}

.admin-notice-context .next {
  border-color: rgba(20, 184, 198, 0.26);
  background: rgba(238, 252, 253, 0.96);
}

.admin-notice-context .next dt {
  color: #0e7490;
}

.admin-alert-workflow {
  display: grid;
  grid-template-columns: minmax(140px, 0.28fr) minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(20, 184, 198, 0.26);
  border-radius: 8px;
  background: rgba(238, 252, 253, 0.78);
}

.admin-alert-workflow label {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.admin-alert-workflow select,
.admin-alert-workflow textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.admin-alert-workflow select {
  min-height: 44px;
  padding: 8px 10px;
}

.admin-alert-workflow textarea {
  min-height: 74px;
  padding: 9px 10px;
  line-height: 1.55;
  resize: vertical;
}

.admin-alert-workflow-actions {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.admin-alert-workflow-actions small,
.admin-alert-workflow-feedback {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.admin-alert-workflow-feedback {
  margin-right: auto;
  color: #0e7490;
}

.admin-alert-workflow button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.admin-notice-card.is-archived {
  border-left-color: #94a3b8;
  background: rgba(248, 250, 252, 0.96);
}

.admin-alert-workflow-archive {
  border-color: rgba(148, 163, 184, 0.35);
  background: rgba(241, 245, 249, 0.82);
}

.admin-alert-workflow-archive > div {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
}

.admin-alert-workflow-archive strong {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.admin-alert-workflow-archive span,
.admin-alert-workflow-archive p,
.admin-alert-workflow-archive small {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.admin-alert-workflow-archive p {
  white-space: pre-wrap;
}

.admin-alert-workflow-archive small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 11px;
}

.admin-notice-filter-group {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  margin-bottom: 10px;
}

.admin-notice-filter-group > strong {
  padding-top: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.admin-notice-filter-group .dashboard-filter-buttons {
  margin-bottom: 0;
}

.alert-workflow-summary {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.admin-notice-price {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.admin-notice-price span:last-child { text-align: right; }
.admin-notice-price strong { color: var(--ink); font-size: 15px; white-space: nowrap; }
.admin-notice-foot small { color: var(--muted); font-size: 10px; }

.evidence-card.is-alert-target {
  outline: 3px solid rgba(20, 184, 198, 0.52);
  outline-offset: 3px;
  box-shadow: 0 0 0 7px rgba(20, 184, 198, 0.09);
  scroll-margin-top: 22px;
}

.scrape-source-table tr.is-alert-target td {
  background: #e8fbfd;
  box-shadow: inset 0 1px rgba(20, 184, 198, 0.28), inset 0 -1px rgba(20, 184, 198, 0.28);
}

.form-grid .span-2 { grid-column: 1 / -1; }
.form-grid .checkbox-label { display: flex; align-items: center; gap: 8px; }
.form-grid .checkbox-label input { width: auto; min-height: 0; }
.admin-form-actions { display: flex; gap: 8px; }

.scrape-page-pill.stopped strong,
.status-badge.stopped {
  background: #edf2f4;
  color: #61717d;
}

.scrape-group.stopped { background: #f5f8f9; opacity: 0.9; }
.scrape-page-pill .scrape-reason {
  grid-column: 1 / -1;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  line-height: 1.55;
}

@media (max-width: 1100px) {
  .admin-tabs { margin-inline: -22px; padding-inline: 22px; }
  .dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .database-backup-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .weekly-report-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .weekly-automation-status { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .weekly-report-grid { grid-template-columns: 1fr; }
  .weekly-focus dl { grid-template-columns: 1fr; }
  .admin-notice-list.compact { grid-template-columns: 1fr; }
  .alert-workflow-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .admin-tabs { flex-wrap: wrap; }
  .admin-tabs a { flex: 1 1 140px; }
  .admin-tabs #logoutAdminTop { width: 100%; margin-left: 0; }
}

@media (max-width: 720px) {
  .dashboard-metrics { grid-template-columns: 1fr; }
  .database-backup-summary { grid-template-columns: 1fr; }
  .weekly-report-metrics { grid-template-columns: 1fr; }
  .weekly-automation-status { grid-template-columns: 1fr; }
  .weekly-revenue-actions { grid-template-columns: 1fr; }
  .dashboard-metric { min-height: 0; }
  .dashboard-run-toolbar { align-items: flex-start; }
  .admin-notice-price { grid-template-columns: 1fr; align-items: start; }
  .admin-notice-price span:last-child { text-align: left; }
  .admin-notice-head { align-items: flex-start; }
  .admin-alert-workflow { grid-template-columns: 1fr; }
  .admin-alert-workflow-actions { grid-column: auto; align-items: stretch; flex-direction: column; }
  .admin-alert-workflow-feedback { margin-right: 0; }
  .admin-notice-filter-group { grid-template-columns: 1fr; gap: 4px; }
  .admin-notice-filter-group > strong { padding-top: 0; }
  .alert-workflow-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .admin-tabs { margin-inline: -14px; padding-inline: 14px; }

  .lottery-batch-product-row {
    grid-template-columns: 1fr;
  }

  .admin-mode .form-grid input,
  .admin-mode .form-grid select,
  .admin-mode .admin-form textarea,
  .admin-mode .json-input,
  .admin-mode .json-output {
    font-size: 16px;
  }
}

@media (max-width: 420px) {
  .dashboard-metric { padding: 13px; }
  .admin-form-actions { align-items: stretch; flex-direction: column; }
  .dashboard-filter-buttons .chip { flex: 1 1 calc(50% - 8px); min-width: 0; }
  .admin-notice-foot { align-items: flex-start; flex-direction: column; }
  .admin-notice-context > div { grid-template-columns: 1fr; gap: 3px; }
}

@media (max-width: 620px) {
  .detail-related-section .related-card-grid {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(250px, 84vw);
    gap: 10px;
    padding: 2px 3px 10px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  .detail-related-section .related-detail-card {
    scroll-snap-align: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Internal links and readability system v1 */
body {
  font-variant-numeric: tabular-nums;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

#app h1,
#app h2,
#app h3,
.related-detail-body strong,
.detail-list-link {
  overflow-wrap: anywhere;
}

#app h1,
.section-head h2 {
  text-wrap: balance;
}

.nav a,
.chip,
.period-button,
.view-button,
.action-button,
.quick-sort-tabs button,
.list-type-filter a,
.movement-tcg-filter a,
.movement-index a,
.detail-jump-nav a,
.detail-primary-action,
.ssr-list-links a {
  white-space: nowrap;
}

.chip,
.period-button,
.view-button,
.action-button,
.list-type-filter a,
.movement-tcg-filter a,
.movement-index a,
.detail-jump-nav a,
.ssr-list-links a {
  min-height: 42px;
  font-size: 12px;
}

.quick-sort-tabs button {
  min-height: 42px;
  font-size: 12px;
}

.detail-primary-action {
  min-height: 46px;
  font-size: 13px;
}

.detail-action-text,
.detail-list-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  font-size: 12px;
  line-height: 1.45;
}

.detail-storage-cta > a,
.contact-email-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  white-space: nowrap;
}

.movement-card-meta span,
.movement-summary-grid > a > b,
.home-compare-entry span,
.watchlist-metric-grid span,
.watchlist-metric-grid small,
.data-status-product-list a span,
.data-status-product-list small,
.comparison-swap span,
.comparison-metric-grid span,
.comparison-metric-grid small {
  font-size: 11px;
  line-height: 1.4;
}

.detail-section-kicker,
.detail-storage-cta p,
.data-status-method-link p,
.comparison-next-action p {
  font-size: 10px !important;
  line-height: 1.4;
}

.site-footer {
  align-items: start;
  gap: clamp(32px, 5vw, 76px);
  padding-block: 36px;
}

.site-footer-brand {
  min-width: 210px;
}

.site-footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 28px 42px;
  width: min(760px, 100%);
}

.site-footer .site-footer-links nav {
  display: grid;
  align-content: start;
  justify-content: stretch;
  gap: 4px;
}

.site-footer-links nav > strong {
  margin-bottom: 5px;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.05em;
}

.site-footer-links a,
.site-footer-links .footer-link-button {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 34px;
  font-size: 12px;
  line-height: 1.35;
  text-align: left;
}

.brand,
.movement-back-link,
.market-search button,
.calendar-month-actions button {
  min-height: 44px;
}

.list-toolbar select {
  min-height: 44px;
}

@media (max-width: 900px) {
  .site-footer {
    display: grid;
  }

  .site-footer-links {
    width: 100%;
  }
}

@media (max-width: 620px) {
  body {
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
  }

  .topbar {
    min-height: 58px;
    padding-block: 9px;
  }

  .nav {
    height: calc(68px + env(safe-area-inset-bottom));
  }

  .nav a,
  .nav a > span {
    font-size: 11px;
    letter-spacing: -0.025em;
  }

  .section {
    padding-top: 30px;
    padding-bottom: 46px;
  }

  .section-head {
    gap: 12px;
    margin-bottom: 20px;
  }

  .eyebrow {
    font-size: 10px;
    line-height: 1.4;
  }

  h1,
  h1.hero-title {
    font-size: clamp(28px, 8.4vw, 34px);
    line-height: 1.18;
  }

  .chip,
  .period-button,
  .view-button,
  .action-button,
  .quick-sort-tabs button,
  .list-type-filter a,
  .movement-tcg-filter a,
  .movement-index a,
  .detail-jump-nav a,
  .ssr-list-links a {
    min-height: 44px;
    font-size: 12px;
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }

  .detail-primary-actions {
    gap: 10px;
  }

  .detail-primary-action {
    min-width: 0;
    padding-inline: 9px;
    font-size: 12px;
  }

  .detail-action-text,
  .detail-list-link {
    min-height: 44px;
    font-size: 12px;
  }

  .detail-related-section .related-card-grid {
    contain: inline-size;
    width: 100%;
    max-width: 100%;
    grid-auto-columns: min(84vw, 320px);
  }

  .detail-related-section .related-detail-card {
    min-height: 196px;
  }

  .public-detail {
    overflow-x: clip;
  }

  .detail-related-section .related-detail-visual {
    align-self: stretch;
    height: auto;
    margin: 0;
  }

  .related-detail-body {
    min-width: 0;
    padding: 13px 14px;
  }

  .related-detail-body strong {
    font-size: 14px;
    line-height: 1.5;
  }

  .site-footer {
    gap: 28px;
    padding: 30px 18px calc(34px + env(safe-area-inset-bottom));
  }

  .site-footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 22px;
  }

  .site-footer-links nav:last-child {
    grid-column: 1 / -1;
  }

  .site-footer-links a,
  .site-footer-links .footer-link-button {
    min-height: 44px;
    font-size: 13px;
  }
}

@media (max-width: 380px) {
  .nav a,
  .nav a > span {
    font-size: 10px;
  }

  .detail-primary-actions {
    grid-template-columns: 1fr;
  }

  .detail-action-text {
    grid-column: auto;
  }
}

/* Site-wide mobile header menu final priority */
@media (max-width: 620px) {
  body {
    padding-bottom: 0;
  }

  .topbar {
    position: sticky;
    z-index: 30;
    display: flex;
    min-height: 60px;
    padding: 8px 14px;
  }

  .nav {
    position: absolute;
    z-index: 31;
    top: calc(100% + 8px);
    right: 12px;
    bottom: auto;
    left: auto;
    grid-template-columns: 1fr;
    gap: 3px;
    width: min(252px, calc(100vw - 24px));
    height: auto;
    max-height: calc(100dvh - 86px);
    margin: 0;
    padding: 8px;
    border: 1px solid rgba(103, 232, 249, 0.34);
    border-radius: 14px;
    background: linear-gradient(155deg, #0f2338 0%, #0e7490 62%, #0f9f8f 100%);
    box-shadow: 0 18px 48px rgba(7, 21, 34, 0.3);
    overflow-x: hidden;
    overflow-y: auto;
  }

  .nav .nav-storage,
  .nav .nav-about {
    display: flex;
  }

  .nav a,
  .nav a > span {
    color: #fff;
    font-family: "Avenir Next", "Hiragino Sans", "Yu Gothic", sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.035em;
  }

  .nav a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 48px;
    padding: 9px 40px 9px 14px;
    border-radius: 9px;
    overflow: visible;
    text-align: left;
    text-overflow: clip;
    transition: background 0.16s ease, transform 0.16s ease;
  }

  .nav a::before {
    position: absolute;
    right: 14px;
    left: auto;
    color: rgba(255, 255, 255, 0.9);
    font-size: 22px;
    font-weight: 500;
    line-height: 1;
    content: "›";
  }

  .nav a:hover,
  .nav a.is-active {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
  }

  .nav a.is-active::after {
    top: 10px;
    right: auto;
    bottom: 10px;
    left: 0;
    width: 3px;
    height: auto;
    background: #67e8f9;
  }

  .nav-label-full {
    display: inline;
  }

  .nav-label-short {
    display: none;
  }

  .analytics-consent {
    bottom: 12px;
  }
}
