.site-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 40px; border-bottom: 1px solid var(--line); background: var(--soft); }
.back-link { font-size: 14px; min-height: 44px; display: inline-flex; align-items: center; }
.guide-shell { width: min(1200px, calc(100% - 64px)); margin: 44px auto 64px; }
.hero { text-align: left; margin-bottom: 36px; max-width: 900px; }
.hero h1 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -.04em; line-height: 1.4; margin-bottom: 16px; }
.hero > p { max-width: 840px; margin: 0 0 14px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.hero .eyebrow { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .14em; margin-bottom: 14px; }
.hero .guide-links { font-size: 14px; }
.hero .account-status { font-size: 14px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 22px; }
.hero .hero-actions { justify-content: start; margin-top: 18px; }
#account-actions { font-size: 14px; }
#account-actions .secondary-action { border: 0; min-height: 36px; padding: 6px 14px; text-decoration: underline; text-underline-offset: 4px; font-weight: 500; }
.connection-layout { display: grid; grid-template-columns: minmax(240px, .75fr) minmax(0, 1.6fr); gap: 48px; }
.steps { display: grid; align-content: start; gap: 0; }
.step-card { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 8px 16px; padding-bottom: 32px; position: relative; }
.step-card:not(:last-child)::after { content: ""; position: absolute; top: 44px; bottom: 8px; left: 18px; width: 1px; background: var(--line); }
.step-card > span { display: grid; place-items: center; width: 36px; height: 36px; background: #e7eeea; color: var(--accent); border-radius: 50%; font-size: 15px; font-weight: 600; }
.step-card h2 { font-size: 17px; line-height: 1.5; margin: 3px 0 0; }
.step-card p { grid-column: 2; font-size: 14px; color: var(--muted); margin: 0; line-height: 1.8; }
.connection-work { min-width: 0; padding: 28px 32px; border: 1px solid var(--line); border-radius: 14px; }
.handoff-card { min-width: 0; }
.setup-card { padding-bottom: 26px; }
.setup-card h2, .next-step h2 { font-size: 21px; line-height: 1.5; margin: 8px 0 12px; }
.setup-card p, .next-step p { font-size: 15px; margin-bottom: 0; }
.setup-card .setup-note, .next-step .setup-note { color: var(--muted); font-size: 13px; margin-top: 16px; }
.setup-card .hero-actions { margin-top: 18px; }
#app-setup, #handoff, #connection-key, #network-help { scroll-margin-top: 24px; }
.handoff-card h2 { font-size: 23px; line-height: 1.5; margin: 0 0 12px; letter-spacing: -.02em; }
.handoff-card p { color: var(--muted); font-size: 15px; margin: 0; line-height: 1.8; }
#handoff, #connection-key { padding-top: 26px; border-top: 1px solid var(--line); }
#connection-key { margin-top: 28px; }
.next-step { margin-top: 28px; padding: 20px; border-radius: 9px; background: var(--accent-soft); }
.primary-action, .secondary-action, #copy-button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 11px 18px; border: 1px solid var(--accent); border-radius: 9px; color: var(--accent); background: var(--surface); font-size: 14px; font-weight: 600; line-height: 1.5; text-decoration: none; cursor: pointer; }
.primary-action, #copy-button { background: var(--accent); color: #fff; }
.primary-action:hover:not(:disabled), #copy-button:hover:not(:disabled) { background: #28483b; }
.secondary-action:hover:not(:disabled) { background: var(--accent-soft); }
#copy-button:disabled, #copy-key-button:disabled { background: var(--soft); border-color: var(--line); color: var(--muted); opacity: .7; cursor: not-allowed; }
#revoke-key-button { border: 0; padding: 8px 0; font-size: 12px; font-weight: 500; min-height: 36px; text-decoration: underline; text-underline-offset: 4px; }
#agent-prompt { display: block; width: 100%; min-height: 130px; resize: vertical; margin: 16px 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 9px; background: var(--soft); font-size: 14px; line-height: 1.8; }
.agent-key { display: block; margin-top: 20px; padding: 16px; background: var(--soft); border: 1px solid var(--line); border-radius: 9px; font: 14px/1.8 ui-monospace, monospace; overflow-wrap: anywhere; user-select: all; }
.copy-status { color: var(--muted); margin-top: 12px; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.copy-status:empty { margin: 0; }
.error { color: var(--danger) !important; }
#shop-selection label { display: block; font-weight: 600; }
#shop-input { display: block; width: 100%; min-height: 46px; margin: 12px 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; }
.advanced-help { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 26px; font-size: 14px; }
.advanced-help > summary { cursor: pointer; padding: 12px 16px; border: 1px solid var(--line); border-radius: 9px; background: var(--soft); min-height: 48px; font-weight: 600; }
.advanced-help[open] > summary { margin-bottom: 24px; }
.advanced-help h2 { font-size: 17px; margin: 5px 0 12px; }
.advanced-help code { display: inline-block; max-width: 100%; overflow-wrap: anywhere; color: var(--accent); font-size: 13px; }
.advanced-help ul { margin-bottom: 0; padding-left: 22px; color: var(--muted); }
.advanced-help li { margin: 8px 0; }
.step-label { color: var(--muted); font-size: 12px; }
.account-security { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.account-security h2 { font-size: 20px; margin: 0 0 12px; }
.account-security p { font-size: 14px; color: var(--muted); line-height: 1.8; }
.account-security details { margin-top: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 9px; }
.account-security summary { cursor: pointer; min-height: 28px; font-weight: 600; }
.account-security label { display: block; font-size: 14px; margin: 16px 0 8px; }
.account-security input { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; font: inherit; font-size: 16px; }
.account-security button:disabled { opacity: .6; cursor: not-allowed; }
@media (max-width: 900px) {
  .connection-layout { gap: 24px; grid-template-columns: minmax(200px, .8fr) minmax(0, 1.3fr); }
  .connection-work { padding: 24px; }
  .handoff-card h2 { font-size: 21px; }
}
@media (max-width: 720px) {
  .site-header { padding: 18px 20px; }
  .brand { font-size: 24px; }
  .guide-shell { width: calc(100% - 40px); margin: 28px auto 40px; }
  .hero { text-align: left; margin-bottom: 28px; }
  .hero h1 { font-size: 28px; }
  .hero > p { font-size: 15px; }
  .hero .hero-actions { justify-content: start; }
  .connection-layout { grid-template-columns: 1fr; gap: 4px; }
  .step-card { padding-bottom: 22px; }
  .connection-work { padding: 20px; }
  .hero-actions { gap: 10px; }
  #connection-key .hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #connection-key .primary-action, #copy-key-button { padding: 11px 10px; white-space: nowrap; }
  #revoke-key-button { grid-column: 1 / -1; justify-self: start; }
  .handoff-card h2 { font-size: 21px; }
  #agent-prompt { min-height: 160px; font-size: 16px; }
}
