:root {
  --ink: #f5f5f7; --dim: rgba(235, 235, 245, .72); --i2: rgba(235, 235, 245, .6); --i3: rgba(235, 235, 245, .4);
  --night: #07060f; --panel: #111018; --panel2: #17161f; --hair: rgba(255, 255, 255, .09);
  --silver: #e6e8ee; --steel: #b9bec9; --green: #30d158; --orange: #ff9f0a; --blue: #0a84ff;
  --sf: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}
* { box-sizing: border-box; }
html { background: var(--night); color: var(--ink); font: 16px/1.55 var(--sf); -webkit-font-smoothing: antialiased; text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; overflow-x: clip; background: radial-gradient(1100px 520px at 50% -160px, rgba(120, 130, 170, .16), transparent 70%) no-repeat, var(--night); }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--silver); outline-offset: 3px; border-radius: 6px; }
.defs { position: absolute; width: 0; height: 0; }
code { font: 500 .88em var(--mono); color: var(--silver); background: rgba(255, 255, 255, .06); padding: .1em .38em; border-radius: 5px; overflow-wrap: anywhere; }
p { margin: 0 0 14px; color: var(--dim); text-wrap: pretty; }
b { color: var(--ink); font-weight: 600; }
h1, h2, h3 { margin: 0; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.04; letter-spacing: -.032em; font-weight: 700; }
h2 { font-size: clamp(28px, 3vw, 38px); line-height: 1.1; letter-spacing: -.026em; font-weight: 700; margin-bottom: 18px; }
h3 { font-size: 21px; line-height: 1.25; letter-spacing: -.014em; font-weight: 650; }
h3.sub { font-size: 17px; margin: 34px 0 12px; }

/* header */
.top { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; padding: 12px clamp(20px, 4vw, 48px); background: rgba(7, 6, 15, .86); box-shadow: 0 1px 0 var(--hair); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; font-size: 17px; letter-spacing: -.01em; }
.brand img { border-radius: 22.5%; }
.alpha { font-size: 11.5px; font-weight: 600; letter-spacing: .02em; color: var(--steel); padding: 2px 8px; border-radius: 20px; box-shadow: inset 0 0 0 1px rgba(205, 212, 226, .42); }
.top nav { display: flex; gap: 26px; }
.top nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--dim); transition: color .2s; }
.top nav a:hover, .top nav a[aria-current] { color: var(--ink); }

/* layout: contents on the left from 1100 px */
.shell { max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); display: grid; grid-template-columns: 1fr; }
main { min-width: 0; }
main > section { padding-top: clamp(64px, 8vw, 104px); }
.toc { display: none; }
@media (min-width: 1100px) {
  .shell { grid-template-columns: 196px minmax(0, 1fr); gap: 56px; }
  .toc { display: block; position: sticky; top: 84px; align-self: start; max-height: calc(100vh - 100px); overflow-y: auto; padding: 44px 0 20px; font-size: 14px; scrollbar-width: none; }
  .toc a { display: block; padding: 4px 0; color: var(--i2); text-decoration: none; transition: color .15s; }
  .toc a:hover { color: var(--ink); }
  .toc > a { color: var(--dim); font-weight: 550; }
  .toc ol { list-style: none; margin: 2px 0 8px; padding: 0 0 0 12px; border-left: 1px solid var(--hair); counter-reset: t; }
  .toc ol a { font-size: 13.5px; padding: 3px 0; }
  .toc ol a::before { counter-increment: t; content: counter(t); display: inline-block; width: 20px; color: var(--i3); font-variant-numeric: tabular-nums; }
}

/* the agent prompt */
.intro { padding-top: clamp(48px, 7vw, 88px) !important; }
.appicon { display: block; width: 88px; height: 88px; margin-bottom: 26px; filter: drop-shadow(0 12px 30px rgba(0, 0, 0, .55)) drop-shadow(0 0 30px rgba(200, 212, 240, .1)); }
.intro h1 { max-width: 16ch; margin-bottom: 30px; }
.prompt { border-radius: 18px; background: linear-gradient(#121119, #0c0b12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .11), 0 30px 80px -30px rgba(0, 0, 0, .8); overflow: hidden; max-width: 820px; }
.prompt-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 10px 10px 18px; border-bottom: 1px solid var(--hair); font-size: 13.5px; color: var(--i2); }
.prompt pre { margin: 0; padding: 18px 20px 22px; font: 500 13.5px/1.62 var(--mono); color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.copy { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 0; border-radius: 9px; background: #f2f3f6; color: #0b0b10; font: 600 13.5px var(--sf); cursor: pointer; transition: background .15s; }
.copy:hover { background: #fff; }
.copy svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.copy.done { background: var(--green); color: #04130a; }
.cmd .copy { background: #24212f; color: var(--ink); }
.cmd .copy:hover { background: #2e2a3b; }

.agent-steps { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; max-width: 980px; }
.agent-steps li { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--hair); font-size: 14px; min-width: 0; }
.agent-steps div { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.agent-steps code { font-size: 12px; background: none; padding: 0; color: var(--dim); }
.agent-steps .dim { color: var(--i2); font-size: 13px; }
.n { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; font-weight: 650; background: rgba(255, 255, 255, .1); }

/* what you need */
.need { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tile { padding: 20px 18px; border-radius: 16px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--hair); display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; }
.tile > span:last-child { color: var(--i2); font-size: 13.5px; }
.tile .big { font-size: 30px; font-weight: 700; letter-spacing: -.03em; line-height: 1; margin-bottom: 8px; color: var(--ink) !important; }
.tile.wide { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 18px; flex-wrap: wrap; }
.mac-ic { width: 46px; height: 32px; margin-bottom: 6px; fill: none; stroke: var(--ink); stroke-width: 2; }
.mac-ic .nt { fill: var(--ink); stroke: none; }
.logos { display: flex; gap: 6px; flex-wrap: wrap; }
.pv { font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 8px; background: rgba(255, 255, 255, .08); color: var(--ink) !important; }
@media (max-width: 899px) { .need { grid-template-columns: 1fr 1fr; } }

/* install */
.cmd { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 8px 8px 8px 16px; border-radius: 14px; background: #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); margin: 0 0 22px; max-width: 820px; }
.cmd code { flex: 1; min-width: 0; background: none; padding: 0; font-size: 14px; color: var(--ink); }
pre.block { margin: 0 0 22px; padding: 16px 18px; border-radius: 14px; background: #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); font: 500 13px/1.7 var(--mono); color: var(--ink); overflow-x: auto; max-width: 820px; }
.facts { margin: 0; padding: 0 0 0 18px; color: var(--dim); font-size: 15px; }
.facts li { margin: 4px 0; }

/* the map of pages */
.map { list-style: none; margin: 26px 0 10px; padding: 0; display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); position: relative; }
.map::before { content: ""; position: absolute; left: 3.8%; right: 3.8%; top: 19px; height: 2px; background: linear-gradient(90deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .22), rgba(255, 255, 255, .06)); }
.map a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; font-size: 12.5px; color: var(--i2); padding-bottom: 26px; transition: color .15s; }
.map a:hover { color: var(--ink); }
.map i { font-style: normal; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 650; color: var(--ink); background: #1b1a24; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 0 0 5px var(--night); transition: background .15s; }
.map a:hover i { background: #26243200; background: #262434; }
.map svg { position: absolute; bottom: 0; width: 18px; height: 18px; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.map .dl svg, .k-dl { stroke: var(--blue); }
.map .you i { background: #2a1d08; box-shadow: inset 0 0 0 1.5px var(--orange), 0 0 0 5px var(--night), 0 0 22px rgba(255, 159, 10, .25); }
.map .you svg, .k-you { stroke: var(--orange); }
.legend { display: flex; gap: 22px; flex-wrap: wrap; font-size: 13.5px; color: var(--i2); margin: 6px 0 0; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend svg, .step .k-you { width: 17px; height: 17px; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 899px) {
  .map { grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: 14px; }
  .map::before { display: none; }
}
@media (max-width: 520px) { .map { grid-template-columns: repeat(5, minmax(0, 1fr)); } .map a { font-size: 11.5px; } .map i { width: 36px; height: 36px; } }

/* each step: words left, the real page right */
.step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); gap: clamp(24px, 3.4vw, 48px); align-items: start; padding: 48px 0; border-top: 1px solid var(--hair); }
.step:first-of-type { margin-top: 36px; }
.step h3 { display: flex; gap: 12px; align-items: baseline; margin-bottom: 16px; }
.step h3 i { flex: none; font-style: normal; font-size: 13px; font-weight: 650; color: var(--i2); width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; background: rgba(255, 255, 255, .08); transform: translateY(-3px); }
.step.you h3 i { background: #2a1d08; color: var(--orange); box-shadow: inset 0 0 0 1px var(--orange); }
.step .k-you { vertical-align: -3px; margin-right: 6px; }
.step figure { margin: 0; position: sticky; top: 90px; }
.step figure img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 24px 60px -20px rgba(0, 0, 0, .9); }
dl { margin: 0 0 14px; display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; font-size: 15px; }
dt { font-weight: 600; color: var(--ink); white-space: nowrap; }
dd { margin: 0; color: var(--dim); }
.note { font-size: 14px; color: var(--i2); }
.note b { color: var(--dim); }
@media (max-width: 899px) {
  .step { grid-template-columns: 1fr; }
  .step figure { position: static; order: -1; max-width: 560px; }
}
@media (max-width: 520px) { dl { grid-template-columns: 1fr; gap: 2px; } dd { margin-bottom: 10px; } }

/* tables */
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th { text-align: left; font-weight: 600; font-size: 12.5px; color: var(--i2); padding: 0 12px 8px 0; border-bottom: 1px solid var(--hair); }
td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--hair); color: var(--dim); vertical-align: top; }
td b { font-weight: 600; }
.r { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mini { margin: 4px 0 18px; }
.mini td:not(:first-child) { font-variant-numeric: tabular-nums; }
.perms td:first-child { width: 30%; }
.scroll { overflow-x: auto; margin: 0 0 8px; }
table.dl { min-width: 680px; }
table.dl td:first-child { color: var(--ink); font-weight: 550; white-space: nowrap; }
table.dl code, table.cli code { font-size: 12.5px; }
table.dl .sum td { color: var(--ink); font-weight: 650; border-bottom-color: rgba(255, 255, 255, .22); }
table.dl .opt td { color: var(--i2); }
table.dl .opt td:first-child { color: var(--dim); }
table.cli { min-width: 620px; }
table.cli td:first-child { width: 44%; }
table.cli code { white-space: nowrap; }
.flags td:last-child, .flags th:last-child { text-align: right; width: 52px; color: var(--i3); }

/* agents */
.routes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 8px 0 16px; }
.route { padding: 18px; border-radius: 16px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--hair); display: flex; flex-direction: column; gap: 2px; }
.route b { font-size: 16px; }
.route span { font-size: 13px; color: var(--green); margin-bottom: 8px; }
.route p { font-size: 13.5px; margin: 0; }
.route.alt { background: transparent; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.route.alt span { color: var(--steel); }
@media (max-width: 1099px) { .routes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .routes { grid-template-columns: 1fr 1fr; } }

/* checks */
.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.checks li { display: flex; gap: 12px; padding: 16px 18px; border-radius: 14px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--hair); font-size: 14.5px; color: var(--dim); }
.checks svg { flex: none; width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--green); fill: none; stroke: #04130a; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 720px) { .checks { grid-template-columns: 1fr; } }

.marks { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 18px; font-size: 13.5px; color: var(--i2); }
.marks b { display: inline-block; min-width: 62px; color: var(--dim); font-weight: 550; }

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.rules { margin: 0; padding-left: 20px; color: var(--dim); font-size: 14.5px; }
.rules li { margin-bottom: 8px; }
.codes td:first-child { width: 44px; }
@media (max-width: 899px) { .pair { grid-template-columns: 1fr; gap: 0; } }

/* footer */
.foot { margin-top: clamp(90px, 10vw, 140px); padding: 34px clamp(20px, 4vw, 48px) 44px; border-top: 1px solid var(--hair); }
.fr { max-width: 1240px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 18px 40px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot nav a, .foot p a { color: var(--dim); text-decoration: none; font-size: 15px; }
.foot nav a:hover, .foot p a:hover { color: var(--ink); }
.foot p { margin: 0; font-size: 15px; color: var(--i3); }

@media (max-width: 600px) {
  .hide-s { display: none; }
  html { font-size: 15.5px; }
  .prompt pre { font-size: 12.5px; padding: 16px; }
  .cmd { flex-wrap: wrap; } .cmd code { white-space: normal; }
  .agent-steps { grid-template-columns: 1fr; }
}

/* round 2 */
.agent-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; }
.agent-steps code { font-size: 12.5px; overflow-wrap: break-word; }
.mini td { white-space: nowrap; }
.perms td { white-space: normal; }
.perms td:first-child { width: 42%; }
.why { display: block; margin-top: 3px; font-size: 13px; color: var(--i2); }
table.flags { min-width: 0; }
table.flags td:first-child, table.flags th:first-child { width: 30%; }
.flags code { font-size: 12.5px; }
@media (max-width: 600px) {
  .agent-steps { grid-template-columns: 1fr; }
  .marks { grid-template-columns: 1fr; }
  .routes { grid-template-columns: 1fr; }
  .scroll { overflow: visible; }
  table.dl, table.cli, table.flags { min-width: 0; }
  table.dl thead, table.cli thead, table.flags thead, .perms thead { display: none; }
  table.dl tr, table.cli tr, table.flags tr, .perms tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--hair); }
  table.dl td, table.cli td, table.flags td, .perms td { display: block; border: 0; padding: 2px 0; width: auto !important; text-align: left; white-space: normal; }
  table.cli code { white-space: normal; }
  table.dl td.r { color: var(--ink); }
  table.dl .sum td:empty, table.dl td:empty { display: none; }
  .flags td:last-child:not(:empty)::before { content: "Step "; }
  .flags td:nth-child(3):not(:empty)::before { content: "Default: "; color: var(--i3); }
  .perms td:last-child { color: var(--dim); }
}
.codes td { white-space: normal; } .pair > div { min-width: 0; }
.map .ok i { background: #0b2414; box-shadow: inset 0 0 0 1.5px var(--green), 0 0 0 5px var(--night); }
.rows td { white-space: normal; }
@media (max-width: 600px) { .rows thead { display: none; } .rows tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--hair); } .rows td { display: block; border: 0; padding: 1px 0; } }
.intro .agent-steps + .note { margin-top: 16px; max-width: 820px; }
pre.block.wrap { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12.5px; }
