
:root {
  color-scheme: dark;
  --ink: #f5f7f4;
  --muted: #9ba69f;
  --panel: rgba(20, 25, 22, 0.84);
  --line: rgba(255, 255, 255, 0.1);
  --green: #83f28f;
  --green-deep: #21bf63;
  --amber: #f6c968;
  --red: #ff7d75;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #090d0b;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 10%, rgba(27, 83, 50, 0.42), transparent 34rem),
    radial-gradient(circle at 88% 76%, rgba(30, 117, 78, 0.2), transparent 30rem),
    #090d0b;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  opacity: 0.13;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 22rem;
  height: 22rem;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.16;
  pointer-events: none;
}

.ambient-one {
  top: -8rem;
  right: 12%;
  background: #83f28f;
}

.ambient-two {
  bottom: -9rem;
  left: 6%;
  background: #1aa56b;
}

.page-shell {
  width: min(1180px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.topbar {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  padding: 7px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  border: 1px solid rgba(131, 242, 143, .5);
  border-radius: 11px;
  background: rgba(131, 242, 143, .08);
  box-shadow: inset 0 0 18px rgba(131, 242, 143, .06);
}

.brand-mark span {
  border-radius: 2px;
  background: var(--green);
}

.brand-mark span:nth-child(2),
.brand-mark span:nth-child(3) {
  opacity: .38;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 14px;
  letter-spacing: .04em;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.security-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #c4cec8;
  background: rgba(255, 255, 255, .03);
  font-size: 12px;
}

.security-pill i,
.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--green);
  box-shadow: 0 0 12px rgba(131, 242, 143, .8);
}

.hero {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(380px, .85fr);
  gap: clamp(48px, 8vw, 110px);
  align-items: center;
  padding: 74px 0 56px;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.intro h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(54px, 7vw, 94px);
  line-height: .94;
  letter-spacing: -.07em;
}

.intro h1 span {
  color: transparent;
  -webkit-text-stroke: 1px rgba(245, 247, 244, .68);
}

.lede {
  max-width: 580px;
  margin: 31px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

.config-list {
  max-width: 590px;
  margin: 36px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.config-list div {
  min-height: 51px;
  display: grid;
  grid-template-columns: 95px 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.config-list dt {
  color: #778179;
  font-size: 11px;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.config-list dd {
  margin: 0;
  color: #dfe5e1;
  font-size: 13px;
}

code {
  color: #b9c6be;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
}

.flow {
  max-width: 610px;
  margin-top: 34px;
  display: flex;
  align-items: center;
}

.flow div {
  min-width: 112px;
}

.flow b,
.flow span {
  display: block;
}

.flow b {
  margin-bottom: 8px;
  color: var(--green);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
}

.flow span {
  color: #8c978f;
  font-size: 11px;
  line-height: 1.45;
}

.flow i {
  width: 44px;
  height: 1px;
  margin: 0 12px;
  background: linear-gradient(90deg, rgba(131,242,143,.55), transparent);
}

.qr-panel {
  display: flex;
  justify-content: center;
}

.qr-card {
  width: min(100%, 410px);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.055), transparent 45%),
    var(--panel);
  box-shadow:
    0 36px 100px rgba(0, 0, 0, .46),
    inset 0 1px 0 rgba(255, 255, 255, .05);
  backdrop-filter: blur(18px);
}

.card-heading {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #c4cec8;
  font-size: 12px;
}

.card-heading > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.timer {
  min-width: 55px;
  color: #7f8a83;
  font-family: "SFMono-Regular", Consolas, monospace;
  text-align: right;
}

.timer strong {
  color: var(--ink);
  font-weight: 500;
}

.qr-frame {
  position: relative;
  margin: 18px 0;
  padding: 18px;
  border-radius: 17px;
  background: #fff;
}

.qr-frame img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1;
}

.corner {
  position: absolute;
  z-index: 2;
  width: 26px;
  height: 26px;
  border-color: var(--green-deep);
  border-style: solid;
  pointer-events: none;
}

.corner-tl {
  top: -4px;
  left: -4px;
  border-width: 2px 0 0 2px;
  border-radius: 8px 0 0;
}

.corner-tr {
  top: -4px;
  right: -4px;
  border-width: 2px 2px 0 0;
  border-radius: 0 8px 0 0;
}

.corner-bl {
  bottom: -4px;
  left: -4px;
  border-width: 0 0 2px 2px;
  border-radius: 0 0 0 8px;
}

.corner-br {
  right: -4px;
  bottom: -4px;
  border-width: 0 2px 2px 0;
  border-radius: 0 0 8px;
}

.status {
  min-height: 66px;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .025);
}

.status-icon {
  position: relative;
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  border: 2px solid rgba(131, 242, 143, .18);
  border-top-color: var(--green);
  border-radius: 99px;
  animation: spin 1.25s linear infinite;
}

.status strong,
.status small {
  display: block;
}

.status strong {
  margin-bottom: 4px;
  color: #e8ece9;
  font-size: 13px;
}

.status small {
  color: #78837b;
  font-size: 11px;
}

.status[data-tone="scanned"] .status-icon,
.status[data-tone="success"] .status-icon {
  border-color: var(--green);
  animation: none;
}

.status[data-tone="scanned"] .status-icon::after,
.status[data-tone="success"] .status-icon::after {
  position: absolute;
  top: 5px;
  left: 7px;
  width: 7px;
  height: 4px;
  content: "";
  border: solid var(--green);
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg);
}

.status[data-tone="expired"] .status-icon,
.status[data-tone="error"] .status-icon {
  border-color: var(--red);
  animation: none;
}

.refresh-button {
  min-height: 46px;
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(131, 242, 143, .28);
  border-radius: 13px;
  color: #08120c;
  background: var(--green);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.refresh-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(131, 242, 143, .15);
}

.risk-note {
  margin: 15px 7px 2px;
  color: #707b73;
  font-size: 10px;
  line-height: 1.65;
  text-align: center;
}

footer {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-top: 1px solid var(--line);
  color: #59635c;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.error-page {
  display: grid;
  place-items: center;
  padding: 20px;
}

.error-card {
  width: min(480px, 100%);
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  text-align: center;
}

.error-code {
  color: var(--green);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
}

.error-card h1 {
  margin: 13px 0;
  font-size: 30px;
}

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

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 54px;
  }

  .intro {
    text-align: center;
  }

  .lede,
  .config-list,
  .flow {
    margin-right: auto;
    margin-left: auto;
  }

  .config-list {
    text-align: left;
  }

  .flow {
    justify-content: center;
    text-align: left;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 28px, 1180px);
  }

  .topbar {
    min-height: 76px;
  }

  .security-pill {
    padding: 7px 9px;
    font-size: 10px;
  }

  .hero {
    gap: 44px;
    padding: 45px 0 36px;
  }

  .intro h1 {
    font-size: clamp(49px, 16vw, 68px);
  }

  .lede {
    font-size: 14px;
  }

  .flow {
    align-items: flex-start;
  }

  .flow i {
    width: 20px;
    margin: 13px 5px 0;
  }

  .flow div {
    min-width: 0;
    flex: 1;
  }

  .qr-card {
    padding: 16px;
    border-radius: 20px;
  }

  footer {
    justify-content: center;
  }
}

/* Light, centered authorization layout inspired by the reference page. */
body.reference-page {
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: #f3f3f3;
  color: #171717;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
}

.reference-page .auth-shell {
  width: min(calc(100% - 32px), 800px);
  margin: 0 auto;
  padding: 28px 0 40px;
}

.reference-auth-card,
.reference-warning,
.reference-notes {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .04);
  border-radius: 12px;
  box-shadow: 0 5px 24px rgba(0, 0, 0, .035);
}

.reference-auth-card {
  padding: 32px 40px 28px;
  text-align: center;
}

.reference-heading {
  text-align: center;
}

.wechat-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #e8f8ee;
  color: #079447;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
}

.reference-heading p {
  margin: 0;
  color: #262626;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.5;
}

.reference-heading h1 {
  margin: 2px 0 10px;
  color: #111;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: .01em;
  line-height: 1.35;
}

.application-name {
  display: inline-block;
  max-width: 100%;
  margin-bottom: 14px;
  overflow-wrap: anywhere;
  color: #07a653;
  font-size: 17px;
  font-weight: 750;
}

.reference-qr-frame {
  width: 220px;
  margin: 0 auto;
  padding: 10px;
  border: 1px solid #e9e9e9;
  border-radius: 8px;
  background: #fff;
}

.reference-qr-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
}

.reference-page .reference-status {
  display: flex;
  width: min(100%, 360px);
  min-height: 58px;
  margin: 18px auto 0;
  padding: 10px 14px;
  align-items: center;
  gap: 11px;
  border: 1px solid #dfeee5;
  border-radius: 8px;
  background: #f3fbf6;
  color: #167c42;
  text-align: left;
}

.reference-page .reference-status .status-icon {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #07c160;
  box-shadow: 0 0 0 5px rgba(7, 193, 96, .12);
}

.reference-page .reference-status strong,
.reference-page .reference-status small {
  display: block;
}

.reference-page .reference-status strong {
  color: inherit;
  font-size: 14px;
  line-height: 1.45;
}

.reference-page .reference-status small {
  margin-top: 1px;
  color: #66756c;
  font-size: 12px;
  line-height: 1.45;
}

.reference-page .reference-status[data-tone="scanned"] {
  border-color: #d9e6f7;
  background: #f2f7fd;
  color: #2869a7;
}

.reference-page .reference-status[data-tone="scanned"] .status-icon {
  background: #3b82c4;
  box-shadow: 0 0 0 5px rgba(59, 130, 196, .12);
}

.reference-page .reference-status[data-tone="success"] {
  border-color: #ccebd8;
  background: #eaf9f0;
  color: #087f3d;
}

.reference-page .reference-status[data-tone="expired"],
.reference-page .reference-status[data-tone="error"] {
  border-color: #f1d2d0;
  background: #fff3f2;
  color: #bd3029;
}

.reference-page .reference-status[data-tone="expired"] .status-icon,
.reference-page .reference-status[data-tone="error"] .status-icon {
  background: #e1483f;
  box-shadow: 0 0 0 5px rgba(225, 72, 63, .12);
}

.countdown-line {
  margin: 18px -40px 0;
  padding: 13px 18px 0;
  border-top: 1px solid #ededed;
  color: #444;
  font-size: 15px;
  line-height: 1.7;
}

.countdown-line strong {
  margin: 0 4px;
  color: #ed1c24;
  font-size: 19px;
}

.reference-app-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 10px;
  margin: 18px 0 0;
  text-align: left;
}

.reference-app-meta div {
  min-width: 0;
  padding: 11px 13px;
  border-radius: 7px;
  background: #f7f7f7;
}

.reference-app-meta dt {
  margin-bottom: 4px;
  color: #888;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.reference-app-meta dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: #333;
  font-size: 13px;
}

.reference-app-meta code {
  color: inherit;
  font: inherit;
}

.reference-actions {
  display: flex;
  margin-top: 18px;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.reference-page .refresh-button {
  display: inline-flex;
  min-height: 42px;
  padding: 9px 18px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 7px;
  background: #07c160;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: none;
}

.reference-page .refresh-button:hover {
  background: #06ad56;
  transform: none;
}

.secondary-link {
  color: #666;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.secondary-link:hover {
  color: #07a653;
}

.reference-warning {
  display: grid;
  margin-top: 18px;
  padding: 20px 26px;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
}

.reference-warning strong {
  color: #111;
  font-size: 18px;
  font-weight: 850;
  white-space: nowrap;
}

.reference-warning span {
  color: #666;
  font-size: 13px;
  line-height: 1.75;
}

.reference-notes {
  margin-top: 18px;
  padding: 28px 34px;
}

.reference-notes h2 {
  margin: 0 0 14px;
  color: #111;
  font-size: 20px;
  font-weight: 850;
}

.reference-notes ol {
  margin: 0;
  padding-left: 1.45em;
  color: #666;
  font-size: 14px;
  line-height: 1.95;
}

.reference-notes li::marker {
  color: #07a653;
  font-weight: 800;
}

.reference-footer {
  display: flex;
  min-height: auto;
  margin-top: 18px;
  padding: 0;
  justify-content: center;
  gap: 8px;
  border: 0;
  color: #999;
  font-size: 12px;
}

@media (max-width: 560px) {
  .reference-page .auth-shell {
    width: min(calc(100% - 24px), 800px);
    padding: 12px 0 28px;
  }

  .reference-auth-card {
    padding: 24px 18px 22px;
  }

  .reference-heading p {
    font-size: 18px;
  }

  .reference-heading h1 {
    font-size: 24px;
  }

  .reference-qr-frame {
    width: min(210px, 75vw);
  }

  .countdown-line {
    margin-right: -18px;
    margin-left: -18px;
  }

  .reference-app-meta {
    grid-template-columns: 1fr;
  }

  .reference-actions {
    width: 100%;
    margin-top: 14px;
    flex-direction: column;
    gap: 9px;
  }

  .reference-page .reference-actions .refresh-button {
    width: 100%;
    min-height: 48px;
  }

  .reference-page .reference-actions .secondary-link {
    padding: 4px 0;
  }

  .countdown-line {
    margin-top: 14px;
  }

  .reference-warning {
    grid-template-columns: 1fr;
  }

  .reference-warning {
    padding: 18px 20px;
    gap: 7px;
  }

  .reference-notes {
    padding: 23px 20px;
  }

  .reference-notes ol {
    font-size: 13px;
    line-height: 1.85;
  }

  .reference-footer {
    flex-wrap: wrap;
  }
}

body.catalog-page {
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: #f4f6f5;
  color: #171a18;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
}

.catalog-page a {
  color: inherit;
}

.catalog-topbar {
  border-bottom: 1px solid #e6eae7;
  background: rgba(255, 255, 255, .96);
}

.catalog-topbar-inner {
  display: flex;
  width: min(calc(100% - 36px), 1120px);
  min-height: 74px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.catalog-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.catalog-brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 7px;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  border-radius: 10px;
  background: #07c160;
}

.catalog-brand-mark i {
  display: block;
  border-radius: 2px;
  background: #fff;
}

.catalog-brand strong,
.catalog-brand small {
  display: block;
}

.catalog-brand strong {
  color: #171a18;
  font-size: 16px;
  line-height: 1.35;
}

.catalog-brand small {
  margin-top: 1px;
  color: #909792;
  font-size: 10px;
  letter-spacing: .06em;
}

.catalog-secure {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #66706a;
  font-size: 12px;
  font-weight: 650;
}

.catalog-secure i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #07c160;
  box-shadow: 0 0 0 4px rgba(7, 193, 96, .11);
}

.catalog-shell {
  width: min(calc(100% - 36px), 1120px);
  margin: 0 auto;
  padding: 30px 0 40px;
}

.catalog-hero {
  display: grid;
  min-height: 280px;
  padding: 44px 48px;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  align-items: center;
  gap: 46px;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(circle at 88% 15%, rgba(113, 239, 162, .2), transparent 28%),
    linear-gradient(135deg, #10251a 0%, #153d27 58%, #0e5730 100%);
  box-shadow: 0 14px 38px rgba(14, 55, 31, .14);
}

.catalog-eyebrow {
  color: #79e8a5;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .19em;
}

.catalog-hero h1 {
  margin: 13px 0 16px;
  color: #fff;
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 850;
  letter-spacing: -.045em;
  line-height: 1.08;
}

.catalog-hero h1 strong {
  color: #7cf0a8;
  font-weight: inherit;
}

.catalog-hero > div > p {
  max-width: 540px;
  margin: 0;
  color: rgba(255, 255, 255, .68);
  font-size: 14px;
  line-height: 1.8;
}

.catalog-search {
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 14px;
  background: rgba(255, 255, 255, .09);
  backdrop-filter: blur(9px);
}

.catalog-search label {
  display: block;
  margin-bottom: 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 750;
}

.catalog-search > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.catalog-search input,
.catalog-search button {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  font: inherit;
}

.catalog-search input {
  min-width: 0;
  padding: 0 14px;
  outline: 0;
  background: #fff;
  color: #222;
  font-size: 13px;
}

.catalog-search input:focus {
  box-shadow: 0 0 0 3px rgba(124, 240, 168, .35);
}

.catalog-search button {
  padding: 0 17px;
  cursor: pointer;
  background: #79e8a5;
  color: #10331f;
  font-size: 13px;
  font-weight: 800;
}

.catalog-notice {
  display: flex;
  margin-top: 18px;
  padding: 18px 22px;
  align-items: center;
  gap: 14px;
  border: 1px solid #e5e9e6;
  border-radius: 12px;
  background: #fff;
}

.catalog-notice-icon {
  display: inline-flex;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e8f8ee;
  color: #07a653;
  font-size: 17px;
  font-weight: 850;
}

.catalog-notice strong,
.catalog-notice p {
  display: block;
  margin: 0;
}

.catalog-notice strong {
  margin-bottom: 3px;
  font-size: 14px;
}

.catalog-notice p {
  color: #717873;
  font-size: 12px;
  line-height: 1.65;
}

.catalog-directory {
  margin-top: 18px;
  padding: 28px;
  border: 1px solid #e5e9e6;
  border-radius: 14px;
  background: #fff;
}

.catalog-directory > header {
  display: flex;
  margin-bottom: 20px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.catalog-directory > header span {
  color: #07a653;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
}

.catalog-directory h2 {
  margin: 5px 0 0;
  font-size: 24px;
  font-weight: 850;
  letter-spacing: -.025em;
}

.catalog-directory > header p {
  margin: 0;
  color: #909792;
  font-size: 12px;
}

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

.catalog-app-card {
  display: grid;
  min-width: 0;
  min-height: 86px;
  padding: 13px;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  border: 1px solid #e8ebe9;
  border-radius: 11px;
  background: #fbfcfb;
  text-decoration: none;
  transition:
    border-color .18s ease,
    box-shadow .18s ease,
    transform .18s ease;
}

.catalog-app-card:hover {
  border-color: #9bd9b3;
  box-shadow: 0 8px 22px rgba(20, 88, 47, .09);
  transform: translateY(-2px);
}

.catalog-app-icon {
  display: inline-flex;
  position: relative;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 13px;
  background: #e3f7eb;
  color: #087d3d;
  font-size: 17px;
  font-weight: 850;
  letter-spacing: -.03em;
}

.catalog-app-icon-fallback {
  position: relative;
  z-index: 0;
}

.catalog-app-icon img {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.catalog-app-card.tone-1 .catalog-app-icon {
  background: #fff0ee;
  color: #ce4339;
}

.catalog-app-card.tone-2 .catalog-app-icon {
  background: #eaf2ff;
  color: #376db6;
}

.catalog-app-card.tone-3 .catalog-app-icon {
  background: #fff4d8;
  color: #9b6c06;
}

.catalog-app-card.tone-4 .catalog-app-icon {
  background: #f1ecff;
  color: #7350bd;
}

.catalog-app-card.tone-5 .catalog-app-icon {
  background: #e8f8f6;
  color: #167f75;
}

.catalog-app-card.tone-6 .catalog-app-icon {
  background: #fcecf4;
  color: #b3487b;
}

.catalog-app-card.tone-7 .catalog-app-icon {
  background: #edf1f3;
  color: #53636b;
}

.catalog-app-copy {
  display: block;
  min-width: 0;
}

.catalog-app-copy strong,
.catalog-app-copy small {
  display: block;
}

.catalog-app-copy strong {
  overflow: hidden;
  color: #222624;
  font-size: 14px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-app-copy small {
  margin-top: 4px;
  overflow: hidden;
  color: #9aa09c;
  font-size: 9px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-app-arrow {
  color: #adb3af;
  font-size: 22px;
  line-height: 1;
}

.catalog-empty {
  padding: 55px 20px;
  border: 1px dashed #dce2de;
  border-radius: 12px;
  background: #fafbfa;
  text-align: center;
}

.catalog-empty strong {
  font-size: 17px;
}

.catalog-empty p {
  margin: 8px 0 15px;
  color: #858c87;
  font-size: 13px;
}

.catalog-empty a {
  color: #07a653;
  font-size: 13px;
  font-weight: 750;
}

.catalog-path-note {
  display: flex;
  margin-top: 18px;
  padding: 17px 20px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-radius: 10px;
  background: #eaf7ef;
}

.catalog-path-note strong {
  color: #176d3d;
  font-size: 13px;
  white-space: nowrap;
}

.catalog-path-note code {
  overflow-wrap: anywhere;
  color: #386348;
  font-size: 11px;
  text-align: right;
}

.catalog-footer {
  display: flex;
  min-height: auto;
  margin-top: 22px;
  padding: 0;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  border: 0;
  color: #9aa09c;
  font-size: 11px;
}

@media (max-width: 900px) {
  .catalog-hero {
    padding: 38px;
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

@media (max-width: 660px) {
  .catalog-topbar-inner,
  .catalog-shell {
    width: min(calc(100% - 24px), 1120px);
  }

  .catalog-secure {
    display: none;
  }

  .catalog-shell {
    padding-top: 12px;
  }

  .catalog-hero {
    min-height: 0;
    padding: 28px 22px;
    border-radius: 14px;
  }

  .catalog-hero h1 {
    font-size: clamp(34px, 12vw, 46px);
  }

  .catalog-search {
    padding: 16px;
  }

  .catalog-directory {
    padding: 20px 14px;
  }

  .catalog-directory > header {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .catalog-directory h2 {
    font-size: 21px;
  }

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

  .catalog-app-card {
    min-height: 118px;
    padding: 14px 9px 12px;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 7px;
    text-align: center;
  }

  .catalog-app-arrow {
    display: none;
  }

  .catalog-app-copy {
    width: 100%;
  }

  .catalog-app-copy small {
    display: none;
  }

  .catalog-path-note {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .catalog-path-note code {
    text-align: left;
  }
}

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