/* An interactive API journey: the examples are illustrative, not live responses. */
.inner-page .case-workflow.api-flow{background:#080808;padding:145px 0 130px;overflow:hidden}
.api-flow .section-intro{display:block;text-align:center;max-width:760px;margin:0 auto 74px}
.inner-page .api-flow .section-intro h2{font-size:clamp(40px,4.2vw,58px);line-height:1.13;letter-spacing:-.035em;font-weight:400;margin:0}
.inner-page .api-flow .section-intro h2 span{color:#a9a9a9}
.inner-page .api-flow .section-intro p{font-size:17px;line-height:1.6;max-width:600px;margin:24px auto 0;color:#aaa}
.flow-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));position:relative;margin:0 0 62px}
.flow-steps:before{content:"";position:absolute;top:10px;left:16.666%;right:16.666%;height:1px;background:#363636}
.flow-steps:after{content:"";position:absolute;top:10px;left:16.666%;width:calc(var(--flow-progress,0) * 33.333%);height:1px;background:#c9c9c9;transition:width .45s cubic-bezier(.22,1,.36,1);pointer-events:none}
.flow-step{appearance:none;background:none;border:0;color:#888;font:inherit;position:relative;text-align:center;padding:0 20px;cursor:pointer;min-width:0}
.flow-dot{display:block;position:relative;z-index:1;width:21px;height:21px;border:2px solid #777;background:#080808;border-radius:50%;margin:0 auto 23px;transition:border-color .25s,box-shadow .25s,background-color .25s}
.flow-step[aria-selected="true"] .flow-dot{border:6px solid #f1f1f1;box-shadow:0 0 0 7px #282828}
.flow-step.is-complete .flow-dot{border-color:#dedede;background:#dedede}
.flow-step:focus-visible{outline:2px solid white;outline-offset:8px;border-radius:4px}
.flow-number,.flow-title,.flow-description{display:block}.flow-number{font:12px/1.2 ui-monospace,SFMono-Regular,Menlo,monospace;color:#777;letter-spacing:.08em;margin-bottom:12px}
.flow-title{font-size:19px;line-height:1.25;font-weight:500;color:#8c8c8c;transition:color .25s}.flow-step[aria-selected="true"] .flow-title,.flow-step.is-complete .flow-title{color:#f4f4f4}.flow-step[aria-selected="true"] .flow-number{color:#ddd}
.flow-description{font-size:14px;line-height:1.55;max-width:300px;margin:10px auto 0;color:#898989}.flow-step[aria-selected="true"] .flow-description{color:#b9b9b9}
.flow-panels{border:1px solid #303030;border-radius:8px;overflow:hidden;background:#111}
.flow-panel[hidden]{display:none}.flow-panel+.flow-panel{border-top:1px solid #303030}
.flow-panel-bar{min-height:57px;padding:16px 22px;display:flex;align-items:center;justify-content:space-between;gap:16px;background:#181818;border-bottom:1px solid #303030}
.flow-panel-bar>div{display:flex;align-items:baseline;gap:13px;min-width:0}.flow-panel-bar code{font:13px/1.4 ui-monospace,SFMono-Regular,Menlo,monospace;color:#e7e7e7;overflow-wrap:anywhere}.flow-method{color:#b7c9c0;font:12px/1.4 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.05em}.flow-example{font:12px/1.4 Inter,sans-serif;color:#999;text-align:right}
.flow-code-grid{display:grid;grid-template-columns:1.1fr .9fr}.flow-code-side{padding:25px 24px 28px;min-width:0}.flow-response{background:#191919;border-left:1px solid #303030}
.flow-code-label{display:flex;justify-content:space-between;gap:12px;color:#a4a4a4;font:11px/1.4 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.09em}.flow-code-label span{color:#909090;letter-spacing:0}
.flow-code-side pre{margin:24px 0 0;max-width:100%;overflow:auto;white-space:pre;scrollbar-color:#505050 transparent;color:#e5e5e5;font:13px/1.75 ui-monospace,SFMono-Regular,Menlo,monospace;tab-size:2}.flow-code-side pre:focus-visible{outline:2px solid #aaa;outline-offset:5px}
.inner-page .api-flow .case-workflow-link{margin-top:36px;color:#eee}
@media(max-width:700px){.inner-page .case-workflow.api-flow{padding:90px 0}.api-flow .section-intro{margin-bottom:52px}.inner-page .api-flow .section-intro h2{font-size:38px}.inner-page .api-flow .section-intro p{font-size:16px}.flow-steps{margin-bottom:42px}.flow-step{padding:0 4px}.flow-dot{width:18px;height:18px;margin-bottom:19px}.flow-steps:before,.flow-steps:after{top:8px}.flow-step[aria-selected="true"] .flow-dot{border-width:5px;box-shadow:0 0 0 5px #282828}.flow-number{font-size:11px}.flow-title{font-size:14px}.flow-description{display:none}.flow-panel-bar{align-items:flex-start;flex-direction:column;gap:8px;padding:15px 16px}.flow-example{text-align:left}.flow-code-grid{grid-template-columns:1fr}.flow-code-side{padding:20px 16px 24px}.flow-response{border-left:0;border-top:1px solid #303030}.flow-code-side pre{font-size:12px;margin-top:18px}.inner-page .api-flow .case-workflow-link{margin-top:30px}}
@media(prefers-reduced-motion:reduce){.flow-steps:after,.flow-dot,.flow-title{transition:none}}
@media(min-width:701px){.flow-code-side{min-height:350px}}
/* A quiet terminal frame keeps the code itself as the focal point. */
.flow-panels{background:#111314;border-color:#303435;border-radius:12px;box-shadow:0 20px 60px rgba(0,0,0,.16)}
.terminal-chrome{height:52px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:0 19px;background:#222526;border-bottom:1px solid #393939;color:#b0b0b0;font:12px/1.2 -apple-system,BlinkMacSystemFont,Inter,sans-serif;letter-spacing:.01em}
.terminal-lights{display:flex;gap:7px;align-items:center}.terminal-lights i{display:block;width:10px;height:10px;border-radius:50%;background:#e06a62}.terminal-lights i:nth-child(2){background:#d7ac55}.terminal-lights i:nth-child(3){background:#63b67b}
.terminal-chrome-divider{color:#767676;margin:0 3px}.terminal-shell{justify-self:end;color:#7a7a7a;font:11px/1.2 ui-monospace,SFMono-Regular,Menlo,monospace}
.flow-panel-bar{min-height:54px;padding:14px 22px;background:#1b1b1b;border-bottom:1px solid #303435}.flow-panel-bar code{font-size:13px;color:#dfdfdf}.flow-method{color:#a6c2b2}
.flow-code-grid{background:#111314}.flow-code-side{padding:25px 26px 30px}.flow-response{background:#171717;border-color:#2f2f2f}
.flow-code-label{align-items:center;color:#a8a8a8;font-size:11px;letter-spacing:.07em}.flow-code-label>span:first-child{color:#a8a8a8}.terminal-label-separator{color:#5a5a5a!important;margin:0 5px}
.terminal-copy{appearance:none;border:1px solid #454545;background:#232323;color:#cbcbcb;border-radius:5px;padding:5px 9px;font:11px/1.2 ui-monospace,SFMono-Regular,Menlo,monospace;cursor:pointer}.terminal-copy:hover{background:#2d2d2d;color:#fff}.terminal-copy:focus-visible{outline:2px solid #dfdfdf;outline-offset:3px}.terminal-copy[hidden]{display:none}
.terminal-response-badge{display:inline-flex;gap:4px;align-items:center;color:#a8cbb4!important;background:#23302a;border-radius:4px;padding:4px 7px;font-size:10px;letter-spacing:0}.terminal-response-badge span{color:inherit!important}
.flow-code-side pre{position:relative;margin-top:26px;color:#e1e1e1;line-height:1.8;font-size:13px}.flow-code-side:not(.flow-response) pre{padding-left:18px}.flow-code-side:not(.flow-response) pre:before{content:'$';position:absolute;left:0;top:0;color:#8ca595;user-select:none}
.token-key{color:#a6bfd0}.token-string,.token-shell-string{color:#a9c8ac}.token-number,.token-literal{color:#cbb9d4}.token-command{color:#e7e7e7}.token-option{color:#a6bfd0}
@media(max-width:700px){.terminal-chrome{height:48px;padding:0 15px}.terminal-lights{gap:6px}.terminal-lights i{width:9px;height:9px}.flow-panel-bar{padding:14px 16px}.flow-code-side{padding:20px 16px 24px}.flow-code-side pre{font-size:12px}}
/* Match the site's black palette; keep syntax accents restrained. */
.flow-panels{background:#0d0d0d;border-color:#292929;box-shadow:none}
.terminal-chrome{background:#171717;border-color:#2a2a2a;color:#b0b0b0}
.terminal-lights i{background:#737373}.terminal-lights i:nth-child(2){background:#666}.terminal-lights i:nth-child(3){background:#595959}
.terminal-chrome-divider,.terminal-shell{color:#777}
.flow-panel-bar{background:#101010;border-color:#292929}
.flow-code-grid{background:#0a0a0a}.flow-response{background:#101010;border-color:#292929}
.terminal-copy{background:#1a1a1a;border-color:#333;color:#c7c7c7}.terminal-copy:hover{background:#272727}
.terminal-response-badge{background:#202020;color:#c6c6c6!important}
/* Syntax colors inspired by a dark editor, with the black UI kept neutral. */
.token-command{color:#ff7b78}
.token-option{color:#e9c879}
.token-key{color:#d8dde8}
.token-string,.token-shell-string{color:#83b9f6}
.token-number{color:#efc17d}
.token-literal{color:#c49afa}
.token-shell-param{color:#b1b5bc}
.token-param-name{color:#e7c97f}
.token-param-value{color:#a9c2f6}
/* The copy action uses the rounded control style from the reference. */
.terminal-copy{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:38px;padding:8px 15px;border:0;border-radius:999px;background:#252525;color:#f2f2f2;font:500 13px/1 Inter,-apple-system,BlinkMacSystemFont,sans-serif;transition:background-color .2s ease,color .2s ease}
.terminal-copy::before{content:'';width:16px;height:16px;flex:none;background:center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23e8e8e8' stroke-width='1.6' stroke-linejoin='round'%3E%3Crect x='6.8' y='6.8' width='10.5' height='10.5' rx='2'/%3E%3Cpath d='M13.2 6.8V4.7a2 2 0 0 0-2-2H4.7a2 2 0 0 0-2 2v6.5a2 2 0 0 0 2 2h2.1'/%3E%3C/svg%3E")}
.terminal-copy:hover{background:#373737;color:#fff}.terminal-copy:active{background:#454545}
.terminal-copy[hidden]{display:none}
@media(prefers-reduced-motion:reduce){.terminal-copy{transition:none}}
/* Quiet shell labels sit behind the command and its output. */
.flow-code-label{font:12px/1.3 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:0}
.flow-code-label>span:first-child{color:#757575}
/* macOS Terminal window chrome */
.terminal-chrome{height:52px;background:#303030;border-bottom:1px solid #171717;color:#bcbcbc;padding-inline:17px;font:600 13px/1 -apple-system,BlinkMacSystemFont,Inter,sans-serif}
.terminal-lights{gap:8px}.terminal-lights i{width:12px;height:12px;background:#ff5f57}.terminal-lights i:nth-child(2){background:#febc2e}.terminal-lights i:nth-child(3){background:#28c840}
.terminal-title{display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap}.terminal-title svg{width:17px;height:14px;flex:none}
@media(max-width:700px){.terminal-chrome{height:48px;padding-inline:14px;font-size:12px}.terminal-lights{gap:6px}.terminal-lights i{width:11px;height:11px}.terminal-title svg{width:15px;height:12px}}
/* Keep every node aligned with the same track regardless of text wrapping. */
.flow-steps{--flow-node-size:21px}
.flow-steps::before,.flow-steps::after{top:calc((var(--flow-node-size) - 1px) / 2)}
.flow-step{display:flex;flex-direction:column;align-items:center;justify-content:flex-start}
.flow-dot{width:var(--flow-node-size);height:var(--flow-node-size);flex:0 0 var(--flow-node-size)}
@media(max-width:700px){.flow-steps{--flow-node-size:18px}}
/* Only separate panels when multiple panels are visible without JavaScript. */
.flow-panel + .flow-panel{border-top:0}
.flow-panel:not([hidden]) ~ .flow-panel:not([hidden]){border-top:1px solid #303030}
