:root { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #1d1d1f; background: #f5f5f7; font-size: 14px; line-height: 1.5; font-synthesis: none; -webkit-font-smoothing: antialiased; --accent: #0071e3; --muted: #6e6e73; --border: #e4e5e9; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input { font: inherit; }
button, a, label, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button, summary { cursor: pointer; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
a:focus-visible, button:focus-visible, summary:focus-visible, pre:focus-visible { outline: 3px solid #0071e380; outline-offset: 5px; }
.skip-link { position: absolute; top: -80px; left: 20px; padding: 12px 20px; background: white; z-index: 10; }
.skip-link:focus { top: 12px; }
.header, main, footer { width: min(1040px, calc(100% - 64px)); margin-inline: auto; }
.header { min-height: 110px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; }
.brand:hover { text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; background: linear-gradient(150deg,#fff,#e8f2ff); border: 1px solid #c5dbef; border-radius: 12px; color: var(--accent); font-size: 31px; font-weight: 600; padding: 0 2px 5px 0; line-height: 1; }
.brand strong { font-size: 22px; letter-spacing: -.055em; }
.brand-period { color: var(--accent); }
.brand small { display: block; font-size: 8px; letter-spacing: .13em; color: var(--muted); }
.account-link { font-size: 13px; color: #45454b; padding: 12px 0 12px 12px; white-space: nowrap; }
.account-link span { margin-left: 14px; }
.intro { padding: 68px 0 40px; }
.eyebrow { display: block; color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .12em; margin-bottom: 18px; }
h1 { font-size: clamp(38px,5vw,62px); line-height: 1.06; letter-spacing: -.052em; font-weight: 650; margin: 0; }
h1 span { color: #86868b; }
.intro p { font-size: 16px; line-height: 1.65; color: var(--muted); max-width: 610px; margin: 22px 0 0; }
.setup { background: white; border: 1px solid var(--border); border-radius: 24px; overflow: hidden; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.step { display: inline-grid; place-items: center; width: 24px; height: 24px; background: #f1f2f5; border-radius: 50%; font-size: 11px; color: #64646b; }
.app-picker { margin: 30px 32px; }
.apps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-top: 22px; }
.app-card { position: relative; display: flex; flex-direction: column; cursor: pointer; border: 1px solid var(--border); border-radius: 16px; padding: 22px; transition: background-color 140ms, border-color 140ms; }
.app-card:hover { background: #fafbfc; border-color: #bbc5d4; }
.app-card:has(input:checked) { border-color: var(--accent); background: #f5f9ff; box-shadow: inset 0 0 0 1px var(--accent); }
input[type=radio] { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; margin: 0; }
.app-card:has(input:focus-visible), .os-options label:has(input:focus-visible) { outline: 3px solid #0071e380; outline-offset: 4px; }
.app-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; font-size: 20px; font-weight: 600; margin-bottom: 18px; background: #edf0f3; font-family: 'SFMono-Regular', Consolas, monospace; }
.codex-icon { background: #e5eef7; color: #335474; }
.claude-icon { background: #f8ede6; color: #b76643; font-size: 35px; font-family: Georgia,serif; font-weight: 400; }
.opencode-icon { background: #eeecf4; color: #63527e; letter-spacing: -.1em; padding-right: 3px; }
.app-name { font-size: 17px; font-weight: 600; letter-spacing: -.025em; }
.app-detail { color: var(--muted); font-size: 11px; margin-top: 6px; }
.selection { position: absolute; top: 22px; right: 20px; width: 17px; height: 17px; border-radius: 50%; border: 1px solid #d5d7dd; }
input:checked ~ .selection { background: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 4px white; }
.command-section { border-top: 1px solid var(--border); padding: 28px 32px 30px; }
.os-picker { display: flex; align-items: center; }
.os-options { display: inline-flex; padding: 4px; gap: 4px; border-radius: 11px; background: #f1f2f5; margin-top: 18px; }
.os-options label { position: relative; cursor: pointer; }
.os-options span { display: block; padding: 9px 24px; border-radius: 8px; font-size: 12px; color: #606068; }
.os-options input:checked + span { color: #1d1d1f; background: white; box-shadow: 0 1px 4px #1d1d1f10; font-weight: 600; }
.terminal { margin-top: 23px; background: #1d222b; color: #f2f4f8; border-radius: 15px; overflow: hidden; }
.terminal-heading { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid #ffffff12; font-size: 11px; color: #bec5d1; }
.terminal-app { color: #a4c9f3; }
pre, code { font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace; }
pre { margin: 0; padding: 25px 20px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; line-height: 1.8; }
.terminal-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 0 16px 16px 20px; }
.terminal-bottom > span { font-size: 10px; color: #a9b1be; }
.copy-button { border: 1px solid #4c5564; color: white; background: #353e4d; border-radius: 8px; padding: 10px 13px; font-size: 11px; }
.copy-button:hover { background: #475266; }
.copy-button span { margin-left: 12px; font-size: 15px; }
.copy-status { margin: 0; font-size: 12px; color: #24834e; }
.copy-status:not(:empty) { margin-top: 12px; }
.instruction { font-size: 12px; color: var(--muted); line-height: 1.7; margin: 18px 0 0; max-width: 760px; }
.script-links { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; margin-top: 18px; font-size: 11px; }
.script-links button { border: 0; background: transparent; padding: 0; color: var(--accent); font-size: inherit; text-align: left; }
.script-links button:hover { text-decoration: underline; text-underline-offset: 4px; }
.script-links span { margin-left: 5px; }
.notes { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 36px; margin: 38px 0; }
.note-number { display: block; color: #8a8a92; font-size: 10px; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
h2 { font-size: 14px; font-weight: 600; margin: 0 0 9px; }
.notes p { font-size: 12px; line-height: 1.75; color: var(--muted); margin: 0; }
.manual { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); font-size: 12px; }
.manual summary { padding: 22px 0; color: #45454b; }
.manual > div { padding: 0 0 18px; color: var(--muted); overflow-wrap: anywhere; }
.manual dl { display: grid; grid-template-columns: 180px 1fr; gap: 10px 20px; margin-block: 20px; }
.manual dd { margin: 0; color: #45454b; }
.no-script { padding: 16px; background: white; line-height: 1.8; }
footer { padding: 26px 0 32px; display: flex; justify-content: space-between; gap: 20px; font-size: 10px; color: var(--muted); }
footer a { color: var(--muted); }
@media (max-width: 680px) {
  .header, main, footer { width: calc(100% - 36px); }
  .header { min-height: 86px; }
  .brand small { font-size: 6px; }
  .brand strong { font-size: 20px; }
  .account-link { font-size: 11px; }
  .account-link span { margin-left: 5px; }
  .intro { padding: 42px 0 28px; }
  .intro p { font-size: 14px; }
  .eyebrow { font-size: 8px; }
  .setup { border-radius: 20px; }
  .app-picker { margin: 24px 20px; }
  .apps { grid-template-columns: 1fr; gap: 10px; margin-top: 18px; }
  .app-card { display: grid; grid-template-columns: 38px 1fr; column-gap: 14px; padding: 15px; }
  .app-icon { grid-row: span 2; width: 38px; height: 38px; margin: 0; border-radius: 10px; }
  .app-name { font-size: 15px; padding-right: 22px; }
  .app-detail { font-size: 10px; margin-top: 3px; }
  .selection { top: 18px; right: 15px; width: 15px; height: 15px; }
  .command-section { padding: 24px 20px; }
  .os-options { width: 100%; }
  .os-options label { flex: 1; text-align: center; }
  .os-options span { padding: 10px 12px; }
  .terminal-heading { padding: 13px 15px; }
  pre { padding: 20px 15px; font-size: 11px; }
  .terminal-bottom { align-items: flex-start; flex-direction: column; padding: 0 15px 15px; gap: 14px; }
  .copy-button { width: 100%; padding: 12px; }
  .script-links { gap: 16px 20px; }
  .notes { grid-template-columns: 1fr; gap: 24px; margin-block: 28px; }
  .notes article { display: grid; grid-template-columns: 25px 1fr; gap: 0 10px; }
  .note-number { grid-row: span 2; padding-top: 3px; }
  .notes p { grid-column: 2; }
  .manual dl { grid-template-columns: 1fr; gap: 5px; }
  .manual dd { margin-bottom: 12px; }
  footer { flex-direction: column; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
