/* ============================================================
   CALLSWITCH ONE, as the CallSwitch One page's setup video draws it
   (Dom, 13 Nov 2026: "same page type as Street... header animation
   video... phone call post work flow... proper icons... exactly as it
   is"). Read live from v2.callswitchone.app on 13 Nov 2026: Inter, text
   #1A1A1A, the sidebar and header on #FAFAFA, the accent #EBEFF9, the
   primary #17234C (a hovered caller's avatar), red #DC2626 for an
   unanswered call, green #16A34A, amber #F59E0B, 8px corners (10px on
   a call row), Lucide icons at 16px with a 2px stroke:
     .cso-app    the CallSwitch One app: the sidebar (Contacts, Calls >
                 Call History, Parked Calls, Voicemails, Messages, More,
                 Settings), the header (Connect headset, Keypad,
                 Available) and Calls > Call History (All Calls)
     .cso-wh     the account's Web Hooks (Voice > Calls > Web Hooks),
                 drawn from CallSwitch One's help centre: New Call
                 Notification, Call Answered, Call Ended and Voicemail
                 Notify, each with the URL to receive the webhook, an
                 auth token and a sample body, and Save Changes
   Plus what this video adds to the Askpilot app (the CallSwitch One
   source's Connect window, as app.askpilot.com draws it on 13 Nov 2026)
   and the caller's iPhone in a call (iOS 26).
   Markup: tools/demos/callswitchone-setup.html; script:
   js/demos/callswitchone-setup.js.
   ============================================================ */
.dv-app.cso.dp-cur { display: block; background: #fff; font-family: Inter, -apple-system, 'Segoe UI', sans-serif; font-size: 14px; line-height: 20px; color: #1A1A1A; }
.cso svg { stroke-width: 2; }
.cso-page { display: none; position: absolute; inset: 0; }
.cso-page.dp-cur { display: flex; }

/* ---------- the app: the sidebar ---------- */
.cso-side { flex: none; display: flex; flex-direction: column; width: 256px; padding: 16px; box-sizing: border-box; background: #FAFAFA; box-shadow: inset -1px 0 2px -1px rgba(26, 26, 26, .1); transition: width .8s cubic-bezier(.3, .8, .2, 1), padding .8s cubic-bezier(.3, .8, .2, 1); overflow: hidden; white-space: nowrap; }
.cso-logo { display: flex; align-items: center; height: 44px; padding: 0 0 16px; }
.cso-logo img { width: 212px; height: auto; }
.cso-grp { display: flex; align-items: center; height: 32px; padding: 0 8px; font-size: 12px; line-height: 16px; font-weight: 500; color: rgba(26, 26, 26, .7); }
.cso-mi { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 8px; border-radius: 8px; }
.cso-mi + .cso-mi, .cso-sub + .cso-mi { margin-top: 8px; }
.cso-mi > svg { flex: none; width: 16px; height: 16px; color: #282624; }
.cso-mi > span { flex: 1; min-width: 0; }
.cso-mi > .cso-chev { width: 16px; height: 16px; color: #1A1A1A; }
.cso-mi.is-open { background: #EBEFF9; font-weight: 500; }
.cso-sub { display: grid; gap: 4px; margin: 8px 14px 0; padding: 0 10px; border-left: 1px solid rgba(26, 26, 26, .15); }
.cso-sub span { display: flex; align-items: center; height: 28px; padding: 0 8px; border-radius: 8px; }
.cso-sub span.is-cur { background: #EBEFF9; }
.cso-set { margin-top: auto; }

/* ---------- the app: the header and the page ---------- */
.cso-main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: #fff; }
.cso-head { flex: none; display: flex; align-items: center; gap: 8px; height: 52px; padding: 8px 16px; box-sizing: border-box; background: #FAFAFA; box-shadow: inset 0 -1px 2px -1px rgba(26, 26, 26, .1); }
.cso-tog { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 8px; }
.cso-tog svg { width: 20px; height: 20px; }
.cso-vsep { flex: none; width: 1px; height: 15px; margin: 0 4px 0 0; background: rgba(26, 26, 26, .1); }
.cso-crumb { display: flex; align-items: center; gap: 10px; color: rgba(26, 26, 26, .75); white-space: nowrap; }
.cso-crumb svg { width: 14px; height: 14px; }
.cso-crumb b { font-weight: 400; color: #1A1A1A; }
.cso-hbtns { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.cso-hb { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 22px; box-sizing: border-box; border: 1px solid rgba(26, 26, 26, .1); border-radius: 8px; background: #fff; font-weight: 500; white-space: nowrap; }
.cso-hb svg { width: 16px; height: 16px; }
.cso-hb-hs { border-color: #F59E0B; }
.cso-hb-hs i { position: absolute; right: -4px; top: -4px; width: 10px; height: 10px; box-sizing: border-box; border: 2px solid #FAFAFA; border-radius: 50%; background: #F59E0B; }
.cso-hb-kp { border-color: transparent; background: #EBEFF9; }
.cso-hb-av i { width: 8px; height: 8px; border-radius: 50%; background: #16A34A; }
.cso-me { position: relative; display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: #EBEFF9; font-size: 11px; font-weight: 600; }
.cso-me i { position: absolute; right: -1px; top: -1px; width: 8px; height: 8px; box-sizing: border-box; border: 1.5px solid #FAFAFA; border-radius: 50%; background: #16A34A; }

.cso-body { flex: 1; min-height: 0; padding: 28px 40px 0 56px; overflow: hidden; }
.cso-h1 { font-size: 24px; line-height: 32px; font-weight: 600; }
.cso-search { display: flex; align-items: center; gap: 8px; height: 36px; margin-top: 12px; padding: 0 9px; box-sizing: border-box; border: 1px solid rgba(26, 26, 26, .1); border-radius: 8px; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); color: rgba(26, 26, 26, .5); }
.cso-search svg { width: 16px; height: 16px; color: rgba(26, 26, 26, .4); }
.cso-chips { display: flex; gap: 8px; margin-top: 16px; }
.cso-chips span { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 999px; background: rgba(235, 239, 249, .5); font-size: 12px; line-height: 16px; font-weight: 500; }
.cso-day { margin: 0; padding: 16px 0; font-size: 16px; line-height: 24px; text-transform: uppercase; color: rgba(26, 26, 26, .8); }
.cso-list > .cso-day:first-child { padding-top: 16px; }

/* a call: the avatar, the number and where it is from, the time and how long */
.cso-call { position: relative; display: flex; align-items: center; gap: 16px; padding: 8px 16px; border-radius: 10px; transition: background-color .6s ease; }
.cso-av { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: #EBEFF9; color: #1A1A1A; transition: background-color .6s ease, color .6s ease; }
.cso-av svg { width: 18px; height: 18px; }
.cso-who { flex: 1; min-width: 0; }
.cso-who b { display: block; font-size: 16px; line-height: 24px; font-weight: 600; white-space: nowrap; }
.cso-who small { display: flex; align-items: center; gap: 8px; margin-top: 2px; font-size: 14px; color: rgba(26, 26, 26, .75); }
.cso-who small svg { width: 16px; height: 16px; }
.cso-when { flex: none; text-align: right; }
.cso-when b { display: block; font-size: 16px; line-height: 24px; font-weight: 600; }
.cso-when small { display: block; font-size: 14px; color: rgba(26, 26, 26, .8); }
.cso-call.is-miss .cso-who b { color: #DC2626; }
/* the call that just ended, as a hovered row: the accent, the avatar in the primary */
.cso-call.is-flash { background: #EBEFF9; }
.cso-call.is-flash .cso-av { background: #17234C; color: #fff; }
.cso-list > .dv-in.is-on { margin: 0; }

/* ---------- the account's Web Hooks (CallSwitch One's help centre) ---------- */
.cso-wh.dp-cur { display: block; padding: 22px 28px 0; box-sizing: border-box; background: #F2F4F7; font-family: Inter, 'Helvetica Neue', Arial, sans-serif; color: #2C3640; overflow: hidden; }
.cso-wh-h { display: flex; align-items: center; gap: 14px; height: 52px; padding: 0 18px; border-radius: 4px; background: #fff; }
.cso-wh-h b { font-size: 16px; font-weight: 600; }
.cso-wh-h i { width: 1px; height: 18px; background: #C9D0D6; }
.cso-wh-h span { font-size: 14px; color: #3D4852; }
.cso-wh-bar { display: flex; justify-content: flex-end; margin-top: 10px; padding: 10px 14px; border-radius: 4px; background: #fff; }
.cso-wh-save { display: inline-flex; align-items: center; height: 32px; padding: 0 18px; border-radius: 3px; background: #E3262F; font-size: 13px; font-weight: 500; color: #fff; transition: background-color .15s ease; }
.cso-wh-save.is-hover { background: #C81E26; }
.cso-wh-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.cso-wh-card { padding: 14px 16px 12px; border-radius: 4px; background: #fff; }
.cso-wh-card h5 { margin: 0; font-size: 15px; font-weight: 600; }
.cso-wh-l { display: block; margin-top: 12px; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.cso-wh-f { position: relative; display: flex; align-items: center; height: 30px; border-bottom: 1px solid #DCE1E5; font-size: 12.5px; white-space: nowrap; overflow: hidden; transition: border-color .15s ease; }
.cso-wh-f.is-focus { border-bottom-color: #3E8EDE; }
.cso-wh-f .dp-val { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.cso-wh-f > svg { flex: none; width: 15px; height: 15px; margin-left: auto; color: #5CB85C; }
.cso-wh-tok { letter-spacing: .02em; color: #3D4852; }
.cso-wh-caret { display: none; flex: none; width: 1.5px; height: 15px; margin-left: 1px; background: #2C3640; animation: adv-blink 1s steps(1) infinite; }
.is-focus > .cso-wh-caret { display: inline-block; }
.is-typing > .cso-wh-caret { animation: none; }
.cso-wh-b { display: block; margin-top: 10px; font-size: 10.5px; color: #6B7680; }
.cso-wh-body { margin-top: 4px !important; font: 11px/1.45 'SF Mono', Menlo, Consolas, monospace; color: #3D4852; white-space: nowrap; overflow: hidden; }
.cso-wh-body span { display: block; }
.cso-wh-body .cso-ji { padding-left: 1.4em; }
.cso-wh-body em { font-style: normal; color: #2F80ED; }
.cso-wh-card.is-flash { box-shadow: 0 0 0 2px rgba(62, 142, 222, .45); }

/* ============================================================
   Askpilot: the CallSwitch One source, as app.askpilot.com shows it
   ============================================================ */
.apx-dlg-cs { width: 560px; top: 20px; }
.apx-dlg-cs h4 + .apx-alert { margin-top: 14px; }
/* the app's error notice in the Connect window: the IP your reseller allows */
.apx-alert { display: flex; gap: 8px; padding: 10px 12px; border: 1px solid #F7C6C6; border-radius: 10px; background: #FEF3F2; font-size: 13px; line-height: 1.4; color: #B42318; }
.apx-alert svg { flex: none; width: 15px; height: 15px; margin-top: 1px; }
.apx-dlg-cs label { margin: 11px 0 5px; }
.apx-dlg-cs .apx-dlg-f { margin-top: 16px !important; }
.apx-tel { display: flex; }
.apx-tel .apx-cc { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px 0 12px; box-sizing: border-box; border: 1px solid #CFD8DC; border-right: 0; border-radius: 10px 0 0 10px; font-size: 14px; }
.apx-tel .apx-cc svg { width: 14px; height: 14px; color: #54626C; }
.apx-tel .apx-field { flex: 1; min-width: 0; border-radius: 0 10px 10px 0; }
.apx-field-pw .dp-val { letter-spacing: .14em; }
.apx-hooks-cs { grid-template-columns: 1fr 1.22fr; padding-top: 18px; }
.apx-hooks-cs .apx-setup { align-self: start; }
.apx-url-h { margin: 10px 0 -4px 18px !important; font-size: 12px; font-weight: 600; color: #54626C; }
.apx-setup ol.apx-steps { margin-top: 10px !important; }

/* ============================================================
   Sarah's iPhone: a call (iOS 26), then the Lock Screen
   ============================================================ */
.cs-wa .wa-tt2 { display: none; }
.cs-wa.is-t2 .wa-tt1 { display: none; }
.cs-wa.is-t2 .wa-tt2 { display: inline; }
.cs-wa .wa-who { min-width: 0; }
.cs-wa .wa-who b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* in a call: over the Lock Screen, until the call ends */
.wa-call {
    position: absolute; inset: 0; z-index: 35; display: flex; flex-direction: column; align-items: center; color: #fff; text-align: center;
    background: radial-gradient(120% 70% at 50% 0%, #4A4F63 0%, transparent 70%), linear-gradient(180deg, #2E3140 0%, #1C1D24 55%, #121216 100%);
    opacity: 0; transform: scale(1.04); pointer-events: none; transition: opacity .45s ease, transform .5s cubic-bezier(.2, .8, .2, 1);
}
.wa.is-call .wa-call { opacity: 1; transform: none; }
.wa-call-av { display: grid; place-items: center; width: 92px; height: 92px; margin-top: 108px; border-radius: 50%; background: linear-gradient(180deg, #A5ABBD, #7D8396); font-size: 30px; font-weight: 600; letter-spacing: -.01em; color: #fff; }
.wa-call-name { margin-top: 16px !important; padding: 0 20px; font-size: 30px; font-weight: 600; line-height: 1.1; letter-spacing: -.02em; }
.wa-call-t { margin-top: 8px !important; font-size: 17px; color: rgba(255, 255, 255, .7); font-variant-numeric: tabular-nums; }
.wa-ct-b { display: none; }
.wa.is-ended .wa-ct-a { display: none; }
.wa.is-ended .wa-ct-b { display: inline; }
.wa-call-grid { display: grid; grid-template-columns: repeat(3, 76px); justify-content: center; column-gap: 22px; row-gap: 22px; margin-top: auto; margin-bottom: 96px; }
.wa-cb { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, .9); }
.wa-cb i { display: grid; place-items: center; width: 70px; height: 70px; border-radius: 50%; background: rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(14px) saturate(1.6); backdrop-filter: blur(14px) saturate(1.6); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .35); transition: transform .15s ease; }
.wa-cb i svg { width: 28px; height: 28px; color: #fff; stroke-width: 1.8; }
.wa-cb-end i { background: #EB4E3D; box-shadow: none; }
.wa-cb-end i svg { fill: #fff; stroke: none; }
.wa-cb.is-press i { transform: scale(.92); }

/* ON A PHONE (.dp-narrow): the Web Hooks cards one under the other, the
   Connect window in the readable column */
.dp-narrow .apx-dlg-cs { width: 440px; }
.dp-narrow .apx-hooks-cs { grid-template-columns: 1fr 430px; }
.dp-narrow .cso-wh-grid { grid-template-columns: 1fr; width: 440px; }
.dp-narrow .cso-wh-h, .dp-narrow .cso-wh-bar { width: 440px; box-sizing: border-box; }
.dp-narrow .cso-wh-h span { font-size: 13px; }
.dp-narrow .cso-wh-h span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-narrow .cso-body { padding-left: 24px; }
.dp-narrow .cso-hb-hs, .dp-narrow .cso-hb-kp { display: none; }
/* on a phone the cards stack, so Call Ended, the one the video fills in, comes first;
   and Call History keeps to a readable column, its sidebar folded while the iPhone is beside it */
.dp-narrow [data-k="wh-ended"] { order: -1; }
.dp-narrow .cso-search, .dp-narrow .cso-list { max-width: 430px; }
.dp-narrow .dv.is-split .cso-side { width: 0; padding-left: 0; padding-right: 0; }

/* AUTH TOKENS (18 Nov 2026): the app now shows an Auth Token under each
   webhook URL, with copy and Regenerate (Regenerate only on the source's
   Webhook events tab). Rows sit tighter than the URL rows above them. */
.apx-tok-h { margin: 2px 0 -6px 18px !important; font-size: 11.5px; color: #7A878E; }
.apx-tok { align-items: center; margin-top: 8px !important; }
.apx-tok code { font-size: 12.5px; }
.apx-tok .apx-copy { margin-top: 0; }
.apx-regen { flex: none; padding: 2px 8px; border: 1px solid #DDE3E6; border-radius: 6px; background: #fff; font: 600 11.5px/1.35 Geist, Inter, sans-serif; color: #141C20; white-space: nowrap; }
