:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-secondary: #f5f5f7;
  --panel: #ffffff;
  --line: #d2d2d7;
  --line-subtle: #e5e5ea;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #aeaeb2;
  --accent: #1d1d1f;
  --accent-hover: #000000;
  --danger: #dc2626;
  --danger-hover: #b91c1c;
  --ok: #1d1d1f;
  --radius: 10px;
  --radius-sm: 6px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1c1e;
    --bg-secondary: #2c2c2e;
    --panel: #2c2c2e;
    --line: #38383a;
    --line-subtle: #2c2c2e;
    --text: #f5f5f7;
    --text-secondary: #98989d;
    --text-tertiary: #636366;
    --accent: #f5f5f7;
    --accent-hover: #ffffff;
    --danger: #ef4444;
    --danger-hover: #f87171;
    --ok: #f5f5f7;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.47059;
  letter-spacing: -0.022em;
}

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: none; }
button, input, textarea { font: inherit; }

.container { width: min(980px, calc(100vw - 48px)); margin: 0 auto; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line-subtle);
  background: var(--bg);
  flex-wrap: wrap;
}
.nav-left { display: flex; align-items: center; gap: 24px; justify-content: flex-start; flex-wrap: wrap; }
.nav-right {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.nav a, .nav .btn { color: var(--text-secondary); font-size: 13px; font-weight: 400; }
.nav a:hover { color: var(--text); text-decoration: none; }
.nav .btn { font-weight: 500; }
.nav .btn-primary { color: var(--bg) !important; }
.nav .nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: background 0.1s ease, border-color 0.1s ease, color 0.1s ease;
}
.nav .nav-link:hover {
  background: var(--bg-secondary);
  border-color: var(--line-subtle);
  color: var(--text);
}
.nav .nav-link[aria-current='page'],
.nav .btn[aria-current='page'] {
  background: var(--bg-secondary);
  border-color: var(--line-subtle);
  color: var(--text) !important;
  font-weight: 600;
}
.brand { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-weight: 600; font-size: 15px; color: var(--text) !important; letter-spacing: -0.01em; }
.brand-icon {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 4px;
}
.brand-text { display: inline; }
.brand-wordmark {
  display: none;
  width: 112px;
  height: auto;
}

@media (max-width: 860px) {
  .nav {
    flex-wrap: wrap;
    gap: 0;
    padding: 10px 16px;
    position: relative;
  }
  .nav-left {
    width: 100%;
    position: relative;
    justify-content: center;
    gap: 0;
    z-index: 2;
  }
  .brand {
    gap: 0;
    padding: 8px 10px;
  }
  .brand-icon {
    display: none;
  }
  .brand-text {
    display: none;
  }
  .brand-wordmark {
    display: block;
    width: clamp(96px, 28vw, 132px);
  }
  .nav .nav-link.nav-link-desktop,
  .nav .nav-right.nav-right-desktop {
    display: none !important;
  }
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  transition: background 0.1s ease;
}
.nav-hamburger:hover {
  background: var(--bg-secondary);
}
.nav-hamburger-line {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.15s ease;
}
.nav-hamburger-line.open:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-hamburger-line.open:nth-child(2) {
  opacity: 0;
}
.nav-hamburger-line.open:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.nav-mobile-menu {
  display: none;
  width: 100%;
  flex-direction: column;
  gap: 6px;
  padding: 12px 0 4px;
  border-top: 1px solid var(--line-subtle);
}
.nav-mobile-menu.open {
  display: flex;
}
.nav-mobile-menu .nav-link {
  width: 100%;
  justify-content: center;
  font-size: 14px;
  padding: 8px 10px;
}
.nav-mobile-actions {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line-subtle);
  margin-top: 4px;
}

.nav-mobile-actions .account-dropdown {
  right: auto;
  left: 0;
}

.nav-right-mobile {
  display: none;
}

@media (max-width: 860px) {
  .nav-hamburger {
    display: flex;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
  }

  .nav-right-mobile {
    display: flex;
    align-items: center;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
  }

  .nav-mobile-menu.open {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 1;
    width: 100vw;
    height: 100dvh;
    margin: 0;
    padding: 24px;
    border-top: none;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    overflow-y: auto;
  }

  .nav-mobile-menu.open .nav-link {
    width: auto;
    min-width: 160px;
    font-size: 20px;
    padding: 14px 20px;
  }

  .nav-mobile-menu.open .nav-mobile-actions {
    width: 100%;
    max-width: 300px;
    margin-top: 18px;
    padding-top: 22px;
  }

  .nav-mobile-menu.open .nav-mobile-actions .btn {
    width: 100%;
  }
}

h1 {
  font-size: 48px;
  line-height: 1.083;
  font-weight: 700;
  letter-spacing: -0.003em;
  margin: 0 0 8px;
}
h2 {
  font-size: 32px;
  line-height: 1.125;
  font-weight: 650;
  letter-spacing: -0.003em;
  margin: 0 0 6px;
}
h3 {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
}
p { color: var(--text-secondary); margin: 0; }
.lede { font-size: 18px; line-height: 1.529; color: var(--text-secondary); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 980px;
  padding: 6px 14px;
  font-size: 13px;
  line-height: 1.47059;
  font-weight: 500;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  transition: all 0.1s ease;
  min-height: 30px;
  white-space: nowrap;
}
.btn:hover { background: var(--bg-secondary); border-color: var(--text-tertiary); text-decoration: none; }
.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-danger {
  background: transparent;
  color: var(--danger);
  border-color: var(--line);
}
.btn-danger:hover { background: var(--bg-secondary); color: var(--danger-hover); border-color: var(--text-tertiary); }
.btn:disabled { opacity: 0.4; cursor: default; pointer-events: none; }
.btn-small { padding: 3px 10px; min-height: 26px; font-size: 12px; }

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}
.card-inner { padding: 24px; }

.hero {
  padding: 80px 24px 60px;
  text-align: center;
  max-width: 728px;
  margin: 0 auto;
}
.hero h1 { font-size: 56px; }
.hero .lede { margin-bottom: 32px; }
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-actions .btn { font-size: 15px; padding: 10px 22px; min-height: 40px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 40px 0 60px;
}
.feature-card {
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.feature-card .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 auto 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  font-size: 18px;
}

.dashboard { padding: 24px 0 48px; }
.dashboard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.dashboard-head h1 { font-size: 40px; }
.panel-grid { display: grid; grid-template-columns: 320px 1fr; gap: 16px; align-items: start; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.panel-body { padding: 20px; }
.stack { display: grid; gap: 12px; }

.license-list { display: grid; gap: 12px; }
.license-card {
  padding: 16px;
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius);
  background: var(--bg);
}
.license-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 980px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid var(--line-subtle);
}
.badge.active { color: var(--text); }
.mono { font-family: "SF Mono", SFMono-Regular, ui-monospace, Menlo, Consolas, monospace; font-size: 12px; word-break: break-all; }
.license-code {
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  padding: 10px;
  max-height: 120px;
  overflow: auto;
  font-size: 11px;
}

.form { display: grid; gap: 10px; }
.form { text-align: center; }
.label { font-size: 11px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; }
.input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  text-align: center;
  outline: none;
  padding: 10px 12px;
  font-size: 14px;
  transition: border-color 0.1s ease;
}
.input:focus { border-color: var(--accent); }
.input::placeholder { color: var(--text-tertiary); }
.help { font-size: 12px; color: var(--text-secondary); }
.error { color: var(--danger); font-size: 12px; }
.success { color: var(--ok); font-size: 12px; }
.empty { text-align: center; padding: 32px 20px; color: var(--text-secondary); border: 1px dashed var(--line); border-radius: var(--radius); }
.divider { height: 1px; background: var(--line-subtle); margin: 12px 0; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: center; }

.footer {
  padding: 28px 0;
  color: var(--text-secondary);
  font-size: 12px;
  border-top: 1px solid var(--line-subtle);
  text-align: center;
}

.result-page {
  text-align: center;
  padding: 100px 0;
  max-width: 560px;
  margin: 0 auto;
}
.result-page h1 { font-size: 40px; margin-bottom: 12px; }
.result-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 20px;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--line-subtle);
}

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg-secondary);
}

@media (prefers-color-scheme: dark) {
  .auth-page {
    background: var(--bg);
  }
}

.section-content { padding: 40px 0; text-align: center; }
.section-content h1,
.section-content h2,
.section-content h3,
.section-content p,
.section-content ol,
.section-content ul,
.section-content pre { text-align: center; }
.section-content ol,
.section-content ul {
  list-style-position: inside;
  padding-left: 0;
}
.section-content .download-options,
.section-content .card,
.section-content .stack { text-align: center; }
.section-content pre code { display: inline-block; text-align: left; }

.dashboard-sections { display: flex; flex-direction: column; gap: 20px; margin-top: 24px; }
.dashboard-sections { width: min(760px, 100%); margin-inline: auto; }
.dashboard-section { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.dashboard-section-header {
  display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
  padding: 16px 20px; cursor: pointer; user-select: none; text-align: center;
  transition: background 0.1s ease;
}
.dashboard-section-header:hover { background: var(--bg-secondary); }
.dashboard-section-header h3 { margin: 0; font-size: 15px; font-weight: 600; }
.dashboard-section-header .chevron { color: var(--text-tertiary); font-size: 14px; transition: transform 0.15s ease; }
.dashboard-section-header .chevron.open { transform: rotate(180deg); }
.dashboard-section-body { padding: 0 20px 20px; text-align: center; }
.dashboard-section-body.closed { display: none; }

.license-card-summary {
  display: flex; align-items: center; gap: 14px; padding: 12px 0;
  border-bottom: 1px solid var(--line-subtle); cursor: pointer; user-select: none;
  transition: background 0.1s ease;
}
.license-card-summary:hover { background: var(--bg-secondary); margin: 0 -20px; padding: 12px 20px; }
.license-card-summary .mono { font-size: 13px; color: var(--text); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.license-card-summary .chevron { color: var(--text-tertiary); font-size: 12px; transition: transform 0.15s ease; flex-shrink: 0; }
.license-card-summary .chevron.open { transform: rotate(180deg); }
.license-card-body { padding-top: 16px; display: grid; gap: 16px; text-align: center; }
.license-card-body.closed { display: none; }
.license-detail-row { display: grid; gap: 4px; justify-items: center; }
.license-detail-row .label { margin-bottom: 0; }

.license-code-block {
  border: 1px solid var(--line-subtle); border-radius: var(--radius-sm);
  background: var(--bg-secondary); padding: 12px; max-height: 100px; overflow: auto;
  font-size: 11px; word-break: break-all;
}

.license-code,
.license-code-block { text-align: center; }

.purchase-options, .activation-options { display: grid; gap: 8px; }
.purchase-option, .activation-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  cursor: pointer;
}
.purchase-option.selected, .activation-option.selected { border-color: var(--text); background: var(--bg-secondary); }
.purchase-option input, .activation-option input { margin: 3px 0 0; accent-color: var(--accent); }
.purchase-option strong, .activation-option strong { display: block; font-size: 14px; }
.purchase-option small, .activation-option small { display: block; margin-top: 2px; color: var(--text-secondary); font-size: 12px; }
.license-plan { color: var(--text-secondary); font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.activation-page { min-height: 100vh; display: grid; place-content: center; gap: 22px; padding: 28px 20px; background: var(--bg-secondary); }
.activation-page .auth-brand { justify-self: center; }
.activation-card { width: min(560px, calc(100vw - 40px)); padding: 28px; }
.activation-card h1 { font-size: 34px; margin-top: 4px; }
.activation-card h2 { font-size: 22px; }
.activation-eyebrow { color: var(--text-secondary); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.activation-machine { margin: 18px 0; padding: 11px; overflow-wrap: anywhere; border: 1px solid var(--line-subtle); border-radius: var(--radius-sm); background: var(--bg-secondary); font-size: 12px; text-align: center; }
.activation-card .btn { width: 100%; justify-content: center; margin-top: 16px; }

.dashboard-empty {
  text-align: center; padding: 40px 20px; color: var(--text-secondary);
  border: 1px dashed var(--line); border-radius: var(--radius);
}

.download-options {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 28px 0;
}
.download-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  text-align: center;
  min-width: 260px;
  transition: border-color 0.1s ease;
}
.download-card:hover { border-color: var(--accent); }
.download-card .icon {
  font-size: 36px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.download-card h3 { margin-bottom: 4px; }
.download-card p { font-size: 13px; margin-bottom: 20px; }

.docs-page {
  padding: 0 0 56px;
}
.docs-layout {
  display: grid;
  grid-template-columns: minmax(260px, 280px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  text-align: left;
}

@media (max-width: 780px) {
  .docs-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .docs-sidebar {
    position: static;
  }
}
.docs-sidebar {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 16px;
  align-self: start;
}
.docs-sidebar-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 16px;
}
.docs-sidebar-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.docs-sidebar-title {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 600;
  color: var(--text);
}
.docs-search-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}
.docs-search-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.docs-search {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  text-align: left;
  outline: none;
  padding: 10px 12px;
  transition: border-color 0.1s ease;
}
.docs-search:focus { border-color: var(--accent); }
.docs-search::placeholder { color: var(--text-tertiary); }
.docs-search-clear { flex-shrink: 0; }
.docs-sidebar-note {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--text-tertiary);
}
.docs-overview { display: grid; gap: 6px; }
.docs-overview-link {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  color: var(--text-secondary);
  transition: background 0.1s ease, border-color 0.1s ease, color 0.1s ease;
}
.docs-overview-link:hover {
  background: var(--bg-secondary);
  border-color: var(--line-subtle);
  color: var(--text);
}
.docs-overview-link[aria-current='location'] {
  background: var(--bg-secondary);
  border-color: var(--line-subtle);
  color: var(--text);
  box-shadow: inset 3px 0 0 var(--accent);
}
.docs-overview-link[aria-current='location'] span {
  color: var(--text);
}
.docs-overview-link[aria-current='location'] small {
  color: var(--text-secondary);
}
.docs-overview-link span {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}
.docs-overview-link small {
  color: var(--text-tertiary);
  line-height: 1.4;
}
.docs-overview-empty {
  margin: 0;
  color: var(--text-tertiary);
  font-size: 13px;
  line-height: 1.5;
}
.docs-quick-links {
  display: grid;
  gap: 8px;
}
.docs-quick-links .btn {
  width: 100%;
  justify-content: center;
}
.docs-article {
  min-width: 0;
  text-align: left;
}
.docs-intro {
  padding-bottom: 24px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line-subtle);
  text-align: left;
}
.docs-intro h1 {
  font-size: 40px;
  line-height: 1.1;
  margin-bottom: 10px;
}
.docs-hero-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.docs-intro .lede {
  max-width: 760px;
  text-align: left;
}
.docs-section {
  scroll-margin-top: 24px;
  padding-bottom: 24px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line-subtle);
  text-align: left;
}
.docs-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}
.docs-section-head { margin-bottom: 12px; }
.docs-section h2 {
  font-size: 26px;
  line-height: 1.2;
  margin-bottom: 4px;
}
.docs-section-summary {
  font-size: 14px;
  color: var(--text-secondary);
}
.docs-section p,
.docs-section li {
  text-align: left;
}
.docs-section p + p { margin-top: 12px; }
.docs-section h3 { margin-top: 20px; }
.docs-section ol,
.docs-section ul {
  padding-left: 20px;
  list-style-position: outside;
}
.docs-section li { margin-bottom: 6px; }
.docs-section code,
.docs-empty code {
  font-family: "SF Mono", SFMono-Regular, ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px;
  background: var(--bg-secondary);
  padding: 2px 6px;
  border-radius: 4px;
}
.docs-section pre {
  background: var(--bg-secondary);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-sm);
  padding: 16px;
  overflow-x: auto;
  margin: 16px 0;
}
.docs-section pre code {
  display: block;
  text-align: left;
  background: none;
  padding: 0;
  border-radius: 0;
}
.docs-empty {
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--bg-secondary);
  text-align: left;
}
.docs-empty h2 {
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: 8px;
}
.docs-empty p { max-width: 640px; }

.problem-report-form {
  gap: 10px;
  text-align: left;
}
.problem-report-message {
  min-height: 138px;
  resize: vertical;
  text-align: left;
}
.problem-report-counter {
  margin-top: -4px;
  text-align: right;
  font-size: 11px;
  color: var(--text-tertiary);
}
.problem-report-captcha {
  display: grid;
  gap: 8px;
  padding-top: 4px;
}
.turnstile-widget-shell {
  display: flex;
  justify-content: flex-start;
}
.turnstile-widget {
  min-height: 78px;
}

.docs-back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 50;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: opacity 0.2s ease, transform 0.2s ease;
  animation: docsBackToTopIn 0.2s ease;
}
.docs-back-to-top:hover {
  background: var(--bg-secondary);
  border-color: var(--text-tertiary);
  transform: translateY(-2px);
}
@keyframes docsBackToTopIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.docs-quick-links-mobile {
  display: none;
}

@media (max-width: 960px) {
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar { position: static; }

  .docs-sidebar .docs-sidebar-card:last-child {
    display: none;
  }
  .docs-quick-links-mobile {
    display: block;
    padding: 0 24px 32px;
  }
  .docs-back-to-top {
    bottom: 16px;
    right: 16px;
  }
}

.problem-report-sidebar .docs-sidebar-card:last-child {
  display: block;
}

@media (max-width: 960px) {
  .problem-report-sidebar .docs-sidebar-card:last-child {
    display: block;
  }
}

.problem-report-list {
  display: grid;
  gap: 20px;
}
.problem-report-card {
  text-align: left;
}
.problem-report-card + .problem-report-card {
  padding-top: 20px;
  border-top: 1px solid var(--line-subtle);
}
.problem-report-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.problem-report-card-kicker {
  margin: 0 0 3px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.problem-report-card-date {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.problem-report-card-message {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}
.problem-report-like-button {
  border: 1px solid var(--line);
  border-radius: 980px;
  padding: 6px 12px;
  background: var(--bg-secondary);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.1s ease, color 0.1s ease, border-color 0.1s ease;
}
.problem-report-like-button:hover {
  background: var(--line-subtle);
}
.problem-report-like-button.liked {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}
.problem-report-like-button:disabled {
  opacity: 0.75;
  cursor: default;
}
.problem-report-sort-group {
  display: grid;
  gap: 8px;
}
.problem-report-sort-button {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text-secondary);
  text-align: left;
  padding: 10px 12px;
  display: grid;
  gap: 2px;
  cursor: pointer;
  transition: background 0.1s ease, border-color 0.1s ease, color 0.1s ease;
}
.problem-report-sort-button:hover {
  background: var(--bg-secondary);
  border-color: var(--line-subtle);
  color: var(--text);
}
.problem-report-sort-button.active {
  background: var(--bg-secondary);
  border-color: var(--line-subtle);
  color: var(--text);
  box-shadow: inset 3px 0 0 var(--accent);
}
.problem-report-sort-button span {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}
.problem-report-sort-button small {
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-tertiary);
}
.problem-report-feedback {
  min-height: 18px;
}
.problem-report-feedback p {
  margin: 0;
}

.plugin-grid {
  display: grid;
  gap: 16px;
}
.plugin-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 24px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
  -webkit-user-select: none;
}
.plugin-card:hover {
  border-color: var(--accent);
}
.plugin-card-dragging {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent);
  opacity: 0.85;
}
.plugin-card-header {
  margin-bottom: 12px;
}
.plugin-card-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}
.plugin-card-name {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}
.plugin-badge-official {
  background: var(--bg-secondary);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}
.plugin-badge-community {
  background: var(--bg-secondary);
  border-color: var(--line);
  color: var(--text-secondary);
  font-weight: 600;
}
.plugin-card-meta {
  font-size: 13px;
  color: var(--text-tertiary);
}
.plugin-card-desc {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 680px;
}
.plugin-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.plugin-drag-zone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 2px dashed var(--line);
  border-radius: 980px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  transition: border-color 0.1s ease, color 0.1s ease, background 0.1s ease, opacity 0.2s ease;
  -webkit-user-drag: element;
}
.plugin-drag-zone:hover {
  border-color: var(--accent);
  color: var(--text);
  background: var(--bg-secondary);
}
.plugin-drag-zone:active {
  cursor: grabbing;
  border-color: var(--accent);
  color: var(--accent);
  background: var(--bg-secondary);
}
.plugin-drag-zone:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.plugin-drag-zone svg {
  flex-shrink: 0;
}
.plugin-copy-btn {
  flex-shrink: 0;
}
.plugin-install-steps {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}
.plugin-install-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
}
.plugin-step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  color: var(--text-secondary);
}
.plugin-install-step strong {
  display: block;
  margin-bottom: 4px;
}
.plugin-install-step p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}
.plugin-install-step code {
  font-family: "SF Mono", SFMono-Regular, ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px;
  background: var(--panel);
  padding: 1px 5px;
  border-radius: 4px;
}

.reports-page {
  min-height: 100vh;
  overflow-x: clip;
  padding-bottom: 56px;
}
.reports-page-shell {
  width: min(1120px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 40px 0 24px;
  min-width: 0;
}
.reports-page-shell > * {
  min-width: 0;
  max-width: 100%;
}
.reports-page-shell .docs-layout {
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 48px;
  width: 100%;
}
.reports-page-shell .docs-sidebar,
.reports-page-shell .docs-article,
.reports-page-shell .problem-report-list,
.reports-page-shell .problem-report-card {
  min-width: 0;
  max-width: 100%;
}
.reports-page-shell .problem-report-card-message {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.reports-page-shell textarea,
.reports-page-shell input,
.reports-page-shell .turnstile-widget-shell {
  max-width: 100%;
}

@media (max-width: 960px) {
  .reports-page-shell {
    width: min(100% - 32px, 760px);
    padding-top: 28px;
  }
  .reports-page-shell .docs-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .reports-page-shell .docs-sidebar {
    position: static;
  }
}

@media (max-width: 520px) {
  .reports-page-shell {
    width: min(100% - 24px, 760px);
    padding-top: 22px;
  }
  .problem-report-card-top {
    align-items: stretch;
  }
  .problem-report-like-button {
    width: 100%;
  }
}

.auth-shell {
  width: min(100%, 440px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 20px;
  font-weight: 650;
}
.auth-brand img {
  height: 32px;
  width: auto;
}
.auth-switch {
  margin-top: -8px;
  font-size: 14px;
  text-align: center;
}
.auth-switch a {
  color: var(--text);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.settings-page {
  width: min(760px, calc(100vw - 48px));
  padding-top: 52px;
  padding-bottom: 72px;
}
.settings-header {
  margin-bottom: 28px;
}
.settings-header h1 {
  font-size: 44px;
}
.settings-kicker,
.settings-section-label {
  margin-bottom: 6px;
  color: var(--text-tertiary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.settings-card {
  display: grid;
  gap: 22px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.settings-card + .settings-card {
  margin-top: 16px;
}
.settings-card h2 {
  margin: 0;
  font-size: 21px;
}
.settings-card p:not(.settings-section-label) {
  margin-top: 6px;
  font-size: 14px;
}
.settings-card-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}
.settings-details {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line-subtle);
}
.settings-details > div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-subtle);
}
.settings-details dt {
  color: var(--text-secondary);
  font-size: 13px;
}
.settings-details dd {
  min-width: 0;
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 550;
  overflow-wrap: anywhere;
}

@media (max-width: 620px) {
  .settings-page {
    width: min(100% - 28px, 760px);
    padding-top: 32px;
  }
  .settings-header h1 {
    font-size: 38px;
  }
  .settings-card-row {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .settings-card-row .btn {
    width: 100%;
  }
  .settings-details > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

.reports-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  align-items: start;
  gap: 28px;
  width: 100%;
  min-width: 0;
}
.reports-sidebar, .reports-content { min-width: 0; width: 100%; }
.reports-sidebar { position: sticky; top: 20px; display: grid; gap: 16px; }

.problem-report-sidebar.docs-sidebar {
  position: static;
}
.reports-content { display: grid; gap: 20px; }
.reports-panel { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 24px; }
.reports-title { font-size: clamp(30px, 4vw, 44px); overflow-wrap: anywhere; }
.reports-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.reports-list-heading span { flex: 0 0 auto; font-size: 12px; color: var(--text-secondary); }
.problem-report-form textarea { display: block; width: 100%; min-width: 0; max-width: 100%; }
.problem-report-card, .problem-report-card-top, .problem-report-card-message { min-width: 0; max-width: 100%; }
.problem-report-card-message { white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }

.account-menu {
  position: relative;
  flex: 0 0 auto;
}

.account-avatar-button {
  width: 38px;
  height: 38px;
  padding: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-secondary);
  color: var(--text);
  cursor: pointer;
}

.account-avatar-button:hover {
  border-color: var(--text-tertiary);
}

.account-avatar-button:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.account-avatar-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.account-avatar-fallback {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
}

.account-dropdown {
  position: absolute;
  z-index: 1000;
  top: calc(100% + 10px);
  right: 0;
  width: min(260px, calc(100vw - 32px));
  padding: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
}

.account-dropdown-header {
  min-width: 0;
  padding: 10px 12px;
}

.account-dropdown-header strong,
.account-dropdown-header span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-dropdown-header strong {
  font-size: 0.95rem;
}

.account-dropdown-header span {
  margin-top: 3px;
  opacity: 0.65;
  font-size: 0.8rem;
}

.account-dropdown-divider {
  height: 1px;
  margin: 6px 0;
  background: var(--line-subtle);
}

.account-dropdown-item {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.account-dropdown-item:hover {
  background: var(--bg-secondary);
}

.account-dropdown-button {
  appearance: none;
}

@media (max-width: 960px) {
  .reports-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .reports-sidebar { position: static; }
}
@media (max-width: 520px) {
  .reports-panel { padding: 18px; }
}

@media (max-width: 760px) {
  .nav-right-mobile .account-dropdown {
    right: auto;
    left: 0;
  }

  .nav-mobile-actions .account-menu {
    width: 100%;
  }

  .nav-mobile-actions .account-dropdown {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    width: 100%;
    margin-top: 10px;
    box-shadow: none;
  }
}

.auth-page .cl-rootBox { width: min(100%, 440px); }
.cl-card { border: 1px solid var(--line) !important; border-radius: var(--radius) !important; background: var(--panel) !important; }
.cl-formFieldInput { border-radius: var(--radius-sm) !important; border: 1px solid var(--line) !important; background: var(--bg) !important; color: var(--text) !important; }
.cl-formFieldInput:focus { border-color: var(--accent) !important; }
.cl-formButtonPrimary { border-radius: 980px !important; background: var(--accent) !important; color: #ffffff !important; font-weight: 500 !important; height: 36px !important; }
.cl-formButtonPrimary:hover { background: var(--accent-hover) !important; }
.cl-socialButtonsBlockButton { border-radius: 980px !important; border: 1px solid var(--line) !important; color: var(--text) !important; background: var(--bg) !important; gap: 8px !important; }
.cl-socialButtonsBlockButton:hover { background: var(--bg-secondary) !important; border-color: var(--text-tertiary) !important; }
.cl-socialButtonsBlockButton img { filter: brightness(0); }
@media (prefers-color-scheme: dark) {
  .cl-socialButtonsBlockButton img { filter: brightness(0) invert(1); }
}
.cl-dividerLine { background: var(--line-subtle) !important; }
.cl-headerTitle { font-weight: 600 !important; letter-spacing: -0.01em !important; }
.cl-headerSubtitle { color: var(--text-secondary) !important; }
.cl-footerActionLink { color: var(--text) !important; font-weight: 500 !important; }
.cl-footer,
[class*="cl-poweredByClerk"],
[class*="cl-badge"] { display: none !important; }
