/*
 * The API's pages (/developers, /developers/sandbox), on top of help.css. The homepage's hand:
 * a picture in a band, then ruled paper. The only dark things below the band are the consoles,
 * because code is easier to tell from prose on night.
 *
 *   .dcols      the reference: what's on the page down the left, the calls beside it
 *   .ep         one call: its words on the left, its console on the right, kept in view
 *   .ln         the call's address, with its moving parts as controls
 *   .pk         the platform picker (assets/js/dev-kit.js)
 *   .con        a console: the code, Run, the answer
 *   .sbx        the sandbox: three numbered rows, a key, the answer in words
 */
.dev { --f-code: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace; --night-2: #1B1611; }
.dev-jump { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.dev-jump svg { width: 12px; height: 12px; }
.dev-jump:hover { text-decoration: underline; text-underline-offset: 3px; }
.dev-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.dev .ahero { min-height: clamp(260px, 26vw, 340px); }

/* a method, as a small flat tag */
.ep__m { display: inline-block; flex: none; min-width: 40px; padding: 3px 6px 2px; border-radius: 4px; background: var(--ink); color: var(--paper); font: 700 10.5px/1.3 var(--f-tag); font-style: normal; letter-spacing: .06em; text-align: center; }
.ep__m--post { background: var(--signal); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }

/* ---- the reference's two sides */
.dcols { display: grid; grid-template-columns: 208px minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; padding-top: 34px; padding-bottom: clamp(56px, 7vw, 96px); }
.dnav .hside__k { display: block; margin: 22px 0 8px; }
.dnav .hside__k:first-child { margin-top: 0; }
.dnav ol { border-left: 1px solid var(--rule); }
.dnav ol a { position: relative; display: flex; align-items: center; gap: 8px; padding: 6px 0 6px 14px; font-size: 14px; line-height: 1.35; color: var(--graphite); transition: color .12s; }
.dnav ol a:hover { color: var(--ink); }
.dnav ol a[aria-current] { color: var(--ink); font-weight: 650; }
.dnav ol a[aria-current]::before { content: ""; position: absolute; left: -4px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; background: var(--signal); box-shadow: 0 0 0 1.5px var(--ink); }
.dnav .ep__m { min-width: 34px; padding: 2px 4px 1px; font-size: 9px; opacity: .85; }
.dnav .hrail__box .btn { width: 100%; }

/* ---- which key the page is using */
.dmode { position: sticky; top: 84px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 34px; padding: 10px 14px; border-radius: var(--r-2); border: 1px solid var(--rule); background: color-mix(in srgb, var(--white) 92%, transparent); backdrop-filter: blur(8px); }
.dmode.is-live { border-color: var(--ink); }
.dmode > .label { flex: 1 1 280px; color: var(--graphite); line-height: 1.5; }
.dmode > .label b { margin-right: 10px; padding: 2px 6px 1px; border-radius: 4px; background: var(--signal); color: var(--ink); }
.dmode.is-live > .label b { background: var(--ink); color: var(--paper); }
.dmode__seg { display: inline-flex; padding: 3px; border-radius: 9px; background: rgba(23, 19, 15, .07); }
.dmode__seg button { height: 30px; padding: 0 12px; border: 0; border-radius: 7px; background: none; font: 600 13.5px/1 var(--f-sans); color: var(--graphite); cursor: pointer; }
.dmode__seg button[aria-checked="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgba(23, 19, 15, .16); }
.dmode__key input { width: 250px; max-width: 100%; height: 36px; padding: 0 12px; border: 1.5px solid var(--ink); border-radius: 8px; background: var(--white); font: 500 14px/1 var(--f-code); color: var(--ink); outline: none; }
.dmode__key input:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--signal) 55%, transparent); }

/* ---- the words */
.dsec { margin-top: 0; padding-bottom: 12px; }
.dsec + .dsec, .ep + .dsec { margin-top: 64px; }
.dsec > h2:first-child, .dev .prose.dsec > h2:first-child { margin-top: 0; }
.dsec { max-width: 720px; }
.dnote { margin-top: 14px; font-size: 15px; line-height: 1.55; color: var(--graphite); }
.dcopy { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.dspec th small { display: block; margin-top: 2px; font: 500 11px/1.4 var(--f-tag); letter-spacing: .05em; text-transform: uppercase; color: var(--graphite); }
.dspec th { width: 34%; }
.dev .spec td, .dev .spec th { font-size: 15px; line-height: 1.5; }

/* ---- a call: its words, its console */
.ep { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(24px, 3vw, 44px); align-items: start; margin-top: 72px; padding-top: 40px; border-top: 1.5px solid var(--ink); }
.ep__k { display: flex; align-items: center; gap: 10px; color: var(--graphite); }
.ep__k code { padding: 0; border: 0; background: none; font: 500 13.5px/1.4 var(--f-code); letter-spacing: 0; text-transform: none; color: var(--ink-2); }
.ep__text h2 { margin-top: 12px; font-size: 28px; line-height: 1.15; font-weight: 700; letter-spacing: -.022em; }
.ep__lead { margin-top: 10px; font-size: 17px; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.ep__text h3 { margin-top: 30px; font: 600 11px/1.5 var(--f-tag); letter-spacing: .1em; text-transform: uppercase; color: var(--graphite); }
.ep__text .tablewrap { margin-top: 8px; }
.ep__con { position: sticky; top: 150px; }

/* the call's address, its moving parts as controls */
.ep__line { margin-top: 22px; }
.ln { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 3px; padding: 12px 14px; border-radius: var(--r-2); border: 1.5px solid var(--ink); background: var(--white); }
.ln + .ln { margin-top: -1.5px; border-top-style: dashed; border-radius: 0 0 var(--r-2) var(--r-2); }
.ln:has(+ .ln) { border-radius: var(--r-2) var(--r-2) 0 0; }
.ln > .ep__m { margin-right: 8px; }
.ln code { padding: 0; border: 0; background: none; font: 500 14.5px/1.5 var(--f-code); color: var(--ink); white-space: nowrap; }
.ln__in { height: 34px; padding: 0 10px; border: 1.5px solid rgba(23, 19, 15, .28); border-radius: 8px; background: var(--card); font: 500 14.5px/1 var(--f-code); color: var(--ink); outline: none; max-width: 100%; }
.ln__in:focus, .ln__sel select:focus { border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--signal) 55%, transparent); }
.ln__sel select { height: 34px; padding: 0 28px 0 10px; border: 1.5px solid rgba(23, 19, 15, .28); border-radius: 8px; background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='m1.5 1.5 4.5 4.5 4.5-4.5' fill='none' stroke='%2317130F' stroke-width='1.8'/%3E%3C/svg%3E") right 9px center / 10px no-repeat; font: 500 14.5px/1 var(--f-code); color: var(--ink); appearance: none; cursor: pointer; outline: none; }
.ln__opt { display: inline-flex; align-items: center; gap: 3px; opacity: .55; transition: opacity .15s; }
.ln__opt:focus-within, .has-by .ln__opt { opacity: 1; }
.ln__id { color: var(--graphite) !important; }
.ln__hint { margin-top: 8px; color: var(--graphite); }

/* ---- a platform's mark, and the picker */
.pico { position: relative; display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; overflow: hidden; }
.pico svg, .pico img { display: block; width: 100%; height: 100%; }
.pico--site { border-radius: 6px; background: var(--paper-2); box-shadow: inset 0 0 0 1px rgba(23, 19, 15, .14); }
.pico--site i { font: 700 12px/1 var(--f-sans); font-style: normal; color: var(--ink-2); }
.pico--site img { position: absolute; inset: 0; object-fit: cover; background: var(--white); }
.pico--lg { width: 34px; height: 34px; }
.pico--lg.pico--site { border-radius: 9px; }
.pk { position: relative; display: inline-block; }
.pk__btn { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px 0 6px; border: 1.5px solid var(--ink); border-radius: 8px; background: var(--signal); font: 650 14.5px/1 var(--f-sans); color: var(--ink); cursor: pointer; transition: box-shadow .12s; }
.pk__btn:hover, .pk.is-open .pk__btn { box-shadow: 2px 2px 0 var(--ink); }
.pk__btn b { font-weight: 650; white-space: nowrap; }
.pk__caret { width: 10px; height: 7px; margin-left: 2px; }
.pk__pop { position: absolute; z-index: 40; left: 0; top: calc(100% + 8px); width: min(340px, calc(100vw - 32px)); border: 1.5px solid var(--ink); border-radius: var(--r-3); background: var(--white); box-shadow: 4px 4px 0 var(--ink); overflow: hidden; }
.pk__pop[hidden] { display: none; }
.pk__find { display: flex; align-items: center; gap: 9px; padding: 0 12px; border-bottom: 1px solid var(--rule); }
.pk__find svg { width: 14px; height: 14px; color: var(--graphite); }
.pk__find input { flex: 1; min-width: 0; height: 42px; border: 0; background: none; font: 400 15px/1 var(--f-sans); color: var(--ink); outline: none; }
.pk__list { max-height: 288px; margin: 0; padding: 5px; overflow-y: auto; list-style: none; overscroll-behavior: contain; scrollbar-width: thin; }
.pk__list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 9px; border-radius: 8px; cursor: pointer; }
.pk__list li.is-at { background: rgba(23, 19, 15, .06); }
.pk__list li[aria-selected="true"] b::after { content: " ✓"; }
.pk__list b { display: block; font: 600 14.5px/1.25 var(--f-sans); color: var(--ink); }
.pk__list small { display: block; font-size: 12.5px; color: var(--graphite); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk__list em { font: 500 10.5px/1.3 var(--f-tag); font-style: normal; letter-spacing: .05em; text-transform: uppercase; color: var(--graphite); white-space: nowrap; }
.pk__none { display: block !important; padding: 16px 10px !important; color: var(--graphite); cursor: default !important; }
.pk__n { margin: 0; padding: 8px 14px; border-top: 1px solid var(--rule); font: 500 10.5px/1.4 var(--f-tag); letter-spacing: .06em; text-transform: uppercase; color: var(--graphite); }

/* ---- a console */
.con { border-radius: var(--r-3); border: 1.5px solid var(--ink); background: var(--desk); color: #F3EFE4; overflow: hidden; }
.con__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px 8px 8px; border-bottom: 1px solid rgba(243, 239, 228, .12); }
.con__tabs { display: flex; gap: 2px; }
.con__tabs button { height: 28px; padding: 0 10px; border: 0; border-radius: 6px; background: none; font: 600 12.5px/1 var(--f-sans); color: rgba(243, 239, 228, .6); cursor: pointer; }
.con__tabs button:hover { color: #F3EFE4; }
.con__tabs button[aria-selected="true"] { background: rgba(243, 239, 228, .12); color: #F3EFE4; }
.con__copy { height: 26px; padding: 0 9px; border: 1px solid rgba(243, 239, 228, .22); border-radius: 6px; background: none; font: 600 12px/1 var(--f-sans); color: rgba(243, 239, 228, .8); cursor: pointer; }
.con__copy:hover { border-color: rgba(243, 239, 228, .6); color: #F3EFE4; }
.con pre { margin: 0; overflow-x: auto; scrollbar-width: thin; scrollbar-color: rgba(243, 239, 228, .25) transparent; }
.con code { display: block; padding: 0; border: 0; background: none; font: 400 12.5px/1.65 var(--f-code); color: #EDE7D8; white-space: pre; tab-size: 2; }
.con__code { padding: 14px 16px; }
.con__go { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-top: 1px solid rgba(243, 239, 228, .12); border-bottom: 1px solid rgba(243, 239, 228, .12); background: var(--night-2); }
.con__run { height: 32px; padding: 0 14px; border: 1.5px solid #0A0704; border-radius: 8px; background: var(--signal); font: 700 13.5px/1 var(--f-sans); color: var(--ink); cursor: pointer; }
.con__run:hover { background: var(--signal-hover); }
.con.is-busy .con__run { opacity: .6; pointer-events: none; }
.con__stat { display: inline-flex; align-items: center; gap: 10px; color: rgba(243, 239, 228, .62); }
.con__stat b { padding: 2px 6px 1px; border-radius: 4px; background: #1F5E45; color: #E8FFF3; font-weight: 700; }
.con.is-bad .con__stat b, .con__stat b:empty { background: #7A2E1F; color: #FFEDE6; }
.con__stat i { font-style: normal; }
.con__res { max-height: 380px; padding: 14px 16px; overflow: auto; }
.con__res:empty, .con__res code:empty { min-height: 0; }
.con__res:has(code:empty) { display: none; }
.con.is-busy .con__res { opacity: .5; }
.j-k { font-style: normal; color: #F3EFE4; }
.j-s { font-style: normal; color: #FFD84D; }
.j-d, .j-b { font-style: normal; color: #F2A65A; }
.j-n { font-style: normal; color: rgba(243, 239, 228, .5); }
.con--flat { margin-top: 14px; }

/* ---- your keys */
.dkeys { margin-top: 22px; padding-top: 18px; border-top: 1.5px solid var(--ink); }
.dkeys__none, .dkeys__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0; }
.dkeys__none b, .dkeys__head b { font-size: 17px; font-weight: 700; color: var(--ink); }
.dkeys__none span { flex: 1 1 260px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.dkeys__head .label { color: var(--graphite); }
.dkeys__list { margin: 12px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.dev .prose .dkeys__list > li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.dev .prose .dkeys__list > li::before { content: none; }
.dkeys__list span { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.dkeys__list b { font-weight: 650; color: var(--ink); }
.dkeys__list small { grid-column: 1; color: var(--graphite); }
.dkeys__list .btn { grid-row: 1 / span 2; grid-column: 2; }
.dkeys__empty { margin-top: 10px; font-size: 15px; color: var(--graphite); }
.dkeys__make { display: flex; gap: 8px; margin-top: 14px; }
.dkeys__make input { flex: 1; min-width: 0; height: 38px; padding: 0 12px; border: 1.5px solid rgba(23, 19, 15, .25); border-radius: 8px; background: var(--white); font: 400 15px/1 var(--f-sans); color: var(--ink); outline: none; }
.dkeys__make input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--signal) 55%, transparent); }
.dkeys__new { margin-top: 14px; padding: 14px 16px; border: 1.5px solid var(--ink); border-radius: var(--r-2); background: var(--white); }
.dkeys__new .hcode { margin: 8px 0 0; border: 0; padding: 0; background: none; }
.dkeys__new code { font-family: var(--f-code); font-size: 13.5px; overflow-wrap: anywhere; white-space: normal; }
.dkeys__use { margin-top: 10px; padding: 0; border: 0; background: none; font: 600 14px/1.3 var(--f-sans); color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.dkeys .alert { margin-top: 12px; }

/* ---- the sandbox */
.sbx { padding-top: 26px; padding-bottom: clamp(56px, 7vw, 96px); }
.sbx__load { padding: 40px 0; color: var(--graphite); }
.sbx__strip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 14px; border-radius: var(--r-2); border: 1px solid var(--rule); background: var(--white); color: var(--graphite); line-height: 1.5; }
.sbx__strip b { padding: 2px 6px 1px; border-radius: 4px; background: var(--signal); color: var(--ink); }
.sbx__cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr); gap: clamp(28px, 4.4vw, 64px); align-items: start; margin-top: 30px; }
.sbx__form { border-top: 1.5px solid var(--ink); }
.sbx__row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 18px; padding: 22px 0 24px; border-bottom: 1px solid var(--rule); }
.sbx__row[hidden] { display: none; }
.sbx__row > .tagn { align-self: start; margin-top: 3px; }
.sbx__q { margin: 0 0 12px; font-size: 19px; font-weight: 700; line-height: 1.25; letter-spacing: -.012em; color: var(--ink); }
.sbx__seg { display: grid; gap: 8px; }
.sbx__seg button { display: grid; gap: 2px; padding: 12px 14px 12px 42px; position: relative; border: 1.5px solid rgba(23, 19, 15, .2); border-radius: var(--r-2); background: var(--white); text-align: left; color: var(--ink); cursor: pointer; transition: border-color .12s; }
.sbx__seg button::before { content: ""; position: absolute; left: 14px; top: 15px; width: 16px; height: 16px; border: 1.5px solid var(--ink); border-radius: 50%; background: var(--white); }
.sbx__seg button:hover { border-color: rgba(23, 19, 15, .55); }
.sbx__seg button[aria-checked="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.sbx__seg button[aria-checked="true"]::before { background: radial-gradient(var(--ink) 0 4px, var(--signal) 4.5px); }
.sbx__seg b { font: 650 16px/1.3 var(--f-sans); }
.sbx__seg small { font-size: 14px; line-height: 1.4; color: var(--graphite); }
.sbx .pk__btn { height: 46px; padding: 0 14px 0 9px; font-size: 16.5px; border-radius: 10px; }
.sbx .pk__btn .pico { width: 28px; height: 28px; }
.sbx__who { display: grid; gap: 10px; }
.sbx__by { display: inline-flex; justify-self: start; padding: 3px; border-radius: 10px; background: rgba(23, 19, 15, .07); }
.sbx__by button { height: 32px; padding: 0 13px; border: 0; border-radius: 7px; background: none; font: 600 14px/1 var(--f-sans); color: var(--graphite); cursor: pointer; }
.sbx__by button[aria-checked="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgba(23, 19, 15, .16); }
.sbx__in { width: 100%; height: 50px; padding: 0 14px; border: 1.5px solid var(--ink); border-radius: 10px; background: var(--white); font: 500 17px/1 var(--f-sans); color: var(--ink); outline: none; }
.sbx__in:focus { box-shadow: 0 0 0 4px color-mix(in srgb, var(--signal) 55%, transparent); }
.sbx__ex { margin: 10px 0 0; color: var(--graphite); }
.sbx__ex button { padding: 0; border: 0; background: none; font: inherit; letter-spacing: 0; text-transform: none; font-family: var(--f-sans); font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.sbx__go { display: flex; align-items: center; gap: 16px; padding-top: 22px; }
.sbx__go .label { color: var(--graphite); }
.sbx__go .btn[disabled] { opacity: .6; pointer-events: none; }

.sbx__out { position: sticky; top: 96px; padding-top: 22px; border-top: 1.5px solid var(--ink); min-height: 300px; }
.sbx__empty .label, .sbx__say .label { color: var(--graphite); }
.sbx__empty p + p { margin-top: 10px; max-width: 34em; font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.sbx__say h2 { display: flex; align-items: flex-start; gap: 12px; margin-top: 10px; font-size: clamp(22px, 2.3vw, 28px); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; color: var(--ink); text-wrap: balance; overflow-wrap: anywhere; }
.sbx__say h2 .pico { margin-top: -1px; }
.sbx__say p:last-child { margin-top: 10px; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.sbx__say--yes h2 span, .sbx__say--yes > h2:not(:has(span)) { background: linear-gradient(var(--signal), var(--signal)) 0 88% / 100% 30% no-repeat; }
.sbx__fields { margin: 16px 0 0; border-top: 1px solid var(--rule); }
.sbx__fields div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.sbx__fields dt { color: var(--graphite); padding-top: 2px; }
.sbx__fields dd { margin: 0; font-size: 16px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.sbx__print { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 14px 0 0; color: var(--graphite); }
.sbx__print code { font-family: var(--f-code); letter-spacing: 0; }
.sbx__plats { margin: 16px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); max-height: 420px; overflow-y: auto; scrollbar-width: thin; }
.sbx__plats li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--rule); }
.sbx__plats b { display: block; font: 650 15.5px/1.3 var(--f-sans); color: var(--ink); }
.sbx__plats small { display: block; font-size: 13.5px; line-height: 1.4; color: var(--graphite); }
.sbx__plats em { font-style: normal; color: var(--graphite); }
.sbx__plats .pico { width: 26px; height: 26px; }
.sbx__leads { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 16px 0 0; }
.sbx__leads .label { color: var(--graphite); }
.sbx__leads small { flex-basis: 100%; font-size: 13.5px; color: var(--graphite); }
.sbx__behind { margin-top: 26px; border-top: 1.5px solid var(--ink); }
.sbx__behind summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; cursor: pointer; list-style: none; }
.sbx__behind summary::-webkit-details-marker { display: none; }
.sbx__behind summary::after { content: ""; flex: none; width: 9px; height: 9px; margin-right: 4px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform .15s; }
.sbx__behind[open] summary::after { transform: rotate(-135deg); }
.sbx__behind summary b { display: block; font-size: 17px; font-weight: 700; color: var(--ink); }
.sbx__behind summary small { display: block; margin-top: 2px; font-size: 14px; color: var(--graphite); }
.sbx__next { margin: 14px 0 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.sbx__next a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1180px) {
  .ep { grid-template-columns: minmax(0, 1fr); }
  .ep__con { position: static; }
}
@media (max-width: 900px) {
  .dcols { grid-template-columns: minmax(0, 1fr); }
  .dnav { display: none; }
  .dmode { top: 76px; }
  .sbx__cols { grid-template-columns: minmax(0, 1fr); }
  .sbx__out { position: static; }
}
@media (max-width: 560px) {
  .ln { padding: 10px; }
  .ln code, .ln__in, .ln__sel select { font-size: 13.5px; }
  .dmode__key, .dmode__key input { width: 100%; }
  .sbx__fields div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .dkeys__make { flex-direction: column; }
}
