:root {
  color-scheme: light;
  --bg: #f7f7f7;
  --panel: #ffffff;
  --panel-soft: #fbfbfb;
  --text: #1a1a1a;
  --muted: #616161;
  --subtle: #8a8a8a;
  --line: #e2e2e2;
  --line-strong: #c8c8c8;
  --blue: #036ac4;
  --blue-hover: #0473ce;
  --green: #0f7b57;
  --red: #b43b4a;
  --gold: #835b00;
  --focus: #005fb8;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  letter-spacing: 0;
}

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

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 256px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  background: #f3f3f3;
  border-right: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  min-height: 44px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #111;
  font-weight: 700;
}

.brand-text {
  font-size: 20px;
  font-weight: 650;
}

.nav-list {
  display: grid;
  gap: 4px;
}

.nav-item,
.outline-button,
.primary-button,
.get-button,
.tab,
.text-link,
.collection-tile {
  border: 0;
}

.nav-item {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  color: #2a2a2a;
  background: transparent;
  border-radius: 6px;
  text-align: left;
  text-decoration: none;
}

.nav-item:hover,
.nav-item.active {
  background: #e9e9e9;
}

.nav-item.active {
  color: #073f7b;
  font-weight: 650;
}

.nav-icon,
.search-icon,
.glyph,
.close-x {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
}

.nav-icon {
  width: 18px;
  height: 18px;
  color: currentColor;
}

.nav-icon.home::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 14px;
  height: 9px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 2px;
}

.nav-icon.home::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 2px;
  width: 10px;
  height: 10px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
}

.nav-icon.games::before,
.nav-icon.apps::before,
.nav-icon.rank::before,
.nav-icon.library::before {
  content: "";
  position: absolute;
  inset: 2px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.nav-icon.games::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  width: 6px;
  height: 2px;
  background: currentColor;
  box-shadow: 2px -2px 0 currentColor, 2px 2px 0 currentColor;
}

.nav-icon.apps::after {
  content: "";
  position: absolute;
  inset: 5px;
  background: currentColor;
  box-shadow: 0 6px 0 currentColor, 6px 0 0 currentColor, 6px 6px 0 currentColor;
  width: 3px;
  height: 3px;
}

.nav-icon.rank::after {
  content: "";
  position: absolute;
  left: 5px;
  bottom: 4px;
  width: 3px;
  height: 8px;
  background: currentColor;
  box-shadow: 5px -4px 0 currentColor, 10px -8px 0 currentColor;
}

.nav-icon.library::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 5px;
  width: 6px;
  height: 9px;
  border-left: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.sidebar-footer {
  margin-top: auto;
}

.outline-button {
  width: 100%;
  min-height: 36px;
  border-radius: 6px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
}

.outline-button:hover {
  border-color: var(--line-strong);
  background: #fafafa;
}

.button-link {
  display: grid;
  place-items: center;
  text-decoration: none;
}

.main-shell {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 34px;
  background: rgba(247, 247, 247, 0.92);
  border-bottom: 1px solid rgba(226, 226, 226, 0.75);
  backdrop-filter: blur(18px);
}

.search-wrap {
  width: min(680px, 100%);
  height: 42px;
  position: relative;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 11px;
  width: 18px;
  height: 18px;
  border: 2px solid #626262;
  border-radius: 50%;
  pointer-events: none;
}

.search-icon::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -4px;
  width: 8px;
  height: 2px;
  background: #626262;
  transform: rotate(45deg);
  border-radius: 2px;
}

.search-wrap input {
  width: 100%;
  height: 100%;
  padding: 0 16px 0 44px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
}

.search-wrap input:focus,
select:focus,
button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
}

.icon-button:hover {
  background: #ebebeb;
}

.glyph.bookmark {
  width: 14px;
  height: 18px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 2px 2px 0 0;
}

.glyph.bookmark::after {
  content: "";
  position: absolute;
  left: 1px;
  bottom: -5px;
  width: 10px;
  height: 10px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  background: var(--bg);
}

.avatar {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #1a1a1a;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.content {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 28px 34px 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(160px, 0.7fr));
  grid-auto-rows: 154px;
  gap: 16px;
}

.feature-panel,
.collection-tile,
.product-card,
.wide-card,
.detail-dialog .dialog-body {
  border-radius: 8px;
}

.feature-panel {
  grid-row: span 2;
  min-height: 324px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(16, 32, 48, 0.94), rgba(16, 32, 48, 0.55)),
    url("./assets/hero-store.svg") center / cover;
  color: #fff;
  box-shadow: var(--shadow);
}

.feature-copy {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  padding: 42px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.82);
}

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

h1 {
  margin-bottom: 14px;
  font-size: 38px;
  line-height: 1.18;
}

.feature-copy p:not(.eyebrow) {
  margin-bottom: 22px;
  max-width: 440px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.7;
}

.primary-button {
  min-height: 38px;
  padding: 0 18px;
  border-radius: 6px;
  color: #fff;
  background: var(--blue);
  font-weight: 650;
}

.primary-button:hover,
.get-button:hover {
  background: var(--blue-hover);
}

.collection-tile {
  position: relative;
  overflow: hidden;
  padding: 16px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  color: #fff;
  background: #2d5c7f;
  text-align: left;
  box-shadow: var(--shadow);
}

.collection-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collection-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.62));
}

.collection-tile span {
  position: relative;
  z-index: 1;
  font-weight: 700;
}

.toolbar,
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.toolbar {
  margin-top: 34px;
}

.tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: #ededed;
  border-radius: 8px;
  overflow-x: auto;
}

.tab {
  min-height: 34px;
  padding: 0 14px;
  color: #333;
  background: transparent;
  border-radius: 6px;
  white-space: nowrap;
}

.tab:hover,
.tab.active {
  background: #fff;
}

.tab.active {
  color: var(--blue);
  font-weight: 650;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

select {
  min-height: 38px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
}

.section-heading {
  margin-top: 30px;
  margin-bottom: 16px;
}

.section-heading.compact {
  margin-top: 0;
}

.section-heading h2 {
  margin-bottom: 4px;
  font-size: 24px;
  line-height: 1.25;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.text-link {
  min-height: 34px;
  padding: 0 10px;
  color: var(--blue);
  background: transparent;
  border-radius: 6px;
  font-weight: 650;
}

.text-link:hover {
  background: #ebf5ff;
}

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

.product-card {
  min-height: 268px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  text-align: left;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.product-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.app-preview {
  height: 112px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--preview-bg, #e8f2fb);
}

.app-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: var(--icon-bg);
  font-weight: 800;
  font-size: 26px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28), 0 12px 22px rgba(0, 0, 0, 0.14);
}

.product-meta {
  display: grid;
  gap: 6px;
  min-height: 72px;
}

.product-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.product-card h3 {
  margin-bottom: 0;
  font-size: 17px;
  line-height: 1.28;
}

.badge {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 5px;
  border: 1px solid #c3e1ff;
  background: #ebf5ff;
  color: #004377;
  font-size: 12px;
}

.product-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.rating-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  color: var(--muted);
  font-size: 13px;
}

.stars {
  color: #8a6400;
  font-variant-numeric: tabular-nums;
}

.get-button {
  min-width: 68px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  padding: 0 14px;
  border-radius: 6px;
  color: #fff;
  background: var(--blue);
  font-weight: 650;
  text-decoration: none;
}

.get-button.installed {
  color: #0f5132;
  background: #dff3e8;
}

.get-button.pending,
.install-large.pending {
  color: #6d5420;
  background: #f5e9c9;
  cursor: not-allowed;
  opacity: 1;
}

.trust-row {
  align-items: flex-end;
}

.trust-meta {
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.trust-meta strong {
  color: #2d4d61;
}

.wide-section {
  margin-top: 36px;
}

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

.wide-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.wide-card .app-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  font-size: 20px;
}

.wide-card h3 {
  margin-bottom: 4px;
  font-size: 16px;
}

.wide-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.empty-state {
  grid-column: 1 / -1;
  min-height: 160px;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--panel);
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.detail-dialog {
  width: min(720px, calc(100% - 32px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.detail-dialog::backdrop {
  background: rgba(0, 0, 0, 0.42);
}

.dialog-body {
  position: relative;
  padding: 24px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

.close-button {
  position: absolute;
  top: 14px;
  right: 14px;
}

.close-x {
  width: 18px;
  height: 18px;
}

.close-x::before,
.close-x::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 1px;
  width: 2px;
  height: 16px;
  background: currentColor;
  border-radius: 2px;
}

.close-x::before {
  transform: rotate(45deg);
}

.close-x::after {
  transform: rotate(-45deg);
}

.detail-hero {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding-right: 40px;
}

.detail-hero .app-icon {
  width: 84px;
  height: 84px;
  border-radius: 18px;
  font-size: 32px;
}

.detail-hero h2 {
  margin-bottom: 6px;
  font-size: 28px;
}

.detail-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.stat {
  padding: 12px;
  border-radius: 8px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
}

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

.stat span,
.detail-description {
  color: var(--muted);
  line-height: 1.6;
}

.detail-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}

.detail-actions .outline-button {
  width: auto;
  padding: 0 14px;
}

/* Standalone app detail */
.detail-page {
  width: min(1160px, 100%);
  margin: 0 auto;
  padding: 26px 34px 64px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumb a,
.app-detail-title a,
.app-info-panel > a {
  color: var(--blue);
  text-decoration: none;
}

.breadcrumb strong {
  color: var(--text);
  font-weight: 500;
}

.app-detail-hero {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding-bottom: 34px;
}

.detail-page-icon.app-icon {
  width: 128px;
  height: 128px;
  border-radius: 28px;
  font-size: 50px;
}

.detail-labels {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 13px;
}

.app-detail-title h1 {
  margin-bottom: 7px;
  font-size: 36px;
}

.app-detail-title > p {
  max-width: 640px;
  margin: 13px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.app-detail-actions {
  width: 154px;
  display: grid;
  gap: 10px;
}

.install-large {
  width: 100%;
  min-height: 42px;
}

.install-large.installed {
  color: #0f5132;
  background: #dff3e8;
}

.detail-stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.detail-stat-strip > div {
  min-height: 52px;
  display: grid;
  place-content: center;
  gap: 3px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.detail-stat-strip > div:last-child {
  border-right: 0;
}

.detail-stat-strip strong {
  font-size: 17px;
}

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

.detail-section {
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.detail-section h2,
.app-info-panel h2 {
  margin-bottom: 18px;
  font-size: 22px;
}

.detail-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.detail-section-title span {
  color: var(--muted);
  font-size: 13px;
}

.screenshot-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(270px, 1fr));
  gap: 16px;
  overflow-x: auto;
  padding: 2px 2px 12px;
}

.store-shot {
  min-width: 270px;
  margin: 0;
}

.shot-window {
  aspect-ratio: 16 / 10;
  padding: 11px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--shot-bg);
}

.shot-top {
  height: 28px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 5px;
  align-items: center;
  gap: 7px;
  padding: 0 8px;
  border-radius: 5px 5px 0 0;
  background: rgba(255, 255, 255, 0.9);
  font-size: 9px;
}

.shot-top span {
  width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  color: #fff;
  background: var(--blue);
  font-size: 7px;
}

.shot-top i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #777;
}

.shot-body {
  min-height: calc(100% - 28px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 11px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.68);
}

.shot-body small {
  color: #333;
  font-weight: 700;
}

.shot-body button {
  min-height: 23px;
  padding: 0 10px;
  border: 0;
  border-radius: 4px;
  color: #fff;
  background: var(--blue);
  font-size: 8px;
}

.mock-list {
  width: 100%;
  display: grid;
  gap: 6px;
}

.mock-list i {
  height: 8px;
  border-radius: 3px;
  background: rgba(55, 87, 111, 0.16);
}

.mock-list i:nth-child(2) { width: 82%; }
.mock-list i:nth-child(3) { width: 91%; }
.mock-list i:nth-child(4) { width: 64%; }

.mock-focus-ring {
  width: 70px;
  height: 70px;
  display: grid;
  place-content: center;
  border: 7px solid rgba(3, 106, 196, 0.25);
  border-top-color: var(--blue);
  border-radius: 50%;
  text-align: center;
}

.mock-focus-ring strong { font-size: 14px; }
.mock-focus-ring span { color: var(--muted); font-size: 7px; }

.mock-bars {
  width: 100%;
  height: 68px;
  display: flex;
  align-items: flex-end;
  gap: 7px;
  padding: 0 4px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.16);
}

.mock-bars i {
  flex: 1;
  height: 45%;
  border-radius: 3px 3px 0 0;
  background: #0f7b57;
}

.mock-bars i:nth-child(2) { height: 74%; background: #036ac4; }
.mock-bars i:nth-child(3) { height: 58%; }
.mock-bars i:nth-child(4) { height: 88%; background: #036ac4; }
.mock-bars i:nth-child(5) { height: 68%; }
.mock-bars i:nth-child(6) { height: 94%; background: #036ac4; }

.store-shot figcaption {
  padding-top: 9px;
  color: var(--muted);
  font-size: 12px;
}

.detail-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 48px;
  align-items: start;
}

.about-section p,
.update-section p {
  color: #444;
  line-height: 1.8;
}

.update-section small {
  color: var(--muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.tag-list a {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: #fff;
  text-decoration: none;
  font-size: 13px;
}

.app-info-panel {
  position: sticky;
  top: 98px;
  margin-top: 34px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.app-info-panel dl {
  margin: 0 0 18px;
}

.app-info-panel dl div {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #eeeeee;
  font-size: 13px;
}

.app-info-panel dt { color: var(--muted); }
.app-info-panel dd { margin: 0; text-align: right; }
.app-info-panel > a { display: block; padding: 7px 0; font-size: 13px; }

.rating-summary {
  display: grid;
  grid-template-columns: 120px minmax(0, 380px);
  gap: 28px;
  align-items: center;
}

.rating-number {
  display: grid;
  gap: 2px;
}

.rating-number strong { font-size: 46px; line-height: 1; }
.rating-number span { color: #8a6400; }
.rating-number small { color: var(--muted); }

.rating-bars {
  display: grid;
  gap: 6px;
}

.rating-bars div {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
}

.rating-bars i {
  height: 6px;
  overflow: hidden;
  border-radius: 3px;
  background: #e4e4e4;
}

.rating-bars b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #b98200;
}

.review-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  margin-top: 30px;
}

.review-list article div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.review-list article span { color: #8a6400; font-size: 12px; }
.review-list article p { margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }

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

.related-app {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #fff;
  text-decoration: none;
}

.related-app:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.related-app .app-icon { width: 52px; height: 52px; border-radius: 12px; font-size: 20px; }
.related-app span { min-width: 0; display: grid; gap: 4px; }
.related-app strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.related-app small { color: var(--muted); }

.integrity-section {
  padding-bottom: 30px;
}

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

.integrity-grid > div {
  min-width: 0;
  display: grid;
  gap: 6px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: #fff;
}

.integrity-grid span,
.compliance-list small {
  color: var(--muted);
  font-size: 11px;
}

.integrity-grid strong {
  overflow-wrap: anywhere;
  font-size: 13px;
}

.integrity-grid .hash-block {
  grid-column: 1 / -1;
}

.hash-block code {
  overflow-wrap: anywhere;
  color: #294b60;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 12px;
  line-height: 1.65;
}

.detail-notice {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid #bdd9cc;
  border-radius: var(--radius-control);
  color: #275846;
  background: #edf7f2;
  font-size: 12px;
  line-height: 1.6;
}

.detail-notice.warning {
  border-color: #e2ca91;
  color: #6d5420;
  background: #fff8e7;
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.source-links .outline-button {
  width: auto;
  min-height: 36px;
  padding: 0 13px;
  color: var(--blue);
}

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

.compliance-list > div {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.compliance-list > div > span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #0f7b57;
  font-size: 11px;
  font-weight: 800;
}

.compliance-list > div.pending > span {
  color: #6d5420;
  background: #f5e9c9;
}

.compliance-list > div > div {
  display: grid;
  gap: 3px;
}

.compliance-list strong {
  font-size: 13px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 100;
  max-width: calc(100% - 32px);
  padding: 11px 16px;
  border-radius: 6px;
  color: #fff;
  background: #242424;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Developer console */
.developer-body { background: #f7f8fa; }

.developer-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
}

.developer-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 22px 16px 18px;
  color: #f5f5f5;
  background: #20252a;
}

.developer-sidebar .brand { color: #fff; }
.console-label { margin: 26px 10px 10px; color: #9da6ad; font-size: 11px; }

.developer-nav { display: grid; gap: 3px; }
.developer-nav a {
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 6px;
  color: #cbd1d5;
  text-decoration: none;
}
.developer-nav a:hover,
.developer-nav a.active { color: #fff; background: #343b41; }
.developer-nav a.active { box-shadow: inset 3px 0 #47a1ea; }

.developer-account {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 8px 0;
  border-top: 1px solid #3a4147;
}
.developer-account div { display: grid; gap: 2px; }
.developer-account strong { font-size: 12px; }
.developer-account small { color: #9da6ad; font-size: 11px; }

.developer-main { min-width: 0; }
.developer-topbar {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 30px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
}
.developer-topbar > div { display: flex; gap: 8px; }
.developer-topbar a { color: var(--blue); text-decoration: none; }
.draft-state { color: var(--muted); }
.draft-state.changed { color: #8a5b00; }

.developer-content {
  width: min(1260px, 100%);
  margin: 0 auto;
  padding: 34px 34px 70px;
}

.developer-page-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.developer-page-title .dark { color: #4e6575; }
.developer-page-title h1 { margin-bottom: 8px; font-size: 32px; }
.developer-page-title > div > p:last-child { margin: 0; color: var(--muted); }
.title-actions { display: flex; gap: 10px; }
.title-actions .outline-button { width: auto; min-height: 40px; padding: 0 18px; }

.release-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 32px 0 38px;
  padding: 0;
  border-top: 1px solid var(--line-strong);
  list-style: none;
}
.release-steps li {
  position: relative;
  display: flex;
  gap: 10px;
  padding: 16px 10px 0 0;
  color: var(--muted);
}
.release-steps li > span {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  margin-top: -29px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--muted);
  background: #f7f8fa;
  font-size: 11px;
}
.release-steps li.active > span { border-color: var(--blue); color: #fff; background: var(--blue); }
.release-steps li div { display: grid; gap: 3px; }
.release-steps strong { color: var(--text); font-size: 13px; }
.release-steps small { font-size: 11px; }

.upload-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 294px;
  gap: 42px;
  align-items: start;
}
.upload-form { min-width: 0; }
.form-section {
  padding: 0 0 38px;
  margin-bottom: 38px;
  border-bottom: 1px solid var(--line);
}
.form-section-heading {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}
.form-section-heading > span {
  width: 30px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  color: #005799;
  background: #e6f2fb;
  font-size: 11px;
  font-weight: 700;
}
.form-section-heading h2 { margin-bottom: 4px; font-size: 20px; }
.form-section-heading p { margin: 0; color: var(--muted); font-size: 13px; }

.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { position: relative; display: grid; gap: 8px; margin: 0; padding: 0; border: 0; }
.field.full { grid-column: 1 / -1; }
.field > span,
.field legend { color: #333; font-size: 13px; font-weight: 650; }
.field b { color: #b42318; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--text);
  background: #fff;
  outline: none;
  resize: vertical;
}
.field textarea { min-height: 84px; line-height: 1.6; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--focus); box-shadow: 0 0 0 1px var(--focus); }
.field > small { position: absolute; right: 9px; bottom: 8px; color: var(--subtle); font-size: 11px; }
.field > small i { font-style: normal; }
.field:has(textarea) textarea { padding-bottom: 28px; }

.asset-fields { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 14px; }
.file-drop {
  min-height: 148px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 20px;
  border: 1px dashed #9ca8b1;
  border-radius: 8px;
  background: #fbfcfd;
  text-align: center;
  cursor: pointer;
}
.file-drop:hover { border-color: var(--blue); background: #f5faff; }
.file-drop strong { font-size: 13px; }
.file-drop small { color: var(--muted); font-size: 11px; }
.upload-symbol { font-size: 24px; color: var(--blue); line-height: 1; }
.asset-preview { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.asset-preview img { width: 128px; aspect-ratio: 16 / 10; object-fit: cover; border: 1px solid var(--line); border-radius: 6px; }

.package-drop {
  min-height: 82px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}
.package-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 6px; color: #0f5132; background: #dff3e8; font-size: 10px; font-weight: 800; }
.package-drop > span:nth-child(2) { min-width: 0; display: grid; gap: 4px; }
.package-drop strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.package-drop small { color: var(--muted); font-size: 11px; }
.fake-file-button { width: auto; min-height: 34px; display: grid; place-items: center; padding: 0 13px; }

.segmented { width: fit-content; display: flex; padding: 3px; border-radius: 7px; background: #e9ecef; }
.segmented label { cursor: pointer; }
.segmented input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.segmented span { min-height: 32px; display: grid; place-items: center; padding: 0 13px; border-radius: 5px; color: #444; font-size: 12px; }
.segmented input:checked + span { color: var(--blue); background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); font-weight: 700; }

.check-field { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.check-field legend { grid-column: 1 / -1; margin-bottom: 7px; }
.check-field label { display: flex; align-items: flex-start; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 12px; line-height: 1.5; }
.check-field input { width: 15px; height: 15px; flex: 0 0 auto; margin: 2px 0 0; }

.release-aside { position: sticky; top: 82px; display: grid; gap: 16px; }
.release-checklist,
.store-preview { padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.release-checklist h2 { margin-bottom: 13px; font-size: 16px; }
.check-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid #eeeeee; }
.check-row > span { width: 18px; height: 18px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: #fff; font-size: 10px; }
.check-row.complete > span { border-color: #0f7b57; background: #0f7b57; }
.check-row strong { font-size: 12px; }
.check-row small { color: var(--muted); font-size: 10px; }
.check-row.complete small { color: #0f6b4c; }
.release-checklist > p { margin: 14px 0 0; color: var(--muted); font-size: 11px; }

.preview-label { margin-bottom: 16px; color: var(--muted); font-size: 11px; }
.preview-app-icon { width: 66px; height: 66px; display: grid; place-items: center; border-radius: 15px; color: #fff; background-color: var(--blue); background-image: linear-gradient(135deg, #036ac4, #0f7b57); font-size: 24px; font-weight: 800; }
.store-preview h3 { margin: 14px 0 4px; font-size: 17px; }
.store-preview > p { margin-bottom: 6px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.store-preview > div:last-child { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.store-preview > div:last-child span { color: var(--muted); font-size: 11px; }
.store-preview button { min-width: 64px; height: 30px; border: 0; border-radius: 5px; color: #fff; background: var(--blue); font-weight: 700; }

@media (max-width: 940px) {
  .app-shell {
    width: 100%;
    max-width: 100%;
    grid-template-columns: 1fr;
    overflow-x: hidden;
  }

  .main-shell {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  .sidebar {
    position: static;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
    padding: 14px 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow-x: hidden;
  }

  .brand {
    min-height: 36px;
  }

  .nav-list {
    display: flex;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nav-item {
    white-space: nowrap;
    flex: 0 0 auto;
  }

  .sidebar-footer {
    display: none;
  }

  .topbar {
    padding: 14px 18px;
  }

  .content {
    padding: 22px 18px 42px;
  }

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

  .feature-panel {
    grid-column: 1 / -1;
  }

  .detail-page {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 22px 18px 48px;
  }

  .detail-section,
  .detail-columns,
  .detail-columns > div,
  .screenshot-track {
    min-width: 0;
    max-width: 100%;
  }

  .app-detail-hero { grid-template-columns: 104px minmax(0, 1fr); }
  .detail-page-icon.app-icon { width: 104px; height: 104px; border-radius: 23px; }
  .app-detail-actions { grid-column: 1 / -1; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-columns { grid-template-columns: 1fr; gap: 0; }
  .app-info-panel { position: static; margin-top: 0; }

  .developer-shell { grid-template-columns: 1fr; }
  .developer-shell {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  .developer-sidebar {
    position: static;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
    padding: 14px 18px;
    overflow-x: hidden;
  }
  .developer-sidebar .brand { min-height: 36px; }
  .console-label { display: none; }
  .developer-nav { display: flex; overflow-x: auto; margin-top: 12px; }
  .developer-nav a { white-space: nowrap; flex: 0 0 auto; }
  .developer-account { display: none; }
  .developer-main {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
  }
  .developer-content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 28px 20px 56px;
  }
  .upload-layout {
    min-width: 0;
    max-width: 100%;
    grid-template-columns: 1fr;
  }
  .release-aside,
  .upload-form,
  .form-section,
  .field-grid {
    min-width: 0;
    max-width: 100%;
  }
  .release-aside { position: static; grid-row: 1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .brand-text {
    font-size: 18px;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar-actions {
    position: absolute;
    top: 13px;
    right: 16px;
  }

  .search-wrap {
    margin-top: 46px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 132px;
  }

  .feature-panel {
    min-height: 300px;
  }

  .feature-copy {
    padding: 28px;
  }

  h1 {
    font-size: 30px;
  }

  .toolbar,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .tabs {
    width: 100%;
  }

  select {
    width: 100%;
  }

  .wide-card {
    grid-template-columns: 50px minmax(0, 1fr);
  }

  .wide-card .get-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .detail-hero,
  .detail-stats {
    grid-template-columns: 1fr;
  }

  .detail-hero {
    padding-right: 36px;
  }

  .app-detail-hero { grid-template-columns: 76px minmax(0, 1fr); gap: 16px; align-items: start; }
  .detail-page-icon.app-icon { width: 76px; height: 76px; border-radius: 18px; font-size: 30px; }
  .app-detail-title h1 { font-size: 27px; }
  .app-detail-title > p { grid-column: 1 / -1; }
  .app-detail-actions { grid-template-columns: 1fr; }
  .detail-stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-stat-strip > div:nth-child(2) { border-right: 0; }
  .detail-stat-strip > div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
  .detail-stat-strip > div:nth-child(n + 3) { padding-top: 12px; }
  .screenshot-track { grid-template-columns: repeat(3, 82vw); }
  .rating-summary { grid-template-columns: 90px minmax(0, 1fr); gap: 16px; }
  .rating-number strong { font-size: 38px; }
  .review-list,
  .related-grid { grid-template-columns: 1fr; }

  .developer-topbar { padding: 0 16px; }
  .developer-page-title { align-items: stretch; flex-direction: column; }
  .developer-page-title h1 { font-size: 27px; }
  .title-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .title-actions .primary-button { min-height: 40px; }
  .release-steps { grid-template-columns: repeat(4, 112px); overflow-x: auto; padding-top: 12px; }
  .release-steps li small { display: none; }
  .upload-layout { gap: 28px; }
  .release-aside { grid-template-columns: 1fr; }
  .field-grid,
  .asset-fields { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .check-field { grid-template-columns: 1fr; }
  .check-field legend { grid-column: auto; }
  .package-drop { grid-template-columns: 44px minmax(0, 1fr); }
  .package-icon { width: 44px; height: 44px; }
  .fake-file-button { grid-column: 1 / -1; }
  .segmented { width: 100%; }
  .segmented label { flex: 1; }
  .segmented span { padding: 0 6px; }

  .integrity-grid {
    grid-template-columns: 1fr;
  }

  .integrity-grid .hash-block {
    grid-column: auto;
  }

  .detail-notice {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

/* Refined controls, motion and softer geometry */
:root {
  --radius-control: 10px;
  --radius-card: 14px;
  --radius-panel: 18px;
  --motion-fast: 160ms;
  --motion-base: 260ms;
  --ease-out: cubic-bezier(0.2, 0.75, 0.25, 1);
}

* {
  scrollbar-width: thin;
  scrollbar-color: #aeb7be transparent;
}

*::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 8px;
  background: #aeb7be;
  background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
  background: #7d8991;
  background-clip: padding-box;
}

input,
textarea,
button {
  -webkit-appearance: none;
  appearance: none;
}

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  display: none;
}

.native-select-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  clip-path: inset(50%);
}

.custom-select {
  position: relative;
  z-index: 3;
  min-width: 160px;
}

.custom-select.open {
  z-index: 40;
}

.field .custom-select {
  width: 100%;
  min-width: 0;
}

.select-trigger {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  color: var(--text);
  background: #fff;
  text-align: left;
  transition: border-color var(--motion-fast), box-shadow var(--motion-fast), background var(--motion-fast);
}

.select-trigger:hover {
  border-color: #9aa6ae;
  background: #fcfdfe;
}

.select-trigger:focus-visible,
.custom-select.open .select-trigger {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(0, 95, 184, 0.13);
}

.select-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.select-chevron {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-right: 2px solid #59636a;
  border-bottom: 2px solid #59636a;
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--motion-fast) var(--ease-out);
}

.custom-select.open .select-chevron {
  transform: rotate(225deg) translate(-1px, -1px);
}

.select-menu {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  right: 0;
  max-height: 248px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid rgba(116, 128, 136, 0.24);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 40px rgba(24, 35, 43, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top;
  transition: opacity var(--motion-fast), transform var(--motion-fast) var(--ease-out), visibility var(--motion-fast);
}

.custom-select.open .select-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.select-option {
  width: 100%;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  color: #30373c;
  background: transparent;
  text-align: left;
  transition: color var(--motion-fast), background var(--motion-fast), transform var(--motion-fast);
}

.select-option:hover,
.select-option:focus-visible {
  outline: none;
  color: #004b84;
  background: #edf6fd;
}

.select-option:active {
  transform: scale(0.985);
}

.select-option i {
  width: 7px;
  height: 12px;
  border-right: 2px solid transparent;
  border-bottom: 2px solid transparent;
  transform: rotate(45deg) translateY(-2px);
}

.select-option.selected {
  color: #004b84;
  background: #e7f3fc;
  font-weight: 650;
}

.select-option.selected i {
  border-color: var(--blue);
}

.check-field input[type="checkbox"] {
  position: relative;
  width: 18px;
  height: 18px;
  min-height: 18px;
  flex: 0 0 18px;
  padding: 0;
  border: 1.5px solid #929fa8;
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
  transition: border-color var(--motion-fast), background var(--motion-fast), transform var(--motion-fast);
}

.check-field input[type="checkbox"]::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  opacity: 0;
  transform: rotate(45deg) scale(0.6);
  transition: opacity var(--motion-fast), transform var(--motion-fast) var(--ease-out);
}

.check-field input[type="checkbox"]:checked {
  border-color: var(--blue);
  background: var(--blue);
}

.check-field input[type="checkbox"]:checked::after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

.check-field input[type="checkbox"]:focus-visible {
  outline: 3px solid rgba(0, 95, 184, 0.16);
  outline-offset: 2px;
}

.field.invalid input,
.field.invalid textarea,
.field.invalid .select-trigger {
  border-color: #c4473b;
  box-shadow: 0 0 0 3px rgba(196, 71, 59, 0.1);
}

.field.invalid > span::after,
.field.invalid > legend::after {
  content: "请填写此项";
  margin-left: 8px;
  color: #b42318;
  font-size: 11px;
  font-weight: 500;
}

.feature-panel,
.collection-tile,
.product-card,
.wide-card,
.shot-window,
.related-app,
.app-info-panel,
.release-checklist,
.store-preview,
.file-drop,
.package-drop {
  border-radius: var(--radius-card);
}

.search-wrap input,
.tabs,
.select-trigger,
.field input,
.field textarea,
.segmented,
.check-field label {
  border-radius: var(--radius-control);
}

.primary-button,
.outline-button,
.get-button,
.tab,
.text-link,
.icon-button,
.nav-item,
.developer-nav a,
.store-preview button {
  border-radius: 9px;
  transition: color var(--motion-fast), background var(--motion-fast), border-color var(--motion-fast), box-shadow var(--motion-fast), transform var(--motion-fast) var(--ease-out);
}

.primary-button:active,
.outline-button:active,
.get-button:active,
.icon-button:active,
.text-link:active {
  transform: scale(0.97);
}

.product-card,
.wide-card,
.related-app,
.collection-tile,
.file-drop,
.package-drop {
  transition: border-color var(--motion-base), background var(--motion-base), box-shadow var(--motion-base), transform var(--motion-base) var(--ease-out);
}

.product-card:hover,
.related-app:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(25, 38, 47, 0.11);
}

.wide-card:hover,
.package-drop:hover {
  border-color: #aab7bf;
  transform: translateY(-2px);
  box-shadow: 0 9px 24px rgba(25, 38, 47, 0.08);
}

.collection-tile:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 14px 34px rgba(25, 38, 47, 0.16);
}

.collection-tile img {
  transition: transform 520ms var(--ease-out);
}

.collection-tile:hover img {
  transform: scale(1.045);
}

@keyframes yuni-enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes yuni-soft-scale {
  from { opacity: 0; transform: scale(0.975); }
  to { opacity: 1; transform: scale(1); }
}

.hero-grid > *,
.product-card,
.wide-card,
.app-detail-hero,
.detail-stat-strip,
.detail-section,
.app-info-panel,
.developer-page-title,
.release-steps,
.form-section,
.release-aside > section {
  animation: yuni-enter 440ms var(--ease-out) both;
}

.hero-grid > *:nth-child(2),
.product-card:nth-child(2),
.wide-card:nth-child(2),
.detail-stat-strip,
.form-section:nth-child(2) { animation-delay: 55ms; }

.hero-grid > *:nth-child(3),
.product-card:nth-child(3),
.wide-card:nth-child(3),
.detail-section:nth-of-type(3),
.form-section:nth-child(3) { animation-delay: 105ms; }

.hero-grid > *:nth-child(4),
.product-card:nth-child(4),
.wide-card:nth-child(4),
.form-section:nth-child(4) { animation-delay: 155ms; }

.hero-grid > *:nth-child(5),
.product-card:nth-child(5),
.wide-card:nth-child(5) { animation-delay: 205ms; }

.select-menu,
.toast.show {
  will-change: opacity, transform;
}

@media (max-width: 640px) {
  .toolbar .custom-select {
    width: 100%;
  }

  .custom-select {
    min-width: 0;
  }

  .select-menu {
    max-height: 214px;
  }
}

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

.brand-mark img { width: 100%; height: 100%; display: block; object-fit: contain; }
.app-icon img { width: 100%; height: 100%; display: block; border-radius: inherit; object-fit: cover; }
.surface-panel { margin-bottom: 22px; padding: 20px; border: 1px solid var(--line, #dce3e7); border-radius: var(--radius-card); background: #fff; }
.developer-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.developer-section-head h2 { margin: 2px 0 0; font-size: 20px; }
.developer-section-head > span { color: var(--muted, #6f7b83); font-size: 12px; }
.developer-app-list { display: grid; gap: 8px; }
.developer-app-row { min-height: 68px; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid #e0e6e9; border-radius: 12px; background: #f9fbfc; animation: yuni-enter 320ms var(--ease-out) both; }
.developer-app-row > div:nth-child(2) { min-width: 0; }
.developer-app-row strong, .developer-app-row small { display: block; }
.developer-app-row small { margin-top: 4px; color: #77828a; font-size: 11px; }
.developer-app-row > p { grid-column: 2 / -1; margin: -4px 0 2px; color: #6d4c21; font-size: 12px; }
.developer-app-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; background: #e5f2ee; color: #176848; font-weight: 800; }
.review-status { padding: 6px 9px; border-radius: 999px; background: #eef2f4; color: #56616a; font-size: 11px; font-weight: 700; white-space: nowrap; }
.status-approved { background: #e7f6ed; color: #197044; }
.status-ai_failed, .status-ai_rejected, .status-rejected { background: #fff0ed; color: #a43c31; }
.status-manual_review, .status-pending_ai { background: #fff6de; color: #8b641a; }
.legal-confirm label { align-items: flex-start; line-height: 1.6; }
.toast.error { background: #a83c34; }
@media (max-width: 720px) {
  .developer-app-row { grid-template-columns: 38px minmax(0, 1fr); }
  .review-status { grid-column: 2; justify-self: start; }
}

/* Developer account, analytics and truthful data-safety disclosure */
.developer-account {
  grid-template-columns: 32px minmax(0, 1fr) auto;
}

.account-logout,
.mobile-logout {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9px;
  color: #e8edf0;
  background: rgba(255, 255, 255, 0.06);
  font-size: 11px;
  cursor: pointer;
  transition: color var(--motion-fast), background var(--motion-fast), border-color var(--motion-fast), transform var(--motion-fast);
}

.account-logout:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
}

.account-logout:active,
.mobile-logout:active { transform: scale(0.96); }

.topbar-state { display: flex; align-items: center; gap: 10px; }
.mobile-logout { display: none; color: #344149; border-color: #d7dee2; background: #fff; }
.mobile-logout:hover { border-color: #aebbc3; background: #f6f9fa; }

.developer-overview { scroll-margin-top: 84px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.metric-grid article {
  min-height: 118px;
  display: grid;
  align-content: space-between;
  padding: 16px;
  border: 1px solid #e1e7ea;
  border-radius: 14px;
  background: #f8fafb;
  transition: transform var(--motion-base) var(--ease-out), border-color var(--motion-base), box-shadow var(--motion-base);
}
.metric-grid article:hover { transform: translateY(-3px); border-color: #becbd2; box-shadow: 0 10px 24px rgba(24, 39, 48, 0.08); }
.metric-grid article > span { color: #64717a; font-size: 12px; }
.metric-grid article strong { margin: 8px 0; color: #19242a; font-size: 30px; line-height: 1; }
.metric-grid article small { color: #8a959c; font-size: 10px; }

.data-safety-field { display: grid; gap: 14px; }
.data-safety-field legend { margin-bottom: 2px; }
.field-help { margin: -5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.data-mode { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.data-mode > label {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 76px;
  padding: 14px;
  border: 1px solid #dce4e8;
  border-radius: 13px;
  background: #fff;
  cursor: pointer;
  transition: border-color var(--motion-fast), background var(--motion-fast), box-shadow var(--motion-fast), transform var(--motion-fast);
}
.data-mode > label:hover { transform: translateY(-2px); border-color: #a9bac4; }
.data-mode > label:has(input:checked) { border-color: #17805b; background: #f1faf6; box-shadow: 0 0 0 3px rgba(23, 128, 91, 0.1); }
.data-mode input[type="radio"],
.data-inline-options input[type="radio"] {
  position: relative;
  width: 18px;
  height: 18px;
  min-height: 18px;
  flex: 0 0 18px;
  margin: 2px 0 0;
  padding: 0;
  border: 1.5px solid #909da5;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}
.data-mode input[type="radio"]::after,
.data-inline-options input[type="radio"]::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #147958;
  opacity: 0;
  transform: scale(0.35);
  transition: opacity var(--motion-fast), transform var(--motion-fast) var(--ease-out);
}
.data-mode input[type="radio"]:checked,
.data-inline-options input[type="radio"]:checked { border-color: #147958; }
.data-mode input[type="radio"]:checked::after,
.data-inline-options input[type="radio"]:checked::after { opacity: 1; transform: scale(1); }
.data-mode input[type="radio"] {
  border-radius: 6px;
  transition: border-color var(--motion-fast), background var(--motion-fast), transform var(--motion-fast);
}
.data-mode input[type="radio"]::after {
  inset: auto;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border-radius: 0;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  background: transparent;
  transform: rotate(45deg) scale(0.5);
}
.data-mode input[type="radio"]:checked { border-color: #147958; background: #147958; }
.data-mode input[type="radio"]:checked::after { transform: rotate(45deg) scale(1); }
.data-mode span { display: grid; gap: 5px; }
.data-mode strong { font-size: 12px; }
.data-mode small { color: #728089; font-size: 10px; line-height: 1.5; }
.data-details {
  display: grid;
  gap: 16px;
  padding: 16px;
  border: 1px solid #dce5e9;
  border-radius: 14px;
  background: #f8fafb;
  animation: yuni-enter 260ms var(--ease-out) both;
}
.data-details[hidden] { display: none; }
.data-details > div { display: grid; gap: 9px; }
.data-details > div > strong { font-size: 12px; }
.data-option-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.data-option-grid label,
.data-inline-options label {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid #dde5e8;
  border-radius: 10px;
  background: #fff;
  font-size: 11px;
  cursor: pointer;
  transition: border-color var(--motion-fast), background var(--motion-fast), transform var(--motion-fast);
}
.data-option-grid label:hover,
.data-inline-options label:hover { transform: translateY(-1px); border-color: #b4c2c9; }
.data-option-grid label:has(input:checked),
.data-inline-options label:has(input:checked) { border-color: #62a58c; background: #eff9f5; }
.data-option-grid input[type="checkbox"],
.data-inline-options input[type="checkbox"] {
  position: relative;
  width: 17px;
  height: 17px;
  min-height: 17px;
  flex: 0 0 17px;
  margin: 0;
  padding: 0;
  border: 1.5px solid #909da5;
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
}
.data-option-grid input[type="checkbox"]::after,
.data-inline-options input[type="checkbox"]::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  opacity: 0;
  transform: rotate(45deg) scale(0.5);
  transition: opacity var(--motion-fast), transform var(--motion-fast) var(--ease-out);
}
.data-option-grid input[type="checkbox"]:checked,
.data-inline-options input[type="checkbox"]:checked { border-color: #147958; background: #147958; }
.data-option-grid input[type="checkbox"]:checked::after,
.data-inline-options input[type="checkbox"]:checked::after { opacity: 1; transform: rotate(45deg) scale(1); }
.data-inline-options { display: flex; flex-wrap: wrap; gap: 7px; }
.data-safety-field.invalid { padding: 12px; border: 1px solid #c4473b; border-radius: 14px; box-shadow: 0 0 0 3px rgba(196, 71, 59, 0.08); }

.analytics-panel,
.finance-panel { margin-top: 24px; scroll-margin-top: 84px; }
.analytics-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr); gap: 16px; }
.chart-panel,
.app-ranking { min-width: 0; padding: 16px; border: 1px solid #e1e7ea; border-radius: 14px; background: #f9fbfc; }
.chart-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.chart-heading strong { font-size: 12px; }
.chart-heading small { color: #7b878e; font-size: 10px; }
.download-chart { height: 184px; display: grid; grid-template-columns: repeat(7, minmax(34px, 1fr)); align-items: end; gap: 9px; margin-top: 16px; }
.chart-column { height: 100%; min-width: 0; display: grid; grid-template-rows: 20px 1fr 20px; align-items: end; justify-items: center; gap: 5px; }
.chart-column > span { color: #53616a; font-size: 10px; }
.chart-column > i { width: min(30px, 72%); height: var(--bar-height); min-height: 3px; border-radius: 7px 7px 3px 3px; background: #258566; transform-origin: bottom; animation: chart-grow 520ms var(--ease-out) both; }
.chart-column > small { color: #7d8990; font-size: 9px; white-space: nowrap; }
@keyframes chart-grow { from { transform: scaleY(0.08); opacity: 0.35; } to { transform: scaleY(1); opacity: 1; } }
.analytics-note { margin: 10px 0 0; color: #879198; font-size: 10px; }
.app-ranking > div:last-child { display: grid; gap: 9px; margin-top: 14px; }
.analytics-app-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; }
.analytics-app-row div { min-width: 0; display: flex; align-items: baseline; gap: 7px; }
.analytics-app-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.analytics-app-row div span { color: #849097; font-size: 9px; white-space: nowrap; }
.analytics-app-row b { font-size: 11px; }
.analytics-app-row > i { grid-column: 1 / -1; height: 5px; overflow: hidden; border-radius: 999px; background: #e5ebee; }
.analytics-app-row > i span { display: block; height: 100%; border-radius: inherit; background: #328e70; animation: analytics-width 520ms var(--ease-out) both; }
@keyframes analytics-width { from { max-width: 0; } to { max-width: 100%; } }

.finance-panel { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.finance-panel h2 { margin: 3px 0 8px; font-size: 20px; }
.finance-panel p:last-child { max-width: 760px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.free-hosting-badge { flex: 0 0 auto; padding: 10px 14px; border-radius: 999px; color: #126746; background: #e5f6ed; font-size: 12px; font-weight: 750; }

[data-developer-view][hidden] { display: none !important; }
[data-developer-view]:not([hidden]) { animation: developer-view-enter 300ms var(--ease-out) both; }
@keyframes developer-view-enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 940px) {
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analytics-layout { grid-template-columns: 1fr; }
  .data-option-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mobile-logout { display: inline-flex; align-items: center; }
}

@media (max-width: 640px) {
  .metric-grid,
  .data-mode,
  .data-option-grid { grid-template-columns: 1fr; }
  .metric-grid article { min-height: 100px; }
  .finance-panel { align-items: flex-start; flex-direction: column; }
  .download-chart { gap: 5px; }
  .chart-column > i { width: 72%; }
  .draft-state { display: none; }
}
