:root {
  color-scheme: light;
  --bg: #f5f5f2;
  --ink: #20211f;
  --muted: #676a64;
  --line: #d8d8cf;
  --panel: #ffffff;
  --panel-soft: #eeeee8;
  --accent: #2f6f57;
  --accent-dark: #1f4c3b;
  --danger: #9a3b35;
  --ok: #2f6f57;
  --pending: #8a7a3a;
  --sidebar-width: 250px;
  --rail-width: 220px;
  font-family: "Outfit", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

body.auth-locked {
  overflow: hidden;
}

body.auth-locked .shell,
body.auth-locked .top-nav {
  filter: blur(2px);
  pointer-events: none;
  user-select: none;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 14px;
}

button,
input,
select {
  font: inherit;
}

.top-nav {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  width: var(--sidebar-width);
  border-right: 1px solid rgba(32, 33, 31, 0.1);
  background: rgba(245, 245, 242, 0.96);
  backdrop-filter: blur(14px);
  overflow: auto;
}

.floating-nav {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 18;
  width: var(--rail-width);
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 14px;
  border: 1px solid rgba(32, 33, 31, 0.1);
  border-radius: 8px;
  background: rgba(245, 245, 242, 0.96);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 42px -36px rgba(32, 33, 31, 0.34);
}

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(22, 23, 20, 0.52);
  backdrop-filter: blur(8px);
}

.auth-gate.visible {
  display: flex;
}

.auth-card {
  width: min(520px, 100%);
  padding: 22px;
  border: 1px solid rgba(32, 33, 31, 0.12);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px -40px rgba(0, 0, 0, 0.48);
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-form label {
  margin-top: 0;
}

.auth-error {
  min-height: 20px;
  margin: 0;
  color: var(--danger);
  font-size: 13px;
}

.auth-actions {
  display: flex;
  justify-content: flex-end;
}

.floating-nav-head {
  display: grid;
  gap: 2px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(32, 33, 31, 0.08);
}

.floating-nav-head strong {
  font-size: 14px;
}

.floating-nav-head small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.floating-nav-links {
  display: grid;
  gap: 6px;
}

.floating-nav .nav-parent {
  min-height: 36px;
  padding-left: 12px;
  font-size: 12px;
}

.top-nav-inner {
  min-height: 100%;
  padding: 14px 14px 18px;
  display: grid;
  gap: 14px;
}

.top-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.top-nav-brand {
  display: grid;
  gap: 2px;
  padding: 6px 6px 8px;
  border-bottom: 1px solid rgba(32, 33, 31, 0.08);
}

.top-nav-brand strong {
  font-size: 15px;
}

.top-nav-brand small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.top-nav-links {
  display: grid;
  gap: 6px;
}

.nav-cluster {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(47, 111, 87, 0.16);
  border-radius: 10px;
  background: rgba(47, 111, 87, 0.06);
}

.nav-cluster-major {
  box-shadow: inset 0 0 0 1px rgba(47, 111, 87, 0.08);
}

.nav-group {
  display: grid;
  gap: 4px;
  padding-left: 10px;
  border-left: 1px solid rgba(47, 111, 87, 0.14);
}

.nav-group-major {
  margin-top: 2px;
}

.top-nav a,
.floating-nav a {
  display: flex;
  min-height: 38px;
  align-items: center;
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  background: transparent;
  transition:
    background 180ms cubic-bezier(0.16, 1, 0.3, 1),
    color 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.top-nav a:hover,
.top-nav a:focus-visible,
.floating-nav a:hover,
.floating-nav a:focus-visible {
  background: #e8e8e0;
  color: var(--accent-dark);
  outline: none;
}

.top-nav a.active,
.floating-nav a.active {
  background: rgba(47, 111, 87, 0.14);
  color: var(--accent-dark);
}

.top-nav a.active.nav-highlight {
  background: rgba(47, 111, 87, 0.2);
  box-shadow: inset 3px 0 0 var(--accent);
}

.nav-parent {
  padding-left: 12px;
}

.nav-cluster-title {
  min-height: 40px;
  font-weight: 900;
}

.nav-cluster-sub {
  min-height: 36px;
  color: var(--ink);
}

.nav-subitem {
  min-height: 34px;
  padding-left: 18px;
  color: var(--muted);
  font-weight: 750;
}

.nav-group .nav-parent {
  padding-left: 12px;
}

.nav-group .nav-subitem {
  padding-left: 20px;
}

.nav-group .nav-parent.active,
.nav-group .nav-subitem.active {
  background: rgba(47, 111, 87, 0.12);
}

.nav-cluster .nav-cluster-title {
  background: rgba(47, 111, 87, 0.12);
  box-shadow: inset 0 0 0 1px rgba(47, 111, 87, 0.18);
}

.nav-cluster .nav-cluster-sub {
  background: rgba(255, 255, 255, 0.5);
}

.nav-cluster .nav-cluster-sub:hover,
.nav-cluster .nav-cluster-sub:focus-visible,
.nav-cluster .nav-subitem:hover,
.nav-cluster .nav-subitem:focus-visible {
  background: rgba(47, 111, 87, 0.1);
}

.top-nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 8px;
  background: #e8e8e0;
}

.top-nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  margin: 3px auto;
  border-radius: 999px;
  background: var(--ink);
}

.shell {
  width: min(1080px, calc(100% - var(--sidebar-width) - var(--rail-width) - 76px));
  margin: 0 0 0 calc(var(--sidebar-width) + 28px);
  padding: 34px 0 64px;
}

.hero {
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.45fr);
  gap: 28px;
  align-items: start;
  padding: 8px 0 28px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
}

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

h1 {
  max-width: 860px;
  margin-bottom: 14px;
  font-size: 42px;
  line-height: 1.08;
  letter-spacing: 0;
}

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 14px 0 8px;
  padding: 0 10px;
  border-radius: 999px;
  background: #e8efe9;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 850;
}

.section-kicker.main-kicker {
  margin-top: 0;
  margin-bottom: 12px;
  background: rgba(47, 111, 87, 0.16);
}

.status-panel,
.panel,
.step {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(32, 33, 31, 0.1);
  box-shadow: 0 18px 42px -36px rgba(32, 33, 31, 0.34);
}

.status-panel {
  padding: 20px;
  border-radius: 8px;
}

.status-header {
  display: grid;
  gap: 8px;
}

.status-header span,
small {
  color: var(--muted);
}

.status-header strong {
  word-break: break-all;
  font-size: 14px;
  line-height: 1.45;
}

.meter {
  height: 8px;
  margin: 20px 0 14px;
  background: var(--panel-soft);
  border-radius: 999px;
  overflow: hidden;
}

.meter span {
  display: block;
  width: var(--ready, 25%);
  height: 100%;
  background: var(--accent);
  transition: width 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.mode-panel {
  margin-bottom: 24px;
}

.mode-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  padding: 6px;
  border: 1px solid rgba(32, 33, 31, 0.1);
  border-radius: 8px;
  background: #f4f4ef;
}

.mode-tab {
  flex: 0 0 auto;
  min-height: 42px;
}

.mode-tab.active {
  background: var(--accent);
  color: #fff;
}

.mode-content {
  display: none;
}

.mode-content.active {
  display: grid;
  gap: 14px;
}

.mode-summary {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(47, 111, 87, 0.24);
  border-radius: 8px;
  background: #eef5ef;
}

.mode-summary.warning {
  border-color: rgba(138, 122, 58, 0.28);
  background: #f7f3e5;
}

.mode-summary b {
  font-size: 15px;
}

.mode-summary span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.panel {
  border-radius: 8px;
  padding: clamp(22px, 2.3vw, 34px);
  min-width: 0;
}

.panel-title,
.workflow-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.panel-title {
  justify-content: flex-start;
}

.panel-title h2,
.workflow-head h2,
.notes h2 {
  margin-bottom: 6px;
  font-size: 22px;
  letter-spacing: 0;
}

.panel-title p,
.workflow-head p,
.notes p,
.step p {
  color: var(--muted);
  line-height: 1.65;
}

.mark,
.step-number {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--accent-dark);
  font-weight: 800;
}

label {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  font-weight: 750;
}

label.checkline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--ink);
  font-size: 14px;
}

label.checkline input {
  width: 16px;
  height: 16px;
  padding: 0;
}

.field-link {
  display: inline-flex;
  width: fit-content;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 12px;
  background: #e8e8e0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.field-link:hover,
.field-link:focus-visible {
  background: #ddddd3;
  color: var(--accent-dark);
  outline: none;
}

.help-box {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid rgba(32, 33, 31, 0.1);
  border-radius: 8px;
  background: #f6f6f0;
}

.help-box h3 {
  margin-bottom: 8px;
  font-size: 15px;
}

.help-box ol {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.65;
}

.help-box p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.legacy-box {
  background: #fafaf6;
}

.legacy-box summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  cursor: pointer;
  list-style: none;
}

.legacy-box summary::-webkit-details-marker {
  display: none;
}

.legacy-box summary::after {
  content: "展开";
  flex: 0 0 auto;
  min-width: 48px;
  border-radius: 8px;
  padding: 7px 10px;
  background: #e8e8e0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
  text-align: center;
}

.legacy-box[open] summary::after {
  content: "收起";
}

.legacy-box summary span {
  font-weight: 850;
}

.legacy-box summary small {
  display: block;
  margin-top: 4px;
  line-height: 1.45;
}

.credential-guide {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid rgba(47, 111, 87, 0.22);
  border-radius: 8px;
  background: #eef5ef;
}

.credential-guide h3 {
  margin-bottom: 14px;
  font-size: 15px;
}

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

.credential-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(32, 33, 31, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  text-decoration: none;
  transition:
    border-color 180ms cubic-bezier(0.16, 1, 0.3, 1),
    background 180ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.credential-card:hover,
.credential-card:focus-visible {
  border-color: rgba(47, 111, 87, 0.5);
  background: #ffffff;
  outline: none;
  transform: translateY(-1px);
}

.credential-card:focus-visible {
  box-shadow: 0 0 0 3px rgba(47, 111, 87, 0.14);
}

.credential-card b {
  font-size: 13px;
}

.credential-card span,
.credential-guide p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.credential-guide p {
  margin: 14px 0 0;
}

.field-warning {
  color: #725a1f;
}

.text-jump {
  color: var(--accent-dark);
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-jump:hover,
.text-jump:focus-visible {
  color: var(--accent);
  outline: none;
}

.field-group {
  scroll-margin-top: 14px;
}

.subsection-title {
  margin-top: 22px;
}

.subsection-title h3 {
  margin-bottom: 6px;
  font-size: 17px;
}

.subsection-title p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.setup-guide {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid rgba(32, 33, 31, 0.1);
  border-radius: 8px;
  background: #f6f6f0;
}

.setup-guide h3 {
  margin-bottom: 12px;
  font-size: 15px;
}

.setup-steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.setup-steps li {
  display: grid;
  grid-template-columns: minmax(150px, 0.34fr) minmax(0, 1fr);
  gap: 16px;
  padding: 14px;
  border: 1px solid rgba(32, 33, 31, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.setup-steps b {
  font-size: 13px;
}

.setup-steps span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

label[id] {
  scroll-margin-top: 14px;
}

#recommendedScopes {
  scroll-margin-top: 14px;
}

.callout {
  margin: 14px 0 16px;
  padding: 16px;
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  line-height: 1.6;
  font-size: 14px;
}

.strong-callout {
  border-left-color: var(--pending);
  background: #fffdf4;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 10px 0 14px;
}

.button-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 14px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 180ms cubic-bezier(0.16, 1, 0.3, 1),
    background 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.button-link:hover {
  background: var(--accent-dark);
}

.button-link:active {
  transform: translateY(1px) scale(0.99);
}

.button-link.secondary {
  background: #e8e8e0;
  color: var(--ink);
}

.button-link.secondary:hover {
  background: #ddddd3;
}

.scope-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

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

.decision-list > div {
  display: grid;
  grid-template-columns: minmax(160px, 0.32fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid rgba(32, 33, 31, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.decision-list b {
  font-size: 13px;
}

.decision-list span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.scope-list > div {
  display: grid;
  grid-template-columns: minmax(150px, 0.55fr) repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(32, 33, 31, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.scope-list strong {
  font-size: 13px;
}

.scope-list code {
  min-height: 0;
  padding: 7px 9px;
  font-size: 12px;
  line-height: 1.35;
}

input,
select {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fcfcfa;
  color: var(--ink);
  padding: 0 14px;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 111, 87, 0.14);
}

.checks {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 14px;
}

.check {
  min-height: 132px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  display: grid;
  align-content: space-between;
  gap: 10px;
}

.check span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--pending);
}

.check.ok span {
  background: var(--ok);
}

.check.bad span {
  background: var(--danger);
}

.check b {
  font-size: 15px;
}

.check small {
  line-height: 1.45;
  word-break: break-word;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  background: var(--accent);
  color: white;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 180ms cubic-bezier(0.16, 1, 0.3, 1),
    background 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

button:hover {
  background: var(--accent-dark);
}

button:active {
  transform: translateY(1px) scale(0.99);
}

button.secondary {
  background: #e8e8e0;
  color: var(--ink);
}

button.secondary:hover {
  background: #ddddd3;
}

button.danger {
  background: #eee1df;
  color: var(--danger);
}

button.danger:hover {
  background: #e5cfcc;
}

.account-vault {
  display: grid;
  gap: 16px;
  margin-bottom: 20px;
  padding: 18px;
  border: 1px solid rgba(47, 111, 87, 0.24);
  border-radius: 8px;
  background: #f4f8f4;
}

.active-account {
  display: grid;
  gap: 6px;
}

.active-account span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.active-account strong {
  font-size: 18px;
  overflow-wrap: anywhere;
}

.account-list {
  display: grid;
  gap: 10px;
}

.account-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(32, 33, 31, 0.1);
  border-radius: 8px;
  background: #fff;
}

.account-item.active {
  border-color: rgba(47, 111, 87, 0.48);
  box-shadow: inset 3px 0 0 var(--accent);
}

.account-item input {
  width: 18px;
  height: 18px;
  padding: 0;
}

.account-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.account-copy b {
  overflow-wrap: anywhere;
}

.account-copy small {
  line-height: 1.45;
}

.account-state {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 850;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.save-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.save-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.workflow {
  margin-top: 36px;
  padding-top: 10px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(220px, 1fr));
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.step {
  border-radius: 8px;
  padding: 18px;
  display: grid;
  gap: 12px;
  align-content: start;
  position: relative;
}

.step.done {
  border-color: rgba(47, 111, 87, 0.34);
  background: rgba(255, 255, 255, 0.94);
}

.step.done .step-number {
  background: var(--accent);
  color: white;
}

.step.done::after {
  content: "已完成";
  position: absolute;
  top: 18px;
  right: 18px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 850;
}

.step.blocked {
  opacity: 0.68;
}

.step button[disabled] {
  cursor: default;
  background: #d7d8d0;
  color: #6b6d66;
}

.step h3 {
  margin-bottom: 0;
  font-size: 17px;
}

code,
pre {
  font-family: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
}

code {
  display: block;
  min-height: 62px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4f4ef;
  color: #33352f;
  line-height: 1.55;
  word-break: break-all;
}

.output-panel {
  margin-top: 30px;
}

pre {
  min-height: 220px;
  max-height: 420px;
  overflow: auto;
  margin: 0;
  padding: 18px;
  border-radius: 8px;
  background: #20211f;
  color: #f5f2e8;
  line-height: 1.55;
  white-space: pre-wrap;
}

.notes {
  margin-top: 28px;
  padding: 20px 0 0;
  max-width: 920px;
}

.prompt-panel {
  margin-top: 30px;
}

.prompt-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(47, 111, 87, 0.18);
  border-radius: 8px;
  background: #f4f8f4;
}

.prompt-card b {
  font-size: 15px;
}

.prompt-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.prompt-card code {
  display: inline;
  min-height: 0;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(47, 111, 87, 0.08);
}

.prompt-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.prompt-link {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(32, 33, 31, 0.1);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
}

.prompt-link:hover,
.prompt-link:focus-visible {
  border-color: rgba(47, 111, 87, 0.4);
  outline: none;
}

.prompt-link b {
  font-size: 13px;
}

.prompt-link span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.links a {
  color: var(--accent-dark);
  text-decoration: none;
  font-weight: 800;
  border-bottom: 1px solid rgba(47, 111, 87, 0.32);
}

.guide {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.75;
}

@media (max-width: 1180px) {
  .floating-nav {
    display: none;
  }

  .shell {
    width: min(1320px, calc(100% - var(--sidebar-width) - 56px));
  }

  .prompt-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .floating-nav {
    display: none;
  }

  .top-nav {
    position: sticky;
    inset: 0;
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid rgba(32, 33, 31, 0.1);
  }

  .top-nav-inner {
    min-height: auto;
    padding: 10px 14px 12px;
    gap: 10px;
  }

  .top-nav-brand {
    padding: 0;
    border-bottom: 0;
  }

  .top-nav-links {
    display: none;
    gap: 6px;
  }

  .top-nav.open .top-nav-links {
    display: grid;
  }

  .nav-cluster {
    padding: 8px;
  }

  .top-nav-toggle {
    display: grid;
    place-items: center;
  }

  .top-nav.open .top-nav-toggle {
    background: #dde5de;
  }

  .top-nav a.active {
    background: rgba(47, 111, 87, 0.14);
  }

  .shell {
    width: min(100% - 32px, 800px);
    margin: 0 auto;
    padding-top: 22px;
  }

  .hero,
  .grid {
    grid-template-columns: 1fr;
  }

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

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

  .hero {
    min-height: auto;
    padding-top: 10px;
    gap: 20px;
  }

  .checks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  html {
    scroll-padding-top: 12px;
  }

  h1 {
    font-size: 34px;
  }

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

  .panel-title,
  .workflow-head {
    display: grid;
  }

  .nav-subitem {
    padding-left: 18px;
  }

  .top-nav a {
    min-height: 38px;
    padding: 0 12px;
  }

  .scope-list > div {
    grid-template-columns: 1fr;
  }

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

  .decision-list > div {
    grid-template-columns: 1fr;
  }

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

  .account-item {
    grid-template-columns: 18px minmax(0, 1fr);
  }

  .account-state {
    grid-column: 2;
  }

}
