:root {
  color-scheme: dark;
  --canvas: #06090f;
  --panel: rgba(14, 19, 30, 0.82);
  --panel-strong: rgba(17, 23, 36, 0.96);
  --hairline: rgba(255, 255, 255, 0.09);
  --hairline-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f7fb;
  --muted: #8e98aa;
  --muted-strong: #b5bdca;
  --accent: #8ba8ff;
  --success: #5fe1a7;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 13px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--canvas);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--canvas);
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

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

.topbar {
  width: min(1480px, calc(100% - 56px));
  margin: 0 auto;
  padding: 42px 0 26px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: flex-end;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-nav {
  display: flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.page-nav a {
  padding: 8px 11px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  text-decoration: none;
}

.page-nav a:hover,
.page-nav a.is-active {
  color: var(--text);
}

.page-nav a.is-active {
  background: #252d3c;
}

.eyebrow,
.section-kicker {
  display: block;
  color: #778296;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.brand-block h1 {
  margin: 8px 0 7px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.brand-block p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.summary {
  display: flex;
  gap: 1px;
  padding: 1px;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}

.summary div {
  min-width: 88px;
  padding: 10px 16px;
  display: flex;
  align-items: baseline;
  gap: 6px;
  background: rgba(255, 255, 255, 0.025);
}

.summary strong {
  font-size: 19px;
}

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

.workspace {
  width: min(1480px, calc(100% - 56px));
  min-height: calc(100vh - 160px);
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  background: rgba(10, 14, 23, 0.72);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(24px);
}

.country-panel {
  padding: 24px 17px 20px;
  border-right: 1px solid var(--hairline);
  background: rgba(7, 10, 17, 0.62);
}

.panel-heading,
.section-heading,
.config-block-title,
.json-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.panel-heading {
  padding: 0 7px 17px;
}

.panel-heading h2,
.selected-title h2,
.section-heading h3 {
  margin: 5px 0 0;
  letter-spacing: -0.02em;
}

.panel-heading h2,
.selected-title h2 {
  font-size: 18px;
}

.count-pill,
.load-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  min-height: 25px;
  padding: 0 9px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  color: var(--muted-strong);
  font-size: 11px;
  background: rgba(255, 255, 255, 0.04);
}

.load-state.is-live {
  border-color: rgba(80, 226, 165, 0.24);
  color: var(--success);
  background: rgba(80, 226, 165, 0.07);
}

.search-field {
  display: block;
  margin: 0 2px 12px;
  padding: 9px 12px 8px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  transition: border-color 160ms ease, background 160ms ease;
}

.search-field:focus-within {
  border-color: rgba(139, 168, 255, 0.52);
  background: rgba(255, 255, 255, 0.05);
}

.search-field span {
  display: block;
  margin-bottom: 3px;
  color: #657087;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.search-field input {
  width: 100%;
  padding: 0;
  border: 0;
  outline: none;
  color: var(--text);
  background: transparent;
  font-size: 12px;
}

.search-field input::placeholder {
  color: #626c7d;
}

.country-list {
  display: grid;
  gap: 4px;
  max-height: calc(100vh - 300px);
  min-height: 360px;
  overflow-y: auto;
  padding: 2px;
  scrollbar-color: #323b4b transparent;
  scrollbar-width: thin;
}

.country-button {
  width: 100%;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  background: transparent;
  transition: 160ms ease;
}

.country-button:hover {
  background: rgba(255, 255, 255, 0.045);
}

.country-button.is-active {
  border-color: rgba(142, 172, 255, 0.24);
  background: linear-gradient(100deg, rgba(92, 126, 218, 0.17), rgba(255, 255, 255, 0.035));
}

.country-code,
.flag-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.06);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.country-code {
  width: 32px;
  height: 27px;
}

.country-button-copy {
  min-width: 0;
}

.country-button-copy strong,
.country-button-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.country-button-copy strong {
  margin-bottom: 2px;
  font-size: 12px;
  font-weight: 650;
}

.country-button-copy span {
  color: var(--muted);
  font-size: 10px;
}

.country-button-state {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3f4959;
  box-shadow: 0 0 0 3px rgba(63, 73, 89, 0.14);
}

.country-button-state.is-live {
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(95, 225, 167, 0.11);
}

.empty-filter {
  padding: 30px 8px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

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

.panel-toolbar {
  min-height: 87px;
  padding: 20px 25px;
  border-bottom: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  background: rgba(12, 16, 26, 0.52);
}

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

.selected-title > div {
  min-width: 0;
}

.selected-title h2 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flag-chip {
  width: 42px;
  height: 35px;
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(109, 140, 229, 0.2), rgba(255, 255, 255, 0.03));
}

.list-page-link {
  flex: 0 0 auto;
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 650;
  text-decoration: none;
}

.list-page-link:hover {
  color: var(--text);
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.prompt-open-button {
  padding: 8px 11px;
  border: 1px solid rgba(139, 168, 255, 0.28);
  border-radius: 9px;
  color: #dbe4ff;
  cursor: pointer;
  background: rgba(108, 139, 224, 0.1);
  font-size: 10px;
  font-weight: 650;
}

.prompt-open-button:hover {
  border-color: rgba(139, 168, 255, 0.55);
  background: rgba(108, 139, 224, 0.16);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(650px, 1.2fr) minmax(430px, 0.8fr);
  min-height: calc(100% - 87px);
}

.preview-section,
.config-section {
  min-width: 0;
  padding: 25px;
}

.preview-section {
  border-right: 1px solid var(--hairline);
}

.section-heading {
  min-height: 34px;
  margin-bottom: 18px;
}

.section-heading h3 {
  font-size: 15px;
}

.preview-stage {
  position: relative;
  min-height: 310px;
  padding: 24px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: minmax(196px, 0.65fr) minmax(388px, 1.35fr);
  align-items: stretch;
  gap: 16px;
  overflow: hidden;
  background: #03050a;
}

.preview-example {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  background: #070a10;
}

.preview-example-title {
  margin-bottom: 14px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.preview-example-title strong {
  font-size: 11px;
}

.preview-example-title span {
  color: #697487;
  font-size: 9px;
}

.card-preview-slot {
  min-height: 218px;
  display: grid;
  place-items: center;
}

.preview-example-detail .card-preview-slot {
  min-height: 218px;
}

.guild-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid transparent;
  color: #fff;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.38);
}

.guild-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.07), transparent 34%, rgba(0, 0, 0, 0.18));
}

.list-card {
  width: 172px;
  height: 210px;
  padding: 20px 11px 10px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.emboss-image {
  position: absolute;
  z-index: -1;
  width: 112px;
  height: 112px;
  right: -6px;
  bottom: 31px;
  object-fit: contain;
  opacity: 0.56;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.list-card-top {
  position: relative;
  z-index: 2;
}

.logo-frame {
  width: 56px;
  height: 40px;
  margin-bottom: 8px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.22);
}

.logo-frame img,
.asset-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.asset-image.is-missing {
  display: none;
}

.asset-fallback {
  display: none;
  width: 100%;
  height: 100%;
  place-items: center;
  color: rgba(255, 255, 255, 0.64);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02)),
    rgba(8, 12, 20, 0.82);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.asset-image.is-missing + .asset-fallback,
.asset-thumb.is-missing .asset-fallback {
  display: grid;
}

.list-card-name {
  margin: 0 0 5px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.94);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border: 1px solid rgba(80, 232, 159, 0.56);
  border-radius: 6px;
  color: #6af0ad;
  background: rgba(30, 128, 82, 0.2);
  font-size: 8px;
  font-weight: 650;
}

.join-button {
  width: 100%;
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.95);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025));
  font-size: 10px;
  font-weight: 650;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.detail-card {
  width: 364px;
  height: 198px;
  padding: 19px 20px;
  border-radius: 24px;
}

.banner-image,
.detail-overlay {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
}

.banner-image {
  object-fit: cover;
}

.detail-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(1, 6, 14, 0.93) 0%, rgba(2, 8, 18, 0.7) 50%, rgba(2, 7, 14, 0.29) 100%),
    linear-gradient(0deg, rgba(2, 6, 12, 0.44), transparent 70%);
}

.detail-heading {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 8px;
}

.detail-logo {
  width: 84px;
  height: 52px;
  flex: 0 0 auto;
  border-radius: 7px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

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

.detail-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.detail-name-row h4 {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.official-badge {
  flex: 0 0 auto;
  padding: 4px 7px;
  border: 1px solid rgba(128, 165, 229, 0.62);
  border-radius: 7px;
  background: rgba(66, 104, 167, 0.38);
  font-size: 10px;
  font-weight: 700;
}

.detail-location {
  margin: 0 0 13px;
  color: rgba(220, 225, 234, 0.72);
  font-size: 12px;
}

.detail-description {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: rgba(232, 235, 241, 0.78);
  font-size: 12px;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.asset-strip {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.asset-card {
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--hairline);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
}

.asset-thumb {
  position: relative;
  height: 64px;
  margin-bottom: 8px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(4, 7, 12, 0.68);
}

.asset-card-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.asset-card-copy > div {
  min-width: 0;
}

.asset-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 5px;
}

.asset-card strong,
.asset-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-card strong {
  margin-bottom: 2px;
  font-size: 10px;
}

.asset-card small {
  color: var(--muted);
  font-size: 8px;
}

.asset-link {
  flex: 0 0 auto;
  padding: 5px 7px;
  border: 1px solid var(--hairline-strong);
  border-radius: 7px;
  color: var(--muted-strong);
  cursor: pointer;
  background: transparent;
  font-family: inherit;
  text-decoration: none;
  font-size: 8px;
  line-height: 1.25;
  transition: 150ms ease;
}

.asset-link:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.055);
}

.asset-download {
  border-color: rgba(139, 168, 255, 0.3);
  color: #c6d3f5;
  background: rgba(108, 139, 224, 0.08);
}

.asset-dialog {
  width: min(920px, calc(100% - 40px));
  max-height: min(760px, calc(100vh - 40px));
  padding: 0;
  border: 1px solid var(--hairline-strong);
  border-radius: 20px;
  overflow: hidden;
  color: var(--text);
  background: #0b1019;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.58);
}

.asset-dialog::backdrop {
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(3px);
}

.asset-dialog-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--hairline);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  background: #0e1420;
}

.asset-dialog-header h2 {
  margin: 6px 0 4px;
  font-size: 20px;
}

.asset-dialog-header p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.asset-dialog-content {
  max-height: calc(100vh - 150px);
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(220px, 0.75fr);
  gap: 14px;
  overflow: auto;
  scrollbar-color: #323b4b transparent;
  scrollbar-width: thin;
}

.asset-dialog-preview {
  min-width: 0;
  min-height: 400px;
  margin: 0;
  border: 1px solid var(--hairline);
  border-radius: 15px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  background-color: #151b25;
  background-image:
    linear-gradient(45deg, rgba(255, 255, 255, 0.025) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.025) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.025) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.025) 75%);
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-size: 16px 16px;
}

.asset-dialog-preview img {
  width: 100%;
  height: 100%;
  max-height: 520px;
  padding: 22px;
  object-fit: contain;
}

.asset-dialog-preview[data-asset-type="banner"] img {
  padding: 0;
}

.asset-dialog-preview.is-missing img {
  opacity: 0;
}

.asset-dialog-preview.is-missing::before {
  content: "图片读取失败";
  place-self: center;
  color: var(--muted);
  font-size: 12px;
}

.asset-dialog-preview figcaption {
  padding: 9px 12px;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  background: rgba(5, 8, 13, 0.72);
  font-size: 9px;
  text-align: center;
}

.asset-dialog-details {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--hairline);
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.022);
}

.asset-dialog-details dl {
  margin: 0;
  display: grid;
  gap: 0;
}

.asset-dialog-details dl > div {
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline);
}

.asset-dialog-details dl > div:first-child {
  padding-top: 0;
}

.asset-dialog-details dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.asset-dialog-details dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: #d7deea;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  line-height: 1.55;
}

.asset-dialog-download {
  margin-top: auto;
  padding: 10px 12px;
  border: 1px solid rgba(139, 168, 255, 0.42);
  border-radius: 10px;
  color: #eef3ff;
  background: rgba(108, 139, 224, 0.16);
  text-align: center;
  text-decoration: none;
  font-size: 10px;
  font-weight: 700;
  transition: 150ms ease;
}

.asset-dialog-download:hover {
  border-color: rgba(139, 168, 255, 0.7);
  background: rgba(108, 139, 224, 0.24);
}

.config-section {
  background: rgba(12, 16, 25, 0.35);
}

.copy-all-button,
.copy-section,
.copy-stop {
  border: 1px solid var(--hairline-strong);
  cursor: pointer;
  transition: 150ms ease;
}

.copy-all-button {
  padding: 8px 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.055);
  font-size: 10px;
  font-weight: 650;
}

.copy-all-button:hover,
.copy-section:hover,
.copy-stop:hover {
  border-color: rgba(139, 168, 255, 0.52);
  color: #fff;
  background: rgba(108, 139, 224, 0.12);
}

.config-block {
  margin-bottom: 13px;
  padding: 13px;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.022);
}

.config-block-title {
  margin-bottom: 10px;
}

.config-block-title h4 {
  margin: 0 0 2px;
  font-size: 11px;
}

.config-block-title p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
}

.copy-section {
  padding: 5px 7px;
  border-radius: 7px;
  color: var(--muted-strong);
  background: transparent;
  font-size: 8px;
}

.stop-list {
  display: grid;
  gap: 5px;
}

.stop-row {
  min-height: 39px;
  padding: 5px 6px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 9px;
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr) 52px 44px;
  align-items: center;
  gap: 8px;
  background: rgba(2, 5, 10, 0.35);
}

.color-swatch {
  width: 25px;
  height: 25px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.stop-value,
.stop-position {
  padding: 3px 2px;
  border: 0;
  overflow: hidden;
  color: inherit;
  cursor: pointer;
  background: transparent;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stop-value:hover,
.stop-position:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.stop-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
}

.stop-position {
  color: var(--muted-strong);
  text-align: right;
  font-size: 9px;
}

.copy-stop {
  padding: 5px 6px;
  border-radius: 7px;
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.025);
  font-size: 8px;
}

.json-preview {
  border: 1px solid var(--hairline);
  border-radius: 14px;
  overflow: hidden;
  background: #070a10;
}

.json-title {
  padding: 9px 12px;
  border-bottom: 1px solid var(--hairline);
  color: var(--muted-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
}

.json-title span:last-child {
  color: #626d80;
}

.json-preview pre {
  max-height: 170px;
  margin: 0;
  padding: 12px;
  overflow: auto;
  scrollbar-color: #323b4b transparent;
  scrollbar-width: thin;
}

.json-preview code {
  color: #abb7ca;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  line-height: 1.65;
  white-space: pre;
}

.toast {
  position: fixed;
  z-index: 20;
  right: 24px;
  bottom: 24px;
  max-width: min(360px, calc(100% - 48px));
  padding: 11px 14px;
  border: 1px solid rgba(96, 225, 169, 0.28);
  border-radius: 11px;
  opacity: 0;
  color: #dff9ed;
  background: rgba(18, 41, 34, 0.94);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.38);
  pointer-events: none;
  transform: translateY(10px);
  transition: 180ms ease;
  font-size: 11px;
}

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

.prompt-dialog {
  width: min(1040px, calc(100% - 40px));
  max-height: min(820px, calc(100vh - 40px));
  padding: 0;
  border: 1px solid var(--hairline-strong);
  border-radius: 20px;
  overflow: hidden;
  color: var(--text);
  background: #0b1019;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.58);
}

.prompt-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.prompt-dialog-header {
  padding: 20px 22px;
  border-bottom: 1px solid var(--hairline);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  background: #0e1420;
}

.prompt-dialog-header h2 {
  margin: 6px 0 4px;
  font-size: 20px;
}

.prompt-dialog-header p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.prompt-close-button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  color: var(--muted-strong);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.035);
  font-size: 22px;
  line-height: 1;
}

.prompt-close-button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.prompt-dialog-note {
  margin: 0;
  padding: 12px 22px;
  border-bottom: 1px solid var(--hairline);
  color: #8995a8;
  background: #090e17;
  font-size: 10px;
  line-height: 1.6;
}

.prompt-content-grid {
  max-height: calc(100vh - 190px);
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  overflow: auto;
  scrollbar-color: #323b4b transparent;
  scrollbar-width: thin;
}

.prompt-block {
  min-width: 0;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  overflow: hidden;
  background: #070a10;
}

.prompt-block-title {
  min-height: 58px;
  padding: 11px 12px;
  border-bottom: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.prompt-block-title span {
  color: #778296;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.prompt-block-title h3 {
  margin: 3px 0 0;
  font-size: 12px;
}

.copy-prompt-button {
  flex: 0 0 auto;
  padding: 6px 8px;
  border: 1px solid var(--hairline-strong);
  border-radius: 7px;
  color: var(--muted-strong);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.035);
  font-size: 8px;
}

.copy-prompt-button:hover {
  border-color: rgba(139, 168, 255, 0.52);
  color: #fff;
  background: rgba(108, 139, 224, 0.12);
}

.prompt-block pre {
  max-height: 510px;
  margin: 0;
  padding: 14px;
  overflow: auto;
  color: #b7c2d3;
  scrollbar-color: #323b4b transparent;
  scrollbar-width: thin;
}

.prompt-block code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

noscript {
  display: block;
  padding: 16px;
  color: #fff;
  background: #8e2d2d;
  text-align: center;
}

.list-workspace {
  width: min(1480px, calc(100% - 56px));
  margin: 0 auto 40px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #090d16;
}

.list-toolbar {
  min-height: 76px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #0c111b;
}

.list-toolbar h2 {
  margin: 5px 0 0;
  font-size: 18px;
}

.list-filter {
  width: min(300px, 100%);
  margin: 0;
}

.list-canvas {
  min-height: 540px;
  padding: 24px;
  background: #03050a;
}

.all-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 172px);
  justify-content: center;
  gap: 12px 8px;
}

.list-result-empty {
  margin: 80px 0;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

.list-loading {
  grid-column: 1 / -1;
  min-height: 210px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 1360px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .preview-section {
    border-right: 0;
    border-bottom: 1px solid var(--hairline);
  }

  .preview-stage {
    min-height: 320px;
  }

  .json-preview pre {
    max-height: 260px;
  }
}

@media (max-width: 820px) {
  .topbar,
  .workspace,
  .list-workspace {
    width: min(100% - 28px, 680px);
  }

  .topbar {
    padding-top: 28px;
    align-items: flex-start;
  }

  .summary {
    display: none;
  }

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

  .country-panel {
    border-right: 0;
    border-bottom: 1px solid var(--hairline);
  }

  .country-list {
    max-height: none;
    min-height: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 700px) {
  .topbar {
    flex-direction: column;
  }

  .topbar-actions,
  .page-nav {
    width: 100%;
  }

  .page-nav a {
    flex: 1;
    text-align: center;
  }

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

  .toolbar-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .prompt-open-button,
  .list-page-link {
    text-align: center;
  }

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

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

  .list-filter {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .topbar,
  .workspace,
  .list-workspace {
    width: calc(100% - 20px);
  }

  .brand-block p {
    font-size: 12px;
  }

  .country-list {
    grid-template-columns: 1fr;
  }

  .panel-toolbar,
  .preview-section,
  .config-section {
    padding: 18px;
  }

  .preview-stage {
    min-height: 292px;
    padding: 12px;
  }

  .preview-example {
    padding: 10px;
  }

  .detail-card {
    width: min(364px, calc(100vw - 70px));
  }

  .detail-logo {
    width: 70px;
    height: 45px;
  }

  .detail-name-row h4 {
    font-size: 17px;
  }

  .asset-strip {
    grid-template-columns: 1fr;
  }

  .asset-card {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
  }

  .asset-thumb {
    height: 52px;
    margin: 0;
  }

  .asset-dialog-content {
    grid-template-columns: 1fr;
  }

  .asset-dialog-preview {
    min-height: 280px;
  }

  .asset-dialog-download {
    margin-top: 14px;
  }

  .stop-row {
    grid-template-columns: 25px minmax(0, 1fr) 46px;
  }

  .copy-stop {
    grid-column: 2 / 4;
  }

  .list-toolbar,
  .list-canvas {
    padding: 16px 9px;
  }
}

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