:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --panel: #ffffff;
  --text: #172033;
  --muted: #5e6b82;
  --line: #dce4ef;
  --blue: #1d6fd6;
  --blue-dark: #1557a8;
  --green: #17a673;
  --soft-blue: #e9f3ff;
  --shadow: 0 18px 45px rgba(31, 49, 78, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

.page {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0;
}

.support-page {
  width: min(980px, calc(100% - 40px));
}

.language-switcher {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 28px;
}

.language-button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.language-button.active {
  border-color: rgba(29, 111, 214, 0.5);
  background: var(--soft-blue);
  color: var(--blue-dark);
}

.support-hero {
  margin-bottom: 28px;
}

.support-hero h1 {
  max-width: 780px;
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  margin-bottom: 28px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: end;
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(2.25rem, 7vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: 1.05rem;
}

.lede {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

.status-panel,
.panel,
.instruction-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.recommended {
  display: grid;
  gap: 18px;
}

.detected {
  margin: -6px 0 0;
  color: var(--muted);
}

.recommended-actions {
  display: grid;
  gap: 12px;
}

.big-button,
.small-button,
.toggle-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.big-button:hover,
.small-button:hover,
.toggle-button:hover {
  background: var(--blue-dark);
}

.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(29, 111, 214, 0.35);
  border-radius: 8px;
  color: var(--blue-dark);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.simple-steps {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.support-note p {
  color: var(--muted);
  line-height: 1.6;
}

.small-button {
  width: 100%;
  min-height: 44px;
  background: var(--soft-blue);
  color: var(--blue-dark);
}

.small-button:hover {
  background: #d9ebff;
}

.hidden-options {
  margin-bottom: 28px;
}

.toggle-button {
  width: 100%;
}

.other-options {
  display: grid;
  gap: 24px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.other-options[hidden] {
  display: none;
}

.option-group {
  display: grid;
  gap: 12px;
}

.option-group h2 {
  font-size: 1rem;
}

.compact-config {
  margin-bottom: 0;
}

.status-panel {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 10px 12px;
  align-items: center;
  padding: 20px;
  color: var(--muted);
}

.status-panel strong {
  grid-column: 2;
  color: var(--text);
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(23, 166, 115, 0.14);
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
}

.instructions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-bottom: 28px;
}

.panel,
.instruction-card {
  padding: 24px;
}

.section-title {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
}

.icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  background: var(--soft-blue);
  color: var(--blue);
  font-weight: 800;
}

.download-list {
  display: grid;
  gap: 12px;
}

.download-card,
.action-card {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.download-card:hover,
.action-card:hover {
  border-color: rgba(29, 111, 214, 0.42);
  box-shadow: 0 12px 28px rgba(31, 49, 78, 0.08);
  transform: translateY(-1px);
}

.download-card.primary,
.action-card.primary {
  border-color: rgba(29, 111, 214, 0.5);
  background: var(--soft-blue);
}

.download-card strong,
.download-card small,
.action-card strong,
.action-card small {
  display: block;
}

.download-card small,
.action-card small {
  margin-top: 4px;
  color: var(--muted);
}

.download-card em,
.action-card em {
  flex: 0 0 auto;
  color: var(--blue-dark);
  font-style: normal;
  font-weight: 700;
}

.quick-actions {
  margin-bottom: 28px;
}

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

.action-card {
  color: var(--text);
  text-decoration: none;
}

.command-grid {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.command-grid div {
  display: grid;
  gap: 6px;
}

.config-list {
  display: grid;
  gap: 14px;
  margin: 0 0 18px;
}

.config-list div {
  display: grid;
  gap: 6px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.config-list div:last-child {
  border-bottom: 0;
}

dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

dd {
  margin: 0;
}

code {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: #0b356d;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
}

.copy-button {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: white;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.copy-button:hover {
  background: var(--blue-dark);
}

.note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.55;
}

li::marker {
  color: var(--blue);
  font-weight: 800;
}

@media (max-width: 860px) {
  .hero,
  .grid,
  .support-layout,
  .instructions,
  .action-grid {
    grid-template-columns: 1fr;
  }

  .page {
    width: min(100% - 28px, 1120px);
    padding: 32px 0;
  }
}

@media (max-width: 520px) {
  .download-card,
  .action-card {
    align-items: flex-start;
    flex-direction: column;
  }
}
