/*
Theme Name: Kakao Markets Lite
Theme URI: https://kakaomarkets.com
Author: Kakao Markets
Description: Lightweight download portal theme for Kakao Markets.
Version: 0.3.80
Text Domain: kakaomarkets-lite
*/

:root {
  --yellow: #ffd84d;
  --yellow-deep: #d9a900;
  --yellow-soft: #fff6ce;
  --navy: #171b25;
  --ink: #20242f;
  --text: #3f4654;
  --muted: #758092;
  --line: #dde3ec;
  --soft-line: #edf0f5;
  --bg: #f7f8fb;
  --paper: #ffffff;
  --blue: #2f6fd6;
  --green: #16875f;
  --red: #d94343;
  --shadow: 0 10px 26px rgba(25, 31, 45, .055);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #fffdf5 0, #f7f8fb 210px, #f7f8fb 100%);
  font-family: Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", Arial, sans-serif;
  font-size: 14px;
  letter-spacing: 0;
}

a { color: inherit; text-decoration: none; }
input, button { font: inherit; }

.km-inner {
  width: 1140px;
  max-width: calc(100% - 32px);
  margin: 0 auto;
}

.km-site-top {
  background: #171b25;
  color: #d7deea;
  font-size: 12px;
}

.km-site-top .km-inner {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.km-site-top strong { color: var(--yellow); }
.km-top-links { display: flex; gap: 14px; white-space: nowrap; }

.km-header {
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(221, 227, 236, .95);
}

.km-header-main {
  height: 96px;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  align-items: center;
  gap: 28px;
}

.km-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.km-brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--yellow);
  color: #1e2028;
  display: grid;
  place-items: center;
  font-weight: 950;
  font-size: 22px;
  border: 1px solid rgba(30, 32, 40, .11);
  box-shadow: 0 8px 18px rgba(217, 169, 0, .18);
}

.km-brand-name strong {
  display: block;
  font-size: 24px;
  font-weight: 950;
  line-height: 1.1;
  white-space: nowrap;
}

.km-brand-name span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.km-main-search {
  height: 52px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  border: 1px solid #cfd6e2;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 26px rgba(25, 31, 45, .07);
}

.km-main-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 17px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 650;
}

.km-main-search button {
  border: 0;
  background: var(--yellow);
  color: #1d212b;
  font-weight: 900;
  cursor: pointer;
}

.km-search-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 11px;
  color: #667184;
  font-size: 12px;
}

.km-search-keywords strong { color: var(--ink); }

.km-nav {
  background: rgba(255, 255, 255, .96);
  border-top: 1px solid #edf0f5;
}

.km-nav .km-inner {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 5px;
  overflow-x: auto;
}

.km-nav a {
  height: 32px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 7px;
  color: #303642;
  font-weight: 850;
  white-space: nowrap;
}

.km-nav a.active {
  background: var(--navy);
  color: #fff;
}

.km-nav a.yellow {
  background: var(--yellow-soft);
  color: #6b5200;
}

.km-main { padding: 22px 0 46px; }

.km-summary-card,
.km-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.km-summary-card {
  position: relative;
  overflow: hidden;
  padding: 24px 26px;
  margin-bottom: 18px;
  background:
    linear-gradient(135deg, rgba(255, 216, 77, .20), rgba(255, 255, 255, .72) 38%, #fff 100%);
}

.km-summary-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--yellow), var(--blue), var(--green));
}

.km-summary-card h1 {
  margin: 0;
  max-width: 760px;
  font-size: 27px;
  line-height: 1.35;
  letter-spacing: 0;
}

.km-summary-card p {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--text);
  line-height: 1.65;
}

.km-answer-strip {
  margin-top: 14px;
  padding: 13px 15px;
  border: 1px solid rgba(217, 169, 0, .28);
  border-radius: 8px;
  background: rgba(255, 250, 234, .86);
  color: var(--ink);
  line-height: 1.55;
}

.km-answer-strip strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

.km-answer-strip span {
  display: block;
  color: var(--text);
  font-size: 13px;
}

.km-summary-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.km-point {
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
  padding: 13px;
}

.km-point strong { display: block; margin-bottom: 5px; font-size: 13px; }
.km-point span { color: var(--muted); font-size: 12px; line-height: 1.45; }

.km-content-layout {
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr) 260px;
  gap: 14px;
  align-items: start;
}

.km-panel {
  overflow: hidden;
}

.km-panel + .km-panel { margin-top: 16px; }

.km-panel-title {
  min-height: 44px;
  padding: 0 15px;
  background: linear-gradient(180deg, #fff, #fbfcff);
  border-bottom: 1px solid var(--soft-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 15px;
  font-weight: 950;
}

.km-more {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.km-category-list {
  padding: 8px;
}

.km-category-list a {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 9px;
  border-radius: 7px;
  color: #333a47;
}

.km-category-list a:hover { background: var(--yellow-soft); }

.km-cat-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: #eef2f8;
  color: #3a4658;
  font-size: 11px;
  font-weight: 950;
}

.km-count {
  color: #9aa2af;
  font-size: 12px;
}

.km-featured-head {
  padding: 17px;
  border-bottom: 1px solid var(--soft-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.km-featured-head h2 {
  margin: 0;
  font-size: 20px;
}

.km-featured-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.km-section-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.km-section-tabs a {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: #505866;
  font-size: 12px;
  font-weight: 850;
}

.km-section-tabs a.active {
  border-color: var(--yellow-deep);
  background: var(--yellow);
  color: #282414;
}

.km-app-grid {
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}

.km-app-card {
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: #fff;
  padding: 13px;
  min-width: 0;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.km-app-card:hover {
  border-color: rgba(217, 169, 0, .55);
  box-shadow: 0 10px 18px rgba(25, 31, 45, .07);
  transform: translateY(-1px);
}

.km-app-main {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.km-app-icon {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: none;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  background: #202432;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, .08);
}

.km-app-icon img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 7px;
  background: #fff;
}

.km-app-icon.has-image .km-icon-fallback,
.km-app-badge.has-image .km-icon-fallback {
  display: none;
}

.km-icon-fallback {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.km-app-icon.is-favicon {
  color: #172033;
  background: #fff;
  box-shadow:
    0 12px 24px rgba(0,0,0,.10),
    inset 0 0 0 1px rgba(226,232,240,.95);
}

.km-app-icon.has-image.is-favicon .km-icon-fallback {
  display: none;
}

.km-app-icon.is-favicon img {
  z-index: 2;
  opacity: 1;
  padding: 8px;
  filter: saturate(1.08) contrast(1.02);
  background: transparent;
}

.km-app-name {
  font-weight: 950;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.km-app-meta {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.km-verify {
  color: var(--green);
  background: #edf9f3;
  border: 1px solid rgba(22, 135, 95, .09);
  border-radius: 7px;
  padding: 7px 8px;
  font-size: 12px;
  font-weight: 850;
  margin-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.km-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.km-card-actions a {
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 900;
  color: #535b67;
  background: #fff;
}

.km-card-actions a.primary {
  background: #171b25;
  border-color: #171b25;
  color: #fff;
}

.km-list {
  padding: 8px 12px 12px;
}

.km-list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.km-list-row:hover {
  background: #f8fbff;
  border-color: #dce7f5;
  transform: translateY(-1px);
}

.km-list-title {
  display: block;
  font-weight: 850;
  color: #303642;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.km-list-sub {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.km-label {
  padding: 5px 8px;
  border-radius: 999px;
  background: #f2f4f8;
  color: #636b78;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.km-label.safe { color: var(--green); background: #effaf5; }
.km-label.issue { color: var(--red); background: #fff0f0; }
.km-label.compare { color: #795400; background: var(--yellow-soft); }

.km-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.km-rank-list { padding: 8px 14px 12px; }

.km-rank-row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--soft-line);
}

.km-rank-row:last-child { border-bottom: 0; }

.km-rank-no {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #eef1f6;
  color: #596273;
  font-size: 12px;
  font-weight: 950;
}

.km-rank-row:nth-child(-n+3) .km-rank-no {
  background: var(--yellow);
  color: #2e2711;
}

.km-footer {
  margin-top: 44px;
  border-top: 1px solid #e6e8ec;
  background: linear-gradient(180deg, #f8fafc, #fff);
  color: #5f6673;
  font-size: 13px;
}

.km-footer-grid {
  padding: 40px 0 32px;
  display: grid;
  grid-template-columns: minmax(240px, 1.35fr) repeat(3, minmax(140px, 1fr));
  gap: 38px;
  line-height: 1.6;
}

.km-footer h2 {
  margin: 0 0 13px;
  color: #1b1f2a;
  font-size: 15px;
  font-weight: 900;
}

.km-footer p {
  max-width: 360px;
  margin: 0;
  color: #6b7280;
  word-break: keep-all;
}

.km-footer nav {
  display: grid;
  align-content: start;
  gap: 9px;
}

.km-footer a {
  color: #596273;
  text-decoration: none;
}

.km-footer a:hover {
  color: #005fb8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.km-footer-bottom {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid #eceff3;
  color: #7a8291;
}

@media (max-width: 1080px) {
  .km-header-main {
    grid-template-columns: 1fr;
    height: auto;
    padding: 18px 0;
    gap: 13px;
  }

  .km-content-layout {
    grid-template-columns: 1fr;
  }

  .km-side-left { order: 2; }
  .km-center { order: 1; }
  .km-side-right { order: 3; }

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

@media (max-width: 680px) {
  .km-site-top { display: none; }
  .km-inner { max-width: calc(100% - 24px); }
  .km-brand-name strong { font-size: 21px; }
  .km-main-search { grid-template-columns: minmax(0, 1fr) 66px; height: 50px; }
  .km-main-search input { font-size: 14px; padding: 0 12px; }
  .km-summary-card h1 { font-size: 21px; }
  .km-summary-points,
  .km-app-grid,
  .km-two-col {
    grid-template-columns: 1fr;
  }
  .km-featured-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .km-footer-grid,
  .km-footer-bottom {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }
}

.km-download-page {
  display: grid;
  gap: 16px;
}

.km-download-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: stretch;
}

.km-download-title,
.km-download-card,
.km-download-body,
.km-safety-box,
.km-related-box,
.km-note-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.km-download-title {
  padding: 24px;
}

.km-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--yellow-soft);
  color: #6b5200;
  font-size: 12px;
  font-weight: 900;
}

.km-download-title h1 {
  margin: 12px 0 0;
  font-size: 31px;
  line-height: 1.32;
  letter-spacing: 0;
}

.km-download-title p {
  margin: 10px 0 0;
  color: var(--text);
  line-height: 1.7;
}

.km-download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.km-download-button,
.km-secondary-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 8px;
  font-weight: 950;
}

.km-download-button {
  background: var(--navy);
  color: #fff;
}

.km-secondary-button {
  border: 1px solid var(--line);
  background: #fff;
  color: #3b4350;
}

.km-download-card {
  padding: 18px;
}

.km-app-badge {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--yellow);
  color: #23200f;
  font-size: 17px;
  font-weight: 950;
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.1);
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, .08);
}

.km-app-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  background: #fff;
}

.km-download-card dl {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
}

.km-download-card dl div {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--soft-line);
}

.km-download-card dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.km-download-card dd {
  margin: 0;
  color: var(--ink);
  font-weight: 850;
}

.km-inline-links a {
  color: #2f5f9f;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.km-download-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  align-items: start;
}

.km-download-body {
  padding: 24px;
  color: var(--text);
  line-height: 1.78;
}

.km-download-body h2 {
  margin: 28px 0 10px;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.38;
}

.km-download-body h2:first-child {
  margin-top: 0;
}

.km-download-body p {
  margin: 0 0 14px;
}

.km-download-body ul,
.km-download-body ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

.km-download-body li + li {
  margin-top: 6px;
}

.km-download-body .wp-block-button__link {
  background: var(--navy);
  color: #fff;
  border-radius: 8px;
  padding: 11px 16px;
  font-weight: 950;
}

.km-content-info-table {
  width: 100%;
  margin: 0 0 22px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--soft-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(25, 31, 45, .035);
}

.km-content-info-table th,
.km-content-info-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--soft-line);
  text-align: left;
  vertical-align: top;
  line-height: 1.55;
}

.km-content-info-table tr:last-child th,
.km-content-info-table tr:last-child td {
  border-bottom: 0;
}

.km-content-info-table th {
  width: 148px;
  background: #fafbfe;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.km-content-info-table td {
  color: var(--ink);
  font-weight: 700;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.km-detail-answer {
  margin: 0 0 18px;
  padding: 14px 15px;
  border: 1px solid #f0d56f;
  border-radius: 10px;
  background: #fffaf0;
}

.km-detail-answer strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
}

.km-detail-answer p {
  margin: 0;
  color: var(--text);
  line-height: 1.65;
}

.km-detail-checks {
  margin: 0 0 22px;
}

.km-detail-checks h2,
.km-detail-link-section h2,
.km-detail-faq h2 {
  margin-top: 0;
}

.km-check-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--soft-line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.km-check-table div {
  display: grid;
  gap: 4px;
  padding: 13px;
  border-right: 1px solid var(--soft-line);
  border-bottom: 1px solid var(--soft-line);
}

.km-check-table div:nth-child(2n) {
  border-right: 0;
}

.km-check-table div:nth-last-child(-n+2) {
  border-bottom: 0;
}

.km-check-table span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.km-check-table strong {
  color: var(--ink);
  font-weight: 950;
  line-height: 1.45;
}

.km-detail-link-section {
  margin-top: 30px;
}

.km-detail-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.km-detail-related-grid .km-related-box {
  border: 1px solid #e3eaf4;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #fbfdff);
  box-shadow: 0 8px 20px rgba(15,23,42,.04);
}

.km-related-box h3 {
  margin: 0;
  padding: 16px 18px 6px;
  color: var(--ink);
  font-size: 16px;
}

.km-detail-faq {
  margin-top: 30px;
}

.km-detail-faq div {
  padding: 15px 0;
  border-top: 1px solid var(--soft-line);
}

.km-detail-faq h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.45;
}

.km-detail-faq p {
  margin: 0;
  color: var(--text);
  line-height: 1.7;
}

.km-download-aside {
  display: grid;
  gap: 16px;
}

.km-safety-box,
.km-related-box,
.km-note-box {
  padding: 17px;
}

.km-safety-box h2,
.km-related-box h2,
.km-note-box h2 {
  margin: 0 0 10px;
  font-size: 16px;
}

.km-safety-box p,
.km-note-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.km-sidebar-note {
  margin: -2px 0 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.km-safety-box ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--text);
  line-height: 1.65;
}

.km-keyword-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.km-keyword-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fbfcff;
  color: #414957;
  font-size: 12px;
  font-weight: 850;
}

.km-related-links {
  display: grid;
  gap: 8px;
}

.km-related-links a {
  display: block;
  padding: 10px 11px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: #fbfcff;
  color: #303642;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.45;
}

.km-related-links a:hover {
  border-color: var(--yellow-deep);
  background: var(--yellow-soft);
}

.km-archive-hero {
  padding-top: 22px;
}

.km-archive-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.km-archive-side {
  display: grid;
  gap: 16px;
}

.km-archive-main {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.km-archive-side .km-related-links,
.km-panel .km-related-links {
  padding: 12px;
}

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

.km-intent-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 15px;
}

.km-intent-box {
  min-height: 112px;
  padding: 14px;
  border: 1px solid var(--soft-line);
  border-radius: 10px;
  background: #fbfcff;
}

.km-intent-box strong {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
}

.km-intent-box span {
  display: block;
  color: var(--text);
  font-size: 13px;
  line-height: 1.6;
}

.km-muted-copy {
  margin: 0;
  padding: 15px;
  color: var(--muted);
  line-height: 1.6;
}

.km-faq-list {
  display: grid;
  gap: 12px;
  padding: 15px;
}

.km-faq-list div {
  border: 1px solid var(--soft-line);
  border-radius: 10px;
  background: #fff;
  padding: 15px;
}

.km-faq-list h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.45;
}

.km-faq-list p {
  margin: 0;
  color: var(--text);
  line-height: 1.7;
}

.km-results-panel {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.km-result-list {
  display: grid;
  gap: 12px;
  padding: 15px;
}

.km-result-card {
  border: 1px solid var(--soft-line);
  border-radius: 11px;
  background: #fff;
}

.km-result-card a {
  display: block;
  padding: 15px;
}

.km-result-card h2 {
  margin: 10px 0 7px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: 0;
}

.km-result-card p {
  margin: 0;
  color: var(--text);
  line-height: 1.65;
}

.km-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

.km-result-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: #f5f7fb;
}

.km-empty-state {
  padding: 26px;
  color: var(--text);
}

.km-empty-state h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 19px;
}

.km-empty-state p {
  margin: 0;
  line-height: 1.65;
}

.km-search-results {
  max-width: 860px;
  margin: 0 auto;
}

.km-cat-icon.has-image {
  background: #fff;
  border: 1px solid #dfe5ef;
  overflow: hidden;
}

.km-cat-icon img,
.km-mini-icon img,
.km-result-icon img,
.km-ms-category-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.km-cat-icon img {
  padding: 4px;
}

.km-cat-icon.has-image > span,
.km-mini-icon.has-image .km-icon-fallback,
.km-result-icon.has-image .km-icon-fallback,
.km-ms-category-media.has-image > span {
  display: none;
}

.km-mini-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  border: 1px solid #e3e8f1;
  background: #f7f9fc;
  color: #384253;
  font-size: 11px;
  font-weight: 950;
  overflow: hidden;
  flex: none;
}

.km-mini-icon img {
  padding: 6px;
}

.km-list-row {
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
}

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

.km-result-card:hover {
  border-color: rgba(0, 103, 192, .20);
  box-shadow: 0 12px 24px rgba(31, 41, 55, .07);
  transform: translateY(-1px);
}

.km-result-card a {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  min-height: 168px;
  padding: 16px;
}

.km-result-visual {
  position: relative;
  min-height: 136px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 216, 77, .86), transparent 28%),
    linear-gradient(135deg, #eaf5ff 0%, #f8fbff 44%, #d7f2ea 100%);
  border: 1px solid #e4e8ef;
}

.km-result-screen {
  position: absolute;
  inset: auto 12px 14px;
  height: 42px;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(0,103,192,.90), rgba(33,199,168,.84));
  box-shadow: 0 12px 24px rgba(0,0,0,.12);
}

.km-result-icon {
  position: relative;
  z-index: 2;
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.84);
  background: rgba(255,255,255,.94);
  color: #1f2937;
  font-size: 14px;
  font-weight: 950;
  overflow: hidden;
  box-shadow: 0 16px 30px rgba(31, 41, 55, .16);
}

.km-result-icon img {
  padding: 10px;
}

.km-result-copy {
  min-width: 0;
  display: grid;
  align-content: center;
}

.km-result-copy .km-label {
  width: max-content;
}

.km-ms-category-row a {
  grid-template-columns: 50px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 82px;
}

.km-ms-category-media {
  width: 50px !important;
  height: 50px;
  padding: 0 !important;
  display: grid;
  place-items: center;
  border-radius: 10px !important;
  border: 1px solid #e3e8f1;
  background: #fff8d5 !important;
  overflow: hidden;
  color: #263142 !important;
}

.km-ms-category-media img {
  padding: 7px;
}

.km-ms-category-media > span {
  padding: 0 !important;
  background: transparent !important;
}

.km-ms-category-copy {
  width: auto !important;
  padding: 0 !important;
  display: grid;
  gap: 4px;
  background: transparent !important;
}

.km-ms-category-copy strong {
  font-size: 14px;
}

.km-ms-category-copy em {
  color: #7a8494;
  font-size: 12px;
  font-style: normal;
}

.km-keyword-chips a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fbfcff;
  color: #414957;
  font-size: 12px;
  font-weight: 850;
}

.km-keyword-link-list {
  padding: 16px;
}

.navigation.pagination {
  padding: 0 15px 15px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.page-numbers {
  min-width: 34px;
  min-height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #4c5462;
  font-weight: 850;
}

.page-numbers.current {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

@media (max-width: 960px) {
  .km-download-hero,
  .km-download-layout,
  .km-archive-layout {
    grid-template-columns: 1fr;
  }

  .km-intent-grid,
  .km-landing-grid,
  .km-detail-related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .km-download-title,
  .km-download-card,
  .km-download-body,
  .km-safety-box,
  .km-related-box,
  .km-note-box {
    border-radius: 10px;
  }

  .km-download-title,
  .km-download-body {
    padding: 18px;
  }

  .km-download-title h1 {
    font-size: 24px;
  }

  .km-content-info-table,
  .km-content-info-table tbody,
  .km-content-info-table tr,
  .km-content-info-table th,
  .km-content-info-table td {
    display: block;
    width: 100%;
  }

  .km-content-info-table th {
    padding-bottom: 4px;
    border-bottom: 0;
    background: #fff;
  }

  .km-content-info-table td {
    padding-top: 0;
  }

  .km-check-table {
    grid-template-columns: 1fr;
  }

  .km-check-table div,
  .km-check-table div:nth-child(2n),
  .km-check-table div:nth-last-child(-n+2) {
    border-right: 0;
    border-bottom: 1px solid var(--soft-line);
  }

  .km-check-table div:last-child {
    border-bottom: 0;
  }
}

/* Microsoft Store inspired Kakao Markets refresh */
body {
  background: #f3f3f3;
  color: #1b1b1f;
}

.km-store-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid #e6e6e6;
  backdrop-filter: blur(12px);
}

.km-store-header-row {
  height: 76px;
  display: grid;
  grid-template-columns: auto auto minmax(280px, 520px) auto;
  align-items: center;
  gap: 24px;
}

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

.km-store-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: #ffd84d;
  color: #141414;
  font-weight: 950;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.10);
}

.km-store-brand-text {
  display: flex;
  gap: 6px;
  align-items: baseline;
  font-size: 20px;
  line-height: 1;
}

.km-store-brand-text strong { font-weight: 950; }
.km-store-brand-text span { color: #555; }

.km-store-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-weight: 800;
}

.km-store-nav a {
  position: relative;
  padding: 28px 0 25px;
  color: #202027;
}

.km-store-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  height: 3px;
  border-radius: 999px;
  background: #0067c0;
}

.km-store-search {
  height: 42px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  border: 1px solid #d6d6d6;
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
}

.km-store-search span {
  color: #59606b;
  text-align: center;
  font-size: 20px;
}

.km-store-search input {
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  font-size: 14px;
  font-weight: 650;
}

.km-store-search button {
  height: 32px;
  margin-right: 5px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: #fff4c2;
  color: #4d3c00;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.km-store-header-action {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 999px;
  background: #e9f3ff;
  color: #005a9e;
  font-weight: 900;
  white-space: nowrap;
}

.km-store-topic-row {
  border-top: 1px solid #f0f0f0;
  background: #fff;
}

.km-store-topic-row .km-inner {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 18px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.km-store-topic-row .km-inner::-webkit-scrollbar {
  display: none;
}

.km-store-topic-row a {
  color: #4d5360;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.km-store-main {
  padding: 16px 0 52px;
}

.km-store-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, .95fr);
  grid-template-rows: 188px 116px;
  gap: 12px;
}

.km-store-hero-tile {
  position: relative;
  overflow: hidden;
  border-radius: 9px;
  border: 1px solid rgba(0,0,0,.08);
  background: #fff;
  color: #111;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

.km-store-hero-tile.large {
  grid-row: 1 / span 2;
  padding: 104px 34px 30px;
  background:
    linear-gradient(90deg, rgba(20,20,20,.74), rgba(20,20,20,.20) 48%, rgba(255,216,77,.08)),
    radial-gradient(circle at 78% 26%, rgba(255,216,77,.95), rgba(255,216,77,.20) 27%, transparent 45%),
    linear-gradient(135deg, #222b3c, #4d6ea3 58%, #ffe16a);
  color: #fff;
}

.km-store-hero-tile.large::after {
  content: "K";
  position: absolute;
  right: 36px;
  bottom: -40px;
  color: rgba(255,255,255,.18);
  font-size: 230px;
  font-weight: 950;
  line-height: .8;
}

.km-hero-eyebrow {
  display: inline-flex;
  margin-bottom: 10px;
  color: #ffe680;
  font-size: 13px;
  font-weight: 950;
}

.km-store-hero-tile h1 {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0;
  font-size: 34px;
  line-height: 1.24;
  letter-spacing: 0;
}

.km-store-hero-tile p {
  position: relative;
  z-index: 1;
  max-width: 570px;
  margin: 12px 0 0;
  color: rgba(255,255,255,.90);
  font-size: 15px;
  line-height: 1.65;
}

.km-hero-button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin-top: 20px;
  padding: 0 17px;
  border-radius: 6px;
  background: #fff;
  color: #171717;
  font-weight: 950;
}

.km-store-hero-tile.compact {
  padding: 24px 26px;
  display: grid;
  align-content: end;
  gap: 8px;
  color: #fff;
}

.km-store-hero-tile.compact.green {
  background:
    linear-gradient(90deg, rgba(0,0,0,.50), rgba(0,0,0,.06)),
    linear-gradient(135deg, #07836d, #79d6bd);
}

.km-store-hero-tile.compact.dark {
  background:
    linear-gradient(90deg, rgba(0,0,0,.58), rgba(0,0,0,.16)),
    linear-gradient(135deg, #2a2f3b, #6c717c);
}

.km-store-hero-tile.compact strong {
  font-size: 22px;
  line-height: 1.3;
}

.km-store-hero-tile.compact span {
  max-width: 390px;
  color: rgba(255,255,255,.88);
  line-height: 1.55;
}

.km-store-answer {
  margin-top: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #ead27a;
  border-radius: 8px;
  background: #fff9df;
}

.km-store-answer strong {
  flex: none;
  color: #4d3c00;
  font-weight: 950;
}

.km-store-answer span {
  color: #4b4f58;
  line-height: 1.55;
}

.km-store-category-strip {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.km-store-category-strip::-webkit-scrollbar {
  display: none;
}

.km-store-category-strip a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid #dedede;
  border-radius: 999px;
  background: #fff;
  color: #2f333b;
  font-weight: 850;
  white-space: nowrap;
}

.km-store-category-strip a span {
  min-width: 26px;
  min-height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  background: #fff2b4;
  color: #4d3c00;
  font-size: 11px;
  font-weight: 950;
}

.km-store-section-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.km-store-section-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.km-store-section,
.km-store-preview-card,
.km-store-description-card {
  background: #fff;
  border: 1px solid #dedede;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,.035);
}

.km-store-section-head {
  min-height: 70px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #e9e9e9;
}

.km-store-section-head h2 {
  margin: 0;
  color: #171717;
  font-size: 22px;
  line-height: 1.25;
}

.km-store-section-head a {
  color: #005a9e;
  font-weight: 900;
  white-space: nowrap;
}

.km-store-app-list {
  padding: 18px 24px 22px;
  display: grid;
  gap: 20px;
}

.km-store-app-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.km-store-app-row .km-app-icon {
  width: 82px;
  height: 82px;
  border-radius: 9px;
}

.km-store-app-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.km-store-app-copy strong {
  color: #1b1b1f;
  font-size: 16px;
  line-height: 1.35;
}

.km-store-app-copy span,
.km-store-app-copy em {
  color: #69707c;
  font-size: 13px;
  font-style: normal;
}

.km-store-price {
  align-self: end;
  padding: 5px 9px;
  border-radius: 5px;
  background: #f5f5f5;
  color: #202020;
  font-size: 12px;
  font-weight: 900;
}

.km-store-link-list {
  padding: 13px 24px 20px;
  display: grid;
}

.km-store-link-list a {
  padding: 13px 0;
  display: grid;
  gap: 5px;
  border-bottom: 1px solid #ededed;
}

.km-store-link-list a:last-child { border-bottom: 0; }

.km-store-link-list strong {
  color: #242833;
  line-height: 1.45;
}

.km-store-link-list span {
  color: #6d7480;
  font-size: 13px;
  line-height: 1.45;
}

.km-store-detail-hero {
  margin-top: -16px;
  min-height: 520px;
  background:
    linear-gradient(90deg, rgba(255, 232, 113, .98) 0%, rgba(255, 232, 113, .86) 36%, rgba(255,255,255,.50) 70%, rgba(255,255,255,.86) 100%),
    radial-gradient(circle at 76% 22%, rgba(255,216,77,.85), transparent 30%),
    linear-gradient(135deg, #ffd84d, #eef3ff 62%, #fff);
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.km-store-detail-hero-inner {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 42px;
}

.km-store-detail-copy {
  max-width: 720px;
}

.km-store-detail-title-row {
  display: flex;
  align-items: center;
  gap: 24px;
}

.km-store-detail-title-row .km-app-badge {
  width: 116px;
  height: 116px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 32px rgba(0,0,0,.12);
}

.km-store-detail-copy h1 {
  margin: 12px 0 8px;
  font-size: 40px;
  line-height: 1.2;
  letter-spacing: 0;
}

.km-publisher {
  color: #005a9e;
  font-weight: 850;
}

.km-store-rating-row {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: #2f343d;
  font-weight: 850;
}

.km-store-detail-copy p {
  max-width: 620px;
  margin: 20px 0 0;
  color: #2f343d;
  font-size: 16px;
  line-height: 1.7;
}

.km-store-hero-panel {
  display: grid;
  gap: 0;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 10px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 14px 30px rgba(0,0,0,.08);
  overflow: hidden;
}

.km-store-hero-panel div {
  padding: 16px 18px;
  display: grid;
  gap: 5px;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.km-store-hero-panel div:last-child { border-bottom: 0; }

.km-store-hero-panel span {
  color: #69707c;
  font-size: 12px;
  font-weight: 900;
}

.km-store-hero-panel strong {
  color: #171717;
  line-height: 1.45;
}

.km-store-detail-layout {
  margin-top: -72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: start;
}

.km-store-detail-main {
  display: grid;
  gap: 20px;
}

.km-store-preview-card {
  padding-bottom: 24px;
}

.km-store-preview-grid {
  padding: 20px 24px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.km-store-preview-grid div {
  min-height: 120px;
  padding: 18px;
  display: grid;
  align-content: end;
  border-radius: 8px;
  background: linear-gradient(135deg, #f7f8fb, #fff6ce);
  border: 1px solid #ededed;
}

.km-store-preview-grid span {
  color: #69707c;
  font-size: 12px;
  font-weight: 900;
}

.km-store-preview-grid strong {
  margin-top: 7px;
  color: #1b1b1f;
  line-height: 1.45;
}

.km-store-description-card {
  padding: 26px;
}

.km-store-description-card h2:first-child {
  margin-top: 0;
}

.km-download-body.km-store-description-card {
  box-shadow: 0 2px 8px rgba(0,0,0,.035);
}

.km-download-actions .km-download-button {
  min-width: 180px;
  background: #0067c0;
  border-radius: 4px;
}

.km-download-actions .km-secondary-button {
  border-radius: 4px;
  background: rgba(255,255,255,.72);
}

@media (max-width: 1080px) {
  .km-store-header-row {
    height: auto;
    padding: 16px 0;
    grid-template-columns: 1fr auto;
  }

  .km-store-nav {
    order: 3;
    grid-column: 1 / -1;
    overflow-x: auto;
  }

  .km-store-search {
    grid-column: 1 / -1;
    order: 4;
  }

  .km-store-hero-grid,
  .km-store-section-grid,
  .km-store-section-grid.three,
  .km-store-detail-hero-inner,
  .km-store-detail-layout {
    grid-template-columns: 1fr;
  }

  .km-store-hero-grid {
    grid-template-rows: auto;
  }

  .km-store-hero-tile.large {
    grid-row: auto;
    min-height: 310px;
  }

  .km-store-detail-layout {
    margin-top: -46px;
  }
}

@media (max-width: 680px) {
  .km-store-header-row {
    gap: 12px;
  }

  .km-store-header-action {
    display: none;
  }

  .km-store-brand-text {
    font-size: 18px;
  }

  .km-store-topic-row .km-inner {
    gap: 14px;
  }

  .km-store-hero-tile.large {
    min-height: 330px;
    padding: 90px 22px 24px;
  }

  .km-store-hero-tile h1 {
    font-size: 27px;
  }

  .km-store-answer {
    align-items: flex-start;
    flex-direction: column;
  }

  .km-store-app-row {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .km-store-app-row .km-app-icon {
    width: 62px;
    height: 62px;
  }

  .km-store-price {
    grid-column: 2;
    justify-self: start;
  }

  .km-store-detail-hero {
    min-height: auto;
    padding: 34px 0 88px;
  }

  .km-store-detail-hero-inner {
    min-height: auto;
    gap: 24px;
  }

  .km-store-detail-title-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .km-store-detail-title-row .km-app-badge {
    width: 88px;
    height: 88px;
    border-radius: 18px;
  }

  .km-store-detail-copy h1 {
    font-size: 31px;
  }

  .km-store-preview-grid {
    grid-template-columns: 1fr;
  }

  .km-store-description-card {
    padding: 20px;
  }
}

/* Microsoft Store-inspired redesign v0.3.2 */
.km-ms-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid #e6e6e6;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(16px);
}

.km-ms-header-row {
  min-height: 84px;
  display: grid;
  grid-template-columns: 162px auto minmax(320px, 520px) auto;
  align-items: center;
  gap: 26px;
}

.km-ms-brand {
  display: inline-flex;
  align-items: center;
  color: #1a1a1a;
  font-size: 18px;
}

.km-ms-brand-name {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
}

.km-ms-brand-name strong { font-weight: 950; }
.km-ms-brand-name span {
  margin-left: 4px;
  padding-left: 12px;
  border-left: 1px solid #777;
  color: #4b4b4b;
}

.km-ms-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  min-width: 0;
}

.km-ms-nav a {
  position: relative;
  color: #111;
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
}

.km-ms-nav a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -14px;
  width: 18px;
  height: 3px;
  transform: translateX(-50%);
  border-radius: 3px;
  background: #0067c0;
}

.km-ms-search {
  height: 44px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  border: 1px solid #cfcfcf;
  border-radius: 999px;
  background: #fff;
}

.km-ms-search span {
  display: grid;
  place-items: center;
  color: #4c5361;
  font-size: 20px;
}

.km-ms-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #222;
  font-size: 14px;
}

.km-ms-search button {
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  border: 0;
}

.km-ms-install {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 999px;
  background: #e7f2ff;
  color: #005a9e;
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
}

.km-ms-page {
  padding: 16px 0 64px;
  background: #f4f4f4;
  display: flex;
  flex-direction: column;
}

.km-ms-page .km-inner {
  max-width: 1152px;
}

.km-ms-home-hero { order: 1; }
.km-ms-hero-dots { order: 2; }
.km-ms-collection-grid { order: 3; }
.km-ms-store-shelves { order: 4; }
.km-ms-category-row { order: 5; }
.km-ms-answer-strip { order: 6; }
.km-ms-guide-grid { order: 7; }

.km-ms-home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.58fr) minmax(368px, .92fr);
  gap: 10px;
}

.km-ms-feature-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,.07);
  background: #fff;
  color: #111;
  box-shadow: 0 2px 5px rgba(0,0,0,.045);
}

.km-ms-feature-main {
  min-height: 388px;
  display: grid;
  align-items: end;
  padding: 42px 46px;
  background:
    linear-gradient(90deg, rgba(32,22,0,.86) 0%, rgba(32,22,0,.58) 38%, rgba(32,22,0,.08) 68%),
    linear-gradient(135deg, #7c500b 0%, #f7bd2f 30%, #f6dc72 49%, #3fc0bd 71%, #0f5d6a 100%);
  color: #fff;
}

.km-ms-feature-main::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.56), rgba(0,0,0,.16) 42%, rgba(0,0,0,.02) 68%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.08) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 1px, transparent 1px 78px);
  opacity: .66;
  pointer-events: none;
}

.km-ms-feature-art {
  position: absolute;
  inset: 0;
  opacity: 1;
}

.km-ms-feature-art::before {
  content: "";
  position: absolute;
  right: -224px;
  bottom: -58px;
  width: 590px;
  height: 394px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,255,255,.18) 46%, rgba(17,24,39,.08)),
    repeating-linear-gradient(135deg, rgba(255,255,255,.26) 0 10px, transparent 10px 24px),
    linear-gradient(135deg, #ffe36a, #43d0c3 60%, #0b6170);
  transform: rotate(-6deg);
  box-shadow: 0 32px 78px rgba(0,0,0,.22);
}

.km-ms-feature-art::after {
  content: "";
  position: absolute;
  right: -18px;
  top: 42px;
  width: 330px;
  height: 246px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.45);
  background:
    linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.36)),
    linear-gradient(135deg, rgba(255,232,107,.72), rgba(45,212,191,.42));
  box-shadow:
    0 24px 58px rgba(0,0,0,.20),
    inset 0 0 0 10px rgba(255,255,255,.18);
  opacity: .48;
  transform: rotate(5deg);
}

.km-ms-real-hero-icons {
  position: absolute;
  right: -142px;
  bottom: 22px;
  z-index: 2;
  width: 390px;
  height: 280px;
  pointer-events: none;
}

.km-ms-real-hero-icon {
  position: absolute;
  width: 82px;
  height: 82px;
  object-fit: contain;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.70);
  background: rgba(255,255,255,.94);
  padding: 9px;
  box-shadow: 0 18px 38px rgba(0,0,0,.24);
}

.km-ms-real-hero-icon.icon-1 { right: 126px; top: 12px; width: 116px; height: 116px; }
.km-ms-real-hero-icon.icon-2 { right: 22px; top: 48px; }
.km-ms-real-hero-icon.icon-3 { right: 258px; top: 72px; }
.km-ms-real-hero-icon.icon-4 { right: 132px; top: 144px; width: 94px; height: 94px; }
.km-ms-real-hero-icon.icon-5 { right: 318px; top: 10px; width: 64px; height: 64px; }
.km-ms-real-hero-icon.icon-6 { right: 24px; top: 170px; width: 66px; height: 66px; }
.km-ms-real-hero-icon.icon-7 { right: 272px; top: 176px; width: 68px; height: 68px; }

.km-ms-art-window,
.km-ms-art-badge,
.km-ms-art-ribbon {
  display: none;
}

.km-ms-art-window {
  position: absolute;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.34);
  box-shadow: 0 20px 48px rgba(0,0,0,.18);
  transform: rotate(-7deg);
}

.km-ms-art-window.one {
  right: 92px;
  top: 48px;
  width: 250px;
  height: 170px;
  background: linear-gradient(135deg, #fff7bf, #57b4ff);
}

.km-ms-art-window.one::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 28px;
  width: 74px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  box-shadow:
    0 28px 0 rgba(255,255,255,.58),
    92px 58px 0 rgba(255,216,77,.84);
}

.km-ms-art-window.two {
  right: 250px;
  bottom: 54px;
  width: 180px;
  height: 124px;
  background: linear-gradient(135deg, #fff, #ffcf3f);
}

.km-ms-art-window.two::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 24px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255,255,255,.84);
  box-shadow: 62px 20px 0 rgba(17,24,39,.18);
}

.km-ms-art-window.three {
  right: 28px;
  bottom: 44px;
  width: 150px;
  height: 104px;
  background: linear-gradient(135deg, #0f172a, #3dd6a0);
}

.km-ms-art-window.three::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 20px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255,255,255,.84);
  box-shadow: 46px 0 0 rgba(255,216,77,.84), 92px 0 0 rgba(255,255,255,.68);
}

.km-ms-art-badge {
  position: absolute;
  right: 86px;
  top: 98px;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ffde33;
  color: #211900;
  font-size: 13px;
  font-weight: 950;
  box-shadow: 0 18px 34px rgba(0,0,0,.20);
  transform: rotate(8deg);
}

.km-ms-art-ribbon {
  position: absolute;
  right: 288px;
  top: 82px;
  width: 116px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255,255,255,.56);
  box-shadow: 0 18px 34px rgba(0,0,0,.16);
  transform: rotate(-12deg);
}

.km-ms-carousel-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.22);
  color: rgba(255,255,255,.86);
  font-size: 28px;
  line-height: 1;
  transform: translateY(-50%);
}

.km-ms-carousel-control.prev { left: 10px; }
.km-ms-carousel-control.next { right: 10px; }

.km-ms-feature-copy {
  position: relative;
  z-index: 4;
  max-width: 390px;
  display: grid;
  gap: 13px;
  text-shadow: 0 2px 16px rgba(0,0,0,.26);
}

.km-ms-eyebrow {
  color: #ffe680;
  font-size: 13px;
  font-weight: 950;
}

.km-ms-feature-copy h1 {
  margin: 0;
  color: #fff;
  font-size: 31px;
  line-height: 1.18;
  letter-spacing: 0;
  word-break: keep-all;
}

.km-ms-feature-desc {
  color: rgba(255,255,255,.92);
  font-size: 12.5px;
  line-height: 1.55;
}

.km-ms-play-button {
  width: max-content;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-radius: 5px;
  background: rgba(255,255,255,.96);
  color: #111;
  font-size: 14px;
  font-weight: 900;
}

.km-ms-play-button:hover {
  background: #fff;
  transform: translateY(-1px);
}

.km-ms-play-button.small {
  min-height: 30px;
  padding: 0 12px;
  font-size: 12px;
}

.km-ms-feature-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
}

.km-ms-feature-side {
  min-height: 189px;
  padding: 24px 26px;
  display: grid;
  align-content: end;
  gap: 16px;
  color: #fff;
}

.km-ms-feature-side::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.58), rgba(0,0,0,.20) 50%, rgba(0,0,0,.03)),
    repeating-linear-gradient(0deg, rgba(255,255,255,.08) 0 1px, transparent 1px 46px);
  z-index: 1;
}

.km-ms-feature-side > * {
  position: relative;
  z-index: 2;
}

.km-ms-side-icon-grid {
  position: absolute;
  right: -34px;
  top: 16px;
  z-index: 1;
  width: 254px;
  height: 154px;
  pointer-events: none;
  opacity: .76;
}

.km-ms-side-icon-grid img {
  position: absolute;
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.66);
  background: rgba(255,255,255,.92);
  padding: 8px;
  box-shadow: 0 15px 28px rgba(0,0,0,.24);
}

.km-ms-side-icon-grid img:nth-child(1) { right: 82px; top: 4px; width: 82px; height: 82px; }
.km-ms-side-icon-grid img:nth-child(2) { right: 0; top: 34px; }
.km-ms-side-icon-grid img:nth-child(3) { right: 156px; top: 46px; }
.km-ms-side-icon-grid img:nth-child(4) { right: 78px; top: 92px; width: 54px; height: 54px; }
.km-ms-side-icon-grid img:nth-child(5) { right: 18px; top: 104px; width: 48px; height: 48px; }

.km-ms-side-icon-grid.compact {
  right: -2px;
  top: 12px;
  width: 156px;
  height: 108px;
}

.km-ms-side-icon-grid.compact img {
  width: 48px;
  height: 48px;
  border-radius: 11px;
  padding: 6px;
}

.km-ms-side-icon-grid.compact img:nth-child(1) { right: 54px; top: 0; width: 62px; height: 62px; }
.km-ms-side-icon-grid.compact img:nth-child(2) { right: 0; top: 32px; }
.km-ms-side-icon-grid.compact img:nth-child(3) { right: 104px; top: 38px; }
.km-ms-side-icon-grid.compact img:nth-child(4) { right: 46px; top: 70px; }

.km-ms-feature-side.green {
  grid-column: 1 / -1;
  background:
    linear-gradient(135deg, #0c573e, #23b18d 62%, #a7f3d0);
}

.km-ms-feature-side.dark {
  background:
    linear-gradient(135deg, #111827, #334155 58%, #7dd3fc);
}

.km-ms-feature-side.yellow {
  background:
    linear-gradient(135deg, #9a6b00, #facc15 58%, #fff3b0);
}

.km-ms-side-title {
  max-width: 210px;
  color: #fff;
  font-size: 23px;
  line-height: 1.25;
  font-weight: 950;
  text-shadow: 0 2px 12px rgba(0,0,0,.32);
}

.km-ms-hero-dots {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.km-ms-hero-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8b8f98;
}

.km-ms-hero-dots span.active {
  background: #5d626d;
  box-shadow: 0 0 0 4px rgba(93,98,109,.10);
}

.km-ms-answer-strip {
  margin-top: 0;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid #e2d07a;
  border-radius: 8px;
  background: #fff9df;
}

.km-ms-answer-strip strong {
  flex: none;
  color: #493900;
  font-weight: 950;
}

.km-ms-answer-strip span {
  color: #424957;
  line-height: 1.55;
}

.km-ms-store-shelves {
  margin-top: 18px;
  display: grid;
  gap: 18px;
}

.km-ms-shelf {
  overflow: hidden;
  border: 1px solid #dedede;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.035);
}

.km-ms-shelf .km-ms-section-head {
  min-height: 84px;
}

.km-ms-shelf-rail {
  padding: 30px 56px 36px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 22px;
}

.km-ms-store-tile {
  position: relative;
  overflow: hidden;
  min-width: 0;
  min-height: 222px;
  display: grid;
  align-content: start;
  gap: 13px;
  border: 1px solid #e1e1e1;
  border-radius: 8px;
  background: #fff;
  color: #1f1f1f;
  box-shadow: 0 2px 5px rgba(0,0,0,.045);
}

.km-ms-store-tile .km-app-icon {
  position: relative;
  z-index: 2;
  margin: 22px auto 0;
  width: 82px;
  height: 82px;
  border-radius: 8px;
}

.km-ms-tile-art {
  position: absolute;
  inset: 0 0 auto;
  height: 118px;
  background:
    radial-gradient(circle at 30% 24%, rgba(255,216,77,.46), transparent 34%),
    linear-gradient(135deg, #f6edf2, #e5f7ff);
}

.km-ms-tile-art-glow {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255,255,255,.36), rgba(255,255,255,0)),
    repeating-linear-gradient(135deg, rgba(255,255,255,.18) 0 9px, transparent 9px 24px);
}

.km-ms-store-copy {
  position: relative;
  z-index: 2;
  padding: 0 16px;
  min-width: 0;
  display: grid;
  gap: 5px;
}

.km-ms-store-copy strong {
  min-height: 40px;
  color: #1b1b1f;
  font-size: 15px;
  line-height: 1.35;
  word-break: keep-all;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.km-ms-store-copy span,
.km-ms-store-copy em {
  color: #727272;
  font-size: 13px;
  font-style: normal;
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.km-ms-store-tile .km-ms-free {
  position: relative;
  z-index: 2;
  grid-column: auto;
  margin: 0 16px 16px;
  justify-self: end;
}

.layout-cards .km-ms-shelf-rail {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.layout-cards .km-ms-store-tile {
  min-height: 220px;
}

.layout-poster .km-ms-shelf-rail {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.layout-poster .km-ms-store-tile,
.layout-mosaic .km-ms-store-tile {
  min-height: 300px;
  align-content: end;
  padding: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0) 28%, rgba(0,0,0,.72) 100%),
    linear-gradient(135deg, #0f5d8f, #31b5e7 48%, #ffe05a);
  color: #fff;
}

.layout-poster .km-ms-store-tile:nth-child(2n),
.layout-mosaic .km-ms-store-tile:nth-child(2n) {
  background:
    linear-gradient(180deg, rgba(0,0,0,0) 28%, rgba(0,0,0,.74) 100%),
    linear-gradient(135deg, #243046, #6d4adf 54%, #ffd84d);
}

.layout-poster .km-ms-tile-art,
.layout-mosaic .km-ms-tile-art {
  height: 100%;
  background:
    radial-gradient(circle at 72% 20%, rgba(255,255,255,.36), transparent 28%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.10) 0 10px, transparent 10px 28px);
}

.layout-poster .km-ms-store-tile .km-app-icon,
.layout-mosaic .km-ms-store-tile .km-app-icon {
  margin: 0 18px 0;
  width: 54px;
  height: 54px;
  border-radius: 10px;
}

.layout-poster .km-ms-store-copy,
.layout-mosaic .km-ms-store-copy {
  padding: 0 18px;
}

.layout-poster .km-ms-store-copy strong,
.layout-poster .km-ms-store-copy span,
.layout-poster .km-ms-store-copy em,
.layout-mosaic .km-ms-store-copy strong,
.layout-mosaic .km-ms-store-copy span,
.layout-mosaic .km-ms-store-copy em {
  color: #fff;
  text-shadow: 0 1px 12px rgba(0,0,0,.34);
}

.layout-editorial .km-ms-shelf-rail,
.layout-social .km-ms-shelf-rail,
.layout-collections .km-ms-shelf-rail {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.layout-editorial .km-ms-store-tile {
  min-height: 194px;
  grid-template-columns: 112px minmax(0, 1fr);
  align-content: stretch;
  gap: 18px;
  padding: 8px;
}

.layout-editorial .km-ms-tile-art {
  position: relative;
  grid-row: 1 / span 3;
  width: 112px;
  height: 100%;
  min-height: 178px;
  border-radius: 6px;
}

.layout-editorial .km-ms-store-tile .km-app-icon {
  position: absolute;
  left: 32px;
  top: 58px;
  margin: 0;
  width: 64px;
  height: 64px;
}

.layout-editorial .km-ms-store-copy {
  padding: 14px 0 0;
}

.layout-editorial .km-ms-free {
  grid-column: 2;
  margin: 0 0 12px;
  justify-self: start;
}

.layout-feature-list .km-ms-shelf-rail {
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, .95fr);
}

.layout-feature-list .km-ms-store-tile:first-child {
  min-height: 410px;
  align-content: end;
  padding: 34px;
  background:
    linear-gradient(90deg, rgba(0,0,0,.74), rgba(0,0,0,.14)),
    linear-gradient(135deg, #1e5639, #b7d56a 52%, #f5c542);
  color: #fff;
}

.layout-feature-list .km-ms-store-tile:first-child .km-ms-tile-art {
  height: 100%;
  background:
    radial-gradient(circle at 65% 35%, rgba(255,255,255,.32), transparent 28%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.12) 0 12px, transparent 12px 34px);
}

.layout-feature-list .km-ms-store-tile:first-child .km-app-icon {
  margin: 0 0 18px;
  width: 72px;
  height: 72px;
}

.layout-feature-list .km-ms-store-tile:first-child .km-ms-store-copy {
  padding: 0;
}

.layout-feature-list .km-ms-store-tile:first-child .km-ms-store-copy strong,
.layout-feature-list .km-ms-store-tile:first-child .km-ms-store-copy span,
.layout-feature-list .km-ms-store-tile:first-child .km-ms-store-copy em {
  color: #fff;
}

.layout-feature-list .km-ms-store-tile:not(:first-child) {
  min-height: 72px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  box-shadow: none;
}

.layout-feature-list .km-ms-store-tile:not(:first-child) .km-ms-tile-art {
  display: none;
}

.layout-feature-list .km-ms-store-tile:not(:first-child) .km-app-icon {
  margin: 0;
  width: 44px;
  height: 44px;
}

.layout-feature-list .km-ms-store-tile:not(:first-child) .km-ms-store-copy {
  padding: 0;
}

.layout-feature-list .km-ms-store-tile:not(:first-child) .km-ms-store-copy strong {
  min-height: auto;
}

.layout-feature-list .km-ms-store-tile:not(:first-child) .km-ms-free {
  grid-column: auto;
  margin: 0;
}

.layout-social .km-ms-store-tile {
  min-height: 250px;
  align-content: end;
  text-align: center;
}

.layout-social .km-ms-tile-art {
  height: 160px;
  filter: blur(0);
  background:
    linear-gradient(180deg, rgba(255,255,255,0), #fff 82%),
    radial-gradient(circle at 42% 20%, rgba(0,103,192,.44), transparent 34%),
    linear-gradient(135deg, #f4f6f8, #ddecff);
}

.layout-social .km-ms-store-tile .km-app-icon {
  margin-top: 88px;
}

.layout-social .km-ms-store-copy {
  padding-bottom: 16px;
}

.layout-social .km-ms-free {
  display: none;
}

.layout-mosaic .km-ms-shelf-rail {
  grid-template-columns: 1.15fr repeat(2, minmax(0, 1fr));
  grid-auto-rows: 170px;
}

.layout-mosaic .km-ms-store-tile {
  min-height: 170px;
}

.layout-mosaic .km-ms-store-tile:first-child {
  grid-row: span 2;
}

.layout-collections .km-ms-store-tile {
  min-height: 210px;
  align-content: end;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.58)),
    linear-gradient(135deg, #174e36, #5da547);
  color: #fff;
}

.layout-collections .km-ms-store-tile:nth-child(2) {
  background:
    linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.58)),
    linear-gradient(135deg, #006b6f, #2f9d8f);
}

.layout-collections .km-ms-store-tile:nth-child(3) {
  background:
    linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.58)),
    linear-gradient(135deg, #2d145f, #6948d8);
}

.layout-collections .km-ms-tile-art {
  height: 100%;
  background:
    radial-gradient(circle at 72% 26%, rgba(255,255,255,.24), transparent 26%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.10) 0 12px, transparent 12px 32px);
}

.layout-collections .km-app-icon {
  display: none;
}

.layout-collections .km-ms-store-copy {
  padding: 0;
}

.layout-collections .km-ms-store-copy strong {
  min-height: auto;
  color: #fff;
  font-size: 24px;
}

.layout-collections .km-ms-store-copy span {
  color: rgba(255,255,255,.86);
}

.km-ms-category-row {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(8, minmax(120px, 1fr));
  gap: 8px;
}

.km-ms-category-row a {
  min-height: 70px;
  padding: 12px;
  display: grid;
  align-content: center;
  gap: 6px;
  border: 1px solid #dedede;
  border-radius: 8px;
  background: #fff;
  color: #20242f;
}

.km-ms-category-row span {
  width: max-content;
  padding: 3px 7px;
  border-radius: 5px;
  background: #fff2b4;
  color: #4b3a00;
  font-size: 11px;
  font-weight: 950;
}

.km-ms-category-row strong {
  font-size: 13px;
  line-height: 1.35;
}

.km-ms-collection-grid,
.km-ms-guide-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.km-ms-collection-grid {
  margin-top: 0;
}

.km-ms-guide-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.km-ms-collection {
  overflow: hidden;
  border: 1px solid #dedede;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.035);
}

.km-ms-section-head {
  min-height: 92px;
  padding: 0 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #e9e9e9;
}

.km-ms-section-head h2 {
  margin: 0;
  color: #171717;
  font-size: 24px;
  line-height: 1.25;
}

.km-ms-section-head a {
  color: #005a9e;
  font-weight: 950;
  white-space: nowrap;
}

.km-ms-section-head h2::after {
  content: "›";
  margin-left: 8px;
  color: #0067c0;
  font-weight: 950;
}

.km-ms-section-actions {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.km-ms-rail-controls {
  display: inline-flex;
  gap: 10px;
}

.km-ms-rail-controls button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #f1f1f1;
  color: #737780;
  font-size: 20px;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0,0,0,.10);
}

.km-ms-app-stack {
  padding: 34px 56px 38px;
  display: grid;
  gap: 34px;
}

.km-ms-app-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  color: #1f1f1f;
}

.km-ms-rank {
  display: none;
}

.km-ms-app-row .km-app-icon {
  width: 82px;
  height: 82px;
  border-radius: 8px;
}

.km-ms-app-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.km-ms-app-copy strong {
  color: #1b1b1f;
  font-size: 15px;
  line-height: 1.35;
  word-break: keep-all;
}

.km-ms-app-copy span,
.km-ms-app-copy em {
  color: #727272;
  font-size: 13px;
  font-style: normal;
}

.km-ms-free {
  grid-column: 2;
  justify-self: start;
  align-self: start;
  padding: 5px 10px;
  border-radius: 5px;
  background: #f3f3f3;
  color: #202020;
  font-size: 12px;
  font-weight: 900;
}

.km-ms-link-stack {
  padding: 16px 28px 24px;
  display: grid;
}

.km-ms-link-stack a {
  padding: 14px 0;
  display: grid;
  gap: 5px;
  border-bottom: 1px solid #eeeeee;
  color: #20242f;
}

.km-ms-link-stack a:last-child { border-bottom: 0; }

.km-ms-link-stack strong {
  line-height: 1.4;
}

.km-ms-link-stack span {
  color: #707781;
  font-size: 13px;
  line-height: 1.45;
}

.km-ms-detail-hero {
  margin-top: -16px;
  min-height: 620px;
  background:
    linear-gradient(90deg, rgba(255,235,91,.98) 0%, rgba(255,237,117,.88) 34%, rgba(255,255,255,.46) 62%, rgba(255,255,255,.10) 100%),
    radial-gradient(circle at 78% 24%, rgba(255,216,77,.90), transparent 28%),
    radial-gradient(circle at 88% 44%, rgba(57,181,189,.50), transparent 30%),
    linear-gradient(135deg, #ffe14c 0%, #fff4ab 36%, #dff4ff 72%, #ffffff 100%);
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.km-ms-detail-hero-grid {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(360px, .70fr);
  align-items: center;
  gap: 42px;
}

.km-ms-detail-product {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}

.km-ms-detail-product .km-app-badge {
  width: 104px;
  height: 104px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 36px rgba(0,0,0,.14);
}

.km-ms-product-copy {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.km-ms-pill {
  width: max-content;
  max-width: 100%;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.60);
  color: #5a4300;
  font-size: 13px;
  font-weight: 950;
}

.km-ms-product-copy h1 {
  max-width: 860px;
  margin: 0;
  color: #101010;
  font-size: 39px;
  line-height: 1.18;
  letter-spacing: 0;
  word-break: keep-all;
}

.km-ms-publisher {
  width: max-content;
  color: #005a9e;
  font-weight: 900;
}

.km-ms-meta-row {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.km-ms-meta-row span {
  display: grid;
  gap: 4px;
}

.km-ms-meta-row strong {
  color: #111;
  font-size: 14px;
}

.km-ms-meta-row em {
  color: #5e6470;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.km-ms-product-copy p {
  max-width: 620px;
  margin: 4px 0 0;
  color: #1f2937;
  font-size: 15px;
  line-height: 1.7;
}

.km-ms-actions {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.km-ms-primary-action,
.km-ms-secondary-action {
  min-height: 46px;
  min-width: 180px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 5px;
  font-weight: 950;
}

.km-ms-primary-action {
  background: linear-gradient(180deg, #0877d8, #0067c0);
  color: #fff;
  box-shadow: 0 9px 18px rgba(0,103,192,.24);
}

.km-ms-secondary-action {
  border: 1px solid #d5d5d5;
  background: rgba(255,255,255,.90);
  color: #222;
}

.km-ms-primary-action:hover,
.km-ms-secondary-action:hover,
.km-ms-floating-store:hover,
.km-ms-description-card .wp-block-button__link:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.km-ms-media-card {
  width: 100%;
  max-width: 520px;
  justify-self: end;
  overflow: hidden;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.km-ms-media-art {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(0,0,0,.12)),
    radial-gradient(circle at 72% 24%, rgba(255,216,77,.96), transparent 30%),
    radial-gradient(circle at 18% 78%, rgba(255,255,255,.50), transparent 26%),
    linear-gradient(135deg, #101828, #2870d8 54%, #ffe071);
  box-shadow: 0 24px 64px rgba(0,0,0,.16);
}

.km-ms-media-art.has-real-image {
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(0,0,0,.16)),
    radial-gradient(circle at 72% 24%, rgba(255,216,77,.96), transparent 30%),
    radial-gradient(circle at 18% 78%, rgba(255,255,255,.54), transparent 26%),
    linear-gradient(135deg, #101828, #236dce 54%, #ffe071);
}

.km-ms-media-real {
  position: absolute;
  left: 50%;
  top: 46%;
  z-index: 5;
  width: 154px;
  height: 154px;
  object-fit: contain;
  border-radius: 32px;
  border: 1px solid rgba(255,255,255,.74);
  background: rgba(255,255,255,.94);
  padding: 18px;
  box-shadow: 0 28px 64px rgba(0,0,0,.28);
  transform: translate(-50%, -50%);
}

.km-ms-media-art::before {
  content: "";
  position: absolute;
  right: 28px;
  top: 38px;
  width: 150px;
  height: 210px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.34);
  background:
    linear-gradient(180deg, rgba(255,255,255,.80), rgba(255,255,255,.30)),
    linear-gradient(135deg, #fff9c4, #60a5fa);
  box-shadow: 0 22px 46px rgba(0,0,0,.22);
}

.km-ms-media-art::after {
  content: "";
  position: absolute;
  left: 44px;
  bottom: 46px;
  width: 80px;
  height: 80px;
  border-radius: 18px;
  background: #fff;
  box-shadow:
    98px -26px 0 rgba(255,216,77,.95),
    196px 10px 0 rgba(45,212,191,.92),
    50px 84px 0 rgba(255,255,255,.72);
  opacity: .90;
}

.km-ms-art-tile {
  position: absolute;
  z-index: 2;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.38);
  box-shadow: 0 18px 36px rgba(0,0,0,.22);
}

.km-ms-art-tile.one {
  left: 40px;
  top: 42px;
  width: 190px;
  height: 126px;
  background: linear-gradient(135deg, #fff7bc, #60a5fa);
}

.km-ms-art-tile.two {
  right: 46px;
  top: 92px;
  width: 150px;
  height: 100px;
  background: linear-gradient(135deg, #fff, #ffca28);
}

.km-ms-art-tile.three {
  left: 120px;
  bottom: 28px;
  width: 220px;
  height: 92px;
  background: linear-gradient(135deg, #0f172a, #21c7a8);
}

.km-ms-media-letter {
  position: absolute;
  right: 28px;
  bottom: -22px;
  color: rgba(255,255,255,.20);
  font-size: 210px;
  font-weight: 950;
  line-height: .8;
}

.km-ms-pause {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: #111;
  font-size: 14px;
  font-weight: 950;
}

.km-ms-store-facts {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr) minmax(0, .9fr);
  border: 1px solid rgba(0,0,0,.10);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(12px);
}

.km-ms-store-facts div {
  min-height: 92px;
  padding: 12px 10px;
  display: grid;
  align-content: center;
  gap: 6px;
  border-right: 1px solid rgba(0,0,0,.08);
}

.km-ms-store-facts div:last-child { border-right: 0; }

.km-ms-store-facts span {
  color: #667085;
  font-size: 12px;
  font-weight: 900;
}

.km-ms-store-facts strong {
  color: #111827;
  font-size: 11px;
  line-height: 1.4;
  overflow-wrap: normal;
  word-break: break-word;
}

.km-ms-detail-content {
  margin-top: -72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 318px;
  gap: 24px;
  align-items: start;
}

.km-ms-detail-main {
  display: grid;
  gap: 20px;
}

.km-ms-screenshot-card,
.km-ms-description-card,
.km-ms-aside-card {
  border: 1px solid #e1e6ee;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15,23,42,.045);
}

.km-ms-screenshot-grid {
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.km-ms-screenshot-grid div {
  position: relative;
  min-height: 252px;
  padding: 18px;
  display: grid;
  align-content: end;
  border-radius: 8px;
  border: 1px solid #e8e8e8;
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.22)),
    linear-gradient(135deg, #fff7bc, #eaf5ff);
}

.km-ms-preview-shot.official {
  background:
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(0,0,0,.32)),
    radial-gradient(circle at 74% 20%, rgba(255,216,77,.95), transparent 24%),
    linear-gradient(135deg, #7dd3fc, #dff7ff 48%, #ffdf45);
}

.km-ms-preview-shot.setup {
  background:
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(0,0,0,.34)),
    radial-gradient(circle at 26% 28%, rgba(255,255,255,.84), transparent 20%),
    linear-gradient(135deg, #193b52, #2dd4bf 58%, #ffe071);
}

.km-ms-shot-real {
  position: absolute;
  left: 50%;
  top: 40%;
  z-index: 2;
  width: 118px;
  height: 118px;
  object-fit: contain;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,.74);
  background: rgba(255,255,255,.93);
  padding: 16px;
  box-shadow: 0 22px 46px rgba(0,0,0,.22);
  transform: translate(-50%, -50%);
}

.km-ms-shot-real.small {
  top: 38%;
  width: 102px;
  height: 102px;
}

.km-ms-shot-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0,0,0,.58);
  color: #fff !important;
  font-size: 15px !important;
  transform: translate(-50%, -50%);
}

.km-ms-screenshot-grid span {
  color: #69707c;
  font-size: 12px;
  font-weight: 950;
}

.km-ms-screenshot-grid strong {
  margin-top: 7px;
  color: #111;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.km-ms-description-card {
  padding: 26px;
}

.km-ms-description-card > h2:first-child {
  margin-top: 0;
}

.km-ms-detail-aside {
  display: grid;
  gap: 16px;
}

.km-ms-aside-card {
  padding: 22px;
}

.km-ms-aside-card h2 {
  margin: 0 0 16px;
  color: #111;
  font-size: 20px;
  line-height: 1.25;
}

.km-ms-aside-card > a {
  min-height: 42px;
  display: flex;
  align-items: center;
  border-top: 1px solid #ededed;
  color: #005a9e;
  font-weight: 900;
}

.km-ms-aside-card.safety p {
  color: #596273;
  line-height: 1.55;
}

.km-ms-aside-card.safety li {
  margin-top: 8px;
  color: #333b49;
}

.km-ms-floating-store {
  position: fixed;
  right: 34px;
  bottom: 22px;
  z-index: 30;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 22px 0 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, #0f6fcb, #005fb8);
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(0,95,184,.32);
}

.km-ms-floating-store span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  color: #fff;
  font-size: 17px;
  font-weight: 950;
}

.km-ms-description-card .wp-block-buttons {
  margin: 22px 0 8px;
}

.km-ms-description-card .wp-block-button__link,
.km-ms-description-card .wp-element-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px !important;
  border-radius: 5px !important;
  background: linear-gradient(180deg, #0877d8, #0067c0) !important;
  color: #fff !important;
  font-size: 15px;
  font-weight: 950;
  box-shadow: 0 9px 18px rgba(0,103,192,.24);
}

@media (max-width: 1120px) {
  .km-ms-header-row {
    grid-template-columns: 1fr auto;
    gap: 14px;
    padding: 14px 0;
  }

  .km-ms-nav,
  .km-ms-search {
    grid-column: 1 / -1;
  }

  .km-ms-nav {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .km-ms-nav::-webkit-scrollbar { display: none; }

  .km-ms-home-hero,
  .km-ms-collection-grid,
  .km-ms-guide-grid,
  .km-ms-detail-hero-grid,
  .km-ms-detail-content {
    grid-template-columns: 1fr;
  }

  .km-ms-detail-content {
    margin-top: -48px;
  }

  .km-ms-category-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .km-ms-shelf-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .km-ms-page {
    padding-top: 10px;
  }

  .km-ms-install {
    display: none;
  }

  .km-ms-header-row {
    min-height: auto;
  }

  .km-ms-search {
    grid-template-columns: 36px minmax(0, 1fr) 58px;
  }

  .km-ms-home-hero {
    gap: 10px;
  }

  .km-ms-feature-main {
    min-height: 360px;
    padding: 28px 22px;
  }

  .km-ms-feature-copy h1 {
    font-size: 30px;
  }

  .km-ms-real-hero-icons {
    right: 10px;
    bottom: 22px;
    width: 190px;
    height: 122px;
    opacity: .72;
  }

  .km-ms-real-hero-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    padding: 6px;
  }

  .km-ms-real-hero-icon.icon-1 { right: 68px; width: 60px; height: 60px; }
  .km-ms-real-hero-icon.icon-3,
  .km-ms-real-hero-icon.icon-5,
  .km-ms-real-hero-icon.icon-7 {
    display: none;
  }

  .km-ms-feature-stack {
    grid-template-columns: 1fr;
  }

  .km-ms-carousel-control {
    display: none;
  }

  .km-ms-feature-side {
    min-height: 150px;
  }

  .km-ms-answer-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .km-ms-category-row {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .km-ms-category-row::-webkit-scrollbar { display: none; }

  .km-ms-category-row a {
    min-width: 145px;
  }

  .km-ms-store-shelves {
    gap: 14px;
  }

  .km-ms-shelf-rail {
    padding: 22px;
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .km-ms-shelf-rail::-webkit-scrollbar { display: none; }

  .km-ms-store-tile {
    min-width: 142px;
    min-height: 206px;
  }

  .km-ms-store-tile .km-app-icon {
    width: 68px;
    height: 68px;
  }

  .km-ms-section-head {
    min-height: 74px;
    padding: 0 22px;
  }

  .km-ms-section-actions {
    gap: 10px;
  }

  .km-ms-rail-controls {
    display: none;
  }

  .km-ms-app-stack {
    padding: 22px;
    gap: 22px;
  }

  .km-ms-app-row {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .km-ms-app-row .km-app-icon {
    width: 62px;
    height: 62px;
  }

  .km-ms-free {
    grid-column: 2;
    justify-self: start;
  }

  .km-ms-detail-hero {
    min-height: auto;
    padding: 34px 0 96px;
  }

  .km-ms-detail-hero-grid {
    min-height: auto;
    gap: 26px;
  }

  .km-ms-detail-product {
    grid-template-columns: 1fr;
  }

  .km-ms-detail-product .km-app-badge {
    width: 90px;
    height: 90px;
  }

  .km-ms-product-copy h1 {
    font-size: 32px;
  }

  .km-ms-media-card {
    display: none;
  }

  .km-ms-screenshot-grid,
  .km-ms-store-facts {
    grid-template-columns: 1fr;
  }

  .km-ms-screenshot-grid div {
    min-height: 190px;
  }

  .km-ms-shot-real {
    width: 88px;
    height: 88px;
    border-radius: 20px;
    padding: 12px;
  }

  .km-ms-description-card,
  .km-ms-aside-card {
    padding: 20px;
  }

  .km-ms-floating-store {
    right: 14px;
    bottom: 14px;
    min-height: 46px;
    padding: 0 16px 0 12px;
    font-size: 14px;
  }

  .km-result-card a {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
    min-height: 128px;
    padding: 12px;
  }

  .km-result-visual {
    min-height: 104px;
  }

  .km-result-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
  }

  .km-result-screen {
    left: 8px;
    right: 8px;
    bottom: 10px;
    height: 30px;
  }

  .km-result-card h2 {
    margin-top: 8px;
    font-size: 16px;
  }

  .km-result-card p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .km-ms-category-row a {
    min-width: 178px;
  }
}

/* Store polish pass: light, dense, image-led rhythm inspired by modern app stores. */
.km-ms-page {
  padding: 22px 0 76px;
  background:
    linear-gradient(180deg, #f8f8f8 0, #f3f3f3 460px, #f2f2f2 100%);
}

.km-ms-page .km-inner {
  max-width: 1280px;
}

.km-ms-home-hero {
  gap: 14px;
}

.km-ms-feature-card {
  border-color: rgba(0,0,0,.08);
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.km-ms-feature-card:hover,
.km-ms-store-tile:hover,
.km-ms-category-row a:hover,
.km-ms-collection:hover {
  transform: translateY(-2px);
  border-color: rgba(0,0,0,.12);
  box-shadow: 0 10px 24px rgba(0,0,0,.11);
}

.km-ms-feature-main {
  min-height: 430px;
  padding: 52px 56px;
  background:
    linear-gradient(90deg, rgba(20,18,13,.84) 0%, rgba(20,18,13,.56) 38%, rgba(20,18,13,.08) 72%),
    linear-gradient(135deg, #2b2620 0%, #9f6f13 27%, #ffd84d 48%, #53c7c2 72%, #164f68 100%);
}

.km-ms-feature-main::before {
  opacity: .42;
  background:
    linear-gradient(90deg, rgba(0,0,0,.36), rgba(0,0,0,.08) 60%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 1px, transparent 1px 84px);
}

.km-ms-feature-copy {
  max-width: 460px;
  gap: 15px;
}

.km-ms-feature-copy h1 {
  font-size: 38px;
  line-height: 1.14;
  font-weight: 950;
}

.km-ms-feature-desc {
  max-width: 430px;
  font-size: 14px;
}

.km-ms-play-button {
  min-height: 38px;
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
}

.km-ms-feature-side {
  min-height: 208px;
}

.km-ms-side-title {
  font-size: 25px;
  max-width: 270px;
}

.km-ms-store-shelves {
  margin-top: 38px;
  gap: 54px;
}

.km-ms-shelf {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.km-ms-shelf:hover {
  box-shadow: none;
}

.km-ms-shelf .km-ms-section-head,
.km-ms-section-head {
  min-height: 42px;
  padding: 0;
  border-bottom: 0;
}

.km-ms-section-head h2 {
  font-size: 25px;
  font-weight: 950;
  letter-spacing: 0;
}

.km-ms-section-head a {
  color: #0a4f95;
  font-size: 13px;
}

.km-ms-rail-controls button {
  background: rgba(255,255,255,.88);
  color: #4f5867;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

.km-ms-shelf-rail {
  padding: 18px 0 0;
  gap: 14px;
}

.km-ms-store-tile {
  min-height: 232px;
  gap: 14px;
  border-color: rgba(0,0,0,.10);
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.07);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.km-ms-store-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,0) 42%);
}

.km-ms-tile-art {
  height: 126px;
  border-bottom: 1px solid rgba(0,0,0,.045);
  background:
    linear-gradient(135deg, var(--km-art-one, #fff1f4) 0%, var(--km-art-two, #eef9ff) 50%, var(--km-art-three, #fff5bf) 100%);
}

.km-ms-shelf:nth-child(4n+1) .km-ms-tile-art {
  background: linear-gradient(135deg, #f8eef3 0%, #e9f5ff 58%, #fff3b0 100%);
}

.km-ms-shelf:nth-child(4n+2) .km-ms-tile-art {
  background: linear-gradient(135deg, #eaf7ee 0%, #e6f3ff 54%, #fff7cf 100%);
}

.km-ms-shelf:nth-child(4n+3) .km-ms-tile-art {
  background: linear-gradient(135deg, #edf0ff 0%, #f6edf7 52%, #fff2bd 100%);
}

.km-ms-shelf:nth-child(4n) .km-ms-tile-art {
  background: linear-gradient(135deg, #eaf9fb 0%, #f5f2ff 50%, #fff0c4 100%);
}

.km-ms-tile-art-glow {
  opacity: .42;
  background:
    linear-gradient(135deg, rgba(255,255,255,.44), rgba(255,255,255,0)),
    repeating-linear-gradient(135deg, rgba(255,255,255,.18) 0 10px, transparent 10px 30px);
}

.km-ms-art-device,
.km-ms-art-shot {
  position: absolute;
  pointer-events: none;
}

.km-ms-art-device {
  left: 50%;
  top: 18px;
  z-index: 1;
  width: 118px;
  height: 84px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.70)),
    linear-gradient(135deg, color-mix(in srgb, var(--km-art-three, #ffd84d) 74%, transparent), color-mix(in srgb, var(--km-art-accent, #0067c0) 28%, transparent));
  box-shadow:
    0 18px 34px rgba(15,23,42,.13),
    inset 0 0 0 1px rgba(255,255,255,.58);
  transform: translateX(-50%);
}

.km-ms-art-device::after {
  content: "";
  position: absolute;
  inset: 28px 12px 12px;
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.72) 0 18%, transparent 18% 24%, rgba(255,255,255,.56) 24% 58%, transparent 58% 64%, rgba(255,255,255,.42) 64%),
    linear-gradient(180deg, rgba(0,103,192,.10), rgba(255,216,77,.10));
  opacity: .75;
}

.km-ms-art-device-bar {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 20px;
  background: rgba(255,255,255,.78);
  border-bottom: 1px solid rgba(15,23,42,.06);
}

.km-ms-art-device-bar::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ff6b6b;
  box-shadow: 10px 0 0 #ffd84d, 20px 0 0 #21c7a8;
}

.km-ms-art-device-body {
  position: absolute;
  inset: 20px 0 0;
  display: grid;
  place-items: center;
}

.km-ms-art-device-logo,
.km-ms-art-device-initial,
.km-ms-art-device-fallback {
  position: relative;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255,255,255,.88);
  padding: 7px;
  box-shadow:
    0 9px 20px rgba(15,23,42,.15),
    inset 0 0 0 1px rgba(255,255,255,.74);
}

.km-ms-art-device-initial {
  color: #111827;
  font-size: 13px;
  font-weight: 950;
}

.km-ms-art-device-fallback {
  display: none;
}

.km-ms-art-device-logo + .km-ms-art-device-fallback {
  display: none;
}

.km-ms-art-shot {
  z-index: 0;
  border: 1px solid rgba(255,255,255,.60);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.70), rgba(255,255,255,.20)),
    linear-gradient(135deg, color-mix(in srgb, var(--km-art-accent, #0067c0) 22%, transparent), color-mix(in srgb, var(--km-art-three, #ffd84d) 26%, transparent));
  box-shadow: 0 10px 24px rgba(15,23,42,.10);
}

.km-ms-art-shot.one {
  left: 18px;
  top: 30px;
  width: 52px;
  height: 40px;
  transform: rotate(-8deg);
}

.km-ms-art-shot.two {
  right: 18px;
  top: 42px;
  width: 48px;
  height: 34px;
  transform: rotate(9deg);
}

.km-ms-store-tile .km-app-icon {
  margin-top: 16px;
  width: 74px;
  height: 74px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(238,245,255,.94) 52%, rgba(255,246,204,.92));
  border-color: color-mix(in srgb, var(--km-art-accent, #0067c0) 22%, rgba(15,23,42,.08));
  box-shadow:
    0 12px 26px rgba(0,0,0,.14),
    inset 0 0 0 1px rgba(255,255,255,.65);
}

.km-ms-store-tile .km-app-icon img {
  border-radius: 15px;
  background:
    linear-gradient(135deg, #fff 0%, #f3f8ff 54%, #fff6ce 100%);
  padding: 9px;
}

.km-app-icon img[src*="/assets/icons/"],
.km-ms-store-tile .km-app-icon img[src*="/assets/icons/"],
.km-ms-app-row .km-app-icon img[src*="/assets/icons/"] {
  padding: 4px;
  background: transparent;
}

.km-ms-store-copy {
  padding: 0 17px;
}

.km-ms-store-copy strong {
  min-height: 38px;
  font-size: 15px;
  font-weight: 900;
}

.km-ms-store-copy span,
.km-ms-store-copy em {
  color: #616b79;
}

.km-ms-free {
  border-radius: 5px;
  background: #f4f4f4;
  color: #1f2937;
  font-weight: 850;
}

.layout-poster .km-ms-store-tile,
.layout-mosaic .km-ms-store-tile {
  min-height: 326px;
  box-shadow: 0 3px 10px rgba(0,0,0,.12);
}

.layout-poster .km-ms-store-tile::before,
.layout-mosaic .km-ms-store-tile::before {
  content: "";
  position: absolute;
  inset: 44% 0 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.58) 44%, rgba(0,0,0,.84) 100%);
}

.layout-poster .km-ms-store-tile,
.layout-mosaic .km-ms-store-tile:first-child {
  background:
    linear-gradient(180deg, rgba(0,0,0,0) 28%, rgba(0,0,0,.78) 100%),
    linear-gradient(135deg, var(--km-art-accent, #095a8c) 0%, var(--km-art-two, #1cb0df) 48%, var(--km-art-three, #ffd84d) 100%);
}

.layout-poster .km-ms-store-tile:nth-child(3n+2),
.layout-mosaic .km-ms-store-tile:nth-child(3n+2) {
  background:
    linear-gradient(180deg, rgba(0,0,0,0) 24%, rgba(0,0,0,.80) 100%),
    linear-gradient(135deg, #26324c 0%, var(--km-art-accent, #6a4fe3) 58%, var(--km-art-three, #ffcf3f) 100%);
}

.layout-poster .km-ms-store-tile:nth-child(3n),
.layout-mosaic .km-ms-store-tile:nth-child(3n) {
  background:
    linear-gradient(180deg, rgba(0,0,0,0) 24%, rgba(0,0,0,.80) 100%),
    linear-gradient(135deg, #284b31 0%, var(--km-art-accent, #5fbd66) 56%, var(--km-art-three, #fff0a3) 100%);
}

.layout-poster .km-ms-tile-art,
.layout-mosaic .km-ms-tile-art {
  height: 100%;
  border-bottom: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.14) 0%, rgba(255,255,255,.03) 42%, rgba(0,0,0,.42) 100%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.10) 0 12px, transparent 12px 34px);
}

.layout-poster .km-ms-art-device,
.layout-mosaic .km-ms-art-device {
  top: 34px;
  width: 142px;
  height: 108px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.26)),
    linear-gradient(135deg, rgba(255,216,77,.26), rgba(56,189,248,.22), rgba(15,23,42,.18));
  transform: translateX(-50%) rotate(-2deg);
}

.layout-poster .km-ms-art-device-logo,
.layout-poster .km-ms-art-device-initial,
.layout-mosaic .km-ms-art-device-logo,
.layout-mosaic .km-ms-art-device-initial {
  width: 52px;
  height: 52px;
  border-radius: 13px;
}

.layout-poster .km-ms-art-shot.one,
.layout-mosaic .km-ms-art-shot.one {
  left: 24px;
  top: 64px;
  width: 70px;
  height: 54px;
}

.layout-poster .km-ms-art-shot.two,
.layout-mosaic .km-ms-art-shot.two {
  right: 24px;
  top: 76px;
  width: 64px;
  height: 48px;
}

.layout-poster .km-ms-store-copy,
.layout-mosaic .km-ms-store-copy {
  z-index: 2;
  padding-bottom: 2px;
}

.layout-poster .km-ms-store-tile .km-app-icon,
.layout-mosaic .km-ms-store-tile .km-app-icon,
.layout-poster .km-ms-free,
.layout-mosaic .km-ms-free {
  z-index: 2;
}

.layout-poster .km-ms-store-copy strong,
.layout-poster .km-ms-store-copy span,
.layout-poster .km-ms-store-copy em,
.layout-mosaic .km-ms-store-copy strong,
.layout-mosaic .km-ms-store-copy span,
.layout-mosaic .km-ms-store-copy em {
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,.44);
}

.layout-poster .km-ms-free,
.layout-mosaic .km-ms-free {
  background: rgba(255,255,255,.90);
  color: #111827;
}

.layout-poster .km-ms-store-tile .km-app-icon,
.layout-mosaic .km-ms-store-tile .km-app-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
}

.layout-editorial .km-ms-store-tile {
  min-height: 210px;
  gap: 20px;
  padding: 8px;
}

.layout-editorial .km-ms-tile-art {
  min-height: 194px;
}

.layout-editorial .km-ms-art-device {
  top: 32px;
  width: 128px;
  height: 100px;
}

.layout-editorial .km-ms-art-shot.one {
  left: 26px;
  top: 120px;
  width: 64px;
  height: 44px;
}

.layout-editorial .km-ms-art-shot.two {
  right: 24px;
  top: 118px;
  width: 60px;
  height: 42px;
}

.layout-feature-list .km-ms-store-tile:first-child {
  min-height: 440px;
}

.layout-feature-list .km-ms-store-tile:first-child .km-ms-art-device {
  top: 58px;
  width: 190px;
  height: 132px;
  border-radius: 22px;
}

.layout-feature-list .km-ms-store-tile:first-child .km-ms-art-device-logo,
.layout-feature-list .km-ms-store-tile:first-child .km-ms-art-device-initial {
  width: 64px;
  height: 64px;
  border-radius: 16px;
}

.layout-feature-list .km-ms-store-tile:not(:first-child) {
  border-radius: 8px;
  background: rgba(255,255,255,.94);
}

.layout-social .km-ms-store-tile {
  min-height: 276px;
}

.layout-social .km-ms-tile-art {
  height: 178px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0), #fff 84%),
    linear-gradient(135deg, #f7f9fb 0%, #dceeff 56%, #fff3bc 100%);
}

.layout-social .km-ms-art-device {
  top: 24px;
  width: 150px;
  height: 92px;
  border-radius: 999px 999px 24px 24px;
}

.layout-collections .km-ms-store-tile {
  min-height: 236px;
}

.km-ms-category-row {
  margin-top: 48px;
  gap: 10px;
}

.km-ms-category-row a {
  min-height: 78px;
  border-color: rgba(0,0,0,.10);
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.km-ms-collection-grid,
.km-ms-guide-grid {
  gap: 18px;
}

.km-ms-collection {
  border-color: rgba(0,0,0,.10);
  box-shadow: 0 2px 6px rgba(0,0,0,.07);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.km-ms-collection .km-ms-section-head {
  min-height: 78px;
  padding: 0 28px;
  border-bottom: 1px solid rgba(0,0,0,.075);
}

.km-ms-app-stack {
  padding: 30px 32px 34px;
}

.km-ms-app-row {
  border-radius: 8px;
  transition: background .18s ease, transform .18s ease;
}

.km-ms-app-row .km-app-icon {
  border-color: rgba(0,0,0,.08);
  border-radius: 16px;
  background:
    linear-gradient(135deg, #fff 0%, #f4f8ff 56%, #fff6ce 100%);
  box-shadow:
    0 8px 18px rgba(0,0,0,.08),
    inset 0 0 0 1px rgba(255,255,255,.55);
}

.km-ms-app-row .km-app-icon img {
  border-radius: 13px;
  background:
    linear-gradient(135deg, #fff 0%, #f4f8ff 56%, #fff6ce 100%);
  padding: 9px;
}

.km-ms-app-row:hover {
  background: #f7f7f7;
  transform: translateX(2px);
}

@media (max-width: 1120px) {
  .km-ms-page .km-inner {
    max-width: calc(100% - 32px);
  }

  .km-ms-shelf-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .km-ms-feature-main {
    min-height: 420px;
    padding: 34px 24px;
  }

  .km-ms-feature-copy h1 {
    font-size: 31px;
  }

  .km-ms-store-shelves {
    gap: 38px;
  }

  .km-ms-shelf-rail {
    padding-top: 14px;
  }
}

/* Store icon fallback polish: Google favicon can be a plain white tile, so keep a branded tile visible. */
.km-ms-page .km-app-icon.is-favicon {
  color: #111827;
  background:
    radial-gradient(circle at 24% 18%, rgba(255,255,255,.9), rgba(255,255,255,0) 35%),
    linear-gradient(135deg, #ffdc3f 0%, #58b8ff 54%, #ffffff 100%);
}

.km-ms-page .km-app-icon.has-image.is-favicon .km-icon-fallback {
  display: none !important;
}

.km-ms-page .km-app-icon.is-favicon img,
.km-ms-page .km-ms-store-tile .km-app-icon.is-favicon img,
.km-ms-page .km-ms-app-row .km-app-icon.is-favicon img {
  z-index: 2;
  opacity: 1;
  padding: 8px;
  background: transparent;
  filter: saturate(1.08) contrast(1.02);
}

/* Detail pass: tighten rhythm, labels, and product polish. */
.km-ms-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.88);
  border-bottom-color: rgba(0,0,0,.08);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(255,255,255,.80), 0 5px 14px rgba(0,0,0,.025);
}

.km-ms-logo-mark {
  box-shadow: 0 7px 16px rgba(217,169,0,.18);
}

.km-ms-nav a,
.km-ms-install,
.km-ms-search {
  transition: background .16s ease, color .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.km-ms-search:focus-within {
  border-color: rgba(0,103,192,.34);
  box-shadow: 0 0 0 3px rgba(0,103,192,.08);
}

.km-ms-feature-side::before {
  background:
    linear-gradient(90deg, rgba(0,0,0,.68), rgba(0,0,0,.30) 48%, rgba(0,0,0,.04)),
    repeating-linear-gradient(0deg, rgba(255,255,255,.08) 0 1px, transparent 1px 46px);
}

.km-ms-feature-side .km-ms-play-button {
  box-shadow: 0 7px 18px rgba(0,0,0,.16);
}

.km-ms-side-title {
  max-width: 300px;
  word-break: keep-all;
  overflow-wrap: normal;
  text-wrap: balance;
}

.km-ms-feature-side.dark .km-ms-side-title,
.km-ms-feature-side.yellow .km-ms-side-title {
  max-width: 220px;
  font-size: 24px;
}

.km-ms-side-icon-grid {
  opacity: .66;
}

.km-ms-section-head h2 {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.km-ms-section-head h2::before {
  content: "";
  width: 5px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffd84d, #0067c0);
  box-shadow: 0 5px 12px rgba(0,103,192,.12);
}

.km-ms-section-head h2::after {
  margin-left: 0;
  font-size: 22px;
}

.km-ms-section-actions > a {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
}

.km-ms-section-actions > a:hover {
  background: #e9f3ff;
}

.km-ms-rail-controls button:hover {
  color: #111827;
  background: #fff;
  transform: translateY(-1px);
}

.km-ms-store-tile {
  outline: 1px solid rgba(255,255,255,.65);
  outline-offset: -2px;
  contain: layout paint style;
}

.km-ms-store-tile:hover .km-app-icon {
  transform: translateY(-2px) scale(1.015);
}

.km-ms-store-tile .km-app-icon {
  transition: transform .18s ease, box-shadow .18s ease;
}

.km-ms-store-copy strong {
  letter-spacing: 0;
}

.km-ms-free {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.035);
}

.km-ms-collection-grid {
  align-items: start;
}

.km-ms-collection .km-ms-section-head {
  min-height: 72px;
}

.km-ms-app-stack {
  gap: 18px;
}

.km-ms-app-row {
  min-height: 86px;
  grid-template-columns: 66px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 8px 10px;
  contain: layout paint style;
}

.km-ms-app-row .km-app-icon {
  width: 66px;
  height: 66px;
}

.km-ms-app-row .km-ms-free {
  grid-column: 3;
  align-self: center;
  margin: 0;
  white-space: nowrap;
}

.km-ms-app-copy {
  min-width: 0;
}

.km-ms-app-copy strong {
  display: block;
  overflow: hidden;
  color: #111827;
  font-size: 15px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.km-ms-app-copy span,
.km-ms-app-copy em {
  display: block;
  overflow: hidden;
  color: #697386;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.layout-editorial .km-ms-store-copy strong {
  min-height: auto;
  font-size: 16px;
}

.layout-editorial .km-ms-store-copy span {
  -webkit-line-clamp: 3;
}

.layout-feature-list .km-ms-store-tile:not(:first-child):hover {
  background: #fff;
}

.layout-social .km-ms-store-copy strong {
  min-height: auto;
  text-align: center;
}

.km-ms-category-row a {
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.88)),
    linear-gradient(135deg, rgba(255,216,77,.14), rgba(0,103,192,.08));
}

.km-ms-category-row a span:first-child {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.5);
}

.km-ms-floating-store {
  box-shadow: 0 14px 34px rgba(0,103,192,.30);
}

/* Performance pass: keep the long Microsoft Store-style home, but avoid painting
   offscreen shelves until the user scrolls near them. */
.km-ms-store-shelves .km-ms-shelf,
.km-ms-guide-grid,
.km-ms-category-row,
.km-ms-collection-grid,
.km-ms-detail-content .km-ms-description-card,
.km-ms-detail-content .km-ms-screenshot-card,
.km-related-box,
.km-result-card {
  content-visibility: auto;
  contain-intrinsic-size: 1px 680px;
}

.km-ms-store-shelves .km-ms-shelf {
  contain-intrinsic-size: 1px 620px;
}

.km-ms-guide-grid,
.km-ms-collection-grid {
  contain-intrinsic-size: 1px 520px;
}

.km-result-card,
.km-list-row,
.km-ms-app-row,
.km-ms-store-tile,
.km-ms-collection,
.km-ms-category-row a {
  contain: layout paint style;
}

.km-app-icon,
.km-ms-tile-art,
.km-ms-art-device,
.km-ms-feature-card {
  transform: translateZ(0);
  backface-visibility: hidden;
}

@supports not (content-visibility: auto) {
  .km-ms-store-shelves .km-ms-shelf,
  .km-ms-guide-grid,
  .km-ms-category-row,
  .km-ms-collection-grid,
  .km-ms-detail-content .km-ms-description-card,
  .km-ms-detail-content .km-ms-screenshot-card,
  .km-related-box,
  .km-result-card {
    contain: layout paint style;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}

@media (max-width: 720px) {
  .km-ms-header {
    position: static;
  }

  .km-ms-app-row {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .km-ms-app-row .km-ms-free {
    grid-column: 2;
    justify-self: start;
  }
}

/* Store polish pass: calmer Microsoft Store-like cards with stronger app focus. */
.km-ms-store-tile {
  border-color: rgba(16,24,40,.10);
  box-shadow: 0 1px 2px rgba(16,24,40,.06), 0 12px 24px rgba(16,24,40,.045);
}

.km-ms-store-tile:hover {
  border-color: rgba(0,103,192,.24);
  box-shadow: 0 2px 4px rgba(16,24,40,.08), 0 18px 34px rgba(16,24,40,.08);
}

.km-ms-tile-art {
  background:
    radial-gradient(circle at 30% 18%, rgba(255,216,77,.42), transparent 31%),
    linear-gradient(135deg, #fbf2f4 0%, #edf8ff 58%, #fff7c2 100%);
}

.km-ms-store-tile .km-app-icon {
  box-shadow: 0 10px 24px rgba(16,24,40,.10), inset 0 0 0 1px rgba(255,255,255,.65);
}

.km-ms-primary-action,
.km-ms-floating-store {
  background: linear-gradient(180deg, #0878d8, #0067c0);
}

.km-ms-secondary-action {
  background: #fff;
  border-color: #cfd7e3;
}

.km-ms-media-card,
.km-ms-description-card,
.km-ms-aside-card,
.km-ms-screenshot-card {
  border-color: rgba(16,24,40,.10);
  box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 18px 36px rgba(16,24,40,.045);
}

@media (max-width: 900px) {
  .km-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }
}

@media (max-width: 620px) {
  .km-footer-grid {
    grid-template-columns: 1fr;
    padding: 32px 0 24px;
  }

  .km-footer-bottom {
    align-items: flex-start;
    padding: 16px 0 22px;
  }
}

/* Detail restore pass: richer app-store detail without heavy assets. */
.km-ms-detail-page {
  background:
    linear-gradient(180deg, #f8fafc 0, #f2f4f8 520px, #f5f6f8 100%);
}

.km-ms-detail-page .km-ms-detail-hero {
  margin-top: -22px;
  min-height: 560px;
  padding: 56px 0 122px;
  background:
    radial-gradient(circle at 78% 24%, rgba(255,216,77,.54), transparent 24%),
    radial-gradient(circle at 18% 14%, rgba(0,103,192,.12), transparent 28%),
    linear-gradient(135deg, #fff7cb 0%, #f7fbff 48%, #eef6ff 100%);
  border-bottom: 1px solid rgba(15,23,42,.08);
}

.km-ms-detail-page .km-ms-detail-hero-grid {
  min-height: 430px;
  grid-template-columns: minmax(0, .94fr) minmax(380px, .62fr);
  gap: 38px;
  align-items: center;
}

.km-ms-detail-page .km-ms-detail-product {
  min-height: 320px;
  padding: 38px;
  grid-template-columns: 112px minmax(0, 1fr);
  border: 1px solid rgba(255,198,0,.42);
  border-radius: 16px;
  background: rgba(255,255,255,.74);
  box-shadow: 0 18px 52px rgba(15,23,42,.08);
  backdrop-filter: blur(16px);
}

.km-ms-detail-page .km-ms-detail-product .km-app-badge {
  width: 112px;
  height: 112px;
  border-radius: 25px;
  background: #fff;
  box-shadow: 0 18px 34px rgba(15,23,42,.13);
}

.km-ms-detail-page .km-ms-product-copy h1 {
  max-width: 760px;
  font-size: 42px;
  line-height: 1.16;
  color: #101828;
}

.km-ms-detail-page .km-ms-product-copy p {
  max-width: 720px;
  color: #344054;
  font-size: 15px;
}

.km-ms-detail-page .km-ms-pill {
  background: linear-gradient(180deg, #fff3b0, #ffe48a);
  color: #4d3900;
}

.km-ms-detail-page .km-ms-meta-row {
  gap: 12px;
}

.km-ms-detail-page .km-ms-meta-row span {
  min-width: 118px;
  padding: 12px 14px;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 10px;
  background: rgba(255,255,255,.68);
}

.km-ms-detail-page .km-ms-primary-action,
.km-ms-detail-page .km-ms-secondary-action {
  min-width: 164px;
  border-radius: 9px;
}

.km-ms-detail-page .km-ms-primary-action {
  background: linear-gradient(180deg, #1a73e8, #0b57d0);
  box-shadow: 0 12px 28px rgba(26,115,232,.24);
}

.km-ms-detail-page .km-ms-media-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 440px;
  justify-self: stretch;
}

.km-ms-detail-page .km-ms-media-art {
  min-height: 188px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 54% 42%, rgba(255,255,255,.94), transparent 24%),
    radial-gradient(circle at 78% 24%, rgba(255,216,77,.80), transparent 24%),
    linear-gradient(135deg, #e7f3ff, #fff8cc 58%, #dff8f1);
  box-shadow: 0 22px 48px rgba(15,23,42,.12);
}

.km-ms-detail-page .km-ms-media-art::before {
  right: 36px;
  top: 26px;
  width: 118px;
  height: 134px;
  border-radius: 22px;
  opacity: .72;
}

.km-ms-detail-page .km-ms-media-art::after {
  left: 36px;
  bottom: 24px;
  width: 50px;
  height: 50px;
  opacity: .62;
}

.km-ms-detail-page .km-ms-media-real {
  width: 108px;
  height: 108px;
  padding: 12px;
  border-radius: 26px;
  box-shadow: 0 20px 44px rgba(15,23,42,.20);
}

.km-ms-detail-page .km-ms-art-tile.one {
  left: 36px;
  top: 36px;
  width: 142px;
  height: 82px;
}

.km-ms-detail-page .km-ms-art-tile.two {
  right: 42px;
  top: 60px;
  width: 116px;
  height: 68px;
}

.km-ms-detail-page .km-ms-art-tile.three {
  left: 122px;
  bottom: 24px;
  width: 176px;
  height: 62px;
}

.km-ms-detail-page .km-ms-media-letter,
.km-ms-detail-page .km-ms-pause {
  display: none;
}

.km-ms-detail-page .km-ms-store-facts {
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 12px;
  background: #fff;
}

.km-ms-detail-page .km-ms-hero-ad {
  min-height: 96px;
  overflow: hidden;
  border: 1px solid rgba(16,24,40,.08);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.82)),
    linear-gradient(135deg, rgba(255,216,77,.20), rgba(26,115,232,.08));
  box-shadow: 0 12px 30px rgba(15,23,42,.06);
}

.km-ms-detail-page .km-ms-hero-ad .adsbygoogle {
  min-height: 90px;
}

.km-ms-detail-page .km-ms-detail-content {
  margin-top: -74px;
}

.km-ms-detail-page .km-ms-screenshot-card,
.km-ms-detail-page .km-ms-description-card,
.km-ms-detail-page .km-ms-aside-card {
  border-radius: 14px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 12px 36px rgba(15,23,42,.06);
}

.km-ms-detail-page .km-ms-screenshot-grid div {
  min-height: 216px;
  border-radius: 14px;
}

.km-ms-detail-page .km-ms-shot-real {
  width: 104px;
  height: 104px;
  padding: 14px;
}

@media (max-width: 980px) {
  .km-ms-detail-page .km-ms-detail-hero-grid,
  .km-ms-detail-page .km-ms-detail-content {
    grid-template-columns: 1fr;
  }

  .km-ms-detail-page .km-ms-detail-content {
    margin-top: -54px;
  }
}

@media (max-width: 720px) {
  .km-ms-detail-page {
    padding-bottom: 84px;
  }

  .km-ms-detail-page .km-ms-detail-hero {
    padding: 30px 0 82px;
  }

  .km-ms-detail-page .km-ms-detail-product {
    min-height: auto;
    padding: 24px;
    grid-template-columns: 1fr;
  }

  .km-ms-detail-page .km-ms-product-copy h1 {
    font-size: 31px;
  }

  .km-ms-detail-page .km-ms-media-card {
    display: none;
  }

  .km-ms-detail-page .km-ms-floating-store {
    left: 16px;
    right: 16px;
    bottom: 12px;
    width: auto;
    min-height: 48px;
    justify-content: center;
    padding: 0 18px;
    border-radius: 14px;
    font-size: 15px;
    box-shadow: 0 10px 24px rgba(0,95,184,.28);
  }
}

/* Phase 30.1: keep the layered art, but make store tiles readable and finished. */
.layout-poster .km-ms-store-tile,
.layout-mosaic .km-ms-store-tile {
  isolation: isolate;
  min-height: 314px;
  align-content: stretch;
  background: #111827;
}

.layout-poster .km-ms-store-tile::before,
.layout-mosaic .km-ms-store-tile::before {
  inset: auto 0 0;
  height: 58%;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(17,24,39,0), rgba(17,24,39,.74) 38%, rgba(17,24,39,.94) 100%);
}

.layout-poster .km-ms-tile-art,
.layout-mosaic .km-ms-tile-art {
  inset: 0;
  height: 100%;
}

.layout-poster .km-ms-store-copy,
.layout-mosaic .km-ms-store-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 46px;
  z-index: 4;
  padding: 0 18px;
  gap: 6px;
}

.layout-poster .km-ms-store-copy strong,
.layout-mosaic .km-ms-store-copy strong {
  min-height: auto;
  color: #fff;
  font-size: 16px;
  line-height: 1.38;
  text-shadow: 0 2px 14px rgba(0,0,0,.62);
  -webkit-line-clamp: 2;
}

.layout-poster .km-ms-store-copy span,
.layout-poster .km-ms-store-copy em,
.layout-mosaic .km-ms-store-copy span,
.layout-mosaic .km-ms-store-copy em {
  color: rgba(255,255,255,.88);
  text-shadow: 0 2px 12px rgba(0,0,0,.58);
  -webkit-line-clamp: 1;
}

.layout-poster .km-ms-store-tile .km-app-icon,
.layout-mosaic .km-ms-store-tile .km-app-icon {
  position: absolute;
  left: 18px;
  top: 136px;
  z-index: 4;
  margin: 0;
}

.layout-poster .km-ms-free,
.layout-mosaic .km-ms-free {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 5;
}

.layout-mosaic .km-ms-store-tile:not(:first-child) {
  min-height: 154px;
}

.layout-mosaic .km-ms-store-tile:not(:first-child) .km-app-icon {
  top: 72px;
  width: 50px;
  height: 50px;
  border-radius: 12px;
}

.layout-mosaic .km-ms-store-tile:not(:first-child) .km-ms-store-copy {
  bottom: 14px;
  left: 78px;
  padding-right: 58px;
}

.layout-mosaic .km-ms-store-tile:not(:first-child) .km-ms-store-copy strong {
  font-size: 14px;
  -webkit-line-clamp: 1;
}

.layout-mosaic .km-ms-store-tile:not(:first-child) .km-ms-store-copy span,
.layout-mosaic .km-ms-store-tile:not(:first-child) .km-ms-store-copy em {
  display: none;
}

.layout-mosaic .km-ms-store-tile:not(:first-child) .km-ms-free {
  right: 12px;
  bottom: 12px;
}

.layout-feature-list .km-ms-shelf-rail {
  align-items: start;
  grid-auto-rows: min-content;
}

.layout-feature-list .km-ms-store-tile:first-child {
  grid-row: 1 / span 4;
}

.layout-feature-list .km-ms-store-tile:not(:first-child) {
  align-self: start;
}

.km-ms-category-row {
  grid-template-columns: repeat(auto-fit, minmax(172px, 1fr));
  gap: 12px;
}

.km-ms-category-row a {
  min-height: 92px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-color: rgba(16,24,40,.10);
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.92)),
    linear-gradient(135deg, rgba(255,216,77,.24), rgba(0,103,192,.10));
  box-shadow: 0 1px 2px rgba(16,24,40,.05), 0 10px 22px rgba(16,24,40,.04);
}

.km-ms-category-media {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fff8d7, #eef7ff);
}

.km-ms-category-media img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.km-ms-category-copy strong {
  color: #111827;
  font-size: 14px;
  line-height: 1.28;
  -webkit-line-clamp: 2;
}

.km-ms-category-copy em {
  color: #697386;
  font-size: 12px;
}

.km-top-manual-ad {
  min-height: 96px;
  margin-top: 14px;
  margin-bottom: 14px;
  display: block;
  overflow: hidden;
  border-radius: 4px;
  background: transparent;
}

.km-top-manual-ad .adsbygoogle {
  min-height: 90px;
}

.km-ms-answer-card {
  border-left: 4px solid #ffd84d;
}

.km-ms-answer-list {
  display: grid;
  gap: 10px;
}

.km-ms-answer-list div {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  padding: 13px 14px;
  border: 1px solid rgba(16,24,40,.08);
  border-radius: 10px;
  background: linear-gradient(180deg, #fff, #fbfcff);
}

.km-ms-answer-list strong {
  color: #111827;
  font-size: 14px;
}

.km-ms-answer-list span {
  color: #465166;
  font-size: 14px;
  line-height: 1.65;
}

.km-ms-steps-card {
  border-left: 4px solid #2f80ed;
}

.km-ms-step-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  counter-reset: km-step;
}

.km-ms-step-list li {
  counter-increment: km-step;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(16,24,40,.08);
  border-radius: 10px;
  background: linear-gradient(180deg, #fff, #fbfdff);
}

.km-ms-step-list li::before {
  content: counter(km-step);
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #111827;
  font-weight: 800;
  background: linear-gradient(135deg, #ffd84d, #eaf4ff);
  border: 1px solid rgba(16,24,40,.08);
}

.km-ms-step-list strong {
  grid-column: 2;
  color: #111827;
  font-size: 14px;
  line-height: 1.4;
  word-break: keep-all;
}

.km-ms-step-list span {
  grid-column: 2;
  display: block;
  margin-top: 4px;
  color: #465166;
  font-size: 14px;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.km-ms-step-list li::before {
  grid-row: 1 / span 2;
  grid-column: 1;
}

.km-ms-steps-card {
  overflow-wrap: normal;
}

@media (max-width: 720px) {
  .layout-poster .km-ms-store-tile .km-app-icon,
  .layout-mosaic .km-ms-store-tile .km-app-icon {
    top: 118px;
  }

  .km-ms-answer-list div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .km-ms-step-list li {
    grid-template-columns: 36px minmax(0, 1fr);
  }
}
