/* Getting Started: a readable setup guide in the Server Rules visual language. */

.getting-page {
  --getting-blue: #6ab7ff;
  --getting-blue-bright: #8ac9ff;
  --getting-green: #55d7a7;
  --getting-text: #f1f6fd;
  --getting-muted: #a8b8cc;
  --getting-dim: #8296af;
  --getting-line: rgba(142, 177, 213, 0.17);
  --getting-panel: rgba(3, 13, 26, 0.93);
  width: min(1260px, 100%);
  min-height: calc(100vh - 200px);
  margin: 0 auto;
  padding: 34px 18px 72px;
  color: var(--getting-text);
}

.getting-shell {
  display: grid;
  gap: 23px;
}

.getting-hero {
  padding: 12px 0 23px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  align-items: center;
  gap: 34px;
  border-bottom: 1px solid var(--getting-line);
}

.getting-hero-copy,
.getting-hero-summary {
  min-width: 0;
}

.getting-eyebrow,
.section-kicker,
.step-kicker {
  color: var(--getting-blue);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.getting-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 11px;
}

.getting-hero h1 {
  margin: 0;
  color: #f5f8fd;
  font-size: clamp(2.2rem, 3.7vw, 3.35rem);
  font-weight: 850;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.getting-hero h1 span {
  color: var(--getting-blue-bright);
}

.getting-hero-copy > p {
  max-width: 720px;
  margin: 13px 0 0;
  color: #c0cee0;
  font-size: 0.98rem;
  line-height: 1.68;
}

.getting-hero-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.getting-button {
  min-height: 42px;
  padding: 9px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #edf7ff;
  font-size: 0.81rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.getting-button:hover {
  color: #fff;
}

.getting-button.primary {
  border-color: rgba(113, 184, 245, 0.36);
  background: rgba(38, 123, 198, 0.22);
}

.getting-button.primary:hover {
  border-color: rgba(138, 201, 255, 0.62);
  background: rgba(38, 123, 198, 0.34);
}

.getting-button.secondary {
  border-color: rgba(142, 177, 213, 0.18);
  background: rgba(255, 255, 255, 0.035);
  color: #d5e4f4;
}

.getting-button.secondary:hover {
  border-color: rgba(142, 177, 213, 0.34);
  background: rgba(255, 255, 255, 0.065);
}

.getting-button.discord {
  border-color: rgba(132, 145, 255, 0.27);
  background: rgba(88, 101, 242, 0.12);
  color: #d5d8ff;
}

.getting-button.compact {
  min-height: 37px;
  padding: 7px 11px;
  font-size: 0.75rem;
}

.getting-hero-summary,
.setup-guide-panel,
.connection-panel,
.client-note-panel,
.safety-panel,
.troubleshooting-panel,
.getting-support {
  border: 1px solid rgba(142, 177, 213, 0.16);
  border-radius: 10px;
  background: var(--getting-panel);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.15);
}

.getting-hero-summary {
  padding: 15px;
}

.hero-summary-lead {
  padding-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(142, 177, 213, 0.12);
}

.hero-summary-icon,
.support-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(106, 183, 255, 0.2);
  border-radius: 9px;
  background: rgba(46, 124, 196, 0.12);
  color: var(--getting-blue-bright);
  font-size: 1rem;
}

.hero-summary-icon > i,
.support-icon > i {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.hero-summary-icon > i::before,
.support-icon > i::before {
  display: block;
  line-height: 1;
  vertical-align: 0;
}

.hero-summary-lead strong,
.hero-summary-lead span {
  display: block;
}

.hero-summary-lead strong {
  color: #edf5ff;
  font-size: 0.88rem;
}

.hero-summary-lead div span {
  margin-top: 3px;
  color: var(--getting-muted);
  font-size: 0.72rem;
}

.getting-hero-summary dl {
  margin: 11px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.getting-hero-summary dl div {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(142, 177, 213, 0.1);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
}

.getting-hero-summary dl .wide {
  grid-column: 1 / -1;
}

.getting-hero-summary dt {
  color: #91a5bd;
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.getting-hero-summary dd {
  margin: 4px 0 0;
  overflow: hidden;
  color: #e4eef9;
  font-size: 0.83rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.setup-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.7fr);
  align-items: start;
  gap: 16px;
}

.setup-guide-panel,
.connection-panel,
.client-note-panel,
.troubleshooting-panel,
.getting-support {
  padding: 22px;
}

.setup-guide-panel {
  scroll-margin-top: 108px;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.section-heading h2,
.sidebar-heading h2,
.client-note-panel h2,
.getting-support h2 {
  margin: 4px 0 0;
  color: #f0f5fc;
  font-size: 1.22rem;
  font-weight: 820;
  letter-spacing: -0.02em;
}

.section-heading p {
  max-width: 700px;
  margin: 6px 0 0;
  color: var(--getting-muted);
  font-size: 0.84rem;
  line-height: 1.6;
}

.section-count {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid rgba(106, 183, 255, 0.18);
  border-radius: 999px;
  background: rgba(46, 124, 196, 0.08);
  color: #a8d2f7;
  font-size: 0.64rem;
  font-weight: 800;
  white-space: nowrap;
}

.setup-steps {
  margin-top: 18px;
  display: grid;
}

.setup-step {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px 36px minmax(0, 1fr);
  align-items: stretch;
  gap: 10px;
  padding-top: 15px;
  border-top: 1px solid rgba(142, 177, 213, 0.12);
}

.step-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-rail span {
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(106, 183, 255, 0.22);
  border-radius: 8px;
  background: rgba(46, 124, 196, 0.12);
  color: var(--getting-blue-bright);
  font-size: 0.64rem;
  font-weight: 850;
}

.step-rail i {
  width: 1px;
  min-height: 22px;
  flex: 1 1 auto;
  margin-top: 5px;
  background: rgba(106, 183, 255, 0.2);
}

.final-step .step-rail span {
  border-color: rgba(85, 215, 167, 0.23);
  background: rgba(85, 215, 167, 0.08);
  color: var(--getting-green);
}

.step-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(106, 183, 255, 0.17);
  border-radius: 8px;
  background: rgba(46, 124, 196, 0.09);
  color: #91c8f7;
  font-size: 0.9rem;
}

.final-step .step-icon {
  border-color: rgba(85, 215, 167, 0.17);
  background: rgba(85, 215, 167, 0.06);
  color: var(--getting-green);
}

.step-content {
  min-width: 0;
  padding: 0 0 16px;
}

.step-kicker {
  font-size: 0.61rem;
}

.step-content h3 {
  margin: 3px 0 0;
  color: #edf4fc;
  font-size: 0.99rem;
  font-weight: 800;
  line-height: 1.4;
}

.step-content > p {
  margin: 5px 0 0;
  color: #b0bfd1;
  font-size: 0.86rem;
  line-height: 1.62;
}

.step-content > p strong {
  color: #e1edf9;
  overflow-wrap: anywhere;
}

.step-actions {
  margin-top: 11px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.getting-link {
  color: #a3d1f7;
  font-size: 0.74rem;
  font-weight: 750;
  text-decoration: none;
}

.getting-link:hover {
  color: #d7edff;
}

.installation-choice,
.required-paths {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.installation-choice > div,
.required-paths > div {
  min-width: 0;
  padding: 9px 10px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  border: 1px solid rgba(142, 177, 213, 0.12);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.027);
}

.installation-choice > div > i {
  margin-top: 2px;
  flex: 0 0 auto;
  color: var(--getting-blue-bright);
}

.installation-choice > div:last-child > i {
  color: #a8bad0;
}

.installation-choice strong,
.installation-choice small {
  display: block;
}

.installation-choice strong {
  color: #dce8f6;
  font-size: 0.75rem;
}

.installation-choice small {
  margin-top: 3px;
  color: #9eafc4;
  font-size: 0.71rem;
  line-height: 1.45;
}

.copy-command {
  margin-top: 10px;
  padding: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(106, 183, 255, 0.19);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
}

.copy-command small,
.copy-command code {
  display: block;
}

.copy-command small {
  margin-bottom: 4px;
  color: #91a5bd;
  font-size: 0.63rem;
  font-weight: 750;
}

.copy-command code,
.primary-command code,
.config-item code,
.required-paths code,
.troubleshooting-grid code {
  color: #c1ddf7;
  font-family: Consolas, "Courier New", monospace;
  overflow-wrap: anywhere;
}

.copy-command code {
  font-size: 0.82rem;
  font-weight: 750;
}

.copy-button {
  min-height: 34px;
  padding: 7px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(106, 183, 255, 0.2);
  border-radius: 7px;
  background: rgba(46, 124, 196, 0.1);
  color: #abd4f8;
  font: inherit;
  font-size: 0.69rem;
  font-weight: 750;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.copy-button:hover {
  border-color: rgba(138, 201, 255, 0.43);
  background: rgba(46, 124, 196, 0.19);
  color: #e6f4ff;
}

.copy-button.copied {
  border-color: rgba(85, 215, 167, 0.26);
  background: rgba(85, 215, 167, 0.09);
  color: #78dfba;
}

.copy-button.icon-only {
  width: 34px;
  min-width: 34px;
  padding: 0;
}

.copy-button.icon-only.small {
  width: 30px;
  min-width: 30px;
  min-height: 30px;
}

.step-note {
  margin-top: 9px !important;
  padding: 8px 10px;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  border: 1px solid rgba(106, 183, 255, 0.1);
  border-radius: 7px;
  background: rgba(46, 124, 196, 0.06);
  color: #a7b9ce !important;
  font-size: 0.76rem !important;
}

.step-note i {
  margin-top: 2px;
  color: var(--getting-blue-bright);
}

.required-paths > div {
  display: block;
}

.required-paths span,
.required-paths code {
  display: block;
}

.required-paths span {
  color: #d3e1f2;
  font-size: 0.71rem;
  font-weight: 750;
}

.required-paths span i {
  margin-right: 5px;
  color: var(--getting-blue-bright);
}

.required-paths code {
  margin-top: 4px;
  overflow: hidden;
  color: #a8cbed;
  font-size: 0.69rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ready-callout {
  margin-top: 10px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(85, 215, 167, 0.16);
  border-radius: 8px;
  background: rgba(85, 215, 167, 0.055);
}

.ready-callout > i {
  color: var(--getting-green);
  font-size: 1rem;
}

.ready-callout strong,
.ready-callout small {
  display: block;
}

.ready-callout strong {
  color: #daf3e8;
  font-size: 0.76rem;
}

.ready-callout small {
  margin-top: 2px;
  color: #a3c0b5;
  font-size: 0.72rem;
  line-height: 1.45;
}

.setup-sidebar {
  display: grid;
  gap: 11px;
}

.connection-panel {
  padding: 17px;
}

.sidebar-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-heading > span {
  width: 35px;
  height: 35px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(106, 183, 255, 0.18);
  border-radius: 8px;
  background: rgba(46, 124, 196, 0.1);
  color: var(--getting-blue-bright);
}

.sidebar-heading h2 {
  font-size: 0.98rem;
}

.sidebar-heading .section-kicker {
  font-size: 0.6rem;
}

.primary-command {
  margin-top: 13px;
  padding: 11px;
  border: 1px solid rgba(106, 183, 255, 0.17);
  border-radius: 7px;
  background: rgba(46, 124, 196, 0.07);
}

.primary-command > span,
.config-item > span {
  color: #98acc2;
  font-size: 0.62rem;
  font-weight: 750;
}

.primary-command > div,
.config-item > div {
  min-width: 0;
  margin-top: 5px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
}

.primary-command code,
.config-item code {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.primary-command code {
  color: #c2dff8;
  font-size: 0.76rem;
  font-weight: 750;
}

.config-list {
  margin-top: 8px;
  display: grid;
  gap: 6px;
}

.config-item {
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid rgba(142, 177, 213, 0.1);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
}

.config-item code {
  color: #b2cde7;
  font-size: 0.66rem;
}

.client-note-panel {
  padding: 17px;
}

.client-note-icon {
  width: 35px;
  height: 35px;
  margin-bottom: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(106, 183, 255, 0.18);
  border-radius: 8px;
  background: rgba(46, 124, 196, 0.1);
  color: var(--getting-blue-bright);
}

.client-note-panel .section-kicker {
  font-size: 0.61rem;
}

.client-note-panel h2 {
  font-size: 0.98rem;
}

.client-note-panel p {
  margin: 7px 0 0;
  color: var(--getting-muted);
  font-size: 0.82rem;
  line-height: 1.58;
}

.client-note-panel > a {
  margin-top: 11px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--getting-blue-bright);
  font-size: 0.75rem;
  font-weight: 750;
  text-decoration: none;
}

.client-note-panel > a:hover {
  color: #e1f2ff;
}

.safety-panel {
  padding: 13px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border-color: rgba(85, 215, 167, 0.15);
  background: rgba(5, 25, 26, 0.88);
}

.safety-panel > span {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: rgba(85, 215, 167, 0.08);
  color: var(--getting-green);
}

.safety-panel strong {
  color: #dff4eb;
  font-size: 0.76rem;
}

.safety-panel p {
  margin: 3px 0 0;
  color: #a3bdb4;
  font-size: 0.74rem;
  line-height: 1.52;
}

.troubleshooting-panel {
  scroll-margin-top: 108px;
}

.troubleshooting-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.troubleshooting-grid details {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(142, 177, 213, 0.12);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
}

.troubleshooting-grid details[open] {
  border-color: rgba(106, 183, 255, 0.22);
  background: rgba(46, 124, 196, 0.055);
}

.troubleshooting-grid summary {
  min-height: 45px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #e0ebf8;
  font-size: 0.78rem;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}

.troubleshooting-grid summary::-webkit-details-marker {
  display: none;
}

.troubleshooting-grid summary > span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.troubleshooting-grid summary > span i {
  color: var(--getting-blue-bright);
}

.troubleshooting-grid summary > i {
  flex: 0 0 auto;
  color: #93a7bf;
  font-size: 0.66rem;
  transition: transform 0.18s ease;
}

.troubleshooting-grid details[open] summary > i {
  transform: rotate(180deg);
}

.troubleshooting-grid p {
  margin: 0;
  padding: 0 12px 12px;
  color: #b0bfd1;
  font-size: 0.82rem;
  line-height: 1.6;
}

.troubleshooting-grid code {
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(106, 183, 255, 0.08);
  color: #c2def8;
  overflow-wrap: anywhere;
}

.troubleshooting-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(106, 183, 255, 0.17);
  border-radius: 8px;
  background: rgba(46, 124, 196, 0.09);
  color: var(--getting-blue-bright);
}

.getting-support {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

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

.support-icon {
  color: var(--getting-blue-bright);
}

.getting-support h2 {
  font-size: 1.02rem;
}

.getting-support p {
  margin: 4px 0 0;
  color: var(--getting-muted);
  font-size: 0.79rem;
  line-height: 1.5;
}

.support-actions {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.getting-toast {
  --getting-green: #55d7a7;
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1100;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(85, 215, 167, 0.25);
  border-radius: 9px;
  background: rgba(5, 20, 28, 0.96);
  color: #dffaf0;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.3);
  font-size: 0.78rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.getting-toast i {
  color: var(--getting-green);
}

.getting-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.getting-toast[data-type="error"] {
  border-color: rgba(248, 113, 113, 0.3);
  color: #fee2e2;
}

.getting-toast[data-type="error"] i {
  color: #f87171;
}

.getting-page :is(a, button, summary):focus-visible {
  outline: 2px solid var(--getting-blue-bright);
  outline-offset: 3px;
}

@media (max-width: 1120px) {
  .getting-hero {
    grid-template-columns: minmax(0, 1fr) minmax(290px, 0.8fr);
    gap: 22px;
  }

  .setup-layout {
    grid-template-columns: 1fr;
  }

  .setup-sidebar {
    grid-template-columns: minmax(0, 1.2fr) minmax(230px, 0.8fr);
    align-items: start;
  }

  .safety-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .getting-page {
    padding: 24px 15px 54px;
  }

  .getting-hero {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .getting-hero-summary {
    max-width: 600px;
  }

  .setup-sidebar {
    grid-template-columns: 1fr;
  }

  .safety-panel {
    grid-column: auto;
  }

  .getting-support {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .getting-page {
    padding: 18px 12px 44px;
  }

  .getting-shell {
    gap: 18px;
  }

  .getting-hero {
    padding-bottom: 18px;
  }

  .getting-hero h1 {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  .getting-hero-copy > p {
    font-size: 0.91rem;
  }

  .getting-hero-actions,
  .support-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .getting-hero-actions .getting-button,
  .support-actions .getting-button {
    padding-inline: 8px;
    font-size: 0.74rem;
  }

  .setup-guide-panel,
  .connection-panel,
  .client-note-panel,
  .troubleshooting-panel,
  .getting-support {
    padding: 16px 13px;
  }

  .getting-hero-summary dl {
    grid-template-columns: 1fr;
  }

  .getting-hero-summary dl .wide {
    grid-column: auto;
  }

  .troubleshooting-grid,
  .installation-choice,
  .required-paths {
    grid-template-columns: 1fr;
  }

  .section-heading h2 {
    font-size: 1.1rem;
  }

  .section-count,
  .troubleshooting-icon {
    display: none;
  }

  .setup-step {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 9px;
  }

  .step-rail span {
    width: 30px;
    height: 30px;
  }

  .step-icon {
    display: none;
  }

  .step-content h3 {
    font-size: 0.94rem;
  }

  .step-content > p {
    font-size: 0.83rem;
  }

  .step-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .copy-command {
    grid-template-columns: 1fr;
  }

  .copy-command .copy-button {
    width: 100%;
  }

  .support-copy {
    align-items: flex-start;
  }

  .getting-toast {
    right: 14px;
    bottom: 14px;
    left: 14px;
    justify-content: center;
  }
}

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