:root {
  color-scheme: dark;
  --ink: #121416;
  --surface: #202428;
  --surface-deep: #171a1d;
  --surface-raised: #2a3035;
  --line: #424b51;
  --line-soft: #353d43;
  --text: #f2f3ee;
  --muted: #b1b9bd;
  --mint: #9be9c5;
  --mint-deep: #478d74;
  --gold: #ecd393;
  --coral: #e8a6b4;
  --danger: #f2a0a7;
  --shadow: #0c0e10;
  --mono: Consolas, 'Courier New', monospace;
}

* {
  box-sizing: border-box;
}
html {
  background: var(--ink);
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
  scrollbar-color: #535e61 var(--ink);
}
body {
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  background-color: var(--ink);
  background-image:
    linear-gradient(#ffffff03 1px, transparent 1px),
    linear-gradient(90deg, #ffffff03 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--text);
  font-family: 'Segoe UI', 'Trebuchet MS', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
img {
  max-width: 100%;
}
[hidden] {
  display: none !important;
}
::selection {
  background: #9be9c538;
  color: #fff;
}
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.container {
  width: min(100% - 48px, 980px);
  margin-inline: auto;
  padding-block: 18px 28px;
}
.site-header {
  position: sticky;
  z-index: 8;
  top: 12px;
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-bottom: 2px solid var(--mint-deep);
  background: #1c2023f5;
  box-shadow: 4px 4px 0 var(--shadow);
  backdrop-filter: blur(16px);
}
.site-header-brand {
  min-width: 0;
}
.eyebrow,
.panel-kicker {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pixel-spark {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  background: var(--mint);
  box-shadow: 3px 3px 0 #9be9c533;
}
.site-title {
  margin: 3px 0 0;
  font-size: 20px;
  font-weight: 750;
  line-height: 1.3;
}
.header-description {
  margin: 0;
  padding-left: 22px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}
.header-description::before {
  content: '//';
  margin-right: 8px;
  color: var(--mint);
}
.header-navigation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.top-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--mint);
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}
.top-link:hover {
  border-color: var(--mint-deep);
  background: var(--surface-raised);
}
.top-link .ui-icon {
  width: 15px;
  height: 15px;
}
.pixel-panel {
  background: var(--surface);
  border-block: 1px solid var(--line);
}
.connection-panel {
  position: relative;
  margin-bottom: 22px;
  padding: 22px;
  border-top: 2px solid var(--mint-deep);
}
.connection-panel::before,
.guide-panel::before {
  position: absolute;
  top: -2px;
  left: 22px;
  width: 28px;
  height: 2px;
  background: var(--mint);
  box-shadow: 32px 0 0 var(--gold);
  content: '';
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.panel-heading h2 {
  margin: 3px 0 0;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 700;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 290px;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-deep);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}
.status:has(.online) {
  border-color: #3d6051;
  background: #1b2b24;
  color: #b5dfc7;
}
.status:has(.offline) {
  border-color: #765255;
  background: #302124;
}
.status:hover {
  transform: translateY(-3px);
  box-shadow: 3px 3px 0 var(--shadow);
}
.dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  background: currentColor;
}
.checking {
  color: var(--gold);
}
.online {
  color: var(--mint);
}
.offline,
.status-text-offline {
  color: var(--danger);
}
.pulse-dot {
  animation: pixel-pulse 2s ease-in-out infinite;
}

.node-panel {
  border-block: 1px solid var(--line-soft);
}
.node-panel .section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}
.node-panel .section-title::before {
  width: 17px;
  height: 17px;
  background: var(--muted);
  mask: url('/assets/icons/server.svg') center / contain no-repeat;
  content: '';
}
.node-list {
  color: var(--mint);
  font-size: 12px;
}
.node-summary-status {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
  margin-left: auto;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.4;
}
.node-quota {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}
.node-quota-text,
.node-expiry {
  white-space: nowrap;
}
.node-quota-meter {
  display: block;
  width: 76px;
  height: 5px;
  overflow: hidden;
  border: 1px solid #445049;
  background: #131a17;
}
.node-quota-meter > span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--mint);
  transition: width 220ms ease;
}
.node-expiry {
  padding-left: 14px;
  border-left: 1px solid var(--line-soft);
  color: var(--gold);
}
.node-panel .summary-hint {
  padding-left: 14px;
  border-left: 1px solid var(--line-soft);
}
.node-table-container {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--surface-deep);
  scrollbar-color: #67746f #161b1a;
}
.node-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  table-layout: fixed;
  color: var(--muted);
  font-size: 12px;
}
.node-table th,
.node-table td {
  padding: 10px 12px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
}
.node-table th:last-child,
.node-table td:last-child {
  border-right: 0;
}
.node-table tbody tr:last-child td {
  border-bottom: 0;
}
.node-table th {
  background: #29312c;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-align: left;
  text-transform: uppercase;
}
.node-table th:nth-child(1) {
  width: 6.5%;
  text-align: center;
}
.node-table th:nth-child(2) {
  width: 34%;
}
.node-table th:nth-child(3),
.node-table th:nth-child(4) {
  width: 14%;
  text-align: center;
}
.node-table th:nth-child(5) {
  width: 31.5%;
  text-align: center;
}
.node-table td:nth-child(1),
.node-table td:nth-child(3),
.node-table td:nth-child(4) {
  text-align: center;
}
.node-header-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.node-tooltip {
  display: inline-flex;
  outline: 0;
  cursor: help;
}
.node-tooltip-mark {
  display: grid;
  width: 14px;
  height: 14px;
  place-items: center;
  border: 1px solid #8d9d91;
  border-radius: 50%;
  color: #dceae0;
  font-family: 'Segoe UI', sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  text-transform: none;
}
.node-tooltip:focus-visible .node-tooltip-mark {
  border-color: var(--mint);
  box-shadow: 0 0 0 2px #9be9c533;
}
.node-tooltip-popover {
  position: fixed;
  z-index: 50;
  width: min(240px, calc(100vw - 24px));
  padding: 8px 9px;
  transform: translateX(-50%);
  border: 1px solid #557164;
  border-radius: 3px;
  background: #16221c;
  box-shadow: 3px 3px 0 #0c120f;
  color: #d7e6db;
  font-family: 'Segoe UI', sans-serif;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
  pointer-events: none;
  text-align: left;
}
.node-tooltip-popover[hidden] {
  display: none;
}
.node-table tbody tr:hover td {
  background: #222a25;
}
.node-table .node-index {
  color: #84908c;
  font-family: var(--mono);
}
.node-table .node-name {
  color: #d7e0dd;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.node-table .node-note {
  color: #84908c;
}
.node-table .node-empty {
  padding: 18px 12px;
  border-right: 0;
  color: var(--muted);
  text-align: center;
}
.node-capability {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #53e8ae;
  cursor: default;
  opacity: 1;
  pointer-events: none;
  vertical-align: middle;
}
.node-capability.is-unknown {
  opacity: 0.75;
}
.import-panel {
  margin-top: 16px;
}
.import-panel-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.import-panel-heading > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.import-panel-heading .panel-kicker {
  order: 1;
  padding-left: 10px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}
.import-panel-heading h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
}
.subscription-verification {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 4px;
  background: #141b18;
}
.subscription-verification p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.verify-telegram-button {
  display: inline-flex;
  min-height: 38px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--mint);
  border-radius: 4px;
  background: var(--mint);
  color: #142a21;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--shadow);
  transition:
    background-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}
.verify-telegram-button:hover:not(:disabled) {
  background: #b5f4d7;
  transform: translateY(-2px);
  box-shadow: 3px 3px 0 var(--shadow);
}
.verify-telegram-button:active:not(:disabled) {
  transform: translate(1px, 1px);
  box-shadow: none;
}
.verify-telegram-button:disabled {
  cursor: wait;
  opacity: 0.58;
}
.verify-telegram-button[data-state='paused'] {
  border-color: #62686b;
  background: #393e40;
  color: #b7bdc0;
  box-shadow: none;
  opacity: 1;
  cursor: not-allowed;
}
.icon-link {
  --icon: url('/assets/icons/link.svg');
}
.subscription-row {
  display: flex;
  min-width: 0;
  align-items: stretch;
  gap: 10px;
}
.subscription-url {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #141b18;
  color: var(--mint);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.ui-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background: currentColor;
  mask: var(--icon) center / contain no-repeat;
}
.icon-copy {
  --icon: url('/assets/icons/copy.svg');
}
.icon-arrow-up {
  --icon: url('/assets/icons/arrow-up.svg');
}
.icon-server {
  --icon: url('/assets/icons/server.svg');
}
.icon-arrow-up-right {
  --icon: url('/assets/icons/arrow-up-right.svg');
}
.copied .icon-copy {
  --icon: url('/assets/icons/check.svg');
}
.copy-url-button,
.command-copy-button {
  position: relative;
  display: inline-flex;
  width: 42px;
  min-height: 42px;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--mint);
  border-radius: 4px;
  background: var(--mint);
  color: #142a21;
  box-shadow: 2px 2px 0 var(--shadow);
  transition:
    background-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}
.copy-url-button:hover,
.command-copy-button:hover {
  background: #b5f4d7;
  transform: translateY(-2px);
  box-shadow: 3px 3px 0 var(--shadow);
}
.copy-url-button:active,
.command-copy-button:active {
  transform: translate(1px, 1px);
  box-shadow: none;
}
.copy-url-button.copied,
.command-copy-button.copied {
  border-color: var(--gold);
  background: var(--gold);
}
.copy-feedback {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: calc(100% + 10px);
  width: max-content;
  max-width: 200px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #111618;
  color: var(--text);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
  clip-path: inset(50%);
  pointer-events: none;
}
:is(.copy-url-button, .command-copy-button):is(:hover, :focus-visible, .is-feedback)
  .copy-feedback {
  clip-path: none;
}
.client-picker {
  margin-top: 8px;
}
.client-picker-header {
  margin-bottom: 7px;
}
.client-platform-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 6px;
}
.client-platform-tab {
  min-height: 30px;
  padding: 5px 12px;
  border: 1px solid #34414c;
  border-radius: 4px;
  background: #1d242b;
  color: #cdd5db;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}
.client-platform-tab:hover {
  border-color: #5884d2;
  color: #e6eef8;
}
.client-platform-tab.is-selected {
  border-color: #4e9eea;
  background: #1e3245;
  color: #dceeff;
  box-shadow: inset 0 0 0 1px #2e70ae;
}
.client-platform-title {
  margin: 0 0 7px;
  color: #e4e9e8;
  font-size: 13px;
  font-weight: 650;
}
.client-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
}
.client-grid-compact {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.client-tile {
  display: flex;
  min-width: 0;
  min-height: 42px;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 4px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-raised);
  color: #e1e5e5;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  appearance: none;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}
.client-tile:hover {
  background: #333d3b;
  border-color: var(--mint);
  transform: translateY(-4px);
  box-shadow: 3px 4px 0 var(--shadow);
}
.client-tile:active {
  transform: translateY(-1px);
  box-shadow: 1px 1px 0 var(--shadow);
}
.client-tile.is-feedback {
  border-color: #74c49a;
  background: #294239;
}
.client-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border-radius: 4px;
  object-fit: contain;
}
.client-mark {
  display: grid;
  place-items: center;
  color: #f4f7f8;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0;
}
.client-mark-shadowrocket {
  background: #deebff;
  color: #496cc8;
}
.client-mark-streisand {
  background: #b879e8;
}
.client-mark-stash {
  background: #4d85e7;
}
.client-mark-quantumult {
  background: #256ec9;
}
.client-mark-loon {
  background: #a677e8;
}
.client-mark-clashmi {
  background: #5670d7;
}
.client-mark-v2rayn {
  background: #313942;
}
.client-mark-verge {
  background: #355da7;
}
.client-mark-nekoray {
  background: #bd8d48;
}
.client-mark-party {
  background: #738252;
}
.client-mark-clashx {
  background: #4e6ec9;
}
.client-mark-v2rayu {
  background: #526371;
}
.client-platform-status {
  min-height: 0;
  margin: 0;
  color: #9dd8b9;
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}
.client-platform-status:not(:empty) {
  min-height: 18px;
  margin-top: 6px;
}

.guide-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 20px;
  min-width: 0;
}
.guide-panel {
  --section-accent: var(--gold);
  position: relative;
  min-width: 0;
  max-width: 100%;
  padding: 22px;
  color: #c6cdcf;
  font-size: 14px;
  line-height: 1.7;
}
.guide-panel-wide {
  grid-column: 1 / -1;
}
.guide-panel::before {
  background: var(--section-accent);
  box-shadow: none;
}
#operating-principle {
  --section-accent: #9bcce1;
  background: #222d34;
  border-color: #3d5662;
}
#tiktok-registration {
  --section-accent: #ceb5df;
  background: #292630;
  border-color: #514957;
}
#price-comparison {
  --section-accent: var(--gold);
  background: #292b27;
  border-color: #545748;
}
#server-setup {
  --section-accent: var(--mint);
  background: #1e302b;
  border-color: #4c7b65;
}
#android-root {
  --section-accent: var(--coral);
  background: #2d292b;
  border-color: #59494e;
}
.section-title {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 17px;
  font-weight: 650;
  line-height: 1.4;
}
.section-title > span {
  margin-left: 4px;
  color: var(--section-accent, var(--mint));
  font-size: 12px;
  font-weight: 500;
}
.guide-panel > .section-title,
.guide-panel > details > summary > .section-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
}
.guide-panel > .section-title::before,
.guide-panel > details > summary > .section-title::before,
.setup-summary-title::before {
  display: inline-block;
  width: 26px;
  flex: 0 0 26px;
  color: var(--section-accent);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  vertical-align: middle;
}
#operating-principle > .section-title::before {
  content: '01';
}
#tiktok-registration > details > summary > .section-title::before {
  content: '02';
}
#price-comparison > details > summary > .section-title::before {
  content: '03';
}
.setup-summary-title::before {
  content: '04';
  align-self: center;
}
#android-root > .section-title::before {
  content: '05';
}
.guide-panel p {
  margin: 0;
}
.guide-panel strong {
  color: #e4e9e8;
  font-weight: 650;
}
.guide-panel h3 {
  margin: 16px 0 8px;
  color: var(--section-accent);
  font-size: 14px;
  font-weight: 650;
}
.guide-panel ul {
  margin: 0;
  padding-left: 20px;
}
.guide-panel li + li {
  margin-top: 7px;
}
.guide-panel li::marker {
  color: var(--section-accent);
  font-size: 12px;
}
.guide-panel p + ul {
  margin-top: 10px;
}
.guide-panel :is(p, li) {
  overflow-wrap: anywhere;
}
.guide-panel code {
  font-family: var(--mono);
  font-size: 0.9em;
}
.highlight {
  color: #c4ecd8;
  font-family: var(--mono);
  font-size: 0.92em;
  font-weight: 700;
}
.guide-panel a {
  color: var(--mint);
  text-underline-offset: 4px;
  text-decoration-color: #9be9c560;
  overflow-wrap: anywhere;
}
.guide-panel a:hover {
  color: #d0ffe9;
  text-decoration-color: currentColor;
}
#operating-principle > p {
  color: #c5d3d9;
  line-height: 1.7;
}
#tiktok-registration .collapsible-content > h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid #49424f;
}
#tiktok-registration li {
  padding-left: 3px;
}
.collapsible-panel {
  padding: 0;
}
.collapsible-panel details {
  min-width: 0;
}
.collapsible-panel summary {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 22px;
  border-bottom: 1px solid transparent;
  cursor: pointer;
  list-style: none;
  transition: background-color 160ms ease;
}
.collapsible-panel summary::-webkit-details-marker {
  display: none;
}
.collapsible-panel summary:hover {
  background: #ffffff04;
}
.collapsible-panel summary .section-title {
  margin: 0;
}
.collapsible-panel details[open] > summary {
  border-bottom-color: var(--line-soft);
}
.summary-hint {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  color: var(--muted);
}
.summary-hint::after {
  display: block;
  width: 18px;
  height: 18px;
  background: var(--section-accent, var(--muted));
  mask: url('/assets/icons/chevron-down.svg') center / contain no-repeat;
  content: '';
  transition: transform 180ms ease;
}
details[open] > summary .summary-hint::after {
  transform: rotate(180deg);
}
.collapsible-content {
  padding: 16px 22px 22px;
}
.node-panel summary {
  min-height: 48px;
  padding: 10px 10px;
}
.node-details-content {
  padding: 6px 10px 14px;
}

.setup-guide > details > summary {
  min-height: 64px;
  background: #9be9c504;
}
.setup-summary-title {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  min-width: 0;
  gap: 3px 8px;
}
.setup-summary-title > .section-title,
.setup-summary-copy {
  grid-column: 2;
}
.setup-summary-copy {
  color: #acbfb6;
  font-size: 12px;
}
.setup-summary-actions {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}
.setup-github-link,
.setup-cta {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #607568;
  border-radius: 4px;
  background: #26362e;
  color: var(--text);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 2px 2px 0 #101c16;
  transition:
    transform 170ms ease,
    background-color 170ms ease,
    box-shadow 170ms ease;
}
.guide-panel .setup-github-link {
  color: var(--text);
}
.setup-github-link img {
  width: 17px;
  height: 17px;
}
.setup-cta {
  border-color: var(--mint);
  background: var(--mint);
  color: #163d2e;
}
.setup-cta > span {
  font-size: 19px;
  line-height: 1;
  font-weight: 400;
  transition: transform 170ms ease;
}
.setup-guide details[open] .setup-cta > span {
  transform: rotate(45deg);
}
.setup-github-link:hover,
.setup-guide summary:is(:hover, :focus-visible) .setup-cta {
  transform: translateY(-3px);
  box-shadow: 3px 4px 0 #101c16;
}
.setup-github-link:hover {
  background: #344a3e;
}
.setup-guide summary:hover .setup-cta {
  background: #b5f4d7;
}
.setup-github-link:active,
.setup-guide summary:active .setup-cta {
  transform: translate(1px, 1px);
  box-shadow: none;
}
.setup-intro {
  color: #becbc5;
}
.host-type-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}
.host-type-tab {
  display: flex;
  min-width: 0;
  min-height: 68px;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid #435b4e;
  border-radius: 4px;
  background: #202e27;
  color: var(--text);
  text-align: left;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    transform 150ms ease;
}
.host-type-tab:hover {
  background: #2c4235;
  transform: translateY(-2px);
}
.host-type-tab.is-selected {
  border-color: var(--mint);
  background: #2e4638;
}
.host-type-number {
  display: grid;
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  place-items: center;
  border: 1px solid #516453;
  border-radius: 2px;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1;
}
.host-type-tab.is-selected .host-type-number {
  border-color: var(--mint);
  background: var(--mint);
  color: #1c3327;
}
.host-type-tab strong,
.host-type-tab small {
  display: block;
}
.host-type-tab strong {
  color: var(--text);
  font-size: 12px;
  line-height: 1.45;
}
.host-type-tab small {
  margin-top: 2px;
  color: #b0c1b7;
  font-size: 11px;
  line-height: 1.45;
}
.root-setup-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 16px;
}
.root-setup-overview section {
  min-width: 0;
}
.root-setup-overview section + section {
  padding-left: 18px;
  border-left: 1px solid #42594c;
}
.root-setup-overview .panel-kicker {
  margin-bottom: 7px;
}
.root-setup-overview p:last-child {
  color: #becbc5;
  font-size: 12px;
  line-height: 1.65;
}
.root-mode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.root-mode-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid #405e57;
  border-radius: 6px;
  background: #1d332f;
}
.root-mode-card-primary {
  border-color: #5d887b;
  background: #203b35;
}
.root-mode-card .panel-kicker {
  margin-bottom: 7px;
  color: #9fd5bd;
}
.root-mode-name {
  margin: 0;
  color: #edf4ee;
  font-size: 14px;
}
.root-mode-copy {
  margin: 8px 0 0;
  color: #becbc5;
  font-size: 12px;
  line-height: 1.65;
}
.root-mode-meta {
  margin: 10px 0 0;
  color: #a7c9b8;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.55;
}
.root-mode-separation {
  margin: 14px 0 0;
  padding: 4px 0 4px 12px;
  border-left: 2px solid #c5b36a;
  color: #d5c896;
  font-size: 12px;
  line-height: 1.65;
}
.root-mode-block {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #42594c;
}
.root-mode-block-primary {
  border-top-color: #5d887b;
}
.root-mode-block h4 {
  margin: 0;
  color: #e6eee9;
  font-size: 14px;
}
.root-mode-block > p:not(.setup-guide-callout) {
  margin: 6px 0 0;
  color: #b8c6bf;
  font-size: 12px;
  line-height: 1.65;
}
.root-mode-block .setup-steps {
  margin-top: 12px;
}
.root-mode-block .setup-guide-callout {
  margin-top: 14px;
  padding: 4px 0 4px 12px;
  border-left: 2px solid var(--mint-deep);
  color: #b1c9bb;
  font-size: 12px;
  line-height: 1.65;
}
.root-route-table {
  width: 100%;
  min-width: 0;
  margin-top: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-color: #78816d #1d332f;
}
.root-route-table table {
  min-width: 560px;
}
.root-route-table th:first-child,
.root-route-table td:first-child {
  position: static;
  width: 37%;
}
.root-route-table th:nth-child(2),
.root-route-table td:nth-child(2) {
  width: 42%;
}
.root-route-table th:nth-child(3),
.root-route-table td:nth-child(3) {
  width: 21%;
}
.install-command-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.install-command {
  min-width: 0;
}
.install-command-windows {
  grid-column: 1 / -1;
  padding: 10px 12px;
  border: 1px solid #44564d;
  border-radius: 4px;
  background: #17231e;
}
.install-command-windows p:last-child {
  color: #becbc5;
  font-size: 12px;
  line-height: 1.65;
}
.install-command-windows code {
  color: #b8dfcd;
}
.install-command .panel-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 11px;
}
.install-command .panel-kicker::before {
  width: 16px;
  height: 16px;
  background: currentColor;
  mask: url('/assets/icons/terminal.svg') center / contain no-repeat;
  content: '';
}
.command-copy-row {
  display: flex;
  min-width: 0;
  align-items: stretch;
  gap: 8px;
}
.command-copy-row code {
  flex: 1;
  min-width: 0;
  padding: 10px;
  border: 1px solid #44564d;
  border-radius: 4px;
  background: #17231e;
  color: #b8dfcd;
  font-size: 11px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.command-copy-button {
  width: 40px;
  flex-basis: 40px;
  min-height: 40px;
  align-self: flex-start;
  border-color: #607568;
  background: #2c4438;
  color: var(--mint);
}
.command-copy-button:hover {
  background: #3b5648;
}
.command-copy-button.copied {
  color: #243328;
}
.setup-content > h3 {
  margin-top: 20px;
}
.setup-mode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.setup-mode {
  appearance: none;
  display: flex;
  min-width: 0;
  min-height: 92px;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  border: 1px solid #435b4e;
  border-radius: 4px;
  background: #202e27;
  color: var(--text);
  text-align: left;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    transform 150ms ease;
}
.setup-mode:hover {
  background: #2c4235;
  transform: translateY(-2px);
}
.setup-mode.is-selected {
  border-color: var(--mint);
  background: #2e4638;
}
.setup-mode-number {
  display: grid;
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  place-items: center;
  border: 1px solid #516453;
  border-radius: 2px;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1;
}
.setup-mode.is-selected .setup-mode-number {
  border-color: var(--mint);
  background: var(--mint);
  color: #1c3327;
}
.setup-mode strong {
  display: block;
  color: var(--text);
  font-size: 12px;
  line-height: 1.7;
}
.setup-mode-description {
  display: block;
  margin-top: 4px;
  color: #b0c1b7;
  font-size: 11px;
  line-height: 1.55;
}
.setup-mode-guide {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #42594c;
}
.setup-guide-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.setup-guide-heading h4 {
  margin: 0;
  color: var(--text);
  font-size: 14px;
}
.setup-guide-heading p {
  color: #aabfb3;
  font-size: 12px;
  text-align: right;
}
.setup-steps {
  margin: 12px 0 0;
  padding-left: 20px;
}
.setup-steps li {
  padding-left: 5px;
}
.setup-mode-guide .setup-guide-callout {
  margin-top: 14px;
  padding: 4px 0 4px 12px;
  border-left: 2px solid var(--mint-deep);
  color: #b1c9bb;
  font-size: 12px;
  line-height: 1.65;
}
.setup-content .setup-note {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #42594c;
  color: #c9c3a9;
  font-size: 12px;
  line-height: 1.65;
}

.table-container {
  width: 100%;
  min-width: 0;
  margin-top: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-color: #78816d #252a23;
}
table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
  text-align: left;
}
th,
td {
  padding: 12px;
  border-bottom: 1px solid #454a3e;
  vertical-align: top;
}
th {
  background: #333a2e;
  color: var(--gold);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
}
td {
  background: #252b24;
  color: #c1c9bf;
  font-size: 13px;
  line-height: 1.65;
}
tbody tr:nth-child(even) td {
  background: #2b3129;
}
tbody tr:hover td {
  background: #323a2e;
}
th + th,
td + td {
  border-left: 1px solid #3b4336;
}
table th:first-child,
table td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  width: 16%;
}
table th:nth-child(2),
table td:nth-child(2),
table th:nth-child(3),
table td:nth-child(3) {
  width: 42%;
}
td:nth-child(3) strong {
  color: #d6e7bb;
}

.footer {
  position: relative;
  margin-top: 30px;
  padding: 24px 50px 4px 0;
  border-top: 1px solid var(--line-soft);
  color: #8f9b9f;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.9;
}
.footer > div + div {
  margin-top: 3px;
  color: #a4adb0;
}
.footer a {
  color: var(--gold);
  text-decoration: none;
}
.footer a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.back-to-top {
  position: absolute;
  top: 24px;
  right: 0;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
}
.back-to-top:hover {
  background: var(--surface-raised);
}
.telegram-float {
  position: fixed;
  z-index: 10;
  right: 24px;
  bottom: 22px;
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 10px;
  padding: 5px 5px 5px 13px;
  border: 1px solid #4f8195;
  border-radius: 4px;
  background: #202d34;
  box-shadow: 3px 3px 0 var(--shadow);
  color: #daeaf0;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 170ms ease,
    background-color 170ms ease;
}
.telegram-float:hover {
  background: #2c414b;
  transform: translateY(-3px);
}
.telegram-float-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 2px;
  background: #2687b2;
}
.telegram-float-icon img {
  width: 20px;
  height: 20px;
}
.telegram-float:active {
  transform: translate(1px, 1px);
}
.skip-link {
  position: fixed;
  z-index: 20;
  top: 8px;
  left: 16px;
  padding: 8px 14px;
  transform: translateY(-160%);
  background: var(--gold);
  color: #161a15;
  font-size: 14px;
}
.skip-link:focus {
  transform: translateY(0);
}
@keyframes pixel-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 32px, 980px);
    padding-top: 14px;
  }
  .site-header {
    top: 8px;
    margin-bottom: 20px;
    padding: 12px 18px;
  }
  .site-title {
    font-size: 18px;
  }
  .header-description {
    max-width: 160px;
    padding-left: 16px;
    font-size: 12px;
  }
  .connection-panel {
    padding: 18px;
  }
  .guide-panel {
    padding: 18px;
  }
  .collapsible-panel {
    padding: 0;
  }
  .collapsible-panel summary {
    padding: 14px 18px;
  }
  .collapsible-content {
    padding: 14px 18px 18px;
  }
  .node-panel summary {
    padding: 10px 8px;
  }
  .node-details-content {
    padding: 6px 8px 14px;
  }
  .node-panel summary {
    flex-wrap: wrap;
  }
  .node-summary-status {
    width: calc(100% - 28px);
    margin: 0 0 0 27px;
  }
  .connection-panel::before,
  .guide-panel::before {
    left: 18px;
  }
  .panel-heading h2 {
    font-size: 21px;
  }
  .client-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }
  .client-grid-compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .client-tile {
    min-height: 46px;
    font-size: 10px;
  }
  .guide-section {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .guide-panel-wide {
    grid-column: auto;
  }
  .setup-guide > details > summary {
    flex-wrap: wrap;
  }
  .setup-summary-title {
    flex: 1 1 100%;
  }
  .setup-summary-actions {
    margin-left: 34px;
  }
  .root-setup-overview {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .root-setup-overview section + section {
    padding-top: 14px;
    padding-left: 0;
    border-top: 1px solid #42594c;
    border-left: 0;
  }
  .root-mode-grid {
    grid-template-columns: 1fr;
  }
  .install-command-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .setup-guide-heading {
    flex-direction: column;
    gap: 3px;
  }
  .setup-guide-heading p {
    text-align: left;
  }
  .telegram-float {
    right: 16px;
    bottom: 16px;
  }
  .footer {
    margin-bottom: 54px;
  }
}

@media (max-width: 520px) {
  html {
    scroll-padding-top: 100px;
  }
  .container {
    width: calc(100% - 28px);
    padding-top: 12px;
  }
  .site-header {
    min-height: 72px;
    gap: 12px;
    padding: 13px 16px;
    margin-bottom: 22px;
  }
  .site-title {
    font-size: 16px;
  }
  .eyebrow {
    font-size: 10px;
  }
  .header-description {
    display: none;
  }
  .connection-panel {
    padding: 16px;
    margin-bottom: 18px;
  }
  .panel-heading {
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
  }
  .panel-heading h2 {
    font-size: 20px;
  }
  .status {
    max-width: 100%;
    min-height: 33px;
    padding: 6px 9px;
    font-size: 11px;
  }
  .node-panel summary {
    display: grid;
    grid-template-areas: 'title count' 'status status';
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 10px;
    row-gap: 8px;
  }
  .node-panel summary > .section-title {
    grid-area: title;
    min-width: 0;
  }
  .node-panel .summary-hint {
    grid-area: count;
    align-self: center;
    justify-self: end;
    margin: 0;
    padding-left: 0;
    border-left: 0;
  }
  .node-summary-status {
    display: grid;
    grid-area: status;
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
    min-width: 0;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
  }
  .node-quota {
    min-width: 0;
    gap: 6px;
  }
  .node-quota-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .node-quota-meter {
    width: 52px;
    flex: 0 0 52px;
  }
  .node-expiry {
    margin-left: 0;
    padding-left: 8px;
  }
  .node-table {
    min-width: 590px;
    font-size: 11px;
  }
  .node-table th,
  .node-table td {
    padding: 9px 10px;
  }
  .subscription-verification {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }
  .verify-telegram-button {
    width: 100%;
  }
  .subscription-row {
    gap: 8px;
  }
  .subscription-url {
    padding: 10px;
    font-size: 11px;
  }
  .copy-url-button {
    width: 40px;
    flex-basis: 40px;
  }
  .client-grid {
    gap: 8px;
  }
  .client-platform-tabs {
    gap: 5px;
  }
  .client-platform-tab {
    min-height: 30px;
    padding-inline: 10px;
    font-size: 11px;
  }
  .client-tile {
    min-height: 46px;
    padding: 5px 3px;
    gap: 5px;
    font-size: 10px;
  }
  .client-icon {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
  }
  .guide-panel {
    padding: 16px;
    font-size: 13px;
    line-height: 1.7;
  }
  .collapsible-panel {
    padding: 0;
  }
  .connection-panel::before,
  .guide-panel::before {
    left: 16px;
  }
  .section-title {
    font-size: 16px;
  }
  .section-title > span {
    font-size: 11px;
  }
  .guide-panel > .section-title,
  .guide-panel > details > summary > .section-title {
    gap: 3px 6px;
  }
  .guide-panel > .section-title::before,
  .guide-panel > details > summary > .section-title::before {
    width: 21px;
    flex-basis: 21px;
  }
  .collapsible-panel summary {
    min-height: 54px;
    gap: 12px;
    padding: 14px 16px;
  }
  .collapsible-content {
    padding: 14px 16px 18px;
  }
  .node-panel summary {
    min-height: 48px;
    padding: 10px 8px;
  }
  .node-details-content {
    padding: 6px 8px 12px;
  }
  .setup-summary-title {
    grid-template-columns: 21px minmax(0, 1fr);
    gap: 4px 6px;
  }
  .setup-summary-copy {
    font-size: 11px;
  }
  .setup-summary-actions {
    margin-left: 27px;
  }
  .setup-github-link,
  .setup-cta {
    min-height: 44px;
    padding-inline: 12px;
    font-size: 11px;
  }
  .setup-mode {
    min-height: 62px;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px 4px;
    text-align: center;
  }
  .host-type-tab {
    min-height: 60px;
    padding: 8px;
  }
  .host-type-tab small {
    display: none;
  }
  .setup-mode strong {
    font-size: 10px;
    line-height: 1.5;
  }
  .setup-mode-number {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
    font-size: 10px;
  }
  .setup-mode-description {
    display: none;
  }
  .root-mode-card {
    padding: 12px;
  }
  .root-route-table table {
    min-width: 520px;
  }
  .setup-guide-heading p {
    font-size: 11px;
  }
  .command-copy-row code {
    font-size: 10px;
  }
  .table-container {
    margin-top: 12px;
  }
  table {
    min-width: 580px;
  }
  th,
  td {
    padding: 10px;
    font-size: 12px;
  }
  .setup-guide > details > summary {
    display: grid;
    grid-template-areas: 'setup-title setup-actions';
    grid-template-columns: minmax(0, 1fr) 36px;
    align-items: center;
    flex-wrap: nowrap;
  }
  .setup-summary-title {
    grid-area: setup-title;
    width: auto;
    min-width: 0;
  }
  .setup-summary-actions {
    display: flex;
    grid-area: setup-actions;
    margin: 0;
  }
  .setup-github-link {
    width: 36px;
    min-width: 36px;
    min-height: 36px;
    height: 36px;
    padding: 0;
  }
  .setup-github-link > span {
    display: none;
  }
  .setup-github-link img {
    width: 18px;
    height: 18px;
  }
  .footer {
    margin-top: 22px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.7;
  }
  .telegram-float {
    right: 14px;
    min-height: 44px;
    padding: 4px;
    border-radius: 4px;
  }
  .telegram-float-icon {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }
  .telegram-float-label {
    position: absolute;
    right: calc(100% + 10px);
    width: max-content;
    padding: 5px 9px;
    border: 1px solid #4f8195;
    border-radius: 4px;
    background: #202d34;
    opacity: 0;
    pointer-events: none;
  }
  .telegram-float:is(:hover, :focus-visible) .telegram-float-label {
    opacity: 1;
  }
}

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