:root {
  --zone-bg: #080c12;
  --zone-bg-raised: #0d131c;
  --zone-panel: rgba(15, 22, 32, .94);
  --zone-panel-strong: #111a26;
  --zone-line: rgba(225, 233, 242, .11);
  --zone-line-strong: rgba(225, 233, 242, .2);
  --zone-text: #f4f7fa;
  --zone-muted: #9ca8b7;
  --zone-muted-soft: #748091;
  --zone-gold: #f3c765;
  --zone-gold-deep: #c99837;
  --zone-gold-rgb: 243, 199, 101;
  --zone-cyan: #61d4e8;
  --zone-cyan-rgb: 97, 212, 232;
  --zone-green: #66d99c;
  --zone-green-rgb: 102, 217, 156;
  --zone-red: #ff7d8c;
  --zone-red-rgb: 255, 125, 140;
  --zone-blue: #74a5ff;
  --zone-blue-rgb: 116, 165, 255;
  --zone-shell: 1180px;
  --zone-header-height: 70px;
  --zone-radius-panel: 16px;
  --zone-radius-control: 10px;
  --zone-radius-card: 8px;
  --zone-shadow: 0 18px 54px rgba(0, 0, 0, .32);
}

html {
  background: var(--zone-bg);
}

body.zone-page {
  min-width: 320px;
  min-height: 100svh;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px),
    linear-gradient(180deg, #080c12 0, #09101a 52%, #070a0f 100%);
  background-size: 44px 44px, 44px 44px, auto;
  color: var(--zone-text);
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

body.zone-sheet-open {
  overflow: hidden;
}

body.zone-result-dialog-open {
  overflow: hidden;
}

.zone-page *,
.zone-page *::before,
.zone-page *::after {
  box-sizing: border-box;
  letter-spacing: 0;
}

.zone-page button,
.zone-page input {
  font: inherit;
}

.zone-page button {
  border: 0;
}

.zone-page a {
  color: inherit;
  text-decoration: none;
}

.zone-page button:focus-visible,
.zone-page a:focus-visible,
.zone-page input:focus-visible {
  outline: 2px solid var(--zone-cyan);
  outline-offset: 3px;
}

/* Component display rules below are explicit, so keep native hidden states authoritative. */
.zone-page [hidden] {
  display: none !important;
}

.zone-skip {
  position: fixed;
  z-index: 200;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: var(--zone-radius-control);
  background: var(--zone-gold);
  color: #241a08;
  font-size: 13px;
  font-weight: 800;
  transform: translateY(-140%);
  transition: transform 160ms ease;
}

.zone-skip:focus {
  transform: translateY(0);
}

.zone-header {
  position: sticky;
  z-index: 50;
  top: 0;
  height: var(--zone-header-height);
  border-bottom: 1px solid var(--zone-line);
  background: rgba(7, 11, 17, .88);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}

.zone-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--zone-cyan-rgb), .34), rgba(var(--zone-gold-rgb), .38), transparent);
}

.zone-header-inner,
.zone-main,
.zone-footer > div {
  width: min(var(--zone-shell), calc(100% - 40px));
  margin-inline: auto;
}

.zone-header-inner {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 20px;
}

.zone-brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  justify-self: start;
}

.zone-brand img {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 1px solid rgba(var(--zone-cyan-rgb), .25);
  border-radius: 10px;
  background: #111925;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .28);
}

.zone-brand-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.zone-brand-copy strong {
  color: var(--zone-text);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
}

.zone-brand-copy small {
  color: var(--zone-cyan);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}

.zone-header-title {
  display: inline-flex;
  min-width: 168px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 6px 15px;
  border: 1px solid rgba(var(--zone-gold-rgb), .25);
  border-radius: 999px;
  background: rgba(var(--zone-gold-rgb), .065);
}

.zone-header-mark {
  display: inline-flex;
  width: 25px;
  height: 25px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--zone-gold);
  color: #211807;
}

.zone-header-mark svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.zone-header-title > span:last-child {
  display: grid;
  gap: 1px;
}

.zone-header-title strong {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
}

.zone-header-title small {
  color: var(--zone-muted);
  font-size: 10px;
  line-height: 1.2;
}

.zone-home {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  justify-self: end;
  padding: 0 13px;
  border: 1px solid var(--zone-line);
  border-radius: var(--zone-radius-control);
  background: rgba(255, 255, 255, .035);
  color: var(--zone-muted);
  font-size: 13px;
  font-weight: 700;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.zone-home svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.zone-home:hover {
  border-color: rgba(var(--zone-cyan-rgb), .38);
  background: rgba(var(--zone-cyan-rgb), .08);
  color: var(--zone-cyan);
  transform: translateY(-1px);
}

.zone-main {
  position: relative;
  z-index: 1;
  padding: 38px 0 70px;
}

.zone-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.zone-intro-copy {
  min-width: 0;
}

.zone-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--zone-gold);
  font-size: 12px;
  font-weight: 800;
}

.zone-kicker span {
  width: 22px;
  height: 1px;
  background: var(--zone-gold);
}

.zone-intro h1 {
  margin: 10px 0 4px;
  color: var(--zone-text);
  font-size: 40px;
  font-weight: 850;
  line-height: 1.1;
}

.zone-intro p {
  margin: 0;
  color: var(--zone-muted);
  font-size: 15px;
  line-height: 1.6;
}

.zone-service {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(var(--zone-green-rgb), .2);
  border-radius: 999px;
  background: rgba(var(--zone-green-rgb), .065);
  color: #b9edcf;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.zone-service-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--zone-green);
  box-shadow: 0 0 0 5px rgba(var(--zone-green-rgb), .09);
}

.zone-service.is-warning {
  border-color: rgba(var(--zone-gold-rgb), .24);
  background: rgba(var(--zone-gold-rgb), .07);
  color: #f3deb0;
}

.zone-service.is-warning .zone-service-dot {
  background: var(--zone-gold);
  box-shadow: 0 0 0 5px rgba(var(--zone-gold-rgb), .09);
}

.zone-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, .82fr);
  align-items: start;
  gap: 20px;
}

.zone-panel {
  border: 1px solid var(--zone-line);
  border-radius: var(--zone-radius-panel);
  background: var(--zone-panel);
  box-shadow: var(--zone-shadow), inset 0 1px 0 rgba(255, 255, 255, .035);
}

.zone-picker {
  min-width: 0;
  padding: 22px;
}

.zone-result-column {
  display: grid;
  min-width: 0;
  gap: 16px;
}

.zone-panel-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.zone-panel-head-compact {
  margin-bottom: 16px;
}

.zone-step {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(var(--zone-gold-rgb), .26);
  border-radius: 50%;
  background: rgba(var(--zone-gold-rgb), .07);
  color: var(--zone-gold);
  font-size: 11px;
  font-weight: 850;
}

.zone-panel-head h2 {
  margin: 0 0 2px;
  color: var(--zone-text);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
}

.zone-panel-head p {
  margin: 0;
  color: var(--zone-muted-soft);
  font-size: 12px;
  line-height: 1.4;
}

.zone-count {
  display: inline-flex;
  min-width: 42px;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border: 1px solid var(--zone-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .035);
  color: var(--zone-muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
}

.zone-search {
  position: relative;
  display: flex;
  height: 46px;
  align-items: center;
  gap: 10px;
  padding: 0 10px 0 14px;
  border: 1px solid var(--zone-line);
  border-radius: var(--zone-radius-control);
  background: rgba(5, 9, 14, .7);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.zone-search:focus-within {
  border-color: rgba(var(--zone-cyan-rgb), .5);
  background: rgba(7, 13, 20, .92);
  box-shadow: 0 0 0 3px rgba(var(--zone-cyan-rgb), .08);
}

.zone-search > svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: var(--zone-muted-soft);
  stroke-width: 1.8;
  stroke-linecap: round;
}

.zone-search input {
  width: 100%;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--zone-text);
  font-size: 14px;
}

.zone-search input::placeholder {
  color: var(--zone-muted-soft);
}

.zone-search input::-webkit-search-cancel-button {
  display: none;
}

.zone-icon-button,
.zone-sheet-close {
  display: inline-flex;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--zone-line);
  border-radius: 50%;
  background: rgba(255, 255, 255, .035);
  color: var(--zone-muted);
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.zone-icon-button:hover,
.zone-sheet-close:hover {
  border-color: rgba(var(--zone-red-rgb), .35);
  background: rgba(var(--zone-red-rgb), .08);
  color: var(--zone-red);
}

.zone-icon-button svg,
.zone-sheet-close svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.zone-filters {
  display: flex;
  gap: 7px;
  margin-top: 12px;
  padding-bottom: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.zone-filters::-webkit-scrollbar {
  display: none;
}

.zone-filter {
  min-width: 58px;
  min-height: 34px;
  flex: 1 0 auto;
  padding: 0 12px;
  border: 1px solid var(--zone-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .025);
  color: var(--zone-muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.zone-filter:hover {
  border-color: var(--zone-line-strong);
  color: var(--zone-text);
}

.zone-filter.is-active {
  border-color: rgba(var(--zone-gold-rgb), .46);
  background: rgba(var(--zone-gold-rgb), .11);
  color: var(--zone-gold);
}

.zone-list-bar {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  border-top: 1px solid var(--zone-line);
  color: var(--zone-muted-soft);
  font-size: 11px;
  font-weight: 750;
}

.zone-list-bar button {
  padding: 6px 0;
  background: transparent;
  color: var(--zone-muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.zone-list-bar button:hover {
  color: var(--zone-cyan);
}

.zone-hero-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
  max-height: 570px;
  min-height: 280px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2px 5px 2px 2px;
  scrollbar-color: rgba(var(--zone-gold-rgb), .25) transparent;
  scrollbar-width: thin;
}

.zone-hero-grid::-webkit-scrollbar {
  width: 5px;
}

.zone-hero-grid::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(var(--zone-gold-rgb), .25);
}

.zone-hero-card {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 104px;
  align-content: center;
  justify-items: center;
  gap: 7px;
  padding: 9px 5px 8px;
  overflow: hidden;
  border: 1px solid var(--zone-line);
  border-radius: var(--zone-radius-card);
  background: #111925;
  color: var(--zone-text);
  cursor: pointer;
  text-align: center;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.zone-hero-card:hover {
  border-color: rgba(var(--zone-cyan-rgb), .36);
  background: #15202e;
  transform: translateY(-2px);
}

.zone-hero-card.is-active {
  border-color: var(--zone-gold);
  background: #1a2028;
  box-shadow: inset 0 0 0 1px rgba(var(--zone-gold-rgb), .2), 0 8px 20px rgba(0, 0, 0, .22);
}

.zone-hero-card.is-active::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 18px;
  height: 18px;
  border-bottom-left-radius: 8px;
  background: var(--zone-gold);
}

.zone-hero-avatar-wrap {
  position: relative;
  width: 58px;
  height: 58px;
}

.zone-hero-avatar {
  width: 58px;
  height: 58px;
  display: block;
  border: 2px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
  background: #0b1119;
  object-fit: cover;
}

.zone-hero-card.is-active .zone-hero-avatar {
  border-color: var(--zone-gold);
}

.zone-hero-role-dot {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 13px;
  height: 13px;
  border: 2px solid #111925;
  border-radius: 50%;
  background: var(--zone-cyan);
}

.zone-hero-card.is-active .zone-hero-role-dot {
  border-color: #1a2028;
  background: var(--zone-gold);
}

.zone-hero-name {
  width: 100%;
  overflow: hidden;
  color: #e9edf2;
  font-size: 12px;
  font-weight: 720;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zone-grid-loading {
  display: contents;
}

.zone-grid-loading span {
  min-height: 104px;
  border: 1px solid var(--zone-line);
  border-radius: var(--zone-radius-card);
  background: linear-gradient(100deg, rgba(255, 255, 255, .025) 20%, rgba(255, 255, 255, .065) 40%, rgba(255, 255, 255, .025) 60%);
  background-size: 220% 100%;
  animation: zone-shimmer 1.5s ease-in-out infinite;
}

@keyframes zone-shimmer {
  from { background-position: 150% 0; }
  to { background-position: -70% 0; }
}

.zone-grid-empty {
  grid-column: 1 / -1;
  display: grid;
  min-height: 260px;
  place-items: center;
  align-content: center;
  gap: 6px;
  color: var(--zone-muted-soft);
  text-align: center;
}

.zone-grid-empty strong {
  color: var(--zone-text);
  font-size: 14px;
}

.zone-grid-empty span {
  font-size: 12px;
}

.zone-selected,
.zone-result {
  padding: 20px;
}

.zone-selected-empty {
  display: flex;
  min-height: 82px;
  align-items: center;
  gap: 13px;
  padding: 13px 2px 2px;
  border-top: 1px solid var(--zone-line);
}

.zone-empty-mark {
  display: inline-flex;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(var(--zone-gold-rgb), .2);
  border-radius: 50%;
  background: rgba(var(--zone-gold-rgb), .055);
  color: var(--zone-gold);
}

.zone-empty-mark svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.zone-selected-empty > div {
  display: grid;
  gap: 3px;
}

.zone-selected-empty strong {
  font-size: 15px;
}

.zone-selected-empty span:last-child {
  color: var(--zone-muted-soft);
  font-size: 12px;
}

.zone-selected-content {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding-top: 15px;
  border-top: 1px solid var(--zone-line);
}

.zone-selected-avatar {
  width: 64px;
  height: 64px;
  border: 2px solid var(--zone-gold);
  border-radius: 50%;
  background: #0b1119;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .26);
}

.zone-selected-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.zone-selected-copy strong {
  overflow: hidden;
  color: var(--zone-text);
  font-size: 20px;
  font-weight: 850;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zone-selected-copy small {
  overflow: hidden;
  color: var(--zone-muted);
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zone-role {
  width: fit-content;
  padding: 2px 6px;
  border: 1px solid rgba(var(--zone-cyan-rgb), .24);
  border-radius: 999px;
  background: rgba(var(--zone-cyan-rgb), .07);
  color: var(--zone-cyan);
  font-size: 10px;
  font-weight: 750;
}

.zone-query-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid rgba(var(--zone-gold-rgb), .58);
  border-radius: var(--zone-radius-control);
  background: var(--zone-gold);
  color: #221908;
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
  box-shadow: 0 10px 22px rgba(var(--zone-gold-rgb), .13), inset 0 1px 0 rgba(255, 255, 255, .42);
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.zone-query-button:hover {
  background: #ffda81;
  transform: translateY(-1px);
  box-shadow: 0 13px 27px rgba(var(--zone-gold-rgb), .2), inset 0 1px 0 rgba(255, 255, 255, .5);
}

.zone-query-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.zone-result-state {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid var(--zone-line);
  border-radius: 999px;
  color: var(--zone-muted-soft);
  font-size: 9px;
  font-weight: 850;
}

.zone-result-state.is-loading {
  border-color: rgba(var(--zone-cyan-rgb), .24);
  color: var(--zone-cyan);
}

.zone-result-state.is-success {
  border-color: rgba(var(--zone-green-rgb), .28);
  color: var(--zone-green);
}

.zone-result-state.is-error {
  border-color: rgba(var(--zone-red-rgb), .28);
  color: var(--zone-red);
}

.zone-cooldown {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  padding: 8px 11px;
  border: 1px solid rgba(var(--zone-gold-rgb), .24);
  border-radius: var(--zone-radius-control);
  background: rgba(var(--zone-gold-rgb), .065);
  color: #f1ddb3;
  font-size: 12px;
  font-weight: 700;
}

.zone-cooldown[hidden] {
  display: none;
}

.zone-cooldown svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: none;
  stroke: var(--zone-gold);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.zone-result-body {
  min-height: 280px;
  border-top: 1px solid var(--zone-line);
}

.zone-result-empty,
.zone-result-loading,
.zone-result-error {
  display: grid;
  min-height: 280px;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: var(--zone-muted-soft);
  text-align: center;
}

.zone-result-empty strong,
.zone-result-loading strong,
.zone-result-error strong {
  color: var(--zone-text);
  font-size: 14px;
}

.zone-result-empty > span,
.zone-result-loading > span,
.zone-result-error > span {
  max-width: 270px;
  font-size: 12px;
  line-height: 1.55;
}

.zone-result-radar {
  position: relative;
  width: 76px;
  height: 76px;
  margin-bottom: 5px;
}

.zone-result-radar i {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(var(--zone-cyan-rgb), .16);
  border-radius: 50%;
}

.zone-result-radar i:nth-child(2) { inset: 12px; }
.zone-result-radar i:nth-child(3) { inset: 25px; }

.zone-result-radar::before,
.zone-result-radar::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: rgba(var(--zone-cyan-rgb), .15);
  transform: translate(-50%, -50%);
}

.zone-result-radar::before { width: 100%; height: 1px; }
.zone-result-radar::after { width: 1px; height: 100%; }

.zone-result-radar span {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--zone-gold);
  box-shadow: 0 0 0 6px rgba(var(--zone-gold-rgb), .1);
  transform: translate(-50%, -50%);
}

.zone-loading-spinner {
  width: 44px;
  height: 44px;
  margin-bottom: 5px;
  border: 3px solid rgba(var(--zone-cyan-rgb), .12);
  border-top-color: var(--zone-cyan);
  border-radius: 50%;
  animation: zone-spin .8s linear infinite;
}

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

.zone-error-icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  border: 1px solid rgba(var(--zone-red-rgb), .25);
  border-radius: 50%;
  background: rgba(var(--zone-red-rgb), .07);
  color: var(--zone-red);
  font-size: 20px;
  font-weight: 850;
}

.zone-result-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 0 12px;
}

.zone-result-summary img {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 1px solid rgba(var(--zone-gold-rgb), .42);
  border-radius: 50%;
  background: #0b1119;
  object-fit: cover;
}

.zone-result-summary > div {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.zone-result-summary strong {
  overflow: hidden;
  color: var(--zone-text);
  font-size: 15px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zone-result-summary span {
  color: var(--zone-muted);
  font-size: 11px;
}

.zone-rank-list {
  border-top: 1px solid var(--zone-line);
}

.zone-rank-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 66px;
  padding: 10px 0;
  border-bottom: 1px solid var(--zone-line);
}

.zone-rank-index {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--zone-line);
  border-radius: 50%;
  background: rgba(255, 255, 255, .03);
  color: var(--zone-muted);
  font-size: 10px;
  font-weight: 850;
}

.zone-rank-row:first-child .zone-rank-index {
  border-color: rgba(var(--zone-gold-rgb), .4);
  background: rgba(var(--zone-gold-rgb), .08);
  color: var(--zone-gold);
}

.zone-rank-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.zone-rank-copy span {
  color: var(--zone-muted-soft);
  font-size: 10px;
  font-weight: 750;
}

.zone-rank-copy strong {
  overflow: hidden;
  color: #e6ebf1;
  font-size: 13px;
  font-weight: 720;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zone-rank-score {
  color: var(--zone-gold);
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  font-weight: 850;
  white-space: nowrap;
}

.zone-rank-score.is-empty {
  color: var(--zone-muted-soft);
  font-size: 14px;
}

.zone-recommend {
  padding: 14px 0 2px;
}

.zone-recommend-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}

.zone-recommend-head strong {
  color: var(--zone-text);
  font-size: 12px;
  font-weight: 800;
}

.zone-recommend-head span {
  color: var(--zone-muted-soft);
  font-size: 10px;
}

.zone-recommend-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.zone-recommend-item {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 5px;
  padding: 0 9px;
  border: 1px solid rgba(var(--zone-cyan-rgb), .2);
  border-radius: 999px;
  background: rgba(var(--zone-cyan-rgb), .055);
  color: #c4eaf1;
  font-size: 11px;
  font-weight: 700;
}

.zone-result-time {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  color: var(--zone-muted-soft);
  font-size: 10px;
}

.zone-result-time svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.zone-data-note {
  margin: 0;
  padding: 0 4px;
  color: var(--zone-muted-soft);
  font-size: 10px;
  line-height: 1.6;
}

.zone-mobile-result-trigger {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(var(--zone-gold-rgb), .34);
  border-radius: 999px;
  background: rgba(16, 23, 33, .96);
  color: var(--zone-gold);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .3);
}

.zone-mobile-result-trigger-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--zone-green);
  box-shadow: 0 0 0 5px rgba(var(--zone-green-rgb), .09);
}

.zone-mobile-result-trigger svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.zone-footer {
  border-top: 1px solid var(--zone-line);
  background: rgba(5, 8, 12, .72);
}

.zone-footer > div {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--zone-muted-soft);
  font-size: 11px;
}

.zone-footer a {
  color: var(--zone-cyan);
  font-weight: 700;
}

.zone-sheet-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 5, 8, .72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 180ms ease;
}

.zone-sheet-backdrop[hidden] {
  display: none;
}

.zone-sheet-backdrop.is-open {
  opacity: 1;
}

.zone-sheet {
  width: min(460px, 100%);
  max-height: min(720px, calc(100svh - 40px));
  overflow: auto;
  padding: 22px;
  border: 1px solid var(--zone-line-strong);
  border-radius: var(--zone-radius-panel);
  background: #101721;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .56), inset 0 1px 0 rgba(255, 255, 255, .055);
  transform: translateY(12px) scale(.985);
  transition: transform 180ms ease;
}

.zone-sheet-backdrop.is-open .zone-sheet {
  transform: translateY(0) scale(1);
}

.zone-sheet-handle {
  display: none;
}

.zone-sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.zone-sheet-head > div {
  min-width: 0;
}

.zone-sheet-head > div > span {
  color: var(--zone-gold);
  font-size: 10px;
  font-weight: 800;
}

.zone-sheet-head h2 {
  margin: 4px 0 3px;
  color: var(--zone-text);
  font-size: 22px;
  font-weight: 850;
  line-height: 1.25;
}

.zone-sheet-head p {
  margin: 0;
  color: var(--zone-muted);
  font-size: 12px;
}

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

.zone-platform-list > button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 70px;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--zone-line);
  border-radius: var(--zone-radius-control);
  background: rgba(255, 255, 255, .026);
  color: var(--zone-text);
  cursor: pointer;
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.zone-platform-list > button:hover {
  border-color: rgba(var(--zone-gold-rgb), .38);
  background: rgba(var(--zone-gold-rgb), .065);
  transform: translateY(-1px);
}

.zone-platform-list > button:disabled {
  cursor: wait;
  opacity: .55;
}

.zone-platform-list > button > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.zone-platform-list strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zone-platform-list small {
  color: var(--zone-muted-soft);
  font-size: 10px;
}

.zone-platform-list > button > svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--zone-muted-soft);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.zone-platform-icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 850;
}

.zone-platform-qq {
  background: rgba(var(--zone-blue-rgb), .12);
  color: var(--zone-blue);
}

.zone-platform-wx {
  background: rgba(var(--zone-green-rgb), .12);
  color: var(--zone-green);
}

.zone-platform-early {
  background: rgba(var(--zone-gold-rgb), .12);
  color: var(--zone-gold);
}

.zone-toast {
  position: fixed;
  z-index: 140;
  right: 20px;
  bottom: max(20px, env(safe-area-inset-bottom));
  max-width: min(380px, calc(100% - 40px));
  padding: 11px 14px;
  border: 1px solid var(--zone-line-strong);
  border-radius: var(--zone-radius-control);
  background: rgba(16, 23, 33, .96);
  color: var(--zone-text);
  box-shadow: 0 16px 42px rgba(0, 0, 0, .44);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.zone-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.zone-result-dialog-backdrop {
  position: fixed;
  z-index: 110;
  inset: 0;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(2, 5, 8, .75);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 180ms ease;
}

.zone-result-dialog-backdrop[hidden] {
  display: none !important;
}

.zone-result-dialog-backdrop.is-open {
  display: grid;
  opacity: 1;
}

/* Visibility fallback for Safari/iOS WebViews where a frame-based transition
   can be skipped. Keep this separate from .is-open so animation is optional. */
.zone-result-dialog-backdrop.is-visible {
  display: grid !important;
  opacity: 1;
}

.zone-result-dialog-backdrop.is-visible .zone-result-dialog {
  transform: translateY(0) scale(1);
}

.zone-result-dialog {
  width: min(470px, 100%);
  max-height: min(760px, calc(100svh - 40px));
  overflow: auto;
  padding: 22px;
  border: 1px solid rgba(var(--zone-gold-rgb), .32);
  border-radius: var(--zone-radius-panel);
  background: #101721;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .58), inset 0 1px 0 rgba(255, 255, 255, .055);
  transform: translateY(12px) scale(.985);
  transition: transform 180ms ease;
}

.zone-result-dialog-backdrop.is-open .zone-result-dialog {
  transform: translateY(0) scale(1);
}

.zone-result-dialog-handle {
  display: none;
}

.zone-result-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.zone-result-dialog-head > div {
  min-width: 0;
}

.zone-result-dialog-head > div > span {
  color: var(--zone-green);
  font-size: 10px;
  font-weight: 850;
}

.zone-result-dialog-head h2 {
  margin: 4px 0 3px;
  color: var(--zone-text);
  font-size: 22px;
  font-weight: 850;
  line-height: 1.25;
}

.zone-result-dialog-head p {
  margin: 0;
  color: var(--zone-muted);
  font-size: 12px;
}

.zone-result-dialog-body {
  border-top: 1px solid var(--zone-line);
}

.zone-result-dialog.is-loading {
  border-color: rgba(var(--zone-cyan-rgb), .34);
}

.zone-result-dialog.is-loading .zone-result-dialog-head > div > span {
  color: var(--zone-cyan);
}

.zone-query-loading {
  display: grid;
  min-height: 300px;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 20px 0 10px;
  color: var(--zone-muted);
  text-align: center;
}

.zone-query-loading strong {
  color: var(--zone-text);
  font-size: 15px;
  font-weight: 850;
}

.zone-query-loading > span {
  font-size: 12px;
}

.zone-query-loading small {
  color: var(--zone-muted-soft);
  font-size: 10px;
}

.zone-query-loading-visual {
  position: relative;
  width: 116px;
  height: 116px;
  margin-bottom: 8px;
}

.zone-query-loading-visual::before,
.zone-query-loading-visual::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: rgba(var(--zone-cyan-rgb), .2);
  transform: translate(-50%, -50%);
}

.zone-query-loading-visual::before {
  width: 100%;
  height: 1px;
}

.zone-query-loading-visual::after {
  width: 1px;
  height: 100%;
}

.zone-query-loading-visual i {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(var(--zone-cyan-rgb), .18);
  border-radius: 50%;
  animation: zone-loading-pulse 2.2s ease-out infinite;
  -webkit-animation: zone-loading-pulse 2.2s ease-out infinite;
}

.zone-query-loading-visual i:nth-child(2) {
  inset: 15px;
  animation-delay: -.7s;
  -webkit-animation-delay: -.7s;
}

.zone-query-loading-visual i:nth-child(3) {
  inset: 31px;
  animation-delay: -1.4s;
  -webkit-animation-delay: -1.4s;
}

.zone-query-loading-visual span {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  border: 2px solid #fff1bf;
  border-radius: 50%;
  background: var(--zone-gold);
  box-shadow: 0 0 0 7px rgba(var(--zone-gold-rgb), .12), 0 0 24px rgba(var(--zone-gold-rgb), .56);
  transform: translate(-50%, -50%);
}

.zone-query-loading-visual span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(var(--zone-gold-rgb), .42);
  border-left-color: transparent;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: zone-loading-spin 1.4s linear infinite;
  -webkit-animation: zone-loading-spin 1.4s linear infinite;
}

@-webkit-keyframes zone-loading-pulse {
  0%, 100% { opacity: .22; -webkit-transform: scale(.88); transform: scale(.88); }
  50% { opacity: .8; -webkit-transform: scale(1); transform: scale(1); }
}

@-webkit-keyframes zone-loading-spin {
  to { -webkit-transform: translate(-50%, -50%) rotate(360deg); transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes zone-loading-pulse {
  0%, 100% { opacity: .22; transform: scale(.88); }
  50% { opacity: .8; transform: scale(1); }
}

@keyframes zone-loading-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.zone-result-dialog-body .zone-result-content {
  min-width: 0;
}

.zone-result-dialog-body .zone-result-summary {
  padding-top: 14px;
}

.zone-result-dialog-action {
  display: block;
  width: 100%;
  min-height: 42px;
  margin-top: 16px;
  border: 1px solid rgba(var(--zone-gold-rgb), .48);
  border-radius: var(--zone-radius-control);
  background: rgba(var(--zone-gold-rgb), .1);
  color: var(--zone-gold);
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
  transition: background 160ms ease, border-color 160ms ease;
}

.zone-result-dialog-action:hover {
  border-color: rgba(var(--zone-gold-rgb), .72);
  background: rgba(var(--zone-gold-rgb), .16);
}

.zone-result-dialog-action[hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .zone-workspace {
    grid-template-columns: minmax(0, 1fr) 330px;
  }

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

  .zone-selected-content {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .zone-query-button {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 760px) {
  :root {
    --zone-header-height: 62px;
  }

  .zone-header-inner,
  .zone-main,
  .zone-footer > div {
    width: min(100% - 28px, 620px);
  }

  .zone-header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .zone-header-title {
    display: none;
  }

  .zone-brand img {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .zone-home {
    min-height: 36px;
    padding: 0 10px;
  }

  .zone-main {
    padding-top: 24px;
    padding-bottom: 48px;
  }

  .zone-intro {
    align-items: center;
    margin-bottom: 20px;
  }

  .zone-intro h1 {
    margin-top: 7px;
    font-size: 32px;
  }

  .zone-intro p {
    font-size: 13px;
  }

  .zone-service {
    min-height: 30px;
    padding: 0 10px;
    font-size: 11px;
  }

  .zone-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .zone-result-column {
    grid-template-columns: minmax(0, 1fr);
  }

  .zone-hero-grid {
    max-height: 510px;
  }

  .zone-selected-content {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .zone-query-button {
    grid-column: auto;
    width: auto;
  }

  .zone-result-body,
  .zone-result-empty,
  .zone-result-loading,
  .zone-result-error {
    min-height: 250px;
  }

  .zone-mobile-result-trigger {
    position: fixed;
    z-index: 65;
    display: flex;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    left: 12px;
  }

  .zone-result-dialog-backdrop {
    align-items: end;
    padding: 0;
  }

  .zone-result-dialog {
    width: 100%;
    max-height: min(82svh, 760px);
    padding: 10px 16px max(16px, env(safe-area-inset-bottom));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 18px 18px 0 0;
    transform: translateY(100%);
  }

  .zone-result-dialog-backdrop.is-open .zone-result-dialog {
    transform: translateY(0);
  }

  .zone-result-dialog-handle {
    display: block;
    width: 38px;
    height: 4px;
    margin: 0 auto 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .2);
  }

  .zone-result-dialog-head h2 {
    font-size: 19px;
  }

  .zone-result-dialog-body .zone-rank-row {
    min-height: 58px;
    padding: 8px 0;
  }

  .zone-result-dialog-body .zone-rank-score {
    font-size: 17px;
  }

  .zone-result-dialog-body .zone-result-time {
    margin-top: 10px;
  }
}

@media (max-width: 520px) {
  .zone-header-inner,
  .zone-main,
  .zone-footer > div {
    width: calc(100% - 24px);
  }

  .zone-brand-copy small {
    display: none;
  }

  .zone-home span {
    display: none;
  }

  .zone-home {
    width: 38px;
    padding: 0;
    border-radius: 50%;
  }

  .zone-intro {
    align-items: flex-end;
    gap: 10px;
  }

  .zone-kicker {
    font-size: 10px;
  }

  .zone-intro h1 {
    font-size: 30px;
  }

  .zone-intro p {
    max-width: 230px;
    font-size: 12px;
  }

  .zone-service {
    padding: 0 9px;
  }

  .zone-picker,
  .zone-selected,
  .zone-result {
    padding: 16px;
  }

  .zone-panel {
    border-radius: 13px;
  }

  .zone-panel-head {
    gap: 10px;
    margin-bottom: 14px;
  }

  .zone-step {
    width: 31px;
    height: 31px;
  }

  .zone-panel-head h2 {
    font-size: 15px;
  }

  .zone-panel-head p {
    font-size: 11px;
  }

  .zone-search {
    height: 44px;
  }

  .zone-filter {
    min-width: 54px;
    min-height: 32px;
    padding: 0 11px;
  }

  .zone-hero-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    max-height: 480px;
    min-height: 250px;
  }

  .zone-hero-card,
  .zone-grid-loading span {
    min-height: 96px;
  }

  .zone-hero-card {
    padding-inline: 3px;
  }

  .zone-hero-avatar-wrap,
  .zone-hero-avatar {
    width: 51px;
    height: 51px;
  }

  .zone-hero-name {
    font-size: 11px;
  }

  .zone-selected-content {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .zone-selected-avatar {
    width: 58px;
    height: 58px;
  }

  .zone-selected-copy strong {
    font-size: 18px;
  }

  .zone-query-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .zone-result-body,
  .zone-result-empty,
  .zone-result-loading,
  .zone-result-error {
    min-height: 230px;
  }

  .zone-rank-score {
    font-size: 18px;
  }

  .zone-sheet-backdrop {
    align-items: end;
    padding: 0;
  }

  .zone-sheet {
    width: 100%;
    max-height: min(78svh, 720px);
    padding: 10px 16px max(18px, env(safe-area-inset-bottom));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 18px 18px 0 0;
    transform: translateY(100%);
  }

  .zone-sheet-backdrop.is-open .zone-sheet {
    transform: translateY(0);
  }

  .zone-sheet-handle {
    display: block;
    width: 38px;
    height: 4px;
    margin: 0 auto 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .2);
  }

  .zone-sheet-head {
    margin-bottom: 14px;
  }

  .zone-sheet-head h2 {
    font-size: 19px;
  }

  .zone-platform-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
  }

  .zone-platform-list > button {
    min-height: 58px;
  }

  .zone-toast {
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    max-width: calc(100% - 24px);
  }

  .zone-result-dialog-body .zone-rank-copy strong {
    max-width: 190px;
  }
}

@media (max-width: 360px) {
  .zone-service span:last-child {
    max-width: 82px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

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

@media (hover: none), (pointer: coarse) {
  .zone-home:hover,
  .zone-hero-card:hover,
  .zone-query-button:hover,
  .zone-platform-list > button:hover {
    transform: none;
  }
}

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