:root {
  --bg: #fafafb;
  --panel: #ffffff;
  --ink: #19191d;
  --sub: #66666d;
  --muted: #86868b;
  --line: #e8e8ed;
  --blue: #0066cc;
  --side: #f2f2f5;
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button, input, select {
  font: inherit;
}

button {
  cursor: pointer;
  color: inherit;
}

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

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  max-width: 1920px;
  margin: auto;
}

/* Sidebar */
.side {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  background: var(--side);
  border-right: 1px solid #e5e5ea;
  padding: 28px 17px 22px;
  scrollbar-width: thin;
  display: flex;
  flex-direction: column;
}

.brand {
  padding: 0 12px 22px;
  border-bottom: 1px solid #dedee4;
  margin-bottom: 20px;
}

.brand small {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #797980;
  margin-bottom: 6px;
}

.brand strong {
  display: block;
  font-size: 24px;
  letter-spacing: -1px;
  line-height: 1.25;
}

.brand p {
  font-size: 11px;
  color: var(--sub);
  margin: 7px 0 0;
}

.nav-label {
  font-size: 11px;
  color: #85858c;
  padding: 0 11px;
  margin: 20px 0 7px;
  font-weight: 600;
  letter-spacing: .7px;
}

.nav {
  border: 0;
  background: transparent;
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 13px;
  gap: 7px;
  line-height: 1.5;
  transition: background .15s ease, color .15s ease, transform .12s ease;
}

.nav.major {
  font-size: 15px;
  font-weight: 600;
  padding: 10px 12px;
}

.nav:hover {
  background: #e9e9ee;
}

.nav:active {
  transform: scale(0.985);
}

.nav.active {
  background: #e2e2e8;
  color: #005ab5;
  font-weight: 650;
}

.nav small {
  font-size: 11px;
  color: #82828a;
  font-variant-numeric: tabular-nums;
  flex: none;
}

.side-note {
  border-top: 1px solid #dedee4;
  margin: auto 10px 0;
  padding-top: 14px;
  font-size: 11px;
  color: #75757e;
  line-height: 1.65;
}

.side-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  color: var(--blue);
  font-weight: 600;
  font-size: 12px;
}

.side-back:hover {
  text-decoration: underline;
}

/* Main Body & Topbar */
.body {
  min-width: 0;
}

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 250, 251, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px max(30px, calc((100% - 1250px) / 2));
  min-height: 66px;
}

.top-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.top-context {
  font-size: 14px;
  color: #55555e;
  font-weight: 600;
  white-space: nowrap;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #0e7c4b;
  background: #eaf7f0;
  border: 1px solid #ccebd9;
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}

.top-right {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ededf1;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0 12px;
  min-width: 0;
  width: 330px;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.search:focus-within {
  background: #fff;
  border-color: #b7d2f0;
  box-shadow: 0 2px 10px rgba(0, 102, 204, 0.08);
}

.search input {
  background: transparent;
  outline: none !important;
  border: 0;
  padding: 9px 0;
  width: 100%;
  min-width: 0;
  color: var(--ink);
}

.search input::placeholder {
  color: #85858b;
}

.search button {
  border: 0;
  background: none;
  font-size: 12px;
  color: var(--blue);
  padding: 4px 0;
  white-space: nowrap;
}

.text-button {
  padding: 8px 0;
  border: 0;
  background: none;
  color: var(--blue);
  font-weight: 600;
  white-space: nowrap;
}

.text-button:hover {
  opacity: .8;
}

.mobile-nav {
  display: none;
}

/* Content */
.content {
  max-width: 1310px;
  margin: 0 auto;
  padding: 35px 34px 48px;
}

.view-animate {
  animation: viewEnter .24s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes viewEnter {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.eyebrow {
  margin: 0 0 9px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-weight: 700;
  color: #77777e;
}

.title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

h1 {
  margin: 0;
  font-size: clamp(32px, 3.4vw, 48px);
  font-weight: 760;
  letter-spacing: -1.9px;
  line-height: 1.18;
}

h2, h3, p {
  margin: 0;
}

.subtitle {
  font-size: 15px;
  color: var(--sub);
  margin-top: 10px;
}

.count {
  font-size: 12px;
  white-space: nowrap;
  color: var(--sub);
  padding-bottom: 4px;
}

/* Anti-Virus Notice Strip */
.safety-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #f3f7fd;
  border: 1px solid #dde8f7;
  color: #21406b;
  border-radius: 14px;
  padding: 11px 16px;
  font-size: 12.5px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.safety-banner button {
  border: 0;
  background: transparent;
  color: #5b779e;
  font-size: 12px;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 999px;
}

.safety-banner button:hover {
  background: #e3edf9;
  color: var(--blue);
}

/* Editorial Hero Showcase (3-Card Grid from User Style + Banner Art) */
.editorial {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 15px;
  margin-bottom: 24px;
}

.story {
  border: 0;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 238px;
  text-align: left;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  transition: transform .22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow .22s ease;
}

.story:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.story:active {
  transform: translateY(-1px);
}

.story:after {
  content: attr(data-word);
  position: absolute;
  z-index: -1;
  right: -9px;
  bottom: -40px;
  font-size: 124px;
  font-weight: 800;
  letter-spacing: -9px;
  line-height: 1;
  opacity: .075;
  white-space: nowrap;
  pointer-events: none;
  transition: transform .35s ease;
}

.story:hover:after {
  transform: translateX(-4px);
}

.story-art {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 68px;
  height: 68px;
  border-radius: 16px;
  object-fit: cover;
  opacity: .92;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
  pointer-events: none;
  transition: transform .28s ease;
}

.story:hover .story-art {
  transform: scale(1.05) rotate(1.5deg);
}

.story.first {
  background: #182643;
  color: #fff;
}

.story.second {
  background: #e9eced;
  color: #322f2b;
}

.story.third {
  background: #eee6fb;
  color: #352457;
}

.story.third h2 {
  color: #352457;
}

.story-kicker {
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 700;
  opacity: .76;
  text-transform: uppercase;
}

.story h2 {
  font-size: 30px;
  letter-spacing: -1.2px;
  line-height: 1.2;
  margin: 12px 0 9px;
  max-width: 92%;
}

.story p {
  font-size: 13px;
  opacity: .84;
  line-height: 1.65;
  max-width: 94%;
}

.story-link {
  font-size: 12px;
  font-weight: 650;
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.story.first .story-link {
  color: #b7d4ff;
}

/* Quicklinks */
.quicklinks {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 22px;
}

.quicklinks .filter {
  background: white;
  border: 1px solid var(--line);
  color: var(--blue);
  padding: 9px 13px;
  transition: background .15s ease, border-color .15s ease, transform .12s ease;
}

.quicklinks .filter:hover {
  background: #edf2fb;
  border-color: #c7dbf4;
  transform: translateY(-1px);
}

/* Section */
.section {
  margin-top: 33px;
}

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

.section-head h2 {
  font-size: 24px;
  letter-spacing: -.65px;
  line-height: 1.3;
}

.section-head p {
  color: var(--sub);
  font-size: 13px;
  margin-top: 5px;
}

.see-all {
  color: var(--blue);
  font-weight: 600;
  background: none;
  border: 0;
  padding: 4px 0;
  white-space: nowrap;
}

.see-all:hover {
  text-decoration: underline;
}

/* App List (2-Column White Container from Screenshot) */
.app-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 1px 19px;
}

.app {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 12px;
  align-items: start;
  padding: 19px 0 16px;
  border-bottom: 1px solid var(--line);
  min-width: 0;
  transition: background .15s ease;
}

.app.has-rank {
  grid-template-columns: auto minmax(0, 1fr) auto;
  column-gap: 14px;
}

.app:last-child,
.app:nth-last-child(2):nth-child(odd) {
  border-bottom: 0;
}

.app-rank-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 2px;
}

.rank-num {
  width: 24px;
  font-size: 14px;
  font-weight: 760;
  color: #86868b;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.rank-num.top3 {
  color: var(--blue);
}

.app-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: #f5f5f7;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: none;
}

.app-icon-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-monogram {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 760;
  color: #fff;
  background: linear-gradient(135deg, #0066cc, #2e8df0);
}

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

.app-type {
  font-size: 11px;
  color: #0066cc;
  font-weight: 650;
  letter-spacing: .3px;
  margin-bottom: 5px;
}

.app h3 {
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: -.4px;
  font-weight: 720;
  overflow-wrap: anywhere;
}

.app h3 a:hover {
  color: var(--blue);
}

.app-desc {
  font-size: 13px;
  line-height: 1.65;
  color: var(--sub);
  margin-top: 6px;
  overflow-wrap: anywhere;
}

.app-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 8px;
  row-gap: 2px;
  font-size: 11px;
  color: #77777e;
  margin-top: 10px;
  overflow-wrap: anywhere;
}

.app-meta .domain {
  color: #77777e;
}

.status:before {
  content: '·';
  margin-right: 7px;
}

.actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  padding-top: 20px;
}

.get {
  background: #edf2fb;
  border-radius: 999px;
  color: #0066cc;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  padding: 7px 13px;
  display: inline-block;
  text-align: center;
  transition: background .15s ease, transform .12s ease;
}

.get:hover {
  background: #dce9fa;
}

.get:active {
  transform: scale(0.96);
}

.get.product {
  background: #f0f0f3;
  color: #55555c;
}

.get.product:hover {
  background: #e4e4ea;
}

.get.web {
  background: #e9f1f8;
  color: #0066cc;
}

.save {
  background: none;
  border: 0;
  color: #77777e;
  font-size: 11px;
  white-space: nowrap;
  padding: 3px 5px;
  transition: color .15s ease;
}

.save:hover,
.save[aria-pressed="true"] {
  color: var(--blue);
  font-weight: 600;
}

/* Promo Banner Ad Slot (OA Managed) */
.promo-banner {
  margin-top: 33px;
  border-radius: var(--radius);
  padding: 26px 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
  transition: transform .22s ease, box-shadow .22s ease;
}

.promo-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14);
}

.promo-copy {
  position: relative;
  z-index: 1;
}

.promo-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #dbeafe;
  margin-bottom: 10px;
}

.promo-copy h2 {
  font-size: 24px;
  letter-spacing: -0.6px;
  line-height: 1.3;
  margin-bottom: 8px;
}

.promo-copy p {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.65;
  max-width: 660px;
}

.promo-actions {
  margin-top: 16px;
}

.promo-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: #111827;
  font-weight: 700;
  font-size: 13px;
  padding: 9px 18px;
  border-radius: 999px;
  transition: transform .15s ease, background .15s ease;
}

.promo-btn:hover {
  background: #edf2fb;
  transform: translateY(-1px);
}

.promo-media {
  position: relative;
  z-index: 1;
  width: 210px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.25);
  background: rgba(255, 255, 255, 0.08);
}

.promo-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Partner Cards (Optional hero_right banners) */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.partner-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 18px 20px;
  transition: transform .18s ease, border-color .18s ease;
}

.partner-card:hover {
  transform: translateY(-2px);
  border-color: #b7cae3;
}

.partner-card small {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 4px;
}

.partner-card strong {
  display: block;
  font-size: 16px;
  letter-spacing: -.3px;
  margin-bottom: 4px;
}

.partner-card p {
  font-size: 12.5px;
  color: var(--sub);
}

.partner-card span {
  font-size: 12px;
  font-weight: 650;
  color: var(--blue);
  white-space: nowrap;
}

/* Toolbar & Filters */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
}

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

.filter {
  border: 0;
  background: #efeff2;
  padding: 7px 13px;
  border-radius: 999px;
  font-weight: 600;
  color: #62626a;
  font-size: 12px;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}

.filter:hover {
  background: #e4e4ea;
}

.filter.active {
  background: #252529;
  color: #fff;
}

.select {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 7px 12px;
  background: white;
  color: #4f4f57;
  max-width: 100%;
}

.toolbar .sort {
  margin-left: auto;
}

/* Category Explorer Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.category-btn {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  text-align: left;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.category-btn:hover {
  border-color: #a9bfdc;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}

.category-btn strong {
  font-size: 15px;
  letter-spacing: -.3px;
}

.category-btn small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.category-btn span {
  font-size: 12px;
  color: var(--blue);
  white-space: nowrap;
}

/* Detail Page View (/item/{slug}.html) */
.detail-crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 18px;
}

.detail-crumbs a:hover,
.detail-crumbs button:hover {
  color: var(--blue);
}

.detail-crumbs button {
  border: 0;
  background: none;
  padding: 0;
  color: inherit;
}

.detail-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 26px;
}

.detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.detail-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.detail-icon {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  background: #f5f5f7;
  border: 1px solid var(--line);
  overflow: hidden;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.detail-icon .app-monogram {
  font-size: 26px;
}

.detail-title-wrap h1 {
  font-size: clamp(26px, 2.8vw, 36px);
  letter-spacing: -1px;
}

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

.detail-pill {
  font-size: 11px;
  font-weight: 650;
  padding: 3px 10px;
  border-radius: 999px;
  background: #f0f2f6;
  color: #49505e;
}

.detail-pill.blue {
  background: #edf2fb;
  color: #0066cc;
}

.detail-pill.green {
  background: #eaf7f0;
  color: #0e7c4b;
}

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

.detail-primary-btn {
  background: var(--blue);
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 13px;
  transition: background .15s ease, transform .12s ease;
}

.detail-primary-btn:hover {
  background: #0055b0;
}

.detail-secondary-btn {
  background: #f0f0f3;
  color: var(--ink);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
}

.detail-secondary-btn:hover {
  background: #e4e4ea;
}

.detail-fav-btn {
  border: 1px solid var(--line);
  background: #fff;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sub);
}

.detail-fav-btn[aria-pressed="true"] {
  border-color: #b7d2f0;
  background: #edf2fb;
  color: var(--blue);
}

.detail-domain-box {
  margin-top: 22px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f7f9fc;
  border: 1px solid #e3ebf5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
}

.detail-domain-box code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 700;
  color: #0e7c4b;
  background: #eaf7f0;
  padding: 3px 8px;
  border-radius: 6px;
}

.detail-cover {
  margin-top: 20px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  max-height: 360px;
}

.detail-cover img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.detail-summary {
  margin-top: 18px;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.75;
}

.detail-meta-grid {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
}

.detail-meta-item small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 3px;
}

.detail-meta-item strong {
  font-size: 13.5px;
  font-weight: 650;
}

/* Pagination, Notice, Empty, Footer, Modal, Toast */
.pagination {
  text-align: center;
  margin: 24px 0;
}

.pagination button {
  border: 1px solid var(--line);
  background: white;
  border-radius: 9px;
  padding: 10px 18px;
  color: var(--blue);
  font-weight: 650;
}

.pagination button:hover {
  background: #f5f8fd;
}

.empty {
  background: #fff;
  border: 1px solid var(--line);
  padding: 45px 22px;
  text-align: center;
  border-radius: 15px;
  color: var(--sub);
}

.notice {
  margin: 24px 0 0;
  font-size: 12px;
  color: #74747b;
  line-height: 1.75;
}

.notice strong {
  color: #53535c;
  font-weight: 650;
}

.foot {
  border-top: 1px solid var(--line);
  margin-top: 38px;
  padding-top: 19px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11px;
  color: #77777e;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.foot a:hover {
  text-decoration: underline;
}

.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 22px;
  background: #252529;
  color: white;
  border-radius: 100px;
  z-index: 25;
  font-size: 13px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}

.dialog {
  border: 1px solid var(--line);
  border-radius: 20px;
  width: min(440px, calc(100% - 28px));
  padding: 25px;
  box-shadow: 0 20px 90px rgba(0, 0, 0, 0.14);
  color: var(--ink);
}

.dialog::backdrop {
  background: rgba(34, 34, 38, 0.4);
  backdrop-filter: blur(3px);
}

.dialog h2 {
  font-size: 23px;
  margin-bottom: 18px;
}

.dialog label {
  display: block;
  font-size: 13px;
  font-weight: 650;
  margin-top: 15px;
}

.dialog input {
  display: block;
  border: 1px solid var(--line);
  padding: 10px 12px;
  width: 100%;
  border-radius: 9px;
  margin-top: 6px;
}

.dialog-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.dialog-buttons button {
  border: 0;
  border-radius: 999px;
  background: #eee;
  padding: 9px 18px;
  font-weight: 600;
}

.dialog-buttons .primary {
  background: var(--blue);
  color: white;
}

.error {
  font-size: 12px;
  color: #b42318;
  margin-top: 8px;
}

/* Responsive Breakpoints */
@media (min-width: 1550px) {
  .content {
    padding: 40px 42px;
  }
  .story {
    min-height: 266px;
  }
  .app-list {
    gap: 0 32px;
    padding: 0 24px;
  }
  .app {
    padding: 22px 0;
  }
}

@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 216px minmax(0, 1fr);
  }
  .side {
    padding: 24px 12px;
  }
  .content {
    padding: 28px 24px;
  }
  .top {
    padding: 12px 24px;
  }
  .story {
    padding: 19px;
    min-height: 228px;
  }
  .story h2 {
    font-size: 25px;
  }
  .app-list {
    padding: 0 14px;
    gap: 0 18px;
  }
  .app h3 {
    font-size: 17px;
  }
  .get {
    padding: 6px 10px;
  }
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 850px) {
  .shell {
    display: block;
  }
  .side {
    display: none;
  }
  .top {
    display: flex;
    flex-wrap: wrap;
    padding: 10px 18px;
    gap: 10px;
  }
  .top-context {
    font-size: 16px;
  }
  .trust-pill {
    display: none;
  }
  .top-right {
    flex: 1;
    justify-content: flex-end;
  }
  .search {
    width: min(270px, 100%);
  }
  .mobile-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-basis: 100%;
    overflow: auto;
    scrollbar-width: none;
  }
  .mobile-nav .nav {
    width: auto;
    white-space: nowrap;
    font-size: 12px;
    padding: 6px 10px;
  }
  .mobile-cat {
    border: 0;
    background: #ededf1;
    border-radius: 8px;
    color: #555;
    padding: 6px 8px;
    min-width: 0;
    max-width: 160px;
  }
  .content {
    padding: 25px 20px 35px;
  }
  .story {
    min-height: 222px;
  }
  .story h2 {
    font-size: 26px;
  }
  .promo-banner {
    grid-template-columns: 1fr;
  }
  .promo-media {
    width: 100%;
    max-width: 300px;
  }
  .partner-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 580px) {
  .top {
    gap: 8px;
    padding: 10px 14px;
  }
  .top-context {
    font-size: 15px;
  }
  .top-right {
    gap: 8px;
  }
  .top-right > .text-button {
    font-size: 11px;
  }
  .search {
    width: 100%;
    padding: 0 8px;
  }
  .search input {
    font-size: 12px;
    padding: 8px 0;
  }
  .content {
    padding: 22px 15px 35px;
  }
  .title-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
    padding-bottom: 17px;
  }
  h1 {
    font-size: 36px;
    letter-spacing: -1px;
  }
  .subtitle {
    font-size: 14px;
  }
  .count {
    padding: 0;
  }
  .editorial {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-bottom: 16px;
  }
  .story.first {
    grid-column: 1 / -1;
    min-height: 190px;
  }
  .story {
    padding: 17px;
    min-height: 200px;
    border-radius: 16px;
  }
  .story h2 {
    font-size: 23px;
  }
  .story p {
    font-size: 12px;
  }
  .story:after {
    font-size: 90px;
    bottom: -25px;
  }
  .story-art {
    display: none;
  }
  .section {
    margin-top: 27px;
  }
  .section-head h2 {
    font-size: 21px;
  }
  .section-head p {
    font-size: 12px;
  }
  .see-all {
    font-size: 12px;
  }
  .app-list {
    grid-template-columns: 1fr;
    padding: 0 15px;
    border-radius: 14px;
  }
  .app:nth-last-child(2):nth-child(odd) {
    border-bottom: 1px solid var(--line);
  }
  .app:last-child {
    border-bottom: 0;
  }
  .app h3 {
    font-size: 19px;
  }
  .app {
    padding: 16px 0;
  }
  .actions {
    padding-top: 17px;
  }
  .category-grid {
    gap: 9px;
  }
  .category-btn {
    padding: 14px;
    min-height: 96px;
  }
  .category-btn strong {
    font-size: 13px;
  }
  .category-btn span {
    display: none;
  }
  .toolbar .sort {
    margin-left: 0;
  }
  .foot {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
